/* =====================================================================
   VIN Подбор — стили
   ===================================================================== */

:root{
  --bg:        #0a0b0d;
  --bg-2:      #0e1013;
  --surface:   #14171c;
  --surface-2: #1a1e24;
  --line:      #262b33;
  --line-soft: #1e222a;

  --text:      #eef1f5;
  --muted:     #98a1ae;
  --dim:       #6b7382;

  --accent:    #ff5d2e;
  --accent-2:  #ff8a4c;
  --accent-dim: rgba(255,93,46,.14);
  --ok:        #35d07f;
  --tg:        #2aabee;

  --radius:    16px;
  --radius-sm: 10px;
  --wrap:      1200px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*,*::before,*::after{ box-sizing:border-box; }

/* Атрибут hidden должен побеждать любые display в стилях,
   иначе скрытые блоки остаются видимыми поверх открытых. */
[hidden]{ display:none !important; }

/* overflow-x:hidden обязателен на обоих: на iOS одного body мало,
   документ всё равно остаётся шире экрана и его можно увести вбок.
   Тогда за собой уезжает и position:fixed -чат. */
html{
  scroll-behavior:smooth; scroll-padding-top:90px;
  overflow-x:hidden;
  overscroll-behavior-x:none;
}

body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overscroll-behavior-x:none;
}

body.is-locked{ overflow:hidden; overscroll-behavior:none; }

h1,h2,h3,h4{ margin:0; line-height:1.12; letter-spacing:-.02em; font-weight:800; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.wrap--narrow{ max-width:820px; }

.ico{ width:18px; height:18px; flex:none; }

/* ---------------- HEADER ---------------- */

.hdr{
  position:fixed; inset:0 0 auto 0; z-index:80;
  background:rgba(10,11,13,.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .3s, background .3s;
}
.hdr.is-stuck{ border-bottom-color:var(--line-soft); background:rgba(10,11,13,.9); }
.hdr__in{ display:flex; align-items:center; gap:28px; height:72px; }

.brand{ display:flex; align-items:center; gap:11px; flex:none; }
.brand__mark{
  display:grid; place-items:center;
  width:40px; height:40px; border-radius:11px;
  background:var(--accent); color:#0a0b0d;
  font-weight:800; font-size:14px; letter-spacing:.02em;
  box-shadow:0 6px 18px rgba(255,93,46,.28);
}
.brand__txt{ display:flex; flex-direction:column; font-weight:800; font-size:15px; line-height:1.1; letter-spacing:-.01em; }
.brand__txt em{ font-style:normal; font-weight:500; font-size:11px; color:var(--dim); letter-spacing:.12em; text-transform:uppercase; }

.nav{ display:flex; align-items:center; gap:26px; margin-left:auto; }
.nav a{ font-size:14px; font-weight:500; color:var(--muted); transition:color .2s; }
.nav a:hover{ color:var(--text); }
.nav__tg{ color:var(--tg) !important; }
.nav__tg:hover{ color:#5cc6f5 !important; }

.hdr__cta{ display:flex; align-items:center; gap:12px; margin-left:12px; }

.price-pill{
  display:flex; align-items:center; gap:8px; line-height:1;
  font-weight:800; font-size:15px; color:var(--text);
}
.price-pill b{ font-weight:800; font-size:15px; }

/* режим «бесплатно»: зелёный акцент вместо оранжевого на цифрах цены */
body.is-free .price-pill b,
body.is-free .price__num,
body.is-free .badge-card--price .badge-card__num{ color:var(--ok); }
body.is-free .price-pill b{
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; padding:4px 10px; border-radius:100px;
  background:rgba(53,208,127,.14); border:1px solid rgba(53,208,127,.32);
}
body.is-free .price-pill b::before{
  content:''; width:6px; height:6px; border-radius:50%; background:var(--ok); flex:none;
}
body.is-free .badge-card--price{ border-color:rgba(53,208,127,.3); }

.burger{ display:none; width:42px; height:42px; background:none; border:1px solid var(--line); border-radius:11px; cursor:pointer; padding:0; }
.burger span{ display:block; width:17px; height:2px; margin:3px auto; background:var(--text); border-radius:2px; transition:.25s; }
.burger.is-open span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }

/* ---------------- BUTTONS ---------------- */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  border:0; cursor:pointer; font-family:inherit; font-weight:700; font-size:15px;
  padding:14px 24px; border-radius:12px; color:var(--text);
  background:transparent; transition:transform .15s, background .2s, border-color .2s, box-shadow .2s;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px) scale(.99); }

