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

/* psiholog-pro.ru — версия 1.0 */
:root {
  --bg: #131110;
  --bg-2: #1a1715;
  --card: #1f1b18;
  --card-hover: #262019;
  --line: rgba(236, 226, 212, .13);
  --text: #ece2d4;
  --muted: #b0a495;
  --accent: #cf9468;
  --accent-2: #e2ae84;
  --on-accent: #1b120b;
  --radius: 14px;
  --serif: 'Prata', 'Onest', Georgia, serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1520px;
  --gap: clamp(16px, 2.2vw, 24px);
  --section: clamp(48px, 7vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 72px); }
h1, h2, h3 { hyphens: manual; }
.legal h1 { font-size: clamp(26px, 7.4vw, 56px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: clamp(21px, 1.9vw, 24px); line-height: 1.25; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 clamp(32px, 4vw, 64px); } }
.wrap.narrow { max-width: var(--wrap); }
.wrap.narrow > * { max-width: 780px; }
.section { padding: var(--section) 0 0; }
.section:last-of-type, .contact { padding-bottom: var(--section); }
.section.alt { background: var(--bg-2); color: var(--text); margin-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt + .section { padding-top: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 8px; }
.section-head h2 { margin-bottom: .4em; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 16px/1.2 var(--sans); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent-2); border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(19, 17, 16, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); margin-right: auto; white-space: nowrap; }
.brand-name { font: 400 22px/1.1 var(--serif); color: var(--text); margin: 0; }
.brand-role { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.nav { display: none; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 9px; color: var(--text); text-decoration: none; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--accent-2); }
.has-sub { position: relative; }
.sub { position: absolute; left: 0; top: 100%; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { white-space: normal; }
.header-phone { display: none; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.header-cta { display: none; }
.burger { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--text); cursor: pointer; position: relative; }
.burger span:first-child, .burger span:first-child::before, .burger span:first-child::after { position: absolute; left: 12px; width: 18px; height: 1.5px; background: currentColor; content: ''; }
.burger span:first-child { top: 21px; }
.burger span:first-child::before { top: -6px; left: 0; }
.burger span:first-child::after { top: 6px; left: 0; }
.burger[aria-expanded="true"] span:first-child { background: transparent; }
.burger[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); max-height: calc(100vh - 68px); overflow-y: auto; padding: 8px 16px 24px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav > ul > li > a { display: block; padding: 12px 0; font: 400 24px/1.2 var(--serif); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
.mnav .sub a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 15px; }
.mnav-contacts { margin-top: 16px; }
@media (min-width: 1200px) {
  .nav { display: block; }
  .burger, .mnav { display: none !important; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1360px) { .header-phone { display: inline; } .nav a { padding: 8px 11px; } }

/* крошки */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 8px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-2); }

