:root {
  --navy: #003462;
  --navy-deep: #002544;
  --gold: #b79248;
  --gold-soft: #d4b56a;
  --ink: #1a1f26;
  --muted: #5c6672;
  --line: rgba(0, 52, 98, 0.12);
  --paper: #ffffff;
  --wash: #f3f6f9;
  --max: 1120px;
  --header-h: 148px;
  --header-rail: 15.5rem;
  --header-side-h: 124px;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, rgba(0, 52, 98, 0.04), transparent 45%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
  -webkit-tap-highlight-color: rgba(0, 52, 98, 0.12);
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  max-width: 100%;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); color: #fff; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); }
.lead { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 34em; }
.muted { color: var(--muted); }
.demo-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 18px;
}

/* XIX-century advocacy ornaments */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 22px;
  color: var(--gold);
  max-width: 28rem;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament svg { width: 28px; height: 28px; flex-shrink: 0; opacity: 0.9; }
.motto-bar {
  border-block: 1px solid rgba(183, 146, 72, 0.45);
  background:
    linear-gradient(90deg, transparent, rgba(183, 146, 72, 0.08), transparent),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(0, 52, 98, 0.035) 11px,
      rgba(0, 52, 98, 0.035) 12px
    );
  padding: 14px 16px;
  text-align: center;
}
.motto-bar p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.motto-bar .motto-ru {
  display: block;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--navy);
}
.motto-bar .motto-la {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}
.frame-classic {
  position: relative;
  border: 1px solid rgba(183, 146, 72, 0.45);
  box-shadow: inset 0 0 0 3px rgba(0, 52, 98, 0.06);
}
.frame-classic::before,
.frame-classic::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
.frame-classic::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.frame-classic::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(183, 146, 72, 0.35);
  box-shadow: 0 1px 0 rgba(0, 52, 98, 0.08);
  /* backdrop-filter убран: на iOS Safari даёт мерцание sticky-шапки */
  padding-top: env(safe-area-inset-top, 0px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.header-inner {
  display: grid;
  grid-template-columns: var(--header-rail) minmax(0, 1fr) var(--header-rail);
  align-items: center;
  gap: 12px 12px;
  min-height: var(--header-h);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  grid-column: 1;
  width: var(--header-rail);
  height: var(--header-side-h);
  min-height: var(--header-side-h);
  box-sizing: border-box;
  text-decoration: none;
  color: var(--navy);
}
.brand:hover { color: var(--navy); }
.brand-logo {
  width: var(--header-side-h);
  height: var(--header-side-h);
  max-height: var(--header-side-h);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-rules {
  position: relative;
  width: 10px;
  height: 56px;
  margin: 0 8px;
  flex-shrink: 0;
}
.brand-rules::before,
.brand-rules::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  background: #d3d3d3;
}
.brand-rules::before { left: 0; width: 2px; }
.brand-rules::after { left: 5px; width: 1px; }
.brand-name {
  font-family: "Montserrat", var(--body), sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #003462;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: left;
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
  white-space: normal;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  flex-wrap: nowrap;
  grid-column: 2;
  min-width: 0;
}
.nav a {
  font-family: "Montserrat", var(--body), sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.25;
  letter-spacing: 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
  grid-column: 3;
  width: var(--header-rail);
  height: var(--header-side-h);
  min-height: var(--header-side-h);
  box-sizing: border-box;
}
.header-reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
}
.header-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  font-family: "Montserrat", var(--body), sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}
.header-email {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: "Montserrat", var(--body), sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}
.header-email:hover { color: var(--gold); }
.header-msgs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  gap: 6px;
}
.header-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  overflow: hidden;
  transition: opacity .15s;
}
.header-msg:hover {
  opacity: 0.88;
}
.header-msg img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: cover;
  border-radius: 0;
}
.header-msg--tg,
.header-msg--wa,
.header-msg--max {
  color: inherit;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10.6rem;
  max-width: 100%;
  align-self: center;
  box-sizing: border-box;
  min-height: 32px;
  padding: 7px 8px;
  border-radius: 4px;
  background: linear-gradient(100deg, #b79248, #c9a85a);
  color: #fff !important;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
  transition: filter .15s, transform .15s;
}
.header-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff !important;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,37,68,.64) 0%, rgba(0,52,98,.40) 48%, rgba(0,24,40,.26) 100%),
    url("../images/hero.jpg") center/cover no-repeat;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}
