/* =========================================================
   QARAUYL — системы видеонаблюдения
   Палитра снята с логотипа: navy #0C2A47, blue #185FA5
========================================================= */

:root{
  --navy:       #0C2A47;
  --navy-deep:  #071C31;
  --navy-soft:  #143A5E;
  --blue:       #185FA5;
  --blue-2:     #2E86D6;
  --blue-light: #7EC4FF;
  --blue-pale:  #EAF2FA;
  --bg:         #F5F8FC;
  --surface:    #FFFFFF;
  --text:       #0C2A47;
  --muted:      #5B6B7D;
  --line:       rgba(12,42,71,.10);
  --radius:     18px;
  --radius-sm:  10px;
  --shadow:     0 22px 55px -22px rgba(12,42,71,.30);
  --shadow-sm:  0 10px 26px -14px rgba(12,42,71,.30);
  --grad-blue:  linear-gradient(120deg,#0C2A47 0%,#185FA5 55%,#2E86D6 100%);
  --grad-dark:  linear-gradient(160deg,#0C2A47 0%,#143A5E 100%);
  --ease:       cubic-bezier(.22,.9,.32,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Montserrat',-apple-system,'Helvetica Neue',Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4,h5,p{ margin:0; }
:focus-visible{ outline:3px solid var(--blue-2); outline-offset:3px; border-radius:6px; }

.container{ width:100%; max-width:1240px; margin:0 auto; padding:0 24px; }
section{ position:relative; }
.section-pad{ padding:100px 0; }

/* ---------- Section heads ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--blue); margin-bottom:14px;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--blue); }
.section-title{
  font-size:clamp(28px,3.4vw,42px);
  font-weight:800; line-height:1.15; letter-spacing:-.01em;
}
.section-title span{ color:var(--blue); }
.section-sub{
  margin-top:16px; font-size:17px; line-height:1.6;
  color:var(--muted); max-width:640px;
}
.section-head{ margin-bottom:56px; }
.section-head.center{ text-align:center; }
.section-head.center .section-sub{ margin-left:auto; margin-right:auto; }
.section-head.center .eyebrow::before{ display:none; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 30px; border-radius:999px;
  font-size:15px; font-weight:700; line-height:1;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 14px 30px -12px rgba(24,95,165,.75); }
.btn-primary:hover{ background:#14508D; box-shadow:0 18px 36px -12px rgba(24,95,165,.85); }
.btn-ghost{ background:rgba(255,255,255,.12); color:#fff; border:1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover{ background:rgba(255,255,255,.2); }
.btn-dark{ background:var(--navy); color:#fff; }
.btn-dark:hover{ background:var(--navy-soft); }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.header{
  position:fixed; inset:0 0 auto 0; z-index:90;
  padding:16px 0;
  transition:background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header .container{ display:flex; align-items:center; gap:28px; }
.header.is-stuck{
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 24px -14px rgba(12,42,71,.4);
  padding:10px 0;
}
.header__logo{ flex:0 0 auto; }
.header__logo img{ height:42px; width:auto; max-width:none; transition:height .3s var(--ease); }
.header.is-stuck .header__logo img{ height:36px; }
.header__logo .logo-light{ display:block; }
.header__logo .logo-dark{ display:none; }
.header.is-stuck .logo-light{ display:none; }
.header.is-stuck .logo-dark{ display:block; }

.header__nav{ display:flex; gap:22px; margin-left:auto; }
.header__nav a{
  font-size:14.5px; font-weight:600; color:#fff; white-space:nowrap;
  position:relative; padding:4px 0; transition:color .2s;
}
.header.is-stuck .header__nav a{ color:var(--text); }
.header__nav a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--blue-2); transition:width .28s var(--ease);
}
.header__nav a:hover::after{ width:100%; }
.header__nav a:hover{ color:var(--blue-2); }

.header__right{ display:flex; align-items:center; gap:14px; }
.header__phone strong,.header__phone small{ white-space:nowrap; }

/* ---------- Переключатель языка ---------- */
.lang{
  display:flex; gap:2px; padding:3px; border-radius:999px;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2);
}
.header.is-stuck .lang{ background:var(--blue-pale); border-color:transparent; }
.lang__btn{
  padding:6px 13px; border-radius:999px;
  font-size:12.5px; font-weight:700; letter-spacing:.03em;
  color:rgba(255,255,255,.75);
  transition:background .22s, color .22s;
}
.lang__btn:hover{ color:#fff; }
.lang__btn.is-on{ background:#fff; color:var(--blue); }
.header.is-stuck .lang__btn{ color:var(--muted); }
.header.is-stuck .lang__btn:hover{ color:var(--text); }
.header.is-stuck .lang__btn.is-on{ background:var(--blue); color:#fff; }
.header__phone small{
  display:block; font-size:10px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:rgba(255,255,255,.7); margin-bottom:3px;
}
.header__phone strong{ font-size:16px; font-weight:700; color:#fff; }
.header.is-stuck .header__phone small{ color:var(--muted); }
.header.is-stuck .header__phone strong{ color:var(--text); }
.callback-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 20px; border-radius:999px; white-space:nowrap; flex:0 0 auto;
  background:var(--blue); color:#fff; font-size:14px; font-weight:700;
  box-shadow:0 12px 26px -12px rgba(24,95,165,.8);
  transition:transform .25s var(--ease), background .25s var(--ease);
}
.callback-btn:hover{ transform:translateY(-2px); background:#14508D; }

.header__burger{ display:none; width:44px; height:44px; flex-direction:column; justify-content:center; gap:5px; }
.header__burger span{
  display:block; height:2.5px; width:24px; margin:0 auto; border-radius:2px;
  background:#fff; transition:transform .3s var(--ease), opacity .2s, background .3s;
}
.header.is-stuck .header__burger span{ background:var(--text); }
body.nav-open .header__burger span{ background:var(--text); }
body.nav-open .header__burger span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
body.nav-open .header__burger span:nth-child(2){ opacity:0; }
body.nav-open .header__burger span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-nav-overlay{
  position:fixed; inset:0; z-index:70; background:rgba(7,28,49,.55);
  opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s;
}
body.nav-open .mobile-nav-overlay{ opacity:1; visibility:visible; }
.mobile-nav{
  position:fixed; top:0; right:0; z-index:80;
  width:min(320px,86vw); height:100%;
  background:#fff; padding:96px 28px 32px;
  display:flex; flex-direction:column; gap:6px;
  transform:translateX(100%); transition:transform .35s var(--ease);
  box-shadow:-20px 0 50px -20px rgba(12,42,71,.4);
}
body.nav-open .mobile-nav{ transform:translateX(0); }
.mobile-nav a{
  padding:14px 0; font-size:17px; font-weight:600;
  border-bottom:1px solid var(--line);
}
.mobile-nav__socials{ display:flex; gap:12px; margin-top:24px; }
.mobile-nav__socials a{ border:none; padding:0; }
.mobile-nav__socials svg{ width:42px; height:42px; }
.mobile-nav__phone{
  margin-top:auto; border:none !important;
  font-size:20px !important; font-weight:800 !important; color:var(--blue);
}

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:150px 0 90px;
  background:var(--grad-dark); color:#fff; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(46,134,214,.38), transparent 65%),
    radial-gradient(45% 55% at 10% 90%, rgba(24,95,165,.35), transparent 70%);
}
.hero::after{
  content:""; position:absolute; inset:0; opacity:.35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image:radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero .container{ position:relative; z-index:2; }
.hero__grid{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:48px; align-items:center; }
.hero__title{
  font-size:clamp(30px,4.2vw,52px); font-weight:800;
  line-height:1.12; letter-spacing:-.02em;
}
.hero__typed{ color:var(--blue-light); }
.hero__typed::after{
  content:""; display:inline-block; width:3px; height:.9em;
  background:var(--blue-light); margin-left:4px;
  vertical-align:-.08em; animation:caret 1s steps(1) infinite;
}
@keyframes caret{ 50%{ opacity:0; } }
.hero__subtitle{
  margin-top:22px; font-size:17px; line-height:1.65;
  color:rgba(255,255,255,.82); max-width:520px;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero__stats{
  display:flex; flex-wrap:wrap; gap:40px;
  margin-top:52px; padding-top:32px;
  border-top:1px solid rgba(255,255,255,.14);
}
.hero__stat b{ display:block; font-size:30px; font-weight:800; line-height:1; }
.hero__stat span{
  display:block; margin-top:8px; font-size:12px; font-weight:600;
  letter-spacing:.06em; color:rgba(255,255,255,.62);
}
.hero__visual{ position:relative; display:flex; justify-content:center; }
.hero__visual svg{ width:100%; max-width:440px; height:auto; filter:drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.hero__wave{ animation:wave 3s ease-in-out infinite; }
.hero__wave--2{ animation-delay:.35s; }
.hero__wave--3{ animation-delay:.7s; }
@keyframes wave{ 0%,100%{ opacity:.12; } 45%{ opacity:.5; } }

/* ---------- Offer ---------- */
.offer{ background:var(--surface); }
.offer__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.offer__card{
  background:var(--bg); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.offer__card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.offer__media{
  height:190px; background:var(--grad-blue);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.offer__media::after{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:26px 26px;
}
.offer__media svg{ width:96px; height:96px; position:relative; z-index:1; color:#fff; }
.offer__body{ padding:28px 26px 30px; display:flex; flex-direction:column; flex:1; }
.offer__num{
  font-size:12px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--blue); margin-bottom:12px;
}
.offer__body h3{ font-size:20px; font-weight:700; line-height:1.32; }
.offer__body p{ margin-top:12px; font-size:15px; line-height:1.62; color:var(--muted); }
.offer__tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.offer__tags span{
  padding:7px 13px; border-radius:999px; background:var(--blue-pale);
  font-size:12.5px; font-weight:600; color:var(--blue);
}

/* ---------- For whom ---------- */
.forwhom__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.forwhom__card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.forwhom__card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.forwhom__img{
  height:150px; background:var(--grad-blue);
  display:flex; align-items:center; justify-content:center;
}
.forwhom__img svg{ width:64px; height:64px; color:#fff; }
.forwhom__content{ padding:24px 22px 28px; }
.forwhom__content h4{ font-size:18px; font-weight:700; margin-bottom:16px; }
.forwhom__content li{
  display:flex; gap:10px; align-items:flex-start;
  font-size:14.5px; line-height:1.5; color:var(--muted); margin-bottom:12px;
}
.forwhom__content li:last-child{ margin-bottom:0; }
.forwhom__content li svg{ flex:0 0 18px; width:18px; height:18px; margin-top:2px; color:var(--blue); }

/* ---------- Problems ---------- */
.problems{ background:var(--surface); }
.problems__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.problems__card{
  padding:32px 28px; border-radius:var(--radius);
  background:var(--bg); border:1px solid var(--line);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.problems__card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-sm); border-color:rgba(24,95,165,.3); }
.problems__icon{
  width:54px; height:54px; border-radius:15px; margin-bottom:20px;
  background:var(--blue-pale); display:flex; align-items:center; justify-content:center;
}
.problems__icon svg{ width:26px; height:26px; stroke:var(--blue); stroke-width:1.9; fill:none; }
.problems__card h4{ font-size:17.5px; font-weight:700; line-height:1.35; }
.problems__card p{ margin-top:12px; font-size:15px; line-height:1.62; color:var(--muted); }
.problems__cta{ text-align:center; margin-top:48px; }

/* ---------- Quiz ---------- */
.quiz__wrap{
  max-width:800px; margin:0 auto;
  background:var(--surface); border:1px solid var(--line);
  border-radius:24px; box-shadow:var(--shadow); overflow:hidden;
}
.quiz__progress{ height:5px; background:var(--blue-pale); }
.quiz__progress i{
  display:block; height:100%; width:16.6%;
  background:var(--grad-blue); transition:width .45s var(--ease);
}
.quiz__meta{
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 34px; border-bottom:1px solid var(--line);
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
}
.quiz__meta span:first-child{ color:var(--muted); }
.quiz__meta span:last-child{ color:var(--blue); }
.quiz__body{ padding:38px 34px 10px; }
.quiz__step{ display:none; }
.quiz__step.active{ display:block; animation:stepIn .35s var(--ease); }
@keyframes stepIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
.quiz__step h3{ font-size:23px; font-weight:700; line-height:1.3; }
.quiz__hint{ margin-top:10px; font-size:14.5px; color:var(--muted); }
.quiz__options{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:26px; }
.quiz__options.single-col{ grid-template-columns:1fr; }
.quiz__option{
  display:flex; align-items:center; gap:12px;
  padding:18px 20px; border-radius:14px;
  border:1.8px solid var(--line); background:var(--bg);
  font-size:15px; font-weight:600; cursor:pointer;
  transition:border-color .22s, background .22s, transform .22s var(--ease);
}
.quiz__option:hover{ border-color:var(--blue-2); transform:translateY(-2px); }
.quiz__option.selected{ border-color:var(--blue); background:var(--blue-pale); color:var(--blue); }
.qo-icon{
  flex:0 0 34px; width:34px; height:34px; border-radius:10px;
  background:var(--surface); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700;
}
.quiz__counter{ display:flex; align-items:center; justify-content:center; gap:28px; margin:36px 0 10px; }
.quiz__counter button{
  width:56px; height:56px; border-radius:50%;
  background:var(--blue-pale); color:var(--blue);
  font-size:26px; font-weight:700; line-height:1;
  transition:background .22s, transform .22s var(--ease);
}
.quiz__counter button:hover{ background:var(--blue); color:#fff; transform:scale(1.06); }
.quiz__count-val{ font-size:46px; font-weight:800; min-width:80px; text-align:center; }
.quiz__form-row{ margin-bottom:20px; }
.quiz__form-row label{
  display:block; font-size:12px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--muted); margin-bottom:8px;
}
.quiz__form-row input{
  width:100%; padding:16px 18px; border-radius:12px;
  border:1.8px solid var(--line); background:var(--bg);
  font-family:inherit; font-size:16px; font-weight:600; color:var(--text);
  transition:border-color .22s, background .22s;
}
.quiz__form-row input:focus{ outline:none; border-color:var(--blue); background:var(--surface); }
.quiz__error{ display:none; margin-top:7px; font-size:13px; font-weight:600; color:#D64545; }
.quiz__form-row.has-error input{ border-color:#D64545; }
.quiz__form-row.has-error .quiz__error{ display:block; }
.quiz__nav{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:24px 34px 30px;
}
.quiz__back{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14.5px; font-weight:600; color:var(--muted); cursor:pointer;
  opacity:0; pointer-events:none; transition:opacity .25s, color .2s;
}
.quiz__back.visible{ opacity:1; pointer-events:auto; }
.quiz__back:hover{ color:var(--blue); }

/* ---------- Рассрочка и оплата ---------- */
.pay{ background:var(--surface); }
.pay__brand{ margin-top:26px; display:flex; justify-content:center; }
.pay__brand img{ height:36px; width:auto; }
.pay__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.pay__card{
  padding:32px 28px; border-radius:var(--radius);
  background:var(--bg); border:1px solid var(--line);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.pay__card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-sm); border-color:rgba(24,95,165,.3); }
.pay__term{
  display:inline-block; margin-bottom:18px;
  padding:8px 16px; border-radius:999px;
  background:var(--blue); color:#fff;
  font-size:16px; font-weight:800; letter-spacing:.04em;
  font-variant-numeric:tabular-nums;
}
.pay__term--red{ background:#E2574C; letter-spacing:0; }
.pay__card h4{ font-size:18px; font-weight:700; line-height:1.32; }
.pay__card p{ margin-top:10px; font-size:15px; line-height:1.6; color:var(--muted); }

/* ---------- Convenience ---------- */
.convenience{ background:var(--surface); }
.convenience__grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:60px; align-items:center; }
.convenience__visual{
  border-radius:24px; background:var(--grad-blue);
  padding:48px 40px; box-shadow:var(--shadow); position:relative; overflow:hidden;
}
.convenience__visual::after{
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:30px 30px;
}
.convenience__visual svg{ width:100%; height:auto; position:relative; z-index:1; }
.convenience__list{ display:flex; flex-direction:column; gap:26px; }
.convenience__item{ display:flex; gap:18px; }
.ci-num{
  flex:0 0 40px; width:40px; height:40px; border-radius:12px;
  background:var(--blue-pale); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:800;
}
.convenience__item h4{ font-size:17.5px; font-weight:700; }
.convenience__item p{ margin-top:7px; font-size:15px; line-height:1.6; color:var(--muted); }

/* ---------- Security ---------- */
.security{ background:var(--grad-dark); color:#fff; }
.security .section-title span{ color:var(--blue-light); }
.security .section-sub{ color:rgba(255,255,255,.7); }
.security .eyebrow{ color:var(--blue-light); }
.security .eyebrow::before{ background:var(--blue-light); }
.security__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.security__card{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius); padding:34px 30px 30px; position:relative;
  transition:transform .35s var(--ease), background .3s;
}
.security__card:hover{ transform:translateY(-6px); background:rgba(255,255,255,.1); }
.security__step{
  width:46px; height:46px; border-radius:14px; margin-bottom:20px;
  background:var(--blue); display:flex; align-items:center; justify-content:center;
  font-size:18px; font-weight:800;
}
.security__card h4{ font-size:19px; font-weight:700; line-height:1.3; margin-bottom:22px; }
.security__list li{ display:flex; gap:12px; margin-bottom:18px; }
.security__list li:last-child{ margin-bottom:0; }
.security__list svg{ flex:0 0 20px; width:20px; height:20px; margin-top:2px; color:var(--blue-light); }
.security__list b{ display:block; font-size:15px; font-weight:700; margin-bottom:3px; }
.security__list span{ font-size:14px; line-height:1.5; color:rgba(255,255,255,.65); }

/* ---------- Contacts / footer ---------- */
.contacts{ background:var(--navy-deep); color:#fff; padding:80px 0 32px; }
.contacts__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:48px; }
.contacts__brand img{ height:48px; width:auto; margin-bottom:22px; }
.contacts__brand p{ font-size:15px; line-height:1.65; color:rgba(255,255,255,.62); max-width:420px; }
.contacts__socials{ display:flex; gap:12px; margin-top:24px; }
.contacts__socials svg{ width:42px; height:42px; transition:transform .25s var(--ease); }
.contacts__socials a:hover svg{ transform:translateY(-3px); }
.contacts__col h5{
  font-size:12px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--blue-light); margin-bottom:20px;
}
.contacts__col a,.contacts__col p{
  display:block; font-size:16px; font-weight:600;
  color:rgba(255,255,255,.85); margin-bottom:12px; transition:color .2s;
}
.contacts__col a:hover{ color:var(--blue-light); }
.contacts__bottom{
  margin-top:56px; padding-top:26px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:13.5px; color:rgba(255,255,255,.45); text-align:center;
}

/* ---------- Social dock ---------- */
.social-dock{
  position:fixed; right:18px; bottom:22px; z-index:50;
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
.social-dock svg{ width:52px; height:52px; filter:drop-shadow(0 8px 18px rgba(12,42,71,.35)); transition:transform .25s var(--ease); }
.social-dock a:hover svg{ transform:scale(1.08); }
.social-dock__badge{
  width:60px; height:60px; border-radius:50%;
  background:#D64545; color:#fff;
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-size:9px; font-weight:700; line-height:1.15; letter-spacing:-.2px;
  box-shadow:0 8px 20px -6px rgba(214,69,69,.7);
  transition:transform .25s var(--ease);
}
.social-dock__badge:hover{ transform:scale(1.07); }

/* ---------- Чат-бот ---------- */
.chat__launcher{
  position:relative;
  width:58px; height:58px; border-radius:50%;
  background:var(--grad-blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px -8px rgba(12,42,71,.6);
  transition:transform .25s var(--ease);
}
.chat__launcher:hover{ transform:scale(1.07); }
.chat__launcher svg{ width:26px; height:26px; position:absolute; transition:opacity .2s, transform .25s var(--ease); }
.chat__ico-close{ opacity:0; transform:rotate(-90deg); }
body.chat-open .chat__ico-open{ opacity:0; transform:rotate(90deg); }
body.chat-open .chat__ico-close{ opacity:1; transform:none; }
.chat__dot{
  position:absolute; top:3px; right:3px;
  width:13px; height:13px; border-radius:50%;
  background:#E2574C; border:2.5px solid #fff;
  transition:opacity .2s, transform .2s;
}
.chat__dot.hidden{ opacity:0; transform:scale(.4); }

.chat{
  position:fixed; right:18px; bottom:96px; z-index:70;
  width:min(372px,calc(100vw - 36px));
  max-height:min(560px,calc(100vh - 130px));
  background:var(--surface); border:1px solid var(--line);
  border-radius:20px; box-shadow:0 28px 60px -24px rgba(12,42,71,.55);
  display:flex; flex-direction:column; overflow:hidden;
  opacity:0; visibility:hidden; transform:translateY(16px) scale(.97);
  transition:opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
body.chat-open .chat{ opacity:1; visibility:visible; transform:none; }
/* пока чат открыт, панель накрывает столбик кнопок — убираем их */
body.chat-open .social-dock a{ display:none; }

.chat__head{
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; background:var(--grad-dark); color:#fff; flex:0 0 auto;
}
.chat__ava{ width:38px; height:38px; border-radius:11px; }
.chat__who{ flex:1; min-width:0; }
.chat__who b{ display:block; font-size:15px; font-weight:700; }
.chat__who span{ display:block; font-size:12px; color:rgba(255,255,255,.65); margin-top:2px; }
.chat__who span::before{
  content:""; display:inline-block; vertical-align:1px;
  width:7px; height:7px; border-radius:50%; margin-right:6px;
  background:#3FCB7E;
}
.chat__who span.offline::before{ background:#E0A33C; }
.chat__x{ font-size:26px; line-height:1; color:rgba(255,255,255,.7); transition:color .2s; }
.chat__x:hover{ color:#fff; }

.chat__log{
  flex:1 1 auto; overflow-y:auto;
  padding:18px 16px 6px;
  display:flex; flex-direction:column; gap:10px;
  background:var(--bg);
}
.chat__msg{
  max-width:82%; padding:11px 14px;
  font-size:14.5px; line-height:1.5;
  border-radius:16px; white-space:pre-line;
  animation:msgIn .3s var(--ease);
}
@keyframes msgIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.chat__msg--bot{ align-self:flex-start; background:var(--surface); border:1px solid var(--line); border-bottom-left-radius:5px; }
.chat__msg--me{ align-self:flex-end; background:var(--blue); color:#fff; border-bottom-right-radius:5px; }
.chat__typing{
  align-self:flex-start; display:flex; gap:4px; padding:14px 16px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:16px; border-bottom-left-radius:5px;
}
.chat__typing i{ width:7px; height:7px; border-radius:50%; background:var(--muted); animation:dot 1.3s infinite; }
.chat__typing i:nth-child(2){ animation-delay:.18s; }
.chat__typing i:nth-child(3){ animation-delay:.36s; }
@keyframes dot{ 0%,60%,100%{ transform:translateY(0); opacity:.35; } 30%{ transform:translateY(-5px); opacity:.9; } }

.chat__quick{
  flex:0 0 auto; display:flex; flex-wrap:wrap; gap:7px;
  padding:12px 16px 16px; background:var(--bg);
  border-top:1px solid var(--line);
}
.chat__quick:empty{ display:none; }
.chat__quick button{
  padding:9px 14px; border-radius:999px;
  border:1.5px solid rgba(24,95,165,.35); background:var(--surface);
  font-size:13.5px; font-weight:600; color:var(--blue);
  transition:background .2s, color .2s, transform .2s var(--ease);
}
.chat__quick button:hover{ background:var(--blue); color:#fff; transform:translateY(-2px); }

.chat__form{ flex:0 0 auto; padding:16px; border-top:1px solid var(--line); background:var(--surface); }
.chat__form .quiz__form-row{ margin-bottom:12px; }
.chat__form input{ padding:12px 14px; font-size:15px; }

/* ---------- Modal ---------- */
.modal{
  position:fixed; inset:0; z-index:100;
  display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition:opacity .28s, visibility .28s;
}
.modal.open{ opacity:1; visibility:visible; }
body.nav-open,body.modal-open{ overflow:hidden; }
.modal__overlay{ position:absolute; inset:0; background:rgba(7,28,49,.72); backdrop-filter:blur(4px); }
.modal__box{
  position:relative; z-index:1; width:100%; max-width:440px;
  background:var(--surface); border-radius:24px; padding:44px 36px 36px;
  text-align:center; box-shadow:var(--shadow);
  transform:translateY(18px) scale(.97); transition:transform .32s var(--ease);
}
.modal.open .modal__box{ transform:none; }
.modal__close{
  position:absolute; top:14px; right:18px;
  font-size:30px; line-height:1; color:var(--muted); transition:color .2s;
}
.modal__close:hover{ color:var(--text); }
.modal__icon{
  width:60px; height:60px; border-radius:18px; margin:0 auto 20px;
  background:var(--blue-pale); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.modal__box h3{ font-size:23px; font-weight:800; }
.modal__box > p{ margin-top:10px; font-size:15px; line-height:1.6; color:var(--muted); }
.modal__box form{ margin-top:26px; text-align:left; }
.modal__thanks .modal__icon{ background:#E5F8EE; color:#1FAE66; }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal-delay-1{ transition-delay:.1s; }
.reveal-delay-2{ transition-delay:.2s; }
.reveal-delay-3{ transition-delay:.3s; }
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal{ opacity:1; transform:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
/* Казахские подписи длиннее русских — на средних экранах телефон
   в шапке уходит первым, чтобы кнопка заявки не вылезала за край. */
@media (max-width:1240px){
  .header__phone{ display:none; }
}
@media (max-width:1080px){
  .header__nav{ display:none; }
  .header__burger{ display:flex; }
  body.nav-open .header__logo{ opacity:0; pointer-events:none; }
  .offer__grid,.problems__grid,.security__grid,.pay__grid{ grid-template-columns:repeat(2,1fr); }
  .forwhom__grid{ grid-template-columns:repeat(2,1fr); }
  .hero__grid{ grid-template-columns:1fr; }
  .hero__visual{ order:-1; }
  .hero__visual svg{ max-width:340px; }
  .convenience__grid{ grid-template-columns:1fr; gap:44px; }
}
@media (max-width:760px){
  .section-pad{ padding:70px 0; }
  .hero{ padding:130px 0 70px; }
  .header__phone,.callback-btn{ display:none; }
  .offer__grid,.problems__grid,.security__grid,.forwhom__grid,.pay__grid{ grid-template-columns:1fr; }
  .hero__visual svg{ max-width:250px; }
  .hero__stats{ gap:26px; }
  .hero__stat b{ font-size:24px; }
  .quiz__body,.quiz__meta,.quiz__nav{ padding-left:22px; padding-right:22px; }
  .quiz__options{ grid-template-columns:1fr; }
  .quiz__step h3{ font-size:20px; }
  .contacts__grid{ grid-template-columns:1fr; gap:36px; }
  .social-dock{ right:12px; bottom:14px; gap:9px; }
  .social-dock svg{ width:46px; height:46px; }
  .social-dock__badge{ width:52px; height:52px; font-size:8px; }
  .chat{ right:12px; left:12px; width:auto; bottom:82px; max-height:calc(100vh - 150px); }
  .chat__launcher{ width:52px; height:52px; }
  .chat__launcher svg{ width:23px; height:23px; }
  .btn{ padding:15px 24px; }
}
