:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-soft: #f4f4f5;
    --surface-strong: #18181b;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --text: #09090b;
    --text-soft: #27272a;
    --muted: #71717a;
    --muted-soft: #a1a1aa;
    --accent: #c5f94a;
    --accent-strong: #a3e635;
    --accent-deep: #65a30d;
    --accent-ink: #1a2e05;
    --ink: #09090b;
    --footer-bg: #09090b;
    --footer-text: #a1a1aa;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04);
    --shadow: 0 1px 3px rgba(9, 9, 11, 0.06), 0 1px 2px rgba(9, 9, 11, 0.04);
    --header-height: 68px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--text); }

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
    white-space: nowrap;
    font-family: inherit;
}

.btn--primary {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn--primary:disabled {
    background: var(--surface-soft);
    color: var(--muted-soft);
    border-color: var(--border);
    cursor: not-allowed;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1.02rem;
}

.btn--dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn--dark:hover { background: #18181b; border-color: #18181b; }

.btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--lg { height: 52px; padding: 0 24px; font-size: 0.98rem; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 0.85rem; }
.btn--block { width: 100%; }

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s var(--ease);
    font-family: inherit;
}
.pill:hover { border-color: var(--text); color: var(--text); }
.pill.active,
.pill.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 115;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

body.header-menu-open .header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: var(--header-height);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text);
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo__img {
    height: 40px;
    width: auto;
    display: block;
    max-height: 44px;
}

.logo--light .logo__img {
    height: 32px;
    max-height: 36px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}
.nav__link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-soft); }

.header-nav__item.has-dropdown {
  position: relative;
}
.header-nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 8px 0;
  min-width: 180px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.header-nav__item.has-dropdown:hover .header-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header-nav__dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}
.header-nav__dropdown a:hover {
  background: var(--surface-soft);
}



.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.header-nav__item {
  display: flex;
  align-items: center;
}

.header-nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.header-nav__link:hover {
  color: var(--text);
  background: var(--surface-soft);
}

.header-nav__chevron {
  display: none;
}

.header-burger {
  display: none;
}

.header__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.header__phone {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
}
.header__phone:hover { text-decoration: underline; text-underline-offset: 4px; }

.header-burger {
  display: none;
}

.header-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text);
}