.btn--primary{
  background:var(--accent); color:#160703;
  box-shadow:0 8px 24px rgba(255,93,46,.24);
}
.btn--primary:hover{ background:var(--accent-2); box-shadow:0 12px 30px rgba(255,93,46,.34); }

.btn--ghost{ border:1px solid var(--line); background:var(--surface); }
.btn--ghost:hover{ border-color:#39414c; background:var(--surface-2); }

.btn--tg{ background:var(--tg); color:#04222f; box-shadow:0 8px 24px rgba(42,171,238,.22); }
.btn--tg:hover{ background:#4cbcff; }

.btn--sm{ padding:10px 17px; font-size:14px; border-radius:10px; }
.btn--lg{ padding:17px 34px; font-size:16px; }
.btn--wide{ width:100%; }

/* ---------------- HERO ---------------- */

.hero{ position:relative; padding:150px 0 90px; overflow:hidden; }
.hero__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.hero__glow{
  position:absolute; top:-220px; right:-140px; width:760px; height:760px;
  background:radial-gradient(circle, rgba(255,93,46,.18) 0%, transparent 62%);
  pointer-events:none;
}
.hero__in{ position:relative; display:grid; grid-template-columns:1.08fr .92fr; gap:56px; align-items:center; }

.tagline{
  display:inline-flex; align-items:center; gap:9px;
  font-size:13px; font-weight:600; color:var(--muted);
  border:1px solid var(--line); background:rgba(20,23,28,.7);
  padding:7px 15px; border-radius:100px; margin-bottom:26px;
}
.dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-dim); flex:none; }
.dot--on{ background:var(--ok); box-shadow:0 0 0 4px rgba(53,208,127,.16); animation:pulse 2.4s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 4px rgba(53,208,127,.16);} 50%{ box-shadow:0 0 0 7px rgba(53,208,127,.06);} }

.hero__title{ font-size:clamp(34px, 5vw, 62px); letter-spacing:-.035em; margin-bottom:24px; }
/* nowrap здесь ломал вёрстку на узких экранах: фраза не переносилась
   и растягивала заголовок до 431px вместе со всей страницей */
.accent{ color:var(--accent); position:relative; }
.accent::after{
  content:''; position:absolute; left:0; right:0; bottom:.02em; height:.32em;
  background:linear-gradient(90deg, rgba(255,93,46,.28), rgba(255,93,46,0));
  z-index:-1; border-radius:4px;
}

.hero__lead{ font-size:17px; color:var(--muted); max-width:560px; margin-bottom:34px; }
.hero__lead b{ color:var(--text); font-weight:700; }

.hero__btns{ display:flex; flex-wrap:wrap; gap:13px; margin-bottom:44px; }

.hero__facts{ display:flex; flex-wrap:wrap; gap:34px; padding-top:30px; border-top:1px solid var(--line-soft); }
.hero__facts li{ display:flex; flex-direction:column; font-size:13px; color:var(--dim); }
.hero__facts b{ font-size:24px; color:var(--text); font-weight:800; letter-spacing:-.02em; }

/* mock chat */
.hero__right{ position:relative; }
.mock{
  background:var(--surface); border:1px solid var(--line); border-radius:18px;
  box-shadow:0 40px 90px rgba(0,0,0,.5); overflow:hidden;
}
.mock__bar{ display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--line-soft); background:var(--bg-2); }
.mock__dots{ display:flex; gap:5px; }
.mock__dots i{ width:9px; height:9px; border-radius:50%; background:var(--line); }
.mock__title{ font-size:13px; font-weight:700; }
.mock__online{ margin-left:auto; font-size:11px; color:var(--ok); font-weight:600; }
.mock__body{ padding:22px; display:flex; flex-direction:column; gap:12px; min-height:260px; }

