* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --tag-green-bg: #166534;
  --tag-green-text: #dcfce7;
  --tag-purple-bg: #6b21a8;
  --tag-purple-text: #f3e8ff;
  --tag-black-bg: #1f2937;
  --tag-black-text: #e5e7eb;
  --tag-red-bg: #991b1b;
  --tag-red-text: #fecaca;
  --tag-yellow-bg: #854d0e;
  --tag-yellow-text: #fef08a;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background: #13111f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: #1c1a3a;
  padding: 20px 22px;
}

.header__container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo__icon {
  width: 30px;
  height: 30px;
  background: #f7f7f7;
  border-radius: 6px;
}

.logo__text {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 38px;
}

/* Header Main */
.header__main {
  display: flex;
  align-items: center;
  gap: 17px;
}

/* Navigation Icons */
.nav-icons {
  display: flex;
  gap: 20px;
}

.nav-icons__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: #1c1a3a;
  border-radius: 7px;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.2s;
}

.nav-icons__item:hover {
  background: #2c2958;
}

.nav-icons__item--active {
  background: #9442ff;
}

.nav-icons__item--active:hover {
  background: #a55fff;
}

.nav-icons__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.nav-icons__item {
  color: #F4F6F8;
}

.nav-icons__icon--img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.nav-icons__icon--svg {
  flex-shrink: 0;
}

/* Header Right */
.header__right {
  display: flex;
  align-items: center;
  gap: 58px;
  position: relative;
}

/* Search */
.search-wrap {
  position: relative;
}

.search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 440px;
  background: #2c2958;
  border-radius: 8px;
  padding: 9px 20px;
}

.search__input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #f7f7f7;
  line-height: 22px;
  width: 100%;
}

.search__input::placeholder {
  color: #858ead;
}

.search__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Notification */
.notification {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2c2958;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.notification:hover {
  background: #3d3a6d;
}

.notification__icon {
  width: 20px;
  height: 20px;
}

/* Profile */
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile__avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #9442ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile__avatar-inner {
  width: 34px;
  height: 34px;
  background-color: #2d2a3e;
  border-radius: 6px;
}

.profile__name {
  font-size: 16px;
  font-weight: 700;
  color: #f7f7f7;
  line-height: 24px;
}

.profile__arrow {
  width: 12px;
  height: 8px;
}

.dropdown {
  position: absolute;
  background: #2c2958;
  border-radius: 8px;
  padding: 10px;
  min-width: 180px;
  z-index: 20;
}

.dropdown--notifications {
  right: 60px;
  top: 70px;
}

.dropdown--profile {
  right: 0;
  top: 70px;
}

.dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown__item {
  color: #f7f7f7;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
}

.dropdown__item:hover {
  background: #3d3a6d;
}

.dropdown__item:visited {
  color: #f7f7f7;
}

.dropdown__title {
  color: #f7f7f7;
}

.dropdown__text {
  color: #c5d0e6;
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

.dropdown__date {
  color: #858ead;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.dropdown__button {
  background: transparent;
  border: none;
  color: #f7f7f7;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  text-align: left;
}

.search__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #2c2958;
  border-radius: 8px;
  padding: 10px;
  width: 440px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 20;
}

.search__option {
  display: block;
  color: #f7f7f7;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}

.search__option:hover {
  background: #3d3a6d;
}

.posts--loading {
  position: relative;
  min-height: 140px;
}

.posts--loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #2c2958;
  border-top-color: #9442ff;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.auth {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 30px;
  max-width: 420px;
  margin: 0 auto;
}

