/* Закон и Порядок — строгий юридический, бриф 11.11.2026 */
:root {
  --paper: #F3EEE4;
  --card: #FFFCF6;
  --navy: #1A3050;
  --accent: #16345C;
  --ink: #171D28;
  --muted: #5B6170;
  --line: #C9BEA8;
  --brass: #A8834A;
  --ok: #2F6B4F;
  --err: #9A3B2E;
  --white: #FFFCF6;
  --max: 1200px;
  --pad: 24px;
  --gutter: 24px;
  --section: 120px;
  --header-h: 88px;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(23, 29, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip:focus { left: .5rem; top: .5rem; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .26s ease-out both; }
::view-transition-new(root) { animation: vt-in .26s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
header.site { view-transition-name: site-header; }
footer.site { view-transition-name: site-footer; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 228, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: min-height .2s ease, border-color .2s ease;
}
header.site.is-slim { border-bottom-color: var(--line); }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
header.site.is-slim .header-row { min-height: 64px; }

.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; flex: 0 0 36px;
  border: 1.5px solid var(--navy); display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 1.05rem; line-height: 1.15;
}
.logo-name span {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

nav.primary { display: flex; align-items: center; gap: 1.25rem; }
nav.primary a {
  text-decoration: none; color: var(--ink); font-size: .95rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
nav.primary a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--brass); }

.header-phone {
  text-decoration: none; color: var(--ink); font-weight: 600;
  min-height: 48px; display: inline-flex; align-items: center; white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.2rem;
  background: var(--navy); color: var(--white); text-decoration: none;
  border: 1px solid var(--navy); border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  font-family: inherit; transition: background .12s ease, transform .08s ease;
}
.btn:hover { background: #12243c; color: var(--white); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(26, 48, 80, .06); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: #efe8d8; color: var(--navy); }

.nav-toggle {
  display: none; min-width: 48px; min-height: 48px;
  border: 1px solid var(--line); background: transparent;
  font: inherit; border-radius: var(--radius); cursor: pointer;
}

/* Type */
.eyebrow, .section-kicker {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .75rem;
}
h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; line-height: 1.15; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
h1 { font-size: 56px; margin: 0 0 1rem; }
h2 { font-size: 40px; margin: 0 0 1rem; }
h3 { font-size: 24px; margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; color: #2c3340; max-width: 68ch; margin: 0 0 1.6rem; }
.note { color: var(--muted); font-size: .9rem; }
.num { font-family: "Source Serif 4", Georgia, serif; font-variant-numeric: tabular-nums; }

section { padding: var(--section) 0; }
.section-head { max-width: 68ch; margin-bottom: 2.4rem; }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: end;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero figure { margin: 0; }
.hero figure img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--radius); }
.hero figcaption { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* Trust strip */
.stats { background: var(--paper); border-top: 1px solid var(--brass); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.6rem 1.2rem 1.7rem; border-right: 1px solid var(--line); }
.stats-grid .stat:last-child { border-right: 0; }
.stat b {
  display: block; font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1;
  margin-bottom: .5rem; font-variant-numeric: tabular-nums; color: var(--navy);
}
.stat span { color: var(--muted); font-size: .88rem; display: block; }
.stat a { color: var(--accent); font-size: .82rem; display: inline-flex; min-height: 32px; align-items: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .45rem;
  transition: transform .16s ease, box-shadow .16s ease;
  position: relative;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
a.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: transparent; transition: background .16s ease;
}
a.card:hover::after { background: var(--brass); }
.card-icon { width: 28px; height: 28px; color: var(--navy); margin-bottom: .4rem; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: #333a48; font-size: 1rem; flex: 1; }
.card .price { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--navy); margin-top: .4rem; }
.card .more { color: var(--accent); font-size: .92rem; font-weight: 600; }

/* About / split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
.split p { margin: 0 0 1rem; max-width: 68ch; }

.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 2rem; }
.guarantee { border-top: 2px solid var(--brass); padding-top: 1rem; }
.guarantee h3 { font-size: 1.15rem; }
.guarantee p { margin: 0; color: #333a48; font-size: 1rem; }
.check { color: var(--ok); font-weight: 600; margin-right: .35rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.step { border-top: 1px solid var(--line); padding-top: 1rem; }
.step b {
  display: block; font-family: "Source Serif 4", Georgia, serif;
  color: var(--brass); font-size: 1.4rem; margin-bottom: .4rem;
}

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; display: grid; gap: .4rem;
}
.avatar {
  width: 100%; aspect-ratio: 4/5; background: #e8e1d2;
  display: grid; place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2rem; color: var(--navy); margin-bottom: .5rem;
}
.badge {
  display: inline-block; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: #6B5228; border: 1px solid var(--brass);
  padding: .15rem .45rem; border-radius: var(--radius); width: max-content;
}

/* Reviews */
.rating-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  margin-bottom: 2rem;
}
.rating-big {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 5rem; line-height: .9; font-variant-numeric: tabular-nums;
}
.stars { color: var(--brass); letter-spacing: .08em; }

.reviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter);
}
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem;
}
.review blockquote {
  margin: 0; font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.05rem; line-height: 1.45; flex: 1;
}
.review .cite { color: var(--muted); font-size: .9rem; }
.review img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }

