/* =========================================================
   АБР Право — лендинг
   Стиль «Современный и чистый»: светло-серый фон, белые
   карточки, один акцентный цвет (изумруд), шрифт Onest.
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ECEFF1;
  --bg-2: #E2E6E9;
  --card: #FFFFFF;
  --field: #F6F7F8;
  --ink: #0E1116;
  --ink-2: #2A2F36;
  --muted: #5D6470;
  --muted-2: #8A919B;
  --line: #DCE0E5;
  --line-2: #E9ECEF;

  --accent: #0B6B53;
  --accent-600: #095C47;
  --accent-700: #074A3A;
  --mint: #DCEEE6;
  --mint-2: #EEF6F2;

  --deep: #0C2620;
  --deep-2: #14392F;
  --deep-line: rgba(234, 242, 238, .12);
  --on-deep: #EAF2EE;
  --on-deep-muted: #A6BEB4;
  --mint-on-deep: #8ED5B7;

  --danger: #B23A27;
  --danger-bg: #FBEDEA;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 10px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .06);
  --shadow-md: 0 14px 36px -16px rgba(14, 17, 22, .22);
  --shadow-lg: 0 40px 100px -24px rgba(9, 20, 16, .45);

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --gap: clamp(12px, 1.4vw, 18px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: var(--accent-700); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border: 0; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); }
.btn--soft { background: var(--bg); color: var(--ink); }
.btn--soft:hover { background: var(--bg-2); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: var(--r-xs); }
.btn--block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  font: inherit; text-align: left;
}
.link:hover { color: var(--accent-700); }
.link--muted { color: var(--muted); }
.link--muted:hover { color: var(--ink); }

.more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
}
.more-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--ink);
  cursor: pointer; transition: background-color .2s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn .icon { width: 20px; height: 20px; }

.card { background: var(--card); border-radius: var(--r-lg); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: var(--mint); color: var(--accent);
  font-size: 13.5px; font-weight: 600; line-height: 1.2;
  padding: 8px 14px; border-radius: 999px;
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(11, 107, 83, .45);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 107, 83, .45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(11, 107, 83, 0); }
}
.tag {
  display: inline-flex; align-self: flex-start;
  background: var(--mint); color: var(--accent);
  font-size: 12.5px; font-weight: 600; line-height: 1.25;
  padding: 6px 11px; border-radius: 999px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--mint-on-deep); }

.h2 { font-size: clamp(30px, 3.7vw, 50px); letter-spacing: -.032em; line-height: 1.06; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--muted); max-width: 52ch; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  padding-top: 12px;
}
.header__bar {
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 10px 0 20px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-radius: var(--r-md);
  transition: box-shadow .35s var(--ease), background-color .35s;
}
.header.is-scrolled .header__bar { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, .94); }

.logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font-weight: 700; font-size: 19px; letter-spacing: -.025em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.logo__mark {
  width: 16px; height: 16px; border-radius: 5px; background: var(--accent);
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(90deg); }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  position: relative;
  padding: 9px 13px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding: 8px 4px; border-radius: 10px;
  transition: color .2s;
}
.header__phone .icon { width: 18px; height: 18px; color: var(--accent); }
.header__phone:hover { color: var(--accent); }
.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: var(--bg); cursor: pointer;
}
.burger .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(12px, 1.4vw, 18px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
}
.hero__main {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  min-height: clamp(440px, 40vw, 560px);
  padding: clamp(26px, 4vw, 56px);
}
.hero__top, .hero__bottom { display: flex; flex-direction: column; gap: 24px; }
.hero__title {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.02; letter-spacing: -.04em; font-weight: 600;
}
.hero__title .accent { color: var(--accent); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }
.hero__lead { font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.6; color: var(--muted); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__price {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(22px, 2.8vw, 36px);
}
.price-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.price-head h2 { font-size: 21px; letter-spacing: -.02em; }
.hero__price-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  font-size: 13.5px; color: var(--muted);
}

/* segmented control with sliding thumb */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg); border-radius: 12px; padding: 4px;
}
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(14, 17, 22, .14);
  transition: transform .45s var(--ease);
}
[data-aud="yur"] .seg__thumb { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 14px; border-radius: 9px;
  font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--muted); white-space: nowrap;
  transition: color .25s;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button:hover { color: var(--ink); }
