/* «Семейные правовые решения» — mobile-first, современный стиль */

:root {
  /* константы тёмных секций */
  --ink: #1b2532;
  --ink-2: #243144;
  --teal: #17b8a0;
  --teal-deep: #0e9b86;
  --line-light: rgba(255, 255, 255, .14);
  --muted-light: rgba(255, 255, 255, .74);
  --r: 16px;
  --r-sm: 10px;
  --display: 'Montserrat', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, sans-serif;

  /* поверхности и текст */
  --bg: #ffffff;
  --bg-mist: #f4f7f9;
  --surface: #ffffff;
  --text: #1b2532;
  --muted: rgba(27, 37, 50, .66);
  --line: #e6ebf1;
  --teal-soft: #e2f6f1;
  --shadow: 0 6px 24px rgba(27, 37, 50, .07);
  --shadow-lift: 0 18px 44px rgba(27, 37, 50, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

/* --- типографика --- */
h1, h2 { font-family: var(--display); line-height: 1.18; }
h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .015em; }
h2 { font-size: clamp(1.5rem, 4.8vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 28px; }
h1 em, h2 em { font-style: normal; color: var(--teal); }
.h-light { color: #fff; }
h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--body); line-height: 1.35; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); flex: none; }
.eyebrow-light { color: var(--teal); }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  font: 700 .88rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background .22s, color .22s, border-color .22s, box-shadow .22s, transform .22s;
}
.btn-gold { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(23, 184, 160, .32); }
.btn-gold:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 184, 160, .4); }
.btn-line { border-color: var(--line-light); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-line:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-dark { background: var(--teal); color: #fff; box-shadow: 0 8px 22px rgba(23, 184, 160, .32); }
.btn-dark:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 184, 160, .4); }
.btn-sm { padding: 11px 18px; font-size: .76rem; }
.btn-wide { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

/* --- шапка: фирменное стекло (текстура #glass + blur, тонирующий скрим под текст) --- */
/* ВАЖНО: backdrop-filter на саму шапку не вешать — ::before с текстурой перестанет
   сэмплировать фон. Слои: скрим-фон → ::before blur(6px)+искажение → ::after blur(.5px). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* полупрозрачный скрим: стекло видно, blur ниже дотемняет белые секции */
  background: linear-gradient(180deg, rgba(23, 32, 44, .78), rgba(27, 37, 50, .66));
  border-bottom: 1px solid var(--line-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 32px rgba(0, 0, 0, .15);
}
.site-header::before {
  content: ''; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  filter: url(#glass);
  pointer-events: none; z-index: 0;
}
.site-header::after {
  content: ''; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(.5px);
  backdrop-filter: blur(.5px);
  pointer-events: none; z-index: 1;
}
.site-header > * { position: relative; z-index: 2; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(27, 37, 50, .96); }
  .site-header::before, .site-header::after { display: none; }
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 10px; background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; font: 800 .8rem/1 var(--display); letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(23, 184, 160, .35);
}
.brand-name { font-family: var(--display); font-size: .74rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em; }
.site-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: color .2s; }
.header-phone .ic { width: 18px; height: 18px; color: var(--teal); }
.header-phone:hover { color: var(--teal); }

.nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line-light); border-radius: 10px; cursor: pointer; }
.nav-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ink); border-bottom: 1px solid var(--line-light);
  padding: 12px 20px 20px;
  animation: navDrop .28s ease both;
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-nav a { color: #fff; text-decoration: none; font-size: .92rem; font-weight: 500; padding: 10px 2px; border-radius: 10px; transition: color .2s; }
.site-nav a:hover { color: var(--teal); }

/* --- хиро --- */
.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 82% -10%, #2b3c52 0%, var(--ink) 55%);
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 480px at 75% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 75% 20%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; gap: 40px; padding-top: 48px; position: relative; }
.hero-lead { margin: 18px 0 22px; color: var(--muted-light); max-width: 34em; }
.hero-checks { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; }
.hero-checks li { position: relative; padding-left: 32px; font-weight: 500; }
.hero-checks li::before {
  content: ''; position: absolute; left: 0; top: .22em; width: 19px; height: 19px;
  border-radius: 6px; background: rgba(23, 184, 160, .18); border: 1.5px solid var(--teal);
}
.hero-checks li::after {
  content: ''; position: absolute; left: 5px; top: .52em; width: 8px; height: 4.5px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { position: relative; max-width: 430px; }
.hero-visual img {
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
}
.hero-frame {
  position: absolute; inset: -16px auto auto -16px; width: 44%; height: 44%;
  border-top: 3px solid var(--teal); border-left: 3px solid var(--teal);
  border-top-left-radius: 24px; opacity: .9;
}
.hero-quote {
  position: relative; margin: -48px 12px 0 auto; width: min(86%, 330px);
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff; padding: 20px 22px; border-radius: var(--r);
  box-shadow: 0 18px 40px rgba(14, 155, 134, .35);
}
.hero-quote blockquote { font-weight: 600; font-size: .95rem; line-height: 1.5; }
.hero-quote figcaption { margin-top: 10px; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .8; }

/* появление хиро при загрузке */
.hero-copy > * { animation: rise .7s cubic-bezier(.22,.8,.36,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero-copy > *:nth-child(5) { animation-delay: .37s; }
.hero-visual { animation: riseSoft .9s cubic-bezier(.22,.8,.36,1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes riseSoft { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }

.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 48px; margin-bottom: 60px; position: relative;
}
.stat {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line-light);
  border-radius: var(--r); padding: 22px 18px;
  transition: transform .25s, border-color .25s, background .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(23,184,160,.5); background: rgba(23,184,160,.07); }
.stat b { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 800; color: var(--teal); letter-spacing: .01em; }
.stat span { font-size: .8rem; color: var(--muted-light); line-height: 1.45; display: block; margin-top: 5px; }

/* --- секции --- */
.section { padding: 68px 0; scroll-margin-top: 64px; }
.section-dark { background: linear-gradient(180deg, var(--ink) 0%, #1e2a3a 100%); color: #fff; }
.section-dark p { color: var(--muted-light); }
.section-mist { background: var(--bg-mist); }

/* --- появление при скролле --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.22,.8,.36,1), transform .65s cubic-bezier(.22,.8,.36,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- услуги --- */
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  padding: 11px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer;
  font: 600 .85rem/1 var(--body); color: var(--text);
  transition: background .22s, color .22s, border-color .22s, transform .22s, box-shadow .22s;
}
.filter:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.filter.is-active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(23, 184, 160, .3); }

.cards-grid { display: grid; gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 13px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.22,.8,.36,1), box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(23, 184, 160, .45); }
.card.is-hidden { display: none; }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 184, 160, .3);
  transition: transform .28s;
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.card p { font-size: .92rem; color: var(--muted); flex: 1; }
.card-btn {
  align-self: flex-start; padding: 10px 0; background: none; border: none; cursor: pointer;
  font: 700 .8rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--teal-deep);
  transition: color .2s;
}
.card-btn::after { content: ' →'; transition: margin-left .2s; }
.card-btn:hover { color: var(--ink); }
.card-btn:hover::after { margin-left: 4px; }

/* --- о бюро --- */
.about-grid { display: grid; gap: 40px; }
.about-visual { position: relative; max-width: 480px; }
.about-main { border-radius: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.about-small {
  position: absolute; right: -12px; bottom: -30px; width: 42%;
  border-radius: 16px; border: 6px solid var(--ink);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.about-copy p { margin-bottom: 14px; }
.about-points { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.about-points li {
  border-left: 3px solid var(--teal); border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  padding: 14px 16px; color: var(--muted-light); font-size: .95rem;
}
.about-points b { color: #fff; display: block; margin-bottom: 2px; }

/* --- шаги --- */
.steps-grid { list-style: none; display: grid; gap: 18px; }
.step {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; position: relative; background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(23, 184, 160, .45); }
.step-num {
  display: inline-grid; place-items: center;
  min-width: 46px; height: 46px; padding: 0 8px;
  border-radius: 16px; background: var(--teal-soft); color: var(--teal-deep);
  font-family: var(--display); font-size: 1.15rem; font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--muted); }

/* --- преимущества --- */
.values-grid { display: grid; gap: 18px; }
.value {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(23, 184, 160, .45); }
.value h3 { margin-bottom: 8px; position: relative; padding-left: 22px; }
.value h3::before { content: ''; position: absolute; left: 0; top: .3em; width: 11px; height: 11px; border-radius: 4px; background: var(--teal); }
.value p { font-size: .92rem; color: var(--muted); }

/* --- кнопки-мессенджеры --- */
.btn-msngr { gap: 10px; }
.btn-msngr .ic { width: 18px; height: 18px; }

/* --- CTA-блок заявки --- */
.section-lead { position: relative; overflow: hidden; }
.section-lead::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 420px at 15% 100%, rgba(23, 184, 160, .12) 0%, transparent 70%);
}
.lead-grid { display: grid; gap: 36px; position: relative; }
.lead-points { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.lead-points li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--muted-light); }
.lead-points .ic { width: 20px; height: 20px; color: var(--teal); }
.lead-actions {
  display: grid; gap: 12px; align-content: start;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-light); border-radius: 24px;
  padding: 28px 24px;
  backdrop-filter: blur(6px);
}
.lead-note { font-size: .82rem; color: var(--muted-light); }