.auth__title {
  color: #f7f7f7;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.auth__errors {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.5);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.auth__error {
  color: #f8b4ba;
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.auth__error + .auth__error {
  margin-top: 6px;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth__input {
  background: #2c2958;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f7f7f7;
}

.auth__input::placeholder {
  color: #858ead;
}

.auth__button {
  background: #9442ff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: #f7f7f7;
  font-weight: 700;
  cursor: pointer;
}

.auth__button:hover {
  background: #a55fff;
}

.auth__link {
  color: #c5d0e6;
  text-decoration: none;
  margin-top: 12px;
  display: inline-block;
}

.auth__link:hover {
  color: #f7f7f7;
}

.auth__label {
  color: #c5d0e6;
  font-size: 14px;
  margin-bottom: -6px;
}

.auth__avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
}

.auth__avatar {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background-color: #2d2a3e;
  background-size: cover;
}

.auth__avatar-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.auth__errors--success {
  background: rgba(34, 197, 94, 0.2);
}

.auth__errors--success .auth__error {
  color: #86efac;
}

.search__option,
.search__option:visited {
  color: #f7f7f7;
}

.page-content {
  color: #f7f7f7;
  font-size: 16px;
  line-height: 26px;
}

.page-content p,
.page-content ul,
.page-content li,
.page-content a {
  color: #f7f7f7;
}

.sidebar__tag,
.sidebar__developer {
  text-decoration: none;
  color: inherit;
}

.sidebar__tag:visited,
.sidebar__developer:visited {
  color: inherit;
}

.footer__logo-text {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 38px;
}

/* Main Content */
.main {
  padding: 30px 22px;
  flex: 1;
}

.main__wrapper {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

.main__container {
  flex: 1;
}

/* Sidebar */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar Navigation */
.sidebar__nav {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar__item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar__item:hover {
  background: #2c2958;
}

.sidebar__item--active {
  background: #2c2958;
}

.sidebar__icon {
  width: 32px;
  height: 32px;
  background: #2c2958;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__icon--new {
  background: #2c2958;
}

.sidebar__icon-text {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  padding: 3px 5px;
  border: 1px solid #0ecc8d;
  border-radius: 3px;
  line-height: 1;
}

.sidebar__icon svg {
  width: 18px;
  height: auto;
}

.sidebar__item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 20px;
}

.sidebar__item-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar__badge {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: #9442ff;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 16px;
}

.sidebar__item-desc {
  font-size: 11px;
  font-weight: 400;
  color: #97989d;
  line-height: 16px;
}

/* Sidebar Section */
.sidebar__section {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px 25px 20px 20px;
}

.sidebar__section-header {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sidebar__section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin-bottom: 20px;
}

.sidebar__section-header .sidebar__section-title {
  margin-bottom: 0;
}

.sidebar__section-header {
  margin-bottom: 20px;
}

.sidebar__arrow {
  font-size: 18px;
  color: #f7f7f7;
}

/* Sidebar Tags */
.sidebar__tags {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar__tag {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar__tag-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar__tag-info {
  display: flex;
  flex-direction: column;
}

.sidebar__tag-name {
  font-size: 14px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 20px;
}

.sidebar__tag-count {
  font-size: 11px;
  font-weight: 400;
  color: #97989d;
  line-height: 16px;
}

.sidebar__tag--green .sidebar__tag-icon { background: var(--tag-green-bg) !important; }
.sidebar__tag--purple .sidebar__tag-icon { background: var(--tag-purple-bg) !important; }
.sidebar__tag--black .sidebar__tag-icon { background: var(--tag-black-bg) !important; }
.sidebar__tag--red .sidebar__tag-icon { background: var(--tag-red-bg) !important; }
.sidebar__tag--yellow .sidebar__tag-icon { background: var(--tag-yellow-bg) !important; }

/* Sidebar Developers */
.sidebar__developers {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar__developer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sidebar__developer-avatar {
  width: 36px;
  height: 36px;
  background: #c4c4c4;
  border-radius: 6px;
  border: 1px solid rgba(255, 171, 97, 0.1);
  box-shadow: 0 3px 3px rgba(255, 171, 97, 0.06);
  flex-shrink: 0;
}

.sidebar__developer-info {
  display: flex;
  flex-direction: column;
}

.sidebar__developer-name {
  font-size: 14px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 20px;
}

.sidebar__developer-count {
  font-size: 11px;
  font-weight: 400;
  color: #97989d;
  line-height: 16px;
}

/* Categories */
.categories {
  display: flex;
  gap: 0;
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
}

.category {
  position: relative;
  width: 112px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.category:last-child {
  width: 113px;
}

.category__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.6);
  transition: transform 0.3s, filter 0.3s;
}

.category:hover .category__bg {
  transform: scale(1.05);
  filter: blur(0) brightness(0.8);
}

.category__text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: #f7f7f7;
  text-align: center;
  line-height: 20px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Section Title */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  margin: 20px 0;
  line-height: 26px;
}

.section-subtitle {
  font-size: 14px;
  color: #97989d;
  margin: 0 0 16px;
  line-height: 20px;
}

/* Posts */
.posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Post Card */
.post {
  position: relative;
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 20px;
}

/* Stretched link: whole card is clickable */
.post__link-stretch {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 16px;
}

.post__link-stretch:hover ~ .post__content .post__description {
  color: #b794f6;
}

/* Let clicks pass through to the stretched link */
.post__image,
.post__content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.post__image *,
.post__content * {
  pointer-events: none;
}

.post__body {
  display: block;
  color: inherit;
}

.post__image {
  width: 156px;
  height: 156px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(43, 0, 212, 0.1);
  box-shadow: 0 2px 6px rgba(43, 0, 212, 0.06);
}

.post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post__content {
  flex: 1;
  display: flex;
  gap: 20px;
}

.post__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
}

.post__description {
  font-size: 13px;
  color: #97989d;
  line-height: 18px;
  margin-top: 8px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags */
.post__tags {
  display: flex;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #2c2958;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

.tag--primary {
  background: #9442ff;
}

.tag--green {
  background: var(--tag-green-bg, #166534);
  color: var(--tag-green-text, #dcfce7);
}

.tag--purple {
  background: var(--tag-purple-bg, #6b21a8);
  color: var(--tag-purple-text, #f3e8ff);
}

.tag--black {
  background: var(--tag-black-bg, #1f2937);
  color: var(--tag-black-text, #e5e7eb);
}

.tag--red {
  background: var(--tag-red-bg, #991b1b);
  color: var(--tag-red-text, #fecaca);
}

.tag--yellow {
  background: var(--tag-yellow-bg, #854d0e);
  color: var(--tag-yellow-text, #fef08a);
}

.card-detail__tag.tag--green { background: var(--tag-green-bg); color: var(--tag-green-text); }
.card-detail__tag.tag--purple { background: var(--tag-purple-bg); color: var(--tag-purple-text); }
.card-detail__tag.tag--black { background: var(--tag-black-bg); color: var(--tag-black-text); }
.card-detail__tag.tag--red { background: var(--tag-red-bg); color: var(--tag-red-text); }
.card-detail__tag.tag--yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-text); }

/* Post Meta */
.post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post__author {
  display: flex;
  flex-direction: column;
}

.post__author-name {
  font-size: 14px;
  font-weight: 600;
  color: #f4f6f8;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post__dot {
  width: 5px;
  height: 5px;
  background: #c5d0e6;
  border-radius: 50%;
}

.post__date {
  font-size: 10px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 16px;
}

.post__stats {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 22px;
}

/* Post Like Button (above stretched link, must receive clicks) */
.post__like {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 30px;
  height: 30px;
  background: #2c2958;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  color: #A5ADC0;
  text-decoration: none;
}

.post__like:hover {
  background: #3d3a6d;
  color: #c5d0e6;
}

.post__like--active {
  color: #e74c3c;
}

.post__like--active:hover {
  color: #ff6b6b;
}

.post__like svg {
  width: 20px;
  height: 18px;
}

/* Right Bar */
.rightbar {
  width: 325px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rightbar__section {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
}

.rightbar__header {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 20px;
}

.rightbar__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
}

.rightbar__arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rightbar__arrow svg {
  width: 12px;
  height: 12px;
}

/* Comments */
.rightbar__comments {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

a.comment--link {
  display: flex;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

a.comment--link:hover,
a.comment--link:focus,
a.comment--link:visited {
  color: inherit;
  text-decoration: none;
}

a.comment--link .comment__text {
  color: #f7f7f7;
}

a.comment--link:hover .comment__text,
a.comment--link:visited .comment__text {
  color: #f7f7f7;
  text-decoration: none;
}

.comment__image {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(250, 137, 36, 0.1);
  box-shadow: 0 3px 4px rgba(250, 137, 36, 0.06);
}

.comment__image img,
.comment__image .comment__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment__image .comment__avatar {
  display: block;
  min-height: 58px;
}

.comment__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.comment__title-row {
  display: flex;
  align-items: flex-end;
}

.comment__text {
  font-size: 13px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 19px;
  flex: 1;
}

.comment__arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment__arrow svg {
  width: 12px;
  height: 12px;
}

.comment__author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #97989d;
  line-height: 16px;
}

.comment__author-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  background-color: #2c2958;
  background-position: center;
  background-repeat: no-repeat;
}

/* SEO block (slogan above footer) */
/* Слоган — отдельный островок над футером */
.seo-block {
  max-width: 1360px;
  margin: 30px auto 28px;
  padding: 24px 36px;
  background: #1c1a3a;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .seo-block {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 24px;
    padding: 20px 24px;
  }
  .seo-block__text {
    font-size: 14px;
    max-height: 180px;
  }
}

.seo-block__container {
  text-align: center;
}

/* Ограничение высоты и прокрутка для длинного App Slug; блок остаётся снизу */
.seo-block__text {
  font-size: 15px;
  font-weight: 500;
  color: #e8eaf0;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  text-align: left;
}

.seo-block__text::-webkit-scrollbar {
  width: 6px;
}

.seo-block__text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.seo-block__text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Footer */
.footer {
  background: #1c1a3a;
  padding: 40px 22px;
}

.footer__container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Footer Logo */
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo-link {
  display: block;
  text-decoration: none;
}

.footer__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer__logo-icon {
  width: 43px;
  height: 43px;
  background: #f7f7f7;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-text {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 55px;
}

/* Footer Description */
.footer__desc {
  width: 364px;
  font-size: 14px;
  font-weight: 400;
  color: #97989d;
  line-height: 17px;
  flex-shrink: 0;
}

/* Footer Links */
.footer__links {
  display: flex;
  gap: 39px;
}

.footer__links-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__link {
  font-size: 14px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 22px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

/* Footer Social */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #F4F6F8;
  overflow: hidden;
}

.footer__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer__social-icon img.footer__social-icon-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__social-icon svg {
  width: 100%;
  height: auto;
}

/* Footer Copyright */
.footer__copyright {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 18px;
  white-space: nowrap;
  align-self: flex-end;
}

/* Game Banner */
.game-banner {
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.game-banner__image {
  position: relative;
  width: 100%;
  height: 234px;
}

.game-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-banner__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1c1a3a 0%, transparent 100%);
}

.game-banner__content {
  padding: 0 20px 20px;
}

.game-banner__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.game-banner__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
}

.game-banner__tags {
  display: flex;
  gap: 8px;
}

.game-banner__tag {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

.game-banner__text {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
  margin-bottom: 16px;
}

.game-banner__section {
  margin-bottom: 16px;
}

.game-banner__section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin-bottom: 8px;
}

.game-banner__section-text {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
}

.game-banner__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-banner__features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-banner__feature {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

/* More Games */
.more-games {
  display: flex;
  gap: 0;
  background: #1c1a3a;
  border-radius: 16px;
  overflow: visible;
  margin-bottom: 20px;
}

.more-games__item {
  position: relative;
  width: 112px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.more-games__item:last-child {
  width: 113px;
}

.more-games__item-wrap {
  position: relative;
}

.more-games__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.4);
  transition: filter 0.2s;
}

.more-games__item:hover .more-games__bg {
  filter: blur(0) brightness(0.6);
}

.more-games__text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

/* More Games / Software callout (island) */
.more-games-callout {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  background: #1c1a3a;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Dropdown callout: одна выноска на карточку — показывается только при наведении на свою карточку */
.more-games-callout_dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  margin-bottom: 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 20;
}

.more-games-callout_dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.more-games__item-wrap:hover .more-games-callout_dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.more-games-callout__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.more-games-callout__inner_single {
  grid-template-columns: 1fr;
  min-width: 240px;
}

.more-games-callout__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.more-games-callout__title {
  font-size: 16px;
  font-weight: 600;
  color: #f7f7f7;
  margin: 0 0 4px 0;
}

.more-games-callout__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.more-games-callout__link {
  font-size: 14px;
  color: #c5d0e6;
  text-decoration: none;
  transition: color 0.2s;
}

.more-games-callout__link:hover {
  color: #fff;
}

.more-games-callout__all {
  font-size: 14px;
  font-weight: 600;
  color: #9442ff;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
}

.more-games-callout__all:hover {
  color: #a55fff;
}

/* Popular Developers Row (for other.html) */
.popular-devs {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.popular-devs__header {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 20px;
}

.popular-devs__title {
  font-size: 16px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 24px;
}

.popular-devs__arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-devs__list {
  display: flex;
  justify-content: space-between;
}

.popular-devs__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

a.popular-devs__item:hover {
  opacity: 0.85;
}

.popular-devs__avatar {
  width: 32px;
  height: 32px;
  background: #c4c4c4;
  border-radius: 4px;
  border: 1px solid rgba(255, 171, 97, 0.1);
  box-shadow: 0 3px 3px rgba(255, 171, 97, 0.06);
}

.popular-devs__info {
  display: flex;
  flex-direction: column;
}

.popular-devs__name {
  font-size: 12px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 18px;
}

.popular-devs__count {
  font-size: 9px;
  font-weight: 400;
  color: #97989d;
  line-height: 14px;
}

/* Simple Banner (for other.html) */
.simple-banner {
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.simple-banner__image {
  position: relative;
  width: 100%;
  height: 234px;
}

.simple-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.simple-banner__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1c1a3a 0%, transparent 100%);
}

.simple-banner__content {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.simple-banner__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.simple-banner__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
}

.simple-banner__tags {
  display: flex;
  gap: 8px;
}

.simple-banner__tag {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

.simple-banner__text {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
}

/* Card Detail (Open Page) */
.card-detail {
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.card-detail__banner {
  position: relative;
  width: 100%;
  height: 234px;
}

.card-detail__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.card-detail__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1c1a3a 0%, transparent 100%);
}

.card-detail__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

.content-gallery {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.content-gallery__main {
  position: relative;
  width: 100%;
  height: 234px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #1c1a3a;
}

.content-gallery__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.content-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.content-gallery__slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 0;
}

.content-gallery__slide img,
.content-gallery--single .content-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  display: block;
}

.content-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 26, 58, 0.85);
  color: #f7f7f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.content-gallery__arrow:hover:not(:disabled) {
  background: rgba(148, 66, 255, 0.9);
}

.content-gallery__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.content-gallery__arrow--prev {
  left: 12px;
}

.content-gallery__arrow--next {
  right: 12px;
}

.content-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.content-gallery__thumb {
  width: 80px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.content-gallery__thumb:hover {
  opacity: 0.9;
}

.content-gallery__thumb--active {
  border-color: #9442ff;
}

.content-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-gallery--single .content-gallery__main {
  height: 234px;
}

.fix-detail .content-gallery .card-detail__badge {
  top: 20px;
  right: 20px;
}

.game-banner__image--gallery .content-gallery__main {
  border-radius: 16px;
}

.game-banner__image--gallery .content-gallery__slide img,
.game-banner__image--gallery.content-gallery--single .content-gallery__img {
  border-radius: 16px;
}

/* Clickable images: show pointer */
.content-gallery__main,
.content-gallery__slide,
.content-gallery__thumb,
.content-gallery--single .content-gallery__main {
  cursor: pointer;
}

/* Fullscreen image lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(148, 66, 255, 0.8);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__arrow:hover {
  background: rgba(148, 66, 255, 0.8);
}

.lightbox__arrow--prev {
  left: 20px;
}

.lightbox__arrow--next {
  right: 20px;
}

.card-detail__content {
  padding: 0 20px 20px;
}

.card-detail__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-detail__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  max-width: 548px;
}

.card-detail__tags {
  display: flex;
  gap: 8px;
}

.card-detail__tag {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
  white-space: nowrap;
}

.card-detail__description {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 22px;
  margin-bottom: 16px;
}

.card-detail__description p {
  margin-bottom: 0;
}

.card-detail__description a {
  color: #fff;
  text-decoration: underline;
}

.card-detail__description ul {
  list-style: disc;
  margin-left: 18px;
}

.card-detail__description li {
  margin-bottom: 0;
}

.card-detail__section {
  margin-bottom: 16px;
}

.card-detail__section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin-bottom: 8px;
}

.card-detail__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-detail__features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-detail__feature {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
}

.card-detail__changelog {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 22px;
}

.card-detail__changelog strong {
  font-weight: 700;
}

.card-detail__download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background: #9442ff;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 26px;
  text-decoration: none;
  transition: background 0.2s;
}

.card-detail__download:hover {
  background: #a55fff;
}

/* Type Comment */
.type-comment {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.type-comment__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14122a;
  border-radius: 16px;
  padding: 20px;
  height: 62px;
}

.type-comment__field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #f7f7f7;
  line-height: 22px;
}

.type-comment__field::placeholder {
  color: #c5d0e6;
}

.type-comment__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.type-comment__notice {
  margin-top: 12px;
  font-size: 13px;
  color: #c5d0e6;
}

.type-comment__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-comment__emoji-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #A5ADC0;
}

.type-comment__emoji-picker {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: #2c2958;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 6px;
  width: max-content;
}

.type-comment__emoji-picker--open {
  display: grid;
}

.type-comment__emoji-picker span {
  cursor: pointer;
  font-size: 20px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-comment__emoji-picker span:hover {
  transform: scale(1.2);
}

.type-comment__submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #9442ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.type-comment__submit:hover {
  background: #a55fff;
}

.type-comment__submit-icon {
  flex-shrink: 0;
}

.type-comment__submit-text {
  white-space: nowrap;
}

.type-comment__reply-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #a5adc0;
}

.page-comment__reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #C5D0E6;
  margin-left: auto;
}

.page-comment__reply-btn:hover {
  color: #9442ff;
}

.page-comment__replies {
  margin-top: 8px;
  margin-left: 24px;
  padding-left: 16px;
  border-left: 2px solid #2c2958;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-comment--reply .page-comment__body {
  margin-bottom: 0;
}

.card-detail__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.card-detail__stat {
  font-size: 14px;
  color: #c5d0e6;
}

.card-detail__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #A5ADC0;
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}

.card-detail__like:hover {
  color: #c5d0e6;
}

.post__like--active,
.card-detail__like--active {
  color: #e74c3c;
}

.card-detail__like--active:hover,
.post__like--active:hover {
  color: #ff6b6b;
}

.card-detail__like-count {
  font-weight: 600;
}

/* Page Comments */
.page-comments {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-comment {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-comment--nested {
  margin-left: 40px;
}

.page-comment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-comment__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-comment__avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #2c2958;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-comment__avatar--owner {
  border-color: #9442ff;
}

.page-comment__avatar-inner {
  width: 34px;
  height: 34px;
  background: #f9dfc0;
  border-radius: 6px;
}

.page-comment__name {
  font-size: 16px;
  font-weight: 700;
  color: #f7f7f7;
  line-height: 24px;
}

.page-comment__time {
  font-size: 14px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 22px;
}

.page-comment__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: #2c2958;
  border-radius: 16px;
  padding: 20px;
}

.page-comment__text {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: #f4f6f8;
  line-height: 22px;
  margin: 0;
}

.page-comment__reply-icon {
  width: 14px;
  height: 11px;
  flex-shrink: 0;
  margin-top: 5px;
}


/* System Fix Guide */
.system-fix-guide {
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.system-fix-guide__content {
  padding: 20px;
}

.system-fix-guide__header {
  margin-bottom: 20px;
}

.system-fix-guide__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin-bottom: 8px;
}

.system-fix-guide__description {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
  margin: 0;
}

.system-fix-guide__step {
  margin-bottom: 20px;
}

.system-fix-guide__step-title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin-bottom: 20px;
}

.system-fix-guide__code-block {
  background: #14122a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 216px;
  display: flex;
  align-items: flex-start;
}

.system-fix-guide__code-text {
  font-size: 14px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 22px;
  margin: 0;
}

.system-fix-guide__copy-btn {
  width: 100%;
  background: #9442ff;
  border-radius: 7px;
  padding: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.system-fix-guide__copy-btn:hover {
  background: #a55fff;
}

.system-fix-guide__list {
  list-style: disc;
  margin-left: 18px;
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
}

.system-fix-guide__list li {
  margin-bottom: 0;
}


/* Fixes Grid */
.fixes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.fix-card {
  background: #1c1a3a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 20px;
}

.fix-card__image {
  width: 156px;
  height: 156px;
  background: #2c2958;
  border-radius: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(43, 0, 212, 0.1);
  box-shadow: 0 2px 6px rgba(43, 0, 212, 0.06);
  overflow: hidden;
}

.fix-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fix-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fix-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #9442ff;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: #c5d0e6;
  line-height: 16px;
  width: fit-content;
}

.fix-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 26px;
  margin: 0;
}