/* первый экран главной */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10%; top: -20%; width: 70vw; height: 140%; background: radial-gradient(closest-side, rgba(207, 148, 104, .16), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 24px; padding-top: 32px; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: .95; margin-bottom: .35em; }
.kicker { display: block; font: 500 15px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-proof { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.hero-proof a { color: var(--muted); }
.hero-proof a:hover { color: var(--accent-2); }
.hero-photo { margin: 0 auto; max-width: 340px; align-self: end; }
.hero-photo img { width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 76%, transparent), linear-gradient(to right, transparent, #000 20%, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 76%, transparent), linear-gradient(to right, transparent, #000 20%, #000 82%, transparent); mask-composite: intersect; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: end; padding-top: 48px; }
  .hero-text { padding-bottom: 56px; }
  .hero-photo { max-width: 460px; margin-right: 0; }
}

/* заголовок внутренних страниц */
.page-head { padding: 24px 0 0; }
.page-head-grid { display: grid; gap: 28px; }
.page-head h1 { max-width: 16em; }
.page-photo { margin: 0; border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.page-photo.is-wide { max-width: none; }
.page-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.page-photo.is-wide img { aspect-ratio: auto; }
@media (min-width: 1000px) {
  .page-head { padding-top: 40px; }
  .page-head-grid { grid-template-columns: 1fr 400px; align-items: center; }
  .page-head-grid.no-image { grid-template-columns: 1fr; }
  .page-photo { justify-self: end; width: 100%; }
}
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.facts li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }

/* карточки: flex, последний ряд растягивается — дыр в сетке нет */
.cards { display: flex; flex-wrap: wrap; gap: var(--gap); margin-bottom: 24px; }
.cards > * { flex: 1 1 300px; }
.cards.four > * { flex-basis: 250px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.link-card { text-decoration: none; transition: background .2s, border-color .2s; }
.link-card:hover, .link-card:focus-visible { background: var(--card-hover); border-color: rgba(207, 148, 104, .5); color: var(--text); }
.link-card:hover h3, .link-card:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; color: var(--accent-2); }
.link-card p { color: var(--muted); }
.cta-card { display: block; margin-top: 32px; border-color: rgba(207, 148, 104, .45); }

.directions { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .directions { grid-template-columns: 1fr 1fr; } }
.direction { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .2s; }
.direction img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; }
.direction-text { padding: 24px; }
.direction p { color: var(--muted); }
.direction .price-line { color: var(--text); font-weight: 600; }
.more { color: var(--accent-2); }
.direction:hover { border-color: rgba(207, 148, 104, .5); }
.direction:hover .more, .direction:focus-visible .more { text-decoration: underline; }

.price-sum { font: 400 34px/1.1 var(--serif); color: var(--accent-2); margin: 4px 0 8px; }
.price h3 { font-size: 22px; }
.rules { margin-top: 8px; max-width: 820px; }
.rules h3 { font-size: 22px; }

/* текст статей */
.prose { font-size: 18px; }
.prose h2 { margin-top: 1.4em; font-size: clamp(28px, 3vw, 36px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol, .rules ul, .steps { padding: 0; margin: 0 0 1.2em; list-style: none; }
.prose li, .rules li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose ul > li::before, .rules li::before { content: ''; position: absolute; left: 4px; top: calc(.5lh - 1px); width: 8px; height: 2px; background: var(--accent); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; padding-left: 34px; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0; font: 400 20px/1.35 var(--serif); color: var(--accent-2); }
.note { margin: 1.4em 0; padding: 18px 22px; background: var(--bg-2); border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.note p { margin: 0; }
.legal { font-size: 16px; }
.legal h2 { font-size: 26px; }

.steps { counter-reset: n; }
.steps li { counter-increment: n; position: relative; padding: 0 0 20px 56px; }
.steps li::before { content: counter(n); position: absolute; left: 0; top: -4px; font: 400 40px/1 var(--serif); color: var(--accent-2); }

/* статья */
.article-head { padding-top: 24px; }
.article-head h1 { font-size: clamp(36px, 5vw, 56px); }
.article-cover { margin-top: 8px; margin-bottom: 32px; }
.article-cover img { border-radius: var(--radius); width: 100%; }
.toc { margin-bottom: 32px; }
.toc-title { font-weight: 600; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent-2); text-decoration: underline; }
.author { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.author-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.author p { margin: 0 0 4px; }
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card > :not(img) { padding: 0 24px; }
.article-card > p.small { padding-top: 22px; margin-bottom: 8px; }
.article-card > p:last-child { padding-bottom: 24px; }
.article-card .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* галерея и документы */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.certs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px var(--gap); }
.certs a { display: block; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.certs img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #f4f1ec; transition: transform .2s; }
.certs a:hover img { transform: scale(1.03); }
.certs p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.certs p.muted { margin-top: 4px; font-size: 13px; }

.about-teaser { display: grid; gap: 28px; }
.about-teaser figure { margin: 0; max-width: 420px; }
.about-teaser img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 380px 1fr; align-items: center; gap: 56px; } }

/* вопросы */
.faq { margin: 0; }
.faq > div { padding: 20px 0; border-top: 1px solid var(--line); }
.faq dt { font: 400 21px/1.3 var(--serif); margin-bottom: 8px; }
.faq dd { margin: 0; color: var(--muted); }

/* контакты и форма */
.contact { margin-top: var(--section); background: var(--bg-2); border-top: 1px solid var(--line); padding-top: var(--section); }
.contact + .section { padding-top: var(--section); }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact-lines { display: grid; gap: 0; }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.contact-line span { color: var(--muted); }
.contact-line b { font-weight: 600; white-space: nowrap; }
.contact-line:hover b { color: var(--accent-2); text-decoration: underline; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px/1.4 var(--sans); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; font-size: 14px; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.form-status { margin: 0; }

/* подвал */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-title { font-weight: 600; margin-bottom: 10px; }
.footer-title a { color: var(--text); }
.footer .contact-line { color: var(--text); padding: 10px 0; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-legal p { margin-bottom: 6px; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.cookie p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

[hidden] { display: none !important; }
.direction img.pos-top { object-position: 50% 22%; }
@media (max-width: 999px) {
  .hero-grid { gap: 8px; padding-top: 16px; }
  .hero-photo { order: -1; max-width: 280px; margin: 0 auto; }
  .hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
  .hero::before { right: -40%; top: -10%; width: 120vw; height: 60%; }
}

/* версия 1.1: изображения в карточках, сцены, фирменная сетка точек */
.img-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.img-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.img-card:hover img, .img-card:focus-visible img { transform: scale(1.04); }
.img-card-body { padding: 18px 22px 22px; }
.img-card-body h3 { margin-bottom: .35em; }
.img-card-body p { margin: 0; font-size: 15px; }

.dots { position: relative; }
.dots::after { content: ''; position: absolute; left: 0; bottom: 0; width: min(46vw, 560px); height: 260px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(207, 148, 104, .38) 1.3px, transparent 1.8px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 0% 100%, #000 10%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }

.quote-grid, .practice-grid, .start-grid { display: grid; gap: 32px; align-items: center; }
.quote-photo { margin: 0; max-width: 460px; }
.quote-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.quote-scene blockquote { margin: 0 0 18px; position: relative; padding-top: 64px; }
.quote-scene blockquote::before { content: '«'; position: absolute; top: 0; left: -2px; font: 400 72px/.8 var(--serif); color: var(--accent); opacity: .7; }
.quote-scene blockquote p { font: 400 clamp(26px, 3vw, 38px)/1.25 var(--serif); margin: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic figure { margin: 0; }
.mosaic img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.mosaic figure:nth-child(2) { transform: translateY(28px); }
.mosaic figure:nth-child(4) { transform: translateY(28px); }
.steps.compact li { padding-bottom: 12px; padding-left: 44px; }
.steps.compact li::before { font-size: 30px; }
.practice-text .price-line { font-weight: 600; }
.start-grid figure { margin: 0; }
.start-grid img { width: 100%; border-radius: var(--radius); }
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: 400px 1fr; gap: 64px; }
  .practice-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .start-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}
.cert-strip { list-style: none; margin: 20px 0 0; padding: 0 0 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.cert-strip li { flex: 0 0 168px; scroll-snap-align: start; }
.cert-strip a { display: block; border-radius: 8px; overflow: hidden; background: #f4f1ec; border: 1px solid var(--line); }
.cert-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cert-strip p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .img-card img { transition: none; } }
.article-card { text-decoration: none; color: var(--text); transition: border-color .2s, background .2s; }
.article-card p:not(.small) { color: var(--muted); }
.article-card:hover, .article-card:focus-visible { border-color: rgba(207, 148, 104, .5); background: var(--card-hover); color: var(--text); }
.article-card:hover h3, .article-card:focus-visible h3 { color: var(--accent-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.article-card .cover { transition: transform .4s ease; }
.article-card:hover .cover { transform: scale(1.03); }
.contact-person { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.contact-person p { margin: 0; line-height: 1.4; }
.contact-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(207, 148, 104, .5); }

/* широкие экраны: контент до 1520 px, первый экран на всю высоту окна */
@media (min-width: 1000px) {
  .hero-grid { min-height: calc(100svh - 69px); align-items: center; padding-top: 24px; }
  .hero-text { padding-bottom: 0; }
  .hero-photo { align-self: end; }
}
@media (min-width: 1400px) {
  .hero h1 { font-size: clamp(104px, 7.4vw, 136px); }
  .hero .lead { font-size: 21px; }
  .hero-photo { max-width: 560px; }
  .page-head-grid { grid-template-columns: 1fr 480px; }
  .quote-grid { grid-template-columns: 480px 1fr; gap: 96px; }
  .practice-grid, .start-grid { gap: 96px; }
  .cards.four > * { flex-basis: 280px; }
}

/* логотип */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; }

/* цены: панели со строками */
.price-panels { display: grid; gap: var(--gap); }
@media (min-width: 1100px) { .price-panels { grid-template-columns: 1fr 1fr; } }
.price-panel { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.price-panel figure { margin: 0; }
.price-panel figure img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 700px) { .price-panel:not(.no-image) { grid-template-columns: 38% 1fr; } .price-panel figure img { aspect-ratio: auto; min-height: 100%; } }
.price-panel-body { padding: 26px 28px 28px; display: flex; flex-direction: column; }
.price-panel-body h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 8px; }
.price-panel-body .btn { align-self: flex-start; margin-top: 18px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(236, 226, 212, .18); }
.price-list li:last-child { border-bottom: 0; }
.price-name { display: flex; flex-direction: column; gap: 3px; }
.price-name b { font-weight: 600; }
.price-name .muted { font-size: 14px; line-height: 1.45; }
.price-list .price-sum { font-size: clamp(24px, 2.2vw, 30px); margin: 0; white-space: nowrap; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(207, 148, 104, .16); color: var(--accent-2); font-size: 12px; font-weight: 600; vertical-align: 2px; }

/* документы: ровная сетка без прокрутки */
.cert-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cert-grid { grid-template-columns: repeat(6, 1fr); } }
.cert-grid a { display: block; border-radius: 10px; overflow: hidden; background: #f4f1ec; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.cert-grid a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.cert-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cert-grid p { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* футер */
.footer { position: relative; overflow: hidden; padding-top: 72px; background: linear-gradient(180deg, var(--bg) 0%, #0d0b0a 100%); }
.footer::before { content: ''; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; background: url(/logo.svg) center / contain no-repeat; opacity: .05; pointer-events: none; }
.footer::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 220px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(207, 148, 104, .22) 1.2px, transparent 1.7px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand > span { display: flex; flex-direction: column; }
.footer-brand .brand-name { font-size: 30px; white-space: nowrap; }
.footer-lead { margin: 0; color: var(--muted); max-width: 34em; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-actions .btn { min-height: 46px; font-size: 15px; }
.footer-grid { padding-top: 40px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-legal { margin-top: 40px; padding: 20px 0 8px; border-top: 1px solid var(--line); }

/* разделы страниц услуг */
.cs-grid { display: grid; gap: 36px; align-items: center; }
.cs-text > p, .cs-text > h2, .cs-text > h3, .cs-text > .note { max-width: 780px; }
@media (min-width: 1000px) {
  .cs-grid.with-img { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .cs-grid.with-img.img-left { grid-template-columns: .9fr 1.1fr; }
  .cs-grid.with-img.img-left .cs-img { order: -1; }
}
.cs-img { margin: 0; }
.cs-img img { width: 100%; border-radius: var(--radius); max-height: 640px; object-fit: cover; }
.prose .tiles { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 20px 0 0; }
@media (min-width: 640px) { .prose .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cs-grid:not(.with-img) .tiles { grid-template-columns: repeat(3, 1fr); } }
.prose .tiles li { margin: 0; padding: 16px 18px 16px 50px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; font-size: 16px; }
.section.alt .prose .tiles li { background: var(--bg); }
.prose .tiles li::before { left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 3px, transparent 3.5px), rgba(207, 148, 104, .18); }
.prose .tiles.warn-list li::before { background: radial-gradient(circle, #e0a37a 2.5px, transparent 3px), rgba(224, 120, 90, .2); }
.section.warn .cs-text > h2::before { content: '!'; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-2); font: 600 18px/1 var(--sans); vertical-align: 6px; }
.prose ol.flow { counter-reset: n; display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 800px) { .cs-grid:not(.with-img) ol.flow { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.prose ol.flow > li { margin: 0; padding: 56px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; position: relative; font-size: 16px; }
.section.alt .prose ol.flow > li { background: var(--bg); }
.prose ol.flow > li::before { left: 20px; top: 12px; font: 400 34px/1 var(--serif); }
.benefits { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { padding: 22px 24px; border-radius: 14px; background: linear-gradient(160deg, rgba(207, 148, 104, .12), rgba(207, 148, 104, .02)); border: 1px solid rgba(207, 148, 104, .25); }
.benefit h3 { margin: 0 0 6px; font-size: 22px; }
.benefit p { margin: 0; font-size: 16px; color: var(--muted); }

/* колонки сеток не растягиваются по исходной ширине картинок */
.quote-grid > *, .practice-grid > *, .start-grid > *, .cs-grid > *, .hero-grid > *, .page-head-grid > *, .contact-grid > *, .directions > *, .price-panel > * { min-width: 0; }
.mosaic img { object-position: 50% 12%; }

/* цены v2: баннер группы + тарифы карточками */
.price-group { margin-bottom: 40px; }
.price-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--gap); }
.price-banner img { width: 100%; height: clamp(160px, 18vw, 240px); object-fit: cover; object-position: 50% 35%; }
.price-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 17, 16, .92) 0%, rgba(19, 17, 16, .6) 45%, rgba(19, 17, 16, .05) 100%); }
.price-banner-text { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 2.4vw, 32px); z-index: 1; max-width: 60%; }
.price-banner-text h3 { font-size: clamp(26px, 2.8vw, 40px); margin: 0 0 6px; }
.price-banner-text p { margin: 0; color: var(--muted); }
.tariffs { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .tariffs { grid-template-columns: repeat(3, 1fr); } }
.tariff { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tariff.best { border-color: var(--accent); background: linear-gradient(170deg, rgba(207, 148, 104, .14), var(--card) 55%); }
.tariff .tag { position: absolute; top: -12px; left: 24px; margin: 0; background: var(--accent); color: var(--on-accent); }
.tariff h3 { font-size: 22px; margin-bottom: 10px; }
.tariff .price-sum { font-size: clamp(34px, 3vw, 44px); margin: 0 0 6px; }
.tariff-per { margin: 0 0 12px; color: var(--accent-2); font-size: 15px; font-weight: 500; }
.tariff-facts { list-style: none; margin: 8px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); flex: 1; }
.tariff-facts li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tariff-facts li::before { content: ''; position: absolute; left: 2px; top: calc(.5lh - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tariff .btn { align-self: stretch; }

/* телефоны: шапка и футер помещаются, длинные слова заголовков влезают */
@media (max-width: 440px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 19px; }
  .brand-role { display: none; }
  .footer-brand .brand-name { font-size: 24px; white-space: normal; }
  .footer-brand img { width: 56px; height: 56px; }
}
@media (max-width: 360px) {
  h1, .article-head h1 { font-size: 24px; }
  h2, .prose h2 { font-size: 21px; }
}
@media (max-width: 700px) {
  .price-banner-text { max-width: none; right: 20px; }
  .price-banner-text h3 { font-size: 24px; }
  .price-banner::after { background: linear-gradient(0deg, rgba(19, 17, 16, .92) 0%, rgba(19, 17, 16, .5) 60%, rgba(19, 17, 16, .1) 100%); }
}
@media (max-width: 440px) { h1, .article-head h1 { font-size: clamp(23px, 7vw, 40px); } }
@media (max-width: 360px) { .legal h1 { font-size: 21px; } }

/* цитата: кавычки-ёлочки в тексте, медная линия слева */
.quote-scene blockquote { padding: 4px 0 4px 28px; border-left: 2px solid var(--accent); }
.quote-scene blockquote::before { content: none; }
.cert-grid > li { min-width: 0; }

/* шапка в две строки */
.topbar { display: none; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--accent-2); }
.header-phone { display: none !important; }

/* статья: колонка текста + закреплённая панель справа */
.article-layout { display: grid; gap: 48px; padding-top: 8px; }
.article-main { min-width: 0; max-width: 900px; }
.article-side { min-width: 0; }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; }
  .side-card { position: sticky; top: 124px; }
}
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-person { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.side-person p { margin: 0; line-height: 1.35; }
.side-toc { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.side-toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.side-toc li { margin-bottom: 6px; color: var(--muted); }
.side-toc a { color: var(--muted); text-decoration: none; }
.side-toc a:hover { color: var(--accent-2); text-decoration: underline; }
.side-form { gap: 10px; }
.side-form-title { margin: 0 0 4px; font: 400 22px/1.2 var(--serif); }
.side-form input:not([type="checkbox"]) { min-height: 46px; }
.side-form .check { font-size: 12px; }
.side-form .btn { justify-self: stretch; }
.side-phone { margin: 14px 0 0; font-size: 14px; text-align: center; }
.article .prose { font-size: 18px; }
.article .cta-card { margin-top: 32px; }
@media (max-width: 1099px) { .article-side .side-toc { display: none; } }

/* шапка страницы: горизонтальное фото — широкий баннер под текстом */
.page-head-grid.wide-head { grid-template-columns: 1fr; }
.page-head-grid.wide-head .page-photo { max-width: none; justify-self: stretch; }
.page-head-grid.wide-head .page-photo img { aspect-ratio: 21 / 9; object-fit: cover; max-height: 560px; }

/* тарифы: общая сетка строк — цены и линии на одной высоте */
@media (min-width: 760px) {
  .tariffs { grid-template-rows: auto auto auto 1fr auto; column-gap: var(--gap); row-gap: 0; }
  .tariff { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
}
.tariff-per:empty { margin: 0; }

/* футер: читаемые кнопки, контакты не уезжают */
.footer .btn { color: var(--on-accent); text-decoration: none; }
.footer .btn-ghost { color: var(--text); }
.footer .btn-ghost:hover { color: var(--accent-2); }
@media (min-width: 1000px) { .footer-top { grid-template-columns: auto minmax(0, 1fr); row-gap: 24px; } .footer-actions { grid-column: 1 / -1; } }
.footer::before { right: -80px; top: auto; bottom: -80px; width: 360px; height: 360px; opacity: .035; }

/* ссылка «Все …» — под блоком, по центру */
.section-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 32px 0 0; text-align: center; }
.section-more p { margin: 0; }

/* практика на гвоздях: текст в две колонки, фото ровным рядом */
.practice-head { display: grid; gap: 24px 64px; align-items: start; margin-bottom: 36px; }
@media (min-width: 1000px) { .practice-head { grid-template-columns: 1fr 1fr; } }
.practice-head > * { min-width: 0; }
.practice-head .lead { margin-bottom: 0; }
.practice-head .price-line { font-weight: 600; }
.photo-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .photo-row { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } }
.photo-row figure { margin: 0; min-width: 0; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }

/* ПРАВИЛО: в сетках нет пустых ячеек — элементы тянутся и заполняют последний ряд */
.benefits, .prose .tiles, .prose ol.flow { display: flex !important; flex-wrap: wrap; }
.benefits > .benefit { flex: 1 1 280px; }
.prose .tiles > li { flex: 1 1 300px; }
.prose ol.flow > li { flex: 1 1 220px; }
@media (min-width: 760px) { .tariffs { grid-template-columns: repeat(var(--n, 3), 1fr); } }

/* первый экран выше */
@media (min-width: 1000px) {
  .hero-grid { min-height: min(calc(100svh - 104px), 820px); align-items: start; padding-top: clamp(24px, 4vh, 56px); }
  .hero-text { padding-top: clamp(8px, 3vh, 40px); }
  .hero-photo { align-self: end; }
}

/* «Все …» в одну линию: пояснение слева, кнопка справа */
.section-more.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; text-align: left; }

/* статья: содержание наверху в колонке */
.toc-top { margin: 0 0 28px; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-top ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.toc-top li { margin-bottom: 6px; color: var(--muted); break-inside: avoid; }
.toc-top a { color: var(--muted); text-decoration: none; }
.toc-top a:hover { color: var(--accent-2); text-decoration: underline; }
.side-card { padding: 22px; }
.side-person { margin-bottom: 14px; }

/* образование: текст слева, документы 3×2 справа */
.docs-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .docs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 72px; } }
.docs-text p { color: var(--muted); }
.docs-links { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.docs-links a { display: inline-block; padding: 8px 14px; border: 1px solid rgba(207, 148, 104, .4); border-radius: 999px; text-decoration: none; font-size: 14px; }
.docs-links a:hover { background: rgba(207, 148, 104, .12); }
.cert-grid.docs-certs { margin: 0; grid-template-columns: repeat(3, 1fr) !important; gap: 18px; }
.docs-certs p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
@media (max-width: 560px) { .cert-grid.docs-certs { grid-template-columns: repeat(2, 1fr) !important; } }

/* ключевые условия под ценами */
.terms-strip { display: grid; gap: 18px 32px; align-items: center; margin-top: 8px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
@media (min-width: 900px) { .terms-strip { grid-template-columns: repeat(3, 1fr) auto; } }
.terms-strip div { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--accent); }
.terms-strip span { color: var(--muted); font-size: 15px; }
.terms-strip > a { white-space: nowrap; font-weight: 600; }
.page-head-grid.wide-head .page-photo img { aspect-ratio: auto; max-height: none; object-fit: contain; }
.article-cover { margin: 0 0 32px; }
.article-cover img { width: 100%; }
@media (min-width: 760px) and (max-width: 1199px) { .tariffs[style*="--n:4"] { grid-template-columns: repeat(2, 1fr); } }

/* статья: мета и содержание */
.article-head { padding-top: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.article-meta .chip { padding: 5px 14px; border-radius: 999px; background: rgba(207, 148, 104, .14); color: var(--accent-2); font-weight: 600; }
.article-meta span + span::before, .article-meta span + time::before { content: '·'; margin-right: 18px; color: var(--line); }
.article-meta .chip + span::before { content: none; }
.toc-top { padding: 22px 26px 12px; border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.toc-top .toc-title { margin: 0 0 8px; font: 400 22px/1.2 var(--serif); }
.toc-top ol { columns: auto; list-style: none; padding: 0; }
.toc-top li { margin: 0; border-top: 1px solid var(--line); }
.toc-top li:first-child { border-top: 0; }
.toc-top a { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; color: var(--text); font-size: 16px; }
.toc-top a:hover { color: var(--accent-2); text-decoration: none; }
.toc-n { flex: none; width: 22px; font: 400 20px/1 var(--serif); color: var(--accent); }

/* шапка страницы: кнопка и особенности в одну строку */
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 8px; }
.head-actions .facts { margin: 0; gap: 6px 22px; }
.head-actions .facts li { padding: 0 0 0 16px; border: 0; border-radius: 0; position: relative; font-size: 15px; color: var(--muted); }
.head-actions .facts li::before { content: ''; position: absolute; left: 0; top: calc(.5lh - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* противопоказания: одна панель-список вместо отдельных карточек */
.prose .tiles.warn-list { display: block !important; columns: 3 280px; column-gap: 40px; margin: 18px 0 24px; padding: 18px 26px; background: var(--card); border: 1px solid rgba(207, 148, 104, .35); border-radius: var(--radius); }
.section.alt .prose .tiles.warn-list { background: var(--bg); }
.prose .tiles.warn-list li { break-inside: avoid; margin: 0; padding: 10px 0 10px 28px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15.5px; }
.prose .tiles.warn-list li::before { content: '×'; left: 2px; top: 8px; width: auto; height: auto; background: none; color: var(--accent-2); font: 400 20px/1 var(--sans); }
.prose .tiles + p { margin-top: 20px; }

/* длинные списки: одна панель в колонки, без отдельных карточек */
.prose .tiles { display: block !important; columns: 3 280px; column-gap: 40px; margin: 18px 0 24px; padding: 18px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.section.alt .prose .tiles { background: var(--bg); }
.prose .tiles li { break-inside: avoid; margin: 0; padding: 10px 0 10px 28px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15.5px; }
.prose .tiles li::before { content: '✓'; left: 2px; top: 10px; width: auto; height: auto; background: none; border-radius: 0; color: var(--accent-2); font: 600 15px/1.2 var(--sans); }
.prose .tiles.warn-list { border-color: rgba(207, 148, 104, .35); }
.prose .tiles.warn-list li::before { content: '×'; top: 8px; font: 400 20px/1 var(--sans); }

/* страница «Обо мне» */
.about-hero { padding: 24px 0 0; }
.about-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1000px) { .about-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; } }
.about-portrait { margin: 0; }
.about-portrait img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about-hero h1 { font-size: clamp(40px, 5.6vw, 88px); line-height: 1; }
.about-facts { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .about-facts { grid-template-columns: repeat(4, 1fr); } }
.about-facts li { display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); }
.about-facts b { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); color: var(--accent-2); }
.about-facts span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.principles { margin-bottom: 28px; }
.principles .benefit { flex-basis: 240px; }
.about-text { max-width: 820px; }
.edu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 12px; }
.edu-head .docs-links { margin: 0; }
.cert-group { margin-top: 36px; }
.cert-group h3 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* шапки внутренних страниц как на главной: фото без рамки, края растворяются */
.blend img { border-radius: 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent); mask-composite: intersect; }
.page-head.hero { overflow: hidden; padding-top: 8px; }
.page-head.hero .page-photo { max-width: 520px; }
.page-head.hero .page-photo img { aspect-ratio: 4 / 5; }
@media (min-width: 1000px) {
  .page-head.hero .page-head-grid { grid-template-columns: 1fr minmax(0, 520px); min-height: 560px; }
  .page-head.hero h1 { font-size: clamp(56px, 5.4vw, 88px); line-height: 1; }
}
.about-hero.hero { overflow: hidden; }
.about-portrait.blend img { aspect-ratio: 4 / 5; }

/* документы одной сеткой с меткой темы */
.certs-all { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 24px; }
.cert-tag { display: inline-block; margin-top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(207, 148, 104, .14); color: var(--accent-2); font-size: 12px; font-weight: 600; }
.certs-all p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.certs-all p.muted { -webkit-line-clamp: 2; }
.certs p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.certs p.muted { -webkit-line-clamp: 2; }
@media (min-width: 1000px) {
  .page-head.hero .page-head-grid { align-items: start; }
  .page-head.hero .page-head-grid > div:first-child { padding-top: clamp(24px, 6vh, 72px); }
  .page-head-grid:not(.wide-head):not(.no-image) .page-photo.is-wide img { aspect-ratio: 3 / 2; }
  .page-head-grid:not(.wide-head):not(.no-image):has(.is-wide) { grid-template-columns: 1fr minmax(0, 560px); }
}
.page-head.hero h1, .about-hero.hero h1 { font-size: clamp(27px, 8.2vw, 72px); line-height: 1.05; }
@media (max-width: 360px) { .page-head.hero h1, .about-hero.hero h1 { font-size: 24px; } }
@media (min-width: 1000px) { .page-head.hero h1 { font-size: clamp(56px, 5.4vw, 88px); } .about-hero.hero h1 { font-size: clamp(56px, 5.6vw, 88px); } }

/* блок записи: форма отдельной карточкой, контакты плитками */
.contact-grid { align-items: start; }
.form-card { position: relative; padding: 32px 32px 28px; background: #26211d; border: 1px solid rgba(207, 148, 104, .3); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.form-title { margin: 0; font: 400 30px/1.15 var(--serif); }
.form-sub { margin: -8px 0 6px; }
.form-card input:not([type="checkbox"]), .form-card select, .form-card textarea { background: var(--bg); }
.form-card .btn { justify-self: stretch; }
.contact-tiles { display: grid; gap: 12px; margin-top: 8px; }
.contact-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s, background .2s; }
.contact-tile:hover { border-color: var(--accent); background: rgba(207, 148, 104, .08); color: var(--text); }
.ct-label { font-size: 13px; color: var(--muted); }
.contact-tile b { font-size: 19px; font-weight: 600; }
.contact-tile:hover b { color: var(--accent-2); }
@media (max-width: 560px) { .form-card { padding: 24px 18px 20px; } }

/* компактная форма */
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; } }
.form-card { padding: 24px 26px 22px; gap: 12px; }
.form-card .form-title { font-size: 26px; }
.form-card .form-sub { margin: -6px 0 2px; }
.form-card label { gap: 4px; font-size: 14px; }
.form-card input:not([type="checkbox"]), .form-card select { min-height: 44px; padding: 9px 12px; font-size: 15px; }
.form-card textarea { min-height: 0; padding: 9px 12px; font-size: 15px; }
.form-card .check { font-size: 12.5px; }
.form-card .btn { min-height: 48px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row > * { min-width: 0; }

/* документы: 25 = 5×5, без одинокого хвоста */
.certs-all { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 700px) { .certs-all { grid-template-columns: repeat(5, 1fr) !important; gap: 22px 18px; } }
@media (max-width: 699px) { .certs-all > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); } }
.certs-all > li { min-width: 0; }
.cert-tag { max-width: 100%; white-space: normal; line-height: 1.3; }
.certs-all img { width: 100%; }
.head-trust { margin: 36px 0 0; max-width: 620px; }
@media (min-width: 700px) { .head-trust { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) {
  .page-head.hero .page-head-grid { min-height: 0; align-items: center; }
  .page-head.hero .page-head-grid > div:first-child { padding-top: 0; }
  .page-head.hero .page-photo { max-width: 470px; }
}

/* короткие разделы: парой в две колонки или одной карточкой */
.cs-pair { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .cs-pair { grid-template-columns: 1fr 1fr; } }
.cs-card { padding: 30px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.section.alt .cs-card { background: var(--bg); }
.cs-card h2 { font-size: clamp(26px, 2.4vw, 34px); }
.cs-card > :last-child { margin-bottom: 0; }
.cs-solo { max-width: 900px; border-left: 2px solid var(--accent); }

/* одиночный короткий раздел — во всю ширину: заголовок слева, текст справа */
.cs-solo { max-width: none; display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .cs-solo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.cs-solo h2 { margin: 0; }

/* вопросы и ответы — раскрывающиеся */
.faq-wrap { max-width: 1000px; margin: 0 auto; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 56px 20px 0; font: 400 clamp(19px, 1.8vw, 23px)/1.3 var(--serif); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 300 22px/1 var(--sans); color: var(--accent-2); transition: transform .25s, border-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--accent); }
.faq summary:hover { color: var(--accent-2); }
.faq-a { padding: 0 56px 22px 0; color: var(--muted); }
/* меньше пустоты между блоком записи и подвалом */
.contact { padding-bottom: clamp(40px, 4vw, 56px); }
.footer { padding-top: 40px; }
.footer::after { height: 140px; }



/* вопросы и ответы: по сетке сайта, все закрыты, без квадратной рамки фокуса */
.faq-wrap { max-width: var(--wrap); margin: 0 auto; }
.faq { max-width: 1100px; }
.faq summary:focus { outline: none; }
.faq summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; border-radius: 8px; }

/* карточки коротких разделов с картинкой */
.cs-card.with-pic { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cs-card-img { margin: 0; }
.cs-card-img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.cs-card.with-pic .cs-card-body, .cs-solo.with-pic > div { padding: 26px 30px 30px; }
.cs-solo.with-pic { padding: 0; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .cs-solo.with-pic { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); } .cs-solo.with-pic .cs-card-img img { height: 100%; aspect-ratio: 3 / 2; } .cs-solo.with-pic > div { align-self: center; } }
.cs-solo.with-pic h2 { margin-bottom: .5em; }
/* главная: первый экран без пустоты */
@media (min-width: 1000px) { .hero-grid { min-height: 0; align-items: center; } .hero-text { padding-top: 0; padding-bottom: 32px; } }
.hero .head-trust a { color: var(--muted); }
.hero .head-trust a:hover { color: var(--accent-2); }
/* образование: текст прижат к верху */
.docs-grid { align-items: start; }
.cs-solo.with-pic { display: grid; }
.section-more.split { padding-top: 24px; border-top: 1px solid var(--line); }
.section-more.split p { max-width: 720px; }

/* ===== фоновые иллюстрации секций ===== */
.bg-sec, main > .section.alt { position: relative; isolation: isolate; }
.bg-sec::before, main > .section.alt::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19,17,16,.96) 0%, rgba(19,17,16,.82) 42%, rgba(19,17,16,.35) 100%), var(--bgimg) right center / cover no-repeat; }
.bg-sec::after, main > .section.alt::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,17,16,.55), transparent 18%, transparent 82%, rgba(19,17,16,.6)); pointer-events: none; }
@media (max-width: 900px) { .bg-sec::before, main > .section.alt::before { background: linear-gradient(180deg, rgba(19,17,16,.9), rgba(19,17,16,.8)), var(--bgimg-sm, var(--bgimg)) center / cover no-repeat; } }
.bg-kabinet { --bgimg: url(/assets/img/bg/bg-kabinet.webp?v=3dc17bff); --bgimg-sm: url(/assets/img/bg/bg-kabinet-sm.webp?v=991ea4a8); }
.bg-listya { --bgimg: url(/assets/img/bg/bg-listya.webp?v=a97d492d); --bgimg-sm: url(/assets/img/bg/bg-listya-sm.webp?v=d12300d3); }
.bg-okno { --bgimg: url(/assets/img/bg/bg-okno.webp?v=132d4cd9); --bgimg-sm: url(/assets/img/bg/bg-okno-sm.webp?v=091cfdc4); }
main > .section.alt:nth-of-type(4n+1) { --bgimg: url(/assets/img/bg/bg-tkan.webp?v=f669cdf8); --bgimg-sm: url(/assets/img/bg/bg-tkan-sm.webp?v=db1c04d0); }
main > .section.alt:nth-of-type(4n+2) { --bgimg: url(/assets/img/bg/bg-more.webp?v=4144074a); --bgimg-sm: url(/assets/img/bg/bg-more-sm.webp?v=48232fbe); }
main > .section.alt:nth-of-type(4n+3) { --bgimg: url(/assets/img/bg/bg-doska.webp?v=4cc8f39c); --bgimg-sm: url(/assets/img/bg/bg-doska-sm.webp?v=9691ce45); }
main > .section.alt:nth-of-type(4n) { --bgimg: url(/assets/img/bg/bg-listya.webp?v=a97d492d); --bgimg-sm: url(/assets/img/bg/bg-listya-sm.webp?v=d12300d3); }
.section.alt { background: var(--bg); border: 0; }
.page-head.bg-sec { padding-bottom: clamp(40px, 5vw, 72px); }
.contact.bg-sec { background: var(--bg); }
/* карточки на фоне — чуть прозрачнее, чтобы фон дышал */
.bg-sec .card, main > .section.alt .card, main > .section.alt .cs-card, main > .section.alt .prose .tiles, main > .section.alt .benefit, main > .section.alt .prose ol.flow > li { background: rgba(31, 27, 24, .82); backdrop-filter: blur(6px); }
.bg-more { --bgimg: url(/assets/img/bg/bg-more.webp?v=4144074a); --bgimg-sm: url(/assets/img/bg/bg-more-sm.webp?v=48232fbe); }
.bg-sec { padding-bottom: var(--section); }
.bg-sec + .section { padding-top: var(--section); }
.cs-solo > *, .cs-pair > * { min-width: 0; }
@media (max-width: 480px) { .cs-card { padding: 22px 18px; } .cs-card.with-pic .cs-card-body, .cs-solo.with-pic > div { padding: 20px 18px 22px; } .cs-card h2 { font-size: 23px; } }
.topbar-in { justify-content: flex-end; }
@media (min-width: 1000px) { .about-hero-grid { align-items: start; } .about-hero-grid > div { padding-top: clamp(16px, 4vh, 48px); } .about-portrait { margin-top: -12px; } }
@media (min-width: 1000px) { .about-hero-grid > div { padding-top: 0; } .about-hero { padding-top: 8px; } }
.about-quote { margin: 32px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); }
.about-quote p { margin: 0; font: 400 clamp(20px, 1.7vw, 26px)/1.35 var(--serif); color: var(--text); }
@media (min-width: 1000px) { .about-hero-grid { align-items: center; } }
.principles .img-card p { color: var(--muted); } .about-extra { margin: 8px 0 0; }
/* стык секций: один отступ, а не два */
main > .section + .section { padding-top: clamp(36px, 4.5vw, 64px); }
main > .section.cs, main > .bg-sec { padding-bottom: clamp(36px, 4.5vw, 64px); }
main > .section.cs + .section.cs { margin-top: 0; }
.section.alt { margin-top: 0; }
/* 24 документа: 6×4 на широком, 4×6 на планшете */
@media (min-width: 700px) { .certs-all { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 1200px) { .certs-all { grid-template-columns: repeat(6, 1fr) !important; } }
/* «Образование и документы» на главной: текст закреплён, пока листаются документы */
@media (min-width: 1000px) { .docs-grid { align-items: start; } .docs-text { position: sticky; top: 130px; } }
@media (min-width: 1200px) { .cert-grid.docs-certs { grid-template-columns: repeat(4, 1fr) !important; } }
.docs-text > p:first-of-type::after { content: none; }

/* контакты: 2 колонки, иконки */
.contact-tiles { grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-tiles { grid-template-columns: 1fr 1fr; } }
.contact-tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0; }
.ct-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(207, 148, 104, .14); color: var(--accent-2); transition: background .2s, color .2s; }
.ct-ic svg { width: 20px; height: 20px; fill: currentColor; }
.contact-tile:hover .ct-ic { background: var(--accent); color: var(--on-accent); }
.ct-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-tile b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1000px) { .footer-top { grid-template-columns: auto minmax(0, 1fr); } }
/* главная: текст первого экрана выше */
@media (min-width: 1000px) {
  .hero-grid { align-items: start; padding-top: clamp(20px, 3vh, 36px); }
  .hero-text { padding-top: clamp(8px, 2vh, 24px); }
  .hero-photo { align-self: end; }
}