/* --- модалка --- */
.lead-modal { border: none; padding: 0; background: transparent; max-width: none; max-height: none; }
.lead-modal[open] { display: grid; place-items: center; position: fixed; inset: 0; width: 100%; height: 100%; }
.lead-modal::backdrop { background: rgba(15, 22, 31, .72); backdrop-filter: blur(4px); }
.lead-modal[open] .lead-modal-inner { animation: modalIn .32s cubic-bezier(.22,.8,.36,1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.lead-modal-inner {
  position: relative; width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--text); padding: 32px 26px 26px;
  border-radius: 24px; box-shadow: 0 40px 90px rgba(0, 0, 0, .4);
}
.lead-modal-title { font-size: 1.4rem; margin-bottom: 8px; }
.lead-modal-sub { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.lead-modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; background: var(--bg-mist); border: none; border-radius: 10px; cursor: pointer; color: var(--text);
  transition: background .2s, color .2s, transform .2s;
}
.lead-modal-close:hover { background: var(--teal-soft); color: var(--teal-deep); transform: rotate(90deg); }
.lead-form { display: grid; gap: 14px; }

/* --- форма --- */
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--surface);
  font: 400 1rem/1.4 var(--body); color: var(--text); -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23, 184, 160, .15); outline: none; }
.field textarea { resize: vertical; min-height: 92px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--teal-deep); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--teal-deep); }
.form-status { font-size: .88rem; min-height: 1.4em; }
.form-status.ok { color: #14805e; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }

/* --- FAQ --- */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.faq-list details[open] { border-color: rgba(23, 184, 160, .45); box-shadow: var(--shadow-lift); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
  font-weight: 600; font-size: .98rem;
  transition: color .2s;
}
.faq-list summary:hover { color: var(--teal-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px;
  border-radius: 2px; background: var(--teal-deep); transition: transform .25s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { padding: 0 20px 18px; color: var(--muted); font-size: .94rem; animation: faqIn .3s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.faq-cta p { font-weight: 600; }

/* --- контакты --- */
.contacts-grid { display: grid; gap: 18px; }
.contact-card {
  display: grid; gap: 8px; justify-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
a.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(23, 184, 160, .45); }
.contact-card .ic {
  width: 46px; height: 46px; padding: 11px; border-radius: 16px;
  background: var(--teal-soft); color: var(--teal-deep);
}
.contact-card b { font-size: 1.05rem; }
.contact-card span { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* --- футер --- */
.site-footer { background: var(--ink); color: var(--muted-light); font-size: .88rem; }
.footer-grid { display: grid; gap: 28px; padding: 46px 20px 28px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; max-width: 320px; }
.footer-brand p { line-height: 1.55; }
.footer-nav { display: grid; gap: 8px; justify-items: start; }
.footer-nav a { color: #fff; text-decoration: none; transition: color .2s; }
.footer-nav a:hover { color: var(--teal); }
.footer-req p { margin-bottom: 10px; line-height: 1.55; }
.footer-bottom { border-top: 1px solid var(--line-light); padding-top: 18px; padding-bottom: 22px; font-size: .8rem; }

/* --- cookie --- */
.cookie-bar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  margin: 0 auto; max-width: 760px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px rgba(27, 37, 50, .25);
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: .84rem;
  animation: rise .5s cubic-bezier(.22,.8,.36,1) both;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 260px; color: var(--muted); }
.cookie-bar a { color: var(--teal-deep); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.btn-ghost {
  background: none; border: 1.5px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* --- плавающий виджет связи --- */
.contact-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 55;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.fab-scrim {
  position: fixed; inset: 0; z-index: 54;
  background: rgba(15, 22, 31, .45);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.contact-fab.is-open ~ .fab-scrim, .fab-scrim.is-on {
  opacity: 1; pointer-events: auto;
}
.fab-main {
  width: 60px; height: 60px; border: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff;
  box-shadow: 0 12px 30px rgba(14, 155, 134, .45);
  transition: transform .25s cubic-bezier(.22,.8,.36,1), box-shadow .25s;
  position: relative;
}
.fab-main::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(23, 184, 160, .55);
  animation: fabPulse 2.6s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(1); opacity: .9; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.fab-main:hover { transform: translateY(-2px) scale(1.05); }
.fab-main:active { transform: scale(.94); }
.fab-main .ic { width: 26px; height: 26px; }
.fab-main .ic-shut { display: none; }
.contact-fab.is-open .fab-main .ic-open { display: none; }
.contact-fab.is-open .fab-main .ic-shut { display: block; }
.contact-fab.is-open .fab-main::after { animation: none; }

.fab-menu {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.contact-fab.is-open .fab-menu { pointer-events: auto; }
.fab-item {
  display: flex; align-items: center; gap: 10px;
  border: none; background: none; cursor: pointer; text-decoration: none;
  opacity: 0; transform: translateY(14px) scale(.9);
  transition: opacity .28s cubic-bezier(.22,.8,.36,1), transform .28s cubic-bezier(.22,.8,.36,1);
}
.contact-fab.is-open .fab-item { opacity: 1; transform: none; }
.contact-fab.is-open .fab-item:nth-child(1) { transition-delay: .14s; }
.contact-fab.is-open .fab-item:nth-child(2) { transition-delay: .1s; }
.contact-fab.is-open .fab-item:nth-child(3) { transition-delay: .06s; }
.contact-fab.is-open .fab-item:nth-child(4) { transition-delay: .02s; }
.fab-label {
  background: var(--surface); color: var(--text);
  font: 600 .82rem/1 var(--body);
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  white-space: nowrap;
}
.fab-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--teal-deep);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s, background .2s, color .2s;
}
.fab-item:hover .fab-icon { background: var(--teal); color: #fff; transform: scale(1.08); }
.fab-item:active .fab-icon { transform: scale(.92); }
.fab-item .ic { width: 20px; height: 20px; }

/* --- тактильный отклик (press) --- */
.btn:active { transform: translateY(0) scale(.965); }
.filter:active { transform: scale(.94); }
.card:active, .value:active, .step:active, a.contact-card:active { transform: translateY(-2px) scale(.985); }
.card-btn:active { transform: translateX(2px); }
.stat:active { transform: scale(.98); }

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== сверхузкие экраны ===== */
@media (max-width: 379px) {
  .container { padding: 0 14px; }
  .header-row { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: .64rem; }
  .btn-sm { padding: 10px 12px; font-size: .7rem; }
  .nav-burger { width: 38px; height: 38px; }
}

/* ===== планшет ===== */
@media (min-width: 640px) {
  .cards-grid, .values-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .header-phone { display: inline-flex; }
}

/* ===== десктоп ===== */
@media (min-width: 960px) {
  .section { padding: 92px 0; }
  .nav-burger { display: none; }
  .site-nav { display: flex; gap: 26px; }
  .site-nav a { padding: 6px 0; font-size: .88rem; }
  .header-row { min-height: 78px; gap: 28px; }
  .brand-name { font-size: .78rem; }

  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; padding-top: 64px; gap: 60px; }
  .hero-visual { justify-self: end; }

  .cards-grid, .values-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 30px 28px; }

  .about-grid { grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; }
  .lead-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }

  .footer-grid { grid-template-columns: 1.2fr .8fr 1fr; gap: 48px; }
}


@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .contact-fab, .fab-scrim, .cookie-bar { display: none !important; }
}
/* «Показать ещё» для услуг на мобильном */
.services-more { display: none; margin: 18px auto 0; }
@media (max-width: 639px) {
  .cards-grid.is-collapsed .card:nth-child(n+7) { display: none; }
  .services-more.is-visible { display: inline-flex; }
}
/* success-состояние модалки */
.lead-form.is-done .field, .lead-form.is-done .consent, .lead-form.is-done #lf-submit { display: none; }
.lead-form.is-done .form-status { font-size: 1rem; }
