/* =========================================================
   ТОКЕНЫ
   ========================================================= */
:root{
  --ink:        #0A1724;
  --ink-800:    #0F2234;
  --ink-600:    #1B3348;
  --paper:      #FBF9F6;
  --paper-2:    #F2EEE8;
  --line:       #E4DDD2;
  --line-soft:  #EFE9E0;
  --brass:      #C49A5C;
  --brass-soft: #E0C79A;
  --brass-deep: #8C6A34;
  --text:       #15212C;
  --muted:      #5A6875;
  --white:      #FFFFFF;
  --green:      #2E7D5B;
  --red:        #C0392B;

  --on-dark:       #EEF2F6;
  --on-dark-muted: #9CAEBE;
  --on-dark-line:  rgba(255,255,255,.12);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(10,23,36,.06), 0 2px 8px rgba(10,23,36,.04);
  --sh-md: 0 4px 12px rgba(10,23,36,.07), 0 12px 32px rgba(10,23,36,.06);
  --sh-lg: 0 8px 24px rgba(10,23,36,.10), 0 24px 64px rgba(10,23,36,.12);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --bar-h: 70px;

  --f-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-sheet: cubic-bezier(.32,.72,0,1);
}

/* =========================================================
   БАЗА
   ========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--f-body);
  font-size:16px; line-height:1.6;
  color:var(--text); background:var(--paper);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
body.is-locked{ overflow:hidden; }

img,svg,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
p{ margin:0 0 1em; }
button{ font:inherit; color:inherit; cursor:pointer; background:none; border:none; }
:focus-visible{ outline:2px solid var(--brass); outline-offset:3px; border-radius:4px; }

.skip-link{ position:absolute; left:-9999px; top:0; z-index:300; background:var(--ink); color:#fff; padding:12px 18px; }
.skip-link:focus{ left:0; }

section[id]{ scroll-margin-top:calc(var(--header-h) + 12px); }

h1,h2,h3,h4{
  font-family:var(--f-display); font-weight:800; line-height:1.18;
  letter-spacing:-.025em; color:var(--ink); margin:0 0 .5em;
  text-wrap:balance;
}
.display{
  font-size:clamp(31px, 5vw, 56px); line-height:1.08;
  letter-spacing:-.035em; margin-bottom:.4em;
}
.display em{ font-style:normal; color:var(--brass-soft); }
.display--sm{ font-size:clamp(28px, 4.4vw, 46px); }
.h2{ font-size:clamp(25px, 3.4vw, 40px); margin-bottom:.45em; }
h3{ font-size:19px; letter-spacing:-.01em; }

.microtext{ font-size:13px; line-height:1.5; color:var(--muted); margin:12px 0 0; }
.center{ text-align:center; }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brass-deep); margin:0 0 18px;
}
.eyebrow--center{ justify-content:center; }
.eyebrow--brass{ color:var(--brass-soft); }
.eyebrow__num{ font-size:12px; font-weight:800; letter-spacing:.06em; opacity:.55; }
.eyebrow__dot{ width:7px; height:7px; border-radius:50%; background:var(--brass); flex:none; }
.eyebrow__dot--pulse{ animation:pulse 2.4s var(--ease) infinite; }
@keyframes pulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(196,154,92,.55); }
  50%{ box-shadow:0 0 0 7px rgba(196,154,92,0); }
}

/* =========================================================
   СЕТКА
   ========================================================= */
.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }
.container.narrow{ max-width:760px; }

.section{ padding:clamp(56px, 8vw, 104px) 0; }
.section--paper{ background:var(--paper-2); }
.section--ink{ background:var(--ink); color:var(--on-dark); position:relative; overflow:hidden; }
.section--ink h2,.section--ink h3{ color:var(--white); }
.section--ink .section__lead,
.section--ink .microtext,
.section--ink p{ color:var(--on-dark-muted); }

.section__head{ max-width:680px; margin-bottom:clamp(32px,4vw,48px); }
.section__head--center{ margin-left:auto; margin-right:auto; text-align:center; }
.section__head--center .eyebrow{ justify-content:center; }
.section__lead{ font-size:clamp(16px,1.5vw,18px); color:var(--muted); max-width:58ch; margin-bottom:0; }
.section__lead--center{ margin-left:auto; margin-right:auto; }
.section__cta{ margin-top:clamp(28px,3.5vw,40px); }
.section__cta--center{ text-align:center; }

