*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #120a1c;
  --surface: #1e1130;
  --surface-alt: #261540;
  --text: #f2ecfa;
  --text-muted: #b4a3cc;
  --accent: #9b6bff;
  --accent-2: #e85d8a;
  --border: rgba(200, 170, 255, 0.18);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --container: 1160px;
  --section-pad: 40px;
  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 60px;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

[data-theme="light"] {
  --bg: #f7f3fc;
  --surface: #ffffff;
  --surface-alt: #efe8f8;
  --text: #1a1028;
  --text-muted: #5c4d72;
  --accent: #7c4dff;
  --accent-2: #e85d8a;
  --border: rgba(90, 60, 140, 0.14);
  --shadow: 0 2px 8px rgba(60, 30, 100, 0.08);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 32px, 720px);
}

@media (min-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .container,
  .container--narrow {
    width: min(100% - 48px, var(--container));
  }
}

h1,
h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
}

h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
}

.section {
  padding-block: var(--section-pad);
}

.section--top {
  padding-top: calc(var(--section-pad) + 8px);
}

.section--alt {
  background: color-mix(in srgb, var(--surface-alt) 60%, transparent);
}

.section__lead {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 88%, #000);
}

.btn--secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn--secondary:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.btn--sm {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 13px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.header--scrolled {
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.header__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.header__brand:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.header__nav a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 180ms ease, background 180ms ease;
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.header__nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header__cta {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 180ms ease;
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: block;
}

[data-theme="light"] .icon-moon {
  display: none;
}

:root:not([data-theme="light"]) .icon-sun {
  display: none;
}

:root:not([data-theme="light"]) .icon-moon {
  display: block;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.burger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-menu__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
}

.mobile-menu__close svg {
  width: 20px;
  height: 20px;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 12px;
  width: 100%;
}

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

.conditions-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.conditions-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.conditions-list li {
  margin-bottom: 8px;
}

.conditions-list li:last-child {
  margin-bottom: 0;
}

.conditions-list strong {
  color: var(--text);
}

.conditions-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.channel-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 150ms ease, background 150ms ease;
}

.channel-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.channel-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.channel-card__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.channel-card__note {
  font-size: 11px;
  color: var(--text-muted);
}

.channel-card__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-top: 4px;
}

.footer {
  padding: 32px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 40%, var(--bg));
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer__brand {
  margin: 0;
  font-size: 15px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 180ms ease;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__legal {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer__legal {
    width: 100%;
    text-align: center;
    padding-top: 8px;
  }
}
