/* ============================================================
   Side — legalside.ru
   Дизайн-система: тон Госуслуг, изумруд/кармин, Golos Text
   ============================================================ */

:root {
  --emerald: #0C7A57;
  --emerald-dark: #095C42;
  --emerald-tint: #E7F2ED;
  --carmine: #A52A3D;
  --carmine-tint: #F7E9EB;

  --ink: #14201B;
  --muted: #5B6B64;
  --paper: #FFFFFF;
  --mist: #F4F7F5;
  --line: #E1E9E5;

  --radius: 12px;
  --radius-lg: 20px;
  --container: 1120px;
  --gap: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 27, 0.06);
  --shadow: 0 6px 24px rgba(12, 122, 87, 0.08);

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .05s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--emerald-dark); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--emerald); text-decoration: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 18px; margin-left: 8px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--emerald-dark); text-decoration: none; }
.site-nav a.is-active { color: var(--ink); }
.header-cta { margin-left: auto; padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); padding: 72px 0 56px; }
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); margin-bottom: 1.6em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-line { margin-top: 20px; font-size: 0.92rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.trust-line span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); flex: 0 0 auto; }

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { color: var(--emerald-dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

/* ---------- Карточки-ситуации ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card p { margin: 0; color: var(--ink); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--emerald-tint); color: var(--emerald-dark);
  font-weight: 700; font-size: 1.05rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Полоса CTA ---------- */
.cta-band { background: var(--emerald); color: #fff; border-radius: var(--radius-lg); padding: 48px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--emerald-dark); }
.cta-band .btn-primary:hover { background: #f0f5f2; }

/* ---------- Проза (about, professional, юрдоки) ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.callout { background: var(--emerald-tint); border-left: 3px solid var(--emerald); border-radius: 8px; padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Таблица цен ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.price-card.is-free { border-color: var(--emerald); box-shadow: var(--shadow); }
.price-card .price { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 8px 0 4px; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 6px; border-left: 2px solid var(--emerald); border-bottom: 2px solid var(--emerald); transform: rotate(-45deg); }

/* ---------- Футер ---------- */
.site-footer { background: var(--ink); color: #c9d4cf; padding: 56px 0 32px; margin-top: 40px; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-tagline { color: #9fb0a9; font-size: 0.95rem; max-width: 300px; margin-top: 14px; }
.footer-col h4 { color: #8ea69c; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #c9d4cf; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 24px; font-size: 0.86rem; color: #8ea69c; }
.footer-legal a { color: #a9bbb4; }
.footer-legal a:hover { color: #fff; }
.footer-requisites { margin-bottom: 8px; }
.footer-links { margin-bottom: 14px; }
.footer-disclaimer { line-height: 1.55; max-width: 780px; margin-bottom: 14px; }
.footer-copy { margin: 0; }

/* ---------- Доступность / отзывчивость ---------- */
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 860px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .cta-band { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