[data-reveal]{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  [data-reveal]{ opacity:1; transform:none; transition:none; }
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:16px 30px;
  font-size:15px; font-weight:700; letter-spacing:-.005em;
  border:1px solid transparent; border-radius:var(--r-full);
  text-align:center;
  transition:background .2s var(--ease), color .2s var(--ease),
             border-color .2s var(--ease), transform .12s var(--ease), box-shadow .2s var(--ease);
}
.btn svg{ width:18px; height:18px; flex:none; }
.btn:active{ transform:translateY(1px); }
.btn--brass{ background:var(--brass); color:var(--ink); box-shadow:0 2px 12px rgba(196,154,92,.28); }
.btn--brass:hover{ background:var(--brass-soft); box-shadow:0 6px 22px rgba(196,154,92,.4); }
.btn--ink{ background:var(--ink); color:var(--white); box-shadow:var(--sh-sm); }
.btn--ink:hover{ background:var(--ink-600); box-shadow:var(--sh-md); }
.btn--ghost{ background:transparent; border-color:rgba(255,255,255,.28); color:var(--on-dark); }
.btn--ghost:hover{ border-color:var(--brass); color:var(--brass-soft); }
.btn--outline{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn--outline:hover{ border-color:var(--ink); background:var(--ink); color:var(--white); }
.btn--sm{ padding:11px 20px; font-size:14px; }
.btn--lg{ padding:18px 34px; font-size:16px; }
.btn--block{ display:flex; width:100%; }

.link{
  color:var(--brass-deep); font-weight:600; text-decoration:underline;
  text-underline-offset:3px; text-decoration-color:rgba(140,106,52,.4);
}
.link:hover{ text-decoration-color:currentColor; }

/* =========================================================
   ЛОГОТИП
   ========================================================= */
.logo{ display:flex; align-items:center; gap:11px; flex:none; }
.logo__mark{
  width:40px; height:40px; flex:none;
  display:flex; align-items:center; justify-content:center;
  border-radius:11px;
  background:linear-gradient(145deg, var(--brass) 0%, var(--brass-deep) 100%);
  color:#fff;
  font-family:var(--f-body); font-size:12.5px; font-weight:800; letter-spacing:.02em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
.logo__text{ display:flex; flex-direction:column; line-height:1.15; }
.logo__name{
  font-size:17px; font-weight:800; letter-spacing:-.02em; color:var(--white);
  transition:color .3s var(--ease); white-space:nowrap;
}
.logo__tag{ font-size:11px; color:var(--on-dark-muted); white-space:nowrap; }

/* =========================================================
   ШАПКА
   ========================================================= */
.header{
  position:fixed; top:0; left:0; right:0; z-index:90; height:var(--header-h);
  border-bottom:1px solid transparent;
  transition:background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:var(--header-h); }
.header__nav{ display:none; gap:26px; }
.header__nav a{ font-size:14px; font-weight:500; color:rgba(255,255,255,.78); transition:color .2s var(--ease); }
.header__nav a:hover{ color:var(--brass-soft); }
.header__actions{ display:flex; align-items:center; gap:14px; flex:none; }
.header__phone{ display:none; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--white); }
.header__phone svg{ width:16px; height:16px; color:var(--brass); }
.header__cta{ display:none; }

.header.is-stuck{
  background:rgba(251,249,246,.9);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
  box-shadow:0 1px 20px rgba(10,23,36,.06);
}
.header.is-stuck .logo__name,
.header.is-stuck .header__phone{ color:var(--ink); }
.header.is-stuck .logo__tag{ color:var(--muted); }
.header.is-stuck .header__nav a{ color:var(--muted); }
.header.is-stuck .header__nav a:hover{ color:var(--ink); }

@media (min-width:1020px){
  .header__nav{ display:flex; }
  .header__phone{ display:flex; }
  .header__cta{ display:inline-flex; }
}
@media (min-width:640px) and (max-width:1019px){ .header__cta{ display:inline-flex; } }
@media (max-width:420px){ .logo__tag{ display:none; } }

/* =========================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================= */
.hero{
  position:relative; padding:calc(var(--header-h) + 42px) 0 0;
  background:var(--ink); color:var(--on-dark); overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(120% 80% at 82% 6%, rgba(196,154,92,.22), transparent 58%),
    radial-gradient(90% 70% at 6% 100%, rgba(27,51,72,.9), transparent 62%),
    linear-gradient(180deg, #0A1724 0%, #0C1D2E 62%, #0A1724 100%);
}
.hero__bg::after{
  content:""; position:absolute; inset:0; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(circle at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image:radial-gradient(circle at 50% 0%, #000 10%, transparent 72%);
}
.hero__grid{ position:relative; z-index:1; display:grid; gap:40px; padding-bottom:clamp(40px,6vw,60px); }
.hero__content{ max-width:640px; }
.hero .display{ color:var(--white); }
.hero .display em{ color:var(--brass-soft); }
.hero__lead{ font-size:clamp(16px,1.7vw,18.5px); line-height:1.6; color:var(--on-dark-muted); max-width:50ch; margin-bottom:26px; }
.hero__points{ display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 30px; }
.hero__points li{ display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--on-dark); }
.hero__points svg{ width:15px; height:15px; color:var(--brass); flex:none; }
.hero__cta-row{ display:flex; flex-wrap:wrap; gap:12px; }
.hero__microtext{ font-size:13px; color:var(--on-dark-muted); margin:16px 0 0; }
.hero__aside{ display:none; }

.trustbar{
  position:relative; z-index:1;
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px;
  background:var(--on-dark-line);
  border-top:1px solid var(--on-dark-line); border-bottom:1px solid var(--on-dark-line);
}
.trustbar li{ background:var(--ink); padding:20px 16px; display:flex; flex-direction:column; gap:4px; }
.trustbar__value{ font-family:var(--f-display); font-size:clamp(19px,2.2vw,24px); font-weight:600; color:var(--brass-soft); line-height:1.1; }
.trustbar__label{ font-size:12.5px; line-height:1.45; color:var(--on-dark-muted); }

@media (min-width:900px){
  .hero__grid{ grid-template-columns:1.05fr .95fr; gap:52px; align-items:start; padding-top:16px; }
  .hero__aside{ display:block; }
  .trustbar{ grid-template-columns:repeat(4,1fr); }
}
/* Полоса доверия с регалиями должна попадать в первый экран */
@media (min-width:1100px){ .hero{ padding-top:calc(var(--header-h) + 34px); } }

/* =========================================================
   ЧАТ
   ========================================================= */
.chat{
  display:flex; flex-direction:column;
  background:var(--white); border-radius:var(--r-lg);
  box-shadow:var(--sh-lg); overflow:hidden;
  color:var(--text);
}
.chat__head{
  display:flex; align-items:center; gap:12px;
  padding:16px 20px;
  background:var(--ink-800); color:var(--white);
}
.chat__avatar{
  width:42px; height:42px; flex:none; border-radius:50%;
  object-fit:cover; object-position:center 30%;
  background:var(--ink-600);
}
.chat__who{ flex:1; min-width:0; }
.chat__name{ margin:0; font-size:14.5px; font-weight:700; line-height:1.3; }
.chat__status{
  margin:1px 0 0; font-size:12px; color:var(--brass-soft);
  display:flex; align-items:center; gap:6px;
}
.chat__status::before{
  content:""; width:7px; height:7px; border-radius:50%; background:#49C17E;
  box-shadow:0 0 0 0 rgba(73,193,126,.6); animation:pulse-green 2.2s infinite;
}
.chat__status--off{ color:var(--on-dark-muted); }
.chat__status--off::before{ background:#C8A25C; animation:none; box-shadow:none; }
@keyframes pulse-green{
  0%,100%{ box-shadow:0 0 0 0 rgba(73,193,126,.55); }
  50%{ box-shadow:0 0 0 6px rgba(73,193,126,0); }
}

.chat__progress{ height:3px; background:rgba(255,255,255,.12); }
.chat__progress-bar{
  height:100%; width:0; background:var(--brass);
  transition:width .45s var(--ease);
}

.chat__log{
  flex:1; min-height:230px; max-height:340px; overflow-y:auto;
  padding:20px; display:flex; flex-direction:column; gap:12px;
  background:var(--paper);
  scroll-behavior:smooth;
}
.chat--sheet .chat__log{ max-height:none; min-height:0; }

.msg{ display:flex; gap:9px; max-width:92%; animation:msgIn .35s var(--ease); }
@keyframes msgIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.msg__avatar{
  width:28px; height:28px; flex:none; border-radius:50%; align-self:flex-end;
  object-fit:cover; object-position:center 30%;
  background:var(--paper-2);
}
.msg__bubble{
  padding:11px 15px; border-radius:16px 16px 16px 4px;
  background:var(--white); border:1px solid var(--line-soft);
  font-size:14.5px; line-height:1.5; box-shadow:var(--sh-sm);
}
.msg--user{ align-self:flex-end; max-width:82%; }
.msg--user .msg__bubble{
  background:var(--ink); color:var(--white); border-color:var(--ink);
  border-radius:16px 16px 4px 16px;
}

.typing{ display:flex; gap:4px; padding:4px 2px; }
.typing span{
  width:7px; height:7px; border-radius:50%; background:var(--brass);
  animation:typing 1.2s infinite;
}
.typing span:nth-child(2){ animation-delay:.18s; }
.typing span:nth-child(3){ animation-delay:.36s; }
@keyframes typing{
  0%,60%,100%{ opacity:.3; transform:translateY(0); }
  30%{ opacity:1; transform:translateY(-4px); }
}

.chat__foot{
  padding:16px 20px 18px;
  border-top:1px solid var(--line-soft);
  background:var(--white);
}
.chat__chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  padding:10px 15px; border-radius:var(--r-full);
  border:1px solid var(--line); background:var(--white);
  font-size:13.5px; font-weight:600; color:var(--ink);
  transition:border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.chip:hover{ border-color:var(--brass); background:rgba(196,154,92,.1); }

.chat__fast{
  display:block; width:100%; margin-top:12px; padding:11px;
  border-radius:var(--r-sm); background:var(--paper-2);
  font-size:13.5px; font-weight:700; color:var(--ink);
  transition:background .18s var(--ease);
}
.chat__fast:hover{ background:rgba(196,154,92,.18); }

.chat__form{ display:flex; flex-direction:column; gap:10px; }
.chat__row{ display:flex; gap:9px; align-items:stretch; }
.chat__input{
  flex:1; min-width:0;
  padding:14px 16px; font-family:inherit; font-size:16px; color:var(--text);
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-sm);
  transition:border-color .18s var(--ease), box-shadow .18s var(--ease);
}
textarea.chat__input{ resize:none; min-height:84px; line-height:1.5; }
.chat__input::placeholder{ color:#97A3AE; }
.chat__input:focus{ outline:none; border-color:var(--brass); box-shadow:0 0 0 3px rgba(196,154,92,.18); }
.chat__input.has-error{ border-color:var(--red); box-shadow:0 0 0 3px rgba(192,57,43,.12); }
.chat__send{
  flex:none; width:52px; border-radius:var(--r-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--brass); color:var(--ink);
  transition:background .18s var(--ease);
}
.chat__send:hover{ background:var(--brass-soft); }
.chat__send svg{ width:20px; height:20px; }
.chat__error{ margin:0; font-size:12.5px; font-weight:600; color:var(--red); }
.chat__skip{
  align-self:flex-start; font-size:13px; font-weight:600; color:var(--muted);
  text-decoration:underline; text-underline-offset:3px;
}
.chat__skip:hover{ color:var(--ink); }

.chat__consent{
  display:flex; align-items:flex-start; gap:10px;
  font-size:12px; line-height:1.5; color:var(--muted);
  cursor:pointer;
}
.chat__consent input{ flex:none; width:18px; height:18px; margin-top:1px; accent-color:var(--brass-deep); }
.chat__consent.has-error{ color:var(--red); }

.chat__note{
  margin:10px 0 0; font-size:11.5px; line-height:1.5; color:var(--muted); text-align:center;
}
.chat__done{ padding:26px 20px; text-align:center; }
.chat__done-icon{
  width:56px; height:56px; margin:0 auto 14px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(46,125,91,.12); color:var(--green);
}
.chat__done-icon svg{ width:28px; height:28px; }
.chat__done h3{ margin-bottom:8px; }
.chat__done p{ font-size:14px; color:var(--muted); margin-bottom:16px; }

/* =========================================================
   ДОКАЗАТЕЛЬСТВА
   ========================================================= */
.reviews{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(290px,1fr)); }
.review{
  display:flex; flex-direction:column;
  padding:28px 26px; background:var(--white);
  border:1px solid var(--line); border-radius:var(--r-lg);
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.review:hover{ transform:translateY(-3px); box-shadow:var(--sh-md); }
.review__tag{
  align-self:flex-start; margin:0 0 14px; padding:5px 13px;
  background:rgba(196,154,92,.13); border-radius:var(--r-full);
  font-size:11.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--brass-deep);
}
.review__text{
  font-family:var(--f-display); font-size:16.5px; line-height:1.55;
  color:var(--ink); margin-bottom:18px;
}
.review__result{
  display:flex; align-items:flex-start; gap:9px;
  margin:0 0 18px; padding:13px 15px;
  background:var(--paper-2); border-radius:var(--r-sm);
  font-size:13.5px; line-height:1.45; color:var(--text);
}
.review__result svg{ width:16px; height:16px; flex:none; margin-top:2px; color:var(--green); }
.review__foot{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-top:auto; padding-top:16px; border-top:1px solid var(--line-soft);
  font-size:13px; color:var(--muted);
}
.review__who{ font-weight:700; color:var(--ink); }
.proof__foot{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:20px;
  margin-top:32px;
}

/* =========================================================
   НАПРАВЛЕНИЯ
   ========================================================= */
.topics{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:14px; }
.topic{
  position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:9px;
  padding:24px 22px 58px; text-align:left;
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-md);
  transition:border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.topic:hover{ border-color:var(--brass); box-shadow:var(--sh-md); transform:translateY(-3px); }
.topic--other{ background:var(--paper-2); border-style:dashed; }
.topic__icon{
  width:44px; height:44px; flex:none; margin-bottom:4px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px; background:rgba(196,154,92,.12); color:var(--brass-deep);
  transition:background .22s var(--ease);
}
.topic:hover .topic__icon{ background:rgba(196,154,92,.22); }
.topic__icon svg{ width:23px; height:23px; }
.topic__title{ font-family:var(--f-display); font-size:18px; font-weight:600; color:var(--ink); }
.topic__text{ font-size:14px; line-height:1.5; color:var(--muted); }
.topic__arrow{
  position:absolute; left:22px; bottom:22px;
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--paper-2); color:var(--brass-deep);
  transition:background .22s var(--ease), transform .22s var(--ease), color .22s var(--ease);
}
.topic__arrow svg{ width:17px; height:17px; }
.topic:hover .topic__arrow,
.topic:focus-visible .topic__arrow{ background:var(--brass); color:var(--ink); transform:translateX(4px); }

@media (max-width:600px){
  .topic{
    display:grid;
    grid-template-columns:42px 1fr 30px;
    grid-template-areas:"icon title arrow" "icon text arrow";
    align-items:center; column-gap:14px; row-gap:3px; padding:16px;
  }
  .topic__icon{ grid-area:icon; width:42px; height:42px; margin:0; align-self:center; }
  .topic__icon svg{ width:21px; height:21px; }
  .topic__title{ grid-area:title; font-size:16.5px; align-self:end; }
  .topic__text{ grid-area:text; font-size:13.5px; align-self:start; }
  .topic__arrow{ grid-area:arrow; position:static; width:30px; height:30px; align-self:center; background:transparent; }
  .topic__arrow svg{ width:16px; height:16px; }
}

/* =========================================================
   СРОКИ
   ========================================================= */
/* 6 карточек: строго 3 или 2 колонки, иначе последний ряд остаётся полупустым */
.deadlines{
  display:grid; grid-template-columns:1fr; gap:1px;
  background:var(--on-dark-line); border:1px solid var(--on-dark-line);
  border-radius:var(--r-md); overflow:hidden;
}
@media (min-width:620px){ .deadlines{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .deadlines{ grid-template-columns:repeat(3,1fr); } }
.deadline{ background:var(--ink); padding:24px 22px; }
.deadline__value{
  display:block; margin-bottom:8px;
  font-family:var(--f-display); font-size:30px; font-weight:700; color:var(--brass-soft); line-height:1;
}
.deadline__label{ margin:0; font-size:14px; line-height:1.5; color:var(--on-dark-muted); }
/* Калькулятор сроков */
.dlcalc{
  margin-top:28px; padding:28px 26px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--on-dark-line);
  border-radius:var(--r-lg);
}
.dlcalc__head{ margin-bottom:18px; }
.dlcalc__title{ font-size:21px; color:var(--white); margin-bottom:6px; }
.dlcalc__sub{ margin:0; font-size:14.5px; line-height:1.55; color:var(--on-dark-muted); max-width:58ch; }
.dlcalc__form{ display:flex; flex-wrap:wrap; gap:10px; }
.dlcalc__input{
  flex:1; min-width:190px;
  padding:15px 16px; font-family:inherit; font-size:16px;
  color:var(--white); background:rgba(255,255,255,.07);
  border:1px solid var(--on-dark-line); border-radius:var(--r-sm);
  color-scheme:dark;
}
.dlcalc__input:focus{ outline:none; border-color:var(--brass); box-shadow:0 0 0 3px rgba(196,154,92,.2); }
.dlcalc__input.has-error{ border-color:#E4776B; }
.dlcalc__result{
  margin-top:20px; padding:20px 22px;
  background:var(--white); border-radius:var(--r-md);
  border-left:4px solid var(--brass);
}
.dlcalc__days{
  display:block; margin-bottom:8px;
  font-family:var(--f-display); font-size:30px; font-weight:700; line-height:1;
  color:var(--ink);
}
.dlcalc__days--urgent{ color:#B6392B; }
.dlcalc__text{ margin:0 0 14px; font-size:14.5px; line-height:1.55; color:var(--muted); }
.dlcalc__text strong{ color:var(--ink); }
.dlcalc__note{ max-width:62ch; }

@media (max-width:520px){
  .dlcalc{ padding:22px 18px; }
  .dlcalc__form .btn{ width:100%; }
}

/* =========================================================
   ПОДХОД
   ========================================================= */
.advantages{ display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); }
.advantage{
  padding:28px 24px; background:var(--white);
  border:1px solid var(--line); border-radius:var(--r-md); border-top:3px solid var(--brass);
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.advantage:hover{ transform:translateY(-3px); box-shadow:var(--sh-md); }
.advantage__num{ display:block; margin-bottom:14px; font-family:var(--f-display); font-size:15px; font-weight:600; letter-spacing:.06em; color:var(--brass-deep); }
.advantage h3{ margin-bottom:8px; }
.advantage p{ margin:0; font-size:14.5px; line-height:1.55; color:var(--muted); }

/* =========================================================
   СПЕЦИАЛИСТ
   ========================================================= */
.judge__grid{ display:grid; gap:clamp(34px,5vw,48px); align-items:start; }
@media (min-width:880px){
  .judge__grid{
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    gap:clamp(44px,5.5vw,76px);
    align-items:center;
  }
}

.judge__media{ position:relative; width:100%; max-width:400px; }
@media (max-width:879px){ .judge__media{ margin-inline:auto; } }

/* Портрет кадрируется по верхней трети: лицо не уезжает за край */
.judge__photo{
  position:relative; overflow:hidden;
  aspect-ratio:4/5;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--ink-800) 0%, var(--ink) 100%);
  border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--sh-md);
}
.judge__photo span{
  padding:0 18px; text-align:center;
  font-size:13.5px; font-weight:600; letter-spacing:.04em; color:var(--on-dark-muted);
}
.judge__photo img{ width:100%; height:100%; object-fit:cover; object-position:center 22%; }
.judge__photo.is-filled{ background:var(--paper-2); }

.judge__stamp{
  position:absolute; right:-12px; bottom:-16px;
  width:114px; height:114px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:linear-gradient(145deg, var(--brass) 0%, var(--brass-deep) 100%);
  color:#fff; text-align:center;
  box-shadow:0 10px 26px rgba(140,106,52,.34), inset 0 1px 0 rgba(255,255,255,.34);
}
.judge__stamp-value{ font-family:var(--f-display); font-size:29px; font-weight:800; line-height:1; }
.judge__stamp-label{
  max-width:84px; font-size:10.5px; font-weight:700; line-height:1.25;
  letter-spacing:.07em; text-transform:uppercase; opacity:.92;
}
/* Пустой data-lawyer="years" — печать без цифры выглядит как брак, прячем */
.judge__stamp:not(:has(.judge__stamp-value:not(:empty))){ display:none; }

.judge__content{ max-width:660px; }
.judge__bio{ font-size:clamp(15px,1.5vw,16.5px); line-height:1.65; color:var(--muted); margin:0 0 14px; }
.judge__bio strong{ color:var(--ink); font-weight:800; }

.badges{ display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 0; }
.badges li{
  display:inline-flex; align-items:center; gap:9px;
  padding:9px 15px; border-radius:var(--r-full);
  background:var(--white); border:1px solid var(--line);
  font-size:13.5px; font-weight:600; line-height:1.35; color:var(--ink);
}
.badges svg{ width:16px; height:16px; flex:none; color:var(--brass-deep); }

.judge__honest{
  margin-top:24px; padding:18px 20px;
  background:var(--white);
  border:1px solid var(--line); border-left:3px solid var(--brass);
  border-radius:var(--r-sm);
}
.judge__honest p{ margin:0; font-size:14px; line-height:1.6; color:var(--muted); }
.judge__honest strong{ color:var(--ink); }

@media (max-width:480px){
  .judge__stamp{ right:4px; bottom:-14px; width:98px; height:98px; }
  .judge__stamp-value{ font-size:25px; }
  .judge__honest{ padding:16px 17px; }
}

/* =========================================================
   ШАГИ
   ========================================================= */
.steps{ display:grid; gap:28px; }
.step{ position:relative; padding-left:62px; }
.step__num{
  position:absolute; left:0; top:-2px; width:46px; height:46px;
  display:flex; align-items:center; justify-content:center; border-radius:50%;
  background:var(--ink); color:var(--brass-soft);
  font-family:var(--f-display); font-size:19px; font-weight:600;
}
.step h3{ margin-bottom:6px; }
.step p{ margin:0; font-size:14.5px; line-height:1.55; color:var(--muted); }
@media (min-width:860px){
  .steps{ grid-template-columns:repeat(4,1fr); gap:24px; }
  .step{ padding-left:0; padding-top:66px; }
  .step__num{ top:0; }
  .step::before{
    content:""; position:absolute; left:56px; right:-24px; top:23px; height:1px;
    background:linear-gradient(90deg, var(--line) 0%, var(--line) 70%, transparent 100%);
  }
  .step:last-child::before{ display:none; }
}

.included{ display:grid; gap:28px; margin-top:clamp(36px,5vw,56px); }
.included__label{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--brass-deep); margin:0 0 14px; }
@media (min-width:800px){ .included{ grid-template-columns:1fr 1fr; gap:44px; } }