.seg button:focus-visible { outline-offset: 0; }
.seg--lg { align-self: flex-start; }
.seg--lg button { padding: 12px 18px; font-size: 15px; }

/* price rows (shared by hero card and price list) */
.prow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--line-2);
  font-size: 15.5px; line-height: 1.45;
}
.prow > span:first-child { min-width: 0; }
.prow small { display: block; color: var(--muted-2); font-size: 13.5px; margin-top: 2px; }
.price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.price small { display: inline; font-weight: 500; color: var(--muted); font-size: 13px; margin: 0; }
.p-yur { display: none; }
[data-aud="yur"] .p-fiz { display: none; }
[data-aud="yur"] .p-yur { display: inline; }
.is-swapping .price > span { animation: priceIn .5s var(--ease); }
@keyframes priceIn { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

/* perks under hero */
.perks {
  display: grid; gap: var(--gap); margin-top: var(--gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.perk { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; }
.perk__icon, .feature__icon, .service__icon, .office__icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--mint); color: var(--accent);
}
.perk h3 { font-size: 16.5px; letter-spacing: -.015em; margin-bottom: 4px; }
.perk p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Results ---------- */
.results { padding-bottom: clamp(8px, 2vw, 16px); }
.results__card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 0; }
.stat {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.4vw, 32px);
  border-left: 1px solid var(--line-2);
}
.stat:first-child { border-left: 0; }
.stat b {
  font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight-top { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 16px 48px; align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .lead { justify-self: end; }

/* ---------- Approach ---------- */
.approach {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.approach__head { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 22px; }
.approach__head .eyebrow { margin-bottom: -8px; }
.approach__head .h2 { font-size: clamp(28px, 2.9vw, 40px); }
.approach__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.feature { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 6px; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 19.5px; letter-spacing: -.02em; }
.feature p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.service {
  appearance: none; border: 0; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px; padding: clamp(20px, 2vw, 26px);
  color: var(--ink);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service__icon { margin-bottom: 8px; transition: background-color .3s, color .3s; }
.service:hover .service__icon { background: var(--accent); color: #fff; }
.service h3 { font-size: 18.5px; letter-spacing: -.02em; }
.service p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.service__foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.service__foot .price { font-size: 15.5px; }
.service__go {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  transition: background-color .3s, color .3s, transform .45s var(--ease);
}
.service__go .icon { width: 18px; height: 18px; }
.service:hover .service__go { background: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 30px); }
.step__num {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 18px;
}
.step__num::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
  transform-origin: left; transform: scaleX(1);
}
.js .step[data-reveal] .step__num::after { transform: scaleX(0); transition: transform 1s var(--ease) .25s; }
.js .step[data-reveal].is-in .step__num::after { transform: scaleX(1); }
.step h3 { font-size: 20px; letter-spacing: -.02em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Prices ---------- */
.prices {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.prices__side { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 22px; }
.prices__side .eyebrow { margin-bottom: -8px; }
.prices__cta { align-self: flex-start; }
.ptable { padding: 4px clamp(20px, 2.8vw, 40px) clamp(14px, 2vw, 24px); }
.pgroup h3 {
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  padding: 26px 0 10px;
}
.pgroup:first-child h3 { padding-top: 22px; }

/* ---------- Lawyer ---------- */
.lawyer {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(26px, 5vw, 72px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(142, 213, 183, .14) 0%, rgba(142, 213, 183, 0) 55%),
    var(--deep);
  color: var(--on-deep);
}
.persona {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-lg);
  background: rgba(234, 242, 238, .04);
  border: 1px solid var(--deep-line);
}
.monogram {
  aspect-ratio: 5 / 4; border-radius: 16px;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 80% at 30% 20%, rgba(142, 213, 183, .28), rgba(142, 213, 183, 0) 70%),
    linear-gradient(150deg, #1A5646 0%, #0F3A2F 100%);
  overflow: hidden;
}
.monogram span {
  font-size: clamp(72px, 9vw, 132px); font-weight: 600; letter-spacing: -.06em; line-height: 1;
  color: rgba(234, 242, 238, .9);
}
.persona__name { display: flex; flex-direction: column; gap: 6px; }
.persona__name b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.persona__name span { font-size: 14.5px; color: var(--on-deep-muted); line-height: 1.45; }
.persona__facts { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--deep-line); }
.persona__facts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.persona__facts .icon { width: 18px; height: 18px; color: var(--mint-on-deep); }

.lawyer__text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lawyer__text .eyebrow { margin-bottom: -8px; }
.lawyer__lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--on-deep-muted); max-width: 56ch; }
.quotes { display: flex; flex-direction: column; margin-top: 6px; }
.quotes li { padding: 18px 0; border-top: 1px solid var(--deep-line); display: flex; flex-direction: column; gap: 8px; }
.quotes li:last-child { padding-bottom: 0; }
.quotes p { font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.55; color: var(--on-deep); }
.quotes span { font-size: 13.5px; color: var(--mint-on-deep); font-weight: 500; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.review {
  appearance: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  display: flex; flex-direction: column; gap: 18px;
  padding: 10px 10px 22px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review__scan {
  display: block; position: relative; overflow: hidden; clip-path: inset(0 round 14px);
  aspect-ratio: 4 / 3; border-radius: 14px; background: var(--bg);
}
.review__scan::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
}
.review__scan img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.review:hover .review__scan img { transform: scale(1.05); }
.review__body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px; flex: 1; }
.review h3 { font-size: 17.5px; letter-spacing: -.02em; }
.review__meta { font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.review__quote { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.review__more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: var(--accent);
}
.review__more .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.review:hover .review__more .icon { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.faq__side { position: sticky; top: calc(var(--header-h) + 40px); display: flex; flex-direction: column; gap: 26px; }
.faq__side .eyebrow { margin-bottom: -12px; }
.ask { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.ask p { font-size: 15px; color: var(--muted); }
.ask__phone { font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.ask__phone:hover { color: var(--accent); }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--card); border-radius: var(--r-md); transition: box-shadow .3s; }
.qa.is-open { box-shadow: var(--shadow-sm); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 20px 20px 24px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
  border-radius: var(--r-md);
}
.qa__icon {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
  transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.qa__icon .icon { width: 18px; height: 18px; }
.qa__q:hover .qa__icon { background: var(--bg-2); }
.qa.is-open .qa__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.qa__a { display: grid; grid-template-rows: 1fr; }
.js .qa__a { grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.js .qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; min-height: 0; }
.qa__a p { padding: 0 24px 22px; color: var(--muted); max-width: 66ch; line-height: 1.65; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.contact-card, .form-card { display: flex; flex-direction: column; gap: 26px; padding: clamp(24px, 3.4vw, 48px); }
.contact-card .eyebrow { margin-bottom: 12px; }
.big-phone {
  font-size: clamp(28px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
  text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: color .2s;
}
.big-phone:hover { color: var(--accent); }
.offices { display: flex; flex-direction: column; }
.office { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.office:last-child { border-bottom: 1px solid var(--line-2); }
.office__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.office__body b { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.office__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; background: var(--bg);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.pill-link .icon { width: 15px; height: 15px; }
.pill-link:hover { background: var(--mint); color: var(--accent); }
.contact-note { margin-top: auto; font-size: 14px; color: var(--muted); }
.req-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border-radius: var(--r-md); background: var(--field);
}
.req-teaser b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.req-teaser span { font-size: 14px; color: var(--muted); }
.req-teaser .btn { flex: none; }

.form-card__head { display: flex; flex-direction: column; gap: 8px; }
.form-card__head h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; }
.form-card__head p { color: var(--muted); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 0; }
.field > legend { margin-bottom: 8px; }
.opt { color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--field); color: var(--ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--muted-2); }
.input:hover { border-color: #C6CCD3; }
.input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(11, 107, 83, .14); }
textarea.input { resize: vertical; min-height: 100px; }
.field.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(178, 58, 39, .1); }
.field__err { font-size: 13px; color: var(--danger); }

.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; cursor: pointer; }
.radios input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.radios span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14.5px; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.radios label:hover span { border-color: #C6CCD3; }
.radios input:checked + span { background: var(--mint); border-color: transparent; color: var(--accent); }
.radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border-radius: 7px;
  border: 1.5px solid #B7BEC6; background: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); transition: transform .25s var(--ease);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(178, 58, 39, .1); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__error { font-size: 14px; color: var(--danger); background: var(--danger-bg); border-radius: 10px; padding: 12px 14px; }
.form__error a { color: inherit; font-weight: 600; }

.success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; }
.success:not([hidden]) { animation: priceIn .6s var(--ease); }
.success__icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mint); color: var(--accent);
}
.success__icon .icon { width: 28px; height: 28px; stroke-width: 2.2; stroke-dasharray: 24; stroke-dashoffset: 24; }
.success:not([hidden]) .success__icon { animation: pop .6s var(--ease); }
.success:not([hidden]) .success__icon .icon { animation: draw .6s var(--ease) .2s forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h4 { font-size: 22px; letter-spacing: -.02em; }
.success p { color: var(--muted); }
.success a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.footer { padding: clamp(40px, 5vw, 64px) 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr);
  gap: 32px; padding-bottom: 32px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { font-size: 14.5px; color: var(--muted); max-width: 34ch; }
.footer__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 36px; align-content: start; }
.footer__nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__nav a:hover { color: var(--ink); }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.footer__phone { font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; margin-bottom: 4px; }
.footer__phone:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.footer__copy { color: var(--muted-2); }

/* ---------- Mobile bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; grid-template-columns: auto 1fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar .btn { min-height: 50px; font-size: 15px; padding: 0 16px; }
.mbar__call .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-md);
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Modals (native <dialog>)
   ========================================================= */
dialog { padding: 0; border: 0; color: var(--ink); }
.modal {
  width: min(620px, calc(100% - 32px));
  max-width: none; max-height: calc(100dvh - 48px);
  margin: auto;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal--wide { width: min(1080px, calc(100% - 32px)); }
.modal--doc { width: min(760px, calc(100% - 32px)); }
.modal[open] { display: flex; flex-direction: column; animation: modalIn .5s var(--ease); }
.modal::backdrop { background: rgba(8, 18, 15, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open]::backdrop { animation: fadeIn .35s ease; }
.modal.is-closing { animation: modalOut .26s var(--ease-in) forwards; }
.modal.is-closing::backdrop { animation: fadeOut .26s ease forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

.modal__inner { display: flex; flex-direction: column; min-height: 0; max-height: inherit; flex: 1; }
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 32px) 0;
}
.modal__head h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.modal__head .tag { margin-bottom: 12px; }
.modal__sub { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 52ch; }
.modal__sub a { color: var(--accent); font-weight: 600; text-decoration: none; }
.modal__body {
  padding: 22px clamp(20px, 3vw, 32px) clamp(22px, 3vw, 32px);
  overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1;
}
.modal__foot { padding: 0 clamp(20px, 3vw, 32px) clamp(20px, 3vw, 28px); }
.modal__foot::before { content: ""; display: block; height: 1px; background: var(--line-2); margin-bottom: 18px; }

/* content animation inside modals */
.modal[open] .modal__body > *, .modal[open] .modal__foot { animation: priceIn .6s var(--ease) both; }
.modal[open] .modal__body > *:nth-child(2) { animation-delay: .04s; }
.modal[open] .modal__body > *:nth-child(3) { animation-delay: .08s; }
.modal[open] .modal__body > *:nth-child(4) { animation-delay: .12s; }
.modal[open] .modal__body > *:nth-child(n+5) { animation-delay: .16s; }
.modal[open] .modal__foot { animation-delay: .14s; }
.modal--doc[open] .modal__body > * { animation: none; }

.topic-chip {
  display: inline-flex; margin-bottom: 18px;
  background: var(--mint); color: var(--accent); font-size: 13.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px;
}

/* service modal */
.ms-head { display: flex; align-items: center; gap: 14px; }
.ms-head .service__icon { margin: 0; }
.ms-lead { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.ms-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 26px 0 12px; }
.ms-list { display: flex; flex-direction: column; gap: 10px; }
.ms-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.ms-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); stroke-width: 2.2; }
.ms-prices { border-radius: var(--r-md); background: var(--field); padding: 4px 18px; }
.ms-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 22px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ms-prow:first-child { border-top: 0; }
.ms-prow--head { font-size: 12.5px; font-weight: 600; color: var(--muted-2); padding: 12px 0 6px; }
.ms-prow--head span:not(:first-child) { text-align: right; }
.ms-prow .price small { display: block; }
.ms-prow .is-current { color: var(--accent); }
.ms-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* letter modal */
.letter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.letter__text { display: flex; flex-direction: column; gap: 20px; }
.letter__quotes { display: flex; flex-direction: column; gap: 16px; }
.letter__quotes p { font-size: 16px; line-height: 1.65; color: var(--ink-2); padding-left: 18px; border-left: 2px solid var(--mint); }
.letter__case { font-size: 14.5px; color: var(--muted); }
.letter__sign { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.letter__text .btn { align-self: flex-start; }
.letter__scan { border-radius: var(--r-md); overflow: hidden; background: var(--bg); border: 1px solid var(--line-2); }
.letter__scan img { width: 100%; height: auto; }

/* requisites */
.req { display: flex; flex-direction: column; }
.req > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.req > div:first-child { border-top: 0; padding-top: 0; }
.req dt { font-size: 14px; color: var(--muted); }
.req dd { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* documents */
.doc { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.doc h3 { font-size: 17px; letter-spacing: -.015em; margin: 24px 0 8px; }
.doc p + p { margin-top: 8px; }
.doc__date { font-size: 13.5px; color: var(--muted); }

/* mobile menu */
.menu {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  background: var(--bg); overflow-y: auto;
}
.menu[open] { display: block; animation: fadeIn .3s ease; }
.menu.is-closing { animation: fadeOut .22s ease forwards; }
.menu::backdrop { background: transparent; }
.menu__inner {
  min-height: 100%; display: flex; flex-direction: column; gap: 24px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.menu__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 10px 0 20px; background: #fff; border-radius: var(--r-md);
}
.menu__nav { display: flex; flex-direction: column; padding: 0 4px; }
.menu__nav a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 7vw, 34px); font-weight: 600; letter-spacing: -.03em; text-decoration: none;
}
.menu[open] .menu__nav a { animation: priceIn .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: var(--r-lg); padding: 22px; }
.menu__foot p { font-size: 14px; color: var(--muted); }

/* =========================================================
   Motion: page intro + reveal on scroll
   ========================================================= */
.js .hero .line > span { transform: translateY(105%); }
.js [data-hero] { opacity: 0; transform: translateY(18px); }
.js.is-ready .hero .line > span {
  transform: none;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.js.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* card hover transforms must win over the reveal transform once shown */
.js .service.is-in:hover, .js .review.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero .line > span, .js [data-hero], .js [data-reveal] { opacity: 1; transform: none; }
  .chip::before { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

/* small desktop / large tablet */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { min-height: 220px; }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review__scan { aspect-ratio: 16 / 9; }
}

/* tablet */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__main { min-height: 0; gap: 40px; }
  .hero__title { font-size: clamp(44px, 7.4vw, 70px); }
  .hero__price .prows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .prices__side .seg--lg { justify-self: start; }
  .approach, .prices, .faq { grid-template-columns: minmax(0, 1fr); }
  .approach__head, .prices__side, .faq__side { position: static; }
  .approach__head .h2 { max-width: 22ch; }
  .prices__side { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; }
  .prices__side > .eyebrow, .prices__side > .h2, .prices__side > .lead { grid-column: 1 / -1; }
  .prices__side .seg--lg { grid-column: 1; }
  .prices__cta { grid-column: 2; grid-row: 4; justify-self: end; }
  .faq__side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px; }
  .faq__side .eyebrow { grid-column: 1; margin-bottom: -18px; }
  .faq__side .h2 { grid-column: 1; }
  .faq__side .ask { grid-column: 2; grid-row: 1 / span 2; }
  .lawyer { grid-template-columns: minmax(0, 1fr); }
  .persona { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 20px 24px; }
  .persona .monogram { grid-row: 1 / span 2; aspect-ratio: 1; }
  .persona__facts { padding-top: 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

/* small tablet */
@media (max-width: 820px) {
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .section-head .lead { justify-self: start; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  /* не grid: Chrome считает строку под скан высотой в пару пикселей, и текст ложится поверх картинки */
  .letter { display: flex; flex-direction: column; }
  .letter__scan { order: -1; flex: none; max-height: 52vh; overflow-y: auto; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .perk { padding: 18px 20px; align-items: center; }
}

/* phone */
@media (max-width: 680px) {
  :root { --header-h: 68px; }
  .header { padding-top: 8px; }
  .header__bar { height: 60px; padding: 0 8px 0 16px; gap: 8px; }
  .header__phone-text, .header__cta { display: none; }
  .header__phone { width: 44px; height: 44px; justify-content: center; background: var(--mint); border-radius: 12px; padding: 0; }
  .header__phone .icon { width: 20px; height: 20px; }
  .logo { font-size: 18px; }

  .hero__main { padding: 26px 22px 24px; gap: 32px; }
  .hero__title { font-size: clamp(36px, 10.6vw, 48px); letter-spacing: -.035em; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__price { padding: 22px 20px; }
  .hero__price .prows { display: block; }
  .prow { font-size: 15px; }

  .h2 { font-size: clamp(28px, 8vw, 36px); }
  .approach__grid, .services, .steps { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; }
  .feature { padding: 22px 20px; }
  .results__card { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .stat { border-left: 0; flex-direction: row; align-items: baseline; gap: 16px; padding: 18px 20px; }
  .stat + .stat { border-top: 1px solid var(--line-2); }
  .stat b { font-size: 28px; flex: 0 0 38%; }

  .prices__side { display: flex; align-items: stretch; }
  .prices__side .seg--lg { align-self: stretch; }
  .seg--lg button { padding: 12px 10px; font-size: 14.5px; }
  .prices__cta { align-self: stretch; }
  .ptable { padding: 0 18px 10px; }
  .prow { gap: 12px; }

  .lawyer { padding: 22px 18px 26px; border-radius: var(--r-lg); }
  .persona { display: flex; align-items: stretch; padding: 16px; }
  .persona .monogram { aspect-ratio: auto; height: 160px; }
  .monogram span { font-size: 84px; }

  .reviews {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
  .review__scan { aspect-ratio: 4 / 3; }
  .review:hover { transform: none; box-shadow: none; }

  .faq__side { display: flex; align-items: stretch; }
  .req-teaser { flex-direction: column; align-items: stretch; }
  .qa__q { padding: 18px 16px 18px 20px; font-size: 16px; }
  .qa__a p { padding: 0 20px 20px; }

  .contact-card, .form-card { padding: 24px 20px; }
  .office__icon { display: none; }

  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .mbar { display: grid; }

  .modal, .modal--wide, .modal--doc {
    width: 100%; max-height: 92dvh; margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .modal[open] { animation: sheetIn .5s var(--ease); }
  .modal.is-closing { animation: sheetOut .28s var(--ease-in) forwards; }
  .modal__head { padding-top: 26px; position: relative; }
  .modal__head::before {
    content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 4px; background: var(--line);
  }
  .modal__body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .modal__foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .ms-prow { grid-template-columns: minmax(0, 1fr) auto; }
  .ms-prow--head { display: none; }
  .ms-prow--head + .ms-prow { border-top: 0; }
  .ms-prow .p-col { display: none; }
  .ms-prow .p-col.is-current { display: block; }
  .req > div { grid-template-columns: minmax(0, 1fr); }
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetOut { to { transform: translateY(100%); } }

@media (max-width: 380px) {
  .seg button { padding: 10px 10px; font-size: 13.5px; }
  .big-phone { font-size: 26px; }
}

@media (hover: none) {
  .service:hover, .review:hover { transform: none; box-shadow: none; }
  .js .service.is-in:hover, .js .review.is-in:hover { transform: none; }
}