.bubble{ padding:12px 15px; border-radius:14px; font-size:14px; line-height:1.5; max-width:82%; }
.bubble--bot{ background:var(--surface-2); border:1px solid var(--line-soft); border-bottom-left-radius:4px; align-self:flex-start; }
.bubble--me{ background:var(--accent); color:#180802; border-bottom-right-radius:4px; align-self:flex-end; font-weight:600; }
.bubble b{ color:var(--accent-2); font-family:var(--mono); font-size:13px; }
.bubble--me b{ color:#180802; }

.mock__typing{ display:flex; gap:5px; padding:12px 15px; background:var(--surface-2); border:1px solid var(--line-soft); border-radius:14px; border-bottom-left-radius:4px; align-self:flex-start; width:max-content; }
.mock__typing i{ width:6px; height:6px; border-radius:50%; background:var(--dim); animation:blink 1.3s infinite; }
.mock__typing i:nth-child(2){ animation-delay:.2s; }
.mock__typing i:nth-child(3){ animation-delay:.4s; }
@keyframes blink{ 0%,60%,100%{ opacity:.28; } 30%{ opacity:1; } }

.badge-card{
  position:absolute; display:flex; flex-direction:column; gap:2px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:13px 17px; box-shadow:0 20px 45px rgba(0,0,0,.45);
}
.badge-card__num{ font-size:19px; font-weight:800; letter-spacing:-.02em; }
.badge-card__txt{ font-size:11px; color:var(--dim); line-height:1.35; }
.badge-card--price{ left:-26px; bottom:-26px; border-color:rgba(255,93,46,.3); }
.badge-card--price .badge-card__num{ color:var(--accent); }
.badge-card--time{ right:-18px; top:-22px; }

/* ---------------- STRIP ---------------- */

.strip{ border-block:1px solid var(--line-soft); background:var(--bg-2); }
.strip__in{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-soft); }
.strip__item{ background:var(--bg-2); padding:26px 22px; display:flex; flex-direction:column; gap:3px; }
.strip__item b{ font-size:15px; font-weight:800; }
.strip__item span{ font-size:13px; color:var(--dim); }

/* ---------------- SECTIONS ---------------- */

.sec{ padding:110px 0; }
.sec--alt{ background:var(--bg-2); border-block:1px solid var(--line-soft); }

.sec__head{ max-width:640px; margin-bottom:56px; }
.sec__tag{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); margin-bottom:16px;
}
.sec__title{ font-size:clamp(26px, 3.4vw, 42px); }
.sec__sub{ margin-top:16px; color:var(--muted); font-size:16px; }

/* steps */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.step{
  position:relative; padding:30px 26px 28px;
  background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius);
  transition:border-color .25s, transform .25s;
}
.step:hover{ border-color:var(--line); transform:translateY(-3px); }
.step__n{
  font-family:var(--mono); font-size:13px; font-weight:700; color:var(--accent);
  margin-bottom:20px; letter-spacing:.06em;
}
.step h3{ font-size:18px; margin-bottom:11px; }
.step p{ font-size:14px; color:var(--muted); line-height:1.65; }

/* price */
.price{ display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:start; }
.price__box{ background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:42px; }
.price__main{ display:flex; align-items:baseline; gap:18px; margin:6px 0 30px; }
.price__num{ font-size:64px; font-weight:800; letter-spacing:-.04em; color:var(--accent); line-height:1; }
.price__per{ font-size:14px; color:var(--dim); line-height:1.4; }

.price__list{ display:flex; flex-direction:column; gap:13px; margin-bottom:32px; }
.price__list li{ position:relative; padding-left:30px; font-size:15px; color:var(--muted); }
.price__list li::before{
  content:''; position:absolute; left:0; top:8px; width:16px; height:16px; border-radius:50%;
  background:var(--accent-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5D2E' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.price__note{ font-size:13px; color:var(--dim); text-align:center; margin-top:14px; }

.price__side{ display:flex; flex-direction:column; gap:18px; }
.mini{ background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius); padding:28px; }
.mini--muted{ background:transparent; }
.mini h3{ font-size:17px; margin-bottom:18px; }
.mini ul{ display:flex; flex-direction:column; gap:12px; }
.mini li{ position:relative; padding-left:26px; font-size:14px; color:var(--muted); line-height:1.6; }
.tick li::before{
  content:'✓'; position:absolute; left:0; top:0; color:var(--ok); font-weight:800; font-size:14px;
}
.cross li::before{
  content:'—'; position:absolute; left:0; top:0; color:var(--dim); font-weight:700;
}

/* need */
.need{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.need__item{
  display:flex; gap:20px; padding:28px;
  background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius);
}
.need__ico{
  flex:none; width:48px; height:48px; display:grid; place-items:center; font-size:22px;
  background:var(--surface-2); border:1px solid var(--line-soft); border-radius:12px;
}
.need__item h3{ font-size:17px; margin-bottom:8px; }
.need__item p{ font-size:14px; color:var(--muted); line-height:1.6; }

/* faq */
.faq{ display:flex; flex-direction:column; gap:12px; }
.faq details{
  background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius-sm);
  transition:border-color .2s;
}
.faq details[open]{ border-color:var(--line); }
.faq summary{
  cursor:pointer; list-style:none; padding:20px 56px 20px 22px; position:relative;
  font-weight:700; font-size:15px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:''; position:absolute; right:24px; top:50%; width:10px; height:10px;
  border-right:2px solid var(--accent); border-bottom:2px solid var(--accent);
  transform:translateY(-70%) rotate(45deg); transition:transform .25s;
}
.faq details[open] summary::after{ transform:translateY(-30%) rotate(-135deg); }
.faq p{ padding:0 22px 22px; color:var(--muted); font-size:14px; line-height:1.7; }