/* =========================================================
   СПИСКИ И ВЫНОСКИ
   ========================================================= */
.ticks{ display:grid; gap:12px; }
.ticks li{ position:relative; padding-left:32px; font-size:15px; line-height:1.55; }
.ticks li::before{ content:""; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%; background:rgba(196,154,92,.16); }
.ticks li::after{
  content:""; position:absolute; left:6px; top:8px; width:8px; height:4px;
  border-left:2px solid var(--brass-deep); border-bottom:2px solid var(--brass-deep);
  transform:rotate(-45deg);
}
.ticks--light li{ color:var(--on-dark); }
.ticks--light li::before{ background:rgba(196,154,92,.22); }
.ticks--light li::after{ border-color:var(--brass-soft); }

.crosses{ display:grid; gap:12px; }
.crosses li{ position:relative; padding-left:32px; font-size:15px; line-height:1.55; color:var(--on-dark-muted); }
.crosses li::before{ content:""; position:absolute; left:0; top:2px; width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,.07); }
.crosses li::after{ content:"×"; position:absolute; left:6.5px; top:0; font-size:16px; line-height:24px; color:var(--on-dark-muted); }

.callout{
  padding:20px 22px; background:var(--white);
  border:1px solid var(--line); border-left:3px solid var(--brass);
  border-radius:var(--r-sm); font-size:14.5px; line-height:1.6;
}
.callout p{ margin:0; color:var(--muted); }
.callout--inline{ margin:28px 0 0; }
.callout--dark{ background:rgba(255,255,255,.04); border-color:var(--on-dark-line); border-left-color:var(--brass); margin-top:32px; }
.callout--dark p{ color:var(--on-dark-muted); }
.callout--dark strong{ color:var(--white); }