.fix-card__description {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  line-height: 16px;
  margin: 0;
}

a.fix-card.fix-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

a.fix-card.fix-card--link:hover {
  background: #22204a;
  box-shadow: 0 4px 16px rgba(43, 0, 212, 0.15);
}

/* Fix detail page — в одном стиле с card-detail */
.fix-detail {
  background: #1c1a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.fix-detail__banner {
  position: relative;
  width: 100%;
  height: 234px;
}

.fix-detail__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.fix-detail__banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c2958 0%, #1c1a3a 100%);
  border-radius: 16px 16px 0 0;
}

.fix-detail__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #1c1a3a 0%, transparent 50%);
}

.fix-detail__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  background: #9442ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 16px;
}

.fix-detail__content {
  padding: 24px 20px 28px;
}

.fix-detail__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #a5adc0;
  text-decoration: none;
  transition: color 0.2s;
}

.fix-detail__back:hover {
  color: #9442ff;
}

.fix-detail__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.fix-detail__title {
  font-size: 20px;
  font-weight: 600;
  color: #f7f7f7;
  line-height: 1.35;
  margin: 0;
}

.fix-detail__slug {
  background: #9442ff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 16px;
  white-space: nowrap;
}

.fix-detail__meta {
  font-size: 13px;
  color: #a5adc0;
  margin: 0 0 14px;
  line-height: 1.4;
}