.header-burger__line {
    display: block;
    height: 2px;
    width: 22px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

body.header-menu-open .header-burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
body.header-menu-open .header-burger__line:nth-child(2) {
    opacity: 0;
}
body.header-menu-open .header-burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.header__backdrop {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 9, 11, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 85;
}
body.header-menu-open .header__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section { padding: 44px 0; }
.section + .section { padding-top: 0; }

.section__head { margin-bottom: 32px; max-width: 760px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--inline {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.section__title {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.section__title--sm { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.section__sub {
    margin-top: 14px;
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.55;
}

@media (min-width: 1200px) {
    #tariffs .section__head {
        max-width: none;
    }
    #tariffs .section__sub {
        white-space: nowrap;
        font-size: 1.02rem;
    }
}

.hero {
    position: relative;
    padding: 36px 0 20px;
    overflow: hidden;
    isolation: isolate;
}
.hero + .section--tariffs { padding-top: 24px; }
.hero__inner {
    position: relative;
    width: 100%;
}
.hero__inner::before {
    content: '';
    position: absolute;
    top: 44%;
    left: clamp(220px, 35vw, 440px);
    transform: translate(-50%, -50%);
    width: min(760px, 90vw);
    aspect-ratio: 1.4 / 1;
    background: radial-gradient(closest-side, rgba(197, 249, 74, 0.7), transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(24px);
}
.hero__inner > * { position: relative; }
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border-radius: 999px;
}
.hero__eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.18);
}
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.14;
    font-family: var(--font-display);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.hero__title .accent {
    background: var(--accent);
    color: var(--text);
    padding: 0 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero__lead {
    margin-top: 24px;
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 620px;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.hero__lead-break {
  display: none;
}

@media (min-width: 900px) {
  .hero__lead-break {
    display: inline;
  }
}

@media (min-width: 900px) {
  .hero__lead-no-break {
    white-space: nowrap;
  }

  .hero__lead {
    max-width: 720px;
  }
}
.hero__title.is-swapping,
.hero__lead.is-swapping {
    opacity: 0;
    transform: translateY(8px);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.hero__switcher {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__switch-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #d4d4d8;
    padding: 0;
    transition: all 0.18s var(--ease);
}
.hero__switch-dot:hover {
    background: #a1a1aa;
}
.hero__switch-dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: var(--ink);
}


.config {
    margin-bottom: 24px;
}
.config__row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 12px;
    align-items: end;
    background: #f1f2f4;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
}
.config__field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.config__label {
    margin-bottom: 8px;
    font-size: 0.73rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.config__select {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 0;
    border-radius: var(--radius);
    text-align: left;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
    font-family: inherit;
    box-shadow: 0 1px 0 rgba(9, 9, 11, 0.06);
}
.config__select:hover {
    background: #fcfcfd;
    box-shadow: 0 0 0 1px rgba(9, 9, 11, 0.1);
}
.config__select > svg:first-child { width: 18px; height: 18px; color: var(--accent-deep); flex-shrink: 0; }
.config__select-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config__select-chevron { color: var(--muted) !important; width: 18px; height: 18px; flex-shrink: 0; }
.config__pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
}
.config__field--category .config__pills,
.config__field--period .config__pills {
    flex-wrap: nowrap;
    background: #e6e8ed;
    border-radius: 10px;
    padding: 2px;
    gap: 2px;
    width: 100%;
}


.category-btn,
.period-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s var(--ease);
    cursor: pointer;
    font-family: inherit;
}
.config__field--category .category-btn,
.config__field--period .period-btn {
    height: 32px;
    padding: 0 9px;
    font-size: 0.8rem;
    letter-spacing: 0;
    min-width: 0;
    white-space: nowrap;
    border: 0;
    background: transparent;
    color: #4b5563;
    border-radius: 8px;
}


.config__field--category .category-btn {
    flex: 1;
    padding: 0 13px;
    font-size: 0.78rem;
    letter-spacing: -0.015em;
}
.config__field--period .period-btn {
    flex: 1;
    min-width: 56px;
    border-radius: 6px;
}
.config__field--period .config__pills {
    justify-content: flex-start;
}
.category-btn:hover,
.period-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.5);
}
.category-btn.active,
.period-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(9, 9, 11, 0.2);
}


.tariffs {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 12px;
    align-items: stretch;
}
.tariffs__nav {
    align-self: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    transition: all 0.15s var(--ease);
    z-index: 1;
}
.tariffs__nav:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.tariffs__nav:disabled { opacity: 0.35; cursor: default; }
.tariffs__nav svg { width: 16px; height: 16px; }
.tariffs__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.tariffs__grid::-webkit-scrollbar { display: none; }
.tariffs__grid > .tariff-card {
    flex: 0 0 calc((100% - 32px) / 3.4);
    scroll-snap-align: start;
    min-width: 0;
}

