/* Хьюмантэк — стили сайта. Мобильная версия по умолчанию, расширения — в @media (min-width) */

@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-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: "Onest"; font-weight: 100 900; font-display: swap; src: url("../fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-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: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C4, U+2113; }

:root {
  --ink: #0B1822;
  --ink-2: #16293A;
  --text: #0B1822;
  --soft: #4D5C66;
  --mute: #6B7882;
  --line: #DFE3E8;
  --mist: #F4F6F8;
  --white: #FFFFFF;
  --or: #FF6A2A;
  --or-num: #E4561A;
  --or-text: #B93C0A;
  --head: "Onest", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 12px 40px rgba(11, 24, 34, .10);
  --tabbar-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; border-radius: 6px; }
.ic { width: 24px; height: 24px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Типографика ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.eyebrow i { width: 8px; height: 8px; background: var(--or); display: block; flex: none; }
.h1 { font-family: var(--head); font-weight: 500; font-size: clamp(31px, 7.2vw, 64px); line-height: 1.06; letter-spacing: -.032em; }
.h2 { font-family: var(--head); font-weight: 500; font-size: clamp(25px, 5.2vw, 42px); line-height: 1.12; letter-spacing: -.028em; }
.h3 { font-family: var(--head); font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.6; color: var(--soft); }
.accent { color: var(--or-num); }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.num { font-family: var(--head); font-weight: 400; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 8px 24px rgba(11, 24, 34, .2); }
.btn-ink:disabled { background: #B9C1C8; cursor: not-allowed; box-shadow: none; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .ic { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 20px; width: auto; }
.nav { display: none; }
.top-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 14px; background: var(--mist); text-decoration: none; font-weight: 600; }
.top-phone span { display: none; }
.top-cta { display: none; }

/* ---------- Нижняя панель (как в приложении) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(var(--tabbar-h) + var(--safe-b)); padding: 6px 6px calc(8px + var(--safe-b)); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 2px; font-size: 11px; font-weight: 600; color: var(--mute); text-decoration: none; -webkit-tap-highlight-color: transparent; position: relative; }
.tabbar a .ic { width: 26px; height: 26px; transition: transform .2s var(--ease); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; top: -7px; width: 22px; height: 3px; border-radius: 3px; background: var(--or); }
.tabbar a:active .ic { transform: scale(.88); }
.tab-fab { width: 56px; height: 56px; margin-top: -30px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(11, 24, 34, .28); transition: transform .2s var(--ease); }
.tabbar .tab-main[aria-current="page"]::after { display: none; }
.tabbar .tab-main:active .tab-fab { transform: scale(.92); }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-top: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Секции ---------- */
.sec { padding: 56px 0; }
.sec-mist { background: var(--mist); }
.sec-ink { background: var(--ink); color: #EDF1EE; }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; max-width: 1000px; }
.sec-head .lead { max-width: 780px; }

/* ---------- Первый экран ---------- */
.hero { padding: 20px 0 8px; }
.hero-grid { display: grid; gap: 22px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 70% 50%; }
.badge { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 24, 34, .72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
.badge-tl { left: 14px; top: 14px; }
.badge-br { right: 14px; bottom: 14px; }
.hero-card { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.hero-card .num { font-size: 24px; color: var(--or-num); }
.hero-card p { font-size: 14px; line-height: 1.35; color: var(--soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.fact { padding: 16px; border-radius: var(--r-md); background: var(--mist); display: flex; flex-direction: column; gap: 8px; }
.fact .num { font-size: clamp(21px, 6vw, 26px); }
.fact-wide { grid-column: span 2; }
.fact-wide p { max-width: 220px; }
.fact .num.accent { color: var(--or-num); }
.fact p { font-size: 13.5px; line-height: 1.35; color: var(--soft); }

/* ---------- Карусель / сетка услуг ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 14px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; scroll-margin-left: 16px; }
.svc-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.svc-top { display: flex; align-items: center; justify-content: space-between; }
.svc-top .ic { width: 28px; height: 28px; }
.svc-idx { font-family: var(--head); font-size: 13px; font-weight: 500; color: var(--or-text); }
.svc-body p { font-size: 14.5px; color: var(--soft); }
.svc-body .link-arrow { margin-top: auto; padding-top: 6px; font-size: 15px; }
.svc-card.is-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.svc-card.is-dark p { color: #9DB0B8; }
.svc-card.is-dark .svc-idx { color: var(--or); }

/* ---------- Разделение: фото + текст ---------- */
.split { display: grid; gap: 24px; align-items: center; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.split-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.split-text { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Зоны ответственности ---------- */
.zones { display: grid; gap: 12px; }
.zone { border-radius: var(--r-lg); padding: 22px; border: 1px solid var(--line); background: #fff; }
.zone.is-main { background: var(--mist); border-color: var(--mist); }
.zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.zone-head .h3 { font-family: var(--head); font-weight: 500; font-size: 19px; }
.zone-head span { font-size: 13px; color: var(--mute); }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 7px; background: var(--or) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230B1822' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks.is-soft li { color: var(--soft); }
.checks.is-soft li::before { background-color: var(--line); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%234D5C66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Плитки с иконками ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feat { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.feat-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; }
.feat-ic .ic { width: 26px; height: 26px; }
.feat div { display: flex; flex-direction: column; gap: 4px; }
.feat p { font-size: 14.5px; color: var(--soft); line-height: 1.45; }
.sec-mist .feat { border-color: #fff; }
.note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--ink); color: #EDF1EE; font-size: 15px; line-height: 1.5; }
.note .ic { color: #fff; width: 26px; height: 26px; }

/* ---------- Кейсы ---------- */
.case { display: grid; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.case + .case { margin-top: 14px; }
.case-media { position: relative; }
.case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; height: 100%; }
.case-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.case-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.case-stats div { display: flex; flex-direction: column; gap: 4px; }
.case-stats .num { font-weight: 300; font-size: 38px; color: var(--or-num); }
.case-stats span { font-size: 13.5px; color: var(--soft); max-width: 180px; line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 12px; border-radius: 999px; background: var(--mist); font-size: 12.5px; font-weight: 500; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.sec-mist .step { border-color: #fff; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 500; font-size: 14px; color: var(--or-text); }
.sec-mist .step-n { background: var(--mist); }
.step.is-hot .step-n { background: var(--ink); color: var(--or); }
.step div { display: flex; flex-direction: column; gap: 4px; }
.step p { font-size: 14.5px; color: var(--soft); line-height: 1.45; }

/* ---------- Формула ---------- */
.formula { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.formula-lhs { font-family: var(--head); font-weight: 500; font-size: 20px; line-height: 1.25; }
.frac { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.frac i { display: block; height: 2px; background: var(--or); }

/* ---------- Стоимость ---------- */
.price { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.price-num { font-weight: 300; font-size: clamp(42px, 11vw, 80px); color: var(--or-num); }
.price-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-incl div { border-top: 2px solid var(--ink); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.price-incl div:first-child { border-top-color: var(--or); }
.price-incl p { font-size: 13.5px; color: var(--soft); line-height: 1.4; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: var(--r-md); overflow: hidden; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.price-table td.num { font-size: 22px; }
.price-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 1080px; }
.faq-item { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.sec-mist .faq-item { border-color: #fff; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230B1822' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: var(--soft); font-size: 15px; line-height: 1.6; }

/* ---------- Формы ---------- */
.form-wrap { position: relative; }
.lead-form, .quiz-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--soft); }
.field em { font-style: normal; font-weight: 500; color: var(--mute); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 24, 34, .08); }
.field.is-error input { border-color: #C73A0E; box-shadow: 0 0 0 4px rgba(199, 58, 14, .1); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--soft); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.check.is-error { color: #C73A0E; }
.form-msg { font-size: 14px; min-height: 0; color: #C73A0E; }
.form-msg:empty { display: none; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.form-done[hidden] { display: none; }
.done-mark { width: 56px; height: 56px; border-radius: 18px; background: var(--ink); color: var(--or); display: flex; align-items: center; justify-content: center; }
.done-mark .ic { width: 28px; height: 28px; }
.done-title { font-family: var(--head); font-weight: 500; font-size: 22px; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Квиз ---------- */
.quiz { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow); }
.quiz-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.quiz-count { font-size: 13px; font-weight: 600; color: var(--mute); }
.quiz-count b { color: var(--ink); }
.quiz-bar { height: 6px; border-radius: 6px; background: var(--mist); overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 16%; background: var(--or); border-radius: 6px; transition: width .4s var(--ease); }
.q-step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; flex-direction: column; gap: 14px; }
.q-step.is-active { display: flex; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.q-title { font-family: var(--head); font-weight: 500; font-size: clamp(20px, 5vw, 28px); line-height: 1.2; padding: 0; margin-bottom: 4px; }
.q-options { display: grid; gap: 10px; }
.q-opt { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-opt span { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15.5px; line-height: 1.35; transition: border-color .2s, background .2s, transform .15s; }
.q-opt span .ic { width: 26px; height: 26px; }
.q-opt:active span { transform: scale(.98); }
.q-opt input:checked + span { border-color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); }
.q-opt input:focus-visible + span { outline: 3px solid var(--or); outline-offset: 2px; }
.q-range { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--mist); }
.q-range-val { font-family: var(--head); font-weight: 300; font-size: 52px; line-height: 1; color: var(--or-num); }
.q-range-unit { font-weight: 600; color: var(--soft); }
.q-range input { width: 100%; margin: 18px 0 4px; accent-color: var(--ink); height: 32px; }
.q-range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); font-weight: 600; }
.q-result { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--mist); }
.q-result-label { font-size: 13px; font-weight: 600; color: var(--soft); }
.q-sum { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; color: var(--or-num); }
.q-facts { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.q-facts li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.q-facts span { color: var(--soft); }
.q-note { font-size: 13px; color: var(--mute); line-height: 1.45; }
.q-sub { font-weight: 600; }
.quiz-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.quiz-nav .js-q-next { grid-column: 2; }
.quiz-nav [hidden] { display: none; }
.quiz.is-final .quiz-nav { display: none; }

/* ---------- Блок заявки ---------- */
.cta-card { display: grid; gap: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--mist); }
.cta-text { display: flex; flex-direction: column; gap: 14px; }
.cta-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.cta-contacts li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cta-contacts a { text-decoration: none; }
.cta-card .form-wrap { background: #fff; padding: 20px; border-radius: var(--r-md); }

/* ---------- Нижнее окно (sheet) ---------- */
.sheet { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: #fff; color: var(--text); overflow: auto; box-shadow: 0 -20px 60px rgba(11, 24, 34, .25); }
.sheet[open] { animation: sheetUp .35s var(--ease); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet::backdrop { background: rgba(11, 24, 34, .45); backdrop-filter: blur(4px); }
.sheet-handle { width: 44px; height: 5px; border-radius: 5px; background: var(--line); margin: 10px auto 0; }
.sheet-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--mist); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-body { padding: 18px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.sheet-title { font-family: var(--head); font-weight: 500; font-size: 24px; line-height: 1.15; }
.sheet-lead { color: var(--soft); font-size: 15px; margin-bottom: 4px; }
body.is-locked { overflow: hidden; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #C9D4DA; padding: 48px 0 24px; }
.footer-top { display: grid; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { font-size: 15px; line-height: 1.55; max-width: 380px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-weight: 500; color: #EDF1EE; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-h { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8197A1; }
.footer-muted { font-size: 14px; color: #9DB0B8; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(237, 241, 238, .14); display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #8197A1; }
.footer-bottom a { color: #C9D4DA; }

/* ---------- Текстовые страницы ---------- */
.prose { max-width: 920px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-family: var(--head); font-weight: 500; font-size: 22px; margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose li { color: var(--soft); }

/* ---------- Утилиты ---------- */
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.hide-m { display: none; }
.case-title { font-family: var(--head); font-weight: 500; font-size: clamp(24px, 5vw, 34px); line-height: 1.15; letter-spacing: -.015em; }
.h1-page { font-size: clamp(28px, 6.4vw, 50px); }
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--mist); font-size: 14px; font-weight: 600; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(255, 106, 42, .18); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r-md); background: var(--mist); text-decoration: none; }
.contact-card .feat-ic { background: #fff; }
.contact-card b { display: block; font-size: 17px; font-weight: 600; }
.contact-card span { font-size: 14px; color: var(--soft); }
.req { font-size: 14.5px; color: var(--soft); line-height: 1.7; }
.err-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.err-code { font-family: var(--head); font-weight: 200; font-size: clamp(72px, 20vw, 160px); line-height: 1; color: var(--or-num); }

/* ---------- Переход между страницами: мягкая смена кадра вместо мигания (Chrome 126+, Safari 18.2+) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ================= Стекло и мягкий фон =================
   Фон страницы — светлый с мягким оранжевым и графитовым свечением, поверх — полупрозрачные «стеклянные» панели.
   Размытие подложки (backdrop-filter) — у шапки, нижней панели, чата, окон и плашек на фото; у карточек — только на компьютере. */
:root {
  --glass: rgba(255, 255, 255, .62);
  --glass-hi: rgba(255, 255, 255, .8);
  --glass-line: rgba(255, 255, 255, .78);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(11, 24, 34, .04), 0 18px 44px -24px rgba(11, 24, 34, .24);
  --blur: saturate(1.7) blur(20px);
  --line-soft: rgba(11, 24, 34, .09);
}
html { background: #EDF0F1; }
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vmax 45vmax at 100% -8%, rgba(255, 106, 42, .17), transparent 62%),
    radial-gradient(60vmax 50vmax at -12% 34%, rgba(22, 41, 58, .13), transparent 60%),
    radial-gradient(45vmax 40vmax at 88% 104%, rgba(255, 106, 42, .10), transparent 60%),
    linear-gradient(180deg, #F7F8F8 0%, #EDF0F1 100%); }
.sec-mist { background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2)); border-block: 1px solid rgba(255, 255, 255, .7); }

.svc-card, .zone, .zone.is-main, .feat, .case, .step, .formula, .faq-item, .quiz, .contact-card, .fact, .price, .cta-card, .q-result, .q-range, .status, .tag {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); }
.sec-mist .feat, .sec-mist .step, .sec-mist .faq-item { border-color: var(--glass-line); }
.zone.is-main, .cta-card .form-wrap, .price-table { background: var(--glass-hi); }
.cta-card .form-wrap { border: 1px solid #fff; box-shadow: var(--glass-shadow); }
.zone-head { border-bottom-color: var(--line-soft); }
.price-table th, .price-table td, .q-facts li { border-color: var(--line-soft); }
.feat-ic, .step-n, .contact-card .feat-ic { background: linear-gradient(140deg, #fff, rgba(255, 255, 255, .55)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 6px 16px -8px rgba(11, 24, 34, .22); }
.step.is-hot .step-n { background: linear-gradient(160deg, #1B2D3D, var(--ink)); }
.faq-item summary::after { background-color: rgba(11, 24, 34, .05); }
.quiz-bar { background: rgba(11, 24, 34, .07); }
.field input, .field textarea { background: rgba(255, 255, 255, .78); border: 1px solid rgba(11, 24, 34, .13); }
.q-opt span { background: rgba(255, 255, 255, .55); border: 1px solid rgba(11, 24, 34, .11); }
.q-opt input:checked + span { background: rgba(255, 255, 255, .95); }

/* Кнопки: графит с мягким бликом, светлые — стеклянные */
.btn-ink { background: linear-gradient(180deg, #1D3042 0%, var(--ink) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(11, 24, 34, .55); }
.btn-ink:hover { background: linear-gradient(180deg, #24394D 0%, #13222F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 30px -12px rgba(11, 24, 34, .6); }
.btn-line, .btn-light { background: rgba(255, 255, 255, .6); border-color: rgba(11, 24, 34, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .85); border-color: rgba(11, 24, 34, .3); }

/* Шапка и нижняя панель — матовое стекло */
.topbar { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); border-bottom: 1px solid rgba(255, 255, 255, .6); }
.topbar.is-scrolled { border-bottom-color: rgba(11, 24, 34, .06); box-shadow: 0 10px 30px -22px rgba(11, 24, 34, .35); }
.top-phone { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
@media (max-width: 1023px) {
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px); }
  .tabbar { left: 10px; right: 10px; bottom: calc(8px + var(--safe-b)); height: var(--tabbar-h); padding: 6px 6px 8px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(250, 251, 251, .84)); border: 1px solid rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: saturate(1.8) blur(26px); backdrop-filter: saturate(1.8) blur(26px);
    box-shadow: 0 0 0 1px rgba(11, 24, 34, .07), inset 0 1px 0 #fff, 0 18px 44px -12px rgba(11, 24, 34, .42); }
  /* Мягкая вуаль под панелью: контент уходит под неё, а не сливается с ней */
  body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; height: calc(var(--tabbar-h) + var(--safe-b) + 40px); pointer-events: none;
    background: linear-gradient(180deg, rgba(237, 240, 241, 0), rgba(237, 240, 241, .78) 45%, rgba(237, 240, 241, .94)); }
  .tabbar a { font-weight: 500; }
  .tabbar a[aria-current="page"]::after { top: -5px; width: 18px; }
  .tab-fab { background: linear-gradient(180deg, #1D3042, var(--ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 26px -8px rgba(11, 24, 34, .45); }
}

/* Плашки поверх фото */
.badge { background: rgba(11, 24, 34, .38); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); font-weight: 500; letter-spacing: .01em; }
.hero-card { background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: saturate(1.9) blur(22px); backdrop-filter: saturate(1.9) blur(22px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 50px -20px rgba(11, 24, 34, .4); }
.hero-card p { color: var(--ink); opacity: .78; }

/* Тёмные элементы — графитовое стекло с оранжевым свечением */
.svc-card.is-dark, .note { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 42, .24), transparent 55%), linear-gradient(160deg, #1A2C3C, var(--ink)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 44px -24px rgba(11, 24, 34, .6); }
.footer { background: radial-gradient(60% 90% at 100% 0%, rgba(255, 106, 42, .14), transparent 60%), radial-gradient(55% 80% at 0% 100%, rgba(70, 110, 140, .2), transparent 60%), var(--ink); }

/* Окна (заявка, квиз) */
.sheet { background: rgba(250, 251, 251, .86); -webkit-backdrop-filter: saturate(1.8) blur(28px); backdrop-filter: saturate(1.8) blur(28px); border: 1px solid rgba(255, 255, 255, .8); }
.sheet::backdrop { background: rgba(11, 24, 34, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-close { background: rgba(11, 24, 34, .05); }

@media (min-width: 1024px) {
  .svc-card, .zone, .feat, .case, .step, .formula, .faq-item, .quiz, .contact-card, .fact, .price, .cta-card { -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .svc-card:hover { box-shadow: inset 0 1px 0 #fff, 0 28px 60px -28px rgba(11, 24, 34, .38); }
}

/* ================= Планшет ================= */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .rail { grid-auto-columns: 46%; padding: 2px 32px 14px; margin: 0 -32px; }
  .rail > * { scroll-margin-left: 32px; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact-wide { grid-column: auto; }
  .fact-wide p { max-width: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .price-incl { grid-template-columns: repeat(4, 1fr); }
  .sheet { max-width: 560px; margin: auto; border-radius: 28px; }
  .sheet-handle { display: none; }
  .sheet-body { padding: 32px; }
  .case { grid-template-columns: 1fr 1fr; }
  .case-media { min-height: 360px; }
  .case-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .quiz { padding: 28px; }
  .q-options { grid-template-columns: 1fr 1fr; }
}

/* ================= Компьютер ================= */
@media (min-width: 1024px) {
  .wrap { padding: 0 48px; }
  body { padding-bottom: 0; font-size: 16px; }
  .tabbar { display: none; }
  .topbar-in { height: 76px; gap: 28px; }
  .brand img { height: 26px; }
  .top-phone, .top-cta { white-space: nowrap; }
  .brand { margin-right: 8px; }
  .crumbs { padding-top: 34px; }
  .top-phone { width: auto; height: auto; background: none; font-size: 15px; }
  .top-phone .ic { width: 20px; height: 20px; }
  .top-phone span { display: inline; }
  .top-cta { display: inline-flex; }
  .sec { padding: 96px 0; }
  .sec-head { margin-bottom: 44px; }
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
  .hero-media img { aspect-ratio: 4 / 4.2; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; padding: 0; margin: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.is-rev .split-media { order: 2; }
  .zones { grid-template-columns: 1.6fr 1fr; gap: 16px; }
  .zone { padding: 32px; }
  .feat-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
  .feat-grid.is-4 .feat { flex-direction: column; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps.is-4 { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; padding: 22px; }
  .formula { grid-template-columns: auto 1fr; align-items: center; gap: 32px; padding: 28px 32px; }
  .price { grid-template-columns: auto 1fr; align-items: end; gap: 40px; padding: 40px; }
  .price .price-incl { grid-column: 1 / -1; }
  .cta-card { grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; }
  .cta-card .form-wrap { padding: 28px; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .quiz { padding: 36px; }
  .quiz-wide { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .quiz-wide .sec-head img { border-radius: var(--r-lg); margin-top: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
  .hide-m { display: block; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ================= Чат-помощник ================= */
.chat { position: fixed; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 22px); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 14.5px; }
.chat-fab { position: relative; width: 58px; height: 58px; padding: 0; border: 2px solid rgba(255, 255, 255, .95); border-radius: 50%; background: var(--mist); box-shadow: 0 0 0 5px rgba(255, 255, 255, .35), 0 14px 34px -8px rgba(11, 24, 34, .4); cursor: pointer; opacity: 0; scale: .7; transition: transform .25s var(--ease), opacity .5s var(--ease), scale .55s var(--ease); }
.chat.is-ready .chat-fab { opacity: 1; scale: 1; }
.chat.is-calm .chat-fab { transition: transform .25s var(--ease); }
.chat.is-calm .chat-badge { animation: none; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-online { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.chat-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--or); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; border: 2px solid #fff; animation: chat-badge .45s var(--ease) both; }
@keyframes chat-badge { from { transform: scale(0); } 60% { transform: scale(1.18); } to { transform: none; } }
.chat-fab.is-ping { animation: chat-ping 1.4s var(--ease); }
@keyframes chat-ping { 0%, 100% { transform: none; } 20% { transform: translateY(-6px) rotate(-6deg); } 40% { transform: translateY(0) rotate(5deg); } 60% { transform: rotate(-3deg); } }
.chat.is-open .chat-fab { display: none; }

.chat-teaser { position: relative; width: min(330px, calc(100vw - 28px)); padding: 14px; border-radius: 20px 20px 6px 20px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); box-shadow: inset 0 1px 0 #fff, 0 26px 60px -22px rgba(11, 24, 34, .42); transform-origin: 100% 100%; animation: chat-pop .45s var(--ease) both; }
.chat-teaser-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; }
.chat-teaser-x:hover { background: var(--mist); color: var(--ink); }
.chat-teaser-x svg, .chat-min svg, .chat-send svg { width: 100%; height: 100%; display: block; }
.chat-teaser-body { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 0 22px 0 0; border: 0; background: none; text-align: left; cursor: pointer; }
.chat-teaser-body img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-teaser-body b { display: block; font-size: 12.5px; color: var(--mute); font-weight: 500; margin-bottom: 3px; }
.chat-teaser-text { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.chat-teaser-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-left: 52px; }
.chat-teaser-chips:empty { display: none; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(12px) scale(.88); } }
.chat-teaser-text .w { animation: chat-word .5s var(--ease) both; }
@keyframes chat-word { from { opacity: 0; filter: blur(4px); } }
.chat-teaser .chat-chip { animation: chat-in .4s var(--ease) both; }
/* Телефон: компактное облачко слева от аватара, без второго портрета и с двумя кнопками */
@media (max-width: 1023px) {
  .chat.has-teaser { flex-direction: row; align-items: flex-end; gap: 10px; }
  .chat-teaser { width: auto; max-width: min(292px, calc(100vw - 92px)); padding: 10px 12px 11px 13px; border-radius: 18px 18px 6px 18px; }
  .chat-teaser-body { padding: 0 22px 0 0; gap: 0; }
  .chat-teaser-body img { display: none; }
  .chat-teaser-body b { font-size: 11.5px; margin-bottom: 2px; }
  .chat-teaser-text { font-size: 13.5px; line-height: 1.4; }
  .chat-teaser-chips { padding-left: 0; margin-top: 8px; gap: 5px; }
  .chat-teaser .chat-chip { padding: 6px 9px; font-size: 12.5px; }
  .chat-teaser-x { top: 3px; right: 3px; width: 28px; height: 28px; padding: 7px; }
}

.chat-chip { padding: 8px 13px; border: 1px solid rgba(11, 24, 34, .13); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.chat-chip:hover { border-color: rgba(11, 24, 34, .4); background: #fff; }

.chat-panel { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: rgba(243, 245, 246, .84); -webkit-backdrop-filter: saturate(1.8) blur(30px); backdrop-filter: saturate(1.8) blur(30px); animation: chat-up .3s var(--ease); }
.chat-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 40% at 100% 0%, rgba(255, 106, 42, .14), transparent 70%), radial-gradient(60% 40% at 0% 100%, rgba(22, 41, 58, .08), transparent 70%); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(255, 255, 255, .4); }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-who b { font-family: var(--head); font-size: 16px; font-weight: 500; }
.chat-who span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex: none; }
.chat-call, .chat-min { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; padding: 10px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; }
.chat-call .ic { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: transparent; }
.chat-msg { display: flex; flex-direction: column; gap: 6px; max-width: 86%; animation: chat-in .25s var(--ease); }
.chat-msg.is-me { align-self: flex-end; align-items: flex-end; }
.chat-bubble { padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: rgba(255, 255, 255, .84); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 22px -16px rgba(11, 24, 34, .35); line-height: 1.5; overflow-wrap: anywhere; }
.is-me .chat-bubble { border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, #1D3042, var(--ink)); border-color: transparent; color: #fff; }
.chat-bubble b { font-weight: 700; }
.chat-a { color: var(--or-text); font-weight: 600; }
.chat-links { display: flex; flex-direction: column; gap: 6px; }
.chat-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 8px 20px -16px rgba(11, 24, 34, .4); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.chat-card span { color: var(--or-num); }
.chat-card:hover { border-color: var(--ink); }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B0; animation: chat-dot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; } .chat-typing i:nth-child(3) { animation-delay: .3s; }
.chat-typing-sm { padding: 6px 0 2px; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; gap: 8px; padding: 10px 14px 4px; overflow-x: auto; scrollbar-width: none; background: transparent; border-top: 1px solid var(--line-soft); }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips[hidden] { display: none; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 6px; background: transparent; }
.chat-input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid rgba(11, 24, 34, .1); border-radius: 24px; background: rgba(255, 255, 255, .78); font-size: 16px; outline: none; }
.chat-input:focus { border-color: var(--ink); background: #fff; }
.chat-send { width: 48px; height: 48px; flex: none; padding: 12px; border: 0; border-radius: 50%; background: linear-gradient(180deg, #1D3042, var(--ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.chat-note { padding: 2px 16px calc(10px + var(--safe-b)); background: transparent; font-size: 11.5px; color: var(--mute); text-align: center; }
html.chat-lock, html.chat-lock body { overflow: hidden; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes chat-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat *, .chat-panel { animation: none !important; } }

@media (min-width: 1024px) {
  .chat { right: 24px; bottom: 24px; }
  .chat-fab { width: 66px; height: 66px; }
  .chat-panel { inset: auto 24px 24px auto; width: 410px; height: min(700px, calc(100vh - 48px)); border-radius: 26px; border: 1px solid rgba(255, 255, 255, .8); background: rgba(243, 245, 246, .74); box-shadow: inset 0 1px 0 #fff, 0 40px 90px -30px rgba(11, 24, 34, .45); overflow: hidden; }
  .chat-head { padding: 14px 12px 14px 16px; }
  .chat-chips { flex-wrap: wrap; }
  .chat-note { padding-bottom: 10px; }
}
.chat-wait { font-size: 12.5px; color: var(--mute); padding-left: 4px; }

/* Чат: заявка, квиз и итог расчёта прямо в ленте */
.chat-msg.is-wide { max-width: 100%; align-self: stretch; }
.chat-lead { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .88); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 16px 36px -20px rgba(11, 24, 34, .4); animation: chat-in .3s var(--ease); }
.chat-lead::before { content: ""; position: absolute; right: -50px; top: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 42, .22), transparent 68%); pointer-events: none; }
.cl-title { position: relative; font-family: var(--head); font-weight: 500; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.cl-sub { position: relative; margin-top: -6px; font-size: 13px; line-height: 1.4; color: var(--soft); }
.cl-in { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(11, 24, 34, .13); background: rgba(255, 255, 255, .92); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.cl-in:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 24, 34, .07); }
.cl-in.is-error { border-color: #C73A0E; box-shadow: 0 0 0 4px rgba(199, 58, 14, .1); }
.cl-check { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.cl-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.cl-check a { color: inherit; }
.cl-check.is-error { color: #C73A0E; }
.cl-err { font-size: 13px; line-height: 1.4; color: #C73A0E; }
.cl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #1D3042, var(--ink)); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px -12px rgba(11, 24, 34, .6); transition: transform .15s var(--ease); }
.cl-btn:active { transform: scale(.98); }
.cl-btn .ic { width: 18px; height: 18px; color: var(--or); }
.cl-btn.is-loading { opacity: .7; pointer-events: none; }
.chat-lead.is-done { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.chat-lead.is-done b { display: block; font-weight: 600; }
.chat-lead.is-done div span { display: block; font-size: 13px; color: var(--soft); }
.cl-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(160deg, #1D3042, var(--ink)); color: var(--or); display: flex; align-items: center; justify-content: center; }
.cl-mark .ic { width: 22px; height: 22px; }
.chat-quiz { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.chat-quiz span:first-child { color: var(--or-text); }
.chat-quiz i { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(11, 24, 34, .07); overflow: hidden; }
.chat-quiz b { display: block; height: 100%; border-radius: 4px; background: var(--or); transition: width .4s var(--ease); }
.chat-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-opt { flex: 1 1 130px; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(11, 24, 34, .12); background: rgba(255, 255, 255, .78); color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s var(--ease); }
.chat-opt:hover { border-color: rgba(11, 24, 34, .4); background: #fff; }
.chat-opt:active { transform: scale(.98); }
.chat-result { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 106, 42, .13), rgba(255, 255, 255, .5)); border: 1px solid rgba(255, 106, 42, .22); }
.chat-result span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--or-text); }
.chat-result b { font-family: var(--head); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.chat-result small { font-size: 12.5px; color: var(--soft); }

/* ================= Верхнее меню (компьютер) ================= */
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 5px; border-radius: 999px;
    background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 24, 34, .05), 0 12px 30px -20px rgba(11, 24, 34, .32); }
  .nav-link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 17px; border-radius: 999px;
    font-weight: 500; font-size: 15px; color: var(--soft); text-decoration: none; white-space: nowrap;
    transition: color .2s, background-color .2s, box-shadow .2s; }
  .nav-link:hover, .nav-drop:hover > .nav-link, .nav-drop:focus-within > .nav-link { color: var(--ink); background: rgba(255, 255, 255, .85); }
  .nav-link[aria-current] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(11, 24, 34, .06), 0 8px 18px -10px rgba(11, 24, 34, .38); }
  .nav-link[aria-current]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--or); }
  .nav-caret { width: 16px; height: 16px; margin-right: -5px; color: var(--mute); transition: transform .25s var(--ease); }
  .nav-drop { position: relative; }
  .nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
  /* Выпадающее меню «Услуги» */
  .nav-menu { position: absolute; left: -6px; top: 100%; z-index: 5; width: 650px; padding-top: 14px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
  .nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-menu-in { padding: 10px; border-radius: 26px; background: #fff; border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(11, 24, 34, .05), 0 32px 70px -26px rgba(11, 24, 34, .42); }
  .nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
  .nav-item:hover, .nav-item[aria-current] { background: var(--mist); }
  .nav-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 106, 42, .1); color: var(--or); transition: background-color .2s, color .2s; }
  .nav-ic .ic { width: 23px; height: 23px; }
  .nav-item:hover .nav-ic { background: var(--or); color: #fff; }
  .nav-tx { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
  .nav-tx b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; line-height: 1.2; }
  .nav-tx small { font-size: 13px; line-height: 1.45; color: var(--mute); }
  .nav-tag { padding: 3px 7px; border-radius: 6px; background: rgba(255, 106, 42, .12); color: var(--or-text, var(--or)); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .nav-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 14px 14px 6px; border-top: 1px solid var(--line); }
  .nav-foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; transition: color .2s; }
  .nav-foot a:hover { color: var(--or); }
  .nav-foot .ic { width: 18px; height: 18px; }
}
/* Заголовок первого экрана на компьютере — в три строки при любой ширине */
@media (min-width: 1024px) {
  .hero .h1 { font-size: clamp(36px, calc(3.85vw - 1px), 56px); }
}
/* Узкий компьютер: меню компактнее, телефон — одной иконкой */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link { padding: 0 13px; font-size: 14.5px; }
  .top-phone { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
  .top-phone span { display: none; }
}
