@font-face { font-family: "Source Serif"; src: url(fonts/serif-cyr.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif"; src: url(fonts/serif-lat.woff2) format("woff2"); font-weight: 200 900; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-cyr.woff2) format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-lat.woff2) format("woff2"); font-weight: 200 800; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --on-dark-accent: #a9c1ec;
  --paper: #f6f7f9;
  --tint: #eaedf2;
  --ink: #0f1a2c;
  --ink-2: #36405a;
  --muted: #5d6679;
  --line: #d3d9e3;
  --accent: #1f4b99;
  --dark: #0e1b33;
  --dark-2: #16264a;
  --on-dark: #e9eef7;
  --on-dark-muted: #9eabc4;
  --line-dark: #263a63;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.1; }
h2 { font-size: clamp(30px, 4vw, 46px); text-wrap: balance; }
h1, h3 { text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.section--dark ::selection, .menu ::selection { background: var(--on-dark-accent); color: var(--dark); }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
input, textarea { caret-color: var(--on-dark-accent); }
html { scrollbar-color: #aeb8c9 var(--paper); }
.case__result, .facts dt, .contact__phone, .creds dd { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark-accent); }
.head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--light { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark-accent); border-color: var(--on-dark-accent); color: var(--dark); }

/* Шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(246, 247, 249, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
.top.is-scrolled { box-shadow: 0 6px 24px rgba(15, 26, 44, .08); background: rgba(246, 247, 249, .97); }
.top__in { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s; }
.top.is-scrolled .top__in { height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; margin-right: auto; }
.brand__txt { display: flex; flex-direction: column; }
.mark { flex: none; width: 30px; height: 39px; fill: none; stroke-width: 12; }
.mark__stem { stroke: currentColor; }
.mark__o { stroke: var(--accent); }
.menu-open .top .mark__o { stroke: var(--on-dark-accent); }
.brand__name { font: 600 20px/1.1 var(--serif); white-space: nowrap; }
.brand__role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; white-space: nowrap; font-size: 14px; text-decoration: none; color: var(--ink-2); padding: 8px 8px; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.nav a:hover, .nav a.is-current { color: var(--accent); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.top__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.top__phone:hover { color: var(--accent); }

/* Бургер */
.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s cubic-bezier(.7, 0, .2, 1), opacity .2s, top .35s cubic-bezier(.7, 0, .2, 1); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; right: 17px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Полноэкранное меню */
.menu { position: fixed; inset: 0; z-index: 35; background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; clip-path: circle(0 at calc(100% - 38px) calc(38px + env(safe-area-inset-top, 0px))); visibility: hidden; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 38px) calc(38px + env(safe-area-inset-top, 0px))); visibility: visible; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu-open .top { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }
.menu-open .top .brand, .menu-open .top .burger, .menu-open .top .top__phone { color: var(--on-dark); }
.menu-open .top .brand__role { color: var(--on-dark-muted); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font: 600 clamp(28px, 7vw, 40px)/1.15 var(--serif); text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s cubic-bezier(.2, .7, .2, 1), color .2s; }
.menu__nav a:hover, .menu__nav a.is-current { color: var(--on-dark-accent); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(1) { transition-delay: .15s; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: .2s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: .25s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: .3s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: .35s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: .4s; }
.menu-open .menu__nav a:nth-child(7) { transition-delay: .45s; }
.menu-open .menu__nav a:nth-child(8) { transition-delay: .5s; }
.menu__foot { margin-top: 32px; opacity: 0; transition: opacity .4s; }
.menu-open .menu__foot { opacity: 1; transition-delay: .55s; }
.menu__phone { font: 600 26px/1.2 var(--serif); color: #fff; text-decoration: none; }
.menu__msg { display: flex; gap: 10px; margin: 16px 0; }
.menu__msg a { flex: 1; text-align: center; padding: 12px; border: 1px solid var(--line-dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu__foot p { font-size: 14px; color: var(--on-dark-muted); }
body.menu-open { overflow: hidden; }

/* Первый экран */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); }
.hero__in { display: grid; grid-template-columns: 1fr 440px; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); }
.hero__lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__note { margin-top: 14px; font-size: 15px; color: var(--accent); font-weight: 600; }
.creds { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.creds dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.creds dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.creds div:nth-child(3) { grid-column: 1 / -1; }
.hero__photo { margin: 0; position: relative; }
.hero__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent); z-index: -1; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Направления */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.split__col { border-top: 2px solid var(--ink); padding-top: 26px; }
.split__col h3 { font: 600 clamp(26px, 3vw, 32px)/1.15 var(--serif); }
.split__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.list { list-style: none; margin: 24px 0 0; padding: 0; }
.list li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 27px; width: 14px; height: 1px; background: var(--accent); }

/* Практика */
.tabs { display: inline-flex; border: 1px solid var(--line-dark); }
.tabs__btn { background: none; border: 0; color: var(--on-dark-muted); font: 600 15px/1 var(--sans); padding: 14px 20px; cursor: pointer; }
.tabs__btn span { font-weight: 400; margin-left: 6px; opacity: .7; }
.tabs__btn.is-active { background: var(--on-dark); color: var(--dark); }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.cases[hidden] { display: none; }
.case { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.case__tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-accent); }
.case h3 { font: 600 clamp(21px, 2.1vw, 25px)/1.25 var(--serif); color: #fff; }
.case > p:not([class]) { color: var(--on-dark-muted); font-size: 16px; }
.case details { border-top: 1px solid var(--line-dark); padding-top: 12px; }
.case summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--on-dark); list-style: none; }
.case summary::-webkit-details-marker { display: none; }
.case summary::after { content: "+"; margin-left: 8px; color: var(--on-dark-accent); }
.case details[open] summary::after { content: "−"; }
.case details p { margin-top: 10px; color: var(--on-dark-muted); font-size: 15px; }
.case__result { margin-top: auto; padding: 16px 0 0; border-top: 1px solid var(--line-dark); font-size: 16px; color: var(--on-dark); }
.case__result b { color: #fff; font-weight: 700; }
.js .cases:not(.is-open) .case:nth-child(n+5) { display: none; }
html:not(.js) .cases__more, html:not(.js) .tabs { display: none; }
.cases.is-open .case:nth-child(n+5) { animation: case-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes case-in { from { opacity: 0; transform: translateY(16px); } }
.cases__more { display: block; width: 100%; margin-top: 24px; min-height: 54px; background: transparent; border: 1px solid var(--line-dark); color: var(--on-dark); font: 600 15px/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.cases__more:hover { border-color: var(--on-dark); background: var(--dark-2); }
.cases__more[hidden] { display: none; }
.cases__note { margin-top: 24px; font-size: 14px; color: var(--on-dark-muted); }

/* Научные труды */
#pubs + #price { padding-top: 0; }
.pubs { list-style: none; margin: 0; padding: 0; counter-reset: pub; border-top: 1px solid var(--ink); }
.pub { counter-increment: pub; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pub::before { content: counter(pub, decimal-leading-zero); font: 600 24px/1.2 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.pub__body { max-width: 820px; }
.pub__title { font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--serif); text-wrap: pretty; }
.pub__authors { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pub__src { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pub__pdf { align-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.pub__pdf::before { content: "PDF"; font-size: 11px; letter-spacing: .08em; color: var(--accent); transition: color .2s; }
.pub__pdf:hover { background: var(--ink); color: var(--paper); }
.pub__pdf:hover::before { color: var(--on-dark-accent); }
.js .pubs:not(.is-open) .pub:nth-child(n+7) { display: none; }
.pubs.is-open .pub:nth-child(n+7) { animation: case-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.pubs__more { display: block; width: 100%; margin-top: 24px; min-height: 54px; background: transparent; border: 1px solid var(--line); color: var(--ink); font: 600 15px/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.pubs__more:hover { border-color: var(--ink); background: var(--tint); }
.pubs__more[hidden] { display: none; }

/* Статья в окне */
.doc-dialog { width: min(1100px, calc(100% - 32px)); height: calc(100% - 32px); max-height: none; padding: 0; border: 0; background: var(--dark); color: var(--on-dark); }
.doc-dialog[open] { display: flex; flex-direction: column; animation: fade-up .35s cubic-bezier(.16, 1, .3, 1); }
.doc-dialog::backdrop { background: rgba(8, 14, 28, .82); }
.doc-dialog__bar { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line-dark); }
.doc-dialog__title { flex: 1; min-width: 0; font: 600 16px/1.3 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-dialog__dl { flex: none; font-size: 14px; font-weight: 600; color: var(--on-dark-accent); }
.doc-dialog form { margin: 0; }
.doc-dialog__close { width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); color: var(--on-dark); font: 400 26px/1 var(--sans); cursor: pointer; }
.doc-dialog__close:hover { border-color: var(--on-dark); }
.doc-dialog__frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.steps__n { display: block; font: 600 44px/1 var(--serif); color: var(--accent); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Об адвокате */
.about { display: grid; grid-template-columns: 400px 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 600px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: 16px; }
.facts dt { font: 600 clamp(26px, 3vw, 34px)/1 var(--serif); }
.facts dd { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.about__org { margin-top: 32px; font-size: 15px; color: var(--muted); }

/* Стоимость */
.price__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.price__main { background: var(--dark); color: var(--on-dark); padding: clamp(28px, 4vw, 44px); }
.price__main .btn { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.price__main .btn:hover { background: var(--on-dark-accent); border-color: var(--on-dark-accent); }
.price__big { font: 600 clamp(26px, 3vw, 34px)/1.2 var(--serif); margin-bottom: 18px; }
.price__big { color: #fff; }
.price__main p:not(.price__big) { color: var(--on-dark-muted); margin-bottom: 28px; }
.price__list { list-style: none; margin: 0; padding: 0; }
.price__list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.price__cap { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--ink); }

/* Вопросы */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 26px/1 var(--sans); color: var(--accent); }
.faq__list details[open] summary::after { content: "−"; }
.faq__list details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* Контакты */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.contact__lead { margin-top: 18px; color: var(--on-dark-muted); }
.contact__phone { display: inline-block; margin-top: 28px; font: 600 clamp(28px, 3.6vw, 40px)/1.1 var(--serif); color: #fff; text-decoration: none; }
.contact__phone:hover { color: var(--on-dark-accent); }
.contact__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.contact__msg a { padding: 10px 18px; border: 1px solid var(--line-dark); text-decoration: none; font-size: 15px; font-weight: 600; }
.contact__msg a:hover { border-color: var(--on-dark); }
.contact__msg span { font-size: 14px; color: var(--on-dark-muted); margin-left: 6px; }
.contact__list { margin: 36px 0 0; }
.contact__list div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.contact__list dt { color: var(--on-dark-muted); font-size: 14px; }
.contact__list dd { margin: 0; }

.form { background: var(--dark-2); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.form h3 { font: 600 26px/1.2 var(--serif); color: #fff; }
.form__sub { color: var(--on-dark-muted); font-size: 15px; margin-top: -6px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.form__opt { font-size: 12px; opacity: .7; }
.form input[type=text], .form input[type=tel], .form textarea { width: 100%; background: transparent; border: 1px solid var(--line-dark); color: #fff; font: 400 16px/1.4 var(--sans); padding: 13px 14px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--on-dark-accent); }
.form textarea { resize: vertical; }
.form .form__check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
.form__check input { margin-top: 2px; accent-color: var(--on-dark-accent); width: 16px; height: 16px; flex: none; }
.form__hp { position: absolute; left: -9999px; }
.form__status { font-size: 14px; min-height: 1.4em; }
.form__status.is-ok { color: #9fcf9a; }
.form__status.is-err { color: #f0a59b; }
.form .btn { align-self: flex-start; }

.map { margin-top: clamp(40px, 6vw, 64px); }
.map__box { position: relative; height: 360px; border: 1px solid var(--line-dark); background: var(--dark-2); }
.map__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map__box.is-loaded .map__ph { visibility: hidden; }
.map__ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.map__addr { font: 600 22px/1.3 var(--serif); color: #fff; }
.map__note { font-size: 13px; color: var(--on-dark-muted); }
.map__note a { color: var(--on-dark-accent); }
.map__load[hidden] { display: none; }

/* Подвал */
.foot { background: #0a1427; color: var(--on-dark-muted); border-top: 1px solid var(--line-dark); font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.foot__name { font: 600 26px/1.1 var(--serif); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 14px; }
.foot__name .mark { width: 34px; height: 44px; }
.foot__name .mark__o { stroke: var(--on-dark-accent); }
.foot__role { margin-top: 12px; max-width: 300px; line-height: 1.5; }
.foot__free { margin-top: 16px; color: var(--on-dark-accent); font-weight: 600; font-size: 14px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 4px; }
.foot__col a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.foot__col a:hover { color: #fff; }
.foot__col span { line-height: 1.45; }
.foot__bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.5; color: #7f8ca6; }
.foot__bottom p { max-width: 900px; }

.dock { display: none; }

/* Кнопка «Наверх» */
.totop { opacity: 0; pointer-events: none; transform: translateY(8px); position: fixed; right: 24px; bottom: 24px; z-index: 25; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); border: 1px solid rgba(238, 234, 226, .25); text-decoration: none; transition: background .2s, opacity .2s, transform .2s; }
.totop:hover { background: var(--accent); }
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* Первый экран: один авторский момент при загрузке */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; animation: word-rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes word-rise { from { transform: translateY(105%); } }
.hero__lead, .hero__actions, .hero__note, .creds { animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) both; }
.hero__lead { animation-delay: .55s; }
.hero__actions { animation-delay: .65s; }
.hero__note { animation-delay: .72s; }
.creds { animation-delay: .8s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
.hero__photo img { animation: photo-in 1.1s cubic-bezier(.16, 1, .3, 1) .15s both; }
@keyframes photo-in { from { clip-path: inset(100% 0 0 0); transform: scale(1.06); } to { clip-path: inset(0); transform: none; } }
.hero__photo::before { animation: frame-draw 1s cubic-bezier(.65, 0, .35, 1) .9s both; }
@keyframes frame-draw { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0); } }


/* Плавное раскрытие ответов и «Что сделали» */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__list details::details-content, .case details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.16, 1, .3, 1), content-visibility .35s allow-discrete; }
  .faq__list details[open]::details-content, .case details[open]::details-content { height: auto; }
}

/* Форма: ошибки и экран успеха */
.form__err { font-size: 13px; color: #f3b1a8; min-height: 0; }
.form__err:empty { display: none; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #f3b1a8; }
.form__done { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; outline: none; }
.form__done[hidden] { display: none; }
.form__done-title { font: 600 26px/1.2 var(--serif); color: #fff; }
.form__done-text { color: var(--on-dark); }
.form__done-alt { color: var(--on-dark-muted); font-size: 14px; }
.form__done-alt a { color: var(--on-dark-accent); }
.form__body { display: flex; flex-direction: column; gap: 16px; }
.form__body[hidden] { display: none; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 10px; pointer-events: none; }

/* Удостоверение */
.cert { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cert__thumb { position: relative; display: block; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; -webkit-appearance: none; appearance: none; border-radius: 0; }
.cert__thumb img { width: 100%; transition: opacity .2s; }
.cert__zoom { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; background: var(--dark); color: var(--on-dark); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.cert__thumb:hover .cert__zoom, .cert__thumb:focus-visible .cert__zoom { opacity: 1; }
.cert__text p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.cert__link { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.cert-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; background: var(--dark); color: var(--on-dark-muted); overflow: auto; }
.cert-dialog::backdrop { background: rgba(8, 14, 28, .82); }
.cert-dialog img { display: block; width: 100%; }
.cert-dialog p { padding: 16px 20px 0; font-size: 14px; }
.cert-dialog p a { color: var(--on-dark-accent); }
.cert-dialog form { padding: 16px 20px 20px; }
.cert-dialog[open] { animation: fade-up .35s cubic-bezier(.16, 1, .3, 1); }
@media (max-width: 560px) {
  .cert { grid-template-columns: 1fr; }
}

/* Уведомление о cookie */
.cookie { position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 44; width: min(440px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; background: var(--dark); color: var(--on-dark); border: 1px solid var(--line-dark); box-shadow: 0 16px 40px rgba(15, 26, 44, .28); font-size: 14px; line-height: 1.5; animation: fade-up .4s cubic-bezier(.16, 1, .3, 1) 1.2s both; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--on-dark-accent); }
.cookie__btns { display: flex; gap: 10px; }
.cookie__no { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.cookie__no:hover { background: var(--dark-2); border-color: var(--on-dark); }

/* Адаптив */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (min-width: 1241px) {
  .top__cta { display: none; }
  .menu { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .top__in { height: 60px; gap: 16px; }
  .top__cta { display: none; }
  .hero__in, .split, .about, .price__grid, .faq, .contact { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 360px; }
  .hero__photo::before { inset: 12px -12px -12px 12px; }
  .creds { grid-template-columns: 1fr; gap: 14px; }
  .cases { grid-template-columns: 1fr; }
  .js .cases:not(.is-open) .case:nth-child(4) { display: none; }
  .cases.is-open .case:nth-child(4) { animation: case-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pub { grid-template-columns: 44px 1fr; gap: 12px 16px; }
  .pub::before { font-size: 20px; }
  .pub__pdf { grid-column: 2; justify-self: start; }
  .js .pubs:not(.is-open) .pub:nth-child(n+5) { display: none; }
  .pubs.is-open .pub:nth-child(n+5) { animation: case-in .45s cubic-bezier(.2, .7, .2, 1) both; }
  .about__photo { max-width: 360px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts div { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; }
  .facts dd { margin: 0; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--dark); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dock a { color: var(--on-dark); text-align: center; padding: 18px 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
  .dock a:first-child { background: var(--accent); }
  .dock { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .dock.is-hidden { transform: translateY(100%); }
  .totop { transition: background .2s, opacity .2s, transform .2s, bottom .3s; }
  .dock-hidden .totop { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .cookie { left: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .dock-hidden .cookie { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .totop { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .top__phone { font-size: 14px; }
  .brand__name { font-size: 18px; }
  .brand { gap: 10px; }
  .mark { width: 26px; height: 34px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .price__list li { flex-direction: column; gap: 2px; }
  .tabs { width: 100%; }
  .tabs__btn { flex: 1; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .map__box { height: 300px; }
}
/* Планшет в портретной ориентации: первый экран и «Об адвокате» в две колонки */
@media (min-width: 700px) and (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr 280px; }
  .hero__photo { order: 0; max-width: none; }
  .about { grid-template-columns: 260px 1fr; }
  .about__photo { max-width: none; }
  .cert { grid-template-columns: 1fr; }
  .cert__thumb { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
/* Узкие телефоны (iPhone SE 1-го поколения и т. п.): номер есть в нижней панели «Позвонить» */
@media (max-width: 359px) {
  .top__phone { display: none; }
  .hero h1 { font-size: 34px; }
  .foot__grid { grid-template-columns: 1fr; }
}
/* Узкий ноутбук / Surface (861–1000): фото первого экрана уже, чтобы колонки не вылезали за край */
@media (min-width: 861px) and (max-width: 1000px) {
  .hero__in { grid-template-columns: 1fr 340px; }
  .about { grid-template-columns: 320px 1fr; }
}
/* Телефоны до 400px: шапка со знаком, телефоном и бургером в одну строку */
@media (max-width: 400px) {
  .top__in { gap: 12px; }
  .top__phone { font-size: 13px; }
}