.fix-detail__lead {
  font-size: 14px;
  color: #c5d0e6;
  line-height: 1.55;
  margin: 0 0 16px;
}

.fix-detail__description {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 22px;
}

.fix-detail__description p {
  margin: 0 0 12px;
}

.fix-detail__description p:last-child {
  margin-bottom: 0;
}

.fix-detail__description a {
  color: #a55fff;
  text-decoration: underline;
}

.fix-detail__description a:hover {
  color: #c5a3ff;
}

.fix-detail__description--intro {
  margin-bottom: 24px;
}

.fix-detail__code-card {
  background: #252348;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(148, 66, 255, 0.25);
}

.fix-detail__code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(148, 66, 255, 0.2);
}

.fix-detail__code-title {
  font-size: 13px;
  font-weight: 600;
  color: #c5d0e6;
  letter-spacing: 0.02em;
}

.fix-detail__copy-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #9442ff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.fix-detail__copy-btn:hover {
  background: #a55fff;
}

.fix-detail__copy-btn--copied {
  background: #10b981;
}

.fix-detail__code-body {
  overflow: hidden;
}

.fix-detail__code-body.is-collapsed {
  max-height: 220px;
  overflow: hidden;
}

.fix-detail__code-body.is-collapsed .fix-detail__code-block {
  overflow: hidden;
}

.fix-detail__code-body:not(.is-collapsed) {
  max-height: none;
}

.fix-detail__code-toggle {
  display: block;
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #9442ff;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-top: 1px solid rgba(148, 66, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.fix-detail__code-toggle:hover {
  background: rgba(148, 66, 255, 0.15);
}

.fix-detail__code-block {
  margin: 0;
  padding: 20px 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  background: #1c1a3a;
  overflow-x: auto;
  white-space: pre;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.fix-detail__code-block code {
  font-size: inherit;
  background: none;
  padding: 0;
}

/* Cookie banner — фиксирован внизу экрана, выше остального контента */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1c1a3a;
  padding: 16px 22px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.cookie-banner__content {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 14px;
  font-weight: 400;
  color: #c5d0e6;
  line-height: 1.4;
}

.cookie-banner__button {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1a3a;
  background: #f7f7f7;
  border: 1px solid rgba(247, 247, 247, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cookie-banner__button:hover {
  background: #fff;
  color: #13111f;
}