.hero .eyebrow {
  color: #e8d5a8;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.25);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(100deg, #b79248, #c9a85a);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.45);
  color: #fff;
}
.btn-outline {
  background: #fff;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}

/* Trust */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 22px 0;
  border-block: 3px double rgba(183, 146, 72, 0.55);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.trust-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--gold-soft);
  margin-bottom: 4px;
  line-height: 1.25;
}
.trust-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.78);
  line-height: 1.35;
}
@media (min-width: 1101px) {
  .trust-item strong {
    min-height: 3.6em;
  }
}

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--wash); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { margin: 0; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(183, 146, 72, 0.4);
  box-shadow: inset 0 0 0 3px rgba(0, 52, 98, 0.05);
  position: relative;
}
.pillar::before,
.pillar::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--gold);
  pointer-events: none;
}
.pillar::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.pillar::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.pillar p { color: var(--muted); flex: 1; margin: 0 0 18px; font-size: 0.92rem; }
.pillar .link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}
.pillar:hover .link { color: var(--gold); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-points { display: grid; gap: 14px; margin-top: 20px; }
.about-points div {
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: 0.92rem;
  color: var(--muted);
}
.about-visual {
  min-height: 360px;
  background:
    linear-gradient(105deg, rgba(0,37,68,.64) 0%, rgba(0,52,98,.40) 48%, rgba(0,24,40,.26) 100%),
    url("../images/about-visual.jpg") center/cover no-repeat;
  border: 1px solid var(--line);
}

/* Service catalog */
.service-list { display: grid; gap: 14px; }
.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  padding: 22px 22px;
  background: #fff;
  border: 1px solid rgba(183, 146, 72, 0.35);
  box-shadow: inset 0 0 0 2px rgba(0, 52, 98, 0.04);
  align-items: start;
}
.service h3 { margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: 0.92rem; }
a.service-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.service-link:visited { color: inherit; }
a.service-link:hover {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(183, 146, 72, 0.28);
}
a.service-link h3 { color: var(--navy); }
.service .price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  white-space: normal;
  text-align: right;
  line-height: 1.35;
  max-width: 11em;
}
.service-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 52em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0 0 22px; max-width: 36em; }

