/* ==========================================================================
   Честный Юрист® — посадочная nidzhat.ru/biz
   Мобильная (390) — база, десктоп (1440) — от 900px.
   ========================================================================== */

/* ---------- Шрифты (self-hosted, без запросов к Google) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/inter-rub.woff2) format('woff2');unicode-range:U+20BD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500 700;font-display:swap;src:url(../fonts/playfair-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500 700;font-display:swap;src:url(../fonts/playfair-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500 600;font-display:swap;src:url(../fonts/playfair-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:500 600;font-display:swap;src:url(../fonts/playfair-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrainsmono-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrainsmono-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Токены ---------- */
:root{
  --navy:#141B2D; --bg:#F4F5F7; --white:#FFFFFF;
  --gold:#B39B5E; --gold-l:#D2BC85; --gold-h:#A88B4A; --gold-t:#7D6630; --gold-th:#5E4C22;
  --cream:#F3EAD2; --cream-h:#FBF7EC;
  --line:#E2E4E9; --line-d:#2A3247;
  --t2:#4A5060; --t3:#5B6170; --on-d:#B7BCC8; --on-d2:#9CA2B0; --dash:#C3C7D0;
  --grad:linear-gradient(135deg,#D6BF82 0%,#B39B5E 55%,#9A7F45 100%);
  --serif:'Playfair Display',Georgia,'Times New Roman',serif;
  --sans:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --ease:cubic-bezier(.2,.7,.2,1);
  --px:16px;              /* боковой отступ */
  --sec-y:56px;           /* вертикальный отступ секций */
  --shadow-card:0 24px 48px -24px rgba(20,27,45,.25);
  --glow:0 40px 80px -30px rgba(179,155,94,.5);
}

/* ---------- База ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--navy);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,p,ul,ol,figure,fieldset{margin:0}
ul,ol{padding:0;list-style:none}
fieldset{border:0;padding:0;min-width:0}
legend{padding:0}
img{display:block;max-width:100%;height:auto}
a{color:var(--gold-t)}
a:hover{color:var(--gold-th)}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.nowrap{white-space:nowrap}
.gold{color:var(--gold-h)}
.gold-l{color:var(--gold-l)}
.ico{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:8px;top:-60px;z-index:100;padding:12px 16px;border-radius:8px;background:var(--navy);color:#fff;font-weight:600;text-decoration:none}
.skip-link:focus{top:8px;color:#fff}

:focus-visible{outline:3px solid var(--gold-t);outline-offset:3px;border-radius:4px}
.section--dark :focus-visible,.trust :focus-visible,.final :focus-visible,.footer :focus-visible,.plan--dark :focus-visible{outline-color:var(--gold-l)}

/* Корневой контейнер: overflow-x: clip (НЕ hidden), иначе sticky-панель не работает */
.page{position:relative;overflow-x:clip;display:flex;flex-direction:column;min-height:100vh}
.page > main{flex:1 0 auto}

.only-d{display:none!important}
.section{padding:var(--sec-y) max(var(--px),calc((100% - 1200px)/2))}
.section--white{background:var(--white)}
.section--dark{background:var(--navy);color:#F4F5F7}

/* ---------- Кнопки ---------- */
.btn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 24px;border-radius:8px;border:1.5px solid transparent;font-size:16px;font-weight:700;line-height:1.2;text-decoration:none;text-align:center;transition:transform .2s,box-shadow .2s,background-color .2s,color .2s,border-color .2s}
.btn__label{position:relative}
.btn--gold{background:var(--grad);color:var(--navy);border:0;box-shadow:0 14px 30px -12px rgba(125,102,48,.55)}
.btn--gold:hover{color:var(--navy);transform:translateY(-2px);box-shadow:0 20px 36px -12px rgba(125,102,48,.6)}
.btn--outline{border-color:var(--navy);color:var(--navy);background:transparent}
.btn--outline:hover{background:var(--navy);color:#fff}
.btn--light{border-color:#F4F5F7;color:#F4F5F7}
.btn--light:hover{background:#F4F5F7;color:var(--navy)}
.btn--line{border-color:var(--gold-l);color:#F4F5F7;font-weight:600}
.btn--line:hover{background:var(--gold-l);color:var(--navy)}
.btn--xl{min-height:58px;font-size:17px}
.btn[disabled]{cursor:not-allowed}

/* Бегущий блик на золотых кнопках */
.shine{position:absolute;top:0;bottom:0;left:0;width:40%;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.45),rgba(255,255,255,0));transform:translateX(-150%) skewX(-20deg);animation:shine 4.2s ease-in-out 1.2s infinite}
@keyframes shine{0%{transform:translateX(-150%) skewX(-20deg)}30%,100%{transform:translateX(350%) skewX(-20deg)}}

.round-btn{width:44px;height:44px;border-radius:22px;background:var(--navy);color:#F4F5F7;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s}
.round-btn:hover{color:#F4F5F7;transform:translateY(-2px)}
.pill-btn{height:44px;padding:0 14px;border-radius:22px;background:var(--navy);color:#F4F5F7;display:flex;align-items:center;font-size:13px;font-weight:800;letter-spacing:.04em;text-decoration:none;transition:transform .2s}
.pill-btn:hover{color:#F4F5F7;transform:translateY(-2px)}

/* ---------- Шапка ---------- */
.header{height:64px;flex-shrink:0;padding:0 max(var(--px),calc((100% - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(90deg,#F2E1A2 0%,#F7EFCF 50%,#F1DD98 100%);border-bottom:1px solid #E4D39A}
.header__brand{display:flex;flex-direction:column;gap:1px;min-width:0}
.header__logo{font-family:var(--serif);font-size:20px;font-weight:700;line-height:1.3;color:var(--navy);text-decoration:none}
.header__logo:hover{color:var(--navy)}
.header__tagline{font-size:10px;color:var(--t2);letter-spacing:.08em;text-transform:uppercase}
.header__nav,.header__contacts{display:none}
.header__nav a{color:var(--navy);text-decoration:none;padding:10px 0}
.header__nav a:hover{color:var(--gold-t)}
.header__phone{font-size:17px;font-weight:700;color:var(--navy);text-decoration:none;margin-right:10px;white-space:nowrap}
.header__phone:hover{color:var(--gold-t)}

/* ---------- Первый экран ---------- */
.hero{background:var(--white);padding:28px var(--px) 40px;display:flex;flex-direction:column;gap:20px}
.hero__text{display:flex;flex-direction:column;gap:18px}
.hero__eyebrow{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:12px;font-weight:600;color:var(--gold-t);letter-spacing:.12em;text-transform:uppercase}
.hero__eyebrow-line{width:28px;height:1px;background:var(--gold);flex-shrink:0}
.hero__title{font-family:var(--serif);font-size:35px;line-height:1.08;font-weight:700;letter-spacing:-.015em;text-wrap:balance}
.hero__sub{font-size:16px;line-height:1.55;color:var(--t2)}
.hero__bullets{order:5;display:flex;flex-direction:column;gap:12px;padding-top:4px}
.hero__bullets li{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.45}
.hero__bullets li::before{content:"";width:22px;height:22px;flex-shrink:0;border-radius:50%;background:var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D6630' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat}
.hero__actions{display:flex;flex-direction:column;gap:12px}
.hero__actions .btn--gold{width:100%;font-size:17px;min-height:58px}
.hero__msg{display:none}
button.btn{cursor:pointer;font-family:inherit}
.hero__pick{display:flex;flex-direction:column;gap:10px}
.hero__pick-t{font-size:16px;font-weight:700;line-height:1.35}
.hero__pick-list{display:flex;flex-wrap:wrap;gap:8px}
.pick{min-height:44px;padding:10px 16px;border:1px solid var(--gold);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:15px;font-weight:600;line-height:1.2;cursor:pointer;transition:background .2s,color .2s}
.pick:hover,.pick.is-hot{background:var(--gold);color:var(--navy)}
.hero__quiz{align-self:center;font-size:15px;color:var(--gold-t);text-decoration:underline;text-underline-offset:3px}
.hero__quiz:hover{color:var(--navy)}
/* ---------- Окно «Как связаться» ---------- */
.contact-dlg{padding:0;border:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0}
.contact-dlg::backdrop{background:rgba(10,14,24,.7)}
.contact-dlg[open]{display:flex;align-items:center;justify-content:center}
.contact-dlg__box{position:relative;width:min(92vw,420px);padding:28px 22px 22px;border-radius:14px;background:#fff;color:var(--navy);box-shadow:0 30px 80px rgba(0,0,0,.4)}
.contact-dlg__close{position:absolute;top:8px;right:8px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--navy);font-size:28px;line-height:1;cursor:pointer}
.contact-dlg__close:hover{background:var(--bg)}
.contact-dlg__title{margin:0 32px 8px 0;font-family:var(--serif);font-size:22px;line-height:1.25}
.contact-dlg__sub{margin:0 0 18px;font-size:14px;line-height:1.45;color:#4A5163}
.contact-dlg__list{display:flex;flex-direction:column;gap:10px}
.contact-dlg__item{display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 16px;border-radius:8px;border:1.5px solid var(--navy);color:var(--navy);font-weight:700;font-size:16px;text-decoration:none;text-align:center}
.contact-dlg__item:hover{background:var(--navy);color:#fff}
.contact-dlg__item--main{background:var(--navy);color:#fff}
.contact-dlg__item--main:hover{background:#000;color:#fff}
.hero__note{font-size:14px;line-height:1.45;color:var(--t3);text-align:center}
.hero__note a{color:inherit;font-weight:600;text-decoration:none}

/* Фото с рамкой */
.photo{position:relative}
.photo__frame{position:absolute;border:1px solid var(--gold);border-radius:12px}
.photo__img{position:absolute;inset:0;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,#F7F1E1 0%,#EDE3C8 100%)}
.photo__img img{width:100%;height:100%;object-fit:cover;object-position:50% 65%}
.photo__badge{position:absolute;left:14px;bottom:14px;padding:14px 16px;border-radius:10px;background:var(--navy);color:#F4F5F7;display:flex;flex-direction:column;gap:2px;pointer-events:none}
.photo__badge-num{font-family:var(--serif);font-size:26px;font-weight:600;color:var(--gold-l);line-height:1}
.photo__badge-txt{font-size:12px;color:var(--on-d)}
.photo--hero{height:380px;margin:12px 12px 12px 0}
.photo--hero .photo__frame{top:14px;left:14px;right:-12px;bottom:-12px}

/* ---------- Полоса доверия ---------- */
.trust{background:var(--navy);color:#F4F5F7;display:flex;flex-direction:column}
.trust__stats{padding:32px 20px 28px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
.stat{display:flex;flex-direction:column;gap:4px;padding-left:12px;border-left:1px solid var(--gold)}
.stat__v{font-family:var(--serif);font-size:27px;font-weight:600;color:var(--gold-l);line-height:1.05;white-space:nowrap}
.stat__l{font-size:13px;color:var(--on-d);line-height:1.35}
.trust__kad{grid-column:1/-1;justify-self:start;display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:#F4F5F7;text-decoration:none;border-bottom:1px solid var(--gold);margin-top:4px}
.trust__kad:hover{color:var(--gold-l)}
.media{display:flex;flex-direction:column}
.media__label{background:var(--gold);color:var(--navy);padding:8px 20px;font-family:var(--serif);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;text-align:center}
.media__viewport{position:relative;overflow:hidden;height:60px;display:flex;align-items:center;padding-left:20px}
.media__track{display:flex;align-items:center;flex-shrink:0;width:max-content;animation:marquee 45s linear infinite}
.media__track img{width:auto;flex-shrink:0;margin-right:48px;filter:brightness(0) invert(1);opacity:.8}
.m-gazeta{height:20px}.m-vesti{height:30px}.m-izvestia{height:44px}.m-mentoday{height:21px}.m-secret{height:54px}.m-aif{height:29px}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- Заголовки разделов ---------- */
.sec-head{display:flex;flex-direction:column;gap:12px}
.sec-num{display:flex;align-items:center;gap:12px;font-family:var(--serif);font-style:italic;font-size:17px;color:var(--gold-t)}
.sec-num__line{width:40px;height:1px;background:var(--gold)}
.sec-num--dark{color:var(--gold-l)}
.h2{font-family:var(--serif);font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.01em}
.sec-head__aside{font-size:15px;color:var(--t2)}

/* ---------- Боли ---------- */
.section > * + *{margin-top:24px}
.pains{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.card{background:var(--white);border:1px solid var(--line);border-radius:12px}
.pain{padding:22px 20px;display:flex;flex-direction:column;gap:8px;transition:transform .3s,box-shadow .3s,border-color .3s}
.pain__q{font-family:var(--serif);font-size:44px;line-height:.6;color:var(--gold-l);height:18px}
.pain h3{font-family:var(--serif);font-size:20px;line-height:1.25;font-weight:600}
.pain p{font-size:15px;line-height:1.55;color:var(--t2)}
.callout{padding:24px 20px;border-radius:12px;background:var(--cream);border-left:4px solid var(--gold)}
.callout p{font-family:var(--serif);font-size:21px;line-height:1.3;font-weight:600}

/* ---------- Тарифы ---------- */
.plans{display:flex;flex-direction:column;gap:16px}
.plan{position:relative;padding:28px 22px 24px;border-radius:14px;background:var(--bg);border:1px solid var(--line);display:flex;flex-direction:column;gap:18px;transition:transform .3s,box-shadow .3s}
.plan__name{font-family:var(--serif);font-size:13px;font-weight:700;color:var(--gold-t);text-transform:uppercase;letter-spacing:.1em;line-height:1.4}
.plan__price{display:flex;align-items:baseline;gap:8px}
.plan__sum{font-family:var(--serif);font-size:38px;font-weight:700;line-height:1.1;white-space:nowrap}
.plan__per{font-size:15px;color:var(--t3)}
.plan__from{font-size:16px;color:var(--t3)}
.plan__list{display:flex;flex-direction:column;gap:10px;font-size:15px;line-height:1.45;padding-top:16px;border-top:1px solid var(--line);flex-grow:1}
.plan__btn{width:100%;min-height:54px}
.plan--dark{order:-1;background:var(--navy);color:#F4F5F7;border:0;padding-top:30px;box-shadow:0 30px 60px -30px rgba(179,155,94,.6)}
.plan--dark .plan__name{color:var(--gold-l);padding-right:120px}
.plan--dark .plan__per{color:var(--on-d)}
.plan--dark .plan__list{border-top-color:var(--line-d)}
.plan__badge{position:absolute;top:28px;right:22px;padding:5px 10px;border-radius:999px;background:var(--grad);color:var(--navy);font-size:12px;font-weight:700;white-space:nowrap}
.footnote{font-size:13px;line-height:1.5;color:var(--t3)}

/* ---------- Как работаем ---------- */
.steps{display:flex;flex-direction:column;border-left:1px solid var(--line);margin-left:22px;margin-top:28px!important}
.step{position:relative;display:flex;flex-direction:column;gap:6px;padding:0 0 28px 30px}
.step:last-child{padding-bottom:0}
.step__line{display:none}
.step__n{position:absolute;left:-22px;top:-4px;width:44px;height:44px;border-radius:22px;background:var(--bg);border:1px solid var(--gold);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-style:italic;font-size:17px;color:var(--gold-t)}
.step h3{font-size:18px;font-weight:700;padding-top:6px;line-height:1.35}
.step p{font-size:15px;line-height:1.55;color:var(--t2)}

/* ---------- Кейсы ---------- */
#cases > * + *{margin-top:20px}
.bigban{padding:28px 22px;border-radius:14px;background:var(--navy);color:#F4F5F7;display:flex;flex-direction:column;gap:12px;box-shadow:0 30px 60px -30px rgba(179,155,94,.6)}
.bigban__num{font-family:var(--serif);font-size:54px;line-height:1;font-weight:600;color:var(--gold-l);letter-spacing:-.02em;white-space:nowrap}
.bigban__body{display:flex;flex-direction:column;gap:12px}
.bigban__title{font-family:var(--serif);font-size:20px;font-weight:600;line-height:1.25}
.bigban__txt{font-size:14px;line-height:1.55;color:var(--on-d)}
.cases{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.case{padding:22px 20px;border-radius:12px;background:var(--bg);border:1px solid var(--line);display:flex;flex-direction:column;gap:16px;transition:transform .3s,box-shadow .3s,border-color .3s;min-width:0}
.case__top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.case__cat{font-family:var(--serif);font-size:12px;font-weight:700;color:var(--gold-t);text-transform:uppercase;letter-spacing:.1em}
.case__num{padding:5px 8px;border-radius:6px;background:var(--white);border:1px solid var(--line);font-family:var(--mono);font-size:13px;font-weight:500;white-space:nowrap}
.case__result{display:flex;flex-direction:column;gap:4px}
.case__pre{font-size:15px;color:var(--t2)}
.case__amt{font-family:var(--serif);font-size:40px;line-height:1.05;font-weight:700;letter-spacing:-.015em;white-space:nowrap;font-variant-numeric:lining-nums}
.case__post{font-size:16px;line-height:1.4;font-weight:600}
.case__body{display:flex;flex-direction:column;gap:16px}
.case__scan{display:block;width:100%;height:220px;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--white);cursor:zoom-in;position:relative}
.case__scan img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .4s var(--ease)}
.case__scan:hover img{transform:scale(1.03)}
.case__scan::after{content:"";position:absolute;right:8px;bottom:8px;width:32px;height:32px;border-radius:16px;background:rgba(20,27,45,.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center/18px no-repeat}
.case__info{display:flex;flex-direction:column;gap:16px}
.case__row{font-size:15px;line-height:1.5}
.case__label{color:var(--t3);font-weight:600}
.case__label::after{content:":"}
.case__link{display:flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;margin-top:-8px}
.reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.review{height:130px;border-radius:10px;border:1.5px dashed var(--dash);display:flex;align-items:center;justify-content:center;padding:8px;color:var(--t3);font-size:13px;font-weight:600;text-align:center}

/* ---------- Команда ---------- */
.team{display:flex;flex-direction:column}
.team > * + *{margin-top:24px}
.photo--team{height:420px;margin:12px 12px 0 0!important}
.photo--team .photo__frame{top:12px;left:12px;right:-12px;bottom:-12px}
.photo--team .photo__img img{object-position:50% 60%}
.nameplate{display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:10px;background:var(--navy);color:#F4F5F7}
.photo .nameplate{position:absolute;left:14px;right:14px;bottom:14px;pointer-events:none}
.nameplate__name{font-family:var(--serif);font-size:20px;font-weight:600}
.nameplate__role{font-size:13px;color:var(--gold-l)}
.nameplate--d{display:none}
.team__content{display:flex;flex-direction:column;padding-top:8px}
.team__points li{display:flex;gap:14px;align-items:baseline;padding:14px 0;border-bottom:1px solid var(--line)}
.team__n{font-family:var(--serif);font-style:italic;font-size:16px;color:var(--gold-t);width:24px;flex-shrink:0}
.team__points li > span:last-child{font-size:16px;line-height:1.5}

/* ---------- Гарантии ---------- */
.guarantees-wrap{padding-top:0}
.guarantees{display:flex;flex-direction:column;border-radius:14px;background:var(--white);border:1px solid var(--line);overflow:hidden}
.guarantee{padding:22px 20px;display:flex;gap:16px;align-items:flex-start;border-bottom:1px solid var(--line);transition:background-color .3s}
.guarantee:last-child{border-bottom:0}
.guarantee:hover{background:var(--cream-h)}
.guarantee__n{width:40px;height:40px;flex-shrink:0;border-radius:50%;border:1px solid var(--gold);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-style:italic;font-size:15px;color:var(--gold-t)}
.guarantee__body{display:flex;flex-direction:column;gap:4px}
.guarantee h3{font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.3}
.guarantee p{font-size:15px;line-height:1.5;color:var(--t2)}

/* ---------- Квиз ---------- */
.quiz-sec{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
.quiz-sec > * + *{margin-top:0}
.quiz-sec__head{display:flex;flex-direction:column;gap:12px}
.quiz-sec__lead{font-size:15px;line-height:1.5;color:var(--on-d)}
.quiz{padding:24px 18px;border-radius:14px;background:var(--white);color:var(--navy);display:flex;flex-direction:column;gap:18px;box-shadow:var(--glow);min-width:0}
.quiz__top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.quiz__label{font-size:13px;font-weight:700;color:var(--t3)}
.quiz__bar{width:130px;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.quiz__fill{height:6px;background:var(--grad);transition:width .5s var(--ease)}
.quiz__step{display:flex;flex-direction:column;gap:14px}
.quiz__step fieldset{display:flex;flex-direction:column;gap:14px}
.quiz__title{font-family:var(--serif);font-size:24px;font-weight:600;line-height:1.25;outline:none;margin-bottom:0}
.quiz__step fieldset legend{margin-bottom:14px;float:left;width:100%}
.quiz__step fieldset legend + *{clear:both}
.quiz__opts{display:flex;flex-direction:column;gap:10px}
.opt{min-height:54px;padding:12px 16px;border-radius:8px;border:1.5px solid var(--line);background:var(--white);font-size:16px;font-weight:600;text-align:left;color:var(--navy);display:flex;align-items:center;justify-content:space-between;gap:12px;transition:border-color .2s,background-color .2s,transform .2s}
.opt:hover{border-color:var(--gold)}
.opt.is-on{border-color:var(--navy);background:var(--cream-h)}
.opt__arr{color:var(--gold);font-size:18px;line-height:1}
.field{display:flex;flex-direction:column;gap:6px}
.input{height:54px;padding:0 16px;border-radius:8px;border:1.5px solid var(--line);background:var(--white);font-size:16px;color:var(--navy);outline:none;width:100%;transition:border-color .2s}
.input::placeholder{color:#6B7180;opacity:1}
.input:focus{border-color:var(--gold)}
.input:focus-visible{outline:3px solid rgba(125,102,48,.35);outline-offset:1px}
.input[aria-invalid="true"]{border-color:#B3261E}
.field__err{font-size:14px;color:#B3261E;min-height:0}
.field__err:empty{display:none}
.channels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chan{min-height:50px;border-radius:8px;border:1.5px solid var(--line);background:var(--white);color:var(--navy);font-size:14px;font-weight:600;padding:0 6px;transition:all .2s}
.chan:hover{border-color:var(--navy)}
.chan.is-on{border-color:var(--navy);background:var(--navy);color:#fff}
.hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--t2);cursor:pointer}
.consent input{width:22px;height:22px;margin:0;accent-color:var(--navy);flex-shrink:0;cursor:pointer}
.quiz__submit{width:100%;min-height:58px;font-size:17px}
.quiz__submit[disabled]{opacity:.5;transform:none;box-shadow:none}
.quiz__submit.is-loading{opacity:.75;cursor:progress}
.quiz__error{padding:14px 16px;border-radius:8px;background:#FCEDEC;color:#8C1D18;font-size:15px;line-height:1.5}
.quiz__error a{color:#8C1D18;font-weight:700}
.quiz__check{width:56px;height:56px;border-radius:50%;background:var(--cream);display:flex;align-items:center;justify-content:center}
.ico--check{stroke:var(--gold-t);stroke-width:2.4}
.quiz__thanks{font-size:16px;line-height:1.55;color:var(--t2)}
.quiz__back{align-self:flex-start;min-height:44px;border:0;background:none;padding:0;font-size:15px;font-weight:600;color:var(--t3)}
.quiz__back:hover{color:var(--navy)}
.quiz-sec__links{display:flex;flex-direction:column;gap:20px}
.quiz-sec__links .btn{width:100%;min-height:56px}
.quiz-sec__phone{display:flex;flex-direction:column;align-items:center;gap:2px;padding-top:4px;color:#F4F5F7;text-decoration:none}
.quiz-sec__phone:hover{color:#F4F5F7}
.quiz-sec__phone-l{font-size:13px;color:var(--on-d)}
.quiz-sec__phone-n{font-family:var(--serif);font-size:24px;font-weight:600;color:var(--gold-l);white-space:nowrap}

/* ---------- FAQ ---------- */
#faq > * + *{margin-top:20px}
.faq{border-top:1px solid var(--line)}
.faq__item{border-bottom:1px solid var(--line)}
.faq__h{font-size:inherit;font-weight:inherit}
.faq__q{width:100%;min-height:64px;padding:16px 0;border:0;background:none;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--navy);transition:color .2s}
.faq__q:hover{color:var(--gold-t)}
.faq__q > span:first-child{font-size:17px;font-weight:600;line-height:1.35}
.faq__ico{width:32px;height:32px;flex-shrink:0;border-radius:50%;border:1px solid var(--gold);display:flex;align-items:center;justify-content:center;color:var(--gold-t);font-size:20px;line-height:1;transition:transform .3s var(--ease)}
.faq__item.is-open .faq__ico{transform:rotate(45deg)}
.faq__a p{padding:0 40px 18px 0;font-size:15px;line-height:1.55;color:var(--t2)}

/* ---------- Финал и подвал ---------- */
.final{background:var(--navy);color:#F4F5F7;padding:56px max(var(--px),calc((100% - 1200px)/2)) 20px}
.final__row{display:flex;flex-direction:column;gap:20px}
.final__title{font-family:var(--serif);font-size:32px;line-height:1.12;font-weight:700;letter-spacing:-.01em}
.final__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.final__cta{grid-column:1/-1;margin-bottom:12px}
.final__actions .btn--light{min-height:52px;font-size:16px;font-weight:600}
.final__actions .btn--max{font-weight:700}
.final__phone{display:flex;align-items:center;justify-content:center;min-height:48px;font-family:var(--serif);font-size:24px;font-weight:600;color:var(--gold-l);text-decoration:none;white-space:nowrap}
.final__phone:hover{color:var(--gold-l)}
.footer{background:var(--navy);color:var(--on-d2);padding:24px max(var(--px),calc((100% - 1200px)/2)) 40px;font-size:13px;line-height:1.5}
.footer::before{content:"";display:block;border-top:1px solid var(--line-d);margin-bottom:24px}
.footer a{color:inherit}
.footer a:hover{color:var(--gold-l)}
.footer__links{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin-top:8px}
.footer__links a{color:var(--on-d);display:inline-flex;align-items:center;min-height:32px}
.footer__req a{display:inline-block;padding:4px 0}

/* ---------- Липкая панель (мобильная) ---------- */
.sticky-bar{position:sticky;bottom:0;z-index:20;padding:10px 12px calc(16px + env(safe-area-inset-bottom,0px));background:var(--white);border-top:1px solid var(--line);box-shadow:0 -12px 30px -18px rgba(20,27,45,.35)}
.sticky-bar__set{display:flex;gap:8px}
.sticky-bar__set--c,html[data-variant="c"] .sticky-bar__set--ab{display:none}
html[data-variant="c"] .sticky-bar__set--c{display:flex}
.sb{height:50px;border-radius:8px;border:1.5px solid var(--navy);color:var(--navy);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;flex-shrink:0;padding:0 4px}
.sb:hover{color:var(--navy)}
.sb--main{flex:1 1 auto;min-width:0;background:var(--navy);color:#fff}
.sb--main:hover{color:#fff}
.sb--max{width:74px}.sb--call{width:112px}.sb--tg{width:96px}.sb--max-c{width:66px}

/* ---------- Лайтбокс ---------- */
.lightbox{padding:0;border:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0}
.lightbox::backdrop{background:rgba(10,14,24,.88)}
.lightbox[open]{display:flex;align-items:center;justify-content:center}
/* Старые браузеры без <dialog>.showModal: окно поверх страницы, а не в её конце */
.lightbox[open],.contact-dlg[open]{position:fixed;inset:0;z-index:1000}
.lightbox.is-fallback,.contact-dlg.is-fallback{background:rgba(10,14,24,.88)}
.lightbox__inner{position:relative;max-width:min(92vw,900px);max-height:92vh;display:flex}
.lightbox__img{max-width:100%;max-height:92vh;width:auto;height:auto;object-fit:contain;border-radius:6px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.lightbox__close{position:absolute;top:-8px;right:-8px;width:48px;height:48px;border-radius:50%;border:0;background:var(--gold-l);color:var(--navy);font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.lightbox__close:hover{background:#fff}
@media (max-width:600px){.lightbox__close{top:8px;right:8px}}

/* ---------- Cookie ---------- */
.cookie{position:fixed;z-index:30;left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;padding:6px 6px 6px 12px;border-radius:8px;background:rgba(20,27,45,.92);color:#E6E8EE;font-size:12px;line-height:1.35;box-shadow:0 8px 20px -10px rgba(20,27,45,.5)}
.cookie p{flex:1 1 auto}
.cookie a{color:var(--gold-l)}
.cookie a:hover{color:#fff}
.cookie__ok{flex-shrink:0;min-height:32px;padding:0 14px;border-radius:6px;border:0;background:var(--grad);color:var(--navy);font-weight:700;font-size:14px}

/* ==========================================================================
   Планшет 600–899: мобильный макет, но шире
   ========================================================================== */
@media (min-width:600px){
  :root{--px:32px}
  .hero{padding-left:var(--px);padding-right:var(--px)}
  .photo--hero{height:460px;max-width:440px}
  .photo--team{height:520px;max-width:460px}
  .pains{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reviews{grid-template-columns:repeat(4,minmax(0,1fr))}
  .trust__stats{grid-template-columns:repeat(4,minmax(0,1fr));padding-left:var(--px);padding-right:var(--px)}
  .plans{max-width:560px}
  .quiz{padding:32px 28px}
  .cookie{left:auto;right:16px;max-width:520px}
}

/* ==========================================================================
   Десктоп ≥ 900
   ========================================================================== */
@media (min-width:900px){
  :root{--px:clamp(32px,8.333vw,120px);--sec-y:112px}
  .only-d{display:revert!important}
  span.only-d,a.only-d{display:inline!important}
  .only-m{display:none!important}
  .section > * + *{margin-top:56px}

  /* шапка */
  .header{height:84px}
  .header__brand{gap:2px}
  .header__logo{font-size:25px}
  .header__tagline{font-size:12px}
  .header__nav{display:flex;gap:32px;font-size:15px;font-weight:500}
  .header__contacts{display:flex;align-items:center;gap:10px}
  .header__call{display:none}

  /* первый экран */
  .hero{padding:88px max(var(--px),calc((100% - 1200px)/2)) 104px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:center}
  .hero__text{grid-column:span 7;gap:28px}
  .hero__eyebrow{font-size:14px;gap:14px;letter-spacing:.14em}
  .hero__eyebrow-line{width:40px}
  .hero__title{font-size:clamp(44px,4.584vw,66px);line-height:1.04;letter-spacing:-.02em}
  .hero__sub{font-size:20px;line-height:1.6;max-width:620px}
  .hero__bullets{order:0;gap:14px;padding-top:0}
  .hero__bullets li{gap:14px;font-size:17px}
  .hero__bullets li::before{width:24px;height:24px;background-size:14px}
  .hero__actions{flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px;margin-top:4px}
  .hero__actions .btn--gold{width:auto;height:62px;padding:0 34px;font-size:18px}
  .hero__msg{display:inline-flex;height:62px;padding:0 26px;font-size:17px;font-weight:600}
  .hero__quiz{align-self:center}
  .hero__msg.btn--max{font-weight:700;letter-spacing:.02em}
  .hero__note{font-size:15px;text-align:left}
  .photo--hero{grid-column:8/span 5;height:640px;margin:0 0 0 24px;max-width:none}
  .photo__frame,.photo__img{border-radius:16px}
  .photo--hero .photo__frame{top:28px;left:28px;right:-28px;bottom:-28px}
  .photo__img img{object-position:50% 100%}
  .photo--hero .photo__badge{left:-56px;bottom:48px;padding:22px 26px;border-radius:12px;gap:4px;box-shadow:0 24px 50px -16px rgba(20,27,45,.5)}
  .photo--hero .photo__badge-num{font-size:36px}
  .photo--hero .photo__badge-txt{font-size:14px}

  /* доверие */
  .trust__stats{padding:56px max(var(--px),calc((100% - 1200px)/2));grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 0;align-items:center}
  .stat{gap:6px;padding:0 24px 0 0;margin-right:24px;border-left:0;border-right:1px solid var(--line-d)}
  .stat:nth-child(4){border-right:0;margin-right:0}
  .stat__v{font-size:clamp(32px,3.056vw,44px)}
  .stat__l{font-size:14px}
  .trust__kad{font-size:16px;margin-top:0;min-height:0;padding-bottom:4px;line-height:1.4}
  .media{flex-direction:row;align-items:stretch;height:76px;border-top:1px solid var(--line-d)}
  .media__label{flex-shrink:0;display:flex;align-items:center;padding:0 32px 0 max(var(--px),calc((100% - 1200px)/2));font-size:13px;text-align:left}
  .media__viewport{flex-grow:1;height:auto}
  .media__viewport{padding-left:48px}
  .media__track img{margin-right:80px}
  .m-gazeta{height:26px}.m-vesti{height:40px}.m-izvestia{height:58px}.m-mentoday{height:28px}.m-secret{height:72px}.m-aif{height:38px}

  /* заголовки */
  .sec-head{gap:18px}
  .sec-num{gap:14px;font-size:20px}
  .sec-num__line{width:56px}
  .h2{font-size:clamp(40px,3.612vw,52px);line-height:1.08;letter-spacing:-.015em}
  .sec-head--split{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:48px}
  .sec-head__main{display:flex;flex-direction:column;gap:18px}
  .sec-head__aside{font-size:18px;padding-bottom:8px}

  /* боли */
  .pains{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .pain{padding:36px 32px;gap:14px;min-height:230px}
  .pain:hover,.plan:not(.plan--dark):hover,.case:hover{transform:translateY(-6px);box-shadow:var(--shadow-card);border-color:var(--gold)}
  .pain__q{font-size:56px;height:24px}
  .pain h3{font-size:24px}
  .pain p{font-size:16px;line-height:1.6}
  .callout{display:flex;gap:28px;align-items:center;padding:36px 44px;border-left:0}
  .callout::before{content:"";width:6px;align-self:stretch;border-radius:3px;background:var(--gold);flex-shrink:0}
  .callout p{font-size:clamp(24px,2.084vw,30px)}

  /* тарифы */
  .plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;max-width:none}
  .plan{padding:44px 36px;border-radius:16px;gap:26px}
  .plan--dark{order:0;padding-top:44px;box-shadow:0 40px 80px -30px rgba(179,155,94,.55);transform:translateY(-16px)}
  .plan--dark:hover{transform:translateY(-22px)}
  .plan--dark .plan__name{padding-right:0}
  .plan__badge{top:-15px;right:28px;padding:7px 14px;font-size:13px}
  .plan__name{font-size:15px;letter-spacing:.12em}
  .plan__sum{font-size:clamp(38px,3.334vw,48px)}
  .plan__per{font-size:16px}
  .plan__from{font-size:18px}
  .plan__list{gap:14px;font-size:16px;padding-top:24px}
  .plan__btn{min-height:56px}
  .footnote{font-size:15px;line-height:1.6;max-width:900px}
  #services .plans + .footnote{margin-top:56px}

  /* шаги */
  .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;border-left:0;margin-left:0;margin-top:56px!important}
  .step{padding:0;gap:18px}
  .step__line{display:block;height:2px;background:var(--line);position:relative;overflow:hidden}
  .step__fill{position:absolute;inset:0;background:var(--gold);transform-origin:left center}
  .step__n{position:static;width:auto;height:auto;border:0;border-radius:0;background:none;display:block;font-size:64px;line-height:1;font-weight:500;color:var(--gold)}
  .step h3{font-size:21px;padding-top:0}
  .step p{font-size:16px;line-height:1.6}

  /* кейсы */
  #cases > * + *{margin-top:56px}
  #cases > .cases,#cases > .reviews{margin-top:56px}
  .bigban{padding:56px 64px;border-radius:16px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:64px;align-items:center;box-shadow:var(--glow)}
  .bigban__num{font-size:clamp(72px,7.223vw,104px)}
  .bigban__body{padding-left:48px;border-left:1px solid var(--line-d)}
  .bigban__title{font-size:28px}
  .bigban__txt{font-size:16px;line-height:1.6}
  .cases{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  .case{padding:36px;border-radius:16px;gap:22px}
  .case:hover{box-shadow:0 28px 56px -28px rgba(20,27,45,.3)}
  .case__top{gap:12px}
  .case__cat{font-size:14px;letter-spacing:.12em}
  .case__num{padding:6px 10px;font-size:14px}
  .case__result{gap:6px}
  .case__pre{font-size:16px}
  .case__amt{font-size:clamp(38px,4.028vw,58px);letter-spacing:-.02em}
  .case__post{font-size:17px;line-height:1.45}
  .case__body{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start;padding-top:22px;border-top:1px solid var(--line)}
  .case__scan{width:150px;height:205px}
  .case__info{gap:14px}
  .case__row{display:flex;flex-direction:column;gap:4px;font-size:15px}
  .case__label{font-size:13px}
  .case__label::after{content:none}
  .case__link{min-height:0;margin-top:0}
  .reviews{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
  .review{height:170px;border-radius:12px;font-size:15px}

  /* команда */
  .team{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:center}
  .team > * + *{margin-top:0}
  .photo--team{grid-column:span 5;height:600px;margin:0!important;max-width:none}
  .photo--team .photo__frame{top:-24px;left:-24px;right:24px;bottom:24px}
  .photo--team .photo__img img{object-position:50% 100%}
  .team__content{grid-column:7/span 6;gap:28px;padding-top:0}
  .team__content .sec-num.only-d{display:flex!important}
  .team__points li{gap:20px;padding:18px 0}
  .team__n{font-size:18px;width:28px}
  .team__points li > span:last-child{font-size:18px}
  .nameplate--d{display:flex;align-self:flex-start;gap:4px;padding:24px 28px;border-radius:12px}
  .nameplate--d .nameplate__name{font-size:24px}
  .nameplate--d .nameplate__role{font-size:15px}

  /* гарантии */
  .guarantees{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:16px}
  .guarantee{flex-direction:column;gap:14px;padding:36px 30px;border-bottom:0;border-right:1px solid var(--line)}
  .guarantee:last-child{border-right:0}
  .guarantee__n{width:44px;height:44px;font-size:18px}
  .guarantee__body{gap:14px}
  .guarantee h3{font-size:22px}
  .guarantee p{line-height:1.6}

  /* квиз */
  .quiz-sec > * + *{margin-top:0}
  .quiz-sec{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;row-gap:26px;grid-template-rows:auto 1fr;align-items:start}
  .quiz-sec__head{grid-column:1/span 5;grid-row:1;gap:26px;padding-top:16px}
  .quiz-sec__lead{font-size:18px;line-height:1.6}
  .quiz{grid-column:7/span 6;grid-row:1/span 2;padding:44px;border-radius:16px;gap:24px}
  .quiz__label{font-size:14px}
  .quiz__bar{width:200px}
  .quiz__step,.quiz__step fieldset{gap:20px}
  .quiz__step fieldset legend{margin-bottom:20px}
  .quiz__title{font-size:30px}
  .quiz__opts{gap:12px}
  .opt{min-height:58px;padding:12px 20px;font-size:17px}
  .opt:hover{transform:translateX(4px)}
  .opt__arr{font-size:20px}
  .input{height:56px;padding:0 18px;font-size:17px}
  .channels{gap:10px}
  .chan{min-height:52px;font-size:15px}
  .consent input{width:20px;height:20px;margin-top:1px}
  .quiz__submit{min-height:62px;font-size:18px}
  .quiz__check{width:64px;height:64px}
  .quiz__thanks{font-size:17px;line-height:1.6}
  .quiz-sec__links{grid-column:1/span 5;grid-row:2;gap:26px}
  .quiz-sec__links .btn{width:auto;align-self:flex-start;min-height:56px;padding:10px 24px;font-size:16px}
  .quiz-sec__phone{align-items:flex-start;gap:4px;padding-top:0}
  .quiz-sec__phone-l{font-size:14px}
  .quiz-sec__phone-n{font-size:30px}

  /* FAQ */
  .faq-sec{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start}
  #faq > * + *{margin-top:0}
  .faq-sec .sec-head{grid-column:span 4}
  .faq{grid-column:6/span 7}
  .faq__q{min-height:72px;padding:20px 0;gap:24px}
  .faq__q > span:first-child{font-size:20px}
  .faq__ico{width:36px;height:36px;font-size:22px}
  .faq__a p{padding:0 60px 24px 0;font-size:17px;line-height:1.6}

  /* финал + подвал */
  .final{padding:112px max(var(--px),calc((100% - 1200px)/2)) 0}
  .final__row{flex-direction:row;justify-content:space-between;align-items:center;gap:48px}
  .final__title{font-size:clamp(40px,3.89vw,56px);line-height:1.06;max-width:600px;letter-spacing:-.015em}
  .final__actions{display:flex;gap:12px;flex-shrink:0}
  .final__cta{margin-bottom:0;height:62px;padding:0 32px;font-size:18px}
  .final__actions .btn--light{height:62px;padding:0 24px;font-size:17px}
  .footer{padding:72px max(var(--px),calc((100% - 1200px)/2)) 48px;font-size:14px;display:flex;justify-content:space-between;column-gap:48px;row-gap:32px;flex-wrap:wrap}
  .footer::before{flex-basis:100%;margin:0}
  .footer__req{flex:1 1 520px}
  .footer__links{flex-direction:row;align-items:flex-start;gap:24px;margin-top:0;flex-shrink:0}
  .footer__links a{min-height:0}
  .footer__phone{color:#F4F5F7!important;font-weight:700;text-decoration:none;white-space:nowrap}

  .sticky-bar{display:none}
  .cookie{bottom:24px;right:24px;left:auto;max-width:560px}
}

@media (max-width:899px){
  .team__h2{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}

/* 900–1199: статистика в две строки, ссылка на картотеку отдельной строкой */
@media (min-width:900px) and (max-width:1199px){
  .header{gap:20px}
  .header__logo,.header__tagline{white-space:nowrap}
  .header__nav{gap:20px;font-size:14px}
  .header__phone{font-size:15px;margin-right:4px}
  .hero__actions{gap:12px}
  .photo--hero .photo__badge{left:-28px}
  .hero__actions .btn--gold{padding:0 24px;font-size:16px}
  .hero__msg{padding:0 18px;font-size:16px}
  .guarantees{grid-template-columns:repeat(2,minmax(0,1fr))}
  .guarantee:nth-child(2){border-right:0}
  .guarantee:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .quiz-sec__links .btn{height:auto;padding-top:12px;padding-bottom:12px}
  .trust__kad{grid-column:1/-1}
  .final__row{flex-direction:column;align-items:flex-start}
  .hero__title{font-size:clamp(40px,4.4vw,66px)}
}
@media (min-width:1200px){
  .trust__stats{grid-template-columns:repeat(4,minmax(0,1fr)) 1.1fr}
  .trust__kad{grid-column:auto}
}

/* ==========================================================================
   Анимации появления (только если JS и нет reduced-motion)
   ========================================================================== */
.js:not(.rm):not(.rv-fail) [data-anim="up"]:not(.is-in),
.js:not(.rm):not(.rv-fail) [data-stagger] > *:not(.is-in):not(.sr-only){opacity:0}
.js:not(.rm):not(.rv-fail) [data-anim="clip"]:not(.is-in){clip-path:inset(0 0 100% 0)}
.js:not(.rm):not(.rv-fail) .step:not(.is-in) .step__fill{transform:scaleX(0)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .shine{display:none}
  .media__track{animation:none!important}
  .media__viewport{overflow-x:auto;scrollbar-width:none}
}

/* ==========================================================================
   Юридические страницы (privacy.html, consent.html)
   ========================================================================== */
.legal{background:var(--white);padding:40px var(--px) 64px}
.legal__inner{max-width:820px;margin:0 auto}
.legal__back{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;margin-bottom:12px}
.legal h1{font-family:var(--serif);font-size:30px;line-height:1.15;font-weight:700;letter-spacing:-.01em;margin-bottom:8px}
.legal__meta{font-size:14px;color:var(--t3);margin-bottom:32px}
.legal h2{font-family:var(--serif);font-size:21px;line-height:1.3;font-weight:600;margin:36px 0 12px}
.legal p,.legal li{font-size:16px;line-height:1.65;color:#2B3142}
.legal p + p{margin-top:12px}
.legal ul,.legal ol{margin:10px 0 0;padding-left:22px}
.legal ul{list-style:disc}
.legal ol{list-style:decimal}
.legal li + li{margin-top:6px}
.legal__card{margin-top:16px;padding:20px 22px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.legal__card p{font-size:15px}
.legal-page .footer{padding-top:32px}
.legal-page .footer::before{display:none}
@media (min-width:900px){
  .legal{padding:72px var(--px) 112px}
  .legal h1{font-size:44px}
  .legal h2{font-size:24px}
  .legal-page .footer{padding-top:40px}
}

/* 900–1099: навигацию по разделам убираем, чтобы уместились логотип, телефон и мессенджеры */
@media (min-width:900px) and (max-width:1099px){
  .header__nav{display:none}
}

/* === Тарифы: строки «название — количество» как на nidzhat.ru/price === */
.plan__desc{font-size:14px;line-height:1.45;color:var(--t3);margin-top:-10px}
.plan--dark .plan__desc{color:var(--on-d)}
.plan__rows{gap:0}
.plan__rows li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.plan__rows li:last-child{border-bottom:0}
.plan__rows li b{font-weight:600;white-space:nowrap;text-align:right}
.plan--dark .plan__rows li{border-bottom-color:var(--line-d)}
.plan--dark .plan__rows li b{color:var(--gold-l)}
.plan .plan__sum{color:var(--gold-t)}
.plan--dark .plan__sum{color:var(--gold-l)}
.oneoff{margin-top:32px;padding:24px 22px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.oneoff__title{font-family:var(--serif);font-size:20px;font-weight:600;margin:0 0 12px}
.oneoff__list{list-style:none;margin:0;padding:0}
.oneoff__list li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:15px}
.oneoff__list li b{white-space:nowrap;color:var(--gold-t);font-weight:700}
.oneoff__note{margin:14px 0 0;font-size:14px;color:var(--t3);line-height:1.5}
@media (min-width:900px){
  .plan__rows{gap:0;padding-top:12px}
  .plan__rows li{padding:13px 0;font-size:15px}
  .oneoff{margin-top:56px;padding:36px 40px;border-radius:16px}
  .oneoff__title{font-size:26px}
  .oneoff__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:48px}
  .oneoff__list li{font-size:16px}
  #services .oneoff + .footnote{margin-top:32px}
}

/* === Рейтинги на площадках === */
.ratings{display:grid;grid-template-columns:1fr;gap:12px;margin-top:32px}
.rating{padding:22px;border-radius:14px;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.rating__platform{font-family:var(--serif);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--gold-t)}
.rating__score{display:flex;align-items:center;gap:12px}
.rating__num{font-family:var(--serif);font-size:44px;font-weight:700;line-height:1}
.rating__stars{display:flex;gap:3px}
.rating__stars svg{width:18px;height:18px;fill:var(--gold)}
.rating__count{font-size:15px;color:var(--t2)}
.rating__actions{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;margin-top:6px}
.rating__shot{min-height:44px;padding:0 16px;border-radius:8px;border:1.5px solid var(--navy);background:transparent;color:var(--navy);font:600 14px/1 var(--sans, inherit);cursor:pointer}
.rating__shot:hover{background:var(--navy);color:#fff}
.rating__link{font-size:14px;font-weight:600}
.rating__pic{display:block;width:100%;margin-top:10px;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;cursor:zoom-in}
.rating__pic img{display:block;width:100%;height:auto}
.rating__pic:hover{border-color:var(--gold)}
@media (min-width:900px){
  .ratings{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:56px}
  .rating{padding:32px}
  .rating__num{font-size:56px}
}

.plan__price{flex-wrap:wrap;row-gap:2px}
.plan__per{white-space:nowrap}

/* ===== Обновление 10.2026: тёмный первый экран, фото без фона, «честно о шансах», сроки, сканы в карточках ===== */
.hero--dark{background:var(--navy);color:#F4F5F7}
.hero--dark .hero__title{color:#fff}
.hero--dark .hero__title .gold{color:var(--gold-l)}
.hero--dark .hero__eyebrow{color:var(--gold-l)}
.hero--dark .hero__eyebrow-line{background:var(--gold-l)}
.hero--dark .hero__sub,.hero--dark .hero__bullets li{color:#D9DCE3}
.hero--dark .hero__bullets li::before{background-color:#2A3247;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2BC85' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.hero--dark .hero__quiz{color:var(--gold-l)}
.hero--dark .hero__note{color:var(--on-d)}
.hero--dark .hero__pick-t{color:#fff}
.hero--dark :focus-visible{outline-color:var(--gold-l)}

.cutout{position:relative;margin:0;background:radial-gradient(closest-side,rgba(179,155,94,.38),rgba(179,155,94,0) 72%) 50% 42%/92% 78% no-repeat}
.cutout img{display:block;width:100%;max-width:600px;height:auto;margin:0 auto}
.cutout__cap{position:relative;z-index:1;width:calc(100% - 32px);max-width:452px;margin:-6px auto 0;padding:14px 18px;border-radius:12px;background:#fff;color:var(--navy);display:flex;flex-direction:column;gap:2px;box-shadow:0 20px 40px -20px rgba(20,27,45,.5)}
.cutout__name{font-weight:700;font-size:16px}
.cutout__role{font-size:14px;line-height:1.45;color:var(--t2)}
.cutout--sm{max-width:300px;width:100%;margin:0 auto}

.honest{background:var(--navy);color:#F4F5F7}
.honest__grid{display:grid;gap:28px}
.honest__head{display:flex;flex-direction:column;gap:16px}
.honest__eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-l);font-weight:600}
.honest .h2{color:#fff}
.honest__lead{font-size:17px;line-height:1.55;color:#D9DCE3}
.honest__items{display:grid;gap:12px}
.honest__item{border:1px solid var(--line-d);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:6px}
.honest__item h3{font-size:18px;font-weight:700;line-height:1.3;color:#fff}
.honest__item p{font-size:15px;line-height:1.5;color:var(--on-d)}

.urg{display:grid;gap:16px;margin-top:8px}
.urg__item{display:none;background:var(--cream);border-radius:14px;padding:24px;flex-direction:column;gap:6px}
html[data-variant="d"] .urg__item[data-for~="d"],html[data-variant="r"] .urg__item[data-for~="r"],html[data-variant="s"] .urg__item[data-for~="s"],html[data-variant="l"] .urg__item[data-for~="l"],html[data-variant="v"] .urg__item[data-for~="v"],html[data-variant="f"] .urg__item[data-for~="f"],
html[data-variant="a"] .urg__item[data-for~="a"],html[data-variant="b"] .urg__item[data-for~="b"],html[data-variant="c"] .urg__item[data-for~="c"]{display:flex}
.urg__v{font-family:var(--serif);font-size:36px;line-height:1.1;font-weight:700;color:var(--gold-th)}
.urg__t{font-weight:600;font-size:16px;line-height:1.4}
.urg__d{font-size:15px;line-height:1.5;color:var(--t2)}

.fcase .case__scan{width:auto;height:190px;margin:-22px -20px 6px;border:0;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.fcase__check{color:var(--gold-t);font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.fcase__check:hover{color:var(--navy)}
.fcase__scanlbl{position:absolute;left:10px;bottom:10px;padding:4px 8px;border-radius:6px;background:rgba(20,27,45,.88);color:#fff;font-size:12px;font-weight:600;pointer-events:none}
.dir__rows li.dir__total{border-bottom:0;margin-top:4px;padding:10px 12px;border-radius:8px;background:var(--navy);color:#fff;font-weight:600}
.dir__rows li.dir__total b{color:var(--gold-l)}
.law-note{margin-top:20px;padding:14px 18px;border-radius:10px;background:var(--cream);color:var(--gold-th);font-size:15px;line-height:1.5}

@media (min-width:600px){
  .honest__items{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
  .hero .cutout{grid-column:8/span 5;align-self:center}
  .team .cutout{grid-column:span 5}
  .honest__grid{grid-template-columns:5fr 7fr;gap:48px;align-items:start}
  .urg{grid-template-columns:repeat(3,minmax(0,1fr))}
  .final__photo{flex:0 0 240px;margin:0}
}
.oneoff__list li.oneoff__total{grid-column:1/-1;margin-top:8px;padding:10px 12px;border-bottom:0;border-radius:8px;background:var(--navy);color:#fff;font-weight:600}
.oneoff__list li.oneoff__total b{color:var(--gold-l)}
.who-t{margin:14px 0 6px;font-size:13px;font-weight:600;color:var(--muted,#6b7280)}
.quiz__step .who-t:first-of-type{margin-top:4px}
.who-fiz{margin:8px 0 0;padding:10px 12px;border-radius:8px;background:rgba(201,162,77,.12);font-size:14px;line-height:1.4}
.who-fiz a{color:var(--gold-t);font-weight:600;text-decoration:underline}