.tariff-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.tariff-card:hover { border-color: var(--text); }
.tariff-card.popular {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.tariff-card.popular .tariff-line__label,
.tariff-card.popular .tariff-line__sub,
.tariff-card.popular .tariff-included__item { color: rgba(255, 255, 255, 0.55); }
.tariff-card.popular .tariff-line__value,
.tariff-card.popular .tariff-line__num,
.tariff-card.popular .tariff-line__unit,
.tariff-card.popular .tariff-line__plain { color: #fff; }
.tariff-card.popular .tariff-line__unit { color: rgba(255, 255, 255, 0.55); }
.tariff-card.popular .tariff-line__icon { color: var(--accent); }
.tariff-card.popular .tariff-divider { background: rgba(255, 255, 255, 0.12); }
.tariff-card.popular .tariff-title { color: #fff; }

.tariff-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    font-family: var(--font-display);
}
.tariff-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tariff-title-devices {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tariff-title-device {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    color: #3f6212;
    background: rgba(197, 249, 74, 0.24);
}
.tariff-title-device svg {
    width: 14px;
    height: 14px;
}
.tariff-card.popular .tariff-title-device {
    color: #d9f99d;
    background: rgba(197, 249, 74, 0.16);
}


.tariff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 145px;
  background: radial-gradient(
    160% 120% at 0% 0%,
    rgba(101, 163, 13, 0.72) 0%,
    rgba(101, 163, 13, 0.38) 35%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  border-radius: var(--radius-lg);
}


.tariff-card > * {
  position: relative;
  z-index: 1;
}

.tariff-card.popular::before {
  background: radial-gradient(
    160% 120% at 0% 0%,
    rgba(132, 204, 22, 0.80) 0%,
    rgba(132, 204, 22, 0.42) 36%,
    transparent 72%
  );
}

.tariff-lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tariff-line {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
}
.tariff-line__icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--accent-deep);
}
.tariff-line__icon svg { width: 20px; height: 20px; }
.tariff-line__text { min-width: 0; }
.tariff-line__value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
}
.tariff-line__num { font-weight: 700; }
.tariff-line__unit { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.tariff-line__plain { font-weight: 600; color: var(--text); }
.tariff-line__label {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 2px;
}
.tariff-line--internet .tariff-line__label {
    display: flex;
    align-items: center;
    margin-top: 6px;
    width: 100%;
    padding: 4px 28px;           
    padding-left: 36px;          
    border-radius: 999px;
    background: rgba(197, 249, 74, 0.22);
    color: #355109;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-left: -36px;          
    margin-right: -28px;         
}
.tariff-card.popular .tariff-line--internet .tariff-line__label {
    background: rgba(197, 249, 74, 0.18);
    color: #d9f99d;
}


.tariff-plan-label {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 6px;
}
.tariff-plan-label__text {
  flex: 1 1 auto;
  min-width: 0;
}
.tariff-plan-label__excl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  border-radius: 50%;
  background: #2a4200;
  color: #c5f94a;
  flex-shrink: 0;
  margin-left: auto; 
  box-shadow: 0 0 0 1px rgba(53, 81, 9, 0.25);
}
.tariff-card.popular .tariff-plan-label__excl {
  background: #1a2f00;
  color: #c5f94a;
  box-shadow: 0 0 0 1px rgba(217, 249, 157, 0.25);
}
.tariff-line__sub {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tariff-included__item { color: var(--text-soft); font-size: 0.85rem; }
.tariff-line--disabled .tariff-line__icon { color: var(--muted-soft); }
.tariff-line--disabled .tariff-line__value,
.tariff-line--disabled .tariff-line__plain { color: var(--muted); font-weight: 500; }

.tariff-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 1px;
}
.tariff-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tariff-card.popular .tariff-pill { background: var(--accent); color: var(--text); }

.tariff-divider {
    height: 1px;
    background: var(--border);
}

