@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&family=Onest:wght@400;600;700;800&display=swap');

/* ===== ROMIMAX tokens (источник: Website/design/tokens.css) ===== */
:root {
  /* акцент по бренд-паку 2.0: основной #2563EB, #1D4ED8 — состояние hover */
  --accent: #2563EB; --accent-hover: #1D4ED8; --accent-active: #1E40AF; --accent-soft: #DBEAFE;
  --ink: #0B1020; --logo-word: #0B1020; --logo-accent: #2563EB;
  --brand-blue: #2563EB; --brand-green: #059669; --brand-amber: #D97706;
  --success: #059669; --warning: #D97706; --error: #DC2626;
  --surface-page: #F7F9FB; --surface-card: #FFFFFF; --surface-muted: #EDF1F6; --surface-float: #FFFFFF;
  --text-primary: #0F1825; --text-secondary: #475569; --text-muted: #94A3B8;
  --border-default: #E2E8F2; --border-strong: #CBD5E1;
  --font-heading: 'Onest', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(15,24,37,.08); --shadow-md: 0 6px 16px rgba(15,24,37,.12);
  --shadow-lg: 0 14px 30px rgba(15,24,37,.15);
  --container: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3B82F6; --accent-hover: #60A5FA; --accent-active: #2563EB; --accent-soft: #16243A;
    --logo-word: #2563EB; --logo-accent: #FFFFFF;
    --surface-page: #0C0E14; --surface-card: #141820; --surface-muted: #1A1F2B; --surface-float: #1E293B;
    --text-primary: #EDF1F6; --text-secondary: #94A3B8; --text-muted: #64748B;
    --border-default: #1E2433; --border-strong: #2A3344;
    --shadow-sm: 0 2px 6px rgba(0,0,0,.4); --shadow-md: 0 6px 16px rgba(0,0,0,.45);
    --shadow-lg: 0 14px 30px rgba(0,0,0,.5);
  }
}

/* ===== base ===== */
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body);
  background: var(--surface-page); color: var(--text-primary);
  -webkit-font-smoothing: antialiased; line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: -.02em; color: var(--text-primary); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface-card) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
/* логотип — бренд-пак ROMIMAX 2.0, охранное поле = треть высоты */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__img { display: block; width: auto; height: 30px; }
.logo--sm .logo__img { height: 26px; }
.logo__img--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo__img--light { display: none; }
  :root:not([data-theme="light"]) .logo__img--dark { display: block; }
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { background: var(--accent-active); }
@media (max-width: 720px) { .nav { display: none; } }

/* ===== мобильная навигация (дизайн-система: components/mobile-nav) ===== */
.iconbtn {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  background: transparent; color: var(--text-primary); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* скрытие — после .iconbtn, иначе его display: flex перебивает правило */
.mbar, .mdrawer, .site-header__burger { display: none; }

@media (max-width: 720px) {
  /* шапка не липкая: уезжает вместе с контентом, тянуться вверх не нужно */
  .site-header { position: static; background: var(--surface-card); backdrop-filter: none; }
  .site-header__in { height: 56px; }
  .site-header__cta { display: none; }
  .logo__img { height: 26px; }
  .site-header__burger { display: flex; }

  /* место под плавающую панель, чтобы она не перекрывала футер */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* — плавающая нижняя панель — */
  .mbar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; z-index: 60;
    left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding: 8px; background: var(--surface-float);
    border: 1px solid var(--border-default); border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
  }
  .mbar__icon {
    width: 44px; height: 44px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-default); border-radius: 50%;
    background: var(--surface-muted); color: var(--text-primary); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mbar__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mbar__cta {
    flex: 1; min-width: 0; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill); background: var(--accent); color: #fff;
    font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  }
  .mbar__cta:hover { text-decoration: none; }

  /* — выдвижное меню — */
  .mdrawer { display: block; position: fixed; inset: 0; z-index: 70; }
  .mdrawer[hidden] { display: none; }
  .mdrawer__scrim { position: absolute; inset: 0; background: rgba(15, 24, 37, .45); }
  .mdrawer__panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 6px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    background: var(--surface-card);
    border-top: 1px solid var(--border-default);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    animation: mdrawer-in .18s ease-out;
  }
  @keyframes mdrawer-in { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
  .mdrawer__head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .mdrawer__item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--text-primary);
    border-bottom: 1px solid var(--border-default);
  }
  .mdrawer__item:last-child { border-bottom: none; }
  .mdrawer__item:hover { text-decoration: none; }
  .mdrawer__item.is-active { color: var(--accent); }
  .mdrawer__item svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--text-muted); }
  .mdrawer__contact { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--text-primary); }
  .mdrawer__contact:hover { text-decoration: none; }
  .mdrawer__contact svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
  .mdrawer__contact span { font-family: var(--font-heading); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
  .mdrawer__hours { font-size: 13px; color: var(--text-muted); margin: 6px 0 0 28px; }

  /* фон не скроллится, пока открыто меню */
  body.is-drawer-open { overflow: hidden; }
}

