/* Елена Зенкова — тёплый editorial: кремовый холст, тил + терракота, арки, линии вместо теней. */
:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdf;
  --paper: #fffdf8;
  --ink: #2c3439;
  --muted: #6d7a7e;
  --teal: #005b70;
  --teal-soft: #e3eef0;
  --teal-deep: #073c4a;
  --terra: #c46f4f;
  --terra-soft: #f6e7de;
  --line: #e6dcc8;
  --serif: 'Lora', 'PT Serif', Georgia, serif;
  --sans: 'PT Sans', 'Segoe UI', Arial, sans-serif;
  --arch: 999px 999px 18px 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.22; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.55rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: 1.22rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 8px 14px; z-index: 100; }

/* «Мазок» под ключевым словом */
.stroke { position: relative; white-space: nowrap; }
.stroke::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .28em; z-index: -1; border-radius: 3px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 20" preserveAspectRatio="none"><path d="M3 14 Q50 6 100 11 T197 9 L197 16 Q140 12 90 16 T3 18 Z" fill="%23e9b79b" opacity=".75"/></svg>') center/100% 100% no-repeat; }

/* Надзаголовок секции */
.overline { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 14px; }
.overline::before { content: ""; width: 34px; height: 2px; background: var(--terra); border-radius: 2px; }
.deco-branch { color: var(--terra); opacity: .7; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-family: var(--sans); font-size: 16px; cursor: pointer; border: 1.5px solid transparent; transition: .18s; text-align: center; }
.btn svg { flex: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: #ad5c3e; color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--cream-deep); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Шапка */
.site-header { background: rgba(250,246,239,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.logo-tag { font-size: .72rem; color: var(--muted); letter-spacing: .05em; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 700; font-size: .92rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); border-bottom-color: var(--terra); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.header-phone svg { color: var(--terra); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 8px; background: var(--ink); transition: .2s; border-radius: 2px; }

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: var(--teal-soft); opacity: .6; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero-checklist { list-style: none; margin-bottom: 30px; }
.hero-checklist li { padding-left: 34px; position: relative; margin-bottom: 11px; }
.hero-checklist li svg { position: absolute; left: 0; top: 3px; color: var(--terra); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; justify-self: center; }
.hero-photo img { width: min(340px, 80vw); aspect-ratio: 4/5; object-fit: cover; border-radius: var(--arch); border: 6px solid var(--paper); box-shadow: 0 18px 40px -22px rgba(44,52,57,.35); }
.hero-photo .hp-badge { position: absolute; left: -16px; bottom: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.35; box-shadow: 0 10px 24px -16px rgba(44,52,57,.3); }
.hero-photo .hp-badge svg { color: var(--teal); flex: none; }
.hero-photo .hp-badge b { display: block; font-family: var(--serif); margin-bottom: 2px; }
.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 16px; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; align-items: start; }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.stat svg { color: var(--terra); flex: none; margin-top: 4px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--teal); line-height: 1.15; margin-bottom: 2px; }
.stat span { font-size: .8rem; color: var(--muted); line-height: 1.25; display: block; }

/* Секции */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark { background: var(--teal-deep); color: #d8e6ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .overline { color: #e8a98c; }
.section-dark .overline::before { background: #e8a98c; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .overline { justify-content: center; }
.section-head.centered .overline::before { display: none; }
.section-sub { color: var(--muted); margin-top: 12px; }
.section-dark .section-sub { color: #a8c2ca; }

/* Карточки */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: .2s; }
.card:hover { border-color: #d5c8ac; transform: translateY(-2px); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card:nth-child(3n+2) .card-icon { background: var(--terra-soft); color: var(--terra); }
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section-dark .card p { color: #a8c2ca; }
.section-dark .card .card-icon { background: rgba(255,255,255,.1); color: #e8a98c; }
.check-list { list-style: none; }
.check-list li { padding-left: 34px; position: relative; margin-bottom: 13px; }
.check-list li svg { position: absolute; left: 0; top: 3px; color: var(--teal); }
.card .check-list li { color: var(--ink); font-size: .96rem; }

/* Обо мне */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.about-photo img { border-radius: var(--arch); border: 6px solid var(--paper); box-shadow: 0 18px 40px -22px rgba(44,52,57,.3); }
.about-panel h2 { margin-bottom: 4px; }
.about-panel .about-role { color: var(--terra); font-weight: 700; margin-bottom: 20px; }
.about-panel p { margin-bottom: 15px; }
.about-quote { border-left: 3px solid var(--terra); padding: 6px 0 6px 20px; font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--teal-deep); margin: 22px 0; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 32px; }

/* Тест */
.quiz-wrap { max-width: 880px; margin: 0 auto; }
.quiz-share { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--terra-soft); border: 1px dashed var(--terra); color: #8a4c33; border-radius: 12px; padding: 11px 18px; margin-bottom: 28px; font-size: .94rem; flex-wrap: wrap; line-height: 1.45; }
.quiz-share svg { flex: none; }
.quiz-share a { white-space: nowrap; font-weight: 700; }
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.quiz-aside { padding: 26px 22px; background: var(--teal-deep); color: #cfdde3; }
.quiz-aside img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 2px solid rgba(255,255,255,.4); }
.quiz-aside .qa-name { color: #fff; font-weight: 700; font-family: var(--serif); }
.quiz-aside .qa-role { font-size: .82rem; color: #93b2bc; margin-bottom: 14px; }
.quiz-aside .qa-hint { font-size: .88rem; background: rgba(255,255,255,.08); border-radius: 12px; padding: 13px 15px; line-height: 1.55; }
.quiz-main { padding: 30px 32px; display: flex; flex-direction: column; }
.quiz-q { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; margin-bottom: 20px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-opt { border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 13px 15px; font-size: .92rem; color: var(--ink); cursor: pointer; text-align: left; transition: .15s; font-family: var(--sans); }
.quiz-opt:hover { border-color: var(--terra); background: var(--terra-soft); }
.quiz-opt.selected { background: var(--teal); color: #fff; border-color: var(--teal); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.quiz-step { color: var(--muted); font-size: .9rem; }
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-result h3 { color: var(--teal); font-size: 1.4rem; margin-bottom: 14px; }
.quiz-result p { margin-bottom: 22px; color: var(--muted); }
.hidden { display: none !important; }

/* Сертификаты */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-grid a { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: block; transition: .2s; }
.cert-grid a:hover { transform: translateY(-3px); border-color: #d5c8ac; }
.cert-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }

/* Таблица цен */
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.45; }
.price-table th { font-family: var(--serif); color: var(--teal-deep); background: var(--cream-deep); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:nth-child(2) { font-family: var(--serif); font-weight: 600; color: var(--terra); white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: 18px; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 600; font-family: var(--serif); font-size: 1.06rem; list-style: none; position: relative; padding-right: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--terra); transition: .2s; font-family: var(--sans); }
.faq-item[open] { border-color: #d5c8ac; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--muted); }

/* Блог-карточки */
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; padding: 0; }
.post-card:hover { transform: translateY(-3px); border-color: #d5c8ac; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terra); font-weight: 700; margin-bottom: 9px; }
.post-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--teal); }
.post-card .pc-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.post-card .pc-meta { margin-top: 14px; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.post-card .pc-meta svg { color: var(--terra); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.cat-chip:hover { border-color: var(--terra); color: var(--terra); }
.cat-chip svg { color: var(--terra); }

/* Статья */
.article-layout { max-width: 810px; margin: 0 auto; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 28px 0 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--terra); }
.article-head h1 { margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 26px; flex-wrap: wrap; }
.article-meta img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.article-cover { border-radius: 20px; margin-bottom: 30px; border: 1px solid var(--line); }
.article-body { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 46px); }
.article-body p { margin-bottom: 17px; }
.article-body h2 { margin: 32px 0 15px; }
.article-body h3 { margin: 25px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 17px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--terra); }
.article-body img { border-radius: 14px; margin: 22px auto; }
.article-body blockquote { border-left: 3px solid var(--terra); background: var(--cream); border-radius: 0 12px 12px 0; padding: 16px 22px; margin: 22px 0; font-family: var(--serif); font-style: italic; color: var(--teal-deep); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 22px 0; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; font-size: .93rem; line-height: 1.45; }
.article-body th { background: var(--cream-deep); font-family: var(--serif); }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-top: 32px; }
.author-box img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.author-box .ab-name { font-weight: 600; font-family: var(--serif); }
.author-box .ab-role { font-size: .88rem; color: var(--muted); }
.rating-widget { text-align: center; margin-top: 30px; }
.rating-widget .stars { font-size: 1.7rem; cursor: pointer; color: #ddd2bd; user-select: none; }
.rating-widget .stars .on { color: var(--terra); }
.rating-widget .rating-info { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Видео */
.video-block { position: relative; border-radius: 22px; overflow: hidden; border: 6px solid var(--paper); box-shadow: 0 18px 40px -24px rgba(44,52,57,.4); max-width: 760px; margin: 0 auto; cursor: pointer; }
.video-block img { width: 100%; }
.video-block .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7,60,74,.28); transition: .2s; }
.video-block .play-btn::after { content: ""; width: 84px; height: 84px; border-radius: 50%; background: var(--terra) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') center/36px no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: .2s; }
.video-block:hover .play-btn { background: rgba(7,60,74,.1); }
.video-block:hover .play-btn::after { transform: scale(1.07); }
.video-block iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

/* Контакты */
.contact-card .cc-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.contact-card .cc-row svg { color: var(--terra); flex: none; margin-top: 3px; }

/* CTA-полоса и футер */
.cta-band { background: var(--teal-deep); color: #fff; padding: 52px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -100px; bottom: -160px; width: 320px; height: 320px; border-radius: 50%; background: rgba(232,169,140,.14); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; }
.cta-band-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 8px; }
.cta-band-sub { color: #a8c2ca; max-width: 560px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer { background: #062f3a; color: #93aeb7; padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 34px; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: #c4d5db; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-col a svg { color: #e8a98c; flex: none; }
.footer-logo { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer-h { font-weight: 700; color: #fff; margin-bottom: 14px; font-family: var(--serif); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #93aeb7; }

/* Пагинация */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; }
.pagination a, .pagination span { padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.pagination a:hover { border-color: var(--terra); color: var(--terra); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; background: rgba(6,47,58,.92); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; border-radius: 10px; }

/* Внутренние страницы */
.page-head + .section { padding-top: 34px; }
.page-head { padding: 26px 0 30px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; right: -160px; top: -180px; width: 380px; height: 380px; border-radius: 50%; background: var(--teal-soft); opacity: .55; }
.page-head .container { position: relative; }
.page-head .breadcrumbs { margin: 0 0 10px; }
.page-head .page-sub { color: var(--muted); max-width: 720px; margin-top: 12px; }
.prose { max-width: 800px; }
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 32px 0 15px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }

@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; margin-left: 16px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .quiz-aside { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
  .quiz-aside img { margin-bottom: 0; }
  .quiz-aside .qa-hint { flex: 1 1 100%; }
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .25s; z-index: 40; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 10px 0; border-bottom: 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-phone { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
}
@media (max-width: 620px) {
  .cards-2, .cards-3, .cert-grid { grid-template-columns: 1fr; }
  /* компактнее вертикальный ритм */
  .hero { padding: 26px 0 30px; }
  .hero h1 { margin-bottom: 16px; }
  .section { padding: 40px 0; }
  .page-head { padding: 16px 0 20px; }
  .page-head + .section { padding-top: 22px; }
  .section-head { margin-bottom: 26px; }
  .stats-row { margin-top: 32px; padding-top: 18px; }
  .cta-band { padding: 36px 0; }
  /* центровка героя */
  .hero-grid { gap: 32px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-photo { justify-self: center !important; margin-left: 0; }
  .hero-photo .hp-badge { left: 50% !important; transform: translateX(-50%); width: max-content; max-width: 92%; }
  .hero-photo .hp-badge svg { width: 30px; height: 30px; }
  /* тест: строка «отправьте партнёру» столбиком */
  .quiz-share { flex-direction: column; gap: 4px; }
  .quiz-share svg { display: none; }
  /* таблицы на узком экране */
  .price-table th, .price-table td { padding: 11px 12px; font-size: .88rem; }
  .article-body th, .article-body td { padding: 8px 10px; font-size: .88rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .quiz-opts { grid-template-columns: 1fr; }
  .about-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-phone span { display: none; }
}

/* Кнопка «наверх» */
#to-top { position: fixed; left: 22px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--teal); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -12px rgba(44,52,57,.35); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s; }
#to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
#to-top:hover { color: var(--terra); border-color: var(--terra); transform: translateY(-2px); }

/* Куки-плашка */
#cookie-bar { position: fixed; left: 22px; right: auto; bottom: 24px; max-width: 420px; z-index: 95; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 16px 40px -18px rgba(44,52,57,.4); display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateY(16px); transition: .35s; }
#cookie-bar.visible { opacity: 1; transform: none; }
#cookie-bar p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
#cookie-bar button { flex: none; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; font-weight: 700; font-family: var(--sans); font-size: .9rem; cursor: pointer; }
#cookie-bar button:hover { background: var(--teal-deep); }
@media (max-width: 620px) {
  #cookie-bar { left: 12px; right: 12px; max-width: none; bottom: 12px; flex-direction: column; align-items: stretch; text-align: center; }
  #to-top { left: 14px; bottom: 84px; }
}

/* h2 в размере h3 - для корректной иерархии на каталогах */
.h3-size { font-size: 1.12rem; }
.post-card .h3-size { margin-bottom: 10px; }
.post-card .h3-size a { color: var(--ink); }
.post-card .h3-size a:hover { color: var(--teal); }
.card .h3-size { margin-bottom: 10px; }

/* Summary-блок «Коротко» в статьях */
.summary-box { background: var(--teal-soft); border: 1px solid #cfe0e4; border-radius: 14px; padding: 20px 24px; margin: 22px 0; }
.summary-box > p { margin-bottom: 8px; color: var(--teal-deep); font-family: var(--serif); }
.summary-box ul { list-style: none; margin: 0; }
.summary-box li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .96rem; }
.summary-box li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }

/* Якоря (содержание статей, #test и т.п.): не прятать заголовок под липкой шапкой */
[id] { scroll-margin-top: 88px; }

/* Кнопки внутри текстовых блоков: воздух между ними при переносе на узких экранах */
.prose .btn, .article-body .btn { margin: 0 10px 12px 0; }

/* Текстовые отзывы (/otzyvy): читаемы поисковиками и LLM, в отличие от JS-виджета */
.review-summary { display: flex; align-items: center; gap: 20px; background: var(--teal-soft); border: 1px solid #cfe0e4; border-radius: 16px; padding: 18px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.review-summary .rs-score { display: flex; align-items: baseline; gap: 8px; color: var(--terra); white-space: nowrap; }
.review-summary .rs-score svg { align-self: center; }
.review-summary .rs-score strong { font-family: var(--serif); font-size: 1.9rem; color: var(--teal-deep); }
.review-summary .rs-score span { color: var(--muted); font-size: .9rem; }
.review-summary > p { margin: 0; color: var(--ink); font-size: .97rem; flex: 1; min-width: 240px; }
.review-card { display: flex; flex-direction: column; }
.review-theme { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--terra); margin-bottom: 10px; }
.review-text { font-family: var(--serif); font-style: italic; color: var(--teal-deep); font-size: 1.02rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.review-text::before { content: "\201C"; color: var(--terra); font-size: 1.4em; line-height: 0; margin-right: 2px; }
.review-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.review-author { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.review-src { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--teal); text-decoration: none; }
.review-src:hover { color: var(--terra); }
@media (max-width: 620px) {
  .review-summary { padding: 16px 18px; gap: 12px; }
  .review-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-top .review-theme { margin-bottom: 0; }
.review-stars { display: inline-flex; gap: 2px; color: #d9a441; }
.review-stars svg { fill: currentColor; }
.review-reply { background: var(--cream); border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.review-reply strong { color: var(--teal-deep); font-weight: 600; }