/* telegram */
.tg-sec{ position:relative; overflow:hidden; }
.tg-sec::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 80% at 85% 50%, rgba(42,171,238,.12), transparent 65%);
  pointer-events:none;
}
.tg{ position:relative; display:grid; grid-template-columns:1fr .85fr; gap:56px; align-items:center; }
.tg__left p{ color:var(--muted); font-size:16px; margin:18px 0 30px; max-width:520px; }
.tg__btns{ display:flex; flex-wrap:wrap; gap:13px; }

.tgcard{
  background:linear-gradient(160deg, var(--surface) 0%, #12222c 100%);
  border:1px solid rgba(42,171,238,.22); border-radius:20px; overflow:hidden;
  box-shadow:0 30px 70px rgba(0,0,0,.45);
}
.tgcard__head{ display:flex; align-items:center; gap:13px; padding:18px 20px; border-bottom:1px solid rgba(42,171,238,.14); }
.tgcard__ava{
  width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(135deg, var(--tg), #0f7fb3); color:#fff; font-weight:800;
}
.tgcard__name{ font-weight:800; font-size:15px; }
.tgcard__meta{ font-size:12px; color:var(--muted); }
.tgcard__body{ padding:20px; display:flex; flex-direction:column; gap:10px; }
.tgmsg{
  align-self:flex-start; max-width:86%; padding:11px 14px; border-radius:14px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.06);
  font-size:14px; line-height:1.5;
}
.tgmsg b{ color:#7fd4ff; font-family:var(--mono); font-size:13px; }
.tgmsg--ans{ background:rgba(42,171,238,.14); border-color:rgba(42,171,238,.2); }

/* cta */
.sec--cta{ padding:74px 0; background:var(--bg-2); border-top:1px solid var(--line-soft); }
.cta{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.cta h2{ font-size:clamp(24px,3vw,36px); margin-bottom:10px; }
.cta p{ color:var(--muted); font-size:15px; max-width:520px; }

/* footer */
.ftr{ border-top:1px solid var(--line-soft); padding:62px 0 30px; background:var(--bg-2); }
.ftr__in{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:44px; padding-bottom:44px; }
.ftr__brand p{ color:var(--dim); font-size:14px; margin-top:16px; max-width:300px; }
.ftr__col{ display:flex; flex-direction:column; gap:11px; }
.ftr__col h4{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-bottom:4px; font-weight:700; }
.ftr__col a{ font-size:14px; color:var(--muted); transition:color .2s; }
.ftr__col a:hover{ color:var(--text); }
.ftr__col span{ font-size:14px; color:var(--muted); }
.ftr__note{ font-size:13px !important; color:var(--dim) !important; }
.ftr__bottom{
  display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap;
  padding-top:24px; border-top:1px solid var(--line-soft); font-size:12.5px; color:var(--dim);
}
.ftr__bottom a{ color:var(--muted); text-decoration:underline; text-underline-offset:2px; }
.ftr__bottom a:hover{ color:var(--accent); }

/* ---------------- CHAT WIDGET ---------------- */

.chat-fab{
  position:fixed; right:22px; bottom:22px; z-index:90;
  display:flex; align-items:center; gap:12px;
  padding:12px 22px 12px 13px; cursor:pointer;
  background:var(--accent); color:#160703;
  border:0; border-radius:100px; font-family:inherit;
  box-shadow:0 14px 40px rgba(255,93,46,.4);
  transition:transform .2s, box-shadow .2s;
}
.chat-fab:hover{ transform:translateY(-2px); box-shadow:0 18px 48px rgba(255,93,46,.5); }
.chat-fab__ico{ display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.14); }
.chat-fab__ico svg{ width:19px; height:19px; }
.chat-fab__txt{ display:flex; flex-direction:column; line-height:1.25; text-align:left; }
.chat-fab__txt b{ font-size:14px; font-weight:800; }
.chat-fab__txt i{ font-style:normal; font-size:11px; font-weight:600; opacity:.75; }
.chat-fab__badge{
  position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px;
  display:grid; place-items:center; background:#fff; color:#111;
  border-radius:100px; font-size:11px; font-weight:800; border:2px solid var(--accent);
}

.chat{
  position:fixed; right:22px; bottom:22px; z-index:95;
  width:390px; height:min(640px, calc(100vh - 44px));
  max-width:100%; overflow-x:hidden;
  display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--line);
  border-radius:20px; overflow-y:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  animation:chatIn .25s cubic-bezier(.2,.9,.3,1.2);
  /* жест вбок внутри чата не нужен: вертикальную прокрутку оставляем,
     щипок для масштаба - тоже. Иначе на телефоне страницу уводит вбок. */
  touch-action:pan-y pinch-zoom;
}
.chat[hidden]{ display:none; }
@keyframes chatIn{ from{ transform:translateY(16px) scale(.97); opacity:0; } to{ transform:none; opacity:1; } }

.chat__head{
  display:flex; align-items:center; gap:10px;
  padding:12px 12px 12px 60px;
  background:var(--bg-2); border-bottom:1px solid var(--line-soft); position:relative;
}
/* Кнопка закрытия: 44x44 — минимальная площадь, в которую реально попадает палец */
.chat__close{
  position:absolute; left:9px; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border:0; background:var(--surface-2); color:var(--muted);
  font-size:28px; line-height:1; cursor:pointer; border-radius:13px;
  display:grid; place-items:center; padding:0;
  transition:color .2s, background .2s;
}
.chat__close:hover{ color:var(--text); background:var(--surface); }
.chat__close:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.chat__close::after{
  content:'Закрыть чат';
  position:absolute; left:0; top:100%; margin-top:6px;
  font-size:10.5px; color:var(--dim); white-space:nowrap; opacity:0; transition:opacity .2s;
  pointer-events:none;
}
.chat__close:hover::after{ opacity:1; }
.chat__ava{
  width:38px; height:38px; border-radius:11px; display:grid; place-items:center; flex:none;
  background:var(--accent); color:#0a0b0d; font-weight:800; font-size:12px;
}
.chat__meta{ flex:1; min-width:0; }
.chat__name{ font-weight:800; font-size:14px; }
.chat__status{ display:flex; align-items:center; gap:7px; font-size:11.5px; color:var(--dim); }
.chat__tg{ display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:rgba(42,171,238,.14); color:var(--tg); transition:background .2s; }
.chat__tg:hover{ background:rgba(42,171,238,.26); }

.chat__body{ flex:1; overflow-y:auto; overflow-x:hidden; padding:18px; display:flex; flex-direction:column; gap:11px; scroll-behavior:smooth; overscroll-behavior:contain; }
.chat__body::-webkit-scrollbar{ width:5px; }
.chat__body::-webkit-scrollbar-thumb{ background:var(--line); border-radius:4px; }

.msg{ max-width:84%; padding:11px 14px; font-size:14px; line-height:1.55; border-radius:14px; animation:msgIn .2s ease; white-space:pre-wrap; word-break:break-word; }
@keyframes msgIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.msg--bot{ align-self:flex-start; background:var(--surface-2); border:1px solid var(--line-soft); border-bottom-left-radius:5px; color:var(--text); }
.msg--me{ align-self:flex-end; background:var(--accent); color:#180802; border-bottom-right-radius:5px; font-weight:500; }
.msg--admin{
  align-self:flex-start; background:rgba(53,208,127,.1); border:1px solid rgba(53,208,127,.28);
  border-bottom-left-radius:5px;
}
.msg--admin::before{
  content:'Подборщик'; display:block; font-size:10px; font-weight:800; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ok); margin-bottom:4px;
}
.msg--sys{
  align-self:center; max-width:92%; text-align:center; font-size:12px; color:var(--dim);
  background:rgba(255,255,255,.03); border:1px dashed var(--line); border-radius:10px;
}
.msg--err{ align-self:center; background:rgba(255,93,46,.1); border:1px solid rgba(255,93,46,.3); color:var(--accent-2); font-size:12.5px; text-align:center; max-width:90%; }
.msg time{ display:block; font-size:10.5px; opacity:.45; margin-top:4px; font-weight:500; }

.chat__chips{ display:flex; gap:8px; padding:0 14px; flex-wrap:wrap; }
.chat__chips:not(:empty){ padding-bottom:11px; }
.chip{
  padding:8px 14px; border-radius:100px; font-size:13px; font-weight:600; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); color:var(--muted);
  font-family:inherit; transition:.18s;
}
.chip:hover{ border-color:var(--accent); color:var(--accent); }

