/* ===== Бренд-палитра «Врост» =====
   Цвета взяты из логотипа: красный ромб (#980000) + графитовый текст (#303038).
   Меняются ТОЛЬКО эти переменные. */
:root {
  --brand:        #A6110F;   /* фирменный красный (стрелка/ромб) */
  --brand-dark:   #7E0B0C;   /* тёмный акцент/hover (контур ромба) */
  --brand-soft:   #FBEAEA;   /* светлая красная подложка */
  --ink:          #2B2E36;   /* графитовый текст (из логотипа) */
  --ink-2:        #5A616D;   /* вторичный текст */
  --line:         #e6e3e4;   /* границы */
  --bg:           #ffffff;
  --bg-2:         #f6f8fb;   /* секции-чередование */
  --white:        #ffffff;
  --radius:       16px;
  --shadow:       0 10px 30px rgba(16, 32, 45, .08);
  --shadow-sm:    0 4px 14px rgba(16, 32, 45, .06);
  --maxw:         1160px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 10px; }
.section-lead { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 0 0 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--block { width: 100%; justify-content: center; }

/* ===== Webformat-style компоненты ===== */
:root { --ink-950: #16181e; --ink-900: #1d2029; }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.btn--arrow::after { content: "→"; font-weight: 700; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.18); color: #e9edf3; background: rgba(255,255,255,.04);
}

/* ===== Dark Hero ===== */
.hero--dark { background: var(--ink-950); color: #fff; padding: 84px 0 0; position: relative; overflow: hidden; }
.hero--dark::after {
  content: ""; position: absolute; top: -10%; right: -5%; width: 55%; height: 90%;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(166,17,15,.10) 26px 27px),
    radial-gradient(60% 60% at 80% 20%, rgba(166,17,15,.22) 0%, transparent 65%);
  transform: skewX(-8deg); pointer-events: none;
}
.hero--dark .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #cdd4dd;
}
.hero-badge b { color: #fff; font-weight: 700; }
.hero-badge .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 14px; }
.hero--dark h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; max-width: 12ch; margin: 0 0 22px; }
.hero--dark h1 .ac { color: var(--brand); position: relative; }
.hero--dark h1 .cursor { color: var(--brand); font-weight: 400; animation: vr-blink 1.05s step-end infinite; }
@keyframes vr-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero--dark h1 .ac { animation: vr-rise .7s ease both; display: inline-block; }
@keyframes vr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hq-prog { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #ff6a5f; margin-bottom: 12px; }
.hq-agree { color: #9aa4af; font-size: 12px; display: block; margin-top: 10px; }
.hq-agree a { color: #cdd4dd; text-decoration: underline; }
.hero--dark .lead { font-size: 19px; color: #b7bec8; max-width: 620px; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.12); }
.metric { padding: 30px 0 40px; position: relative; }
.metric + .metric { padding-left: 28px; }
.metric + .metric::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 40px; width: 1px; background: rgba(255,255,255,.12); }
.metric b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.metric span { display: block; margin-top: 10px; font-size: 14px; color: #9aa3ae; }

/* ===== 4 направления (webformat-style) ===== */
.dirs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dir {
  display: flex; flex-direction: column; padding: 26px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--white); transition: .2s;
}
.dir:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dir--dark { background: var(--ink-950); border-color: transparent; color: #fff; }
.dir__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; margin-bottom: 22px; }
.dir--dark .dir__icon { background: var(--brand); color: #fff; }
.dir__num { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.dir--dark .dir__num { color: #8b93a0; }
.dir h3 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.dir > p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.dir--dark > p { color: #aab2bd; }
.dir ul { list-style: none; padding: 0; margin: 0 0 20px; }
.dir li { position: relative; padding: 6px 0 6px 18px; font-size: 14px; }
.dir li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.dir__more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--brand); }
.dir--dark .dir__more { color: #fff; }
.dir__more:hover { color: var(--brand-dark); }

@media (max-width: 980px) {
  .dirs-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3)::before, .metric:nth-child(2)::before { display: none; }
}
@media (max-width: 560px) {
  .dirs-grid, .metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; }
  .metric + .metric::before { display: none; }
}

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark-img { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text { font-weight: 800; font-size: 23px; letter-spacing: -.01em; color: var(--ink); text-transform: uppercase; }
.logo__text em { font-style: normal; font-weight: 500; font-size: 10.5px; letter-spacing: .01em; text-transform: none; color: var(--brand); margin-top: 3px; }
.logo__name { line-height: 1; }
.logo__24 { font-style: normal; color: var(--brand); }
.nav { display: flex; gap: 24px; margin-left: 8px; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--brand-dark); }
.header__spacer { margin-left: auto; }
.header__phone { font-weight: 700; font-size: 17px; white-space: nowrap; }
.header__phone span { color: var(--ink-2); font-weight: 500; font-size: 12px; display: block; }
.header__cta { padding: 10px 18px; font-size: 15px; border-radius: 10px; }
@media (max-width: 1280px) { .header__cta { display: none; } }

/* Соцсети-иконки (шапка/подвал) */
.header__social { display: none; gap: 8px; align-items: center; }
.hs-tel, .hs-tg, .hs-wa, .hs-max { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; text-decoration: none; }
.hs-tel { background: var(--ink-950); font-size: 18px; }
.hs-tg { background: #229ED9; } .hs-wa { background: #25D366; }
.hs-max { background: transparent; padding: 0; overflow: hidden; }
.hs-max img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.footer__social { display: flex; gap: 8px; margin-left: 6px; }
.footer__social a { width: 34px; height: 34px; }
@media (max-width: 900px) {
  .header__phone { display: none; }
  .header__social { display: flex; }
}

/* ===== Мега-меню «Услуги» ===== */
.nav-drop { position: relative; }
.nav-drop__toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { font-style: normal; font-size: 11px; transition: transform .2s; }
.nav-drop:hover .caret { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(920px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 24px;
  opacity: 0; visibility: hidden; transition: .18s; z-index: 60;
}
.nav-drop:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__h { font-weight: 800; font-size: 15px; color: var(--ink); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-soft); }
.mega__col a:not(.mega__h) { font-size: 13.5px; color: var(--ink-2); padding: 5px 0; line-height: 1.3; }
.mega__col a:not(.mega__h):hover { color: var(--brand-dark); }
.nav-cases { display: inline-flex; align-items: center; gap: 7px; }
.nav-badge { font-size: 10.5px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

/* ===== Отзывы ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.review__stars { color: var(--brand); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review__text { font-size: 15px; color: var(--ink); margin: 0 0 20px; line-height: 1.55; }
.review__author { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.review__who b { display: block; font-size: 15px; }
.review__who span { font-size: 13px; color: var(--ink-2); }

/* ===== Попап заявки ===== */
.lead-modal { position: fixed; inset: 0; background: rgba(16,24,30,.62); display: grid; place-items: center; z-index: 400; padding: 20px; }
.lead-card { width: min(560px, 100%); background: #fff; border-radius: 20px; padding: 32px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4); max-height: 92vh; overflow-y: auto; }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lm-field { display: block; margin-bottom: 4px; }
.lm-field > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.lm-field > span i { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.lm-hint { font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 8px; }
.lm-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--ink-2); margin: 8px 0 4px; line-height: 1.4; }
.lm-consent input { margin-top: 2px; flex-shrink: 0; }
.lm-consent span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lm-consent a { color: var(--brand-dark); text-decoration: underline; }
@media (max-width: 560px) { .lm-row { grid-template-columns: 1fr; } }
.lead-card h3 { font-size: 24px; margin: 0 0 6px; }
.lead-modal__sub { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
.lead-modal__form { display: flex; flex-direction: column; gap: 12px; }
.lead-modal__form input, .lead-modal__form textarea { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font: inherit; width: 100%; }
.lead-modal__form textarea { resize: vertical; }
.lm-consent { width: 100%; }
.lm-consent span { flex: 1; }
.lead-modal__form input:focus, .lead-modal__form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.lead-modal__agree { color: var(--ink-2); font-size: 12px; }
.lead-modal__agree a { color: var(--brand-dark); text-decoration: underline; }

/* ===== Блог ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: .2s; }
.post-card__cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--ink-950); }
.post-card__body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-cover { width: 100%; border-radius: 16px; margin: 8px 0 26px; display: block; }
.post-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 12px; }
.post-card h3 { font-size: 19px; margin: 0 0 10px; line-height: 1.25; }
.post-card p { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.post-card__more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--brand); }
.post__tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-dark); margin-bottom: 12px; }
.post__lead { font-size: 19px; color: var(--ink); font-weight: 500; margin: 0 0 24px; }
.prose h2 { font-size: 24px; margin: 30px 0 12px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.prose ul li { margin: 7px 0; }

@media (max-width: 900px) {
  .mega { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
}
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, var(--brand-soft) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, #f2f3f5 0%, transparent 60%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); }
.hero p.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 30px; max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 44px; }
.stat b { font-size: 30px; display: block; color: var(--ink); }
.stat span { color: var(--ink-2); font-size: 14px; }
.hero__card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 28px;
}
.hero__card h3 { font-size: 18px; }
.hero__card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.hero__card li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.hero__card li:last-child { border-bottom: 0; }
.hero__card li::before { content: "✓"; color: var(--brand); font-weight: 800; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; transition: .2s;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 21px; }
.card > p { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { padding: 7px 0 7px 24px; position: relative; font-size: 15px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}

/* ===== Приложения (PWA) ===== */
.apps { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.apps__head { max-width: 760px; margin-bottom: 28px; }
.apps__head h3 { font-size: 24px; }
.apps__head p { color: var(--ink-2); font-size: 16px; margin: 0; }
.apps__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.app {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .2s;
}
.app:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.app__badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.app__info h4 { font-size: 20px; margin: 0 0 8px; }
.app__info > p { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.app__info ul { list-style: none; padding: 0; margin: 0; }
.app__info li { position: relative; padding: 6px 0 6px 22px; font-size: 14px; }
.app__info li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.app__shots { display: flex; gap: 10px; }
.app__shots img { width: 118px; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.app__placeholder {
  width: 140px; min-height: 250px; border-radius: 16px; border: 2px dashed #cbd2da;
  display: grid; place-items: center; text-align: center; color: var(--ink-2);
  font-size: 13px; font-weight: 600; background: var(--bg-2); padding: 12px;
}
.app__placeholder span { display: block; margin-top: 6px; font-weight: 400; color: #9aa4af; }

/* ===== Кейсы ===== */
.cases-strip { display: flex; gap: 40px; flex-wrap: wrap; margin: 0 0 40px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.cases-strip .stat b { font-size: 34px; color: var(--brand); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s;
}
.case:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.case__top { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.case__tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.case__svc { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.case__body { padding: 14px 24px 22px; }
.case__body h3 { font-size: 19px; margin: 0 0 8px; }
.case__body p { color: var(--ink-2); font-size: 14px; margin: 0; }
.case__metrics { display: flex; gap: 22px; padding: 18px 24px; background: var(--bg-2); border-top: 1px solid var(--line); margin-top: auto; }
.case__metrics div b { display: block; font-size: 26px; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.case__metrics div span { font-size: 12px; color: var(--ink-2); }

/* ===== Фильтр кейсов ===== */
.cases-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cf-btn { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: .15s; }
.cf-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.cf-btn.is-active { background: var(--ink-950); color: #fff; border-color: transparent; }
.case--link { text-decoration: none; color: inherit; }
.case--link:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.case__cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--ink-950); }
.case__pad { display: flex; flex-direction: column; flex: 1; }
.case-detail-cover { width: 100%; max-width: 900px; border-radius: 18px; margin: 8px 0 4px; display: block; }
.case-prose h2 { display: flex; align-items: baseline; gap: 12px; }
.case-num { color: var(--brand); font-weight: 800; font-size: .62em; letter-spacing: .04em; opacity: .9; }
.cgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cgal__item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: var(--ink-950); }
.cgal__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cgal__item:hover img { transform: scale(1.05); }
@media (max-width: 560px) { .cgal { grid-template-columns: repeat(2, 1fr); } }
/* Хаб отраслей Битрикс24 + фильтр */
.niche-filter { width: 100%; max-width: 620px; padding: 14px 18px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; font-size: 16px; background: #fff; }
.niche-filter:focus { outline: none; border-color: var(--brand); }
.niche-count { margin: 12px 0 18px; }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.niche-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.niche-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.niche-card h3 { font-size: 17px; line-height: 1.25; margin: 0; }
.niche-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.niche-card__mets { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.niche-card__mets span { font-size: 13px; color: var(--ink-2); }
.niche-card__mets b { color: var(--brand); font-weight: 800; }
.niche-empty { margin-top: 24px; font-weight: 600; }
.reviews-empty { margin-top: 24px; font-weight: 600; color: var(--ink-2); }
.reviews-empty a { color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
/* Блок интерфейсов в кейсе */
.ifc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ifc { margin: 0; }
.ifc img { width: 100%; border-radius: 14px; border: 1px solid var(--line, #e5e7eb); display: block; box-shadow: 0 8px 24px rgba(20,20,30,.06); }
.ifc figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; font-weight: 600; text-align: center; }
.rnum-grid--case { margin-top: 10px; }
.seo-chart { width: 100%; max-width: 1000px; border-radius: 16px; border: 1px solid var(--line, #e5e7eb); display: block; box-shadow: 0 8px 24px rgba(20,20,30,.06); }
.app-shot { margin: 0; }
.app-shot img { width: 100%; max-width: 1000px; border-radius: 16px; border: 1px solid var(--line, #e5e7eb); box-shadow: 0 8px 24px rgba(20,20,30,.06); display: block; }
.app-shot figcaption { font-size: 15px; color: var(--ink-2); margin-top: 14px; max-width: 820px; line-height: 1.5; }

/* ===== Кейс-лонгрид (стиль saitcraft / webformat) ===== */
.case-hero { color: #fff; padding: 46px 0 42px; }
.case--seo .case-hero { background: linear-gradient(135deg, #45135c 0%, #7d1231 62%, #a6110f 100%); }
.case--b24 .case-hero { background: linear-gradient(135deg, #14151a 0%, #1f2331 58%, #2c1416 100%); }
.case-hero .eyebrow { color: rgba(255,255,255,.72); }
.case-hero h1 { color: #fff; margin: 10px 0 14px; }
.case-hero .lead { color: rgba(255,255,255,.86); max-width: 620px; }
.case-hero__grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.case-hero__cta { margin-top: 24px; }
.case-facts { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 8px 22px; }
.cf-item { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.cf-item:last-child { border-bottom: 0; }
.cf-item span { display: block; font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 3px; }
.cf-item b { font-size: 18px; color: #fff; }
.case-hero .case-detail-cover { margin: 30px 0 0; border: 1px solid rgba(255,255,255,.14); }
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.ctag { font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; letter-spacing: .01em; }
.case--seo .ctag { background: rgba(255,255,255,.14); color: #fff; }
.case-dot { color: var(--brand); }
/* Битрикс24-кейсы — светлый hero в стиле webformat */
.case--b24 .case-hero { background: #fff; border-bottom: 1px solid var(--line, #e5e7eb); }
.case--b24 .case-hero h1 { color: var(--ink); font-weight: 800; }
.case--b24 .case-hero .lead { color: var(--ink-2); }
.case--b24 .ctag { background: #14151a; color: #fff; }
.case--b24 .case-facts { background: #f6f7f9; border-color: #e5e7eb; }
.case--b24 .cf-item { border-color: #e5e7eb; }
.case--b24 .cf-item span { color: var(--ink-2); }
.case--b24 .cf-item b { color: var(--ink); }
.case--b24 .case-hero .case-detail-cover { border-color: #e5e7eb; }

.case-body { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }
.case-toc__box { position: sticky; top: 88px; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; padding: 20px 22px; background: #fff; }
.case-toc__box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 0 0 10px; }
.case-toc__box a { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f0f1f4; }
.case-toc__box a:last-child { border-bottom: 0; }
.case-toc__box a:hover { color: var(--brand); }
.case-toc__box a span { color: var(--brand); font-weight: 800; font-size: 12px; min-width: 20px; }

.case-longread { max-width: 800px; }
.case-sec { display: flex; gap: 22px; margin-bottom: 36px; }
.case-sec:last-child { margin-bottom: 0; }
.case-sec__n { font-size: 30px; font-weight: 800; color: var(--brand); opacity: .45; flex-shrink: 0; width: 48px; line-height: 1.1; }
.case-sec__c { flex: 1; min-width: 0; }
.case-sec__c h2 { margin: 0 0 14px; font-size: 25px; }
.case-sec__c p { color: var(--ink-2); line-height: 1.7; margin: 0 0 14px; font-size: 16.5px; }
.case-sec__c ul { margin: 0; padding-left: 22px; }
.case-sec__c li { color: var(--ink-2); line-height: 1.65; margin-bottom: 10px; font-size: 16.5px; }
.case-sec--wide { max-width: 860px; }
.case-result-text { color: rgba(255,255,255,.86); max-width: 780px; margin-top: 24px; line-height: 1.7; font-size: 16.5px; }

@media (max-width: 900px) {
  .case-hero__grid { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; gap: 24px; }
  .case-toc__box { position: static; }
  .case-sec__n { font-size: 24px; width: 38px; }
}

/* Ниши: инструменты, воронка, боли */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.tool-card { border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 20px; background: #fff; }
.tool-card h3 { font-size: 17px; margin: 0 0 8px; }
.tool-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.funnel-shot { width: 100%; max-width: 1000px; border-radius: 16px; border: 1px solid var(--line, #e5e7eb); box-shadow: 0 8px 24px rgba(20,20,30,.06); display: block; margin: 8px 0 22px; }
.funnel-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; counter-reset: fs; max-width: 1000px; }
.funnel-steps li { counter-increment: fs; padding: 14px 16px 14px 54px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: #fff; position: relative; }
.funnel-steps li::before { content: counter(fs); position: absolute; left: 15px; top: 14px; width: 27px; height: 27px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.funnel-steps b { display: block; font-size: 15px; margin-bottom: 2px; }
.funnel-steps span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.pains-list { list-style: none; padding: 0; max-width: 820px; display: grid; gap: 10px; margin: 8px 0 0; }
.pains-list li { padding: 13px 16px 13px 44px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; position: relative; color: var(--ink-2); }
.pains-list li::before { content: "✕"; position: absolute; left: 17px; top: 13px; color: var(--brand); font-weight: 800; }
@media (max-width: 760px) { .tools-grid { grid-template-columns: 1fr; } .funnel-steps { grid-template-columns: 1fr; } }

/* Таблица данных в кейсе + чек-лист результатов */
.data-table-wrap { overflow-x: auto; margin-top: 10px; }
.data-table { border-collapse: collapse; width: 100%; max-width: 920px; font-size: 15px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line, #e5e7eb); white-space: nowrap; }
.data-table th { background: #f6f7f9; font-weight: 700; color: var(--ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; }
.data-table td { color: var(--ink-2); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:last-child td { font-weight: 700; color: var(--ink); background: #fbf3f3; }
.result-checks { list-style: none; padding: 0; margin: 24px 0 4px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 26px; max-width: 800px; }
.result-checks li { padding-left: 30px; position: relative; color: rgba(255,255,255,.86); line-height: 1.5; }
.result-checks li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }
.result-checks b { color: #fff; }
@media (max-width: 700px) { .result-checks { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ifc-grid { grid-template-columns: 1fr; } }
.cta--case { border: 1px solid var(--brand); }
/* Цифры в hero услуги */
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; }
.hstat { display: flex; flex-direction: column; }
.hstat b { font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--brand); }
.hstat span { font-size: 13px; color: var(--ink-2); margin-top: 2px; max-width: 150px; }
/* Результаты в цифрах */
.section--dark { background: var(--ink-950, #14151a); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark .section-lead { color: #b8bec9; }
.rnum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.rnum { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px; }
.rnum b { display: block; font-size: 38px; font-weight: 800; color: #fff; line-height: 1; }
.rnum span { display: block; font-size: 14px; color: #b8bec9; margin-top: 8px; }
/* Шапка блока кейсов + крупное число */
.cases-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.cases-bignum { text-align: right; }
.cases-bignum b { font-size: 46px; font-weight: 800; color: var(--brand); line-height: 1; }
.cases-bignum span { display: block; font-size: 14px; color: var(--ink-2); }
.cases-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
@media (max-width: 720px) {
  .rnum-grid { grid-template-columns: repeat(2, 1fr); }
  .rnum b { font-size: 30px; }
  .cases-head { align-items: flex-start; }
  .cases-bignum { text-align: left; }
}

/* ===== Advantages ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.adv b { font-size: 40px; color: var(--brand); display: block; letter-spacing: -.03em; }
.adv h3 { font-size: 17px; margin: 8px 0 6px; }
.adv p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ===== CTA / Form ===== */
.cta { background: linear-gradient(135deg, var(--ink) 0%, #22303d 100%); color: #fff; border-radius: 24px; padding: 48px; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.cta p { color: #c8d2dc; font-size: 17px; margin: 0; }
.form { display: grid; gap: 14px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #33424f; background: #1b2732; color: #fff; font: inherit;
}
.form input::placeholder, .form textarea::placeholder { color: #8c9bab; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form small { color: #8c9bab; font-size: 12px; }
.form small a { color: #c8d2dc; text-decoration: underline; }

/* ===== Contacts ===== */
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); transition: .2s;
}
.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.contact-card .chan { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.contact-card .val { font-size: 19px; font-weight: 700; }
.contact-card .badge { align-self: flex-start; margin-top: 6px; font-size: 12px; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }

/* ===== Страницы услуг ===== */
.breadcrumbs { font-size: 13px; color: var(--ink-2); padding: 18px 0 0; }
.breadcrumbs a:hover { color: var(--brand-dark); }
.breadcrumbs span { color: #b6bcc4; margin: 0 6px; }
.svc-hero { padding: 26px 0 56px; position: relative; overflow: hidden; }
.svc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 70% at 90% 0%, var(--brand-soft) 0%, transparent 60%); }
.svc-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.svc-hero h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 14px; }
.svc-hero .lead { font-size: 19px; color: var(--ink-2); margin: 0 0 26px; }
.svc-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.svc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; }
.svc-panel h3 { font-size: 17px; }
.svc-panel ul { list-style: none; padding: 0; margin: 12px 0 0; }
.svc-panel li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.svc-panel li:last-child { border-bottom: 0; }
.svc-panel li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.svc-block { padding: 56px 0; }
.svc-block h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { color: var(--ink-2); font-size: 14px; margin: 0; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); font-size: 16px; margin: 0 0 16px; }
.related { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.related a { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); transition: .15s; }
.related a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }

/* Каталог услуг /uslugi/ */
.cat-group { margin-bottom: 40px; }
.cat-group h2 { font-size: 24px; margin-bottom: 18px; }
.cat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-item { display: block; padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); transition: .18s; }
.cat-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat-item b { display: block; font-size: 16px; margin-bottom: 4px; }
.cat-item span { font-size: 13px; color: var(--ink-2); }

@media (max-width: 900px) {
  .svc-hero__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cat-list { grid-template-columns: 1fr; }
}

/* ===== Пакеты/тарифы ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pkg { display: flex; flex-direction: column; padding: 30px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); transition: .2s; }
.pkg:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pkg--dark { background: var(--ink-950); border-color: transparent; color: #fff; }
.pkg__tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.pkg--dark .pkg__tag { color: #ff6a5f; }
.pkg h3 { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.pkg__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.pkg__price span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.pkg--dark .pkg__price span { color: #aab2bd; }
.pkg__note { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.pkg--dark .pkg__note { color: #aab2bd; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 24px; }
.pkg li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; border-bottom: 1px solid var(--line); }
.pkg--dark li { border-color: rgba(255,255,255,.1); }
.pkg li:last-child { border-bottom: 0; }
.pkg li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--brand); font-weight: 800; }
.pkg--dark li::before { color: #ff6a5f; }
.pkg .btn { margin-top: auto; }
.pkg-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); }

/* ===== Логотипы клиентов ===== */
.logos-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-tile { height: 92px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: #aeb6c0; font-weight: 700; font-size: 14px; text-align: center; padding: 10px; transition: .2s; }
.logo-tile:hover { border-color: var(--brand); color: var(--ink-2); }
.logo-tile img { max-height: 52px; max-width: 100%; filter: grayscale(1); opacity: .8; }

/* ===== Стек технологий ===== */
.tech-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: 15px; }
.tech-badge b { color: var(--brand); }

/* ===== FAQ ===== */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--brand-dark); }
.faq p { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; max-width: 720px; }

@media (max-width: 900px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Мобильные фиксы (переполнение) ===== */
@media (max-width: 900px) {
  .apps__grid { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app__shots { justify-content: flex-start; flex-wrap: wrap; }
  .app__shots img { width: 46%; max-width: 150px; }
  .app__placeholder { width: 100%; min-height: 180px; }
}
@media (max-width: 900px) {
  .cases-grid, .reviews-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .header__phone { font-size: 15px; }
  .cases-strip { gap: 22px 28px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .case__metrics { gap: 16px; }
  .homequiz { padding: 26px 18px; }
  .cta { padding: 26px 20px; }
}

/* ===== Footer ===== */
.footer { background: var(--ink); color: #aeb9c4; padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: #aeb9c4; }

/* Cookie-баннер */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: var(--ink-950); color: #e9edf3; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cookie-banner p { margin: 0; font-size: 13.5px; color: #cdd4dd; line-height: 1.45; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; padding: 10px 22px; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; } }

/* ===== Плавающие мессенджеры (справа) ===== */
.float-msgs { position: fixed; right: 20px; bottom: 22px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-msgs__cap { max-width: 230px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 12px 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.float-msgs__cap b { color: var(--ink); }
.float-msgs__row { display: flex; gap: 10px; }
.fmsg { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 8px 22px rgba(16,32,45,.22); transition: transform .15s; }
.fmsg:hover { transform: translateY(-3px) scale(1.05); }
.fmsg--tg { background: #229ED9; }
.fmsg--wa { background: #25D366; }
.fmsg--max { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); font-size: 12px; }

/* ===== Плавающий квиз (слева) ===== */
.float-quiz { position: fixed; left: 20px; bottom: 22px; z-index: 150; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer; background: var(--ink-950); color: #fff; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(16,32,45,.28); transition: transform .15s; }
.float-quiz:hover { transform: translateY(-2px); }
.float-quiz b { font-size: 16px; }

/* ===== Квиз-модалка ===== */
.quiz-modal { position: fixed; inset: 0; background: rgba(16,24,30,.6); display: grid; place-items: center; z-index: 300; padding: 20px; }
.quiz__card { width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 30px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.quiz__x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.quiz__prog { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-bottom: 10px; }
.quiz__card h3 { font-size: 21px; margin: 0 0 20px; }
.quiz__opts { display: flex; flex-direction: column; gap: 10px; }
.quiz__opt { text-align: left; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; cursor: pointer; transition: .15s; }
.quiz__opt:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.quiz__form { display: grid; gap: 12px; }
.quiz__form input { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); font: inherit; }
.quiz__form input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.quiz__form small { color: var(--ink-2); font-size: 12px; }
.quiz__done { text-align: center; padding: 20px 0; }
.quiz__done b { font-size: 22px; display: block; margin-bottom: 8px; }
.quiz__done p { color: var(--ink-2); margin: 0; }

/* ===== Инлайн-квиз на главной ===== */
.homequiz { background: var(--ink-950); color: #fff; border-radius: 24px; padding: 44px; }
.homequiz .kicker { color: #ff6a5f; }
.homequiz h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; }
.homequiz > .container > p, .homequiz__lead { color: #aab2bd; margin: 0 0 26px; }
.hq-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hq-opt { padding: 22px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left; transition: .15s; }
.hq-opt:hover { border-color: var(--brand); background: rgba(166,17,15,.18); }
.hq-opt span { display: block; font-weight: 400; font-size: 13px; color: #aab2bd; margin-top: 6px; }
.hq-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; max-width: 720px; }
.hq-form input { padding: 14px 16px; border-radius: 12px; border: 1px solid #33424f; background: #1b2732; color: #fff; font: inherit; }
.hq-form input::placeholder { color: #8c9bab; }
.hq-back { background: none; border: 0; color: #aab2bd; font: inherit; cursor: pointer; margin-top: 16px; text-decoration: underline; }

@media (max-width: 820px) {
  .float-msgs__cap { display: none; }
  .float-quiz { font-size: 0; gap: 0; padding: 15px; }
  .float-quiz b { font-size: 20px; }
  .hq-opts { grid-template-columns: 1fr 1fr; }
  .hq-form { grid-template-columns: 1fr; }
  .homequiz { padding: 30px 22px; }
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero__grid, .cta__grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .adv-grid, .contacts-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header__phone span { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav.open a { padding: 10px 0; }
  .section { padding: 60px 0; }
  .cta { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .adv-grid, .contacts-grid, .hero__stats { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
}

/* ===== Анимации появления при прокрутке ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-s > * { opacity: 0; transform: translateY(22px); transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1); }
  .reveal-s.in > * { opacity: 1; transform: none; }
  .reveal-s.in > *:nth-child(1){transition-delay:.03s} .reveal-s.in > *:nth-child(2){transition-delay:.09s}
  .reveal-s.in > *:nth-child(3){transition-delay:.15s} .reveal-s.in > *:nth-child(4){transition-delay:.21s}
  .reveal-s.in > *:nth-child(5){transition-delay:.27s} .reveal-s.in > *:nth-child(6){transition-delay:.33s}
  .reveal-s.in > *:nth-child(7){transition-delay:.36s} .reveal-s.in > *:nth-child(8){transition-delay:.4s}
  /* мягкий подъём hover у карточек-плиток */
  .rnum, .adv, .step, .tool-card, .hstat { transition: transform .25s ease, box-shadow .25s ease; }
  .tool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,20,30,.08); }
  .ifc img, .app-shot img, .seo-chart, .funnel-shot { transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
  .ifc:hover img, .app-shot:hover img { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 40px rgba(20,20,30,.12); }
  .btn { transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
  .btn--primary:hover { transform: translateY(-2px); }
}

/* ===== Simplified 2026 interface ===== */
.reveal,
.reveal.in,
.reveal-s > *,
.reveal-s.in > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

:focus-visible {
  outline: 3px solid rgba(166, 17, 15, .42);
  outline-offset: 3px;
}

.header__inner { height: 68px; gap: 24px; }
.header__quickcall { display: none; }
.header__cta { display: inline-flex; }
.header__social { display: none !important; }
.nav { gap: 28px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.burger { width: 44px; height: 44px; padding: 8px 10px; }

.footer { padding: 34px 0; }
.footer__brand, .footer__phone { white-space: nowrap; }
.footer__phone { color: #fff; font-weight: 700; }

.home-simple .section { padding: 76px 0; }
.home-simple .section-lead { margin-bottom: 34px; }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading-row .section-title { margin-bottom: 10px; }
.text-link { color: var(--brand-dark); font-weight: 700; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-simple { background: var(--ink-950); color: #fff; border-top: 3px solid var(--brand); }
.hero-simple__grid { padding-top: 88px; }
.hero-simple__copy { max-width: 900px; padding-bottom: 74px; }
.hero-simple__eyebrow { margin: 0 0 22px; color: #d8dde5; font-size: 14px; font-weight: 700; }
.hero-simple h1 { max-width: 15ch; margin: 0 0 24px; color: #fff; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.hero-simple h1 span { color: #d0221f; }
.hero-simple__lead { max-width: 720px; margin: 0 0 30px; color: #b7bec8; font-size: clamp(17px, 2vw, 20px); }
.hero-simple__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--on-dark { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--on-dark:hover { border-color: #fff; color: #fff; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid rgba(255,255,255,.13); }
.proof-strip > div { padding: 28px 0 34px; }
.proof-strip > div + div { border-left: 1px solid rgba(255,255,255,.13); padding-left: 30px; }
.proof-strip dt { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1; }
.proof-strip dd { margin: 8px 0 0; color: #929ba8; font-size: 14px; }

.service-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 250px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.service-card:hover { border-color: #c9b7b7; box-shadow: var(--shadow-sm); }
.service-card--dark { background: var(--ink-950); border-color: var(--ink-950); color: #fff; }
.service-card--dark .service-card__num,
.contact-simple .kicker { color: #ff756b; }
.service-card__num { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.service-card h3 { margin: 22px 0 10px; font-size: 23px; }
.service-card p { margin: 0 0 24px; color: var(--ink-2); font-size: 14px; }
.service-card--dark p { color: #aeb6c1; }
.service-card > span:last-child { margin-top: auto; color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.service-card--dark > span:last-child { color: #fff; }

.case-row-simple { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.case-card-simple { display: flex; flex-direction: column; min-height: 340px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.case-card-simple:hover { border-color: #c9b7b7; box-shadow: var(--shadow-sm); }
.case-card-simple > span { color: var(--brand-dark); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.case-card-simple h3 { margin: 18px 0 12px; font-size: 21px; }
.case-card-simple > p { margin: 0 0 26px; color: var(--ink-2); font-size: 14px; }
.case-card-simple dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case-card-simple dt { font-size: 22px; font-weight: 800; }
.case-card-simple dd { margin: 4px 0 0; color: var(--ink-2); font-size: 12px; }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { padding: 26px 24px 0 0; }
.process-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process-list li > span { color: var(--brand); font-size: 13px; font-weight: 800; }
.process-list h3 { margin: 18px 0 8px; font-size: 18px; }
.process-list p { margin: 0; color: var(--ink-2); font-size: 14px; }

.price-simple { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.price-simple .section-lead { margin-bottom: 0; }
.price-list { border-top: 1px solid var(--line); }
.price-list a { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.price-list a:hover span { color: var(--brand-dark); }
.price-list span { font-weight: 700; }
.price-list strong { text-align: right; white-space: nowrap; font-size: 18px; }

.quote-simple { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.quote-simple figure { margin: 0; padding-left: 28px; border-left: 3px solid var(--brand); }
.quote-simple blockquote { margin: 0 0 24px; font-size: clamp(20px, 2.4vw, 29px); line-height: 1.42; }
.quote-simple figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote-simple figcaption span { color: var(--ink-2); font-size: 14px; }

.faq-simple .faq { margin-top: 20px; }
.contact-simple { background: var(--ink-950); color: #fff; }
.contact-simple__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: start; }
.contact-simple .section-title { color: #fff; max-width: 14ch; }
.contact-simple > .container > div > p:not(.kicker) { max-width: 520px; color: #aeb6c1; font-size: 17px; }
.contact-simple__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-simple__links a { min-width: 210px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; }
.contact-simple__links a:hover { border-color: rgba(255,255,255,.45); }
.contact-simple__links span { display: block; color: #929ba8; font-size: 12px; }
.contact-simple__links strong { display: block; margin-top: 3px; color: #fff; }
.form--simple { padding: 26px; border-radius: 16px; background: #fff; color: var(--ink); }
.form-field { display: grid; gap: 6px; }
.form-field > span { font-size: 13px; font-weight: 700; }
.form-field em { color: var(--ink-2); font-style: normal; font-weight: 400; }
.form--simple input, .form--simple textarea { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.form--simple input:focus, .form--simple textarea:focus { outline: 3px solid rgba(166,17,15,.2); border-color: var(--brand); }
.form--simple small { color: var(--ink-2); }
.form--simple small a { color: var(--ink); }
.form-status { min-height: 22px; margin: 0; color: var(--ink-2); font-size: 14px; }
.form-status.is-error { color: var(--brand-dark); }
.form-status.is-success { color: #17663a; }
.homequiz .form-status { grid-column: 1 / -1; color: #cdd4dd; }
.homequiz .form-status.is-error { color: #ff9b94; }
.homequiz .form-status.is-success { color: #87d7a8; }
.hq-form .form-field > span { color: #fff; }
.hq-form .btn { align-self: end; min-height: 50px; justify-content: center; }

.cookie-banner { max-width: 640px; padding: 12px 14px; border-radius: 12px; }
.cookie-banner .btn { min-height: 44px; }

@media (max-width: 1080px) {
  .header__cta { display: none; }
  .nav { gap: 20px; }
  .service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-row-simple { grid-template-columns: 1fr; }
  .case-card-simple { min-height: 0; }
}

@media (max-width: 900px) {
  .header__inner { height: 64px; gap: 10px; }
  .logo__mark-img { width: 36px; height: 36px; }
  .logo__text { font-size: 20px; }
  .header__phone { display: none; }
  .header__quickcall { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-950); color: #fff; }
  .burger { display: block; }
  .nav { display: none; }
  .nav.open { top: 64px; padding: 10px 20px 18px; gap: 0; box-shadow: 0 12px 30px rgba(16,32,45,.1); }
  .nav.open a { min-height: 48px; padding: 0; border-bottom: 1px solid var(--line); }
  .home-simple .section { padding: 58px 0; }
  .hero-simple__grid { padding-top: 64px; }
  .hero-simple__copy { padding-bottom: 54px; }
  .hero-simple h1 { font-size: clamp(40px, 11vw, 58px); }
  .service-row { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .service-card { flex: 0 0 min(76vw, 290px); min-height: 230px; scroll-snap-align: start; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .process-list li:nth-child(n+3) { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
  .price-simple, .quote-simple, .contact-simple__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 560px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .header__inner { padding-left: 14px; padding-right: 10px; }
  .hero-simple__grid { padding-top: 50px; }
  .hero-simple__copy { padding-bottom: 44px; }
  .hero-simple__eyebrow { font-size: 12px; }
  .hero-simple h1 { font-size: clamp(37px, 10.8vw, 50px); }
  .hero-simple__actions .btn { width: 100%; justify-content: center; }
  .proof-strip > div { padding: 22px 8px 26px 0; }
  .proof-strip > div + div { padding-left: 12px; }
  .proof-strip dt { font-size: 21px; }
  .proof-strip dd { font-size: 11px; line-height: 1.35; }
  .section-heading-row { align-items: flex-start; }
  .section-heading-row .text-link { display: none; }
  .service-row { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .service-card { flex-basis: min(78vw, 280px); }
  .process-list { grid-template-columns: 1fr; border-top: 0; }
  .process-list li, .process-list li + li, .process-list li:nth-child(3), .process-list li:nth-child(n+3) { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); }
  .process-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
  .process-list h3 { margin-top: 0; }
  .price-list a { align-items: flex-start; flex-direction: column; gap: 5px; padding: 18px 0; }
  .price-list strong { text-align: left; }
  .quote-simple figure { padding-left: 20px; }
  .contact-simple__links { flex-direction: column; }
  .contact-simple__links a { min-width: 0; }
  .form--simple { padding: 20px; }
  .footer__inner { align-items: flex-start; flex-direction: column; }
  .footer__links { gap: 10px 16px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 12px; gap: 10px; }
  .cookie-banner p { font-size: 12px; }
  .cookie-banner { flex-direction: row; align-items: center; }
  .cookie-banner .btn { width: auto; min-width: 54px; padding: 9px 14px; }
}