.tariff-price-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tariff-price,
.tariff-price--dark,
.tariff-price--light {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.tariff-card.popular .tariff-price,
.tariff-card.popular .tariff-price--dark,
.tariff-card.popular .tariff-price--light { color: #fff; }
.tariff-price__suffix,
.tariff-price small,
.tariff-price span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    margin-left: 4px;
    font-family: var(--font);
    letter-spacing: 0;
}
.tariff-card.popular .tariff-price__suffix,
.tariff-card.popular .tariff-price span { color: rgba(255, 255, 255, 0.55); }
.tariff-benefit {
    font-size: 1.08rem;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.3;
}

.tariff-benefit br + .tariff-benefit__strong {
  display: inline-block;
  margin-top: 1px;
}
.tariff-card.popular .tariff-benefit { color: rgba(255, 255, 255, 0.6); }
.tariff-benefit__strong { color: var(--accent-deep); font-weight: 800; }
.tariff-card.popular .tariff-benefit__strong { color: var(--accent); }
.tariff-discount {
    font-size: 0.85rem;
    color: var(--accent-deep);
    font-weight: 600;
}
.tariff-card.popular .tariff-discount { color: var(--accent); }

.tariff-btn,
.tariff-card .btn-connect {
    width: 100%;
    height: 46px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    transition: all 0.15s var(--ease);
    font-family: inherit;
}
.tariff-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.tariff-card.popular .tariff-btn { background: var(--accent); border-color: var(--accent); color: var(--text); }
.tariff-card.popular .tariff-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.tariff-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 36px;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}


.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.feature {
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 26px;
    transition: background 0.18s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature:hover { background: var(--surface-soft); }
.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--text);
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-size: 1.05rem; font-weight: 700; }
.feature__text { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }


.services__tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.services-tab {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s var(--ease);
    cursor: pointer;
    font-family: inherit;
}
.services-tab:hover { border-color: var(--text); color: var(--text); }
.services-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.service-card {
    background: var(--surface-soft);
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.service-card:hover {
    transform: translateY(-2px);
    background: #ededf1;
}
.service-card__media {
    aspect-ratio: 16 / 10;
    background: #111114;
    overflow: hidden;
    border-bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    padding: 0;
}


.iptv-features {
    margin-top: 36px;
}

.iptv-features__head {
    text-align: center;
    margin-bottom: 28px;
}

.iptv-features__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.iptv-feature {
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.iptv-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
}

.iptv-feature__media {
    aspect-ratio: 16 / 10;
    background: #111114;
    overflow: hidden;
}

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

.iptv-feature__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.iptv-feature__body h3 {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.018em;
    margin: 0;
    line-height: 1.25;
}

.iptv-feature__body p {
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.58;
    margin: 0;
    flex: 1;
}

@media (max-width: 820px) {
    .iptv-features__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .iptv-features__head {
        margin-bottom: 20px;
    }
}


.iptv-how {
    margin-top: 48px;
    margin-bottom: 12px;
}

.iptv-how__title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.iptv-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.iptv-step {
    display: flex;
    gap: 16px;
    background: var(--surface-soft);
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.iptv-step:hover {
    background: #ededf1;
    transform: translateY(-2px);
}

.iptv-step__num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-strong);
    line-height: 1;
    flex-shrink: 0;
    width: 34px;
}

.iptv-step__content h4 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.iptv-step__content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.iptv-cta {
    margin-top: 42px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 42px 48px;
}

.iptv-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.iptv-cta__text h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.025em;
}

.iptv-cta__text p {
    font-size: 0.98rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    max-width: 520px;
    line-height: 1.55;
}

.iptv-cta__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.iptv-cta__phone {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.iptv-cta__phone:hover {
    color: #fff;
}

@media (max-width: 820px) {
    .iptv-how__steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .iptv-cta {
        padding: 32px 24px;
    }
    .iptv-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .iptv-cta__action {
        align-items: flex-start;
    }
}
.service-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.service-card__title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.service-card__desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.9rem;
    width: fit-content;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s var(--ease);
}
.service-card__link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.18s var(--ease);
}
.service-card__link:hover { border-color: var(--text); }
.service-card__link:hover svg { transform: translateX(3px); }


.services__carousel {
  position: relative;
}

.services__nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(212, 212, 216, 0.22);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 3;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  padding: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.services__nav svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.services__nav--prev { left: 10px; }
.services__nav--next { right: 10px; }

.services__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(212, 212, 216, 0.4);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
}

