@font-face {
  font-family: "Comfortaa";
  src: url("/static/font/Comfortaa/Comfortaa.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #f7f8fa;
  --text: #111111;
  --text-muted: #545b66;
  --text-soft: #7a818c;
  --text-watermark: rgba(17, 17, 17, 0.12);
  --line: #e5e8ee;
  --line-strong: #d8dde6;
  --shadow-soft: 0 22px 70px rgba(20, 24, 31, 0.08);
  --shadow-lifted: 0 26px 80px rgba(20, 24, 31, 0.13);
  --focus-ring: 0 0 0 4px rgba(17, 17, 17, 0.14);
  --body-glow: rgba(0, 122, 255, 0.08);
  --body-start: #ffffff;
  --body-end: var(--page-bg);
  --chrome-bg: rgba(255, 255, 255, 0.9);
  --chrome-border: rgba(255, 255, 255, 0.8);
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(255, 255, 255, 0.74);
  --tile-shadow: 0 18px 52px rgba(20, 24, 31, 0.12);
  --active-control-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
  --channel-body-gradient: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.94) 46%,
    rgba(255, 255, 255, 0.66) 72%,
    rgba(255, 255, 255, 0) 100%
  );
}

:root,
html[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #080b10;
    --surface: #111722;
    --surface-muted: #171e2b;
    --text: #f6f7fb;
    --text-muted: #c2cad6;
    --text-soft: #8d98a8;
    --text-watermark: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 24px 76px rgba(0, 0, 0, 0.36);
    --shadow-lifted: 0 30px 90px rgba(0, 0, 0, 0.46);
    --focus-ring: 0 0 0 4px rgba(255, 255, 255, 0.16);
    --body-glow: rgba(64, 148, 255, 0.14);
    --body-start: #06080d;
    --body-end: #0c111a;
    --chrome-bg: rgba(14, 19, 28, 0.82);
    --chrome-border: rgba(255, 255, 255, 0.12);
    --panel-bg: rgba(16, 22, 32, 0.9);
    --panel-border: rgba(255, 255, 255, 0.11);
    --tile-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
    --active-control-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    --channel-body-gradient: linear-gradient(
      0deg,
      rgba(15, 20, 29, 0.98) 0%,
      rgba(15, 20, 29, 0.94) 46%,
      rgba(15, 20, 29, 0.68) 72%,
      rgba(15, 20, 29, 0) 100%
    );
    color-scheme: dark;
  }
}

html[data-theme="dark"] {
  --page-bg: #080b10;
  --surface: #111722;
  --surface-muted: #171e2b;
  --text: #f6f7fb;
  --text-muted: #c2cad6;
  --text-soft: #8d98a8;
  --text-watermark: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 24px 76px rgba(0, 0, 0, 0.36);
  --shadow-lifted: 0 30px 90px rgba(0, 0, 0, 0.46);
  --focus-ring: 0 0 0 4px rgba(255, 255, 255, 0.16);
  --body-glow: rgba(64, 148, 255, 0.14);
  --body-start: #06080d;
  --body-end: #0c111a;
  --chrome-bg: rgba(14, 19, 28, 0.82);
  --chrome-border: rgba(255, 255, 255, 0.12);
  --panel-bg: rgba(16, 22, 32, 0.9);
  --panel-border: rgba(255, 255, 255, 0.11);
  --tile-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
  --active-control-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  --channel-body-gradient: linear-gradient(
    0deg,
    rgba(15, 20, 29, 0.98) 0%,
    rgba(15, 20, 29, 0.94) 46%,
    rgba(15, 20, 29, 0.68) 72%,
    rgba(15, 20, 29, 0) 100%
  );
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  overflow-y: scroll;
  scroll-behavior: auto;
  scroll-padding-top: 112px;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, var(--body-glow), transparent 28rem),
    linear-gradient(180deg, var(--body-start) 0, var(--body-end) 44rem);
  color: var(--text);
  transition: background-color 260ms ease, color 260ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 8px 12px;
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-border);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 14px 46px rgba(20, 24, 31, 0.1);
  backdrop-filter: blur(18px);
}

.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
}