.chat__form{ display:flex; gap:9px; padding:12px 14px; border-top:1px solid var(--line-soft); background:var(--bg-2); }
.chat__form input{
  flex:1; min-width:0; padding:11px 14px; font-family:inherit; font-size:14px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:11px; color:var(--text);
  outline:none; transition:border-color .2s;
}
.chat__form input:focus{ border-color:var(--accent); }
.chat__form input::placeholder{ color:var(--dim); }
.chat__send{
  width:44px; height:44px; flex:none; border:0; border-radius:12px; cursor:pointer;
  background:var(--accent); display:grid; place-items:center; transition:background .2s;
}
.chat__send:hover{ background:var(--accent-2); }
.chat__send svg{ width:19px; height:19px; color:#160703; }

.chat__foot{ padding:9px 16px; font-size:11px; color:var(--dim); background:var(--bg-2); border-top:1px solid var(--line-soft); text-align:center; }
.chat__foot a{ color:var(--tg); }
.chat__foot a:hover{ text-decoration:underline; }

.typing{ align-self:flex-start; display:flex; gap:4px; padding:13px 15px; background:var(--surface-2); border:1px solid var(--line-soft); border-radius:14px; border-bottom-left-radius:5px; }
.typing i{ width:6px; height:6px; border-radius:50%; background:var(--dim); animation:blink 1.3s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; }
.typing i:nth-child(3){ animation-delay:.4s; }

/* ---------------- RESPONSIVE ----------------
   1280+  десктоп, две колонки
   1080   планшет лёжа / маленький ноутбук — одна колонка
   900    планшет портрет
   720    телефон крупный
   480    телефон обычный
   360    телефон узкий
   -------------------------- */

/* Сетка по умолчанию не даёт колонкам сжиматься меньше их содержимого.
   Без этого любой длинный текст растягивает всю страницу. */
.hero__in > *,
.steps > *,
.need > *,
.strip__in > *,
.price > *,
.tg > *{ min-width:0; }

@media (max-width:1200px){
  .hero__in{ gap:44px; }
}

@media (max-width:1080px){
  .hero__in{ grid-template-columns:1fr; gap:52px; }
  .hero__right{ max-width:540px; }
  .steps{ grid-template-columns:1fr 1fr; }
  .price, .tg, .need{ grid-template-columns:1fr; }
  .strip__in{ grid-template-columns:1fr 1fr; }
  .ftr__in{ grid-template-columns:1fr 1fr; }
  .nav{ display:none; }
  .nav.is-open{
    display:flex; flex-direction:column; align-items:stretch; gap:0;
    position:absolute; top:72px; left:0; right:0; padding:12px 24px 20px;
    background:var(--bg); border-bottom:1px solid var(--line);
  }
  .nav.is-open a{ padding:13px 0; border-bottom:1px solid var(--line-soft); font-size:15px; }
  .burger{ display:block; margin-left:auto; }
  .hdr__cta .price-pill{ display:none; }
}

@media (max-width:900px){
  .hero__title{ font-size:clamp(30px,6.4vw,44px); }
  .sec__title{ font-size:clamp(24px,4.6vw,32px); }
  .price__box{ padding:32px; }
  .tg__preview{ max-width:440px; }
}

@media (max-width:720px){
  .sec{ padding:72px 0; }
  .hero{ padding:112px 0 60px; }
  .hero__in{ gap:44px; }
  .hero__lead{ font-size:16px; margin-bottom:28px; }
  .hero__facts{ gap:20px; padding-top:24px; }
  .hero__facts b{ font-size:21px; }
  .hero__btns .btn{ flex:1; min-width:180px; }
  .hero__right{ max-width:none; }

  .steps{ grid-template-columns:1fr; }
  .strip__in{ grid-template-columns:1fr; }
  .ftr__in{ grid-template-columns:1fr; gap:28px; }
  .need{ grid-template-columns:1fr; }
  .cta{ flex-direction:column; align-items:flex-start; }
  .cta .btn{ width:100%; }
  .price__box{ padding:26px 22px; }
  .price__num{ font-size:clamp(40px,12vw,56px); }
  .price__main{ gap:14px; }
  .badge-card--price{ left:-6px; bottom:-18px; }
  .badge-card--time{ right:-6px; top:-16px; }
  .mock__body{ padding:18px; min-height:220px; }

  .chat{ right:0; left:0; bottom:0; width:auto; height:100dvh; max-height:100dvh; border-radius:0; border:0; }
  .chat__head{ padding:10px 10px 10px 60px; }
  .chat__close{ width:44px; height:44px; left:10px; }
  .chat__close::after{ display:none; }
  .chat-fab{ right:14px; bottom:14px; padding:11px 18px 11px 11px; }
  .chat-fab__txt i{ display:none; }
}

/* Узкие телефоны: в шапке не помещаются и логотип, и кнопка, и бургер */
@media (max-width:480px){
  .wrap{ padding:0 16px; }
  .hdr__in{ height:64px; gap:12px; }
  .nav.is-open{ top:64px; padding:10px 16px 16px; }
  .brand__txt{ font-size:14px; }
  .brand__mark{ width:36px; height:36px; font-size:13px; }
  .hdr__cta .btn{ display:none; }          /* на главной есть та же кнопка и плавающий чат */
  .hero{ padding:98px 0 52px; }
  .hero__title{ font-size:clamp(27px,8vw,36px); }
  .tagline{ font-size:12px; padding:6px 12px; margin-bottom:20px; }
  .hero__btns .btn{ min-width:0; }
  .sec{ padding:60px 0; }
  .sec__head{ margin-bottom:36px; }
  .step, .need__item, .mini, .price__box{ padding:22px 18px; }
  .price__per{ font-size:13px; }
  .strip__item{ padding:20px 18px; }
  .ftr__bottom{ flex-direction:column; gap:8px; }
  .faq summary{ padding:17px 44px 17px 18px; font-size:14px; }
  .faq summary::after{ right:18px; }
  .faq p{ padding:0 18px 18px; }

  /* карточки-бейджи наезжают на макет — на узком экране убираем */
  .hero__right{ padding-bottom:52px; }
  .badge-card--time{ top:-14px; right:0; }
  .badge-card--price{ bottom:-14px; left:0; }
  .badge-card{ padding:10px 13px; }
  .badge-card__num{ font-size:17px; }
  .badge-card__txt{ font-size:10px; }
}

/* Очень узкие телефоны (iPhone SE и подобные) */
@media (max-width:360px){
  .wrap{ padding:0 14px; }
  .hero__title{ font-size:26px; }
  .hero__btns{ gap:10px; }
  .btn{ padding:13px 18px; font-size:14px; }
  .hero__facts{ gap:16px; }
  .hero__facts b{ font-size:19px; }
  .chat-fab__txt{ display:none; }
  .chat-fab{ padding:12px; }
  .price__num{ font-size:38px; }
}

/* Экранная клавиатура телефона уменьшает видимую область.
   Чат берёт высоту от visualViewport, иначе поле ввода уезжает под клавиатуру. */
@media (max-width:900px){
  .chat{
    right:0; left:0; bottom:0; width:100%;
    height:var(--chat-vh, 100dvh);
    max-height:var(--chat-vh, 100dvh);
    border-radius:0; border:0;
  }
  .chat__head{ padding:10px 10px 10px 60px; }
  .chat__close{ width:44px; height:44px; left:10px; }
  .chat__close::after{ display:none; }
  .chat-fab{ right:14px; bottom:14px; padding:11px 18px 11px 11px; }
  .chat-fab__txt i{ display:none; }
}

/* Ландшафтная ориентация телефона - высокий, но узкий экран */
@media (min-width:900px) and (max-height:520px) and (orientation:landscape){
  .chat{ height:calc(100dvh - 20px); bottom:10px; right:10px; left:auto; width:min(420px, calc(100vw - 20px)); border-radius:16px; border:1px solid var(--line); }
}

/* Крупные экраны - не даём контенту растянуться на весь телевизор */
@media (min-width:1700px){
  .wrap{ max-width:1360px; }
  .hero__title{ font-size:68px; }
  .sec__title{ font-size:46px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}