/* ===================== КЕЙСЫ: карточки (главная и страница kejsy.html) ===================== */

.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cs-card {
  display: flex; flex-direction: column;
  background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  color: inherit; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .cs-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(21, 23, 26, .35); }
  .cs-card:hover .cs-cover__num { transform: scale(1.04); }
}

/* Обложка: крупная цифра результата вместо картинки */
.cs-cover {
  position: relative; aspect-ratio: 16 / 9; padding: 26px 28px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: #15171A; color: #F4F4F1;
}
.cs-cover--gold { background: var(--gold, #FFBE24); color: #15171A; }
.cs-cover--paper { background: #E9EAE4; color: #15171A; }
.cs-cover::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 40px solid currentColor; opacity: .06;
}
.cs-cover__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.cs-cover__num {
  font-family: var(--display); font-weight: 600; line-height: .95; letter-spacing: -.03em;
  font-size: clamp(40px, 5vw, 68px); transform-origin: left bottom; transition: transform .5s var(--ease);
}
.cs-cover__cap { margin-top: 10px; font-size: 15px; font-weight: 600; opacity: .8; max-width: 30ch; }

.cs-body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 26px; }
.cs-niche { font-size: 13px; font-weight: 700; color: var(--gold-ink, #8a6100); }
.cs-title { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.cs-desc { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-body, #3a3d42); }
.cs-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-kpi b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.cs-kpi span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2, #6b6f75); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.cs-tags span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper, #F1F2EE); border: 1px solid var(--line); }
.cs-more { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 15px; }

/* Шапка блока на главной: заголовок слева, «Все кейсы» справа */
.cs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.cs-all {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid currentColor; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap;
  transition: background .25s, color .25s;
}
@media (hover: hover) { .cs-all:hover { background: var(--ink-0, #15171A); color: #fff; border-color: var(--ink-0, #15171A); } }

/* Подробности кейса на странице всех кейсов */
.cs-details { margin-top: 18px; border-top: 1px solid var(--line); }
.cs-details summary { list-style: none; cursor: pointer; padding-top: 16px; font-weight: 700; font-size: 15px; }
.cs-details summary::-webkit-details-marker { display: none; }
.cs-details summary::after { content: " ↓"; }
.cs-details[open] summary::after { content: " ↑"; }
.cs-details .kase__h { margin-top: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2, #6b6f75); }
.cs-details p, .cs-details li { font-size: 15px; line-height: 1.55; }
.cs-details ul { margin-top: 6px; padding-left: 18px; }
.cs-details .cs-src { margin-top: 12px; font-size: 13px; color: var(--ink-2, #6b6f75); }

/* Страница всех кейсов */
.cs-page { padding: clamp(110px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }
.cs-page h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; }
.cs-page .lead { margin-top: 18px; max-width: 60ch; }
.cs-filters { display: grid; gap: 14px; margin: 40px 0 30px; }
.cs-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-filter__label { width: 70px; font-size: 13px; font-weight: 700; color: var(--ink-2, #6b6f75); }
.cs-filter button {
  font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--line-strong, #cfd1cc); color: inherit; transition: background .2s, border-color .2s, color .2s;
}
.cs-filter button.is-on { background: var(--ink-0, #15171A); border-color: var(--ink-0, #15171A); color: #fff; }
.cs-empty { padding: 40px 0; color: var(--ink-2, #6b6f75); }
.cs-card[hidden] { display: none; }
.cs-back { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--ink-2, #6b6f75); text-decoration: none; }

.cs-final { margin-top: clamp(60px, 8vw, 100px); padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: var(--gold, #FFBE24); color: #15171A; }
.cs-final h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.cs-final p { margin-top: 14px; max-width: 52ch; font-size: 17px; }
.cs-final__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 860px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cs-cover { padding: 20px 22px; }
  .cs-body { padding: 20px 22px 22px; }
  .cs-title { font-size: 19px; }
  .cs-filter__label { width: 100%; }
}

/* Обложки-картинки */
.cs-media { aspect-ratio: 16 / 9; overflow: hidden; background: #111214; }
.cs-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .cs-card:hover .cs-img { transform: scale(1.03); } }
.cs-details-link { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 15px; color: inherit; }
/* ===================== ПРОМО «САЙТ + ДИРЕКТ» (третий экран) ===================== */
.combo-wrap { padding: clamp(20px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.combo {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: #15171A; color: #F4F4F1;
}
.combo::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,190,36,.22), transparent 65%); }
.combo > * { position: relative; }
.combo__label { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #FFBE24); }
.combo__title { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; }
.combo__lead { margin-top: 18px; max-width: 54ch; font-size: 17px; line-height: 1.6; color: #C9CAC4; }
.combo__facts { display: flex; gap: 0; margin-top: 26px; border: 1px solid rgba(255,190,36,.4); border-radius: 18px; max-width: 520px; }
.combo__facts div { flex: 1; padding: 16px 22px; }
.combo__facts div + div { border-left: 1px solid rgba(255,255,255,.12); }
.combo__facts b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -.03em; color: var(--gold, #FFBE24); }
.combo__facts span { display: block; margin-top: 4px; font-size: 14px; color: #BFC0BA; }
.combo__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.combo__link { color: #F4F4F1; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.combo__note { margin-top: 16px; font-size: 13px; color: #8E908A; }
.combo__path { list-style: none; display: grid; gap: 12px; counter-reset: none; }
.combo__path li {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: 16px;
}
.combo__path li + li::before { content: ""; position: absolute; left: 34px; top: -13px; width: 2px; height: 13px; background: var(--gold, #FFBE24); opacity: .7; }
.combo__path span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255,190,36,.14); color: var(--gold, #FFBE24); }
.combo__path li.is-goal { background: var(--gold, #FFBE24); border-color: var(--gold, #FFBE24); color: #15171A; }
.combo__path li.is-goal span { background: #15171A; color: var(--gold, #FFBE24); }
@media (max-width: 900px) { .combo { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .combo { border-radius: 24px; } .combo__facts b { font-size: 24px; } .combo__facts div { padding: 14px 16px; } }
/* Цены: три карточки, Директ - третья */
.plans { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.plan--direct { border: 2px solid var(--gold, #FFBE24); }
.plan__per { display: block; margin-top: 6px; font-size: .42em; font-weight: 600; letter-spacing: 0; }
.plan__link { display: inline-block; margin-top: auto; padding-top: 18px; font-weight: 700; }
.plan { display: flex; flex-direction: column; }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr !important; } }
/* about-clean: блок «Кто делает» без лишних линий */
.about__role { border: 0 !important; padding-bottom: 0 !important; margin-bottom: 18px; }
.about__stats .stats__item { border-top: 0 !important; padding-top: 0 !important; }
/* ===================== ФОРМА ЗАЯВКИ (финальный блок) ===================== */
.lead-form { margin: 36px auto 0; max-width: 720px; text-align: left; background: rgba(255,255,255,.55); border: 1px solid rgba(21,23,26,.12); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
.lead-form__title { font-weight: 800; font-size: 18px; color: #15171A; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: end; }
.lead-form__field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #3a3d42; }
.lead-form__field--wide { grid-column: 1 / -1; }
.lead-form input[type=text], .lead-form textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: #15171A; width: 100%;
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid rgba(21,23,26,.18); background: #fff; resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: #15171A; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; line-height: 1.45; color: #3a3d42; cursor: pointer; }
.lead-form__consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #15171A; }
.lead-form__btn { margin-top: 18px; background: #15171A !important; border-color: #15171A !important; color: #fff !important; }
.lead-form__btn:disabled { opacity: .6; }
.lead-form__msg { margin-top: 12px; min-height: 1.4em; font-size: 14.5px; font-weight: 700; color: #15171A; }
.lead-form.is-sent .lead-form__grid, .lead-form.is-sent .lead-form__consent, .lead-form.is-sent .lead-form__btn { display: none; }
@media (max-width: 640px) { .lead-form__grid { grid-template-columns: 1fr; } }
.lead-form__ch { display: flex; gap: 8px; }
.lead-form__ch label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; border: 1.5px solid rgba(21,23,26,.18); background: #fff; font-size: 15px; font-weight: 700; color: #15171A; cursor: pointer; }
.lead-form__ch label:has(input:checked) { background: #15171A; color: #fff; border-color: #15171A; }
.lead-form__ch input { accent-color: #FFBE24; }
.lead-form__field > input { margin-top: 2px; }

/* Подсветка карточек кейсов за курсором (как у тарифов) */
.cs-card { position: relative; isolation: isolate; }
.cs-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 190, 36, .22), transparent 60%); transition: opacity .3s; }
.cs-card.is-lit::after { opacity: 1; }
.cs-body { position: relative; z-index: 1; background: transparent; }
/* ===== Отзывы ===== */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.review { display: flex; flex-direction: column; position: relative; padding: 28px 26px 24px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line); }
.review__q { display: block; font-family: var(--display); font-size: 44px; line-height: .8; height: 28px; color: var(--gold, #FFBE24); margin-bottom: 10px; }
.review__text { margin: 0; flex: 1; }
.review__text p { margin: 0; font-size: 16px; line-height: 1.6; }
.review__author { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.review__author b { font-weight: 700; }
.review__author span { font-size: 13.5px; opacity: .6; }
.reviews__src { margin-top: 22px; }
.reviews__src a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.review--wide { grid-column: span 2; }
@media (max-width: 960px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } .review--wide { grid-column: 1 / -1; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } .review--wide { grid-column: auto; } }

/* ===== Кейсы сайтов: страница листается внутри окна браузера ===== */
.cs-media--mock { display: flex; flex-direction: column; padding: 12px 12px 0; background: #E4E5E1; }
.cs-media--mock .mock__bar { display: flex; gap: 6px; align-items: center; height: 22px; flex: none; }
.cs-media--mock .mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9CCC5; }
.cs-media--mock .mock__bar i:first-child { background: var(--gold, #FFBE24); }
.cs-media--mock .mock__view { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 8px 8px 0 0; background: #fff; }
.cs-media--mock .mock__page { display: block; width: 100%; height: auto; will-change: transform; }
.no-gsap .cs-media--mock .mock__page { transition: transform 3s cubic-bezier(.45, .05, .3, 1); }
@media (hover: hover) { .no-gsap .cs-card:hover .mock__page { transform: translateY(-30%); } }
/* ===== Тарифы: метка и строка «только Директ» ===== */
.plan__badge { align-self: flex-start; margin: 0 0 14px; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--gold, #FFBE24); color: #15171A; }
.plans__solo { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 24px 28px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface, #fff); }
.plans__solo-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.plans__solo-title span { font-size: .8em; font-weight: 600; opacity: .7; }
.plans__solo-text { margin: 0; max-width: 760px; font-size: 15px; line-height: 1.55; color: var(--ink-body, inherit); }
.plans__solo .plan__link { margin-top: 0; padding-top: 0; flex: none; }
@media (max-width: 760px) { .plans__solo { flex-direction: column; align-items: flex-start; } }
.plan__price--range { font-size: clamp(26px, 2.5vw, 34px) !important; white-space: nowrap; }

.plan--main .plan__link { color: var(--gold, #FFBE24); }

/* Акция в тарифах */
.plan__promo { margin: 12px 0 4px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: rgba(255,190,36,.18); border: 1px solid rgba(255,190,36,.55); }
.plan__promo b { font-weight: 800; }

/* ===== Страница «Яндекс Директ» ===== */
.dr-page h1 { max-width: 16ch; }
.dr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; }
.dr-facts div { padding: 20px 22px; border-radius: 22px; background: var(--surface, #fff); border: 1px solid var(--line); }
.dr-facts dt { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.dr-facts dd { margin: 6px 0 0; font-size: 14.5px; opacity: .75; }
.dr-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dr-sec { margin-top: clamp(64px, 8vw, 104px); }
.dr-head { margin-bottom: 26px; }
.dr-label { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink, #8a6100); }
.dr-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
.dr-sub { margin: 14px 0 0; max-width: 64ch; font-size: 17px; line-height: 1.6; }
.dr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dr-step, .dr-col { padding: 26px 24px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line); }
.dr-step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold, #FFBE24); color: #15171A; font-weight: 800; font-size: 13px; }
.dr-step h3, .dr-col h3 { margin: 16px 0 12px; font-size: 19px; font-weight: 700; }
.dr-col h3 { margin-top: 0; }
.dr-step ul, .dr-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.dr-step li, .dr-col li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.dr-step li::before, .dr-col li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #FFBE24); }
.dr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dr-col { background: #15171A; color: #fff; border-color: #15171A; }
.dr-col h3 { color: var(--gold, #FFBE24); }
.dr-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dr-price { padding: 26px 24px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line); }
.dr-price--site { background: transparent; border-style: dashed; }
.dr-price__name { margin: 0; font-weight: 700; opacity: .75; }
.dr-price__sum { margin: 8px 0 14px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.03em; }
.dr-price__sum span { display: block; margin-top: 4px; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.dr-price__promo { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; background: rgba(255,190,36,.18); border: 1px solid rgba(255,190,36,.55); }
.dr-price p:last-child { margin-bottom: 0; }
.dr-note { margin-top: 16px; font-size: 15px; opacity: .8; }
.dr-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dr-case { display: block; padding: 26px 24px; border-radius: 24px; background: var(--gold, #FFBE24); color: #15171A; text-decoration: none; transition: transform .25s; }
.dr-case:hover { transform: translateY(-3px); }
.dr-case b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.dr-case span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; }
.dr-more { margin-top: 16px; font-weight: 700; }
.dr-faq { display: grid; gap: 10px; max-width: 860px; }
.dr-faq details { border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--line); padding: 0 22px; }
.dr-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; }
.dr-faq summary::-webkit-details-marker { display: none; }
.dr-faq summary::after { content: "+"; float: right; font-weight: 400; font-size: 22px; line-height: 1; }
.dr-faq details[open] summary::after { content: "−"; }
.dr-faq details p { margin: 0 0 18px; line-height: 1.6; }
.plan__more { display: inline-block; margin-top: auto; padding-top: 18px; font-weight: 600; opacity: .8; }
.plan__more + .plan__link { margin-top: 0; padding-top: 10px; }
@media (max-width: 960px) { .dr-steps, .dr-cols, .dr-prices, .dr-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .dr-facts, .dr-steps, .dr-cols, .dr-prices, .dr-cases { grid-template-columns: 1fr; } }
/* ===== Карточки тарифов: оформление ===== */
.plan { padding: 34px 30px 30px; border: 1px solid rgba(21,23,26,.06); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) and (pointer: fine) { .plan:hover { transform: translateY(-4px); } }
.plan__ico { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 16px; background: rgba(255,190,36,.18); color: var(--gold-ink, #8a6100); }
.plan__ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan__name { font-size: 21px !important; font-weight: 700 !important; color: var(--ink-0, #15171A) !important; }
.plan__price { margin-top: 14px; }
.plan__term { font-weight: 500; line-height: 1.5; }
.plan__desc { padding-bottom: 22px; border-bottom: 1px dashed rgba(21,23,26,.14); }
.plan__list-title { margin: 22px 0 14px !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--gold-ink, #8a6100) !important; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.plan__list li { position: relative; padding-left: 34px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 23px; height: 23px; border-radius: 50%;
  background: rgba(255,190,36,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.plan__note { margin-top: 20px !important; padding-top: 0 !important; }
.plan__more { margin-top: auto !important; padding-top: 22px !important; font-weight: 600; }
.plan__btn { display: flex; align-items: center; justify-content: center; margin-top: auto; padding: 16px 22px; border-radius: 999px; background: #15171A; color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: transform .25s var(--ease), background .25s; }
.plan__list + .plan__btn, .plan__note + .plan__btn { margin-top: auto; }
.plan > .plan__btn { margin-top: auto; }
.plan__list ~ .plan__btn { position: relative; }
.plan__more + .plan__btn { margin-top: 12px; }
.plan__btn:hover { transform: translateY(-2px); background: #000; }
.plan { gap: 0; }
.plan__list { margin-bottom: 26px; }
/* Главная карточка */
.plan--main { background: radial-gradient(120% 55% at 50% 0%, rgba(255,190,36,.2), rgba(255,190,36,0) 62%), var(--ink-0, #15171A) !important; border-color: rgba(255,190,36,.35); }
.plan--main .plan__ico { background: var(--gold, #FFBE24); color: #15171A; }
.plan--main .plan__name { color: var(--gold, #FFBE24) !important; }
.plan--main .plan__desc { border-bottom-color: rgba(255,255,255,.16); }
.plan--main .plan__list-title { color: var(--gold, #FFBE24) !important; }
.plan--main .plan__list li::before { background-color: var(--gold, #FFBE24); }
.plan--main .plan__btn { background: var(--gold, #FFBE24); color: #15171A; box-shadow: 0 14px 30px -12px rgba(255,190,36,.6); }
.plan--main .plan__btn:hover { background: #ffcb4d; }
.plan--main .plan__badge { position: absolute; top: 24px; right: 24px; margin: 0; }
@media (min-width: 961px) { .plan--main { transform: translateY(-14px); } .plan--main:hover { transform: translateY(-18px); } }.plan__name { line-height: 1.25 !important; }
.plan--main .plan__name { padding-right: 0; }

/* ===== Меню разделов на планшете и телефоне ===== */
@media (max-width: 1023px) {
  .header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding-top: 10px; row-gap: 0; }
  .header__nav { display: flex; order: 3; width: 100%; gap: 8px; margin: 0 calc(-1 * var(--pad, 16px)); padding: 6px var(--pad, 16px) 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__link { flex: none; padding: 9px 14px; border-radius: 999px; font-size: 14px; background: rgba(21, 23, 26, .06); color: var(--ink-0, #15171A); }
  .header__link.is-active { background: var(--ink-0, #15171A); color: #fff; }
  section[id], [id].section__head, [id].plan, main [id] { scroll-margin-top: 130px !important; }
}
@media (max-width: 767px) {
  .header { position: sticky !important; top: 0; }
}
.header__home { margin-left: auto; }

/* ===== Кнопка «Наверх» ===== */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 45; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #15171A; color: var(--gold, #FFBE24); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility 0s linear .3s, background .2s, bottom .3s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, visibility 0s, background .2s, bottom .3s; }
.to-top:hover { background: #000; }
.to-top:focus-visible { outline: 3px solid var(--gold, #FFBE24); outline-offset: 3px; }
@media (max-width: 1023px) {
  .sticky-cta.is-shown ~ .to-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .to-top { right: 14px; width: 46px; height: 46px; }
}
/* Бегущая строка на телефоне и планшете - спокойнее */
@media (max-width: 1023px), (hover: none) { .ticker__track { animation-duration: 60s !important; } }

/* Кнопка под кейсами на главной */
.cs-all-wrap { display: flex; justify-content: center; margin-top: 32px; }
.cs-all-btn { min-width: 260px; justify-content: center; }
.t-deep .cs-all-btn { color: inherit; border-color: currentColor; }

/* ===== Компактные тарифы ===== */
.plans--compact .plan { padding: 26px 26px 24px; }
.plans--compact .plan__head { display: flex; align-items: center; gap: 12px; padding-right: 0; }
.plans--compact .plan--main .plan__head { margin-top: 34px; }
.plans--compact .plan__ico { width: 42px; height: 42px; margin: 0; border-radius: 12px; flex: none; }
.plans--compact .plan__ico svg { width: 22px; height: 22px; }
.plans--compact .plan__name { font-size: 19px !important; }
.plans--compact .plan__price { margin-top: 16px; font-size: clamp(30px, 2.8vw, 40px); }
.plans--compact .plan__price--range { font-size: clamp(24px, 2.3vw, 32px) !important; }
.plans--compact .plan__per { display: inline; margin: 0 0 0 4px; font-size: .4em; }
.plans--compact .plan__term { margin-top: 6px; font-size: 13.5px; }
.plans--compact .plan__promo { margin: 12px 0 0; padding: 9px 12px; font-size: 13.5px; }
.plans--compact .plan__desc { margin-top: 12px; padding-bottom: 16px; font-size: 15px; line-height: 1.5; }
.plans--compact .plan__list { margin: 16px 0 22px; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.plans--compact .plan__list li { padding-left: 28px; }
.plans--compact .plan__list li::before { width: 19px; height: 19px; top: 0; background-size: 11px; }
.plans--compact .plan__btn { padding: 14px 20px; font-size: 15px; }
.plans--compact .plan__more { padding-top: 0 !important; margin: 0 0 12px; font-size: 14.5px; }
.plans--compact .plan__more + .plan__btn { margin-top: 0; }
.plans--compact .plan--main .plan__badge { top: 22px; left: 26px; right: auto; }
.plans--compact .plan__btn { margin-top: auto; }
.plans--compact .plan__price { white-space: normal; }
.plans--compact .plan__per { display: block; margin: 6px 0 0; font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: 0; opacity: .7; }

/* Шапка на ноутбуках с узким экраном: меню не наезжает на кнопку */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__inner { display: flex; align-items: center; gap: 20px; }
  .header__nav { flex: 1; justify-content: center; gap: 16px; }
  .header__link { font-size: 13.5px; }
  .header__cta-long { display: none; }
}

/* ===== Подсказка «листайте меню» ===== */
@media (max-width: 1023px) {
  .header__inner { position: relative; }
  .header__nav { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .nav-swipe { position: absolute; right: 10px; bottom: 6px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold, #FFBE24); color: #15171A; box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transition: opacity .35s; }
  .nav-swipe svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .has-swipe .nav-swipe { opacity: 1; animation: navSwipe 1.4s ease-in-out .3s 4; }
}
@keyframes navSwipe {
  0%, 100% { transform: translateX(0) rotate(-8deg); }
  50% { transform: translateX(-34px) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) { .has-swipe .nav-swipe { animation: none; } }
/* ===== Главный тариф: метка на верхней кромке, спокойная иконка ===== */
.plans--compact .plan--main { overflow: visible; }
.plans--compact .plan--main .plan__badge { position: absolute; top: 0; left: 50%; right: auto; transform: translate(-50%, -50%); z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 14px 7px 12px; font-size: 12.5px; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(255,190,36,.7); }
.plans--compact .plan--main .plan__badge::before { content: "★"; font-size: 12px; line-height: 1; }
.plans--compact .plan--main .plan__head { margin-top: 6px; }
.plans--compact .plan--main .plan__ico { background: rgba(255,190,36,.12); color: var(--gold, #FFBE24); box-shadow: inset 0 0 0 1px rgba(255,190,36,.45); }
.plans--compact .plan--main .plan__name { color: #fff !important; }
@media (max-width: 960px) { .plans--compact .plan--main { margin-top: 16px; } }
