@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: hidden; }
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); --bgimg-sm: url(/assets/img/bg/bg-kabinet-sm.webp); }
.bg-listya { --bgimg: url(/assets/img/bg/bg-listya.webp); --bgimg-sm: url(/assets/img/bg/bg-listya-sm.webp); }
.bg-okno { --bgimg: url(/assets/img/bg/bg-okno.webp); --bgimg-sm: url(/assets/img/bg/bg-okno-sm.webp); }
main > .section.alt:nth-of-type(4n+1) { --bgimg: url(/assets/img/bg/bg-tkan.webp); --bgimg-sm: url(/assets/img/bg/bg-tkan-sm.webp); }
main > .section.alt:nth-of-type(4n+2) { --bgimg: url(/assets/img/bg/bg-more.webp); --bgimg-sm: url(/assets/img/bg/bg-more-sm.webp); }
main > .section.alt:nth-of-type(4n+3) { --bgimg: url(/assets/img/bg/bg-doska.webp); --bgimg-sm: url(/assets/img/bg/bg-doska-sm.webp); }
main > .section.alt:nth-of-type(4n) { --bgimg: url(/assets/img/bg/bg-listya.webp); --bgimg-sm: url(/assets/img/bg/bg-listya-sm.webp); }
.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); --bgimg-sm: url(/assets/img/bg/bg-more-sm.webp); }
.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; }