/* =========================================================
   ТАРИФЫ
   ========================================================= */
.plans{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(270px,1fr)); align-items:start; }
.plan{
  position:relative; display:flex; flex-direction:column;
  padding:30px 26px; background:var(--white);
  border:1px solid var(--line); border-radius:var(--r-lg);
}
.plan--featured{
  border-color:var(--brass); border-width:2px;
  box-shadow:var(--sh-lg);
  background:linear-gradient(180deg, rgba(196,154,92,.06) 0%, var(--white) 34%);
}
.plan__badge{
  position:absolute; top:-13px; left:50%; transform:translateX(-50%);
  padding:6px 16px; border-radius:var(--r-full);
  background:var(--brass); color:var(--ink);
  font-size:11.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  white-space:nowrap;
}
.plan__title{ font-size:20px; margin-bottom:10px; }
.plan__price{
  margin:0 0 4px; font-family:var(--f-display); font-size:34px; font-weight:700;
  color:var(--ink); line-height:1;
}
.plan__note{ margin:0 0 20px; font-size:13px; color:var(--muted); }
.plan__list{ display:grid; gap:10px; margin-bottom:24px; flex:1; }
.plan__list li{ position:relative; padding-left:26px; font-size:14.5px; line-height:1.5; }
.plan__list li::before{
  content:""; position:absolute; left:2px; top:7px; width:8px; height:4px;
  border-left:2px solid var(--brass); border-bottom:2px solid var(--brass);
  transform:rotate(-45deg);
}