/* первый экран главной: фото растянуто ровно на высоту текста */
@media (min-width: 1000px) {
  .hero-grid { align-items: stretch; padding-top: 12px; }
  .hero-text { padding: 8px 0 32px; }
  .hero-photo { position: relative; align-self: stretch; max-width: none; width: 100%; margin: 0; min-height: 520px; }
  .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
}
.start-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; max-height: 620px; }
.author-photo, .contact-photo { object-position: 50% 18%; }

/* ИИ-портреты Екатерины: без рамки, края растворяются в фоне */
.quote-photo.blend img, .start-photo.blend img { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
/* «Как записаться» и цитата — спокойный фон кабинета */
main > .section.alt.start-scene, main > .section.alt.quote-scene { --bgimg: url(/assets/img/bg/bg-kabinet.webp?v=3dc17bff); --bgimg-sm: url(/assets/img/bg/bg-kabinet-sm.webp?v=991ea4a8); }
main > .section.alt.start-scene::before, main > .section.alt.quote-scene::before { background: linear-gradient(90deg, rgba(19,17,16,.55) 0%, rgba(19,17,16,.85) 50%, rgba(19,17,16,.96) 100%), var(--bgimg) left center / cover no-repeat; }

/* вертикальные кадры в горизонтальных врезках: не резать головы */
.cs-card-img img.is-v, .cs-img img.is-v { object-position: 50% 8%; }

/* списки-галочки: одна плашка на фоне, пункты без собственных подложек */
.prose .tiles li, .section.alt .prose .tiles li, .section.alt .prose .tiles.warn-list li { background: none; border: 0; border-bottom: 1px solid rgba(236, 226, 212, .08); border-radius: 0; }
.prose .tiles { padding: 14px 30px; }

/* шаги в том же стиле, что карточки «Что даёт»: номер, заголовок засечками, текст приглушённый */
.prose ol.flow > li { padding: 22px 24px 24px; border-radius: 14px; border: 1px solid rgba(207, 148, 104, .25); background: linear-gradient(160deg, rgba(207, 148, 104, .12), rgba(207, 148, 104, .02)); color: var(--muted); }
.prose ol.flow > li::before { position: static; display: block; margin-bottom: 12px; content: '0' counter(n); font: 500 14px/1 var(--sans); letter-spacing: .12em; color: var(--accent-2); }
.prose ol.flow > li > strong:first-child { display: block; margin-bottom: 6px; font: 400 22px/1.2 var(--serif); color: var(--text); }

/* основной текст мягче заголовков: яркий крем на тёмном «звенит» (14,7:1), здесь ~11:1 */
:root { --body: #cfc5b7; }
body { color: var(--body); }
h1, h2, h3, h4, strong, b, .brand-name { color: var(--text); }

/* «Контакты»: шапка и блок записи — один экран, без двойного отступа, линии и обрыва фона */
.page-head.bg-sec:has(+ .contact) { padding-bottom: 0; }
.page-head.bg-sec:has(+ .contact)::before, .page-head.bg-sec:has(+ .contact)::after { display: none; }
.page-head + .contact { margin-top: 0; padding-top: 28px; border-top: 0; }
.page-head + .contact h2 { font-size: clamp(26px, 2.6vw, 34px); }

/* шаги: крупный тихий номер фоном в правом нижнем углу вместо маленького «01» */
.prose ol.flow > li { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 36px; }
.prose ol.flow > li::before { position: absolute; left: auto; top: auto; right: -6px; bottom: -34px; margin: 0; z-index: -1; content: counter(n); font: 400 128px/1 var(--serif); letter-spacing: 0; color: rgba(207, 148, 104, .1); pointer-events: none; }
@media (max-width: 640px) { .prose ol.flow > li::before { font-size: 96px; bottom: -24px; } }
/* те же мягкие тона для блоков, где цвет текста был задан явно */
.section.alt, .lead, .card, .direction, .article-card, .link-card:hover, .link-card:focus-visible, .article-card:hover, .article-card:focus-visible { color: var(--body); }

/* фоновые картинки растворяются сверху и снизу — без жёсткого края; после такой секции отступ меньше */
.bg-sec::before, main > .section.alt::before { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 70%, transparent 100%); }
main > .section.alt + .section:not(.alt), main > .bg-sec + .section:not(.alt):not(.bg-sec) { padding-top: clamp(24px, 3vw, 40px); }
main > .section.alt, main > .section.cs.alt { padding-bottom: clamp(32px, 4vw, 52px); }

/* «Выступления» на странице «Обо мне»: плашка под карточками принципов */
.about-speaker { display: flex; align-items: center; gap: 18px; margin-top: 16px; padding: 18px 24px; border-radius: 14px; border: 1px solid rgba(207, 148, 104, .25); background: linear-gradient(90deg, rgba(207, 148, 104, .12), rgba(207, 148, 104, .02)); }
.about-speaker p { margin: 0; color: var(--muted); }
.about-speaker b { display: block; margin-bottom: 2px; font: 400 21px/1.2 var(--serif); }
@media (min-width: 800px) { .about-speaker b { display: inline; margin: 0 14px 0 0; } }

/* тарифы: подпись «для кого», выделение основной карточки страницы */
.tariff-kicker { display: block; margin-bottom: 8px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.tariff.main { border-color: rgba(207, 148, 104, .6); background: linear-gradient(170deg, rgba(207, 148, 104, .14), var(--card) 55%); }
.tariff .price-sum { letter-spacing: -.01em; }
.tariff-facts li { color: var(--body); }

/* «Контакты»: где проходят встречи и реквизиты */
.places { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 800px) { .places { grid-template-columns: repeat(3, 1fr); } }
.place { padding: 24px 26px; border-radius: 14px; border: 1px solid rgba(207, 148, 104, .25); background: linear-gradient(160deg, rgba(207, 148, 104, .12), rgba(207, 148, 104, .02)), rgba(31, 27, 24, .82); backdrop-filter: blur(6px); }
.place .ct-ic { margin-bottom: 16px; }
.place h3 { margin: 0 0 6px; font-size: 22px; }
.place p { margin: 0; color: var(--muted); font-size: 16px; }
.requisites { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.requisites h3 { margin: 0 0 12px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.requisites dl { display: grid; gap: 12px 32px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 640px) { .requisites dl { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (min-width: 1100px) { .requisites dl { grid-template-columns: repeat(4, auto); } }
.requisites dt { font-size: 13px; color: var(--muted); }
.requisites dd { margin: 2px 0 0; font-size: 15px; }
/* «Контакты»: «Где проходят встречи» сразу под формой */
.page-head + .contact { padding-bottom: 24px; }
.page-head + .contact + .section { padding-top: 24px; }

/* тарифы: вся карточка ведёт к заявке, ховер — подъём, медная рамка, кнопка заливается */
.tariff { transition: transform .25s ease, border-color .25s, box-shadow .25s, background .25s; }
.tariff .tariff-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.tariff .btn { position: static; }
@media (hover: hover) {
  .tariff:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(207, 148, 104, .25); background: linear-gradient(170deg, rgba(207, 148, 104, .16), var(--card) 60%); }
  .tariff:hover .btn-ghost { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}
.tariff:has(.tariff-link:focus-visible) { border-color: var(--accent); }

/* одиночный тариф (страница сертификата): горизонтальная раскладка вместо растянутой карточки */
.tariffs[style*="--n:1"] { display: block; }
.tariffs[style*="--n:1"] .tariff-per:empty { display: none; }
@media (min-width: 900px) {
  .tariffs[style*="--n:1"] .tariff { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 240px; grid-template-rows: auto auto; grid-row: auto; column-gap: 40px; row-gap: 0; align-items: center; padding: 30px 34px; }
  .tariffs[style*="--n:1"] .tariff h3 { grid-column: 1; grid-row: 1; align-self: end; }
  .tariffs[style*="--n:1"] .tariff .price-sum { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .tariffs[style*="--n:1"] .tariff-facts { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 4px 0 4px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .tariffs[style*="--n:1"] .tariff-facts li:last-child { margin-bottom: 0; }
  .tariffs[style*="--n:1"] .tariff .btn { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

/* шапки «С чем помогаю» и методов: иллюстрация растворяется в фоне, под кнопками — строка фактов */
.page-photo.blend-wide img { border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent), linear-gradient(to right, transparent, #000 26%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent), linear-gradient(to right, transparent, #000 26%, #000 86%, transparent); mask-composite: intersect; }
.page-photo.blend-wide { border-radius: 0; overflow: visible; }
@media (min-width: 1000px) { .page-head-grid:has(.blend-wide) { align-items: center; } }
.head-facts { margin-top: 18px; }
.head-facts .facts { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 6px 22px; }
.head-facts .facts li { position: relative; padding: 0 0 0 16px; border: 0; border-radius: 0; background: none; font-size: 15px; color: var(--muted); }
.head-facts .facts li::before { content: ''; position: absolute; left: 0; top: calc(.5lh - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* шапки «С чем помогаю» и методов: иллюстрация крупнее, растворяется только левый край */
.page-photo.blend-wide img { border-radius: 0 14px 14px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 12%, #000 34%); -webkit-mask-composite: source-over;
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 12%, #000 34%); mask-composite: add; }
@media (min-width: 1000px) {
  .page-head-grid:not(.wide-head):not(.no-image):has(.blend-wide) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); column-gap: 32px; }
  .page-head-grid:has(.blend-wide) .page-photo.blend-wide img { aspect-ratio: 3 / 2; width: 100%; height: auto; }
}

/* «А ещё — практика на гвоздях»: карточка-ссылка вместо строки */
.also-card { display: flex; align-items: center; gap: 18px; padding: 10px 22px 10px 10px; border-radius: 14px; border: 1px solid rgba(207, 148, 104, .3); background: linear-gradient(90deg, rgba(207, 148, 104, .14), rgba(207, 148, 104, .03)), rgba(31, 27, 24, .82); text-decoration: none; color: var(--body); transition: border-color .2s, background .2s, transform .2s; max-width: 640px; }
.also-card img { flex: none; width: 104px; height: 72px; object-fit: cover; border-radius: 10px; }
.also-text { display: flex; flex-direction: column; min-width: 0; }
.also-kicker { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.also-card b { font: 400 21px/1.2 var(--serif); color: var(--text); }
.also-sub { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.also-arrow { margin-left: auto; padding-left: 12px; font-size: 22px; color: var(--accent-2); transition: transform .2s; }
.also-card:hover { border-color: var(--accent); background: linear-gradient(90deg, rgba(207, 148, 104, .2), rgba(207, 148, 104, .05)), rgba(31, 27, 24, .9); color: var(--body); }
.also-card:hover .also-arrow { transform: translateX(4px); }
@media (max-width: 560px) { .also-card img { width: 72px; height: 60px; } .also-sub { display: none; } }

/* иллюстрации в шапках: верх вровень с заголовком, мягкие края со всех сторон, притушенный контраст */
.page-photo.blend-wide img { border-radius: 0; filter: brightness(.89) contrast(.93);
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 12%, #000 34%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 12%, #000 34%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent); mask-composite: intersect; }
@media (min-width: 1000px) {
  .page-head-grid:has(.blend-wide) { align-items: start; }
  .page-head-grid:has(.blend-wide) .page-photo.blend-wide { margin-top: 14px; }
}

/* Отзывы-скриншоты: колонки как у мессенджера, высота у всех своя */
.reviews-grid { columns: 1; column-gap: 12px; }
@media (min-width: 600px) { .reviews-grid { columns: 2; } }
@media (min-width: 900px) { .reviews-grid { columns: 3; column-gap: var(--gap); } }
@media (max-width: 599px) { .review-shot { max-width: 420px; margin-left: auto; margin-right: auto; } }
.review-shot { margin: 0 0 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.review-shot img { display: block; width: 100%; height: auto; }
.reviews-more { margin-top: 8px; }
.reviews-more summary { cursor: pointer; display: inline-block; margin-bottom: 16px; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; }

/* отзывы-скриншоты: кремовая бумага вместо белого, скриншот «умножается» на фон, медная кавычка */
.review-shot { position: relative; padding: 30px 16px 12px; background: #ddd1c1; border: 0; box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .7); }
.review-shot::before { content: '“'; position: absolute; top: -2px; left: 16px; font: 400 54px/1 var(--serif); color: var(--accent); }
.review-shot img { mix-blend-mode: multiply; filter: contrast(1.04); border-radius: 6px; }
.reviews-grid { column-gap: 16px; }
.review-shot { margin-bottom: 16px; }
.reviews-more summary { border-color: var(--line); color: var(--text); transition: border-color .2s, color .2s; }
.reviews-more summary:hover { border-color: var(--accent); color: var(--accent-2); }

/* «Показать ещё»: по центру под отзывами, после раскрытия кнопка исчезает */
.reviews-more { margin-top: 4px; }
.reviews-more > summary { display: block; width: fit-content; margin: 8px auto 0; list-style: none; }
.reviews-more > summary::-webkit-details-marker { display: none; }
.reviews-more[open] > summary { display: none; }
.reviews-less { display: block; margin: 8px auto 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, color .2s; }
.reviews-less:hover { border-color: var(--accent); color: var(--accent-2); }

/* страница отзывов и ссылка на неё со страниц услуг */
.reviews-all { margin: 8px 0 0; text-align: center; }
.reviews-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.reviews-tab { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--text); font: 500 15px/1.2 var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.reviews-tab span { margin-left: 4px; color: var(--muted); font-weight: 400; }
.reviews-tab:hover { border-color: var(--accent); }
.reviews-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.reviews-tab[aria-selected="true"] span { color: var(--on-accent); opacity: .75; }
.review-shot[hidden] { display: none; }
.reviews-tab { scroll-margin-top: 110px; }
.page-head + .reviews-page { padding-top: 8px; }
@media (min-width: 1000px) { .hero-text .head-trust { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 32px; } }

/* карточки статей: жёсткая сетка — одиночная карточка в ряду не растягивается на всю ширину */
.cards.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cards.articles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cards.articles > * { max-width: 560px; }
@media (min-width: 1100px) { .articles-hub .cards.articles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards.articles > * { min-width: 0; }
.article-card[hidden] { display: none; }
.page-head + .articles-hub { padding-top: 8px; }

/* верхняя строка: иконки перед контактами */
.topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-ic { width: 14px; height: 14px; fill: var(--accent); flex: none; transition: fill .2s; }
.topbar a:hover .tb-ic { fill: var(--accent-2); }
@media (min-width: 1200px) and (max-width: 1359px) { .nav a { padding: 8px 5px; font-size: 13px; } .brand-name { font-size: 20px; } .header .btn, header .btn { padding-left: 18px; padding-right: 18px; } }
.place p.place-link { margin-top: 10px; font-size: 15px; }
.footer-lead a { color: var(--muted); }
.footer-lead a:hover { color: var(--accent-2); }

/* главная: подзаголовок под именем */
.hero-sub { margin: -4px 0 18px; font: 400 clamp(24px, 2.4vw, 34px)/1.2 var(--serif); color: var(--accent-2); }

/* таблицы в статьях */
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th { text-align: left; font-weight: 600; color: var(--text); background: rgba(207, 148, 104, .1); }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
/* список источников в статьях — мелко и спокойно */
.prose h2#istochniki + p { font-size: 14.5px; color: var(--muted); line-height: 1.9; }
/* длинные ссылки и выделения с неразрывными пробелами не распирают узкий экран */
.prose a, .prose strong, .prose b { overflow-wrap: anywhere; }

/* карточки статей: описание не длиннее четырёх строк */
.article-card > p:not(.muted) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* карточки статей: отступ снизу вне обрезанного абзаца — пятая строка не вылезает к рамке */
.article-card > p:last-child { padding-bottom: 0; margin-bottom: 24px; }
/* одиночный блок раздела: заголовок слева, текст справа на всю ширину */
.cs-solo-text > :first-child { margin-top: 0; }
.cs-solo-text > :last-child { margin-bottom: 0; }
@media (min-width: 900px) { .cs-solo:not(.with-pic) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; padding: 36px 40px; } .cs-solo:not(.with-pic) h2 { position: sticky; top: 120px; } }
.price-more { margin: 20px 0 0; }

/* баннер согласия на cookie: две равноправные кнопки */
.cookie { flex-wrap: wrap; }
.cookie p { flex: 1 1 280px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.field-hint { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 400; }

/* ---------- страница «Спасибо»: кабинет с кушеткой, всё в одном экране ---------- */
.thanks { position: relative; isolation: isolate; min-height: calc(100svh - 104px); display: flex; align-items: center; padding: 40px 0 64px; overflow: hidden; }
.thanks::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--thanks-img) 50% 45% / cover no-repeat; transform: scale(1.06); animation: thanks-zoom 14s ease-out forwards; }
.thanks::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(19,17,16,.5) 0%, rgba(19,17,16,.62) 40%, rgba(19,17,16,.88) 75%, var(--bg) 100%),
  linear-gradient(90deg, rgba(19,17,16,.75), rgba(19,17,16,.25) 65%, transparent); }
.thanks-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.thanks-head .kicker { margin: 0 0 4px; }
.thanks h1 { font-size: clamp(36px, 4.4vw, 66px); line-height: 1.02; margin: 0; }
.thanks-check { flex: none; width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks-check circle { stroke-dasharray: 189; stroke-dashoffset: 189; animation: thanks-draw .9s .2s ease-out forwards; opacity: .6; }
.thanks-check path { stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: thanks-draw .5s 1s ease-out forwards; }
.thanks-lead { max-width: 720px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text); margin: 0 0 28px; }
.thanks-steps { list-style: none; counter-reset: s; margin: 0 0 28px; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid rgba(207, 148, 104, .35); }
.thanks-steps li { counter-increment: s; position: relative; padding-top: 22px; }
.thanks-steps li::before { content: counter(s); position: absolute; left: 0; top: -35px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); color: var(--accent-2); font: 500 12px/1 var(--sans); }
.thanks-steps li.done::before { content: '✓'; background: var(--accent); color: var(--on-accent); }
.thanks-steps b { display: block; font: 400 22px/1.25 var(--serif); color: var(--text); margin-bottom: 2px; }
.thanks-steps span { font-size: 15px; color: var(--muted); }
.thanks-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.thanks-note { margin: 0 0 0 8px; font-size: 15px; color: var(--muted); }
.thanks-in > * { opacity: 0; transform: translateY(10px); animation: thanks-in .7s ease-out forwards; }
.thanks-in > :nth-child(2) { animation-delay: .15s } .thanks-in > :nth-child(3) { animation-delay: .3s } .thanks-in > :nth-child(4) { animation-delay: .45s }
@keyframes thanks-in { to { opacity: 1; transform: none; } }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
@keyframes thanks-zoom { to { transform: scale(1); } }
@media (max-width: 760px) {
  .thanks { padding: 8svh 0 18px; min-height: calc(100svh - 68px); }
  .thanks-head { margin-bottom: 10px; }
  .thanks h1 { font-size: 30px; }
  .thanks-lead { font-size: 16px; margin-bottom: 18px; }
  .thanks-steps { margin-bottom: 20px; } .thanks-steps span { display: none; }
  .thanks-actions .btn { padding-left: 18px; padding-right: 18px; }
  .thanks::before { background-position: 62% top; background-size: auto 60%; }
  .thanks::after { background: linear-gradient(180deg, rgba(19,17,16,.15) 0%, rgba(19,17,16,.6) 30%, var(--bg) 52%); }
  .thanks-head { gap: 10px; } .thanks-check { width: 40px; height: 40px; }
  .thanks-steps { grid-template-columns: 1fr; gap: 10px; padding-top: 0; border-top: 0; border-left: 1px solid rgba(207, 148, 104, .35); }
  .thanks-steps li { padding: 0 0 0 26px; } .thanks-steps li::before { left: -13px; top: 0; }
  .thanks-steps b { font-size: 18px; } .thanks-note { margin: 0; flex-basis: 100%; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks::before, .thanks-in > *, .thanks-check circle, .thanks-check path { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* ---------- 404: коридор и приоткрытая дверь ---------- */
.nf::before { background-position: 70% 50%; }
.nf::after { background:
  linear-gradient(90deg, rgba(19,17,16,.96) 0%, rgba(19,17,16,.82) 38%, rgba(19,17,16,.3) 70%, rgba(19,17,16,.15) 100%),
  linear-gradient(180deg, rgba(19,17,16,.4), transparent 30%, transparent 75%, var(--bg)); }
.nf-num { position: absolute; z-index: -1; left: 3vw; top: 50%; transform: translateY(-52%); font: 400 clamp(180px, 30vw, 440px)/.8 var(--serif); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(207, 148, 104, .22); pointer-events: none; user-select: none; }
.nf .thanks-in > * { max-width: 640px; }
.nf h1 { font-size: clamp(38px, 4.8vw, 70px); line-height: 1.04; margin: 6px 0 20px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(207, 148, 104, .3); }
.nf-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nf-links a:hover { color: var(--accent-2); }
@media (max-width: 760px) {
  .nf { padding-top: 14svh; }
  .nf::before { background-position: 75% top; background-size: auto 62%; }
  .nf::after { background: linear-gradient(180deg, rgba(19,17,16,.2) 0%, rgba(19,17,16,.7) 32%, var(--bg) 55%); }
  .nf-num { top: 22%; left: 50%; transform: translate(-50%, -50%); font-size: 46vw; }
  .nf h1 { font-size: 32px; }
}
.nf-num { z-index: 0; -webkit-text-stroke: 1px rgba(207, 148, 104, .28); }
.nf .thanks-in { position: relative; z-index: 1; }