/* ===== content ===== */
main { min-height: 60vh; padding: 56px 0 80px; }
.page-hero { margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.page-hero h1 { font-size: 40px; line-height: 1.1; margin: 16px 0 0; font-weight: 700; }
.page-hero .lead { font-size: 18px; color: var(--text-secondary); max-width: 60ch; margin: 14px 0 0; }

/* ===== instruction index ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.i-card {
  display: block; background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 24px; transition: border-color .15s, transform .15s;
}
.i-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.i-card__title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.i-card__intro { color: var(--text-secondary); font-size: 14px; margin: 0; }
.i-card__more { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ===== instruction article ===== */
.article { max-width: 760px; }
.article__body { font-size: 17px; color: var(--text-secondary); }
.article__body h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 32px 0 8px; }
.article__body p { margin: 0 0 14px; }
.article__body ul { margin: 0 0 14px; padding-left: 22px; }
.article__body li { margin-bottom: 6px; }
.article__body code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-muted); padding: 2px 6px; border-radius: 4px; color: var(--text-primary); }
.article__body strong { color: var(--text-primary); }
/* картинки-доказательства в теле: скрины кабинетов, аналитики, CRM */
.article__body img { display: block; max-width: 100%; height: auto; margin: 24px 0 0; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); }
.article__body .richtext-image.full-width { width: 100%; }
/* абзац из одного курсива = подпись под картинкой */
.article__body p > i:only-child { display: block; margin: 8px 0 18px; font-style: normal; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.back { display: inline-block; margin-bottom: 24px; color: var(--text-muted); font-size: 14px; }

/* ===== footer ===== */
.site-footer { border-top: 1px solid var(--border-default); background: var(--surface-card); padding: 40px 0; margin-top: 40px; }
.site-footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer__tag { color: var(--text-secondary); font-size: 14px; max-width: 40ch; margin: 8px 0 0; }
.site-footer__meta { color: var(--text-muted); font-size: 13px; }

/* ============ LANDING ============ */
.section { padding: 72px 0; }
.section--muted { background: var(--surface-muted); border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.section__h2 { font-size: 32px; font-weight: 600; margin: 14px 0 32px; }
.eyebrow--dark { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn--outline:hover { background: var(--surface-muted); filter: none; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.hero__glow--b { width: 520px; height: 520px; background: rgba(37,99,235,.16); top: -180px; right: -80px; }
.hero__glow--a { width: 360px; height: 360px; background: rgba(245,158,11,.10); bottom: -180px; left: -80px; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__h1 { font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; margin: 18px 0 0; }
.hero__lead { font-size: 18px; color: var(--text-secondary); max-width: 52ch; margin: 18px 0 0; }
.hero__actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
/* hero без KPI-карточки (внутренние страницы) — одна колонка */
.hero__in--solo { grid-template-columns: 1fr; }
.hero__in--solo .hero__h1 { max-width: 18ch; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } .hero__h1 { font-size: 38px; } }

/* kpi card */
.kpi { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 22px; }
.kpi__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.kpi__title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.kpi__live { font-family: var(--font-mono); font-size: 11px; color: var(--brand-green); }
.kpi__main { background: var(--surface-muted); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 12px; }
.kpi__label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.kpi__val { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi__delta { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--brand-green); margin-left: 8px; }
.kpi__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi__cell { background: var(--surface-muted); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi__cval { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpi__clab { font-size: 12px; color: var(--text-secondary); margin-top: 5px; }

/* proof */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proof__cell { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 24px; }
.proof__v { font-family: var(--font-mono); font-size: 40px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--accent); }
.proof__v--g { color: var(--brand-green); }
.proof__l { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
@media (max-width: 720px) { .proof { grid-template-columns: 1fr 1fr; } }

/* services */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.s-card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; }
.s-card__title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.s-card__desc { color: var(--text-secondary); font-size: 14px; margin: 0 0 16px; flex: 1; }
.s-card__link { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .s-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step__n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.step__t { font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

/* case cards */
.case-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 26px; transition: border-color .15s, transform .15s; }
.case-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.case-card__title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin: 12px 0 16px; color: var(--text-primary); }
.case-card__metrics { display: flex; gap: 28px; margin-bottom: 16px; }
.case-card__v { display: block; font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--accent); }
.case-card__l { font-size: 13px; color: var(--text-secondary); }
.case-card__more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }

/* cta */
.cta { background: #0C0E14; color: #fff; margin: 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 24px; flex-wrap: wrap; }
.cta__h2 { color: #fff; font-size: 30px; font-weight: 600; margin: 12px 0 0; max-width: 26ch; }

/* ============ CASE PAGE ============ */
.case { max-width: 860px; }
.case__hero { padding: 24px 0 8px; }
.case__hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; margin: 16px 0 0; }
.case__meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.case__meta b { color: var(--text-secondary); font-weight: 500; }
.case__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 32px 0; }
.case__stat { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 20px; }
.case__stat-v { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--accent); }
.case__stat-l { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.case__lead { font-size: 18px; line-height: 1.5; color: var(--text-secondary); max-width: 60ch; margin: 16px 0 0; }
.case__img { margin: 24px 0; }
.case__img img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-default); }

/* услуги кейса — чипы со ссылками на страницы услуг */
.case__services { margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--border-default); }
.case__services-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-secondary); font-size: 14px; }
.chip--link { color: var(--accent); border-color: var(--border-strong); font-weight: 500; transition: border-color .15s, background .15s; }
.chip--link:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }

/* CTA в конце кейса */
.case-cta { background: #0C0E14; color: #fff; border-radius: var(--radius-xl); padding: 40px; margin: 48px 0 8px; border: 1px solid var(--border-default); }
.case-cta__h2 { color: #fff; font-family: var(--font-heading); font-size: 28px; line-height: 1.2; font-weight: 600; margin: 0; max-width: 24ch; }
.case-cta__text { color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.55; max-width: 56ch; margin: 14px 0 24px; }
.case-cta__more { display: inline-block; margin-left: 18px; color: rgba(255, 255, 255, .74); font-size: 14px; }
.case-cta__more:hover { color: #fff; }

@media (max-width: 720px) {
  .case__stats { grid-template-columns: 1fr 1fr; }
  .case-cta { padding: 28px 22px; }
  .case-cta__h2 { font-size: 24px; }
  .case-cta__more { display: block; margin: 16px 0 0; }
}

/* ============ STATUS PAGES (404 / 500 / thanks) ============ */
.status-page { max-width: 620px; margin: 8px auto; text-align: center; padding: 48px 0 40px; }
.status-page__badge { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.status-page__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 32px; font-weight: 700; line-height: 1;
}
.status-page h1 { font-size: 40px; line-height: 1.08; margin: 14px 0 0; font-weight: 700; }
.status-page__lead { font-size: 18px; color: var(--text-secondary); margin: 16px auto 0; max-width: 48ch; }
.status-page__body { color: var(--text-secondary); margin-top: 12px; }
.status-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.status-page__nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border-default); }
.status-page__nav a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.status-page__nav a:hover { color: var(--text-primary); text-decoration: none; }
@media (max-width: 720px) { .status-page h1 { font-size: 32px; } }

/* ============ LEGAL / DOC PAGES (политика, соглашение) ============ */
.legal__date { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
.article__body h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: -.01em; color: var(--text-primary); margin: 26px 0 8px; }
.article__body ol { margin: 0 0 14px; padding-left: 22px; }
.article__body ol li { margin-bottom: 6px; }
.article__body a { color: var(--accent); }
.article__body hr { border: 0; border-top: 1px solid var(--border-default); margin: 28px 0; }
.article__toc { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 18px 22px; margin: 0 0 28px; }
.article__toc-title { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px; }
.article__toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.article__toc li { margin-bottom: 4px; }

/* ============ CONTACT + FORM (дизайн-система: components/form-cta, field) ============ */
.contact { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 32px; align-items: start; }
.contact__side { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.contact__card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); transition: border-color .15s;
}
.contact__card:hover { border-color: var(--accent); text-decoration: none; }
.contact__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact__value { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.contact__hours { font-size: 14px; color: var(--text-muted); margin: 4px 0 0; }

.form {
  padding: 32px; background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.form__h { font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; margin: 0 0 24px; }
.field { margin: 0 0 14px; }
.lab { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--text-primary); margin: 0 0 6px; }
.lab__req { color: var(--error); }
.field__hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.ctl {
  display: block; width: 100%; padding: 11px 14px; font-family: var(--font-body);
  font-size: 14px; line-height: 1.4; color: var(--text-primary); background: var(--surface-card);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ctl::placeholder { color: var(--text-muted); }
.ctl:hover { border-color: var(--border-strong); }
.ctl:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.ctl { min-height: 110px; resize: vertical; }

/* флажок согласия: по умолчанию снят — согласие даётся действием, а не за человека */
.opt { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 20px; cursor: pointer; }
.opt span { font-size: 12px; line-height: 1.45; color: var(--text-secondary); }
.opt a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.cbx {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0;
  background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background-repeat: no-repeat; background-position: center; background-size: 13px 13px;
  cursor: inherit; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cbx:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 8.4l3 3 6.2-6.6'/%3E%3C/svg%3E");
}
.cbx:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent); }
.form__submit { display: flex; width: 100%; justify-content: center; }
.form__trust { font-size: 12px; line-height: 1.4; color: var(--text-muted); text-align: center; margin: 12px 0 0; }
.form__error { font-size: 12px; color: var(--error); margin: 6px 0 0; }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__side { max-width: none; }
}

/* ============ FOOTER: юр. ссылки и реквизиты ============ */
/* юр. ссылки — служебная строка, а не навигация: приглушённые, без акцента */
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 14px 0 0; }
.site-footer__legal a { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.site-footer__legal a:hover { color: var(--text-primary); text-decoration: none; }
/* разделитель между ссылками; скрыт, когда строка переносится на узком экране */
.site-footer__legal a + a { position: relative; padding-left: 13px; }
.site-footer__legal a + a::before {
  content: '·'; position: absolute; left: 0; color: var(--border-strong);
}
.site-footer__req { color: var(--text-muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; max-width: 46ch; }
/* почта в реквизитах — тем же приглушённым, что и остальная строка */
.site-footer__req a { color: var(--text-muted); }
.site-footer__req a:hover { color: var(--text-primary); text-decoration: none; }
/* пока подвал помещается в строку, правый блок прижат к краю */
@media (min-width: 900px) {
  .site-footer__meta, .site-footer__req { text-align: right; }
  .site-footer__req { margin-left: auto; }
}