.site-header__brand:focus-visible,
.site-header__link:focus-visible,
.site-header__menu-toggle:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.site-header__logo {
  display: block;
  width: 96px;
  height: 96px;
  max-width: none;
  object-fit: contain;
  transform: scale(1.55);
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

html[lang="en"] .site-header__inner {
  grid-template-columns: 170px minmax(0, 1fr) auto;
}

html[lang="en"] .site-header__brand {
  width: 160px;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  justify-self: center;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 12px;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-header__link:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.site-header__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.site-header__language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-header__theme {
  display: inline-flex;
  align-items: center;
}

.site-header__language-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 14px;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header__language-button:hover {
  color: var(--text);
  background: var(--surface);
}

.site-header__language-button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.site-header__language-button.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--active-control-shadow);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  flex: 0 0 auto;
  cursor: pointer;
}

.theme-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #2196f3;
  border-radius: 999px;
  transition: 400ms;
}

.theme-switch__input:focus-visible + .theme-switch__slider {
  box-shadow: 0 0 1px #2196f3;
}

.theme-switch__input:checked + .theme-switch__slider {
  background: #000000;
}

.theme-switch__sun-moon {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  width: 26px;
  height: 26px;
  overflow: visible;
  background: yellow;
  border-radius: 50%;
  transition: 400ms;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__sun-moon {
  background: #ffffff;
  transform: translateX(26px);
}

.theme-switch__moon-dot {
  position: absolute;
  z-index: 4;
  opacity: 0;
  fill: gray;
  transition: 400ms;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__moon-dot {
  opacity: 1;
}

.theme-switch__moon-dot--one {
  left: 10px;
  top: 3px;
  width: 6px;
  height: 6px;
}

.theme-switch__moon-dot--two {
  left: 2px;
  top: 10px;
  width: 10px;
  height: 10px;
}

.theme-switch__moon-dot--three {
  left: 16px;
  top: 18px;
  width: 3px;
  height: 3px;
}

.theme-switch__light-ray {
  position: absolute;
  z-index: -1;
  fill: #ffffff;
  opacity: 10%;
}

.theme-switch__light-ray--one {
  left: -8px;
  top: -8px;
  width: 43px;
  height: 43px;
}

.theme-switch__light-ray--two {
  left: -13px;
  top: -13px;
  width: 55px;
  height: 55px;
}

.theme-switch__light-ray--three {
  left: -18px;
  top: -18px;
  width: 60px;
  height: 60px;
}

.theme-switch__cloud {
  position: absolute;
  animation: theme-switch-cloud 6s infinite;
}

.theme-switch__cloud--light {
  fill: #eeeeee;
}

.theme-switch__cloud--dark {
  fill: #cccccc;
  animation-delay: 1s;
}

.theme-switch__cloud--one {
  left: 30px;
  top: 15px;
  width: 40px;
}

.theme-switch__cloud--two {
  left: 44px;
  top: 10px;
  width: 20px;
}

.theme-switch__cloud--three {
  left: 18px;
  top: 24px;
  width: 30px;
}

.theme-switch__cloud--four {
  left: 36px;
  top: 18px;
  width: 40px;
}

.theme-switch__cloud--five {
  left: 48px;
  top: 14px;
  width: 20px;
}

.theme-switch__cloud--six {
  left: 22px;
  top: 26px;
  width: 30px;
}

.theme-switch__stars {
  display: block;
  opacity: 0;
  transform: translateY(-32px);
  transition: 400ms;
}

.theme-switch__input:checked + .theme-switch__slider .theme-switch__stars {
  opacity: 1;
  transform: translateY(0);
}

.theme-switch__star {
  position: absolute;
  fill: #ffffff;
  transition: 400ms;
  animation: theme-switch-star 2s infinite;
}

.theme-switch__star--one {
  top: 2px;
  left: 3px;
  width: 20px;
  animation-delay: 300ms;
}

.theme-switch__star--two {
  top: 16px;
  left: 3px;
  width: 6px;
}

.theme-switch__star--three {
  top: 20px;
  left: 10px;
  width: 12px;
  animation-delay: 600ms;
}

.theme-switch__star--four {
  top: 0;
  left: 18px;
  width: 18px;
  animation-delay: 1300ms;
}

@keyframes theme-switch-cloud {
  0%,
  100% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }
}

@keyframes theme-switch-star {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.site-header__menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  height: 280px;
  margin: 28px auto 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  perspective: 1200px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transform: translate3d(0, 0, -24px) scale(1.04);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  transform: translate3d(0, 0, 40px);
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero__logo-wrap {
  display: block;
  width: min(260px, 38vw);
  transform: translate3d(0, 0, 72px);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.hero__logo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.about-project {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 0;
}

.about-project__inner {
  padding: 48px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-project__eyebrow {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-project__title {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.about-project__brand {
  font-family: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.about-project__text {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}

.about-project__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-project__channel-placeholder {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.about-project--standalone {
  margin-top: 28px;
  margin-bottom: 48px;
}

.about-project__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 32px;
  padding: 0 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #111111;
  border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-project__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

.about-project__link:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.about-page {
  display: grid;
  gap: 28px;
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 56px;
}

.about-page__hero,
.about-page__story,
.about-news {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-page__hero {
  padding: 56px;
}

.about-page__hero-content {
  min-width: 0;
}

.about-page__eyebrow {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about-page__title {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: 0;
}

.about-page__brand {
  font-family: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.about-page__lead {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 19px;
  line-height: 1.72;
}

.about-page__summary {
  display: grid;
  gap: 12px;
}

.about-page__summary-item {
  min-height: 92px;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.about-page__summary-item span {
  display: block;
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}

.about-page__summary-item small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.about-page__story {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 44px;
  padding: 48px;
}

.about-page__section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

.about-page__story-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.72;
}

.about-page__story-text p + p {
  margin-top: 18px;
}

.about-news {
  padding: 48px;
}

.about-news__header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
}

.about-news__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.68;
}

.about-news__grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

html[data-language="ru"] .about-news__grid[data-about-news-language="ru"],
html[data-language="en"] .about-news__grid[data-about-news-language="en"] {
  display: grid;
}

.about-news__card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
}

.about-news__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 260px;
  color: #ffffff;
  text-decoration: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(34, 158, 217, 0.62), transparent 34%),
    linear-gradient(135deg, #171717, #3a3a3a);
}

.about-news__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.about-news__card:hover .about-news__media img {
  transform: scale(1.035);
}

.about-news__media--empty {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
}

.about-news__media--empty span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 750;
}

.about-news__media-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: #111111;
  font-size: 13px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.about-news__media-count strong {
  color: #ffffff;
  min-width: 30px;
  padding: 6px 8px;
  text-align: center;
  background: #111111;
  border-radius: 999px;
}

.about-news__body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.about-news__date {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
}

.about-news__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.62;
}

.about-news__subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  background: #111111;
  border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-news__subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

.about-news__empty {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}

.about-news__empty h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

.about-news__empty p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.about-news__footer {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-news__subscribe {
  width: 100%;
  min-height: 74px;
  padding: 16px 24px;
  color: #111111;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 12% 20%, rgba(34, 158, 217, 0.14), transparent 34%);
  border: 1px solid rgba(17, 17, 17, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 44px rgba(17, 17, 17, 0.08);
}
.channel-directory {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 0;
}

.channel-directory__inner {
  padding: 48px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.channel-directory__header {
  max-width: 860px;
  margin-bottom: 32px;
}

.channel-directory__eyebrow {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.channel-directory__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.channel-directory__description {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

.channel-directory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.channel-tile {
  --channel-accent: #111111;
  --channel-soft: rgba(17, 17, 17, 0.08);
  --channel-icon-bg: color-mix(in srgb, var(--channel-accent), white 90%);

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 8 / 5;
  min-height: 0;
  padding: 0;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 0;
  border-radius: 22px;
  box-shadow: var(--tile-shadow);
  overflow: hidden;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.channel-tile::before {
  display: none;
}

.channel-tile:hover {
  border-color: transparent;
  box-shadow:
    0 28px 82px color-mix(in srgb, var(--channel-accent), transparent 86%),
    0 18px 52px rgba(20, 24, 31, 0.14);
}

.channel-tile:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring), var(--shadow-lifted);
}

.channel-tile.is-hidden {
  display: none;
}

html[data-language="ru"] [data-channel-tile][data-languages="en"],
html[data-language="en"] [data-channel-tile][data-languages="ru"],
html[data-user-region="ru"] [data-channel-tile][data-hidden-in~="ru"] {
  display: none;
}

.channel-tile__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.channel-tile__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: filter 280ms ease, transform 280ms ease, box-shadow 280ms ease;
}

.channel-tile__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding: 170px 28px 28px;
  background: var(--channel-body-gradient);
}

.channel-tile__icon-wrap {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  background: var(--channel-icon-bg);
  border: 1px solid color-mix(in srgb, var(--channel-accent), white 72%);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 10px 26px color-mix(in srgb, var(--channel-accent), transparent 88%);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.channel-tile__icon {
  display: block;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  transition: filter 240ms ease, transform 240ms ease;
}

.channel-tile__icon--svg {
  filter: brightness(0) saturate(100%);
}

.channel-tile:hover .channel-tile__cover-image {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.01);
  box-shadow: none;
}

.channel-tile:hover .channel-tile__icon-wrap {
  background: var(--channel-accent);
  border-color: var(--channel-accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 16px 34px color-mix(in srgb, var(--channel-accent), transparent 72%);
}

.channel-tile:hover .channel-tile__icon {
  transform: none;
}

.channel-tile:hover .channel-tile__icon--svg {
  filter: brightness(0) invert(1);
}

.channel-tile:hover .channel-tile__icon-wrap--invert-hover {
  background: var(--channel-accent);
  border-color: var(--channel-accent);
  border-radius: 999px;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--channel-accent), transparent 72%);
}

.channel-tile:hover .channel-tile__icon-wrap--invert-hover .channel-tile__icon {
  filter: brightness(0) invert(1);
}

.channel-tile:hover .channel-tile__icon-wrap--white-hover .channel-tile__icon {
  filter: brightness(0) invert(1);
}

.channel-tile__content {
  display: flex;
  flex-direction: column;
  align-self: end;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.channel-tile__name {
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}

.channel-tile__text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
}

.channel-tile__notice {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.16);
}

.channel-tile__notice--regional {
  display: none;
}

html[data-user-region="ru"] .channel-tile__notice--regional {
  display: inline-flex;
}

.channel-tile__notice--telegram {
  width: auto;
  padding: 9px 11px;
  color: #07506d;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.35;
  background: rgba(231, 247, 255, 0.94);
  border-color: rgba(34, 158, 217, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.13);
}

.channel-tile__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--channel-accent);
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  background: color-mix(in srgb, var(--channel-accent), white 91%);
  border: 1px solid color-mix(in srgb, var(--channel-accent), white 76%);
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.channel-tile__action::after {
  margin-left: 8px;
  content: "→";
  line-height: 1;
}

.channel-tile:hover .channel-tile__action {
  color: #ffffff;
  background: var(--channel-accent);
  transform: translateX(2px);
}

.channel-tile--vk {
  order: 4;
  --channel-accent: #0077ff;
  --channel-soft: rgba(0, 119, 255, 0.1);
  --channel-icon-bg: #e8f3ff;
}

.channel-tile--x,
.channel-tile--threads {
  --channel-accent: #111111;
  --channel-soft: rgba(17, 17, 17, 0.08);
  --channel-icon-bg: #f1f1f1;
}

.channel-tile--x {
  order: 7;
}

.channel-tile--x {
  background: #0f1012;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.18);
}

.channel-tile--x .channel-tile__cover-image {
  filter: brightness(0.78) saturate(0.92) contrast(1.04);
}

.channel-tile--x .channel-tile__body {
  background: linear-gradient(
    0deg,
    rgba(226, 226, 226, 0.98) 0%,
    rgba(232, 232, 232, 0.92) 43%,
    rgba(218, 218, 218, 0.62) 70%,
    rgba(18, 18, 18, 0.08) 100%
  );
}

.channel-tile--x:hover .channel-tile__cover-image {
  filter: brightness(0.84) saturate(0.98) contrast(1.06);
}

.channel-tile--threads {
  order: 3;
}

.channel-tile--facebook {
  order: 6;
  --channel-accent: #1877f2;
  --channel-soft: rgba(24, 119, 242, 0.1);
  --channel-icon-bg: #e9f2ff;
}

.channel-tile--dzen {
  order: 5;
  --channel-accent: #111111;
  --channel-soft: rgba(0, 0, 0, 0.07);
  --channel-icon-bg: #f2f2f2;
}

.channel-tile--telegram {
  order: 2;
  --channel-accent: #229ed9;
  --channel-soft: rgba(34, 158, 217, 0.12);
  --channel-icon-bg: #e6f7ff;
}

.channel-tile--instagram {
  order: 1;
  --channel-accent: #c13584;
  --channel-soft: rgba(193, 53, 132, 0.11);
  --channel-icon-bg: #fff0f7;
}

.channel-tile--instagram:hover .channel-tile__icon-wrap {
  background:
    linear-gradient(135deg, #f58529 0%, #dd2a7b 42%, #8134af 72%, #515bd4 100%);
  border-color: #dd2a7b;
}

.channel-tile--youtube {
  order: 0;
  --channel-accent: #ff0033;
  --channel-soft: rgba(255, 0, 51, 0.1);
  --channel-icon-bg: #fff0f3;
}

.error-page {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 48px;
}

.error-page__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  align-items: stretch;
  gap: 24px;
  padding: 48px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.error-page__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.error-page__eyebrow,
.error-page__recommendation-eyebrow {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.error-page__code {
  margin: 0;
  color: var(--text-watermark);
  font-size: clamp(82px, 12vw, 164px);
  font-weight: 820;
  line-height: 0.86;
  letter-spacing: 0;
}

.error-page__title {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: 0;
}

.error-page__message {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.error-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.error-page__button:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.error-page__button:focus-visible,
.error-page__candidate:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.error-page__button--primary {
  color: var(--body-start);
  background: var(--text);
  border-color: var(--text);
}

.error-page__button--primary:hover {
  color: var(--body-start);
  background: var(--text);
  border-color: var(--text);
}

.error-page__recommendation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.error-page__recommendation-title {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: 0;
}

.error-page__recommendation-text {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.error-page__candidate-list {
  margin-top: 22px;
}

.error-page__candidate {
  --channel-accent: #111111;
  --channel-icon-bg: #f1f1f1;

  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--channel-accent), var(--surface) 94%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--channel-accent), var(--surface) 78%);
  border-radius: 20px;
  box-shadow: 0 14px 36px color-mix(in srgb, var(--channel-accent), transparent 90%);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.error-page__candidate[hidden] {
  display: none;
}

.error-page__candidate:hover {
  border-color: color-mix(in srgb, var(--channel-accent), white 42%);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--channel-accent), transparent 84%);
  transform: translateY(-2px);
}

.error-page__candidate:hover .channel-tile__icon-wrap {
  background: var(--channel-accent);
  border-color: var(--channel-accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 16px 34px color-mix(in srgb, var(--channel-accent), transparent 72%);
}

.error-page__candidate:hover .channel-tile__icon--svg,
.error-page__candidate:hover .channel-tile__icon-wrap--invert-hover .channel-tile__icon,
.error-page__candidate:hover .channel-tile__icon-wrap--white-hover .channel-tile__icon {
  filter: brightness(0) invert(1);
}

.error-page__candidate.channel-tile--instagram:hover .channel-tile__icon-wrap {
  background:
    linear-gradient(135deg, #f58529 0%, #dd2a7b 42%, #8134af 72%, #515bd4 100%);
  border-color: #dd2a7b;
}

.error-page__candidate-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}

.error-page__candidate-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
}

.error-page__candidate-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.error-page__candidate-action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 36px;
  margin-top: 2px;
  padding: 0 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  background: var(--channel-accent);
  border-radius: 999px;
}

.error-page__candidate-action::after {
  margin-left: 8px;
  content: "→";
}

.site-footer {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 48px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 32px;
  padding: 28px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-footer__name {
  color: var(--text);
  font-family: "Comfortaa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer__text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer__credit {
  grid-column: 1 / -1;
  justify-self: center;
  width: fit-content;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
  transition: color 220ms ease, border-color 220ms ease;
}

.site-footer__credit:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.site-footer__credit:focus-visible,
.site-footer__link:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.site-footer__nav {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.site-footer__nav-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-footer__link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.07);
}

.site-footer__language {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  flex: 0 0 auto;
}

.site-footer__language-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 650;
}

.site-footer__language-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-footer__language-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 36px;
  padding: 0 14px;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-footer__language-button:hover {
  color: var(--text);
  background: var(--surface);
}

.site-footer__language-button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.site-footer__language-button.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: block;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 20px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 90px rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(18px);
}

.cookie-banner__content {
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0;
}

.cookie-banner__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner__link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 220ms ease;
}