.services__nav:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.48);
  transform: scale(0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.services__nav:disabled,
.services__nav[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}


.callback {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.callback::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(closest-side, rgba(197, 249, 74, 0.18), transparent 70%);
    pointer-events: none;
}
.callback__intro { position: relative; }
.callback__intro .section__title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: #fff; }
.callback__intro .section__sub { margin-top: 16px; color: rgba(255, 255, 255, 0.65); }
.callback__perks {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.callback__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}
.callback__perks li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: var(--radius-sm);
    background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 11px 11px;
    flex-shrink: 0;
}
.callback__form {
    position: relative;
    background: var(--surface);
    color: var(--text);
    padding: 28px;
    border-radius: var(--radius-lg);
}


.reviews {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.reviews__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.review-card {
    background: var(--surface-soft);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-head {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: var(--font-display);
}
.review-meta { min-width: 0; }
.review-name { font-weight: 700; font-size: 0.95rem; }
.review-date { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.review-rating { display: inline-flex; }
.review-stars { display: inline-flex; gap: 2px; color: var(--border-strong); }
.review-star { width: 14px; height: 14px; display: inline-grid; place-items: center; }
.review-star svg { width: 14px; height: 14px; }
.review-star.is-on { color: var(--accent-deep); }
.review-text {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}
.reviews__controls {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.reviews__dots { display: flex; gap: 6px; align-items: center; }
.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--border-strong);
    border: 0;
    padding: 0;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
.reviews-dot.is-active { width: 26px; background: var(--ink); }
.reviews__arrows { display: flex; gap: 6px; }
.reviews__arrow {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    transition: all 0.15s var(--ease);
}
.reviews__arrow:hover { color: var(--text); border-color: var(--text); }
.reviews__arrow svg { width: 16px; height: 16px; }


.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; gap: 14px; }
.form__row--two { grid-template-columns: 1fr 1fr; }
.form__group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form__group label,
.form__label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form__group input,
.form__group textarea {
    height: 46px;
    width: 100%;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0 14px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
    font-family: inherit;
}
.form__group textarea {
    height: auto;
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.5;
}
.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(197, 249, 74, 0.4);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--muted-soft); }

.form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}
.form__consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-deep);
    flex-shrink: 0;
}
.form__consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.form__error {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #fef2f2;
    color: var(--danger);
    font-size: 0.88rem;
    border: 1px solid #fecaca;
}

.form__tariff-info {
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.form__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.form__actions .btn { min-width: 140px; }

.callback-topic__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


.page { padding-top: 110px; }
#iptvPage.page,
#newsPage.page,
#paymentsPage.page { padding-top: 28px; }
.page__chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.iptv-hero {
    margin-top: 8px;
    margin-bottom: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}
.iptv-hero__media {
    position: relative;
    aspect-ratio: 21/9;
    background: var(--surface-soft);
}
.iptv-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s var(--ease);
}
.iptv-hero__slide.is-active { opacity: 1; }

.iptv-channels { margin-top: 60px; }
.iptv-channels__wall,
.iptv-channels-wall {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.iptv-channels-wall__loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
    border: 0;
}
.iptv-channel-logo {
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    transition: background 0.18s var(--ease);
}
.iptv-channel-logo:hover { background: var(--surface-soft); }
.iptv-channel-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.iptv-channels-block[hidden] { display: none !important; }


.offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.offer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.18s var(--ease);
    display: flex;
    flex-direction: column;
}
.offer-card:hover { border-color: var(--text); }
.offer-card__link { display: flex; flex-direction: column; flex: 1; }
.offer-card__media {
    aspect-ratio: 16 / 10;
    background: var(--surface-soft) center / cover no-repeat;
}
.offer-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer-card__date { color: var(--muted); font-size: 0.8rem; }
.offer-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.offer-card p { color: var(--muted); font-size: 0.92rem; }
.offer-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}


.news { display: grid; gap: 14px; }
.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.18s var(--ease);
}
.news-card:hover { border-color: var(--text); }
.news-card__date {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card__image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    max-height: 340px;
}

