/* Заголовки — Mustica Pro SemiBold (Alifinart Studio, начертание свободно для коммерческого использования).
   В семействе у нас один вес, поэтому синтез жирного отключён: браузер не «утолщает» буквы сам. */
@font-face{font-family:'Mustica Pro';src:url('./assets/fonts/MusticaPro-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}

:root{
  --display:'Mustica Pro','Manrope',Arial,sans-serif;
  --ink:#171817;
  --muted:#6d6e6b;
  --orange:#ee583d;
  --orange-dark:#d9432c;
  --line:#e6e5e1;
  --cream:#f4f2ee;
  --white:#fff;
  /* Три статьи расчёта — одни цвета в оценке, в её заготовке и в блоке «Стоимость». */
  --goods:#171817;
  --import:#ee583d;
  --customs:#b9b5ab;
  --services:#f3c9bd;
  --good:#2f6b40;
}

/* ── основа ── */
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{margin:0;background:#fff;color:var(--ink);font-family:Manrope,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #f6a28e;outline-offset:3px}
.container{width:min(100% - 80px,1360px);margin-inline:auto}
.logo{fill:currentColor;stroke:none}
h1,h2{font-family:var(--display);font-weight:600}
h2{margin:0;font-size:clamp(31px,3.6vw,50px);line-height:1.06;letter-spacing:-.025em}

.button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:48px;padding:0 22px;border:1px solid var(--orange);border-radius:11px;background:var(--orange);color:#fff;font-weight:800;font-size:13px;white-space:nowrap;box-shadow:0 9px 18px rgba(218,65,39,.15);transition:background .2s,transform .2s,box-shadow .2s}
.button:hover{background:var(--orange-dark);transform:translateY(-2px);box-shadow:0 12px 22px rgba(218,65,39,.21)}
.button:disabled{opacity:.6;transform:none;cursor:default}
.button svg{width:16px;height:16px}
.button-small{min-height:40px;padding:0 19px;border-radius:22px;font-size:12px}
.button-ghost{border-color:rgba(23,24,23,.22);background:rgba(255,255,255,.7);color:var(--ink);box-shadow:none}
.button-ghost:hover{background:#fff;border-color:var(--ink);box-shadow:none}
.text-action{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:var(--orange-dark);font-size:13px;font-weight:800}
.text-action:hover{text-decoration:underline}
.text-action svg{width:15px;height:15px}

/* ── шапка ── */
.site-header{position:absolute;z-index:10;left:0;right:0;top:0;height:77px;border-bottom:1px solid rgba(29,29,27,.09);background:rgba(255,255,255,.66);backdrop-filter:blur(18px)}
.header-inner{height:100%;display:flex;align-items:center;gap:clamp(28px,4vw,64px)}
.brand{display:flex;align-items:center;gap:12px;flex:none;color:var(--orange)}
.brand .logo{width:64px;height:25px}
.brand-descriptor{padding-left:12px;border-left:1px solid rgba(23,24,23,.16);color:var(--ink);font-size:11px;font-weight:700;line-height:1.25}
.main-nav{display:flex;align-items:center;gap:clamp(18px,2.6vw,39px);margin-right:auto}
.main-nav a,.header-link{font-size:13px;font-weight:700;white-space:nowrap;transition:color .2s}
.main-nav a:hover,.header-link:hover{color:var(--orange)}
.header-actions{display:flex;align-items:center;gap:22px}
.menu-toggle{display:none}

/* ── первый экран ── */
/* Подложка — панорама «фабрика → порт → склад» (3:1), по высоте под шапкой. Её левый край
   привязан к колонке текста (отступ контейнера + 240px), а не к краю экрана: завод и маршрут
   всегда встают у правого края формы, а чем шире экран, тем больше видно дорисованного порта
   справа. Левая часть картинки — белая дымка цвета секции, стыка не видно; вуаль ::after
   приглушает начало рисунка под заголовком. Ширина слоя — ровно ширина картинки (3:1), правый
   край растворяется: на сверхшироком экране вода не обрывается резкой линией. */
.hero{position:relative;min-height:680px;overflow:hidden;background:#fffffb}
.hero-bg{position:absolute;top:77px;bottom:0;left:calc(max(40px,50% - 680px) + 240px);aspect-ratio:3/1;background:url('./assets/hero-harbor.jpg') left bottom/auto 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,251,.55) 0,rgba(255,255,251,0) 560px)}
.hero-layout{position:relative;min-height:680px;padding-top:128px;padding-bottom:56px;display:flex;flex-direction:column;justify-content:center}
.hero-copy{max-width:800px}
.hero h1{margin:0 0 22px;font-size:clamp(40px,5vw,74px);line-height:1.04;letter-spacing:-.03em}
.hero h1 span{color:var(--orange)}
.hero-lead{max-width:640px;margin:0 0 28px;color:#545653;font-size:17px;line-height:1.55;font-weight:500}
.search-box{width:min(100%,800px);min-height:68px;padding:7px;display:flex;align-items:center;gap:11px;background:#fff;border-radius:14px;box-shadow:0 15px 45px rgba(31,39,39,.12)}
.search-icon{flex:none;width:21px;height:21px;margin-left:15px;color:#555}
.search-box input{flex:1;min-width:0;border:0;outline:none;color:var(--ink);font-size:14px;font-weight:600;background:transparent}
.search-box input::placeholder{color:#959694;font-weight:500}
.search-box .button{min-height:54px;border-radius:9px}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:14px}
.hero-caption{margin:0;font-size:13px;font-weight:600;color:#5e605d}
.hero-aside{position:absolute;right:0;bottom:36px;display:grid;gap:11px;margin:0;padding:19px 22px;list-style:none;color:#fff;background:rgba(23,23,22,.84);border:1px solid rgba(255,255,255,.1);border-radius:12px;backdrop-filter:blur(10px);box-shadow:0 15px 30px rgba(0,0,0,.12)}
.hero-aside li{display:flex;align-items:center;gap:11px;font-size:12.5px;font-weight:700}
.hero-aside svg{width:17px;height:17px;flex:none;color:var(--orange)}

/* ── интерактивный блок: диалог и оценка ── */
.estimate-section{padding-block:clamp(64px,7vw,104px);background:#fff}
.estimate-head{max-width:820px}
.estimate-head p{max-width:640px;margin:16px 0 0;font-size:15.5px;line-height:1.6;color:var(--muted)}
.estimate-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:20px;margin-top:34px;align-items:start}

.chat{position:sticky;top:20px;display:flex;flex-direction:column;height:min(680px,calc(100vh - 40px));min-height:520px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 22px 50px #1718170a;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:var(--cream)}
.ava{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--orange)}
.ava svg{width:20px;height:10px;fill:currentColor;stroke:none}
.chat-title{display:flex;flex-direction:column;gap:3px;min-width:0}
.chat-title strong{font-size:14px;line-height:1.1}
.chat-title span{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.chat-live{flex:none;width:7px;height:7px;border-radius:50%;background:#35a35a;box-shadow:0 0 0 3px #35a35a26}
.chat-reset{margin-left:auto;display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #dedbd4;border-radius:50%;background:#fff;color:var(--muted);font-size:15px;transition:color .2s,border-color .2s}
.chat-reset:hover{color:var(--orange);border-color:var(--orange)}
.chat-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:8px 12px;list-style:none;border-bottom:1px solid var(--line);background:#fff}
.chat-steps button{display:flex;align-items:center;gap:8px;width:100%;min-width:0;padding:6px 8px;border:1px solid transparent;border-radius:12px;background:transparent;color:inherit;font:inherit;text-align:left;transition:border-color .2s,background .2s}
.chat-steps button:disabled{opacity:1;color:inherit;cursor:default}
.chat-steps button:not(:disabled):hover{border-color:#f3c9bd;background:#fff8f5}
.chat-steps i{flex:none;display:grid;place-items:center;width:22px;height:22px;border:1.5px solid #dedbd4;border-radius:50%;font-size:11px;font-style:normal;font-weight:800;color:#9d9c96}
.chat-steps .is-current i{border-color:var(--orange);color:var(--orange)}
.chat-steps .is-done i{border-color:var(--good);background:var(--good);color:#fff}
.chat-steps .is-done i:before{content:"✓";font-size:12px}
.chat-steps span{display:flex;flex-direction:column;gap:1px;min-width:0}
.chat-steps small{font-size:11px;font-weight:700;color:var(--muted)}
.chat-steps b{overflow:hidden;font-size:12.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;color:#9d9c96}
.chat-steps .is-done b{color:var(--ink)}
.chat-feed{position:relative;flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:14px;padding:18px;scroll-behavior:smooth;overscroll-behavior:contain}
.msg{display:flex;gap:10px;animation:msgin .35s cubic-bezier(.2,.7,.3,1) both}
@keyframes msgin{from{opacity:0;transform:translateY(8px)}}
.msg-agent .ava{width:28px;height:28px}
.msg-agent .ava svg{width:16px;height:8px}
.msg-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.msg-name{font-size:11px;font-weight:800;letter-spacing:.04em;color:#8b8c88}
.msg-body p{margin:0;font-size:14px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.msg-body p.muted{font-size:12.5px;color:var(--muted)}
.msg-user{justify-content:flex-end}
.msg-user p{margin:0;max-width:82%;padding:10px 14px;border-radius:16px 16px 4px 16px;background:var(--ink);color:#fff;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.msg-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.msg-chips button{padding:8px 12px;border:1px solid #dedbd4;border-radius:999px;background:#fff;font-size:12.5px;font-weight:600;color:#3d3f3c;text-align:left;transition:color .2s,border-color .2s}
.msg-chips button:hover{border-color:var(--orange);color:var(--orange-dark)}
.msg-chips button.is-recommended{border-color:#f3c9bd;background:#fff8f5}
.msg-chips button.chip-skip{border-style:dashed;color:var(--muted)}
.msg-stage{display:flex;align-items:center;gap:8px;margin-left:38px;font-size:12.5px;font-weight:600;color:var(--muted);animation:msgin .3s both}
.dots i{display:inline-block;width:4px;height:4px;margin-left:3px;border-radius:50%;background:currentColor;animation:dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}
.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,60%,100%{opacity:.25}30%{opacity:1}}
.chat-composer{display:flex;align-items:center;gap:8px;margin:0 14px;padding:6px 6px 6px 16px;border:1px solid #dedbd4;border-radius:16px;background:#fff;transition:border-color .2s,box-shadow .2s}
.chat-composer:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px rgba(238,88,61,.12)}
.chat-composer input{flex:1;min-width:0;height:42px;border:0;outline:0;background:transparent;font-size:14px;font-weight:500;color:var(--ink)}
.chat-composer input::placeholder{color:#959694}
.chat-composer .button{min-height:42px;padding:0 16px;border-radius:11px;font-size:12.5px;box-shadow:none}
.chat-caption{margin:8px 18px 14px;font-size:12px;line-height:1.45;color:#8f908b}
.chat.is-busy .chat-composer{opacity:.7}

/* оценка: заготовка, пока данных нет */
.result{min-width:0}
.result-ghost,.estimate-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 22px 50px #1718170a}
.result-ghost{gap:16px;padding:28px;min-height:520px;background:linear-gradient(180deg,#fff 0%,#fbfaf8 100%)}
.est-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.ghost-title{font-family:var(--display);font-size:clamp(22px,2.2vw,28px);font-weight:600;line-height:1.15;letter-spacing:-.02em;color:#b0aea7}
.ghost-bar{display:flex;gap:4px;height:12px}
.ghost-bar i{border-radius:4px;background:#ecebe6}
.ghost-bar i:nth-child(1){flex:4}.ghost-bar i:nth-child(2){flex:2}.ghost-bar i:nth-child(3){flex:3;background:#f8ddd6}
.ghost-lines{display:grid;gap:0;margin:0;padding:0;list-style:none}
.ghost-lines li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #f0efeb;font-size:14px;font-weight:600;color:#9d9c96}
.ghost-lines li span{display:flex;align-items:center;gap:10px}
.ghost-lines b{width:88px;height:10px;border-radius:5px;background:#ecebe6}
.result-ghost p{margin:auto 0 0;font-size:13px;line-height:1.55;color:#9d9c96}
.dot{display:inline-block;flex:none;width:10px;height:10px;border-radius:3px}
.dot-goods,.seg-goods{background:var(--goods)}
.dot-import,.seg-import{background:var(--import)}
.dot-customs,.seg-customs{background:var(--customs)}
.dot-delivery,.seg-delivery{background:var(--import)}
.dot-services,.seg-services{background:var(--services)}

/* оценка: карточка */
.estimate-card{overflow:hidden}
.estimate-card.is-fresh{animation:cardin .5s cubic-bezier(.2,.7,.3,1)}
@keyframes cardin{from{opacity:0;transform:translateY(12px)}}
.est-head{display:flex;flex-direction:column;gap:16px;padding:26px 28px 22px;background:var(--cream)}
.est-totals{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
.est-totals span{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.est-totals strong{display:block;margin-top:6px;font-family:var(--display);font-weight:600;letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.est-total strong{font-size:clamp(30px,3.2vw,42px)}
.est-unit{text-align:right}
.est-unit strong{font-size:clamp(19px,1.8vw,24px);color:#3e403d}
.est-unit small{display:block;margin-top:5px;font-size:12px;font-weight:700;color:var(--muted)}
.est-terms{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.est-bar{display:flex;height:12px;overflow:hidden;border-radius:99px;background:#e9e6df}
.est-bar i{display:block;height:100%;min-width:3px;transition:width .5s ease}
.est-bar i+i{margin-left:2px}
.est-block{padding:20px 28px;border-top:1px solid var(--line)}
.est-head+.est-block{border-top:0}
.est-block h3{margin:0 0 12px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.est-inputs{display:grid;gap:8px;margin:0}
.est-inputs div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}
.est-inputs dt{font-size:13px;color:var(--muted)}
.est-inputs dd{margin:0;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.est-lines{margin:0;padding:0;list-style:none}
.est-line{border-bottom:1px solid #f0efeb}
.est-line:last-child{border-bottom:0}
.est-line-row{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:14.5px;list-style:none}
.est-line-label{display:flex;align-items:center;gap:10px;margin-right:auto;font-weight:700}
.est-line-row b{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.est-block .est-bar{margin-bottom:6px}
.est-line-note{margin:-6px 0 10px 20px;font-size:12px;line-height:1.45;color:#8f908b}
.est-line-total .est-line-row{font-size:15px}
.est-line-total .est-line-label{font-weight:800}
.est-line-total .est-line-note{margin-left:0}
.hs-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.hs-code{font-family:var(--display);font-size:clamp(20px,2vw,26px);font-weight:600;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.hs-title{margin:6px 0 0;font-size:13.5px;line-height:1.5;color:#3d3f3c}
.hs-facts{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.hs-facts li{display:flex;align-items:baseline;gap:6px;padding:7px 12px;border-radius:10px;background:var(--cream);font-size:12.5px}
.hs-facts span{color:var(--muted)}
.hs-facts b{font-weight:800}
.hs-docs{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.est-note{margin:12px 0 0;font-size:12.5px;line-height:1.55;color:var(--muted)}
.basis-list{display:grid;gap:0;margin:0 0 14px;padding:0;list-style:none}
.basis-list li{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);gap:12px;padding:9px 0;border-bottom:1px dashed #ebe9e3}
.basis-list li:last-child{border-bottom:0}
.basis-label{font-size:13px;color:var(--muted)}
.basis-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0}
.basis-value b{font-size:13.5px;font-weight:700;overflow-wrap:anywhere}
.basis-value small{flex-basis:100%;font-size:12px;color:#8f908b}
.tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;font-style:normal;white-space:nowrap}
.tag-client{background:#e3f0e6;color:var(--good)}
.tag-assumed{background:#f8e7c9;color:#7a5a12}
.est-edit{display:flex;flex-direction:column;gap:12px;margin-top:14px;padding:16px;border-radius:14px;background:var(--cream)}
.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.edit-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;font-weight:700;color:var(--muted)}
.edit-field input,.edit-field select{width:100%;height:38px;padding:0 10px;border:1px solid #dedbd4;border-radius:9px;background:#fff;font-size:14px;font-weight:600;color:var(--ink);outline:0}
.edit-field input:focus,.edit-field select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(238,88,61,.12)}
.edit-price{grid-column:span 2}
.edit-price{display:grid;grid-template-columns:minmax(0,1fr) 72px;column-gap:8px}
.edit-price span{grid-column:1/-1}
.edit-actions{display:flex;align-items:center;gap:16px}
.est-todo ul{display:grid;gap:9px;margin:0;padding:0;list-style:none}
.est-todo li{position:relative;padding-left:22px;font-size:13.5px;line-height:1.5;color:#3d3f3c}
.est-todo li:before{content:"";position:absolute;left:2px;top:6px;width:9px;height:9px;border:2px solid var(--orange);border-radius:50%}

/* переход к регистрации */
.next-step{display:flex;align-items:center;justify-content:space-between;gap:20px 36px;flex-wrap:wrap;margin-top:20px;padding:26px 30px;border-radius:20px;background:var(--ink);color:#fff}
.next-copy{flex:1 1 420px;max-width:720px}
.next-copy h3{margin:0 0 8px;font-family:var(--display);font-size:clamp(22px,2.2vw,30px);font-weight:600;letter-spacing:-.02em;line-height:1.12}
.next-copy p{margin:0;font-size:14.5px;line-height:1.55;color:#d6d6d2}
.next-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.next-login{margin:0;font-size:13px;color:#bdbdb8}
.next-login a{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.next-done{margin:0;max-width:360px;font-size:14.5px;font-weight:700;line-height:1.5;color:#bfe3c8}

/* ── сценарии: крупный слайдер с инфографикой ──
   Сценарии сменяются сами, но уважают читателя: наведение, фокус и ручное
   переключение останавливают таймер, а полоса у вкладки показывает, сколько
   осталось до следующего. */
.topics-section{padding-block:clamp(72px,8vw,118px);background:linear-gradient(180deg,#fff 0%,var(--cream) 22%,var(--cream) 100%)}
.topics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;flex-wrap:wrap}
.topics-controls{display:flex;align-items:center;gap:14px}
.topics-counter{font-size:12px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.topics-counter strong{font-family:var(--display);font-size:20px;font-weight:600;color:var(--ink)}
.carousel-arrow{display:grid;place-items:center;width:48px;height:48px;border:1px solid #dcdad5;border-radius:50%;background:#fff;transition:border-color .2s,background .2s,transform .2s}
.carousel-arrow svg{width:18px;height:18px;color:var(--ink)}
.carousel-arrow:hover{border-color:var(--orange);transform:translateY(-1px)}
.carousel-arrow:hover svg{color:var(--orange)}
#topicsPrev svg{transform:rotate(180deg)}
.topics-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px}
.topic-tab{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0;border:0;background:none;text-align:left;font-size:13px;font-weight:800;color:#8b8c88;transition:color .2s}
.topic-tab:hover,.topic-tab.is-active{color:var(--ink)}
.topic-tab i{position:relative;display:block;height:4px;border-radius:99px;background:#dedbd4;overflow:hidden}
.topic-tab b{position:absolute;inset:0;width:0;border-radius:99px;background:var(--orange)}
.topic-tab.is-active b{width:100%;transition:width 7s linear}
.topic-tab.is-paused b{transition:none}
.topics-stage{position:relative;margin-top:22px;min-height:520px}
.topic-slide{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,4vw,58px);align-items:center;padding:clamp(30px,3.6vw,52px);border:1px solid var(--line);border-radius:26px;background:#fff;box-shadow:0 30px 70px #1718170d;opacity:0;visibility:hidden;transform:translateY(18px) scale(.995);transition:opacity .55s ease,transform .55s ease,visibility .55s}
.topic-slide.is-active{position:relative;opacity:1;visibility:visible;transform:none}
.topic-copy{display:flex;flex-direction:column;align-items:flex-start}
.topic-tag{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;background:var(--cream);font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--orange)}
.topic-tag:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--orange)}
.topic-slide h3{margin:20px 0 0;font-family:var(--display);font-size:clamp(25px,2.8vw,40px);font-weight:600;line-height:1.1;letter-spacing:-.02em;text-wrap:balance}
.topic-lead{margin:18px 0 0;max-width:44ch;font-size:15px;line-height:1.66;color:var(--muted)}
.topic-button{margin-top:30px}
.topic-art{display:flex;justify-content:center}

/* ── инфографики: один svg на фигуру, текст внутри него ──
   В стилях есть общее правило svg{stroke:currentColor} для иконок. Оно
   наследуется внутрь любой картинки и обводит буквы — поэтому у фигуры
   обводка и заливка сброшены в корне и заданы каждому слою явно. Фигуры
   собирает tools/build_figures.py. */
.fig{display:block;width:100%;max-width:560px;height:auto;fill:none;stroke:none;stroke-width:0;overflow:visible}
.fig text{font-family:Manrope,Arial,sans-serif;stroke:none}
.fig-card{padding:clamp(14px,2vw,26px);border:1px solid var(--line);border-radius:26px;background:#fff;box-shadow:0 30px 70px #1718170d}
.fig-card .fig{margin-inline:auto}
.f-plate{fill:var(--cream)}
.f-dot{fill:#e1ded7}
.f-rule{stroke:#dcd9d2;stroke-width:1}
.f-axis{fill:none;stroke:#b9b6af;stroke-width:1}
.fig text.f-idx{font-family:var(--display);font-size:10px;font-weight:600;fill:var(--orange)}
.f-ttl{font-size:9.5px;font-weight:800;letter-spacing:.16em;fill:var(--ink)}
.f-unit,.f-note{font-size:10px;font-weight:600;fill:var(--muted)}
.f-l{font-size:11.5px;font-weight:700;fill:var(--ink)}
.f-m{font-size:10.5px;font-weight:600;fill:var(--muted)}
.f-tick{font-size:10px;font-weight:600;fill:var(--muted);font-variant-numeric:tabular-nums}
.f-v{font-size:11px;font-weight:800;fill:var(--ink);font-variant-numeric:tabular-nums}
.f-vb{font-size:15px;font-weight:800;fill:var(--ink)}
.f-cap{font-size:9px;font-weight:800;letter-spacing:.16em;fill:var(--muted)}
.f-stat{font-size:17px;font-weight:800;fill:var(--ink)}
.f-badge{font-size:9.5px;font-weight:800;fill:#fff}
.fig text.f-hubt{font-family:var(--display);font-size:22px;font-weight:600;fill:#fff}
.fig .f-num{font-family:var(--display);font-weight:600;fill:var(--orange)}
.fig .f-hot{fill:var(--orange)}
.fig .f-qm{fill:#8a8b86}
.f-ink{fill:var(--ink)}
.f-gray{fill:#8a8b86}
.f-acc{fill:var(--orange)}
.f-tint{fill:#fbe3dd}
.f-chip{fill:#fff}
.f-chipline{stroke:#dcd9d2;stroke-width:1}
.f-face-top{fill:#fff}
.f-face-l{fill:#e8e5de}
.f-face-r{fill:#fbfaf8}
.f-tape{fill:#d6d2c9}
.f-edge{fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-onacc{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round}
.f-code{fill:none;stroke:var(--ink)}
.f-lead{fill:none;stroke:var(--ink);stroke-width:1}
.f-flow{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.f-flow-weak{fill:none;stroke:#8a8b86;stroke-width:1.5;stroke-dasharray:3 5;stroke-linecap:round}
.f-flow-weak-solid{fill:none;stroke:#8a8b86;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.f-node{fill:#fff;stroke:var(--ink);stroke-width:1.5}
.f-node-weak{fill:#fff;stroke:#8a8b86;stroke-width:1.5;stroke-dasharray:3 4}
.f-dim{fill:none;stroke:#8a8b86;stroke-width:1}
.f-dashedge{fill:none;stroke:#8a8b86;stroke-width:1.4;stroke-dasharray:4 3;stroke-linejoin:round}
.f-ghost-t,.f-ghost-l,.f-ghost-r{fill:rgba(255,255,255,.65)}
.fig text.f-coin{font-size:16px;font-weight:800;fill:var(--ink)}
.f-obj{fill:#fff;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-shade{fill:#e8e5de;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-grayobj{fill:#b9b6af;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-solid{fill:var(--ink);stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-accs{fill:var(--orange);stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round}
.f-ln{fill:none;stroke:var(--ink);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.f-glyph{stroke-width:1.6}
/* Подпись поверх пунктира: кремовый ореол прячет линию под буквами. */
.fig .f-halo{paint-order:stroke;stroke:var(--cream);stroke-width:6px;stroke-linejoin:round}
.f-wave{fill:none;stroke:#8a8b86;stroke-width:1.2;stroke-linecap:round}
.fig .f-plus{fill:var(--orange);font-weight:800}
.f-slab{stroke:var(--cream);stroke-width:1.5;stroke-linejoin:round}
.f-s1t{fill:#3d3e3c}.f-s1l{fill:#171817}.f-s1r{fill:#2b2c2b}
.f-s3t{fill:#cfcfc9}.f-s3l{fill:#a3a39d}.f-s3r{fill:#b7b7b1}
.f-s4t{fill:#f6927e}.f-s4l{fill:#ee583d}.f-s4r{fill:#f2735a}
.f-ghost{fill:none;stroke:#8a8b86;stroke-width:1;stroke-dasharray:2 3}
.f-belt-t{fill:#e8e5de}.f-belt-l{fill:#c9c6bf}.f-belt-r{fill:#d9d6cf}
.f-roller{fill:none;stroke:#cfccc5;stroke-width:1}
.f-thick{fill:none;stroke:var(--ink);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
/* Фигура оживает, когда видна: активный слайд или блок в кадре (класс is-live). */
.f-dr{stroke-dasharray:1;stroke-dashoffset:0}
.is-live .f-dr{animation:fdr .9s ease-out backwards;animation-delay:calc(.15s + var(--i,0) * .1s)}
.is-live .f-pop{transform-box:fill-box;transform-origin:center;animation:fpop .45s cubic-bezier(.2,.7,.3,1) backwards;animation-delay:calc(.1s + var(--i,0) * .05s)}
.is-live .f-float{animation:ffloat 2.4s ease-in-out infinite alternate}
@keyframes fdr{from{stroke-dashoffset:1}}
@keyframes fpop{from{opacity:0;transform:scale(.6)}}
@keyframes ffloat{from{transform:translateY(0)}to{transform:translateY(-5px)}}

/* ── стоимость поставки: статьи слева, стопка расходов справа ── */
.cost-section{padding-block:clamp(64px,7vw,104px);background:#fff}
.cost-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(28px,5vw,72px);align-items:center}
.cost-lead{max-width:540px;margin:18px 0 0;font-size:15.5px;line-height:1.6;color:var(--muted)}
.cost-items{display:grid;margin:24px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}
.cost-items li{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.cost-items .dot{margin-top:5px}
.cost-items b{display:block;font-size:15px}
.cost-items span{display:block;margin-top:3px;font-size:13.5px;line-height:1.5;color:var(--muted)}
.cost-notes{display:grid;gap:8px;margin:18px 0 24px}
.cost-notes p{margin:0;font-size:13px;line-height:1.55;color:#5e605d}

/* ── состав сервиса: схема процесса и шесть направлений ── */
.services-section{padding-block:clamp(64px,7vw,104px);background:var(--cream)}
.services-head{max-width:820px}
.services-head p{max-width:640px;margin:16px 0 0;font-size:15.5px;line-height:1.6;color:var(--muted)}
.services-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center;margin-top:34px}
.services-list{display:grid;margin:0;padding:0;list-style:none}
.services-list li{display:flex;align-items:flex-start;gap:16px;padding:15px 0;border-top:1px solid #e2dfd8}
.services-list li:last-child{border-bottom:1px solid #e2dfd8}
.vs-ico{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#fff;color:var(--ink)}
.vs-ico svg{width:21px;height:21px}
.vs-ico i{position:absolute;right:-6px;bottom:-6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ink);color:#fff;font-family:var(--display);font-size:10px;font-style:normal;line-height:1;box-shadow:0 0 0 2.5px var(--cream)}
.services-list b{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8b8c88}
.services-list div span{display:block;margin-top:4px;font-size:14.5px;line-height:1.5;font-weight:500;color:var(--ink)}

/* ── процесс ── */
.process-section{padding-block:clamp(64px,7vw,104px);background:#fff}
.process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:34px 0 0;padding:0;list-style:none}
.process-card h3{margin:17px 6px 6px;font-size:18px;letter-spacing:-.02em}
.process-card>p{margin:0 6px;font-size:13.5px;line-height:1.55;color:#6f716e}
.process-visual{position:relative;height:220px;overflow:hidden;border-radius:12px;background:#ebeae7}
.step-badge{position:absolute;z-index:2;top:13px;left:13px;display:grid;place-items:center;width:43px;height:37px;background:#fff;border-radius:8px;font-size:14px;font-weight:800;box-shadow:0 5px 12px rgba(0,0,0,.08)}
.process-note{margin:24px 0 0;padding:16px 20px;border-left:3px solid var(--orange);border-radius:0 12px 12px 0;background:var(--cream);font-size:14.5px;line-height:1.55}

.visual-request{background:linear-gradient(130deg,#bfc5bd,#e5e4df 38%,#c2bab0 100%)}
.visual-request:before{content:"";position:absolute;left:-40px;top:-70px;width:210px;height:350px;background:rgba(255,255,255,.27);transform:rotate(32deg)}
.mini-window{position:absolute;left:22%;top:28px;width:68%;height:175px;padding:14px 17px;background:#fbfbfa;border:7px solid #242525;border-radius:9px;transform:perspective(500px) rotateY(-12deg) rotateZ(-6deg);box-shadow:11px 16px 20px rgba(35,34,32,.28)}
.window-dots{display:flex;gap:4px;margin-bottom:10px}
.window-dots i{width:4px;height:4px;border-radius:50%;background:#bbb}
.window-line{width:78%;height:5px;margin:8px 0;background:#e6e5e3;border-radius:8px}
.window-line.wide{width:56%;background:#bfc1bd}
.window-line.short{width:45%}
.window-input{display:flex;justify-content:space-between;gap:6px;padding:7px 8px;border:1px solid #ddd;background:#fff;color:#4d4e4b;font-size:7px;white-space:nowrap;overflow:hidden}
.window-input span{font-size:10px;color:var(--orange)}
.window-button{width:43%;height:16px;margin-top:12px;margin-left:auto;background:var(--orange);border-radius:3px}
.floating-tag{position:absolute;left:5%;bottom:16px;padding:8px 11px;background:#fff;border-radius:7px;color:#50534e;font-size:10px;font-weight:800;box-shadow:0 6px 20px #0002;transform:rotate(-5deg)}

.visual-offers{display:grid;place-items:center;background:linear-gradient(145deg,#eeece8,#f8f8f7)}
.offer-stack{position:relative;width:84%;display:grid;gap:7px;margin-top:14px;transform:rotate(-2deg)}
.offer-stack>div{display:grid;grid-template-columns:16px 1fr auto;gap:10px;align-items:center;min-height:50px;padding:8px 12px;background:#fff;border:1px solid #eeece8;border-radius:8px;box-shadow:0 7px 15px #0000000c}
.offer-mark{display:grid;place-items:center;width:14px;height:14px;border-radius:3px;background:var(--orange);color:#fff;font-size:10px}
.offer-mark.outline{background:#fff;border:1px solid var(--orange)}
.offer-stack b,.offer-stack strong{display:block;font-size:9px}
.offer-stack small{display:block;color:#9a9a97;font-size:7px;white-space:nowrap}
.offer-stack strong{text-align:right}

.visual-proposal{display:grid;place-items:center;background:linear-gradient(150deg,#f4e3dc,#f8f4f0 55%,#efe7df)}
.proposal-doc{position:relative;display:flex;flex-direction:column;gap:9px;width:72%;padding:18px 16px 16px;background:#fff;border-radius:10px;box-shadow:0 16px 28px #3a2a2018;transform:rotate(2.5deg)}
.proposal-doc b{font-size:10px;font-weight:800}
.proposal-doc span{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:8px;color:#7d7f7b}
.proposal-doc span i{font-style:normal}
.proposal-doc span i+i{flex:0 0 32%;height:6px;border-radius:4px;background:#ecebe6}
.proposal-doc em{align-self:flex-end;margin-top:4px;padding:5px 9px;border-radius:5px;background:var(--orange);color:#fff;font-size:8px;font-style:normal;font-weight:800}

.visual-delivery{background:linear-gradient(135deg,#1f3037,#30454b 50%,#16252b)}
.visual-delivery:before{content:"";position:absolute;right:-60px;top:-40px;width:270px;height:270px;border:1px solid #ffffff28;border-radius:50%;box-shadow:0 0 0 38px #ffffff08,0 0 0 75px #ffffff08}
.route-card{position:absolute;left:11%;right:9%;top:24%;padding:18px;background:#fff;border-radius:12px;box-shadow:0 20px 35px #0005}
.route-top{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:800}
.route-top svg{width:19px;height:19px;color:var(--orange)}
.route-track{display:flex;justify-content:space-between;position:relative;margin:20px 8px 8px}
.route-track:before{content:"";position:absolute;left:5px;right:5px;top:5px;border-top:2px dashed #f1aa9b}
.route-track i{position:relative;z-index:1;width:12px;height:12px;border:3px solid var(--orange);border-radius:50%;background:#fff}
.route-track i:first-child{background:var(--orange)}
.route-labels{display:flex;justify-content:space-between;color:#777;font-size:8px}
.route-container{position:absolute;right:-12px;bottom:-33px;display:flex;align-items:center;justify-content:flex-end;width:91px;height:45px;padding:8px 12px;background:var(--orange);color:#fff;box-shadow:0 10px 20px #0003;background-image:repeating-linear-gradient(90deg,transparent,transparent 8px,#0002 9px,#0002 10px)}
.route-container svg{width:48px;height:19px;fill:currentColor;stroke:none}

/* ── вопросы и ответы: группы сворачиваются, открыта одна ── */
.faq-section{padding-block:clamp(64px,7vw,104px);background:#fff}
.faq-layout{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:clamp(28px,6vw,90px);align-items:start}
.faq-groups{display:grid;gap:12px}
.faq-group{border:1px solid var(--line);border-radius:18px;background:#fff;transition:box-shadow .2s,border-color .2s}
.faq-group[open]{border-color:#dcd9d2;box-shadow:0 18px 40px #1718170a}
.faq-group>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:20px 24px;cursor:pointer}
.faq-group>summary::-webkit-details-marker{display:none}
.faq-group>summary span{font-family:var(--display);font-size:clamp(19px,1.8vw,23px);font-weight:600;letter-spacing:-.01em}
.faq-group>summary small{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.faq-group>summary svg{width:20px;height:20px;flex:none;color:var(--orange);transition:transform .2s}
.faq-group[open]>summary svg{transform:rotate(180deg)}
.faq-group .faq-list{margin:0 24px 8px;border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list details:last-child{border-bottom:0}
.faq-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0;font-size:15px;font-weight:800;cursor:pointer}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary svg{width:16px;height:16px;flex:none;color:var(--muted);transition:transform .2s}
.faq-list details[open] summary svg{transform:rotate(180deg)}
.faq-list details p{max-width:680px;margin:-4px 32px 16px 0;font-size:14px;line-height:1.65;color:#5e605d}

/* ── подвал: порт ночью, призыв, контакты и документы ── */
/* Подложка — та же панорама, что на первом экране, ночью, и стоит так же: по высоте 603px (как
   картинка первого экрана под шапкой), правый край растворяется. В ночной картинке сцена
   нарисована правее дневной (трубы и корабль — на ~250px исходника, ~205px на экране), поэтому
   отступ от колонки текста не 240px, а 35px: завод и маршрут встают там же, где наверху. Подвал
   той же высоты: заголовок с кнопками — посередине, контакты — внизу. Слева картинка чёрная —
   фон подвала того же цвета. */
.footer-cta{position:relative;display:flex;min-height:603px;background:#000;color:#fff;overflow:hidden}
.footer-bg{position:absolute;top:0;bottom:0;left:calc(max(40px,50% - 680px) + 35px);aspect-ratio:3/1;background:url('./assets/footer-port-night.jpg') left bottom/auto 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
.footer-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55) 0,rgba(0,0,0,0) 560px)}
.footer-content{position:relative;display:flex;flex-direction:column;padding-top:64px}
.footer-main{max-width:640px;margin:auto 0}
.footer-descriptor{margin:0;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#acacab}
.footer-main h2{margin:16px 0 0;font-size:clamp(36px,4.4vw,62px);line-height:1.04;letter-spacing:-.025em}
.footer-main h2 span{color:var(--orange)}
.footer-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.button-outline{border-color:#9b9b98;background:transparent;color:#fff;box-shadow:none}
.button-outline:hover{background:#ffffff14;border-color:#fff;box-shadow:none}
.footer-bottom{display:flex;align-items:flex-end;gap:24px;margin-top:64px;padding:18px 0 28px;border-top:1px solid #ffffff2a}
.footer-info{display:grid;gap:16px}
.footer-contacts{display:flex;flex-wrap:wrap;gap:10px 36px;margin:0;padding:0;list-style:none}
.footer-contacts li{display:flex;align-items:center;gap:10px}
.footer-contacts a{color:#fff;font-size:17px;font-weight:700;text-decoration:none;font-variant-numeric:tabular-nums}
.footer-contacts a:hover{color:var(--orange)}
.footer-messenger{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#ffffff1f;transition:background .2s}
.footer-contacts .footer-messenger:hover{color:#fff;background:var(--orange)}
.footer-messenger[hidden]{display:none}
.footer-messenger svg{width:17px;height:17px;margin-left:-2px}
.footer-contacts .footer-max{font-size:9.5px;font-weight:800;letter-spacing:.04em}
.footer-links{display:flex;flex-wrap:wrap;gap:8px 26px;margin:0;padding:0;list-style:none}
.footer-links li{font-size:12.5px;color:#b9b9b5}
.footer-links a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.lead-consent a{color:inherit;text-decoration:underline}
.footer-brand{display:flex;flex-direction:column;align-items:flex-end;gap:7px;margin-left:auto;color:#fff}
.footer-brand .logo{width:86px;height:34px}
.footer-brand small{font-size:11px;font-weight:600;color:#bbb}

/* ── регистрация ── */
.signup-dialog{width:min(100% - 32px,500px);max-height:min(92vh,760px);padding:34px 32px 26px;border:0;border-radius:20px;color:var(--ink);box-shadow:0 30px 100px #0005}
.signup-dialog::backdrop{background:#0d0e0dcc;backdrop-filter:blur(4px)}
.signup-dialog h2{margin:0 40px 12px 0;font-size:clamp(26px,3vw,32px)}
.dialog-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #e5e5e2;border-radius:50%;background:#fff}
.dialog-close svg{width:16px;height:16px}
.signup-lead{margin:0 0 10px;font-size:14px;line-height:1.55;color:#4c4e4b}
.lead-form{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.lead-field{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:700;color:var(--muted)}
.lead-field input{width:100%;height:44px;padding:0 12px;border:1px solid #dedbd4;border-radius:10px;background:#fff;font-size:15px;font-weight:500;color:var(--ink);outline:0}
.lead-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(238,88,61,.12)}
.lead-consent{display:flex;align-items:flex-start;gap:9px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.lead-consent input{margin-top:2px;accent-color:var(--orange)}
.lead-error{margin:0;font-size:13px;font-weight:600;color:var(--orange-dark)}
.lead-error:empty{display:none}
.lead-form .button{align-self:stretch}
.signup-done{display:flex;align-items:flex-start;gap:12px;margin-top:8px;padding:16px;border-radius:14px;background:#eef6f0}
.signup-done p{margin:0;font-size:14.5px;font-weight:600;line-height:1.5;color:#244f31}
.done-mark{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--good);color:#fff}
.done-mark svg{width:16px;height:16px;stroke-width:2.4}
.signup-login{margin:16px 0 0;font-size:13px;color:var(--muted)}
.signup-login a{color:var(--orange-dark);font-weight:800}

/* ── адаптив ── */
@media(max-width:1180px){
  .process-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}
  .hero-aside{position:static;margin-top:28px;justify-self:start;width:max-content;max-width:100%}
  /* Текст шире свободного поля иллюстрации — она уходит фоном под плотную светлую вуаль. */
  .hero-bg::after{background:linear-gradient(90deg,rgba(255,255,251,.94) 0,rgba(255,255,251,.86) 60%,rgba(255,255,251,.35) 100%)}
}
@media(max-width:1100px){
  .container{width:min(100% - 48px,1360px)}
  .hero-bg{left:264px}
  .footer-bg{left:59px}
  .header-inner{gap:24px}
  .main-nav{gap:18px}
  .brand-descriptor{display:none}
}
@media(max-width:980px){
  .estimate-shell{grid-template-columns:minmax(0,1fr)}
  .chat{position:relative;top:auto;height:min(600px,82vh);min-height:440px}
  .result-ghost{min-height:0}
  .cost-layout,.faq-layout,.services-layout{grid-template-columns:minmax(0,1fr)}
  /* На узком экране стопка расходов встаёт сразу под вводным текстом, до статей. */
  .cost-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .cost-intro{display:contents}
  .cost-intro h2{order:1}
  .cost-lead{order:2}
  .cost-art{order:3;margin-top:24px}
  .cost-items{order:4}
  .cost-notes{order:5}
  .cost-intro .button{order:6;align-self:flex-start}
  .topics-stage{min-height:0}
  .topic-slide{grid-template-columns:1fr;gap:26px}
  .topic-art{order:-1}
  .topics-head{align-items:flex-start}
}
@media(max-width:760px){
  .container{width:min(100% - 32px,1360px)}
  .site-header{height:64px}
  .brand .logo{width:56px;height:22px}
  .header-inner{gap:12px}
  .header-actions{margin-left:auto;gap:14px}
  .header-actions .button{min-height:36px;padding:0 13px;font-size:11px}
  .menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:5px;width:37px;height:37px;margin-left:3px;padding:8px;border:1px solid #d4d3d1;border-radius:8px;background:#fff}
  .menu-toggle span{display:block;height:2px;width:100%;background:#2b2d2a;border-radius:2px}
  .main-nav{position:absolute;top:64px;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:0;padding:12px 17px 17px;background:#fff;box-shadow:0 20px 35px #0002}
  .main-nav.is-open{display:flex}
  .main-nav a{padding:12px;font-size:14px;border-bottom:1px solid #eee}
  .hero,.hero-layout{min-height:0}
  .hero-layout{padding-top:104px;padding-bottom:40px}
  .hero-bg{inset:0;aspect-ratio:auto;background-size:cover;background-position:30% center;-webkit-mask-image:none;mask-image:none}
  .hero-bg::after{background:linear-gradient(180deg,rgba(255,255,251,.95) 0%,rgba(255,255,251,.88) 60%,rgba(255,255,251,.45) 100%)}
  .footer-cta{min-height:0}
  .footer-bg{inset:0;aspect-ratio:auto;background-size:cover;background-position:48% center;-webkit-mask-image:none;mask-image:none}
  .footer-bg::after{background:linear-gradient(180deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.45) 55%,rgba(0,0,0,.8) 100%)}
  .hero-lead{font-size:15px}
  .search-box{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;padding:8px}
  .search-icon{width:18px;height:18px;margin-left:9px}
  .search-box input{font-size:14px;height:40px}
  .search-box .button{grid-column:1/-1;width:100%}
  .hero-aside{width:auto}
  .process-grid{grid-template-columns:minmax(0,1fr)}
  .topics-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
  .footer-bottom{flex-wrap:wrap}
  .footer-brand{margin-left:0;align-items:flex-start}
  .faq-group>summary{padding:18px}
  .faq-group .faq-list{margin:0 18px 6px}
  .est-head,.est-block{padding-inline:20px}
  .result-ghost{padding:22px}
  .edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .next-step{padding:22px}
  .chat-composer .button{padding:0 13px}
}
@media(max-width:520px){
  .header-actions .button{display:none}
  .hero h1{font-size:clamp(34px,10vw,46px)}
  .est-unit{text-align:left}
  .est-inputs div,.basis-list li{grid-template-columns:minmax(0,1fr);gap:2px}
  .edit-grid{grid-template-columns:minmax(0,1fr)}
  .edit-price{grid-column:auto}
  .chat-feed{padding:14px}
  .chat-steps{gap:2px;padding:6px 8px}
  .chat-steps button{gap:6px;padding:4px}
  .chat-steps i{width:18px;height:18px;font-size:10px}
  .chat-composer{margin:0 10px}
  .chat-composer input{font-size:15px}
  .faq-list summary{font-size:14.5px}
  .faq-group>summary small{display:none}
  .topic-slide{padding:10px 10px 26px}
  .topic-copy{padding-inline:14px}
  .fig{max-width:none}
  .f-l{font-size:13.4px}
  .f-m,.f-tick,.f-unit,.f-note{font-size:12.2px}
  .f-v{font-size:12.6px}
  .f-ttl,.f-cap{font-size:10.4px}
  .fig-card{padding:8px}
  .signup-dialog{padding:28px 20px 22px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{transition-duration:.01ms!important;animation-duration:.01ms!important}
  .dots i{animation:none;opacity:.6}
  .is-live :is(.f-dr,.f-pop,.f-float){animation:none}
  .topic-tab.is-active b{transition:none;width:100%}
}