/* =========================================================
   ГАРАНТИИ
   ========================================================= */
.guarantees{ display:grid; gap:32px; }
@media (min-width:840px){ .guarantees{ grid-template-columns:1fr 1fr; gap:48px; align-items:start; } }
.guarantee__label{
  display:inline-flex; align-items:center; gap:8px; margin:0 0 16px; padding:7px 15px;
  border-radius:var(--r-full);
  font-size:12.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.guarantee__label--yes{ background:rgba(196,154,92,.16); color:var(--brass-soft); }
.guarantee__label--no{ background:rgba(255,255,255,.07); color:var(--on-dark-muted); }

/* =========================================================
   FAQ
   ========================================================= */
.faq{ background:var(--white); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; }
.faq__item + .faq__item{ border-top:1px solid var(--line-soft); }
.faq__q{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  width:100%; padding:22px 24px; text-align:left;
  font-family:var(--f-display); font-size:17px; font-weight:600; color:var(--ink); line-height:1.35;
  transition:background .18s var(--ease);
}
.faq__q:hover{ background:rgba(196,154,92,.05); }
.faq__icon{
  position:relative; flex:none; width:26px; height:26px; border-radius:50%;
  background:rgba(196,154,92,.14);
  transition:background .2s var(--ease), transform .3s var(--ease);
}
.faq__icon::before,.faq__icon::after{
  content:""; position:absolute; left:50%; top:50%; background:var(--brass-deep);
  transform:translate(-50%,-50%); transition:opacity .2s var(--ease);
}
.faq__icon::before{ width:11px; height:1.8px; }
.faq__icon::after{ width:1.8px; height:11px; }
.faq__q[aria-expanded="true"] .faq__icon{ background:var(--brass); transform:rotate(180deg); }
.faq__q[aria-expanded="true"] .faq__icon::after{ opacity:0; }
.faq__a{ max-height:0; overflow:hidden; transition:max-height .34s var(--ease); }
.faq__a-inner{ padding:0 24px 22px; }
.faq__a-inner p{ margin:0; font-size:15px; line-height:1.6; color:var(--muted); max-width:62ch; }

/* =========================================================
   ФИНАЛЬНЫЙ ЭКРАН
   ========================================================= */
.final{
  position:relative; padding:clamp(64px,9vw,118px) 0;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(196,154,92,.16), transparent 60%),
    linear-gradient(180deg, #0C1D2E 0%, #0A1724 100%);
  color:var(--on-dark); overflow:hidden;
}
.final .display{ color:var(--white); }
.final__lead{ font-size:clamp(16px,1.6vw,18px); color:var(--on-dark-muted); max-width:52ch; margin:0 auto 32px; }
.final__cta{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.final__microtext{ margin:18px 0 0; font-size:13.5px; font-weight:600; color:var(--brass-soft); }
.final__limit{
  max-width:60ch; margin:36px auto 0; padding-top:26px;
  border-top:1px solid var(--on-dark-line);
  font-size:13px; line-height:1.6; color:var(--on-dark-muted);
}

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer{ background:#07121C; color:var(--on-dark-muted); padding:44px 0 36px; }
.footer__top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px;
  padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid var(--on-dark-line);
}
.logo--footer .logo__name{ color:var(--white); }
.footer__nav{ display:flex; flex-wrap:wrap; gap:8px 24px; }
.footer__nav a{ font-size:14px; color:var(--on-dark-muted); }
.footer__nav a:hover{ color:var(--brass-soft); }
.footer__phone{ font-family:var(--f-display); font-size:19px; font-weight:600; color:var(--white); }
.footer__phone:hover{ color:var(--brass-soft); }
.footer__req{
  display:grid; gap:22px; margin:0 0 26px;
  grid-template-columns:repeat(auto-fit, minmax(210px,1fr));
}
.footer__req dt{
  margin-bottom:8px; font-size:11px; font-weight:800;
  letter-spacing:.12em; text-transform:uppercase; color:var(--brass-soft);
}
.footer__req dd{ margin:0 0 4px; font-size:13.5px; line-height:1.6; color:#C6D0D9; }
.footer__req a:hover{ color:var(--brass-soft); }

.footer__legal{
  font-size:12.5px; line-height:1.9; margin:0 0 14px;
  padding-top:22px; border-top:1px solid var(--on-dark-line);
}
.footer__legal .link{ color:var(--on-dark-muted); }
.footer__disclaimer{ margin:0; font-size:12px; line-height:1.6; color:#6B7C8B; max-width:76ch; }

/* =========================================================
   МОБИЛЬНАЯ ПАНЕЛЬ — поверх всего
   ========================================================= */
.mobilebar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:150;
  gap:10px; padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:rgba(251,249,246,.95);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  box-shadow:0 -6px 24px rgba(10,23,36,.12);
}
.mobilebar__btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  height:50px; border-radius:var(--r-full); font-size:15px; font-weight:700;
  white-space:nowrap;
}
.mobilebar__btn svg{ width:18px; height:18px; flex:none; }
.mobilebar__btn--call{ background:var(--ink); color:var(--white); }
.mobilebar__btn--chat{ background:var(--brass); color:var(--ink); }

@media (max-width:899px){
  .mobilebar{ display:flex; }
  body{ padding-bottom:var(--bar-h); }
}

/* =========================================================
   ШТОРКА (bottom sheet на мобильном, модалка на десктопе)
   ========================================================= */
.sheet{ position:fixed; inset:0; z-index:200; }
.sheet[hidden]{ display:none; }
.sheet__backdrop{
  position:absolute; inset:0; background:rgba(8,18,28,.6);
  backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  opacity:0; transition:opacity .34s var(--ease-sheet);
}
.sheet.is-open .sheet__backdrop{ opacity:1; }

.sheet__panel{
  position:absolute; left:0; right:0; bottom:0;
  max-height:88vh; max-height:88dvh;
  /* фиксированная высота: иначе шторка подрастает с каждым сообщением юриста */
  height:76vh; height:76dvh;
  display:flex; flex-direction:column;
  background:var(--white);
  border-radius:22px 22px 0 0;
  box-shadow:0 -12px 48px rgba(8,18,28,.36);
  transform:translateY(100%);
  transition:transform .4s var(--ease-sheet);
  overflow:hidden;
  padding-bottom:env(safe-area-inset-bottom);
}
.sheet.is-open .sheet__panel{ transform:translateY(0); }

/* Ручка и крестик лежат поверх тёмной шапки чата — как в нативной шторке */
.sheet__handle{
  position:absolute; top:9px; left:50%; transform:translateX(-50%); z-index:3;
  width:44px; height:5px; padding:0; margin:0;
  border-radius:var(--r-full); background:rgba(255,255,255,.32);
}
.sheet__close{
  position:absolute; top:16px; right:14px; z-index:3;
  width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.12); color:rgba(255,255,255,.85);
  transition:background .18s var(--ease), color .18s var(--ease);
}
.sheet__close:hover{ background:rgba(255,255,255,.22); color:#fff; }
.sheet__close svg{ width:16px; height:16px; }

.chat--sheet{
  flex:1; min-height:0;
  border-radius:0; box-shadow:none;
}
.chat--sheet .chat__head{ border-radius:0; padding:24px 60px 16px 20px; }

@media (min-width:760px){
  .chat--sheet .chat__head{ padding:16px 56px 16px 20px; }
  .sheet__close{ top:14px; }
}

@media (min-width:760px){
  .sheet__panel{
    left:50%; bottom:auto; top:50%;
    transform:translate(-50%,-46%) scale(.97);
    width:min(480px, calc(100vw - 40px));
    height:min(78vh, 680px);
    max-height:min(86vh, 720px);
    border-radius:var(--r-lg);
    opacity:0;
    transition:transform .32s var(--ease), opacity .28s var(--ease);
  }
  .sheet.is-open .sheet__panel{ transform:translate(-50%,-50%) scale(1); opacity:1; }
  .sheet__handle{ display:none; }
}

/* =========================================================
   ТОСТЫ
   ========================================================= */
.toasts{
  position:fixed; z-index:140;
  left:14px; right:14px; bottom:calc(var(--bar-h) + 12px + env(safe-area-inset-bottom));
  display:flex; flex-direction:column; gap:10px;
  pointer-events:none;
}
@media (min-width:900px){
  .toasts{ left:auto; right:24px; bottom:24px; width:344px; }
}

.toast{
  pointer-events:auto;
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r-md);
  box-shadow:var(--sh-lg);
  opacity:0; transform:translateY(16px);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-shown{ opacity:1; transform:none; }
.toast.is-hiding{ opacity:0; transform:translateY(10px); }
.toast__icon{
  width:38px; height:38px; flex:none; border-radius:50%;
  object-fit:cover; object-position:center 30%;
  background:var(--paper-2);
}
.toast__body{ flex:1; min-width:0; }
.toast__title{ margin:0 0 2px; font-size:14px; font-weight:700; color:var(--ink); line-height:1.35; }
.toast__text{ margin:0 0 9px; font-size:12.5px; line-height:1.45; color:var(--muted); }
.toast__action{
  font-size:13px; font-weight:700; color:var(--brass-deep);
  text-decoration:underline; text-underline-offset:3px;
}
.toast__close{
  flex:none; width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); opacity:.65;
}
.toast__close:hover{ opacity:1; }
.toast__close svg{ width:13px; height:13px; }

/* =========================================================
   УЗКИЕ ЭКРАНЫ
   ========================================================= */
@media (max-width:480px){
  :root{ --gutter:16px; }
  .btn{ padding:15px 24px; }
  .btn--lg{ padding:16px 26px; font-size:15px; }
  .hero__cta-row .btn, .final__cta .btn{ width:100%; }
  .trustbar li{ padding:16px 14px; }
  .plan{ padding:26px 20px; }
  .deadline{ padding:20px 18px; }
  .deadline__value{ font-size:26px; }
}