@media (max-width: 720px) {
    .news-card__image {
        max-height: 220px;
    }
}
.news-card__title { font-size: 1.15rem; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.02em; }
.news-card__text { color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
.news-empty {
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
}
.news-empty__title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.news-empty__text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}


.payments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.payment {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.18s var(--ease);
}
.payment:hover { border-color: var(--text); }
.payment--sbp { grid-column: 1 / -1; }
.payment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.payment__logo { max-height: 36px; width: auto; }
.payment__badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.payment__badge--info { background: var(--ink); color: var(--accent); }
.payment__badge--success { background: var(--accent); color: var(--text); }
.payment__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.payment__text { color: var(--muted); font-size: 0.93rem; }
.payment__form { display: flex; flex-direction: column; gap: 12px; }
.payment__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.payment__actions--single {
    grid-template-columns: 1fr;
}
.payment__balance {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--surface-soft);
    border: 1px solid var(--border);
}
.payment__balance-main { font-weight: 700; }
.payment__balance-fio { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.payment__qr {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
}
.payment__qr-img {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    background: #fff;
    object-fit: contain;
}
.payment__qr-text p { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.payment__stores { display: flex; flex-direction: column; gap: 8px; }
.payment__stores img { height: 34px; width: auto; }
.payment-card__wip-cover {
    position: absolute;
    inset: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: var(--text-soft);
}
.payment__chip {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.footer {
    margin-top: 56px;
    background: var(--footer-bg);
    color: var(--footer-text);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 24px 32px;
}
.footer .logo__img {
    
}
.footer__about {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    max-width: 280px;
}
.footer__col h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font);
    font-weight: 700;
}
.footer__col a,
.footer__col p {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
    font-size: 0.92rem;
    transition: color 0.15s var(--ease);
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}
.footer__bottom a { color: rgba(255, 255, 255, 0.4); }
.footer__bottom a:hover { color: var(--accent); }


.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s var(--ease);
    z-index: 80;
    box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 18px; height: 18px; }


.cookie {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px 20px;
    display: none;                 
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 95;
    max-width: 720px;
    margin: 0 auto;
}
.cookie.is-visible {
    display: flex;                 
}
.cookie.is-hidden { display: none !important; }
.cookie__text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}


.popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.popup.open { display: flex; }
.popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(3px);
}
.popup__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(9, 9, 11, 0.25);
    padding: 32px;
}
.popup__panel--lg { max-width: 760px; }
.popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.popup__head h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.popup__close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    display: grid;
    place-items: center;
    transition: all 0.15s var(--ease);
}
.popup__close:hover { color: var(--text); border-color: var(--text); }
.popup__close svg { width: 16px; height: 16px; }
.popup__body--center { display: grid; place-items: center; padding: 20px 0; }


.location-popup-tree { padding: 0; }
.location-tree-node { margin-bottom: 2px; }
.location-tree-node-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s var(--ease);
    color: var(--text-soft);
    font-size: 0.95rem;
}
.location-tree-node-inner:hover { background: var(--surface-soft); }
.location-tree-node-inner.selected { background: var(--ink); color: var(--accent); font-weight: 600; }
.location-tree-node-children { padding-left: 16px; }
.location-tree-node:not(.expanded) .location-tree-node-children { display: none; }


.hero-stories { display: none !important; }


.tariff-tooltip-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(9, 9, 11, 0.55);
    backdrop-filter: blur(3px);
}
.tariff-tooltip-overlay__panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(9, 9, 11, 0.25);
}
.tariff-tooltip-overlay__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 212, 216, 0.32);
    background: var(--surface);
    color: var(--text-soft);
    display: grid;
    place-items: center;
}
.tariff-tooltip-overlay__text { color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }
.tariff-tooltip__link { color: var(--text); font-weight: 600; margin-left: 6px; text-decoration: underline; }