/* Form */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  max-width: 720px;
}
.lead-form input {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.2);
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  font: inherit;
}
.lead-form input::placeholder { color: rgba(255,255,255,.55); }
.lead-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  cursor: pointer;
}
.lead-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.lead-consent a { color: #e8d5a8; text-decoration: underline; }
.lead-consent a:hover { color: #fff; }
.form-note { font-size: 0.75rem; color: rgba(255,255,255,.55); margin-top: 10px; }

.legal-doc {
  max-width: 46em;
  color: var(--ink);
}
.legal-doc h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}
.legal-doc p, .legal-doc li { font-size: 0.95rem; line-height: 1.65; }
.legal-doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal-doc a { color: var(--navy); text-decoration: underline; }

.pd-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(183, 146, 72, 0.45);
  box-shadow: 0 10px 32px rgba(0, 37, 68, 0.18);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.45;
}
.pd-cookie p { margin: 0; flex: 1; }
.pd-cookie a { color: var(--navy); text-decoration: underline; }
.pd-cookie button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .pd-cookie { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.contact-card p { margin: 0 0 10px; color: var(--muted); }
.contact-card a { color: var(--navy); font-weight: 600; }
#map, .map-widget {
  height: 340px;
  border: 1px solid var(--line);
  background: #dde3ea;
  overflow: hidden;
}
.map-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}
.leaflet-container {
  height: 100%;
  width: 100%;
  font: inherit;
}
.rpd-map-marker {
  border-radius: 8px;
  border: 2px solid #b79248;
  box-shadow: 0 6px 18px rgba(0, 0, 52, 0.35);
  background: #000034;
  object-fit: contain;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 28px 0 90px;
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #fff; }

/* Mobile sticky */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  gap: 8px;
}
.mobile-cta .btn { flex: 1; }
.mobile-cta .header-msg {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(0, 37, 68, 0.92), rgba(0, 52, 98, 0.88)),
    var(--navy);
  color: #fff;
  padding: 56px 0 48px;
  border-bottom: 3px double rgba(183, 146, 72, 0.55);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 40em; }
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(56vh, 460px);
  display: grid;
  align-items: end;
  background: var(--navy);
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(0,37,68,.64) 0%, rgba(0,52,98,.40) 48%, rgba(0,24,40,.26) 100%),
    var(--page-hero-image, url("../images/nasledstvennye-spory.jpg")) center/cover no-repeat;
}
.page-hero--photo .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
}
.service h3 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 146, 72, 0.45);
}
.service h3 a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.prose-block p {
  margin: 0 0 14px;
  max-width: 46em;
}
.prose-block p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
  :root {
    --header-h: 88px;
    --header-rail: auto;
    --header-side-h: auto;
  }
  /* fixed надёжнее sticky на iPhone при скролле и открытом меню */
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 100vw;
  }
  body {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    justify-content: unset;
    gap: 8px 10px;
    min-height: var(--header-h);
    padding-block: 6px;
    width: min(100% - 24px, var(--max));
    margin-inline: auto;
  }
  .brand {
    grid-column: 1;
    justify-self: start;
    flex: unset;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
  }
  .brand-logo {
    width: 52px;
    height: 52px;
    max-height: 52px;
  }
  .brand-rules {
    height: 32px;
    margin: 0 6px 0 8px;
  }
  .brand-name {
    font-size: 11px;
    width: 6.2em;
    max-width: 6.2em;
    line-height: 1.2;
    white-space: normal;
  }
  .nav {
    display: none;
    grid-column: auto;
  }
  .header-contacts {
    grid-column: 2;
    justify-self: end;
    justify-items: center;
    align-items: center;
    width: auto;
    height: auto;
    max-width: 100%;
    min-height: 0;
    gap: 4px;
    flex: unset;
  }
  /* телефон в шапке на iPhone ломает сетку — он в sticky-баре внизу */
  .header-phone {
    display: none !important;
  }
  .header-reach {
    width: auto;
    gap: 0;
  }
  .header-email {
    font-size: 10px;
    width: auto;
    max-width: 11.5rem;
    white-space: nowrap;
  }
  .header-cta {
    padding: 8px 10px;
    font-size: 0.62rem;
    min-height: 36px;
    white-space: nowrap;
    line-height: 1.15;
    width: auto;
    max-width: 9.5rem;
  }
  .header-msg,
  .header-msg img {
    width: 28px;
    height: 28px;
  }
  .header-msgs { gap: 6px; min-height: 28px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    width: 44px;
    min-width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 0;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    bottom: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 37, 68, 0.12);
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    z-index: 1001;
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav.open a {
    font-size: 1rem;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    white-space: normal;
    touch-action: manipulation;
  }
  .trust-grid, .pillars { grid-template-columns: 1fr 1fr; }
  .about-grid, .contacts-grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { min-height: min(78vh, 620px); min-height: min(78dvh, 620px); }
  .hero-inner { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 40px 0 36px; }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .site-footer { padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom, 0px)); }
  .motto-bar { padding: 12px 12px; }
  .motto-bar .motto-la { letter-spacing: 0.03em; }
  .service { gap: 10px 16px; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .trust-grid, .pillars { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service .price {
    white-space: normal;
    text-align: left;
    max-width: none;
  }
  .hero { min-height: min(70vh, 560px); min-height: min(70dvh, 560px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-inner { gap: 6px 8px; }
  .header-cta {
    font-size: 0.58rem;
    padding: 7px 8px;
    white-space: normal;
    max-width: 7.2rem;
    text-align: center;
    line-height: 1.2;
  }
  .header-contacts {
    gap: 4px;
    justify-self: end;
  }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
  .brand-rules { display: none; }
  .header-contacts { width: auto; }
  .header-cta { max-width: 6.5rem; }
}