/* Prices */
.price-groups { display: grid; gap: 2.5rem; }
.price-table { border-top: 1px solid var(--line); }
.price-row {
  display: flex; justify-content: space-between; gap: 1.2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.price-row b { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.price-row span { max-width: 70ch; }
.price-row small { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }

/* CTA / form */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band h2, .cta-band .section-kicker { color: var(--white); }
.cta-band .section-kicker { color: #c9bea8; }
.cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .3rem; font-size: .9rem; }
input, select, textarea {
  width: 100%; min-height: 48px; border: 1px solid #8d97a8;
  background: #fff; color: var(--ink); font: inherit; padding: .6rem .75rem;
  border-radius: var(--radius);
}
textarea { min-height: 96px; resize: vertical; }
.form-note { margin: 0; font-size: .88rem; }
.form-extra { display: none; }
.form-extra.is-open { display: grid; gap: .85rem; }
details.more-fields { color: inherit; }
details.more-fields summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; }
.check-row input { width: auto; min-height: 20px; margin-top: .25rem; }
.sent { color: #d9e6d4; }
.field-error { color: #f0c7c1; font-size: .85rem; }
input.is-invalid, select.is-invalid { border-color: var(--err); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.contact-card a { display: inline-flex; min-height: 44px; align-items: center; }
.contact-card p { margin: .3rem 0; }

/* Breadcrumbs */
.crumbs {
  padding: 1.2rem 0 0; font-size: .9rem; color: var(--muted);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem 0; list-style: none; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: " / "; color: var(--line); margin: 0 .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page-hero { padding: 2.4rem 0 0; }
.page-hero h1 { max-width: 20ch; }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 1.2rem; max-width: 68ch; }
.prose li { margin: .35rem 0; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line); padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; min-height: 48px;
  display: flex; align-items: center;
}
.faq details p { margin: .4rem 0 0; max-width: 68ch; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line); padding: 2.4rem 0 6.5rem;
  font-size: .9rem; color: var(--muted);
}
footer.site strong { color: var(--ink); font-weight: 600; }
footer .legal { display: grid; gap: .4rem; max-width: 72ch; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 1.2rem 0; }
footer nav a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* Sticky mobile bar */
.sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--navy); padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.sticky-bar a { flex: 1; min-height: 52px; }

.reveal { opacity: 1; transform: none; }
.reveal.is-ready { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .42s ease, transform .42s ease; }

@media (max-width: 1100px) {
  :root { --section: 80px; --pad: 32px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .cards, .team, .reviews, .steps, .guarantees { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --section: 56px; --pad: 20px; --header-h: 72px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav.primary {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; gap: 0;
  }
  nav.primary.is-open { display: flex; }
  nav.primary a, nav.primary .header-phone { min-height: 48px; }
  .header-cta, .header-phone.desktop-only { display: none; }
  .hero-grid, .split, .cta-grid, .contacts-grid, .rating-summary { grid-template-columns: 1fr; }
  .stats-grid, .cards, .team, .steps, .guarantees { grid-template-columns: 1fr; }
  .reviews {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: .6rem; -webkit-overflow-scrolling: touch;
  }
  .review { min-width: min(86vw, 340px); scroll-snap-align: start; }
  .price-row { flex-direction: column; gap: .35rem; }
  .price-row b { text-align: left; }
  .hero figure img { aspect-ratio: 16/10; }
  .sticky-bar { display: flex; }
  footer.site { padding-bottom: 7.2rem; }
}

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