/* ==========================================================================
   Нотариус Ермаханова — строгий корпоративный стиль
   Белый фон, тёмно-синий акцент, один шрифт, тонкие линии и чёткая сетка.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f4f6f9;
  --ink: #0f1a2b;
  --ink-2: #33404f;
  --muted: #687384;
  --rule: #e2e6ec;
  --rule-strong: #0f1a2b;
  --accent: #13294b;
  --accent-2: #1f3f6e;
  --accent-soft: #e9eef6;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
body { font: 400 16.5px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1, 'cv11' 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 3.4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
.h3 { font-size: 24px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 15px; }
.mono { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }

/* Тёмные зоны переопределяют переменные */
.section-dark, .side-dark, .footer, .index, .cta-band {
  --muted: rgba(255, 255, 255, .64);
  --rule: rgba(255, 255, 255, .14);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; font: 600 15px/1.2 var(--font); letter-spacing: .005em;
  border: 1px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
  cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn-lg { padding: 17px 30px; font-size: 15.5px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold, .btn-dark { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-gold:hover, .btn-dark:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost, .btn-wa { border-color: var(--rule-strong); color: inherit; }
.btn-ghost:hover, .btn-wa:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.section-dark .btn-ghost, .section-dark .btn-wa, .side-dark .btn-wa, .cta-band .btn-wa { border-color: rgba(255, 255, 255, .5); }
.section-dark .btn-ghost:hover, .section-dark .btn-wa:hover, .side-dark .btn-wa:hover, .cta-band .btn-wa:hover { background: #fff; color: var(--ink); border-color: #fff; }
.side-dark .btn-gold, .cta-band .btn-gold, .section-dark .btn-dark { background: #fff; border-color: #fff; color: var(--accent); }
.side-dark .btn-gold:hover, .cta-band .btn-gold:hover, .section-dark .btn-dark:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.link-arrow .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-2); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Шапка ---------- */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .3s; }
.head.scrolled { box-shadow: 0 6px 24px -18px rgba(15, 26, 43, .35); }
.head-in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); height: 76px; }
.brand { display: flex; flex: 1 1 auto; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .04em; border-radius: var(--radius); }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-nav { flex: none; }
.head-nav ul { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.head-nav a { position: relative; display: block; padding: 27px 0; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .2s; }
.head-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after, .head-nav a[aria-current]::after { transform: scaleX(1); }
.head-nav a[aria-current] { color: var(--ink); }
.head-phone { flex: none; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.head-phone .ic { width: 17px; height: 17px; color: var(--accent); }
.head-phone:hover { color: var(--accent-2); }
.head-cta { flex: none; }
.menu-btn { flex: none; display: none; place-items: center; width: 44px; height: 44px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.menu-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.menu-lines i { display: block; height: 1.5px; background: currentColor; }

/* ---------- Меню (полноэкранное, на планшетах и телефонах) ---------- */
.index { position: fixed; inset: 0; z-index: 200; overflow-y: auto; overscroll-behavior: contain; background: var(--accent); color: #fff; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.menu-open { overflow: hidden; }
.menu-open .index { visibility: visible; opacity: 1; }
.index-in { max-width: 1240px; min-height: 100%; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 28px; display: flex; flex-direction: column; }
.index-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.index-close { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: none; color: #fff; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 500; }
.index-close:hover { background: #fff; color: var(--accent); }
.index-close .ic { width: 16px; height: 16px; }
.index-grid { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 36px 0; }
.index-main a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.index-main a span { font-size: 12px; font-weight: 500; color: var(--muted); min-width: 24px; }
.index-main a:hover, .index-main a[aria-current] { color: #b9cbe6; }
.index-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; align-content: start; }
.index-cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #b9cbe6; }
.index-cats ul { margin-top: 8px; }
.index-cats li a { display: block; padding: 4px 0; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.index-cats li a:hover { color: #fff; }
.index-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.index-foot a { font-size: 22px; font-weight: 600; color: #fff; }

/* ---------- Главный экран ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.hero-text { min-width: 0; }
.eyebrow-plain { display: inline-block; padding: 7px 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; border-radius: var(--radius); }
.hero-title { margin-top: 24px; font-size: clamp(42px, 6.2vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
.hero-name { margin-top: 14px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; color: var(--ink-2); }
.hero-text .lead { max-width: 580px; margin-top: 26px; font-size: 18px; color: var(--ink-2); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-portrait { position: relative; }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.hero-reqs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.hero-reqs > div { padding: 22px 24px 24px; border-left: 1px solid var(--rule); }
.hero-reqs > div:first-child { padding-left: 0; border-left: 0; }
.hero-reqs dt { margin-bottom: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero-reqs dd { font-size: 15px; font-weight: 500; }
.hero-reqs a:hover { color: var(--accent-2); }

/* ---------- Секции и заголовки ---------- */
main { counter-reset: sec; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--accent); color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); }
.eyebrow .ic { width: 15px; height: 15px; }
.eyebrow-light, .section-dark .eyebrow { color: #b9cbe6; }
.section .eyebrow, .cta-band .eyebrow { counter-increment: sec; }
.section .eyebrow::before, .cta-band .eyebrow::before { content: counter(sec, decimal-leading-zero); padding-right: 10px; border-right: 1px solid currentColor; opacity: .7; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 4.4vw, 56px); }
.sec-head > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 48px; max-width: none; }
.row-head > p:not(.eyebrow) { max-width: 440px; margin: 0; font-size: 16px; }
.lead { font-size: 18px; color: var(--ink-2); }

/* ---------- Реестр услуг ---------- */
.registry { border-top: 1px solid var(--rule-strong); }
.reg-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr) 110px 44px;
  gap: 28px; align-items: center; padding: 28px 20px; border-bottom: 1px solid var(--rule); transition: background .25s;
}
.reg-n { font-size: 14px; font-weight: 600; color: var(--accent-2); letter-spacing: .04em; }
.reg-main h3 { font-size: 21px; }
.reg-main h3 a::after { content: ''; position: absolute; inset: 0; }
.reg-main p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.reg-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.reg-links a { display: block; padding: 5px 11px; font-size: 13px; line-height: 1.3; color: var(--ink-2); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); transition: border-color .2s, color .2s; }
.reg-links a:hover { border-color: var(--accent); color: var(--accent); }
.reg-price { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.reg-go { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); transition: background .25s, color .25s, border-color .25s; }
.reg-go .ic { width: 18px; height: 18px; }
.reg-row:hover { background: var(--bg-2); }
.reg-row:hover .reg-go { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Цифры ---------- */
.trust { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-grid > div { padding: clamp(28px, 3.6vw, 44px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.trust span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- О нотариусе на главной ---------- */
.about-home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.pull { margin: 26px 0 22px; padding-left: 22px; border-left: 3px solid var(--accent); font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; line-height: 1.45; color: var(--ink); }
.ah-text > p { color: var(--ink-2); margin-bottom: 26px; max-width: 620px; }
.certificate { padding: clamp(28px, 3.6vw, 44px); background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--accent); }
.cert-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.cert-no { margin-top: 12px; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.cert-sub { margin: 4px 0 24px; font-size: 15px; color: var(--muted); }
.certificate dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.certificate dt { font-size: 13.5px; color: var(--muted); }
.certificate dd { font-size: 15px; font-weight: 500; }

/* ---------- Преимущества ---------- */
.clauses, .adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.clauses li, .adv { padding: 32px 30px 34px; background: var(--bg); }
.clauses .ic, .adv > .ic { width: 26px; height: 26px; color: var(--accent); }
.clauses h3, .adv h3 { margin: 18px 0 8px; }
.clauses p, .adv p { color: var(--muted); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { position: relative; padding-top: 26px; border-top: 1px solid var(--rule); }
.steps li::before { content: ''; position: absolute; left: 0; top: -1px; width: 40px; height: 2px; background: var(--accent-2); }
.section-dark .steps li::before { background: #fff; }
.step-n { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--accent-2); }
.section-dark .step-n { color: #b9cbe6; }
.steps h3 { margin-bottom: 8px; font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Цены ---------- */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split > div > p:not(.eyebrow) { margin: 18px 0 28px; color: var(--muted); }
.price-table { border-top: 1px solid var(--rule-strong); }
.price-row { display: flex; align-items: baseline; gap: 16px; padding: 17px 4px; border-bottom: 1px solid var(--rule); transition: background .2s; }
.price-row > span:first-child { flex: 1; min-width: 0; font-weight: 500; }
.pt-time { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.price-row strong { min-width: 110px; font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; color: var(--accent); }
.price-row:hover { background: var(--bg-2); }
.price-group { margin-bottom: 56px; }
.price-group h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 28px); }
.price-group h2 .ic { width: 26px; height: 26px; color: var(--accent); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { padding: 32px 30px; background: var(--bg); border: 1px solid var(--rule); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--accent); }
.stars .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review blockquote { font-size: 17px; line-height: 1.55; color: var(--ink); }
.review figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption span { font-size: 13.5px; color: var(--muted); }

/* ---------- Статьи ---------- */
.post-list { border-top: 1px solid var(--rule-strong); }
.post-list a { display: grid; grid-template-columns: 160px minmax(0, 1fr) 180px 24px; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.post-list time, .post-list span { font-size: 14px; color: var(--muted); }
.post-list strong { font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.post-list .ic { color: var(--accent); transition: transform .25s var(--ease); }
.post-list a:hover strong { color: var(--accent-2); }
.post-list a:hover .ic { transform: translateX(4px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.post-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 30px 28px; background: var(--bg); border: 1px solid var(--rule); transition: border-color .2s, box-shadow .2s; }
.post-tag { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-2); }
.post-card h3 { font-size: 20px; }
.post-card p { font-size: 15px; color: var(--muted); }
.post-meta { margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.post-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px -28px rgba(15, 26, 43, .45); }
.post-card:hover h3 { color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq-wrap > div:first-child > p:not(.eyebrow) { margin: 18px 0 26px; color: var(--muted); }
.faq { border-top: 1px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.4; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary .ic { width: 20px; height: 20px; color: var(--accent); transition: transform .3s var(--ease); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-a p { max-width: 700px; padding-bottom: 22px; color: var(--ink-2); font-size: 15.5px; }
.faq-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-toc { position: sticky; top: 104px; }
.faq-toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.faq-toc a:hover { color: var(--accent-2); }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { margin-bottom: 18px; font-size: clamp(22px, 2.2vw, 28px); }
.footer-h { margin-bottom: 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- Текст ---------- */
.prose p { margin-bottom: 1.1em; }
.prose a, .seo-text a { color: var(--accent-2); text-decoration: underline; text-decoration-color: rgba(31, 63, 110, .35); text-underline-offset: 3px; }
.prose a:hover, .seo-text a:hover { text-decoration-color: currentColor; }
.prose h2 { margin: 1.5em 0 .55em; font-size: clamp(24px, 2.4vw, 32px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.3em 0 .5em; font-size: 20px; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.3em; }
.prose ul { margin-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; background: var(--accent); }
.prose ol { list-style: decimal; }
.prose li { margin: .45em 0; }
.prose ol li::marker { font-weight: 600; color: var(--accent); }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom-color: var(--rule-strong); }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--accent); font-size: 19px; font-weight: 500; }
.seo-text h2 { max-width: 860px; margin-bottom: 28px; }
.cols-2 { columns: 2; column-gap: 56px; color: var(--ink-2); font-size: 15.5px; }
.cols-2 p { break-inside: avoid; }
.callout { margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 15px; }
.callout a { color: var(--accent); font-weight: 600; }
.disclaimer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: clamp(24px, 3vw, 36px) 0 clamp(48px, 6vw, 80px); background: var(--bg-2); border-bottom: 1px solid var(--rule); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: clamp(32px, 4.4vw, 56px); font-size: 13.5px; }
.crumbs li { color: var(--ink-2); }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: #b4bcc8; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: end; }
.page-hero-grid.single { grid-template-columns: minmax(0, 1fr); }
.page-hero h1 { max-width: 22ch; font-size: clamp(34px, 4.6vw, 60px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.page-hero .lead { max-width: 680px; margin-top: 20px; }
.article-hero h1 { max-width: 24ch; }
.post-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.post-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; }
.post-author strong { display: block; font-size: 15px; }
.post-author small { font-size: 13px; color: var(--muted); }

/* Карточка стоимости на странице услуги */
.svc-aside { padding: 28px; background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--accent); box-shadow: 0 24px 48px -36px rgba(15, 26, 43, .45); }
.svc-aside-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.svc-aside-row:first-child { padding-top: 0; }
.svc-aside-row span { font-size: 14px; color: var(--muted); }
.svc-aside-row strong { font-size: 16px; font-weight: 600; text-align: right; }
.svc-aside-row:first-child strong { font-size: 20px; color: var(--accent); }
.svc-aside .btn { margin-top: 10px; }
.svc-aside .btn-gold { margin-top: 20px; }

/* ---------- Карточки услуг ---------- */
.cat-block { margin-bottom: clamp(56px, 7vw, 88px); scroll-margin-top: 100px; }
.cat-block-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-strong); }
.cat-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; background: var(--accent-soft); border-radius: var(--radius); }
.cat-ic .ic { width: 24px; height: 24px; color: var(--accent); }
.cat-block-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cat-block-head h2 a:hover { color: var(--accent-2); }
.cat-block-head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.svc-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'ic go' 'body body' 'meta meta';
  gap: 16px; min-width: 0; padding: 26px 24px 22px; background: var(--bg); border: 1px solid var(--rule);
  transition: border-color .2s, box-shadow .2s;
}
.svc-ic { grid-area: ic; display: grid; place-items: center; width: 44px; height: 44px; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent); }
.svc-ic .ic { width: 22px; height: 22px; }
.svc-go { grid-area: go; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; color: var(--accent); transition: background .2s, color .2s, border-color .2s; }
.svc-go .ic { width: 16px; height: 16px; }
.svc-body { grid-area: body; min-width: 0; }
.svc-body strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.svc-body span { font-size: 14.5px; color: var(--muted); }
.svc-meta { grid-area: meta; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.svc-meta b { font-size: 16px; font-weight: 700; color: var(--accent); }
.svc-meta em { font-size: 13px; font-style: normal; color: var(--muted); text-align: right; }
.svc-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px -28px rgba(15, 26, 43, .45); }
.svc-card:hover .svc-go { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Страница услуги ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.block { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--rule); }
.block:last-child { border-bottom: 0; margin-bottom: 0; }
.block > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: clamp(24px, 2.4vw, 32px); }
.block > h2 .ic { width: 26px; height: 26px; color: var(--accent); }
.tick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.tick-grid li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.tick-grid .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.docs-list { counter-reset: d; margin-bottom: 16px; border: 1px solid var(--rule); }
.docs-list li { position: relative; counter-increment: d; padding: 15px 20px 15px 64px; border-bottom: 1px solid var(--rule); }
.docs-list li:last-child { border-bottom: 0; }
.docs-list li:nth-child(even) { background: var(--bg-2); }
.docs-list li::before { content: counter(d, decimal-leading-zero); position: absolute; left: 20px; top: 15px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.notes .callout:first-child { margin-top: 0; }
.price-box { padding: 28px; border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--bg-2); }
.price-box > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.price-box > div span { font-weight: 600; }
.price-box strong { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.price-box p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.svc-side { position: sticky; top: 100px; align-self: start; }
.side-card { padding: 26px; border: 1px solid var(--rule); margin-bottom: 20px; }
.side-card h3 { margin-bottom: 12px; font-size: 17px; }
.side-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--accent-2); }
.side-links a[aria-current] { color: var(--accent); font-weight: 600; }
.side-dark { background: var(--accent); color: #fff; border-color: var(--accent); }
.side-dark p { margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.side-dark .btn + .btn { margin-top: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 80px); padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
.article-body { max-width: 740px; font-size: 17px; }
.toc { margin-bottom: 40px; padding: 22px 26px; background: var(--bg-2); border-left: 3px solid var(--accent); }
.toc p { margin-bottom: 10px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.toc ol { margin: 0 0 0 1.2em; }

/* ---------- О нотариусе ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.license-badge { position: absolute; left: 0; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.license-badge small { font-size: 12px; font-weight: 400; opacity: .8; }
.lead-sm { margin: 16px 0 18px; font-size: 19px; font-weight: 500; line-height: 1.5; }
.checks { margin: 20px 0 28px; }
.checks li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.checks .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.prose .checks { margin-left: 0; }
.prose .checks li { padding-left: 0; }
.prose .checks li::before { display: none; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-bottom: 24px; }
.cred { padding: 30px 26px; background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--accent); }
.cred .ic { width: 26px; height: 26px; color: var(--accent); }
.cred h3 { margin: 16px 0 6px; font-size: 18px; }
.cred p { font-size: 15px; color: var(--muted); }

/* ---------- Контакты и форма ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-grid h2 { margin-bottom: 6px; }
.big-phone { display: inline-block; margin: 14px 0 30px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; }
.big-phone:hover { color: var(--accent-2); }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--rule-strong); }
.contact-cards li { display: flex; gap: 14px; min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-cards li > .ic { color: var(--accent); margin-top: 2px; }
.contact-cards small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-cards strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.contact-cards span { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 14px; color: var(--muted); }
.contact-cards span .ic { width: 15px; height: 15px; }
.contact-cards a:hover { color: var(--accent-2); }
.how-to { margin-top: 36px; }
.card-form { position: relative; padding: clamp(26px, 3.4vw, 40px); background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--accent); box-shadow: 0 30px 60px -44px rgba(15, 26, 43, .5); }
.card-form h3, .card-form .h3 { margin-bottom: 6px; font-size: 24px; }
.card-form > p { margin-bottom: 22px; color: var(--muted); font-size: 15px; }
.booking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--bg); border: 1px solid #cdd3dc; border-radius: var(--radius); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select { padding-right: 36px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1a2b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(31, 63, 110, .14); }
.field input::placeholder, .field textarea::placeholder { color: #9aa3b0; }
.field .invalid, .field input.invalid { border-color: #b42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.booking .btn { margin-top: 6px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-note a { text-decoration: underline; }
.map-wrap { margin-top: clamp(44px, 5vw, 72px); border: 1px solid var(--rule); background: var(--bg); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-links { display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); }
.map-links a { padding: 14px 20px; border-right: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--accent); transition: background .2s; }
.map-links a:hover { background: var(--bg-2); }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hours > div { padding: 24px; background: var(--bg); border: 1px solid var(--rule); }
.hours span { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--muted); }
.hours strong { font-size: 20px; font-weight: 600; }

/* ---------- Полоса записи ---------- */
.cta-band { padding: clamp(52px, 6vw, 80px) 0; background: var(--accent); color: #fff; }
.cta-band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center; }
.cta-band .eyebrow { color: #b9cbe6; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 42px); }
.cta-band p:not(.eyebrow) { margin-top: 12px; max-width: 580px; color: rgba(255, 255, 255, .78); }
.cta-band-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 404 ---------- */
.nf { padding: 32px 0; }
.nf-code { font-size: clamp(96px, 16vw, 180px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--accent); }
.nf h1 { margin: 12px auto 0; }

/* ---------- Подвал ---------- */
.footer { padding-top: clamp(56px, 7vw, 88px); background: #0b1422; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand .brand-mark { background: #fff; color: var(--accent); }
.footer-brand b { display: block; font-size: 16px; font-weight: 700; }
.footer-brand small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.footer p { font-size: 14px; color: var(--muted); }
.footer li { margin: 9px 0; font-size: 14.5px; }
.footer li a { color: rgba(255, 255, 255, .8); transition: color .2s; }
.footer li a:hover { color: #fff; }
.footer-contacts li { display: flex; gap: 10px; color: rgba(255, 255, 255, .8); }
.footer-contacts .ic { width: 17px; height: 17px; margin-top: 3px; color: #b9cbe6; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--radius); transition: background .2s, border-color .2s; }
.footer-social a:hover { background: #fff; color: var(--accent); border-color: #fff; }
.footer-social .ic { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 56px; padding-top: 22px; padding-bottom: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: #fff; }
.footer-note { font-size: 12px !important; padding-bottom: 28px; }

/* ---------- Мобильная панель ---------- */
.mobile-bar { display: none; }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1440px) {
  .head-phone { display: none; }
}
@media (max-width: 1180px) {
  .head-nav { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 1100px) {
  .reg-row { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 14px 20px; padding: 24px 0; }
  .reg-row:hover { background: none; }
  .reg-n { grid-row: span 2; align-self: start; padding-top: 4px; }
  .reg-links { grid-column: 2 / -1; }
  .reg-price { display: none; }
  .reg-go { grid-column: 3; grid-row: 1; }
  .clauses, .adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .svc-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .svc-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
  .side-card { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-in { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-grid .svc-aside { max-width: 460px; }
  .post-list a { grid-template-columns: 140px minmax(0, 1fr) 24px; }
  .post-list span { display: none; }
  .hero-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-reqs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-reqs > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); align-items: center; }
  .about-home, .split, .faq-wrap, .contact-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid .about-photo { max-width: 420px; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-grid > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .cols-2 { columns: 1; }
  .faq-page { grid-template-columns: minmax(0, 1fr); }
  .faq-toc { position: static; }
  .faq-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-toc a { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
  .index-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 24px 0; }
  .hours { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; background: var(--bg); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
  .mobile-bar a + a { border-left: 1px solid var(--rule); }
  .mobile-bar .ic { width: 20px; height: 20px; color: var(--accent); }
  body { padding-bottom: 62px; }
  .menu-open .mobile-bar { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head-in { height: 64px; gap: 12px; }
  .head-cta { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 14px; }
  .brand-text b { font-size: 15px; }
  .brand-text small { font-size: 11.5px; }
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-portrait { order: -1; max-width: 100%; margin-bottom: 28px; }
  .hero-portrait img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .hero-btns .btn { flex: 1 1 100%; }
  .hero-reqs { grid-template-columns: minmax(0, 1fr); }
  .hero-reqs > div, .hero-reqs > div:nth-child(3) { padding: 16px 0; border-left: 0; }
  .hero-reqs > div + div { border-top: 1px solid var(--rule); }
  .clauses, .adv-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .clauses li, .adv { padding: 26px 22px; }
  .tick-grid, .booking, .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .post-list a { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 16px; padding: 20px 0; }
  .post-list time { grid-column: 1 / -1; }
  .price-row { flex-wrap: wrap; }
  .pt-time { display: none; }
  .cta-band-btns .btn { width: 100%; }
  .certificate dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .map-wrap iframe { height: 320px; }
  .index-cats { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Фотографии и цветовое разделение секций
   ========================================================================== */
:root { --bg-2: #edf1f7; }
.section-alt { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-alt + .section-alt { border-top: 0; }
.city-band { --muted: rgba(255, 255, 255, .72); --rule: rgba(255, 255, 255, .2); }

/* Цифры — тёмная полоса */
.trust.section-dark { background: var(--accent); border: 0; }
.trust.section-dark strong { color: #fff; }
.trust.section-dark span { color: var(--muted); }

/* Главный экран: фото Астаны */
.hero-portrait img { aspect-ratio: 4 / 5; object-position: 50% 35%; box-shadow: 0 30px 60px -40px rgba(15, 26, 43, .55); }

/* Реестр услуг с миниатюрами */
.reg-row { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 1.2fr) 110px 44px; padding: 22px 20px; }
.reg-row:hover { background: var(--bg); }
.reg-n { position: relative; display: block; width: 132px; aspect-ratio: 4 / 3; overflow: hidden; }
.reg-n img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.reg-row:hover .reg-n img { transform: scale(1.05); }
.reg-n b { position: absolute; left: 0; top: 0; padding: 4px 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }

/* Каталог: миниатюра раздела */
.cat-thumb { display: block; flex: none; width: 180px; aspect-ratio: 3 / 2; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-thumb:hover img { transform: scale(1.05); }
.cat-block-head { align-items: center; }

/* Фото в шапке раздела и на странице услуги */
.hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-figure { margin-bottom: 48px; }
.svc-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.about-photo img { object-position: center; }

/* Полоса с панорамой Астаны */
.city-band { position: relative; display: flex; align-items: center; min-height: 520px; overflow: hidden; color: #fff; }
.city-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.city-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19, 41, 75, .94) 0%, rgba(19, 41, 75, .78) 42%, rgba(19, 41, 75, .1) 85%); }
.city-band-in { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 88px; }
.city-band h2 { max-width: 620px; }
.city-band p:not(.eyebrow) { max-width: 520px; margin-top: 16px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.city-band .btn-gold { background: #fff; border-color: #fff; color: var(--accent); }
.city-band .btn-gold:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.city-band .btn-wa { border-color: rgba(255, 255, 255, .6); }
.city-band .btn-wa:hover { background: #fff; color: var(--ink); border-color: #fff; }

@media (max-width: 1100px) {
  .reg-row { grid-template-columns: 96px minmax(0, 1fr) 44px; padding: 20px 0; }
  .reg-row:hover { background: none; }
  .reg-n { width: 96px; }
}
@media (max-width: 640px) {
  .reg-row { grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 12px 14px; }
  .reg-n { width: 72px; }
  .reg-links { grid-column: 1 / -1; }
  .cat-thumb { width: 96px; }
  .city-band { min-height: 0; }
  .city-band::before { background: linear-gradient(180deg, rgba(19, 41, 75, .7) 0%, rgba(19, 41, 75, .92) 100%); }
  .city-band-in { padding-top: 64px; padding-bottom: 64px; }
  .city-band .btn { width: 100%; }
  .svc-figure img { aspect-ratio: 16 / 9; }
}

/* ---------- Логотип в три строки ---------- */
.brand { flex: none; }
.brand-text { overflow: visible; line-height: 1.2; }
.brand-text b, .brand-text small { overflow: visible; text-overflow: clip; }
.brand-text b { font-size: 16px; }
.brand-text .brand-name { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.brand-text small { margin-top: 2px; font-size: 11.5px; }
.brand-mark { width: 46px; height: 46px; }
.head-in { justify-content: space-between; }
.head-nav { margin-left: auto; }

/* ---------- Главный экран: широкое фото со скруглением ---------- */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-portrait img { aspect-ratio: 4 / 3; object-position: center; border-radius: 20px; }
.hero-portrait figcaption {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; background: rgba(255, 255, 255, .94); border-radius: 99px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 8px 24px -12px rgba(15, 26, 43, .5);
}
.hero-portrait figcaption .ic { width: 16px; height: 16px; color: var(--accent); }

/* Скругление остальных фото */
.reg-n, .cat-thumb, .hero-img img, .svc-figure img, .about-photo img { border-radius: 12px; }
.reg-n b { border-bottom-right-radius: 8px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { order: -1; margin-bottom: 28px; }
}
@media (max-width: 640px) {
  .hero-portrait img { border-radius: 16px; }
  .hero-portrait figcaption { left: 10px; bottom: 10px; font-size: 12.5px; padding: 7px 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text b { font-size: 15px; }
  .brand-text .brand-name { font-size: 12.5px; }
  .brand-text small { font-size: 11px; }
}

/* ---------- Связь вместо записи ---------- */
.head-wa { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--accent); transition: background .2s, color .2s, border-color .2s; }
.head-wa .ic { width: 19px; height: 19px; }
.head-wa:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.head-cta .ic { width: 16px; height: 16px; }
.contact-box .btn { margin-top: 12px; }
.contact-box .btn:first-of-type { margin-top: 4px; }
.contact-box .form-note { margin-top: 18px; }
@media (max-width: 900px) {
  .mobile-bar .mb-call { background: var(--accent); color: #fff; }
  .mobile-bar .mb-call .ic { color: #fff; }
}
@media (max-width: 640px) {
  .head-wa { display: none; }
}
.head-in { justify-content: flex-start; }
.brand { margin-right: auto; }
.head-nav { margin-left: 0; }
