:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --sand: #ece6da;
  --text: #1c1f24;
  --muted: #545a63;
  --line: #ddd6c8;
  --accent: #2f5d50;
  --accent-dark: #234a3f;
  --accent-soft: #e3ece8;
  --radius: 14px;
  --wrap: 1140px;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  padding-bottom: 76px; /* место под нижнюю кнопку звонка на телефоне */
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--sand { background: var(--sand); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.kicker { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ---------- черновик ---------- */
.draft-bar { background: #fff1bf; color: #5b4500; font-size: .85rem; padding: 8px 20px; text-align: center; border-bottom: 1px solid #e6cf7a; }
.ph { background: #fff1bf; box-shadow: 0 0 0 1px #d9b84a inset; border-radius: 4px; padding: 0 4px; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header__row { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.1; margin-right: auto; }
.brand__sub { white-space: nowrap; }
.brand__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.brand__sub { font-size: .7rem; color: var(--muted); letter-spacing: .04em; display: none; }
.header__phone { font-weight: 700; font-size: .98rem; color: var(--text); text-decoration: none; white-space: nowrap; padding: 10px 4px; }
.menu-btn { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--text); flex: none; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
.nav .l-short { display: none; }
.nav.is-open { display: block; }
.no-js .nav { display: block; }
.nav ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.nav a { display: flex; align-items: center; min-height: 52px; padding: 10px 20px; line-height: 1.3; font-size: 1.08rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav__call { padding: 16px 20px 88px; }

@media (max-width: 359px) {
  .header__row { gap: 6px; }
  .header__phone { font-size: .9rem; padding: 10px 2px; }
  .brand__name { font-size: 1.3rem; }
}
@media (min-width: 400px) {
  .header__phone { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .header__row { min-height: 76px; gap: 16px; }
  .nav, .no-js .nav { display: block; position: static; border: 0; background: transparent; max-height: none; overflow: visible; order: 1; }
  .nav .l-full { display: none; }
  .nav .l-short { display: inline; }
  .brand { margin-right: 0; }
  .nav { margin-left: auto; }
  .nav ul { display: flex; gap: 2px; padding: 0; }
  .nav a { min-height: 44px; padding: 0 12px; font-size: .98rem; border: 0; border-radius: 8px; }
  .nav a:hover { background: var(--sand); }
  .nav__call { display: none; }
  .header__phone { order: 2; font-size: 1.02rem; }
  .nav a { padding: 0 8px; font-size: .93rem; }
}
@media (min-width: 1200px) { .brand__sub { display: block; } }
@media (min-width: 1200px) {
  .header__row { gap: 28px; }
  .header__phone { font-size: 1.1rem; }
  .nav a { padding: 0 12px; font-size: .98rem; }
}

/* ---------- кнопки ---------- */
.btn-call { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.08rem; text-decoration: none; transition: background .15s; }
.btn-call:hover { background: var(--accent-dark); }
.btn-call svg { width: 20px; height: 20px; flex: none; }
.btn-call--block { width: 100%; }
.btn-call small { font-weight: 500; opacity: .9; font-size: .95rem; white-space: nowrap; }
.btn-call { max-width: 100%; }
/* на узких телефонах номер виден в шапке, в кнопке остаётся «Позвонить» */
@media (max-width: 399px) { .btn-call small { display: none; } }

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 240, .97); border-top: 1px solid var(--line); }
.callbar .btn-call { width: 100%; }
@media (min-width: 1024px) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- первый экран ---------- */
.hero { padding: 36px 0 48px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero__actions { margin: 26px 0 12px; }
.hero__note { font-size: .92rem; color: var(--muted); max-width: 520px; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- изображения ---------- */
.visual { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual--art { display: flex; align-items: center; justify-content: center; color: var(--accent); background: linear-gradient(160deg, #efe9dd 0%, #e4ddcf 100%); }
.visual--art svg { width: 82%; height: auto; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 16px; }
.grid > *, .contacts > *, .hero__grid > * { min-width: 0; }
@media (min-width: 700px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card--link:hover { border-color: var(--accent); }
.card--link p { color: var(--muted); }
.card__more { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; }

.situation { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.situation__quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 0 0 14px; }
.situation__label, .label-old { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.situation p { color: var(--muted); }

/* ситуация на странице направления */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case + .case { margin-top: 16px; }
.case__title { margin-bottom: 8px; }
.case__quote { color: var(--muted); font-style: italic; margin-bottom: 18px; }
.case__do { border-top: 1px solid var(--line); padding-top: 16px; }
@media (min-width: 900px) {
  .case { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 32px; }
  .case__do { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 40px; }
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li:last-child { margin-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* ---------- шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 74px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-family: var(--sans); font-size: 1.08rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }


.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 24px; }
.notice p:last-child { margin: 0; }

/* ---------- специалист ---------- */
.person { display: grid; gap: 24px; }
.person--solo { max-width: 820px; }
.person__card p:last-child { margin-bottom: 0; }
.person__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.person__name { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 6px; }
.person__role { color: var(--muted); margin-bottom: 20px; }
.timeline { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--accent-soft); }
.timeline li { position: relative; padding: 0 0 14px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline span { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .03em; color: var(--accent); }
@media (min-width: 900px) { .person:not(.person--solo) { grid-template-columns: .8fr 1.2fr; align-items: stretch; } }

/* ---------- звонок ---------- */
.cta { background: var(--accent); color: #fff; border-radius: 20px; padding: 36px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 620px; }
.cta .btn-call { background: #fff; color: var(--accent-dark); margin-top: 8px; }
.cta .btn-call:hover { background: var(--sand); }
@media (min-width: 900px) { .cta { padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; } .cta > div { flex: 1; } }

/* ---------- контакты и подвал ---------- */
.contacts { display: grid; gap: 16px; }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contacts__phone { font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; color: var(--text); text-decoration: none; display: inline-block; margin: 4px 0 16px; }
.dl { margin: 0; }
.dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl div:last-child { border-bottom: 0; }
.dl dt { font-size: .85rem; color: var(--muted); }
.dl dd { margin: 0; }

.footer { background: #1f2a27; color: #d9dfdc; padding: 48px 0 32px; font-size: .95rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
.footer__title { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0 0 6px; }
.footer__phone { font-size: 1.35rem; font-weight: 700; text-decoration: none; display: inline-block; margin: 6px 0 4px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer__small { color: #a9b4b0; font-size: .85rem; border-top: 1px solid #34413d; margin-top: 32px; padding-top: 20px; }
.footer .ph { color: #3d3000; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--text); }
.related a:hover { border-color: var(--accent); }



/* ---------- доступность ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- черновик ---------- */
.draft-bar code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
.draft-badge { display: inline-block; background: #fff1bf; color: #5b4500; border: 1px dashed #d9b84a; border-radius: 8px; padding: 6px 10px; font-size: .85rem; margin: 0 0 14px; }

/* ---------- общие мелочи ---------- */
.section--tight { padding: 40px 0; }
.h-small { font-size: clamp(1.35rem, 4vw, 1.7rem); margin-bottom: 18px; }
.label { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: .95rem; }
.more-link { margin: 20px 0 0; font-weight: 600; }
.subhead { font-family: var(--sans); font-size: 1.1rem; margin: 28px 0 10px; }
.card h3 { font-size: 1.2rem; }
.card__meta { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.situation__quote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; font-weight: 600; margin: 0 0 12px; }
.contacts__btn { margin-top: 16px; }
.contacts .card h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }

/* ---------- блок юриста ---------- */
.person__title { font-size: clamp(1.7rem, 5.4vw, 2.4rem); margin-bottom: 10px; }
.person__extra { margin-bottom: 16px; }
.visual--portrait { aspect-ratio: 4 / 5; }
.person--solo .person__card { padding: 28px; }
@media (min-width: 900px) { .person--solo .person__card { padding: 40px 44px; } }

/* ---------- страницы услуг ---------- */
.info-grid { display: grid; gap: 20px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info--muted { background: transparent; border-style: dashed; }
.info .muted { margin: 14px 0 0; }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1fr; } .info { padding: 32px; } }

.docs, .dashes, .prose-list { list-style: none; margin: 0; padding: 0; }
.docs li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.docs li:last-child { border-bottom: 0; }
.docs li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 18px; border: 2px solid var(--accent); border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) 3px 5px / 6px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) 3px 9px / 6px 2px no-repeat; }
.dashes li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text); }
.dashes li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

.paths { display: grid; gap: 14px; }
.path { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.path h3 { font-family: var(--sans); font-size: 1.05rem; margin-bottom: 6px; }
.path p { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .paths { grid-template-columns: repeat(2, 1fr); } }

/* ---------- статьи ---------- */
.hero--short { padding-bottom: 32px; }
.wrap--narrow { max-width: 780px; }
.article { padding: 32px 0 24px; }
.article h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.article__meta { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.article__service { font-size: .95rem; margin-bottom: 28px; }
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.4rem, 4.4vw, 1.8rem); margin: 36px 0 14px; }
.prose-lead { font-weight: 600; margin-bottom: 8px; }
.prose-list { margin: 0 0 1.2em; }
.prose-list li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- подвал ---------- */
.footer__label { color: #a9b4b0; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 6px; }
.review blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.15rem; }
.review figcaption { color: var(--muted); font-size: .9rem; }
/* ---------- главная: первый экран ---------- */
.hero--home { padding: 28px 0 40px; }
.hero__title { font-size: clamp(2.3rem, 9vw, 3.9rem); line-height: 1.05; margin-bottom: 18px; }
.hero__role { display: block; font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero__topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.hero__topics a { display: inline-flex; align-items: center; min-height: 36px; font-size: .95rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 4px 14px; text-decoration: none; transition: background .15s; }
.hero__topics a:hover { background: #d3e2dc; }
.hero--home .hero__lead { font-size: 1.08rem; }
.hero--home .hero__actions { margin: 24px 0 12px; }
.hero__media .visual { aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .hero--home { padding: 56px 0 64px; }
  .hero--home .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: stretch; }
  .hero__text { display: flex; flex-direction: column; justify-content: center; }
  .hero__media { display: flex; }
  .hero__media .visual { aspect-ratio: auto; width: 100%; height: 100%; min-height: 440px; }
}

/* ---------- главная: о юристе ---------- */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.about__grid { display: grid; gap: 28px; }
.about__title { font-size: clamp(1.8rem, 5.6vw, 2.6rem); margin-bottom: 14px; }
.about__text { font-size: 1.08rem; color: var(--text); max-width: 620px; margin: 0; }
.about__edu { margin: 14px 0 0; }
.about__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about__fact { display: flex; flex-direction: column; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; }
.about__year { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--accent-dark); }
@media (min-width: 900px) {
  .about { padding: 72px 0; }
  .about__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
  .about__grid--photo { grid-template-columns: 300px 1.2fr 1fr; gap: 48px; }
  .about__year { font-size: 1.9rem; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__role { margin-top: 0; }
@media (max-width: 899px) { .hero__media .visual { aspect-ratio: 16 / 10; } }

/* подзаголовок первого экрана — обычный текст, не плашки */
.hero__topics { display: block; font-family: var(--serif); font-size: clamp(1.25rem, 3.6vw, 1.6rem); line-height: 1.3; color: var(--accent-dark); margin: 0 0 22px; padding: 0; }
/* порядок работы: шаги строками */
@media (min-width: 900px) {
  .steps { gap: 10px; }
  .steps li { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; padding: 24px 32px 24px 88px; }
  .steps li::before { left: 30px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; }
  .steps h3 { font-size: 1.12rem; margin: 0; }
  .steps p { font-size: 1rem; }
}
/* первый экран: города */
.hero__place { font-size: .95rem; font-weight: 600; color: var(--text); margin: -8px 0 18px; }

/* блок «Приезжать не нужно» */
.remote { background: var(--accent); color: #fff; padding: 48px 0; }
.remote .kicker { color: #bcd6cc; }
.remote__grid { display: grid; gap: 28px; }
.remote__title { color: #fff; font-size: clamp(1.8rem, 5.6vw, 2.6rem); margin-bottom: 12px; }
.remote__main p { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 560px; }
.remote__email { margin: 16px 0 0; }
.remote__email a { color: #fff; font-weight: 700; }
.remote__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.remote__point { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 18px 22px; }
.remote__point h3 { font-family: var(--sans); font-size: 1.05rem; color: #fff; margin: 0 0 4px; }
.remote__point p { margin: 0; color: rgba(255,255,255,.85); }
@media (min-width: 900px) {
  .remote { padding: 72px 0; }
  .remote__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
}
.footer__email a { font-weight: 600; }
.footer__area { color: #a9b4b0; font-size: .9rem; }
/* ================= Анимации ================= */

/* кнопка звонка */
.btn-call { position: relative; overflow: hidden; isolation: isolate; box-shadow: 0 2px 6px rgba(35, 74, 63, .18);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn-call::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); pointer-events: none; }
.btn-call:active { transform: translateY(0) scale(.97); box-shadow: 0 1px 3px rgba(35, 74, 63, .2); transition-duration: .08s; }
@keyframes phone-ring {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(-16deg); } 20% { transform: rotate(14deg); }
  30% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 50% { transform: rotate(-4deg); }
}
@keyframes btn-shine { from { left: -75%; } to { left: 130%; } }
@media (hover: hover) {
  .btn-call:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(35, 74, 63, .28); }
  .btn-call:hover::after { animation: btn-shine .7s ease; }
  .btn-call:hover svg { animation: phone-ring .9s ease; }
  .cta .btn-call:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
}

/* нижняя кнопка на телефоне — мягкая пульсация */
@keyframes call-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 93, 80, .45); }
  70% { box-shadow: 0 0 0 14px rgba(47, 93, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 93, 80, 0); }
}
.callbar .btn-call { animation: call-pulse 2.8s ease-out 1.5s infinite; }
.callbar .btn-call svg { animation: phone-ring 1s ease 2s 1; }

/* кнопка меню */
.menu-btn { transition: background .2s ease, border-color .2s ease, transform .15s ease; }
.menu-btn:active { transform: scale(.94); }
.menu-btn svg { transition: transform .25s ease; }
.menu-btn[aria-expanded="true"] .i-close { animation: menu-in .25s ease; }
@keyframes menu-in { from { transform: rotate(-90deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
.nav.is-open { animation: nav-drop .22s ease; }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .menu-btn:hover { border-color: var(--accent); background: var(--accent-soft); } }

/* ссылки меню, телефон в шапке */
.nav a { transition: background .2s ease, color .2s ease; }
.header__phone { transition: color .2s ease; }
@media (hover: hover) {
  .nav a:hover { color: var(--accent); }
  .header__phone:hover { color: var(--accent); }
}

/* карточки-ссылки и стрелки «Подробнее →» */
.card--link { transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.card__more { display: inline-block; transition: transform .25s ease; }
.card--link:active { transform: scale(.99); }
@media (hover: hover) {
  .card--link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(28, 31, 36, .08); }
  .card--link:hover .card__more { transform: translateX(6px); }
}

/* кнопки-ссылки «Другие направления», «Все статьи» */
.related a { transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.related a:active { transform: scale(.97); }
.more-link a, .situation > a { display: inline-block; transition: transform .2s ease, color .2s ease; }
@media (hover: hover) {
  .related a:hover { background: var(--accent-soft); transform: translateY(-2px); }
  .more-link a:hover, .situation > a:hover { transform: translateX(4px); }
}

/* ссылки на почту и телефон в тексте */
.contacts__phone, .footer__phone, .remote__email a, .footer__email a { transition: color .2s ease, opacity .2s ease; }
@media (hover: hover) { .contacts__phone:hover { color: var(--accent); } .footer__phone:hover, .footer__email a:hover { opacity: .8; } }

/* без анимаций, если они отключены в системе */

/* ================= Появление при прокрутке ================= */
.reveal-on .reveal { opacity: 0; transform: translateY(48px) scale(.98);
  transition: opacity 1.1s cubic-bezier(.16, .8, .24, 1), transform 1.1s cubic-bezier(.16, .8, .24, 1);
  transition-delay: var(--reveal-delay, 0ms); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
/* карточки после появления реагируют на наведение без задержки */
.reveal-on .card--link.is-visible { transition: opacity .7s ease, transform .25s ease, box-shadow .25s ease, border-color .2s ease; transition-delay: 0ms; }
.reveal-on .hero__media.reveal { transform: scale(.97); }
.reveal-on .hero__media.reveal.is-visible { transform: none; }

/* первый экран: мягкое появление при загрузке */
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__text > *, .hero .wrap > div > * { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > *:nth-child(2), .hero .wrap > div > *:nth-child(2) { animation-delay: .08s; }
.hero__text > *:nth-child(3), .hero .wrap > div > *:nth-child(3) { animation-delay: .16s; }
.hero__text > *:nth-child(4), .hero .wrap > div > *:nth-child(4) { animation-delay: .24s; }
.hero__text > *:nth-child(5), .hero .wrap > div > *:nth-child(5) { animation-delay: .32s; }
.hero__text > *:nth-child(n+6), .hero .wrap > div > *:nth-child(n+6) { animation-delay: .4s; }

@media (hover: hover) {
  .reveal-on .card--link.is-visible:hover { transform: translateY(-4px); }
  .reveal-on .related.is-visible a:hover { transform: translateY(-2px); }
}
/* ================= Заманивающие анимации ================= */

/* фото первого экрана — медленное приближение */
@keyframes ken-burns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero .visual img { animation: ken-burns 9s cubic-bezier(.2, .6, .2, 1) both; transform-origin: 60% 50%; }
@media (hover: hover) {
  .hero .visual img { transition: transform 1.2s ease; }
  .hero .visual:hover img { transform: scale(1.04); }
}

/* главная кнопка на первом экране — периодическое кольцо внимания */
@keyframes attention-ring {
  0%, 70% { box-shadow: 0 2px 6px rgba(35, 74, 63, .18), 0 0 0 0 rgba(47, 93, 80, .5); }
  85% { box-shadow: 0 2px 6px rgba(35, 74, 63, .18), 0 0 0 16px rgba(47, 93, 80, 0); }
  100% { box-shadow: 0 2px 6px rgba(35, 74, 63, .18), 0 0 0 0 rgba(47, 93, 80, 0); }
}
.hero__actions .btn-call { animation: attention-ring 4.5s ease-out 2.5s infinite; }
.hero__actions .btn-call svg { animation: phone-ring 1s ease 1.8s 1; }
@media (hover: hover) { .hero__actions .btn-call:hover { animation-play-state: paused; } }

/* надпись над заголовком — вырастающая линия */
.kicker { position: relative; }
.reveal-on .section__head .kicker::after, .reveal-on .about__main .kicker::after, .reveal-on .remote__main .kicker::after {
  content: ""; display: block; width: 0; height: 2px; margin-top: 8px; background: currentColor; opacity: .6;
  transition: width 1.2s cubic-bezier(.16, .8, .24, 1) .5s; }
.reveal-on .is-visible .kicker::after { width: 44px; }

/* карточки ситуаций — выезжающая полоска */
.situation { position: relative; overflow: hidden; }
.reveal-on .situation::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform 1.1s cubic-bezier(.16, .8, .24, 1) .5s; }
.reveal-on .situation.is-visible::before { transform: scaleY(1); }

/* годы — лёгкий подъём цифр */
.about__year { font-variant-numeric: tabular-nums; }

/* зелёные блоки — медленно переливающийся фон */
@keyframes bg-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.remote, .cta { background-image: linear-gradient(120deg, #2f5d50 0%, #3a6f60 35%, #264d42 65%, #2f5d50 100%); background-size: 240% 240%; animation: bg-drift 16s ease-in-out infinite; }
.remote { position: relative; overflow: hidden; }
.remote::before, .remote::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px);
  background: radial-gradient(circle, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%); }
.remote::before { width: 420px; height: 420px; top: -160px; right: -120px; animation: float-a 14s ease-in-out infinite; }
.remote::after { width: 320px; height: 320px; bottom: -140px; left: -100px; animation: float-b 18s ease-in-out infinite; }
.remote > .wrap { position: relative; z-index: 1; }
@keyframes float-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }
@keyframes float-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(50px, -25px); } }

/* пункты «Приезжать не нужно» — подсветка при наведении */
.remote__point { transition: background .25s ease, transform .25s ease, border-color .25s ease; }
@media (hover: hover) {
  .reveal-on .remote__point.is-visible:hover, .remote__point:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); transform: translateX(6px); }
}


/* ================= Анимации текста и «дорогие» детали ================= */

/* ФИО по буквам */
.hero__title.split-chars { animation: none; }
.split-chars .cw { display: inline-block; white-space: nowrap; }
.split-chars .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(4px);
  animation: char-up .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.35s + var(--i) * 32ms); }
@keyframes char-up { to { opacity: 1; transform: none; filter: none; } }

/* «Практикующий юрист» — печать */
.hero__role { min-height: 1.4em; }
.hero__role.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: currentColor; animation: caret-blink .8s steps(1) infinite; }

/* «Веду дела: …» — печать по кругу */
.hero__topics.is-typed { min-height: 1.35em; }
.typed-prefix { color: var(--muted); }
.typed { color: var(--accent-dark); font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -3px; background: var(--accent); animation: caret-blink .9s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* заголовки по словам */
.split-words .w { display: inline-block; }
.reveal-on .split-words .w { opacity: 0; transform: translateY(.5em); filter: blur(3px);
  transition: opacity .9s cubic-bezier(.16, .8, .24, 1), transform .9s cubic-bezier(.16, .8, .24, 1), filter .9s ease;
  transition-delay: calc(.2s + var(--i) * 110ms); }
.reveal-on .is-visible .split-words .w, .reveal-on .split-words.is-visible .w { opacity: 1; transform: none; filter: none; }
/* заголовки первого экрана страниц услуг и статей — сразу при загрузке */
.hero:not(.hero--home) h1.split-words, .article h1.split-words { animation: none; }
.hero:not(.hero--home) h1.split-words .w, .article h1.split-words .w { opacity: 0; transform: translateY(.5em); filter: blur(3px);
  animation: char-up .7s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.15s + var(--i) * 60ms); }

/* полоса прогресса прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #6fa38f); pointer-events: none; }

/* тень шапки при прокрутке */
.header { transition: box-shadow .3s ease, background .3s ease; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 31, 36, .07); background: rgba(247, 245, 240, .92); }

/* параллакс фото первого экрана */
.hero__media .visual { will-change: transform; transition: transform .1s linear; }

/* фото юриста: кадрирование по лицу */
.visual--person img { object-position: 50% 22%; }

/* телефон: на главной фото сверху */
@media (max-width: 899px) {
  .hero--home .hero__media { order: -1; }
  .hero--home .hero__grid { gap: 22px; }
  .hero--home .visual--person { aspect-ratio: 1 / 1; }
}


/* телефон: на первом экране главной без кнопки и подписи — есть нижняя кнопка звонка */
@media (max-width: 899px) {
  .hero--home .hero__actions, .hero--home .hero__note { display: none; }
  .hero--home .hero__lead { margin-bottom: 0; }
}
/* мобильное меню без кнопки звонка: отступ снизу под закреплённую кнопку */
@media (max-width: 1023px) { .nav ul { padding-bottom: 88px; } }

/* ================= Уход анимаций при выходе из поля зрения ================= */
/* блок, ушедший вверх, уезжает вверх; ушедший вниз — вниз. Уход без задержек */
.reveal-on .reveal:not(.is-visible) { transition-delay: 0ms; }
.reveal-on .reveal:not(.is-visible) .split-words .w, .reveal-on .split-words.reveal:not(.is-visible) .w { transition-delay: 0ms; }
.reveal-on .reveal.is-visible .split-words .w { transition-delay: calc(.2s + var(--i) * 110ms); }

/* ================= Окно звонка на компьютере ================= */
.calldlg { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.calldlg__backdrop { position: absolute; inset: 0; background: rgba(20, 28, 26, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.calldlg__box { position: relative; width: 100%; max-width: 460px; background: var(--surface); border-radius: 20px; padding: 36px 32px 28px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(20px) scale(.96); transition: opacity .3s ease, transform .35s cubic-bezier(.16, .8, .24, 1); }
.calldlg.is-open .calldlg__backdrop { opacity: 1; }
.calldlg.is-open .calldlg__box { opacity: 1; transform: none; }
.calldlg__x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text); transition: background .2s, transform .2s; }
.calldlg__x:hover { background: var(--line); transform: rotate(90deg); }
.calldlg__kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 6px; }
.calldlg__title { font-size: 1.6rem; margin: 0 0 14px; }
.calldlg__phone { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--text); text-decoration: none; margin: 0 0 22px; letter-spacing: .01em; }
.calldlg__actions { display: grid; gap: 10px; }
.calldlg__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.calldlg__btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.calldlg__btn--main { background: var(--accent); border-color: var(--accent); color: #fff; }
.calldlg__btn--main:hover { background: var(--accent-dark); }
.calldlg__btn.is-done { background: #3f7a63; border-color: #3f7a63; }
.calldlg__mail { margin: 18px 0 0; font-size: .95rem; }
.calldlg__hint { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.calldlg-lock, .calldlg-lock body { overflow: hidden; }
/* ================= Блок «Опыт» — три цифры ================= */
.about { padding: 44px 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stat:last-child { border-bottom: 0; }
.stat__num { grid-row: span 2; font-family: var(--serif); font-weight: 700; font-size: clamp(2.8rem, 12vw, 4rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.stat__label { font-size: 1.08rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.stat__sub { font-size: .92rem; color: var(--muted); }
@media (min-width: 900px) {
  .about { padding: 64px 0; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; padding: 4px 36px; border-bottom: 0; border-left: 1px solid var(--line); align-items: start; }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat__num { grid-row: auto; font-size: 4.4rem; margin-bottom: 12px; }
  .stat__label { font-size: 1.12rem; }
}
/* закрытое окно звонка не должно перекрывать страницу */
.calldlg[hidden] { display: none !important; }
.calldlg:not(.is-open) { pointer-events: none; }

/* телефон: блоки двигаются вслед за прокруткой (прозрачность и сдвиг задаёт скрипт), без собственной задержки */
.reveal-scrub .reveal-on .reveal, .reveal-on.reveal-scrub .reveal { transition: none !important; will-change: opacity, transform; }

/* ================= Этапы работы — дорожка ================= */
.process { display: grid; gap: 8px; }
.process__aside .section__head { margin-bottom: 24px; }
.tsteps { --fill: 0; list-style: none; margin: 0; padding: 0; position: relative; }
/* линия-дорожка и её заполнение */
.tsteps::before, .tsteps::after { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; }
.tsteps::before { background: var(--line); }
.tsteps::after { background: linear-gradient(var(--accent), #5f9580); transform-origin: top; transform: scaleY(var(--fill)); }

.tstep { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 22px; }
.tstep:last-child { padding-bottom: 0; }
.tstep__node { position: relative; z-index: 1; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line);
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.16, .8, .24, 1); }
.tstep__node::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--line); transition: background .4s ease, transform .4s ease; }
.tstep__num { grid-column: 2; font-family: var(--serif); font-size: .95rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); line-height: 1; margin: 4px 0 8px; transition: color .4s ease; }
.tstep__body { grid-column: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .4s ease, box-shadow .4s ease; }
.tstep__body h3 { font-family: var(--sans); font-size: 1.08rem; margin: 0 0 6px; }
.tstep__body p { margin: 0; color: var(--muted); }

/* пройденный шаг */
.tstep.is-done .tstep__node { border-color: var(--accent); background: var(--accent); }
.tstep.is-done .tstep__node::after { background: #fff; transform: scale(.55); }
.tstep.is-done .tstep__num { color: var(--accent); }
/* текущий шаг */
.tstep.is-current .tstep__node { border-color: var(--accent); background: var(--surface); transform: scale(1.12); box-shadow: 0 0 0 7px rgba(47, 93, 80, .14); }
.tstep.is-current .tstep__node::after { background: var(--accent); }
.tstep.is-current .tstep__num { color: var(--accent); }
.tstep.is-current .tstep__body { border-color: var(--accent); box-shadow: 0 14px 34px rgba(35, 74, 63, .12); }

@media (min-width: 900px) {
  .process { grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; }
  .process__aside { position: sticky; top: 110px; }
  .tstep { grid-template-columns: 56px 1fr; column-gap: 28px; padding-bottom: 28px; }
  .tsteps::before, .tsteps::after { left: 27px; top: 28px; bottom: 28px; }
  .tstep__node { width: 56px; height: 56px; }
  .tstep__node::after { inset: 16px; }
  .tstep__num { font-size: 1.05rem; }
  .tstep__body { padding: 22px 26px; }
  .tstep__body h3 { font-size: 1.15rem; }
}
/* телефон: компактная дорожка, больше места под текст */
@media (max-width: 899px) {
  .tstep { grid-template-columns: 32px 1fr; column-gap: 12px; }
  .tstep__node { width: 32px; height: 32px; }
  .tstep__node::after { inset: 9px; }
  .tsteps::before, .tsteps::after { left: 15px; top: 16px; bottom: 16px; }
  .tstep__body { padding: 16px; }
  .tstep.is-current .tstep__node { box-shadow: 0 0 0 5px rgba(47, 93, 80, .14); }
}

/* ---------- финиш «Результат» ---------- */
.tstep--finish .tstep__node { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tstep--finish .tstep__node::after { display: none; }
.tstep--finish .tstep__node svg { width: 55%; height: 55%; transition: color .4s ease, transform .5s cubic-bezier(.16, .8, .24, 1); }
.tstep--finish .tstep__num { text-transform: uppercase; letter-spacing: .12em; font-family: var(--sans); font-size: .78rem; }
.tstep--finish .tstep__body { position: relative; overflow: hidden; border-style: dashed; transition: background .6s ease, border-color .6s ease, box-shadow .6s ease, color .6s ease; }
.tstep--finish .tstep__body h3 { font-family: var(--serif); font-size: 1.45rem; transition: color .6s ease; }
.tstep--finish .tstep__body p { transition: color .6s ease; }

/* финиш достигнут */
.tstep--finish.is-current .tstep__node { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.18);
  box-shadow: 0 0 0 8px rgba(47, 93, 80, .16), 0 10px 26px rgba(35, 74, 63, .35); animation: finish-pulse 2.4s ease-out .3s infinite; }
.tstep--finish.is-current .tstep__node svg { transform: rotate(-8deg) scale(1.1); }
.tstep--finish.is-current .tstep__num { color: var(--accent); }
.tstep--finish.is-current .tstep__body { border-style: solid; border-color: var(--accent);
  background: linear-gradient(135deg, #2f5d50 0%, #3d7563 60%, #2a5347 100%); box-shadow: 0 18px 44px rgba(35, 74, 63, .3); }
.tstep--finish.is-current .tstep__body h3, .tstep--finish.is-current .tstep__body p { color: #fff; }
.tstep--finish.is-current .tstep__body p { color: rgba(255, 255, 255, .9); }
/* проблеск света по карточке */
.tstep--finish .tstep__body::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.tstep--finish.is-current .tstep__body::after { animation: finish-shine 1.3s ease .35s 1 both; }
@keyframes finish-shine { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@keyframes finish-pulse {
  0%, 60% { box-shadow: 0 0 0 8px rgba(47, 93, 80, .16), 0 10px 26px rgba(35, 74, 63, .35); }
  80% { box-shadow: 0 0 0 16px rgba(47, 93, 80, 0), 0 10px 26px rgba(35, 74, 63, .35); }
  100% { box-shadow: 0 0 0 8px rgba(47, 93, 80, .16), 0 10px 26px rgba(35, 74, 63, .35); }
}
/* линия у финиша становится сплошной зелёной */
.tsteps:has(.tstep--finish.is-current)::after { background: var(--accent); }
/* запрет выделения текста; номер телефона и почту выделять можно — клиенту нужно их скопировать */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a[href^="tel:"], a[href^="mailto:"], .calldlg__phone, .contacts__phone { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
/* ================= Заставка при открытии ================= */
.intro { display: none; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 1000; cursor: pointer; }
.intro-on body { overflow: hidden; }
/* пока идёт заставка, анимации первого экрана ждут */
.intro-on:not(.intro-leave) .hero * { animation-play-state: paused !important; }

.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: linear-gradient(160deg, #1f3a33 0%, #24463d 55%, #1a302a 100%);
  transition: transform .9s cubic-bezier(.76, 0, .24, 1); }
.intro__panel--top { top: 0; }
.intro__panel--bottom { bottom: 0; background: linear-gradient(20deg, #1a302a 0%, #24463d 45%, #1f3a33 100%); }
.intro-leave .intro__panel--top { transform: translateY(-101%); }
.intro-leave .intro__panel--bottom { transform: translateY(101%); }

.intro__content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: opacity .35s ease, transform .5s ease; }
.intro-leave .intro__content { opacity: 0; transform: scale(.96); }

.intro__sub { margin: 0 0 14px; color: #c9b58c; font: 600 clamp(.72rem, 2.6vw, .95rem)/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
  opacity: 0; animation: intro-sub 1s ease .2s forwards; }
@keyframes intro-sub { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .42em; } }

.intro__logo { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(3.6rem, 16vw, 8rem); line-height: 1; letter-spacing: .06em; display: flex; overflow: hidden; padding: .06em .1em .12em; }
.intro__logo span { display: inline-block; opacity: 0; transform: translateY(105%);
  background: linear-gradient(180deg, #f3e6c4 0%, #d8bd84 45%, #b08f52 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: intro-letter .8s cubic-bezier(.16, .8, .24, 1) forwards; animation-delay: calc(.45s + var(--i) * 90ms); }
@keyframes intro-letter { to { opacity: 1; transform: none; } }

.intro__line { position: relative; display: block; width: min(320px, 60vw); height: 1px; margin-top: 18px; }
.intro__line::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #c9b58c, transparent);
  transform: scaleX(0); animation: intro-line 1s cubic-bezier(.16, .8, .24, 1) 1s forwards; }
.intro__line i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #d8bd84; transform: translate(-50%, -50%) rotate(45deg) scale(0);
  animation: intro-diamond .5s cubic-bezier(.34, 1.56, .64, 1) 1.45s forwards; }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-diamond { to { transform: translate(-50%, -50%) rotate(45deg) scale(1); } }
/* заставка: крупнее надпись «Юридическая группа» */
.intro__sub { font-size: clamp(1rem, 4.2vw, 1.7rem); letter-spacing: .32em; padding-left: .32em; margin-bottom: 20px; font-weight: 600; }
@keyframes intro-sub { from { opacity: 0; letter-spacing: .8em; } to { opacity: 1; letter-spacing: .32em; } }.intro__sub { font-size: clamp(1.15rem, 4.8vw, 2.4rem); letter-spacing: .24em; padding-left: .24em; margin-bottom: 22px; }
@keyframes intro-sub { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .24em; } }
/* ================= Дорожка: заполнение по участкам с обводкой кружков ================= */
.tsteps::after { display: none; }                         /* общая сплошная заливка больше не нужна */
.tsteps::before { background: var(--line); }               /* серая дорожка под всеми шагами */

/* отрезок от кружка до следующего кружка */
.tstep::before { content: ""; position: absolute; z-index: 0; left: 27px; top: 56px; bottom: 0; width: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% calc(var(--seg, 0) * 100%); }
.tstep:last-child::before { display: none; }

/* кружок: контур заполняется по кругу */
.tstep__node { border: 0; background: conic-gradient(var(--accent) calc(var(--ring, 0) * 1turn), var(--line) 0); }
.tstep__node::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--surface); }
.tstep__node::after { z-index: 1; }
.tstep__node svg { position: relative; z-index: 1; }
.tstep.is-done .tstep__node, .tstep--finish.is-current .tstep__node { background: var(--accent); }
.tstep.is-done .tstep__node::before, .tstep--finish.is-current .tstep__node::before { background: var(--accent); }
.tstep.is-current:not(.tstep--finish) .tstep__node::before { background: var(--surface); }

@media (max-width: 899px) {
  .tstep::before { left: 15px; top: 32px; }
}
/* заставка: надпись не переносится и не «прыгает» — анимируется только прозрачность и лёгкое приближение */
.intro__sub { white-space: nowrap; font-size: clamp(.95rem, 4.4vw, 2.4rem); letter-spacing: .24em; max-width: 92vw;
  animation: intro-sub-fade 1s cubic-bezier(.16, .8, .24, 1) .2s forwards; }
@keyframes intro-sub-fade { from { opacity: 0; transform: scale(1.12); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* половины занавеса одного цвета на стыке — без видимой полосы посередине */
.intro__panel--top { background: linear-gradient(180deg, #1a302a 0%, #22433a 100%); }
.intro__panel--bottom { background: linear-gradient(180deg, #22433a 0%, #1a302a 100%); }
/* ================= Дорожка: без хвоста под финишем, пройденные этапы зелёные ================= */
.tsteps::before { display: none; }   /* общая серая полоса убрана — у каждого шага свой отрезок до следующего */
.tstep::before { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 100% calc(var(--seg, 0) * 100%), var(--line); }

/* пройденный и текущий этап — зелёная карточка, как у финиша */
.tstep .tstep__body h3, .tstep .tstep__body p { transition: color .6s ease; }
.tstep.is-done .tstep__body, .tstep.is-current .tstep__body {
  border-color: var(--accent); background: linear-gradient(135deg, #2f5d50 0%, #3d7563 60%, #2a5347 100%); box-shadow: 0 12px 30px rgba(35, 74, 63, .2); }
.tstep.is-done .tstep__body h3, .tstep.is-current .tstep__body h3 { color: #fff; }
.tstep.is-done .tstep__body p, .tstep.is-current .tstep__body p { color: rgba(255, 255, 255, .88); }
.tstep.is-done .tstep__num { color: var(--accent); }
/* финиш остаётся самым ярким: крупнее тень и проблеск */
.tstep--finish.is-current .tstep__body { box-shadow: 0 18px 44px rgba(35, 74, 63, .34); }
/* ================= Параллакс ================= */
/* фото внутри рамки движется медленнее рамки; увеличено, чтобы края не открывались */
.px-on .visual img { scale: 1.14; translate: 0 var(--py, 0px); will-change: translate; }
/* крупные цифры блока «Опыт» слегка отстают от подписей */
.px-on .stat__num { display: inline-block; translate: 0 var(--py, 0px); }
/* световые пятна зелёного блока идут с разной скоростью и в разные стороны */
.px-on .remote::before { translate: 0 var(--py, 0px); }
.px-on .remote::after { translate: 0 calc(var(--py, 0px) * -0.7); }
/* ================= Фирменный курсор (компьютер) ================= */
.cursor-on, .cursor-on * { cursor: none !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; border-radius: 50%; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); }
.cur-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
/* кольцо рисуется псевдоэлементом, чтобы увеличение не мешало следованию за мышью */
.cur-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(47, 93, 80, .55);
  transition: transform .3s cubic-bezier(.16, .8, .24, 1), background .3s ease, border-color .3s ease; }
.cur-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; transition: transform .25s ease; }
.cur-dot { background: transparent; }
.cur-dot::before { background: var(--accent); }

/* над ссылками и кнопками */
.cur-hot .cur-ring::before { transform: scale(1.7); background: rgba(47, 93, 80, .10); border-color: rgba(47, 93, 80, .35); }
.cur-hot .cur-dot::before { transform: scale(.5); }
/* нажатие */
.cur-down .cur-ring::before { transform: scale(.8); }
.cur-hot.cur-down .cur-ring::before { transform: scale(1.4); }
/* тёмные блоки — золотой курсор */
.cur-dark .cur-dot::before { background: #d8bd84; }
.cur-dark .cur-ring::before { border-color: rgba(216, 189, 132, .75); }
.cur-dark.cur-hot .cur-ring::before { background: rgba(216, 189, 132, .16); border-color: rgba(216, 189, 132, .6); }
/* курсор ушёл за пределы окна */
.cur-dot, .cur-ring { transition: opacity .25s ease; }
.cur-out .cur-dot, .cur-out .cur-ring { opacity: 0; }
/* ================= Общий фон страницы — одна картинка сквозь все разделы ================= */
body { position: relative; background: linear-gradient(180deg, #f7f5f0 0%, #f1ede4 40%, #f5f2eb 70%, #efeae0 100%); }
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop__map { position: absolute; left: -10%; right: -10%; top: -6%; bottom: -6%;
  background: url("backdrop.svg") repeat 0 0 / 1000px 1000px; opacity: .11; translate: 0 var(--bpy, 0px); will-change: translate; }
.backdrop__glow { position: absolute; width: 820px; height: 820px; border-radius: 50%; filter: blur(10px); }
.backdrop__glow.g1 { top: 4%;  left: -260px; background: radial-gradient(circle, rgba(47, 93, 80, .12), transparent 68%); }
.backdrop__glow.g2 { top: 30%; right: -300px; background: radial-gradient(circle, rgba(216, 189, 132, .20), transparent 68%); }
.backdrop__glow.g3 { top: 58%; left: -240px; background: radial-gradient(circle, rgba(216, 189, 132, .16), transparent 68%); }
.backdrop__glow.g4 { top: 82%; right: -260px; background: radial-gradient(circle, rgba(47, 93, 80, .12), transparent 68%); }
main, .footer { position: relative; z-index: 1; }

/* разделы полупрозрачные — фон виден фрагментами; карточки остаются плотными для чтения */
.hero { background: transparent; }
.section--sand { background: rgba(236, 230, 218, .62); }
.about { background: rgba(255, 255, 255, .55); backdrop-filter: blur(2px); }
.section:not(.section--sand) { background: transparent; }
.remote { opacity: .97; }
@media (max-width: 899px) {
  .backdrop__map { background-size: 760px 760px; opacity: .09; }
  .backdrop__glow { width: 560px; height: 560px; }
}
/* блок «Опыт» — мягче, чтобы не разрывал общий фон */
.about { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.38) 25%, rgba(255,255,255,.38) 75%, rgba(255,255,255,0) 100%); border: 0; backdrop-filter: none; }

/* ================= Летающий фон ================= */
.backdrop__map { display: none; }
.bd { position: absolute; width: var(--s); height: var(--s); translate: 0 var(--fy, 0px); will-change: translate; }
.bd svg { display: block; width: 100%; height: 100%; rotate: var(--r); overflow: visible; }
.bd__fly { display: block; width: 100%; height: 100%; animation: fly-a 22s ease-in-out infinite alternate; }
.bd--far  { opacity: .13; filter: blur(.6px); }
.bd--mid  { opacity: .18; }
.bd--near { opacity: .22; }
.bd--near svg { stroke-width: 1.3; }
.c-green { color: #2f5d50; }
.c-gold  { color: #b08f52; }
.c-sage  { color: #5f9580; }
.bd--near.c-gold { opacity: .3; }

@keyframes fly-a { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(26px, -34px) rotate(8deg); } 100% { transform: translate(-18px, 22px) rotate(-6deg); } }
@keyframes fly-b { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-30px, 20px) rotate(-10deg); } 100% { transform: translate(22px, -28px) rotate(7deg); } }
@keyframes fly-c { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(14px, 30px) scale(1.06) rotate(12deg); } 100% { transform: translate(-24px, -16px) scale(.96) rotate(-8deg); } }
.fly-b { animation-name: fly-b; }
.fly-c { animation-name: fly-c; }

@media (max-width: 899px) {
  .bd:nth-of-type(even) { display: none; }
  .bd { width: calc(var(--s) * .7); height: calc(var(--s) * .7); }
}/* летающий фон — заметнее */
.bd--far  { opacity: .17; }
.bd--mid  { opacity: .24; }
.bd--near { opacity: .3; }
.bd--near.c-gold { opacity: .4; }
/* ================= Индикатор прогресса этапов (левая колонка) ================= */
.pstatus { display: none; }
@media (min-width: 900px) {
  .pstatus { display: block; margin-top: 44px; }
  .pstatus__dial { position: relative; width: 220px; height: 220px; }
  .pstatus__ring { width: 100%; height: 100%; rotate: -90deg; }
  .pstatus__track, .pstatus__bar { fill: none; stroke-width: 5; }
  .pstatus__track { stroke: rgba(47, 93, 80, .12); }
  .pstatus__bar { stroke: url(#none); stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .25s linear; }
  .pstatus__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .4s ease, transform .5s cubic-bezier(.16, .8, .24, 1); }
  .pstatus__num { font-family: var(--serif); font-size: 4.6rem; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
  .pstatus__of { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
  .pstatus__flag { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; color: var(--accent);
    opacity: 0; transform: scale(.4) rotate(-20deg); transition: opacity .4s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
  .pstatus.is-finished .pstatus__center { opacity: 0; transform: scale(.7); }
  .pstatus.is-finished .pstatus__flag { opacity: 1; transform: none; }
  .pstatus.is-finished .pstatus__dial { filter: drop-shadow(0 10px 24px rgba(35, 74, 63, .25)); }

  .pstatus__label { margin: 28px 0 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
  .pstatus__title { margin: 0 0 20px; font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; min-height: 2.5em; max-width: 340px; }
  .pstatus__title.is-swap, .pstatus__num.is-swap { animation: pstatus-swap .55s cubic-bezier(.16, .8, .24, 1); }
  @keyframes pstatus-swap { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  .pstatus__num { display: inline-block; }

  .pstatus__dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
  .pstatus__dots li { width: 28px; height: 4px; border-radius: 4px; background: rgba(47, 93, 80, .15); transition: background .4s ease, width .4s cubic-bezier(.16, .8, .24, 1); }
  .pstatus__dots li.is-on { background: var(--accent); }
  .pstatus__dots li.is-now { width: 48px; }
}
/* ================= Зелёный блок: бегущая строка, пока текст не появился ================= */
.remote__intro { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 36px; transition: opacity .8s ease, transform .9s cubic-bezier(.16, .8, .24, 1); }
.remote__ticker { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.remote__track { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; animation: ticker 38s linear infinite; }
.remote__track span { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1px rgba(216, 189, 132, .55); letter-spacing: .01em; }
.remote__track i { font-style: normal; color: rgba(216, 189, 132, .5); font-size: 1.2rem; }
@keyframes ticker { to { transform: translateX(-50%); } }
.remote__cue { align-self: center; width: 28px; height: 46px; border: 1.5px solid rgba(216, 189, 132, .6); border-radius: 16px; position: relative; }
.remote__cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 3px; background: #d8bd84; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(16px); } 100% { opacity: 0; } }
/* когда появляется текст блока — строка уезжает вверх и гаснет */
.remote:has(.remote__main.is-visible) .remote__intro { opacity: 0; transform: translateY(-40px); }
.remote__main, .remote__points { position: relative; z-index: 1; }

/* ================= «Веду дела» — всегда одна строка, без прыжков ================= */
.hero__topics, .hero__topics.is-typed { white-space: nowrap; overflow: hidden; text-overflow: clip; font-size: clamp(1rem, 4.4vw, 1.6rem); min-height: 0; }
/* зелёный блок: без бегущей строки, только подсказка-«мышка» вверху блока */
.remote__ticker { display: none; }
.remote__intro { justify-content: flex-start; padding-top: 64px; }
.remote__cue { width: 30px; height: 50px; border-width: 2px; }
@media (max-width: 899px) { .remote__intro { padding-top: 36px; } }
/* зелёный блок: лента юридических значков слева направо */
.remote__ticker { display: block; }
.remote__intro { gap: 26px; }
.remote__track { gap: 44px; padding-right: 44px; animation: ticker-ltr 42s linear infinite; }
.remote__track svg { width: clamp(46px, 7vw, 76px); height: clamp(46px, 7vw, 76px); flex: none; color: rgba(216, 189, 132, .7); }
.remote__track svg:nth-of-type(3n) { color: rgba(216, 189, 132, .45); transform: translateY(8px) rotate(-8deg); }
.remote__track svg:nth-of-type(3n+1) { transform: translateY(-6px) rotate(6deg); }
.remote__track i { color: rgba(216, 189, 132, .35); font-size: .9rem; }
@keyframes ticker-ltr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* подсказка-«мышка» над лентой значков */
.remote__cue { order: -1; }

/* лента значков и подсказка-«мышка» в зелёном блоке — только для компьютера */
@media (max-width: 899px), (hover: none) { .remote__intro { display: none !important; } }

/* ================= Фон первого экрана (первый экран + блок «Опыт») ================= */
.home-top { position: relative; background: #f3ede3 url("img/1block.jpg") center top / cover no-repeat; }
.home-top .hero, .home-top .about { background: transparent !important; }
/* плавный переход фона в остальную страницу */
.home-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 237, 227, 0), rgba(243, 237, 227, .9)); }
.home-top > * { position: relative; z-index: 1; }
@media (max-width: 899px) {
  .home-top { background-image: url("img/1blockapp.jpg"); background-position: center top; }
  /* светлая вуаль под текстом, чтобы статуя и книги не мешали читать */
  .home-top::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(180deg, rgba(247, 243, 236, .15) 0%, rgba(247, 243, 236, .72) 38%, rgba(247, 243, 236, .78) 100%); }
}
/* первый экран на фоне-фото: контрастнее мелкий текст */
.home-top .hero__lead { color: #2b3036; text-shadow: 0 0 18px rgba(247, 243, 236, .9), 0 0 2px rgba(247, 243, 236, .8); }
.home-top .hero__note, .home-top .typed-prefix, .home-top .stat__sub { color: #3a4048; text-shadow: 0 0 14px rgba(247, 243, 236, .95); }
.home-top .stat__label, .home-top .hero__title, .home-top .hero__role { text-shadow: 0 0 20px rgba(247, 243, 236, .85); }
.home-top .stat { border-left-color: rgba(47, 93, 80, .22); }
/* мягкая светлая подложка за колонкой текста на компьютере */
@media (min-width: 900px) {
  .home-top .hero__text { position: relative; }
  .home-top .hero__text::before { content: ""; position: absolute; inset: -40px -60px -40px -80px; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 45% 50%, rgba(247, 243, 236, .78) 0%, rgba(247, 243, 236, .55) 45%, rgba(247, 243, 236, 0) 75%); }
}
/* ================= Этапы: закреплённая дорожка с равным шагом ================= */
.process-pin { position: relative; }
.process-sticky { position: sticky; top: 92px; height: calc(100vh - 116px); height: calc(100svh - 116px); overflow: hidden; }
.process-sticky .process { height: 100%; }
.process-sticky .process__aside { position: static; }
.tsteps-viewport { height: 100%; overflow: hidden; padding-top: 10px;
  mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 60px), transparent 100%); }
.tsteps { transition: transform .35s cubic-bezier(.16, .8, .24, 1); will-change: transform; }
@media (max-width: 899px) {
  .process-sticky { top: 72px; height: calc(100svh - 72px - 84px); }
  .process-sticky .process__aside .section__head { margin-bottom: 12px; }
  .process-sticky .process__aside .section__head h2 { font-size: 1.5rem; margin-bottom: 0; }
  .process-sticky .process__aside .section__head p { display: none; }
  .process-sticky .process { display: flex; flex-direction: column; }
  .process-sticky .tsteps-viewport { flex: 1; min-height: 0; }
}
/* этапы: обычная прокрутка (закрепление отменено) */
.process-pin, .process-sticky { position: static; height: auto !important; overflow: visible; }
.tsteps { transform: none !important; }
.tstep__body { align-self: start; }
/* зелёный блок: либо лента значков, либо содержимое — никогда вместе */
.remote:has(.reveal.is-visible) .remote__intro { opacity: 0 !important; transform: translateY(-40px); visibility: hidden; transition: opacity .35s ease, transform .5s ease, visibility 0s linear .35s; }
.remote:not(:has(.reveal.is-visible)) .remote__intro { visibility: visible; }
/* строка с запросом и городами на страницах услуг */
.hero__seo { font-size: .95rem; font-weight: 600; color: var(--accent-dark); margin: -6px 0 18px; }

/* ================= Частые вопросы на страницах услуг ================= */
.faq { display: grid; gap: 28px; }
.faq__terms { margin-top: 8px; }
.faq__terms .related a { min-height: 40px; font-size: .92rem; }
.faq__terms .muted { margin: 14px 0 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s ease, box-shadow .25s ease; }
.faq__item[open] { border-color: var(--accent); box-shadow: 0 12px 30px rgba(35, 74, 63, .1); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); transition: background .25s ease, transform .35s cubic-bezier(.16, .8, .24, 1); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--accent); border-radius: 2px; }
.faq__item summary i::after { transform: rotate(90deg); transition: transform .35s ease; }
.faq__item[open] summary i { background: var(--accent); transform: rotate(180deg); }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); animation: faq-open .4s cubic-bezier(.16, .8, .24, 1); }
.faq__answer p { margin: 0; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .faq { grid-template-columns: .85fr 1.3fr; gap: 56px; align-items: start; }
  .faq__head { position: sticky; top: 110px; }
}

/* ================= Словарь ================= */
.terms__index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.terms__index a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent-dark); font-family: var(--serif);
  font-weight: 700; font-size: 1.1rem; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.terms__index a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.terms { display: grid; gap: 34px; }
.terms__group { display: grid; gap: 14px; scroll-margin-top: 96px; }
.terms__letter { margin: 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--accent); opacity: .85; }
.terms__list { display: grid; gap: 14px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; scroll-margin-top: 96px; transition: border-color .3s ease, box-shadow .3s ease; }
.term:target { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 93, 80, .15); }
.term__name { font-size: 1.3rem; margin-bottom: 8px; }
.term__text { margin: 0 0 12px; }
.term__example { margin: 0 0 12px; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; color: var(--accent-dark); font-size: .96rem; }
.term__example span { font-weight: 700; }
.term__link { font-weight: 600; font-size: .95rem; }
@media (min-width: 700px) { .terms__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .terms__group { grid-template-columns: 90px 1fr; gap: 24px; align-items: start; }
  .terms__letter { position: sticky; top: 110px; font-size: 3.4rem; }
}
/* пункт «Словарь» в шапке — только на широких экранах, чтобы шапка не переносилась */
@media (min-width: 1024px) and (max-width: 1279px) { .nav li:has(a[href="slovar.html"]) { display: none; } }
/* словарь: блок «Как это в ДНР» */
.term__dnr { margin: 0 0 12px; padding: 12px 14px 12px 16px; border-left: 3px solid #b08f52; background: rgba(216, 189, 132, .16); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--text); }
.term__dnr span { font-weight: 700; color: #8a6a32; }
/* ================= Шапка: пункт «Услуги» с выпадающим списком ================= */
.nav li:has(a[href="slovar.html"]) { display: list-item !important; }   /* снято старое скрытие — места теперь хватает */
.nav__drop-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 10px 20px;
  background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: 1.08rem; color: var(--text); cursor: pointer; text-align: left; }
.nav__drop-btn svg { width: 14px; height: 14px; margin-left: 8px; transition: transform .3s ease; }
.nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.nav__drop.is-current > .nav__drop-btn { color: var(--accent); font-weight: 600; }
.nav__sub { list-style: none; margin: 0; padding: 0 !important; display: none !important; background: rgba(47, 93, 80, .04); }
.nav__drop.is-open .nav__sub { display: block !important; }
.nav__sub a { padding-left: 36px !important; font-size: 1rem !important; }
.no-js .nav__sub { display: block !important; }

@media (min-width: 1024px) {
  .nav ul { gap: 6px; align-items: center; }
  .nav a { padding: 0 14px !important; font-size: .98rem !important; }
  .nav__drop { position: relative; }
  .nav__drop-btn { width: auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; font-size: .98rem; }
  .nav__drop-btn:hover, .nav__drop.is-open .nav__drop-btn { background: var(--sand); }
  .nav__sub { display: block !important; position: absolute; left: 50%; top: calc(100% + 10px); min-width: 300px; padding: 8px !important;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(28, 31, 36, .14);
    opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s; }
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* мостик, чтобы меню не закрывалось при переходе мышью */
  .nav__drop.is-open .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .25s ease; }
  .nav__sub a { display: flex !important; min-height: 42px; padding: 0 14px !important; border-radius: 8px; font-size: .96rem !important; white-space: nowrap; }
  .nav__sub a:hover { background: var(--accent-soft); color: var(--accent-dark); }
  .nav__sub a[aria-current="page"] { background: var(--accent-soft); }
  .brand__sub { display: block; }
  .header__row { gap: 28px; }
}
/* телефон: все направления сразу видны в меню, «Услуги» — подпись группы */
@media (max-width: 1023px) { .nav__sub { display: block !important; } .nav__drop-btn { pointer-events: none; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; min-height: 40px; border-bottom: 0; } .nav__drop-btn svg { display: none; } .nav__sub a { padding-left: 20px !important; } }

/* ================= Шапка на компьютере: логотип слева, меню по центру, телефон справа ================= */
@media (min-width: 1024px) {
  .header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .brand { justify-self: start; margin: 0; order: 0; }
  .nav, .no-js .nav { order: 1; margin: 0; justify-self: center; }
  .header__phone { order: 2; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .2s ease, background .2s ease, color .2s ease; }
  .header__phone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 93, 80, .15); }
  .header__phone:hover { border-color: var(--accent); color: var(--accent-dark); }
  .nav ul { gap: 4px; }
}
/* телефон в шапке — снова просто красивый номер, без рамки-кнопки */
@media (min-width: 1024px) {
  .header__phone { padding: 10px 4px; border: 0; border-radius: 0; background: none; gap: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: .01em; }
  .header__phone::before { content: none; }
  .header__phone:hover { color: var(--accent); }
}