.cookie-banner__link:hover {
  border-color: var(--text);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.cookie-banner__button:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  transform: translateY(-1px);
}

.cookie-banner__button:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.cookie-banner__button--primary {
  color: var(--body-start);
  background: var(--text);
  border-color: var(--text);
}

.cookie-banner__button--primary:hover {
  color: var(--body-start);
  background: var(--text);
  border-color: var(--text);
}

.faq-page {
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 48px;
}

.faq-page__inner {
  padding: 48px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.faq-page__header {
  max-width: 760px;
}

.faq-page__eyebrow {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-page__title {
  margin: 0;
  font-size: 52px;
  line-height: 1.05;
}

.faq-page__intro {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.faq-page__list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.faq-page__item {
  border-bottom: 1px solid var(--line);
}

.faq-page__item summary {
  position: relative;
  padding: 24px 52px 24px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-page__item summary::-webkit-details-marker {
  display: none;
}

.faq-page__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  font-size: 23px;
  font-weight: 400;
  background: var(--surface-muted);
  border-radius: 50%;
  transform: translateY(-50%);
}

.faq-page__item[open] summary::after {
  content: "−";
}

.faq-page__item summary:focus-visible {
  outline: 0;
  box-shadow: inset var(--focus-ring);
}

.faq-page__item p {
  max-width: 820px;
  margin: -6px 52px 24px 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page {
  width: min(1100px, calc(100% - 40px));
  margin: 24px auto 48px;
}

.legal-page__inner {
  padding: 48px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 24px;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.legal-page__back:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.legal-page__eyebrow {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-page__title {
  max-width: 820px;
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-page__updated {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.legal-page__content {
  max-width: 820px;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0;
}

.legal-page__content h2 {
  margin: 36px 0 12px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-page__content h3 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-page__content p {
  margin: 14px 0 0;
}

.legal-page__content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-page__content li {
  margin: 8px 0 0;
}

.legal-page__regional-notice {
  display: none;
}

html[data-user-region="ru"][data-language="ru"] .legal-page__regional-notice {
  display: block;
}

.legal-page__regional-notice h2 {
  margin-top: 36px;
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__background,
  .hero__content,
  .hero__logo-wrap,
  .channel-tile,
  .channel-tile__action,
  .site-footer__language-button,
  .site-header__link,
  .site-header__language-button,
  .site-header__menu-toggle span,
  .about-project__link,
  .about-news__media img,
  .about-news__subscribe,
  .error-page__button,
  .error-page__candidate,
  .cookie-banner,
  .cookie-banner__button {
    transition: none;
    transform: none;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    top: 0;
    width: calc(100% - 24px);
    margin-top: 0;
  }

  .site-header__inner {
    grid-template-columns: 116px minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 6px 8px;
    border-radius: 0 0 20px 20px;
  }

  .site-header__brand {
    width: 110px;
    height: 48px;
  }

  .site-header__logo {
    width: 86px;
    height: 86px;
  }

  html[lang="en"] .site-header__inner {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }

  html[lang="en"] .site-header__brand {
    width: 142px;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    justify-items: stretch;
    justify-self: stretch;
    gap: 4px;
    width: auto;
    padding: 10px;
    background: var(--chrome-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(20, 24, 31, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    pointer-events: none;
  }

  .site-header__controls {
    gap: 6px;
  }

  .site-header__language {
    gap: 2px;
    padding: 3px;
  }

  .site-header__language-button {
    min-width: 36px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .site-header.is-menu-open .site-header__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header__link {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
  }

  .site-header__controls {
    grid-column: 3;
  }

  .site-header__menu-toggle {
    display: flex;
  }

  .hero {
    width: calc(100% - 24px);
    height: 230px;
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero__content {
    padding: 24px;
  }

  .hero__logo-wrap {
    width: min(220px, 48vw);
  }

  .about-project {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .about-project__inner {
    padding: 32px;
    border-radius: 24px;
  }

  .about-project__title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .about-project__text {
    font-size: 16px;
    line-height: 1.65;
  }

  .about-page {
    width: calc(100% - 24px);
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 36px;
  }

  .about-page__hero,
  .about-page__story,
  .about-news {
    border-radius: 24px;
  }

  .about-page__hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px;
  }

  .about-page__title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .about-page__lead {
    font-size: 16px;
    line-height: 1.68;
  }

  .about-page__summary {
    grid-template-columns: 1fr;
  }

  .about-page__story {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px;
  }

  .about-page__section-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .about-page__story-text p {
    font-size: 16px;
    line-height: 1.68;
  }

  .about-news {
    padding: 32px;
  }

  .about-news__header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-news__intro {
    font-size: 16px;
  }

  .about-news__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .about-news__media,
  .about-news__media img,
  .about-news__media--empty {
    min-height: 240px;
  }

  .about-news__footer {
    align-items: stretch;
  }

  .about-news__subscribe {
    width: 100%;
  }

  .channel-directory {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .channel-directory__inner {
    padding: 32px;
    border-radius: 24px;
  }

  .channel-directory__header {
    margin-bottom: 24px;
  }

  .channel-directory__grid {
    grid-template-columns: 1fr;
  }

  .channel-tile {
    aspect-ratio: 5 / 6;
    justify-content: flex-end;
    min-height: 360px;
    background: var(--surface);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 18px 52px rgba(20, 24, 31, 0.12);
  }

  .channel-tile::before {
    display: none;
  }

  .channel-tile:hover {
    border-color: transparent;
    box-shadow:
      0 24px 64px color-mix(in srgb, var(--channel-accent), transparent 88%),
      0 18px 52px rgba(20, 24, 31, 0.14);
  }

  .channel-tile__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 0;
    overflow: hidden;
  }

  .channel-tile__cover-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .channel-tile__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
    margin-top: auto;
    padding: 120px 18px 18px;
    background: var(--channel-body-gradient);
  }

  .channel-tile__content {
    align-self: end;
  }

  .channel-tile__action {
    align-self: end;
    min-width: 78px;
  }

  .error-page {
    width: calc(100% - 24px);
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .error-page__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px;
    border-radius: 24px;
  }

  .error-page__code {
    font-size: clamp(72px, 24vw, 132px);
  }

  .error-page__title {
    font-size: clamp(30px, 8vw, 46px);
  }

  .error-page__message {
    font-size: 16px;
  }

  .error-page__recommendation {
    padding: 24px;
    border-radius: 22px;
  }

  .site-footer {
    width: calc(100% - 24px);
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .site-footer__inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 24px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-footer__links {
    justify-content: flex-start;
    justify-self: stretch;
  }

  .site-footer__language {
    align-items: flex-start;
    flex-direction: column;
    justify-self: stretch;
    gap: 10px;
    width: 100%;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .cookie-banner__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__button {
    flex: 1;
  }

  .legal-page {
    width: calc(100% - 24px);
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .legal-page__inner {
    padding: 32px;
    border-radius: 24px;
  }

  .legal-page__title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .legal-page__content {
    font-size: 16px;
    line-height: 1.68;
  }

  .legal-page__content h2 {
    font-size: 23px;
  }

  .legal-page__content h3 {
    font-size: 18px;
  }

  .faq-page {
    width: calc(100% - 24px);
    margin-top: 16px;
    margin-bottom: 32px;
  }

  .faq-page__inner {
    padding: 32px;
    border-radius: 24px;
  }

  .faq-page__title {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: calc(100% - 16px);
  }

  .site-header__inner {
    grid-template-columns: 80px minmax(0, 1fr) auto;
    padding: 6px;
    border-radius: 0 0 18px 18px;
  }

  .site-header__brand {
    width: 76px;
    height: 42px;
  }

  .site-header__logo {
    width: 78px;
    height: 78px;
    transform: scale(1.18);
  }

  html[lang="en"] .site-header__inner {
    grid-template-columns: 92px minmax(0, 1fr) auto;
  }

  html[lang="en"] .site-header__brand {
    width: 88px;
  }

  .site-header__controls {
    gap: 5px;
  }

  .site-header__language-button {
    min-width: 30px;
    height: 32px;
    padding: 0 6px;
  }

  .site-header__menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    width: calc(100% - 16px);
    height: 190px;
    margin-top: 8px;
    border-radius: 20px;
  }

  .hero__logo-wrap {
    width: min(180px, 52vw);
  }

  .about-project {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .about-project__inner {
    padding: 24px;
    border-radius: 20px;
  }

  .about-project__eyebrow {
    font-size: 11px;
  }

  .about-project__title {
    font-size: 30px;
    line-height: 1;
  }

  .about-project__text {
    margin-top: 18px;
    font-size: 15px;
  }

  .about-project__channels {
    margin-top: 24px;
  }

  .channel-directory {
    width: calc(100% - 16px);
    margin-top: 12px;
  }

  .channel-directory__inner {
    padding: 24px;
    border-radius: 20px;
  }

  .channel-directory__eyebrow {
    font-size: 11px;
  }

  .channel-directory__title {
    font-size: 30px;
  }

  .channel-directory__description {
    font-size: 15px;
  }

  .channel-tile {
    border-radius: 18px;
  }

  .channel-tile__cover {
    padding: 0;
  }

  .channel-tile__cover-image {
    border-radius: 0;
  }

  .channel-tile__body {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: end;
    gap: 10px 12px;
    padding: 108px 14px 14px;
  }

  .channel-tile__content {
    grid-column: 2;
  }

  .channel-tile__icon-wrap {
    grid-row: 1 / span 2;
    align-self: end;
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .channel-tile__icon {
    max-width: 30px;
    max-height: 30px;
  }

  .channel-tile__name {
    font-size: 17px;
  }

  .channel-tile__text {
    font-size: 13px;
  }

  .channel-tile__action {
    grid-column: 2;
    justify-self: start;
    width: auto;
    min-width: 108px;
    margin-left: 0;
  }

  .error-page {
    width: calc(100% - 16px);
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .error-page__inner {
    padding: 24px;
    border-radius: 20px;
  }

  .error-page__eyebrow,
  .error-page__recommendation-eyebrow {
    font-size: 11px;
  }

  .error-page__title {
    margin-top: 16px;
    font-size: 30px;
  }

  .error-page__message {
    font-size: 15px;
  }

  .error-page__actions {
    flex-direction: column;
  }

  .error-page__button {
    width: 100%;
  }

  .error-page__recommendation {
    padding: 20px;
    border-radius: 18px;
  }

  .error-page__recommendation-title {
    font-size: 23px;
  }

  .error-page__candidate {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 14px;
    border-radius: 18px;
  }

  .error-page__candidate .channel-tile__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .error-page__candidate-name {
    font-size: 17px;
  }

  .error-page__candidate-text {
    font-size: 13px;
  }

  .site-footer {
    width: calc(100% - 16px);
    margin-top: 12px;
    margin-bottom: 24px;
  }

  .site-footer__inner {
    padding: 20px;
    border-radius: 20px;
  }

  .site-footer__language-buttons {
    width: 100%;
  }

  .site-footer__language-button {
    flex: 1;
  }

  .cookie-banner {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .cookie-banner__inner {
    padding: 18px;
    border-radius: 20px;
  }

  .cookie-banner__title {
    font-size: 15px;
  }

  .cookie-banner__text {
    font-size: 13px;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__button {
    width: 100%;
  }

  .legal-page {
    width: calc(100% - 16px);
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .legal-page__inner {
    padding: 24px;
    border-radius: 20px;
  }

  .legal-page__eyebrow {
    font-size: 11px;
  }

  .legal-page__title {
    font-size: 30px;
    line-height: 1;
  }

  .legal-page__content {
    margin-top: 24px;
    font-size: 15px;
  }

  .legal-page__content h2 {
    margin-top: 30px;
    font-size: 21px;
  }

  .legal-page__content h3 {
    font-size: 17px;
  }

  .about-project--standalone {
    margin-bottom: 24px;
  }

  .faq-page {
    width: calc(100% - 16px);
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .faq-page__inner {
    padding: 24px;
    border-radius: 20px;
  }

  .faq-page__eyebrow {
    font-size: 11px;
  }

  .faq-page__title {
    font-size: 32px;
  }

  .faq-page__intro {
    font-size: 15px;
  }

  .faq-page__list {
    margin-top: 28px;
  }

  .faq-page__item summary {
    padding: 20px 44px 20px 0;
    font-size: 16px;
  }

  .faq-page__item summary::after {
    right: 0;
    width: 30px;
    height: 30px;
  }

  .faq-page__item p {
    margin-right: 0;
    font-size: 15px;
  }
}