.tariff-hover-tooltip {
  position: fixed;
  z-index: 99999;
  background: #0f0f11;
  color: #c5f94a;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 9px 13px;
  border-radius: 7px;
  max-width: 260px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(197, 249, 74, 0.15);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  white-space: normal;
  text-align: left;
}


.tariff-hover-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0f0f11;
}


@media (max-width: 1080px) {


    
    .header-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--text);
        z-index: 130;
    }
    .header-burger__line {
        display: block;
        height: 2px;
        width: 22px;
        margin: 0 auto;
        background: currentColor;
        border-radius: 1px;
        transition: transform 0.25s, opacity 0.25s;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 90vw);
        margin: 0;
        padding: 72px 20px 32px;   
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: #fff;
        box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12);
        transform: translateX(105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 105;
    }
    body.header-menu-open .header-nav {
        transform: translateX(0);
    }

    
    .header-nav__item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .header-nav__item:last-child {
        border-bottom: none;
    }

    .header-nav__link {
        display: block;
        padding: 14px 8px;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text);
        min-height: 48px;   
    }

    
    .header-nav__chevron {
        display: none;
    }
    .header-nav__dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 12px 20px;
        max-height: none;
        background: transparent;
    }
    .header-nav__dropdown a {
        padding: 10px 12px;
        font-size: 1rem;
        display: block;
    }
    .header__phones { display: none; }

    .config__row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    .config__field {
        padding: 0;
    }
    .config__field--category .config__pills,
    .config__field--period .config__pills {
        flex-wrap: wrap;
        gap: 6px;
    }

    .tariffs { grid-template-columns: 1fr; }
    .tariffs__nav { display: none; }
    .tariffs__grid > .tariff-card { flex: 0 0 calc((100% - 16px) / 2); }

    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .callback { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
    .callback__form { padding: 24px; }

    .reviews__track { grid-template-columns: 1fr; }

    .payments { grid-template-columns: 1fr; }
    .payment--sbp { grid-column: 1 / -1; }

    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 48px 24px 30px; }

    .iptv-channels__wall,
    .iptv-channels-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }

    .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .container { padding: 0 8px; }

    .logo__img {
        height: 34px;
        max-height: 38px;
    }

    .logo--light .logo__img {
        height: 28px;
        max-height: 32px;
    }
    .section { padding: 36px 0; }
    .hero { padding: 28px 0 18px; }
    .hero + .section--tariffs { padding-top: 18px; }

    .header__actions { gap: 8px; }
    .header__actions .btn--primary { display: none; }

    .hero__title { font-size: clamp(2.1rem, 8.5vw, 2.8rem); }
    .hero__inner::before {
        top: 34%;
        left: 50%;
        width: min(620px, 120vw);
    }

    .tariffs__grid > .tariff-card { flex: 0 0 100%; }

    
    .tariffs {
      position: relative;
    }

    
    .tariffs__nav {
      display: grid;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.38);
      border: 1px solid rgba(212, 212, 216, 0.22);
      color: var(--text);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
      z-index: 3;
      align-items: center;
      justify-content: center;
      padding: 0;
      transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    .tariffs__nav svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
    .tariffs__nav--prev { left: 10px; }
    .tariffs__nav--next { right: 10px; }

    .tariffs__nav:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.65);
      border-color: rgba(212, 212, 216, 0.4);
      box-shadow: 0 2px 7px rgba(0, 0, 0, 0.09);
    }
    .tariffs__nav:active:not(:disabled) {
      background: rgba(255, 255, 255, 0.48);
      transform: scale(0.92);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    .tariffs__nav:disabled,
    .tariffs__nav[aria-hidden="true"] {
      opacity: 0;
      pointer-events: none;
    }

    .tariffs__grid {
      padding: 2px 44px 14px 4px; 
      margin-left: -2px;
      margin-right: -2px;
    }

    
    .tariffs__grid > .tariff-card {
      flex: 0 0 calc(100% - 12px);
      min-width: 280px;
      max-width: 380px;
      scroll-snap-align: start;
    }

    .features { grid-template-columns: 1fr; }

    
    .feature {
      display: grid;
      grid-template-columns: 34px 1fr;
      align-items: start;
      gap: 10px 12px;
      padding: 16px 14px;
      border-right: none;
    }
    .feature__icon {
      width: 34px;
      height: 34px;
      margin-bottom: 0;
      grid-column: 1;
      grid-row: 1;
    }
    .feature__icon svg { width: 18px; height: 18px; }
    .feature__title {
      grid-column: 2;
      grid-row: 1;
      font-size: 0.98rem;
      line-height: 1.25;
      margin-top: 4px;
    }
    .feature__text {
      grid-column: 2;
      grid-row: 2;
      font-size: 0.88rem;
      margin-top: 2px;
    }

    
    .services__grid {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 2px 44px 14px 4px; 
      margin-left: -2px;
      margin-right: -2px;
    }
    .services__grid::-webkit-scrollbar { display: none; }
    .service-card {
      flex: 0 0 82%;
      min-width: 235px;
      max-width: 270px;
      scroll-snap-align: start;
    }

    .services__nav {
      display: grid;
    }

    .offers { grid-template-columns: 1fr; }

    .form__row--two { grid-template-columns: 1fr; }

    .footer__grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 16px 24px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px 26px; }

    .config { padding: 8px; }
    .callback { padding: 24px; gap: 24px; }
    .callback__form { padding: 20px; }
    .payment { padding: 22px; }
    .payment__qr { grid-template-columns: 1fr; text-align: center; }
    .payment__qr-img { margin: 0 auto; }

    .iptv-channels__wall,
    .iptv-channels-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .cookie { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; flex-direction: column; align-items: stretch; }

    .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }

    #advantages .section__head { margin-bottom: 20px; }
    #reviews-section .section__head { margin-bottom: 16px; }
    .reviews { padding: 18px; }
    .reviews__controls { margin-top: 14px; }

    
    #reviews-section { padding-bottom: 28px; }
    .footer { margin-top: 20px; }

    
    .popup { padding: 16px; }
    .popup__panel { padding: 22px 20px; }
    .form__actions { gap: 8px; }
    .form__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 12px;
    }
}


