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

:root {
  --navy:  #1A1D2E;
  --navy2: #23263A;
  --navy3: #2C3050;
  --blue:  #5B6CF9;
  --blue2: #818CF8;
  --blue-light: #EEF0FF;
  --blue-mid:   #D8DEFF;
  --cream: #F7F8FD;
  --white: #FFFFFF;
  --text:  #1A1D2E;
  --muted: #6B7280;
  --border: #E5E7F0;
  --bd-light: rgba(91,108,249,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6; overflow-x: hidden;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
a { text-decoration: none; color: inherit; }

/* ── TOPBAR ─────────────────────────── */
/* ── HEADER ─────────────────────────── */
.header {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 200;
  background: transparent;
  pointer-events: none;
}
.header .wrap { pointer-events: all; }
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 14px 24px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.09);
}
.hdr-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hdr-logo-img { height: 32px; width: auto; display: block; }
.hdr-logo-mob { display: none; }
.hdr-tagline {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  letter-spacing: .3px; line-height: 1;
}
.hdr-tagline-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; display: inline-block;
}

.hdr-address { font-size: 12px; color: var(--muted); line-height: 1.5; }
.hdr-address b { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin-bottom: 2px; }

.hdr-messengers { display: flex; flex-direction: column; gap: 4px; }
.hdr-messengers span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; display: block; }
.hdr-msg-icons { display: flex; gap: 8px; }
.hdr-msg-ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: box-shadow .2s, transform .15s;
}
.hdr-msg-ico:hover { box-shadow: 0 0 0 3px rgba(91,108,249,.3); transform: scale(1.1); }
.hdr-msg-ico-wa { background: #25D366; }
.hdr-msg-ico-tg { background: #2AABEE; }
.hdr-msg-ico-vk { background: #4680C2; }
.hdr-msg-ico-max { background: none; padding: 0; width: 32px; height: 32px; border-radius: 50%; }
.hdr-msg-ico-max svg { width: 32px; height: 32px; display: block; }

.hdr-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hdr-phones { display: flex; flex-direction: column; gap: 1px; }
.hdr-phones a { font-size: 16px; font-weight: 800; color: var(--navy); letter-spacing: -.3px; white-space: nowrap; }
.hdr-phones a:hover { color: var(--blue); }
.btn-callback {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--blue);
  font-family: inherit; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.btn-callback:hover { color: var(--blue2); }

/* modal callback */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 600; display: flex; align-items: center; justify-content: center; padding: 40px 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box { background: var(--white); border-radius: 20px; padding: 36px; max-width: 400px; width: 100%; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.quiz-modal-close-outer {
  position: absolute; top: -18px; right: -18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  font-size: 20px; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: background .2s, transform .15s;
  z-index: 10; line-height: 1;
}
.quiz-modal-close-outer:hover { background: var(--cream); transform: scale(1.08); }
.quiz-modal-box { position: relative; max-width: calc(100vw - 80px); width: 1200px; padding: 36px 40px 40px; overflow-y: auto; max-height: calc(100vh - 60px); border-radius: 24px; }
@media (max-width: 768px) { .quiz-modal-box { padding: 28px 20px 32px; border-radius: 20px; max-width: 95vw; } }
.mq4-msgr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; background: var(--navy); transition: opacity .15s; }
.mq4-msgr-btn:hover { opacity: .85; }
.mq4-msgr-btn[data-m="WhatsApp"] { background: #25D366; }
.mq4-msgr-btn[data-m="Telegram"] { background: #2AABEE; }
.mq4-msgr-btn[data-m="Мессенджер МАКС"] { background: linear-gradient(135deg,#44CCFF 0%,#5533EE 66%,#9933DD 100%); }
.mq4-msgr-btn.sel { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 0 5px var(--blue); }
.modal-title { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

@media (max-width: 900px) {
  .header-inner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
  .hdr-address, .hdr-messengers { display: none; }
  .hdr-contacts { display: none; }
  .hdr-logo-desk { display: none; }
  .hdr-logo-mob { display: block; height: 36px; width: 36px; border-radius: 50%; }
  .hdr-tagline { display: none; }
  .hdr-mob-phone { margin-left: auto; font-size: 16px !important; font-weight: 700 !important; }
}
@media (max-width: 600px) {
  .hdr-tagline { display: none; }
  .hdr-phones a { font-size: 14px; }
}

/* ── SHARED BUTTONS ─────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 700;
  border: none; border-radius: 8px; cursor: pointer;
  font-family: inherit; transition: all .22s;
  box-shadow: 0 2px 12px rgba(91,108,249,.3);
  letter-spacing: .2px;
}
.btn-gold:hover { background: #4B5CE0; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(91,108,249,.4); }
.btn-gold:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost-w {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy); font-size: 14px; font-weight: 500;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.btn-ghost-w:hover { border-color: var(--blue); color: var(--blue); }

/* ── HERO ───────────────────────────── */
.hero {
  min-height: 92vh;
  padding-top: 88px;
  background: transparent;
  display: flex; align-items: center; position: relative; z-index: 1; overflow: hidden;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 70% at 75% 50%, rgba(91,108,249,.07) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 5% 90%, rgba(91,108,249,.04) 0%, transparent 50%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 80px; align-items: center;
  padding: 100px 0 80px;
}
.hero h1 {
  font-size: 60px; font-weight: 800;
  line-height: 1.08; letter-spacing: -2px;
  color: var(--navy); margin-bottom: 28px;
}
.hero h1 span { color: var(--blue); }

.hero-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 36px;
}
.hero-bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--navy);
}
.hero-bullets li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-mid);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1 4 3.5 6.5 9 1' stroke='%235B6CF9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Mobile hero image (shown below bullets on mobile) */
.hero-img-mob { display: none; }

@keyframes bulletIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-sub {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; font-size: 16px; color: var(--muted); line-height: 1.45; max-width: 360px;
}
.hero-sub svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* Hero image */
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1.5px solid rgba(91,108,249,.12);
  bottom: -80px; right: -80px;
  pointer-events: none;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1.5px solid rgba(91,108,249,.18);
  top: -40px; left: -40px;
  pointer-events: none;
}
.hero-img {
  width: 100%; aspect-ratio: 3/4; max-height: 600px;
  border-radius: 20px 20px 40px 20px; overflow: hidden;
  background: linear-gradient(145deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  border: none;
  box-shadow: 0 24px 64px rgba(91,108,249,.18);
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 13px; color: var(--blue); padding-bottom: 16px;
}
@keyframes badgeBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}
.hero-badge {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(91,108,249,.15);
  color: var(--navy);
  animation: badgeBounce 3s ease-in-out infinite;
}
.hero-badge-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--blue);
}
.hero-badge-num { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; display: block; color: var(--navy); }
.hero-badge-txt { font-size: 11px; color: var(--muted); display: block; line-height: 1.3; }

.fi { margin-bottom: 12px; }
.fi-label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.fi-input {
  display: block; width: 100%;
  padding: 13px 16px;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 8px; color: var(--navy); font-size: 15px;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.fi-input::placeholder { color: #B0B5C0; }
.fi-input:focus { border-color: var(--blue); background: white; }
.phone-wrap { display: flex; align-items: stretch; gap: 0; }
.phone-flag {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; cursor: pointer; user-select: none;
  background: var(--cream); border: 1px solid var(--border); border-right: none;
  border-radius: 8px 0 0 8px; font-size: 14px; white-space: nowrap;
  color: var(--navy); font-weight: 500; position: relative;
  transition: border-color .2s;
}
.phone-flag:hover { background: #f0f1f8; }
.phone-flag svg { opacity: .4; flex-shrink: 0; }
.phone-flag-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 99;
  background: white; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px;
  display: none; flex-direction: column; overflow: hidden;
}
.phone-flag-dropdown.open { display: flex; }
.phone-flag-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--navy);
  transition: background .12s;
}
.phone-flag-opt:hover { background: var(--cream); }
.phone-flag-opt.active { background: var(--blue-light); font-weight: 600; }
.phone-wrap .fi-input { border-radius: 0 8px 8px 0; flex: 1; min-width: 0; }
.phone-wrap:focus-within .phone-flag { border-color: var(--blue); }
.phone-wrap:focus-within .fi-input { border-color: var(--blue); }

.hero-card .btn-gold { width: 100%; margin-top: 4px; }
.hero-card-alt {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.hero-card-alt span { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; letter-spacing: .5px; }
.hero-card-alt a { display: block; font-size: 15px; font-weight: 700; color: var(--navy); }
.hero-card-alt a:hover { color: var(--blue); }

/* ── STATS ──────────────────────────── */
.hero-stats-wrap { background: linear-gradient(135deg, var(--cream) 0%, #fff 55%, var(--blue-light) 100%); }
.stats { padding: 0 0 64px; background: transparent; }
.stats-card { background: linear-gradient(135deg, var(--blue) 0%, #4338CA 100%); border-radius: 20px; overflow: hidden; box-shadow: 0 0 80px 40px rgba(91,108,249,.2); }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.s-item {
  padding: 40px 44px; text-align: left;
  position: relative;
}
.s-item + .s-item::before {
  content: ''; position: absolute; top: 28px; bottom: 28px; left: 0;
  width: 1px; background: rgba(255,255,255,.1);
}
.s-item-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.s-item-icon svg { color: rgba(255,255,255,.85); }
.s-val {
  font-size: 44px; font-weight: 900; letter-spacing: -2px;
  line-height: 1; margin-bottom: 8px;
  color: #fff; white-space: nowrap;
}
.s-num-accent { color: #fff; }
.s-lbl { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.5; max-width: 160px; }

@keyframes statIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stats-card.anim-visible .s-item:nth-child(1) { animation: statIn .5s cubic-bezier(.22,.68,0,1.15) .04s both; }
.stats-card.anim-visible .s-item:nth-child(2) { animation: statIn .5s cubic-bezier(.22,.68,0,1.15) .14s both; }
.stats-card.anim-visible .s-item:nth-child(3) { animation: statIn .5s cubic-bezier(.22,.68,0,1.15) .24s both; }
.stats-card.anim-visible .s-item:nth-child(4) { animation: statIn .5s cubic-bezier(.22,.68,0,1.15) .34s both; }

/* ── SECTION BASE ───────────────────── */
.sec { padding: 40px 0; }
.sec-dark { background: var(--cream); }
.sec-darker { background: var(--cream); }
.sec-cream { background: var(--cream); }


.h2 {
  font-size: 38px; font-weight: 800;
  line-height: 1.12; letter-spacing: -1.4px;
  color: var(--navy); margin-bottom: 16px;
}
.h2 em { font-weight: 400; font-style: normal; color: var(--muted); }
.h2 span { color: var(--blue); }

.lead {
  font-size: 16px; color: var(--muted); line-height: 1.75; max-width: 580px;
}

.sec-head { margin-bottom: 56px; max-width: 720px; }
.hscroll-pinned .sec-head { margin-bottom: 24px; }

/* ── PROOF ──────────────────────────── */
.proof-grid { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; }

.proof-card {
  border-radius: 16px; padding: 36px;
  background: var(--white); position: relative; overflow: hidden;
  border: none;
  border-left: 3px solid var(--blue);
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.proof-card-lbl {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.proof-amount {
  font-size: 46px; font-weight: 900; color: var(--navy);
  letter-spacing: -2px; line-height: 1; margin-bottom: 12px;
}
.proof-meta { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.proof-card .btn-gold { width: 100%; }
.proof-note { margin-top: 12px; font-size: 12px; color: #B0B5C0; text-align: center; }

/* ── PROCESS ────────────────────────── */
.process-grid {
  display: flex; gap: 16px; background: transparent; border-radius: 0; overflow: visible;
}
.process-grid .p-card { flex: 0 0 440px; }
.p-card {
  background: var(--white); padding: 32px 28px; position: relative;
  border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
  display: flex; flex-direction: column; overflow: hidden;
}
.p-card p { flex: 1; }
.p-card:hover { background: var(--white); box-shadow: 0 8px 32px rgba(91,108,249,.12); transform: translateY(-2px); }

.p-num {
  font-size: 64px; font-weight: 900; color: rgba(91,108,249,.15);
  line-height: 1; margin-bottom: 16px; letter-spacing: -2px;
}
.p-ico { width: 36px; height: 36px; color: var(--blue); margin-bottom: 14px; }
.p-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.p-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.p-tag-wrap { margin-top: 14px; }
.p-tag-label { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #B0B5C0; margin-bottom: 4px; }
.p-tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: var(--blue); border: 1px solid var(--blue-mid);
  background: var(--blue-light);
  padding: 3px 9px; border-radius: 2px;
}

/* ── GUARANTEES ─────────────────────── */

/* Карточка цитаты */
.guar-quote {
  background: var(--blue-light); border-radius: 16px; padding: 32px;
  margin-bottom: 48px; display: flex; gap: 24px; align-items: flex-start;
  border-left: 4px solid var(--blue);
}
.guar-quote-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; object-position: center 20%;
  flex-shrink: 0; border: 3px solid var(--white);
}
.guar-quote-text { flex: 1; }
.guar-quote-body {
  font-size: 15px; line-height: 1.75; font-style: italic;
  color: var(--navy); margin-bottom: 16px;
}
.guar-quote-author {
  font-size: 13px; font-weight: 700; color: var(--navy);
}

/* Заголовок и кнопка */
.guar-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; margin-bottom: 14px;
}
.guar-head h2 { margin: 0; flex: 1; }
.guar-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  transition: all .2s;
}
.guar-link:hover {
  background: #4a5ae0; border-color: #4a5ae0; color: #fff;
}

/* Сетка из 3 карточек */
.guar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 36px;
}
.guar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: all .25s;
}
.guar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.guar-card-photo {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 12px 12px 0 0;
  background-color: var(--border);
  background-size: cover; background-position: center;
}
.guar-top-1 { background-image: url('guar-risk.jpeg'); background-color: #dde6ff; }
.guar-top-2 { background-image: url('guar-manager.jpg'); background-color: #e8e8e8; }
.guar-top-3 { background-image: url('guar-contact.jpeg'); background-color: #fce5db; }

.guar-card-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.guar-card-title {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin: 0 0 10px 0; line-height: 1.3;
}
.guar-card-text {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  margin: 0 0 16px 0; flex: 1;
}

/* Мобильная адаптивность */
@media (max-width: 1200px) {
  .guar-head { flex-direction: column; gap: 24px; }
  .guar-link { width: fit-content; }
}

@media (max-width: 768px) {
  .guar-quote { flex-direction: column; padding: 24px; }
  .guar-quote-photo { width: 80px; height: 80px; }
  .guar-mob-nav { display: flex; justify-content: flex-end; margin-top: 0; margin-bottom: 12px; }
  .guar-grid {
    display: flex; overflow-x: auto; gap: 16px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-top: 0;
  }
  .guar-grid::-webkit-scrollbar { display: none; }
  .guar-grid .guar-card { flex: 0 0 100%; scroll-snap-align: start; }
  .guar-head { flex-direction: column; margin-bottom: 24px; }
  .guar-link { width: 100%; justify-content: center; }
}

.g-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }

.g-quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  position: relative;
}
.g-quote::before {
  content: '\201C';
  position: absolute; top: 16px; left: 22px;
  font-size: 56px; line-height: 1; color: var(--blue-mid);
  font-family: Georgia, serif; pointer-events: none;
}
.g-quote-text {
  font-size: 15px; color: var(--navy); line-height: 1.75;
  font-style: italic; padding-top: 24px; margin-bottom: 20px;
}
.g-quote-person {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.g-quote-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; object-position: 50% 8%;
  border: 2px solid var(--blue-mid); flex-shrink: 0;
}
.g-quote-name {
  font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3;
}
.g-quote-role {
  font-size: 12px; color: var(--muted); margin-top: 2px;
}

.g-list { display: flex; flex-direction: column; }
.g-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.g-item:first-child { border-top: 1px solid var(--border); }
.g-ico { width: 36px; height: 36px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.g-item h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.g-item p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.g-link {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  border-bottom: 1px solid var(--blue-mid);
}
.g-link:hover { border-color: var(--blue); }

/* CTA sidebar box */
.g-box {
  background: var(--blue); border-radius: 8px; padding: 32px 28px;
  position: sticky; top: 90px; overflow: hidden; align-self: start;
}
.g-box-title {
  font-size: 20px; font-weight: 800; color: var(--white);
  line-height: 1.3; letter-spacing: -.3px; margin-bottom: 24px;
}
.g-list-w { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.g-check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.5;
}
.g-check-svg { width: 16px; height: 16px; color: rgba(255,255,255,.9); flex-shrink: 0; margin-top: 2px; }
.g-box .btn-gold { width: 100%; background: white; color: var(--blue); }
.g-box .btn-gold:hover { background: var(--blue-light); }

/* ── CTA BLOCK ──────────────────────── */
.cta-sec { background: transparent; padding: 40px 0; }
.cta-sec .wrap {
  background: linear-gradient(135deg, #EEF0FF 0%, #D8DEFF 100%);
  border-radius: 24px;
  padding: 72px 80px;
}
.cta-grid { display: grid; grid-template-columns: 1fr 520px; gap: 80px; align-items: center; }

.cta-title { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -.8px; line-height: 1.18; margin-bottom: 16px; }
.cta-sub { font-size: 15px; color: var(--text); line-height: 1.5; margin-bottom: 20px; }

.cta-list { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.cta-list li { font-size: 15px; color: var(--navy); line-height: 1.5; }

.cta-expert { display: flex; align-items: center; gap: 14px; }
.cta-expert-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 10%; flex-shrink: 0; }
.cta-expert-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.cta-expert-role { font-size: 13px; color: var(--muted); }

.cta-phones { display: flex; flex-direction: column; gap: 4px; }
.cta-phones span { font-size: 12px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.cta-phones a { font-size: 18px; font-weight: 700; color: var(--navy); }
.cta-phones a:hover { color: var(--blue); }
.cta-phones-form { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 16px; text-align: center; }
.cta-phones-form .cta-phones { align-items: center; }
.cta-phones-form a { font-size: 16px; }

.cta-form {
  background: var(--white); border-radius: 8px; padding: 36px 32px; position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
}
.cta-form-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.cta-form .fi-label { color: var(--muted); }
.cta-form .fi-input { background: var(--cream); border-color: var(--border); color: var(--navy); }
.cta-form .fi-input::placeholder { color: #B0B5C0; }
.cta-form .fi-input:focus { border-color: var(--blue); background: white; }
.cta-form .btn-gold { width: 100%; margin-top: 4px; }
.cta-form-agree {
  margin-top: 12px; font-size: 12px; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.cta-form-messenj {
  margin-top: 16px; font-size: 13px; color: var(--muted);
  text-align: center;
}

/* ── VIDEO ──────────────────────────── */
.vtabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.vtab {
  padding: 13px 28px; font-size: 14px; font-weight: 500;
  color: var(--muted); border: none; background: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: all .2s; margin-bottom: -1px;
}
.vtab.active { color: var(--blue); border-color: var(--blue); }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(91,108,249,.12); }

.vthumb {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, var(--blue-light), var(--blue-mid));
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.play {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(91,108,249,.4);
  background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.vthumb-vk { background: linear-gradient(145deg, #1a2040, #2d3a6b); }
.vthumb:hover .play { background: var(--blue); border-color: var(--blue); }
.play svg { width: 16px; height: 16px; fill: var(--blue); margin-left: 3px; transition: fill .2s; }
.vthumb:hover .play svg { fill: white; }

.vinfo { padding: 18px 20px; }
.vname-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vname { font-size: 15px; font-weight: 700; color: var(--navy); }
.vbadge {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 20px; padding: 3px 10px; flex-shrink: 0;
}
.vmeta { display: flex; flex-direction: column; gap: 6px; }
.vmeta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
}
.vmeta-item svg { color: var(--blue); flex-shrink: 0; }
.vmeta-item b { color: var(--navy); font-weight: 600; }

/* ── BENEFITS ───────────────────────── */
/* Мобильные кнопки листания (скрыты на десктопе) */
.mob-nav { display: none; gap: 8px; margin-top: 14px; margin-bottom: 16px; justify-content: flex-end; }

/* ── BENEFITS ───────────────────────── */
.bwork-grid {
  display: grid; grid-template-columns: 460px 1fr; gap: 28px 44px;
  grid-template-areas: "photo list" "note list";
  align-items: start; margin-bottom: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; box-shadow: 0 4px 28px rgba(15,23,42,.05);
}
.bwork-photo {
  grid-area: photo;
  border-radius: 14px; overflow: hidden; aspect-ratio: 16/9;
  position: relative;
}
.bwork-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.bwork-photo-zoom {
  position: absolute; bottom: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.15s;
  pointer-events: none;
}
.bwork-photo:hover .bwork-photo-zoom { background: #fff; transform: scale(1.08); }

/* Photo lightbox */
.photo-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
}
.photo-lightbox.open { display: flex; }
.photo-lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  object-fit: contain;
}
.photo-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 50%; cursor: pointer;
  color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.photo-lightbox-close:hover { background: rgba(255,255,255,0.22); }
.bwork-note { grid-area: note; }
.longread-sm { margin-top: 0; padding: 14px 18px; font-size: 13px; line-height: 1.5; }
.longread-sm::before { font-size: 16px; }
.bwork-list { grid-area: list; display: flex; flex-direction: column; gap: 16px; }
.bwork-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.bwork-item:last-child { padding-bottom: 0; border-bottom: none; }
.bwork-n {
  flex-shrink: 0; font-size: 19px; font-weight: 900; letter-spacing: -.5px;
  color: var(--blue-mid); line-height: 1.55; min-width: 24px;
}
.bwork-item p { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.55; margin: 0; }
.bwork-light { font-weight: 400; opacity: 0.65; }

.longread {
  margin-top: 24px; padding: 20px 28px;
  background: linear-gradient(135deg, var(--blue) 0%, #4338CA 100%); border-radius: 12px;
  font-size: 15px; color: rgba(255,255,255,.92); line-height: 1.7;
  display: flex; align-items: center; gap: 16px;
}
.longread::before {
  content: '★'; font-size: 20px; color: #fff; flex-shrink: 0;
}

/* ── TEAM ───────────────────────────── */
.sec-team { background: var(--cream); }
.sec-team .sec-head { margin-bottom: 28px; }
.team-slider-wrap { position: relative; }
.team-slider-viewport { overflow: hidden; flex: 1; }
.team-grid {
  display: flex;
  gap: 24px;
  transition: transform .35s ease;
  will-change: transform;
}
.tcard { flex: 0 0 calc((100% - 48px) / 3); }
.tcard {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91,108,249,.12);
}
.tphoto {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--blue-light);
}
.tphoto > img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  display: block;
  transition: transform .4s ease;
}
.tcard:hover .tphoto > img { transform: scale(1.03); }

.tdiplom-wrap {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 100px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.tdiplom-wrap:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tdiplom-wrap:hover .tdiplom-zoom { opacity: 1; }
.tdiplom { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.tdiplom-zoom {
  position: absolute; inset: 0 0 22px 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.32);
  opacity: 0; transition: opacity .2s;
}
.tdiplom-zoom svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.tdiplom-label {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); text-align: center;
  padding: 5px 4px;
  background: white;
  border-top: 1px solid var(--border);
}

.tinfo { padding: 18px 20px 20px; }
.tname { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.trole { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tphoto-nophoto { background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%); display: flex; align-items: center; justify-content: center; }
.tphoto-initials { font-size: 48px; font-weight: 800; color: var(--blue); opacity: .35; letter-spacing: -2px; user-select: none; }

/* Диплом-модалка */
#modal-diplom { display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.82); z-index: 1100; opacity: 1 !important; pointer-events: all !important; }
#modal-diplom.active { display: flex; }
.diplom-box { position: relative; background: #1a1a2e; border-radius: 16px; padding: 16px; max-width: 90vw; max-height: 92vh; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.diplom-zoom-bar { display: flex; align-items: center; gap: 8px; justify-content: center; }
.dzoom-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.dzoom-btn:hover { background: rgba(255,255,255,.18); }
.dzoom-val { font-size: 13px; color: rgba(255,255,255,.6); min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.diplom-img-wrap { overflow: hidden; border-radius: 8px; max-height: 80vh; display: flex; align-items: center; justify-content: center; background: #111; }
.diplom-img-wrap img { max-width: 75vw; max-height: 78vh; display: block; transform-origin: center center; transition: transform .15s ease; user-select: none; }
.diplom-box .modal-close { position: absolute; top: 8px; right: 8px; }


@media (max-width: 768px) {
  .tcard { flex: 0 0 calc((100% - 16px) / 2); }
  .team-grid { gap: 16px; }
  .tdiplom-wrap { width: 80px; }
}

/* ── QUIZ ───────────────────────────── */
#quiz { background: #fff; }
.quiz-card {
  background: var(--blue);
  border-radius: 20px; box-shadow: 0 12px 48px rgba(91,108,249,.25); border: none; overflow: hidden;
}
.quiz-grid { display: grid; grid-template-columns: 1fr 280px; align-items: stretch; }
.quiz-grid.full { grid-template-columns: 1fr; }

.quiz-box { padding: 44px; }
.quiz-steps { display: none; }
.quiz-progress-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  background: rgba(255,255,255,.15); border-radius: 99px;
  padding: 8px 16px;
}
.quiz-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,.3); border-radius: 99px; overflow: hidden; }
.quiz-progress-fill {
  height: 100%; border-radius: 99px;
  background: repeating-linear-gradient(
    60deg,
    rgba(255,255,255,1) 0px,
    rgba(255,255,255,1) 10px,
    rgba(255,255,255,0.55) 10px,
    rgba(255,255,255,0.55) 20px
  );
  background-size: 28px 100%;
  animation: zebraMove 1s linear infinite;
  transition: width 0.4s cubic-bezier(.25,.46,.45,.94);
}
@keyframes zebraMove {
  from { background-position: 0 0; }
  to   { background-position: 28px 0; }
}
.quiz-progress-pct { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; min-width: 36px; text-align: right; }

/* Для светлого квиза (открытый на странице) */
.quiz-box:not(.quiz-card .quiz-box) .quiz-progress-wrap {
  background: var(--blue-light);
}
.quiz-box:not(.quiz-card .quiz-box) .quiz-progress-bar { background: var(--border); }
.quiz-box:not(.quiz-card .quiz-box) .quiz-progress-fill { background: var(--blue); }
.quiz-box:not(.quiz-card .quiz-box) .quiz-progress-pct { color: var(--blue); }
.qsdot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--border); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
  flex-shrink: 0; transition: all .3s;
}
.qsdot.active { border-color: var(--blue); background: var(--blue); color: white; }
.qsdot.done { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.qsline { flex: 1; height: 2px; background: var(--border); transition: background .3s; }
.qsline.done { background: var(--blue); }

/* Модальный квиз - сайдбар (точная копия .quiz-aside) */
.mq-aside {
  background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.15);
  padding: 40px 28px; border-radius: 0 16px 16px 0;
}
.mq-aside-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 12px; overflow: hidden;
  background: var(--blue-light);
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(91,108,249,.12);
  object-fit: cover; object-position: center 20%;
  display: block;
}
.mq-aside-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.mq-aside-role { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.4; }
.mq-aside-note {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 14px 16px;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.mq-aside-note svg { flex-shrink: 0; margin-top: 1px; }

/* Мобильная адаптивность для модального квиза */
@media (max-width: 1024px) {
  .quiz-grid { grid-template-columns: 1fr !important; }
  .mq-aside { margin-top: 16px; }
}
@media (max-width: 600px) {
  .mq-aside { display: none; }
}

/* Модальный квиз - индикатор шагов */
.mq-qsdot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0; transition: all .3s;
  cursor: pointer;
}
.mq-qsdot.active {
  border-color: #fff; background: rgba(255,255,255,.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,.1);
}
.mq-qsline {
  width: 24px; height: 2.5px; background: rgba(255,255,255,.2);
  transition: background .3s; flex-shrink: 0;
}
.mq-qsline.done { background: #fff; }

.qstep-h {
  font-size: 14px; font-weight: 500;
  color: var(--muted); margin-bottom: 20px; line-height: 1.4;
}
.qquestion { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }

.qopts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.qopts-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.qopt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; background: var(--white); transition: all .15s;
  user-select: none;
}
.qopt:hover { border-color: var(--blue); background: var(--blue-light); }
.qopt.sel { border-color: var(--blue); background: var(--blue-light); box-shadow: 0 0 0 3px rgba(91,108,249,.1); }
.qmarker {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border);
  flex-shrink: 0; transition: all .15s; display: flex; align-items: center; justify-content: center;
}
.qopt.sel .qmarker { border-color: var(--blue); background: var(--blue); }
.qopt.sel .qmarker::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: white; }
.qmarker.sq { border-radius: 4px; }
.qopt.sel .qmarker.sq::after { content: ''; width: 10px; height: 8px; background: transparent;
  border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(1px,-1px); border-radius: 0; }
.qtext { font-size: 14px; font-weight: 500; color: var(--navy); }

/* Quiz redesign */
.qquestion {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 22px;
}
.q-multi-hint {
  font-size: 12px; font-weight: 500; color: var(--blue);
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: 20px; padding: 3px 10px; letter-spacing: 0;
}
.q-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: white; font-size: 15px; font-weight: 900;
  flex-shrink: 0;
}

/* Tile options (Q1) */
.qopts-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.qopts-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qopt.qopt-tile {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 10px;
  padding: 14px 14px; border-width: 1.5px; border-radius: 10px;
}
.qopt-tile-ico {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; transition: all .15s;
}
.qopt.sel .qopt-tile-ico { background: var(--blue); border-color: var(--blue); color: white; }
.qopt-tile-lbl { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Icon in regular opts (Q2, Q3) */
.qopt-ico {
  width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); transition: all .15s;
}
.qopt.sel .qopt-ico { background: var(--blue); border-color: var(--blue); color: white; }

.qnote { font-size: 13px; color: var(--muted); background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: 4px; padding: 10px 14px; margin-bottom: 20px; line-height: 1.5; }

.qnav { display: flex; gap: 10px; }
.qbtn {
  flex: 0 0 auto; padding: 13px 28px; background: var(--blue); color: white;
  font-size: 14px; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; font-family: inherit; transition: all .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.qbtn:hover { background: var(--blue2); }
.qbtn:disabled { opacity: .55; cursor: not-allowed; }
.qback {
  flex: 0 0 auto; padding: 14px 18px;
  background: var(--cream); color: var(--muted);
  font-size: 14px; font-weight: 600; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; font-family: inherit; transition: background .2s; display: flex; align-items: center; gap: 6px;
}
.qback:hover { background: var(--border); }

.qs { display: none; }
.qs.active { display: block; animation: qfade .25s ease; }
@keyframes qfade { from { opacity:0; transform: translateY(5px); } to { opacity:1; transform:none; } }

/* Q4 contact form */
/* Quiz step 4 */
.q4-bullets {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 18px;
}
.q4-bullets li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); line-height: 1.35;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 10px;
}
.q4-ico {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--blue);
}
.q4-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.qcomm-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.qcomm { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.q4-msgr-select { display: flex; gap: 8px; flex-wrap: nowrap; }
.q4-msgr-break { display: none; }
.q4-msgr-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 10px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.q4-msgr-btn[data-m="WhatsApp"] { background: #25D366; border-color: #25D366; }
.q4-msgr-btn[data-m="Telegram"] { background: #2AABEE; border-color: #2AABEE; }
.q4-msgr-btn[data-m="Мессенджер МАКС"] { background: linear-gradient(135deg,#44CCFF 0%,#5533EE 66%,#9933DD 100%); border-color: transparent; }
.q4-msgr-btn[data-m="Телефон"] { background: #1a1a2e; border-color: #1a1a2e; }
.q4-msgr-btn:hover { opacity: .85; transform: translateY(-1px); }
.q4-msgr-btn.sel { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 0 5px var(--blue); }
.q4-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) {
  .q4-bullets { grid-template-columns: 1fr; }
  .q4-fields { grid-template-columns: 1fr; }
}
.qnote2 { font-size: 11px; color: #B0B5C0; margin-top: 8px; line-height: 1.5; }
.fagree { margin-top: 10px; font-size: 11px; color: #B0B5C0; line-height: 1.5; display: flex; gap: 7px; align-items: flex-start; cursor: pointer; user-select: none; }
.fagree a { color: var(--blue); pointer-events: auto; }
.fagree-check { width: 14px; height: 14px; border: 1.5px solid var(--border); border-radius: 3px; background: transparent; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.fagree-check svg { opacity: 0; transition: opacity .15s; }
.fagree.checked .fagree-check { background: var(--blue); border-color: var(--blue); }
.fagree.checked .fagree-check svg { opacity: 1; }

/* Success */
.qsuccess { padding: 8px 0; }
.qsuccess-title { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 20px; }
.qsuccess-note { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.qsuccess-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.qsuccess-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.qsuccess-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* Quiz card — violet bg text overrides */
.quiz-card .qstep-h { color: rgba(255,255,255,.85); font-size: 16px; }
.quiz-card .qquestion { color: #fff; }
.quiz-card .q-num { background: rgba(255,255,255,.2); color: #fff; border-color: transparent; }
.quiz-card .qsdot:not(.active):not(.done) { border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.quiz-card .qsline { background: rgba(255,255,255,.25); }
.quiz-card .qnote { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.quiz-card .qsuccess-h, .quiz-card .qsuccess-sub, .quiz-card .qsuccess-note { color: #fff; }
.quiz-card .qsuccess-list li { color: rgba(255,255,255,.85); }
.quiz-card .qsuccess-list li::before { background: #fff; }
.quiz-card .qbtn { background: #fff; color: var(--blue); }
#qsubmit, #mqsubmit { width: 100%; font-size: 15px; }
.quiz-card .qbtn:hover { background: rgba(255,255,255,.9); }
.quiz-card .qbtn:disabled { opacity: .45; }
.quiz-card .qback { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.25); }
.quiz-card .qback:hover { background: rgba(255,255,255,.25); }
.quiz-card .fi-label { color: rgba(255,255,255,.75); }
.quiz-card .fi-input {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 8px;
}
.quiz-card .fi-input::placeholder { color: rgba(255,255,255,.5); }
.quiz-card .fi-input:focus { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.quiz-card .phone-flag {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-right: none;
  color: #fff; border-radius: 8px 0 0 8px;
}
.quiz-card .phone-flag:hover { background: rgba(255,255,255,.18); }
.quiz-card .phone-flag svg { opacity: .7; }
.quiz-card .phone-wrap .fi-input { border-radius: 0 8px 8px 0; }
.quiz-card .phone-wrap:focus-within .phone-flag { border-color: rgba(255,255,255,.5); }
.quiz-card .phone-wrap:focus-within .fi-input { border-color: rgba(255,255,255,.5); }
.quiz-card .qcomm { color: rgba(255,255,255,.75); }
.quiz-card .fagree { color: rgba(255,255,255,.6); }
.quiz-card .fagree a { color: rgba(255,255,255,.85); }
.quiz-card .fagree-check { border-color: rgba(255,255,255,.4); background: transparent; }
.quiz-card .fagree.checked .fagree-check { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }
.quiz-card .fagree.checked .fagree-check svg polyline { stroke: var(--blue); }
.quiz-card .qnote2 { color: rgba(255,255,255,.55); }
.quiz-card .q4-divider { border-color: rgba(255,255,255,.2); }
.quiz-card .q4-bullets li { color: rgba(255,255,255,.9); background: none; border-color: transparent; padding-left: 0; }
.quiz-card .q4-ico { color: rgba(255,255,255,.85); background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }

/* Messenger tiles in quiz aside */
@keyframes qa-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.qa-messengers { margin-top: 20px; }
.qa-msg-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.qa-msg-tiles { display: flex; gap: 10px; }
.qa-msg-tile {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 12px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12); cursor: pointer;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85);
  font-family: inherit; transition: all .2s;
}
.qa-msg-tile:nth-child(1) { animation: qa-float 3s ease-in-out infinite; }
.qa-msg-tile:nth-child(2) { animation: qa-float 3s ease-in-out infinite .4s; }
.qa-msg-tile:nth-child(3) { animation: qa-float 3s ease-in-out infinite .8s; }
.qa-msg-tile:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); animation: none; transform: translateY(-4px); }
.qa-msg-tile.sel { background: rgba(255,255,255,.9); color: var(--blue); border-color: #fff; animation: none; transform: scale(1.05); }
.qa-msg-tile.sel svg path, .qa-msg-tile.sel svg rect, .qa-msg-tile.sel svg circle { fill: var(--blue) !important; }
.qa-msg-tile svg { width: 28px; height: 28px; }

/* Quiz aside */
.quiz-aside {
  background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.15);
  padding: 40px 28px; position: relative;
}
.qa-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 12px; overflow: hidden;
  background: var(--blue-light);
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(91,108,249,.12);
}
.qa-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.qa-role { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.4; }
.qa-note {
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px; padding: 14px 16px;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.5;
  box-shadow: none;
  display: flex; gap: 10px; align-items: flex-start;
}

/* ── CONTACTS ───────────────────────── */
.contacts-grid { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 48px; align-items: stretch; }
.ci { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.ci-ico { width: 30px; height: 30px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.ci h5 { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ci p, .ci a { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.5; }
.ci a:hover { color: var(--blue); }
.ci-phones a { font-size: 17px; font-weight: 800; color: var(--navy); display: block; line-height: 1.4; }
.ci-phones a:hover { color: var(--blue); text-decoration: underline; }
.ci-msg { display: flex; gap: 8px; margin-top: 6px; }
.ci-msg-ico { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: box-shadow .2s, transform .15s; }
.ci-msg-ico:hover { box-shadow: 0 0 0 3px rgba(91,108,249,.3); transform: scale(1.12); }
.contact-photos { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.photobox { border-radius: 8px; background: var(--blue-light); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.photobox-sm { flex: 1; min-height: 0; }
.mapbox { border-radius: 8px; overflow: hidden; border: none; background: transparent; clip-path: inset(0 round 8px); min-height: 332px; }
.mapbox iframe { display: block; width: 100% !important; height: 100% !important; min-height: 332px; }

/* ── PHONE HINT ─────────────────────── */
.phone-hint {
  font-size: 13px; color: #e03b3b; margin-top: 6px;
  display: flex; align-items: center; gap: 5px;
}
.phone-hint::before { content: '!'; font-weight: 700; }
.phone-hint-input { border-color: #e03b3b !important; box-shadow: 0 0 0 2px rgba(224,59,59,.15) !important; }

/* ── FOOTER ─────────────────────────── */
.footer { background: var(--cream); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-logo img { height: 28px; width: auto; }
.footer-tagline { font-size: 13px; color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 6px; }
.footer-tagline::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--blue); flex-shrink:0; }
.footer-form-label { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.footer-form { display: flex; flex-direction: column; gap: 10px; }
.footer-form .btn-gold { margin-top: 4px; }

.footer-right { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-list li { font-size: 15px; color: var(--text); line-height: 1.5; }
.footer-col-list a { color: var(--text); transition: color .2s; }
.footer-col-list a:hover { color: var(--blue); }

.footer-social { display: flex; flex-direction: column; gap: 8px; }
.footer-soc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity .2s; text-decoration: none; color: #fff;
  width: 100%;
}
.footer-soc-btn:hover { opacity: .85; }
.footer-soc-wa { background: #25D366; }
.footer-soc-tg { background: #2AABEE; }
.footer-soc-vk { background: #0077FF; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--blue); }
.footer-oko-link { display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.footer-oko-link svg { fill: var(--muted); transition: fill .2s; }
.footer-oko-link:hover svg { fill: var(--blue); }

/* ── BURGER MENU ────────────────────── */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; padding: 8px; flex-shrink: 0;
  transition: border-color .2s;
}
.burger:hover { border-color: var(--blue); }
.burger span {
  display: block; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s, width .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mob-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: rgba(0,0,0,.3); backdrop-filter: blur(2px);
}
.mob-menu-overlay.show { display: block; }

.mob-menu {
  position: fixed; top: 0; right: 0; z-index: 160;
  width: 300px; height: 100dvh; background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.68,0,1.1);
  overflow-y: auto;
}
.mob-menu.open { transform: translateX(0); }

.mob-menu-inner {
  padding: 80px 24px 32px;
  display: flex; flex-direction: column; gap: 0;
}
.mob-menu-phones { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mob-menu-phones a { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.mob-menu-phones a:hover { color: var(--blue); }

.mob-menu-divider { height: 1px; background: var(--border); margin: 20px 0; }

.mob-menu-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.mob-menu-addr { font-size: 14px; color: var(--text); line-height: 1.6; }

.mob-menu-messengers { display: flex; flex-direction: column; gap: 10px; }
.mob-msg-ico {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #fff;
  text-decoration: none; transition: opacity .15s;
}
.mob-msg-ico:hover { opacity: .88; }
.mob-msg-ico span { flex: 1; }
.mob-msg-wa { background: #25D366; }
.mob-msg-tg { background: #2AABEE; }
.mob-msg-max { background: linear-gradient(135deg, #44CCFF 0%, #5533EE 66%, #9933DD 100%); }

.hdr-mob-phone { display: none; }

@media (max-width: 900px) {
  .burger { display: flex; }
  .hdr-contacts { display: none; }
  .hdr-mob-phone {
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--navy);
    white-space: nowrap; text-decoration: none; overflow: hidden;
  }
}
@media (max-width: 600px) {
  .mob-menu { width: 100%; }
}

/* ── RESPONSIVE ─────────────────────── */

/* Планшет широкий (1025px и ниже) */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .h2 { font-size: 34px; }
  .process-grid .p-card { flex: 0 0 300px; }
}

/* Планшет узкий (900px и ниже) */
@media (max-width: 900px) {
  .header-inner { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
  .hdr-address, .hdr-messengers { display: none; }
  .hdr-contacts { display: none; }
  .hdr-logo-desk { display: none; }
  .hdr-logo-mob { display: block; height: 36px; width: 36px; border-radius: 50%; }
  .hdr-tagline { display: none; }
  .hdr-mob-phone { margin-left: auto; font-size: 16px !important; font-weight: 700 !important; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-wrap { display: none; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn-gold { width: 100%; }
  .hero h1 { font-size: 34px; }
  .h2 { font-size: 28px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .proof-grid { grid-template-columns: 1fr; }
  .g-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-sec { padding: 36px 0; }
  .cta-sec .wrap { padding: 48px 32px; }

  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-aside { display: none; }

  .contacts-grid { grid-template-columns: 1fr; }

  .bwork-grid {
    grid-template-columns: 1fr; grid-template-areas: "photo" "list" "note";
    padding: 20px; gap: 20px; border-radius: 16px;
  }
  .bwork-photo { aspect-ratio: 16/10; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .rev-panel.active { grid-template-columns: 1fr 1fr; }
  .case-card { flex: 0 0 280px; }
  .cases-head { flex-direction: column; align-items: flex-start; }
}

/* Мобильный (768px и ниже) */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 48px 0; }
  #process { padding-bottom: 0; }
  #guarantees { padding-top: 24px; }
  .h2 { font-size: 26px; letter-spacing: -0.8px; }

  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 48px 0 36px;
  }
  .hero h1 { font-size: 30px; letter-spacing: -1px; }
  .hero-img-wrap { display: none; }

  .stats { padding: 0 0 40px; }
  .stats-card { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .s-item {
    padding: 20px 18px;
    background: linear-gradient(135deg, #3d4fd4 0%, var(--blue) 40%, #818CF8 100%);
    border-radius: 16px;
  }
  .s-item + .s-item::before { display: none; }
  .s-item:nth-child(3), .s-item:nth-child(4) { border-top: none; }
  .s-item-icon { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 12px; }
  .s-val { font-size: 30px; letter-spacing: -1.5px; }
  .s-lbl { font-size: 11.5px; max-width: 120px; }

  .mob-nav { display: flex; }
  .cases-nav { display: none; }
  #team .bslider-head { display: none; }
  #process-nav { display: none; }
  #cases, #process { overflow: visible; }
  .process-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
  .process-grid::-webkit-scrollbar { display: none; }
  .process-grid .p-card { flex: 0 0 80vw; scroll-snap-align: start; }

  .cases-scroll { padding-bottom: 8px; }

  .cta-grid { grid-template-columns: 1fr; }
  .cta-sec { padding: 32px 0; }
  .cta-sec .wrap { padding: 36px 20px; border-radius: 16px; }
  .cta-title { font-size: 24px; }
  .cta-phones-form { text-align: center; }
  .cta-phones-form .cta-phones { align-items: center; }

  .contacts-grid { grid-template-columns: 1fr; }
  .contact-photos { height: auto; }
  .photobox-sm { min-height: 200px; flex: none; height: 200px; }
  .mapbox { min-height: 250px; }

  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-aside { display: none; }
  .quiz-box { padding: 28px 20px; }
  .qopts-tiles { grid-template-columns: 1fr !important; }
  .qopts-tiles-4 { grid-template-columns: 1fr !important; }

  .qstep-h { font-size: 18px; }

  .team-slider-viewport { overflow: visible; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .team-slider-viewport::-webkit-scrollbar { display: none; }
  .team-grid { transform: none !important; }
  .tcard { flex: 0 0 100%; scroll-snap-align: start; }

  .proof-grid { grid-template-columns: 1fr; }

  .g-grid { grid-template-columns: 1fr; }

  .bslider-scroll .bcard { flex: 0 0 82vw; min-height: 260px; padding: 28px 24px; }
  .bcard-n { font-size: 96px; letter-spacing: -4px; margin-bottom: 20px; }
  .vgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
  .vgrid::-webkit-scrollbar { display: none; }
  .vgrid .vcard { flex: 0 0 80vw; scroll-snap-align: start; }

  .rev-panel.active { display: flex !important; grid-template-columns: unset; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding-bottom: 0; }
  .rev-panel.active::-webkit-scrollbar { display: none; }
  .rev-panel.active .rev-card { flex: 0 0 80vw; scroll-snap-align: start; min-width: 0; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Минимальный размер текста 15px */
  p, li, .lead, .s-lbl, .bcard p, .p-card p, .guar-card-text,
  .rev-text, .rev-name, .rev-date, .case-row, .trole, .tname,
  .footer-link, .footer-copy, .hero-sub, .hero-note,
  .qopt-tile-lbl, .qnote, .qcomm, .ci, .longread,
  .guar-card-title, .case-sum, .contact-val, .contact-lbl,
  .btn-callback, .qtext, .qopt-tile-lbl, .qback, .qstep-h,
  .rev-text, .footer-tagline, .sticky-bar-text, .cases-hint,
  .case-doc-btn, .p-card p, .mq-aside-role, .qa-role,
  .hero-note, .hero-card-alt span, .trole, .longread { font-size: 15px !important; }
}

/* Малый мобильный (600px и ниже) */
@media (max-width: 600px) {
  .hdr-tagline { display: none; }
  .hdr-phones a { font-size: 14px; }
  .sticky-bar {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
  }
  .sticky-bar-text { font-size: 13px; text-align: center; }
  .sticky-bar .btn-gold { width: 100%; justify-content: center; padding: 14px; }
  .exit-modal { grid-template-columns: 1fr; }
  .exit-img { display: none; }
  .exit-visual { display: none; }
  .exit-body { padding: 28px 24px; }
}

/* ── CASES SLIDER ───────────────────── */
.cases-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.cases-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.cases-dots { display: flex; gap: 6px; }
.cases-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background .2s; }
.cases-dot.act { background: var(--blue); }
.cases-nav { display: flex; gap: 8px; }
#cases .cases-nav { display: none; }
.cases-arr {
  width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: all .2s; flex-shrink: 0;
}
.cases-arr svg { width: 24px; height: 20px; }
.cases-arr:hover { background: var(--blue); border-color: var(--blue); color: white; }
.cases-arr:disabled { opacity: .3; cursor: not-allowed; }
.cases-arr:disabled:hover { background: var(--white); border-color: var(--border); color: var(--navy); }

@keyframes arrPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,108,249,.4); }
  50% { box-shadow: 0 0 0 8px rgba(91,108,249,0); }
}
.cases-arr-next:not(:disabled) { animation: arrPulse 2s ease-in-out infinite; }
.cases-arr-next:not(:disabled):hover { animation: none; }
.cases-scroll { display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cases-scroll::-webkit-scrollbar { display: none; }

/* Swipe hint */
.swipe-hint {
  display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 500;
}
.swipe-hint-dots {
  display: flex; gap: 4px; align-items: center;
}
.swipe-hint-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
  animation: swipeHint 1.8s ease-in-out infinite;
}
.swipe-hint-dot:nth-child(2) { animation-delay: .2s; }
.swipe-hint-dot:nth-child(3) { animation-delay: .4s; }
@keyframes swipeHint {
  0%, 100% { background: var(--border); transform: scale(1); }
  50% { background: var(--blue); transform: scale(1.4); }
}
.swipe-hint svg { animation: swipeArrow 1.8s ease-in-out infinite; }
@keyframes swipeArrow {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(5px); opacity: 1; }
}
.case-card { flex: 0 0 340px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 2px 16px rgba(0,0,0,.05); overflow: hidden; background: var(--white); scroll-snap-align: start; display: flex; flex-direction: column; }
.case-preview { position: relative; height: 200px; cursor: pointer; overflow: hidden; flex-shrink: 0; }
.case-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .35s; }
.case-preview:hover img { transform: scale(1.03); }
.case-preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,19,43,.6) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: center; padding: 14px;
}
.case-preview-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 20px; width: fit-content;
}
.case-preview-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px;
  width: fit-content; transition: background .2s;
}
.case-preview:hover .case-preview-btn { background: #4a5ae0; }
.case-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.case-sum { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.case-sum span { display: block; font-size: 21px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; margin-top: 2px; }
.case-rows { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; margin-bottom: 18px; flex: 1; }
.case-row { font-size: 15px; color: var(--muted); line-height: 1.5; }
.case-row b { color: var(--text); font-weight: 500; }
.case-actions { display: flex; flex-direction: column; gap: 8px; }
.case-actions .btn-gold { width: 100%; }
.case-doc-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%;
  border: 1.5px solid var(--border); background: transparent; color: var(--navy);
  font-size: 12px; font-weight: 600; padding: 9px 14px; border-radius: 8px;
  cursor: pointer; transition: border-color .2s, color .2s; white-space: nowrap;
}
.case-doc-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── REVIEWS ────────────────────────── */
.rev-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 36px; flex-wrap: wrap; }
.rev-tab { padding: 12px 22px; font-size: 14px; font-weight: 600; color: var(--muted); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; white-space: nowrap; }
.rev-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 768px) {
  .rev-tabs {
    flex-wrap: wrap; gap: 6px;
    border-bottom: none; padding-bottom: 0; margin-bottom: 20px;
  }
  .rev-tab {
    flex-shrink: 0; border-bottom: none;
    padding: 8px 12px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600;
    background: var(--cream); border: 1px solid var(--border);
    margin-bottom: 0;
  }
  .rev-tab.active {
    background: var(--blue); color: white;
    border-color: var(--blue);
  }
}
.rev-section { display: none; }
.rev-section.active { display: block; }
.rev-panel { display: none; }
.rev-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rev-panel-video.active { display: block; }
.rev-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.rev-stars { display: flex; gap: 1px; margin-bottom: 10px; font-size: 16px; color: #F59E0B; }
.rev-hs { background: linear-gradient(90deg, #F59E0B 50%, #D1D5DB 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.rev-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.rev-date { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.rev-text { font-size: 15px; color: var(--text); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ── STICKY BAR ─────────────────────── */
.sticky-bar {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  max-width: 420px;
  transform: translateX(-120%) rotate(-4deg); opacity: 0; pointer-events: none;
  transition: none;
}
.sticky-bar.show {
  transform: translateX(0) rotate(0deg); opacity: 1; pointer-events: all;
  animation: stickySlam .5s cubic-bezier(.18,.89,.32,1.28) both;
}
@keyframes stickySlam {
  0%   { transform: translateX(-120%) rotate(-6deg); opacity: 0; }
  60%  { transform: translateX(10px) rotate(1deg); opacity: 1; }
  80%  { transform: translateX(-4px) rotate(-.5deg); }
  100% { transform: translateX(0) rotate(0deg); opacity: 1; }
}
.sticky-bar-text { font-size: 13px; font-weight: 500; color: var(--navy); line-height: 1.4; flex: 1; }
.sticky-bar .btn-gold { white-space: nowrap; flex-shrink: 0; }
.sticky-bar-btn { animation: pulse 2s ease-in-out 1s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,108,249,.7); }
  70%  { box-shadow: 0 0 0 10px rgba(91,108,249,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,108,249,0); }
}
.sticky-bar-close {
  position: absolute; top: 0; right: 0;
  transform: translate(50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff;
  background: #e5e8ff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #5B6CF9;
  padding: 0; flex-shrink: 0;
  transition: background .15s, transform .15s;
  z-index: 1;
}
.sticky-bar-close:hover { background: #c7ccff; transform: translate(50%, -50%) scale(1.15); }

/* ── ONLINE DOT ─────────────────────── */
.hdr-messengers span.hdr-online-label { display: inline-flex; align-items: center; gap: 6px; }
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: onlinePulse 2s ease-out infinite;
}
@keyframes onlinePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}


/* ── SCROLL TO TOP ──────────────────── */
.scroll-top {
  position: fixed; bottom: 80px; right: 28px; z-index: 300;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(91,108,249,.35);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, background .2s;
}
.scroll-top.show { opacity: 1; pointer-events: all; transform: none; }
.scroll-top:hover { background: var(--blue2); }
.sticky-bar-active .scroll-top { bottom: 160px; }

/* ── EXIT POPUP ─────────────────────── */
.exit-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; padding: 20px; }
.exit-overlay.show { opacity: 1; pointer-events: all; }
.exit-modal { background: #fff; border-radius: 20px; max-width: 840px; width: 100%; display: grid; grid-template-columns: 320px 1fr; overflow: hidden; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.3); }
.exit-close { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.07); border: none; cursor: pointer; color: var(--navy); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 10; }
.exit-close:hover { background: rgba(0,0,0,.14); }
.exit-visual { background: linear-gradient(160deg, #1a1d2e 0%, #0f1120 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 28px 20px; }
.exit-photo-wrap { position: relative; width: 75%; max-width: 200px; }
.exit-photo { width: 100%; display: block; object-fit: contain; border-radius: 16px; }
.exit-glass-card { position: absolute; top: 62%; left: 50%; transform: translate(-50%, -50%); width: calc(100% + 24px); background: rgba(10,12,28,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 16px; text-align: center; }
.exit-glass-val { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -0.5px; line-height: 1; margin-bottom: 3px; }
.exit-glass-lbl { font-size: 10px; color: rgba(255,255,255,.5); }
.exit-tg-icon { width: 64px; height: 64px; background: rgba(255,255,255,.18); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.exit-tg-name { font-size: 17px; font-weight: 800; color: white; margin-bottom: 4px; }
.exit-tg-handle { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.exit-tg-stats { display: flex; gap: 16px; margin-bottom: 24px; }
.exit-tg-stat { display: flex; flex-direction: column; gap: 2px; }
.exit-tg-stat span { font-size: 18px; font-weight: 900; color: white; }
.exit-tg-stat { font-size: 11px; color: rgba(255,255,255,.6); }
.exit-preview-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: auto; }
.exit-preview-card { background: rgba(255,255,255,.12); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: rgba(255,255,255,.9); line-height: 1.4; }
.exit-body { padding: 40px 36px; display: flex; flex-direction: column; }
.exit-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; align-self: flex-start; }
.exit-title { font-size: 24px; font-weight: 900; color: var(--navy); line-height: 1.25; margin-bottom: 10px; letter-spacing: -.5px; }
.exit-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.exit-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; padding: 0; }
.exit-bullets li { font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.exit-bullets li svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .exit-visual { display: none; }
  .exit-modal { grid-template-columns: 1fr; }
  .exit-body { padding: 28px 24px; }
}

/* ── SCROLL PROGRESS ────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue2) 60%, #a78bfa 100%);
  width: 0%; transition: width .08s linear;
  pointer-events: none;
}


/* ── FADE-IN SECTIONS ───────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.fade-in.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE FIXES ───────────────────── */

/* Секции — меньше отступы на мобиле */
@media (max-width: 768px) {
  .sec { padding: 36px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-kicker { font-size: 11px; margin-bottom: 10px; }

  /* Герой */
  .hero-inner { padding: 32px 0 24px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-checks { gap: 8px; margin: 16px 0 24px; }
  .hero-checks li { font-size: 13px; }
  .btn-primary { font-size: 14px; padding: 14px 24px; }
  .hero-note { font-size: 12px; }

  /* Мобильное фото героя */
  .hero-img-mob {
    display: block;
    width: 100%; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden;
    margin-bottom: 20px;
    max-height: none;
  }
  .hero-img-mob img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    display: block; border-radius: 16px;
  }

  /* Преимущества — яркие карточки с анимацией */
  .hero-bullets { gap: 8px; margin-bottom: 16px; }
  .hero-bullets li {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 15px; font-weight: 400; color: var(--navy);
    box-shadow: none;
    border-left: none;
  }
  .hero-bullets li:nth-child(1) { animation-delay: .05s; }
  .hero-bullets li:nth-child(2) { animation-delay: .15s; }
  .hero-bullets li:nth-child(3) { animation-delay: .25s; }
  .hero-bullets li:nth-child(4) { animation-delay: .35s; }
  .hero-bullets li::before {
    background-color: var(--blue);
    border-color: var(--blue);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1 4 3.5 6.5 9 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    flex-shrink: 0;
  }

  /* Горизонтальные скроллы — добавить боковые отступы у первой/последней карточки */
  .cases-scroll { padding: 4px 0 20px; }
  .bslider-scroll { padding: 0 0 8px; }
  .process-grid { padding: 0 0 8px; }
  .vgrid { padding: 0 16px 8px; }

  /* Кейсы */
  .case-card { flex: 0 0 80vw; }

  /* Лонгрид-пилл */
  .longread { font-size: 13px; padding: 14px 18px; }

  /* CTA */
  .cta-title { font-size: 22px; }
  .cta-sub { font-size: 14px; }

  /* Гарантии */
  .g-item { gap: 12px; }
  .g-ico { width: 44px; height: 44px; flex-shrink: 0; }

  /* Квиз */
  .quiz-box { padding: 24px 16px; border-radius: 16px; }
  .qstep-h { font-size: 16px; line-height: 1.4; }
  .qopts-tiles .qopt, .qopts-tiles-4 .qopt { font-size: 13px; padding: 10px 10px; }
  .q4-bullets { gap: 6px; }
  .qcomm-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .q4-msgr-select { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .q4-msgr-break { display: none; }
  .q4-msgr-btn, .mq4-msgr-btn { font-size: 12px; padding: 8px 10px; justify-content: center; width: 100%; }
  .q4-fields { gap: 8px; }
  .fi-input { font-size: 16px; } /* предотвращает zoom на iOS */

  /* Отзывы — табы */
  .rev-tabs { padding-bottom: 4px; }

  /* Команда */
  .team-slider-viewport { padding: 0 16px; }

  /* Контакты */
  .ci { font-size: 14px; }
  .ci h5 { font-size: 11px; }

  /* Футер */
  .footer-grid { gap: 20px; }
  .footer-logo-wrap { margin-bottom: 0; }
  .footer-links { gap: 10px; }
  .footer-link { font-size: 13px; }
}

/* Мелкий мобильный (390px и ниже) */
@media (max-width: 430px) {
  .hero h1 { font-size: 26px; letter-spacing: -0.8px; }
  .h2 { font-size: 22px; letter-spacing: -0.6px; }
  .sec { padding: 32px 0; }

  /* Статы — компактнее */
  .s-val { font-size: 26px; }
  .s-lbl { font-size: 11px; }

  /* Кейсы */
  .case-card { flex: 0 0 85vw; }

  /* Квиз */
  .quiz-box { padding: 20px 14px; }
  .qstep-h { font-size: 15px; }
  .q4-msgr-btn { font-size: 12px; padding: 6px 8px; gap: 5px; }
  .qbtn { font-size: 14px; padding: 13px 16px; flex: 1; }

  /* Стрелки слайдеров — крупнее на мобилке */
  .cases-arr { width: 52px; height: 52px; }
  .mob-nav button { width: 52px; height: 52px; }

  /* Скролл вверх — выше sticky bar */
  .scroll-top { bottom: 90px; right: 16px; width: 52px; height: 52px; }
}

/* ── GRAIN TEXTURE ──────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .03;
  background-image: var(--noise-url, none);
  background-size: 256px 256px;
}