@media (max-width: 1080px) {
    .header__phones { display: none; }

    .header-burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        color: var(--text);
        z-index: 130;
    }
    .header-burger__line {
        display: block;
        height: 2px;
        width: 22px;
        margin: 0 auto;
        background: currentColor;
        border-radius: 1px;
        transition: transform 0.25s, opacity 0.25s;
    }

    
    body.header-menu-open .header-burger__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.header-menu-open .header-burger__line:nth-child(2) {
        opacity: 0;
    }
    body.header-menu-open .header-burger__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    
    .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    
    .header-nav {
        position: fixed !important;
        top: var(--header-height) !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(320px, 90vw) !important;
        margin: 0 !important;
        padding: 16px 20px 32px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        background: #fff !important;
        box-shadow: -8px 0 40px rgba(15, 23, 42, 0.12) !important;
        transform: translateX(105%) !important;
        transition: transform 0.3s var(--ease) !important;
        will-change: transform;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 105 !important;
    }
    body.header-menu-open .header-nav {
        transform: translateX(0) !important;
    }

    
    .header-nav__item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .header-nav__item:last-child {
        border-bottom: none;
    }

    .header-nav__link {
        display: block;
        width: 100%;
        padding: 14px 8px;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text);
    }

    
    .header-nav__chevron {
        display: none;
    }
    .header-nav__dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 8px 8px;
        background: transparent;
    }
    .header-nav__dropdown a {
        display: block;
        padding: 10px 12px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--muted);
    }
    .header-nav__dropdown a:hover {
        color: var(--text);
        background: transparent;
    }

}
