:root {
  --bg: oklch(96.5% 0.012 85);
  --tint: oklch(92.5% 0.02 80);
  --ink: oklch(24% 0.012 60);
  --muted: oklch(44% 0.015 70);
  --accent: oklch(42% 0.045 125);
  --accent-ink: oklch(97% 0.01 85);
  --line: oklch(84% 0.02 80);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
html { scrollbar-color: var(--line) var(--bg); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 8vw, 5.75rem); }
.display { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 1.5rem; }
p { margin: 0 0 1.2em; max-width: 62ch; }
.big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ink); max-width: 30ch; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 20; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .9375rem; }
.nav a { text-decoration: none; padding-block: .5rem; }
.nav a:not(.nav__cta):hover { text-decoration: underline; }
.nav__cta { border: 1px solid var(--ink); border-radius: 999px; padding: .5rem 1.25rem !important; transition: background .3s var(--ease), color .3s var(--ease); }
.nav__cta:hover { background: var(--ink); color: var(--bg); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.9rem; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; font: 500 1rem/1 var(--sans); text-decoration: none; transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.link-arrow { display: inline-block; margin-top: 2rem; font-weight: 500; }
.link-arrow::after { content: "\2192"; display: inline-block; margin-left: .5em; transition: transform .35s var(--ease); }
.link-arrow:hover::after { transform: translateX(.3em); }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin: 1.75rem 0 2.25rem; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.hero__note { color: var(--muted); font-size: .9375rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 0; margin: 3.5rem 0 0; padding: 0; font-size: .9375rem; color: var(--muted); }
.facts li { padding-right: 1.25rem; margin-right: 1.25rem; border-right: 1px solid var(--line); }
.facts li:last-child { border: 0; margin: 0; padding: 0; }

.portrait { margin: 0; background: var(--tint); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--hero { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.portrait--about { aspect-ratio: 4 / 5; border-radius: 6px; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--tint); }
.section__sub { color: var(--muted); font-size: 1.125rem; margin-bottom: 3rem; }

.states { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 6vw, 5rem); }
.states li { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.3; padding: 1.75rem 0; border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head { font-size: clamp(2rem, 3.8vw, 2.9rem); position: sticky; top: 6rem; }
.split--media { grid-template-columns: 0.8fr 1.2fr; }

.topics { margin: 0; }
.topics > div { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.topics > div:last-child { border-bottom: 1px solid var(--line); }
.topics dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin-bottom: .6rem; }
.topics dd { margin: 0; color: var(--muted); max-width: 56ch; }

.prose p:last-child { margin-bottom: 0; }
.prose .display { margin-bottom: 2rem; }
#podhod .prose { max-width: 720px; margin-inline: auto; }
#podhod .big { margin-bottom: 1.5rem; max-width: none; }

/* Articles */
.articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.articles a { display: block; height: 100%; padding-top: 1.5rem; border-top: 1px solid var(--ink); text-decoration: none; }
.articles h3 { font-size: 1.75rem; margin-bottom: .75rem; }
.articles p { color: var(--muted); font-size: 1rem; }
.more { font-weight: 500; font-size: .9375rem; text-decoration: underline; text-underline-offset: .3em; }
.articles a:hover .more { color: var(--accent); }

/* Contact */
.meta { margin: 0 0 2.5rem; }
.meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.meta > div:last-child { border-bottom: 1px solid var(--line); }
.meta dt { color: var(--muted); font-size: .9375rem; }
.meta dd { margin: 0; }

.not-work { margin-top: 1rem; }
.not-work summary { cursor: pointer; font-family: var(--serif); font-size: 1.5rem; list-style: none; padding: .5rem 0; display: flex; align-items: center; gap: .75rem; }
.not-work summary::-webkit-details-marker { display: none; }
.not-work summary::after { content: "+"; font-family: var(--sans); font-size: 1.25rem; transition: transform .35s var(--ease); }
.not-work[open] summary::after { transform: rotate(45deg); }
.not-work ul { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.not-work li { margin-bottom: .9rem; max-width: 58ch; }

.contact { background: var(--tint); padding: clamp(1.75rem, 4vw, 3rem); border-radius: 6px; }
.contact h3 { font-size: 2rem; margin-bottom: 1rem; }
.contact p { color: var(--muted); }
.contact__buttons { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }

.footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Hero entrance: the one authored moment */
.line { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.line:nth-child(2) > span { animation-delay: .12s; }
.hero__lead, .hero__actions, .facts { animation: fade 1s var(--ease) .35s both; }
.portrait--hero { animation: arch 1.4s var(--ease) both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
@keyframes arch { from { clip-path: inset(18% 0 0 0); opacity: 0; } }

@media (max-width: 860px) {
  .hero__grid, .split, .split--media { grid-template-columns: 1fr; }
  .portrait--hero { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); aspect-ratio: 4 / 5; }
  .split__head { position: static; }
  .states, .articles { grid-template-columns: 1fr; }
  .portrait--about { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .facts { margin-top: 2.5rem; }
  .meta > div { grid-template-columns: 1fr; gap: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line > span, .hero__lead, .hero__actions, .facts, .portrait--hero { animation: none; }
  * { transition: none !important; }
}

/* ===== Внутренние страницы: блог, статья, отзывы ===== */
.wrap--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-title { font-size: clamp(3rem, 7vw, 5rem); }
.page-sub { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 1.25rem 0 0; }
.section--flush { padding-top: 1rem; }

.postlist { list-style: none; margin: 0; padding: 0; }
.postrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.postlist li:last-child .postrow { border-bottom: 1px solid var(--line); }
.postrow time, .article__head time { color: var(--muted); font-size: .875rem; }
.postrow h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .35rem 0 .6rem; transition: color .3s var(--ease); }
.postrow:hover h2 { color: var(--accent); }
.postrow p { color: var(--muted); margin: 0; font-size: 1rem; }
.postrow__img { flex: none; width: 10rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; filter: grayscale(.85) sepia(.12); }

.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pager a, .pager span { min-width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.article__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.article__head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 1rem 0 1rem; }
.back { font-size: .9375rem; color: var(--muted); }
.article__cover { margin: 1rem auto 2.5rem; }
.article__cover img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 6px; filter: grayscale(.85) sepia(.12); }
.article__body { font-size: 1.125rem; line-height: 1.8; padding-bottom: 3rem; }
.article__body p, .article__body ul, .article__body ol { max-width: none; margin: 0 0 1.3em; }
.article__body h2, .article__body h3, .article__body h4 { margin: 2.2em 0 .6em; }
.article__body h2 { font-size: 2rem; } .article__body h3 { font-size: 1.6rem; } .article__body h4 { font-size: 1.3rem; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li { margin-bottom: .5em; }
.article__body blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.article__body table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 1rem; }
.article__body td, .article__body th { border-top: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.article__cta { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.article__cta h2 { font-size: 2rem; margin-bottom: .75rem; }
.article__cta p { color: var(--muted); }
.article__cta--plain { border: 0; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 0 5rem; border-top: 1px solid var(--line); }
.article__nav a { text-decoration: none; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.article__nav a:hover { color: var(--accent); }
.article__nav small { display: block; font: 400 .8125rem var(--sans); color: var(--muted); margin-bottom: .35rem; }
.article__nav .is-next { text-align: right; grid-column: 2; }

/* Отзывы */
.quotes { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.quotes--all { display: block; columns: 2; column-gap: clamp(2rem, 5vw, 5rem); margin-top: 1rem; }
.quotes--all li { break-inside: avoid; margin-bottom: 2.5rem; }
.quotes blockquote { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.quotes blockquote p { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; margin-bottom: 1.25rem; max-width: none; }
.quotes--all blockquote p { font-size: 1.25rem; }
.quotes footer { font-size: .9375rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.quotes footer strong { color: var(--ink); font-weight: 600; }
.reply { margin: 1.25rem 0 0 1.25rem; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.reply p { font-size: 1rem; color: var(--muted); max-width: none; margin-bottom: .5rem; }
.reply footer { font-size: .875rem; color: var(--muted); }

@media (max-width: 860px) {
  .nav { gap: 1rem; }
  .quotes, .quotes--all { grid-template-columns: 1fr; columns: 1; }
  .postrow { flex-direction: column-reverse; gap: 1rem; }
  .postrow__img { width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10; }
  .postrow__text { width: 100%; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav .is-next { grid-column: auto; text-align: left; }
}

/* Положение лица в кадре (временные фото) */
.portrait--hero img { object-position: 50% 20%; }
.portrait--about img { object-position: 68% 25%; }

/* ===== Иконки связи ===== */
.ic { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 1px solid currentColor; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.ic:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-1px); }
.ic__svg { display: block; width: 1.35rem; height: 1.35rem; }
.ic--max .ic__svg { width: 1.2rem; height: 1.2rem; }
.ic--whatsapp .ic__svg { width: 1.4rem; height: 1.4rem; }
.ics { display: flex; align-items: center; gap: .5rem; }
.hdr-phone { display: none; }

/* ===== Мобильное меню (стекло, как в macOS) ===== */
.burger { display: none; width: 3rem; height: 3rem; padding: 0; background: none; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; position: relative; color: var(--ink); }
.burger span { position: absolute; left: 50%; top: 50%; width: 1.25rem; height: 1.5px; background: currentColor; transform: translate(-50%, -4px); transition: transform .4s var(--ease); }
.burger span + span { transform: translate(-50%, 4px); }
.burger[aria-expanded="true"] span { transform: translate(-50%, 0) rotate(45deg); }
.burger[aria-expanded="true"] span + span { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .hdr-phone { display: inline-flex; margin-left: auto; }
  .header__row { gap: .75rem; }
  .nav {
    position: fixed; top: calc(4.25rem + .5rem); left: .75rem; right: .75rem;
    flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.25rem;
    background: color-mix(in oklab, var(--bg) 58%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid oklch(100% 0 0 / .55); border-radius: 22px;
    box-shadow: 0 1px 0 oklch(100% 0 0 / .6) inset, 0 24px 60px -20px oklch(24% 0.012 60 / .45), 0 2px 8px oklch(24% 0.012 60 / .08);
    visibility: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top right;
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav a:not(.ic):not(.nav__cta) { font-family: var(--serif); font-size: 1.6rem; padding: .85rem 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
  .nav a:not(.ic):not(.nav__cta):last-of-type { border-bottom: 0; }
  .nav__ics { justify-content: space-between; margin-top: 1rem; }
  .nav__ics .ic { flex: 1; width: auto; height: 3rem; border-radius: 14px; border-color: color-mix(in oklab, var(--ink) 18%, transparent); background: oklch(100% 0 0 / .4); }
  .nav .nav__cta { margin-top: .9rem; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--sans); font-size: 1rem; text-align: center; padding: .95rem 1.25rem !important; border-radius: 14px; }
  .nav .nav__cta:hover { background: var(--accent); color: var(--accent-ink); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .nav { transition: none; } }
@media (min-width: 861px) {
  .nav__ics { margin-inline: .25rem; }
  .nav__ics .ic { width: 2.25rem; height: 2.25rem; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--bg); }
}
.quote__title { font-family: var(--sans) !important; font-size: .8125rem !important; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem !important; }

/* ===== Логотип и карта ===== */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 3.4rem; width: auto; }

.mapblock { background: var(--tint); }
.map { position: relative; width: 100%; height: clamp(22rem, 48vw, 32rem); background: var(--tint); }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; text-decoration: none; padding: 1.5rem; }
.map__fallback strong { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.map__fallback span { text-decoration: underline; text-underline-offset: .25em; color: var(--accent); }
/* подложка карты в палитру сайта */
.map [class$="-ground-pane"] { filter: grayscale(.55) sepia(.18) brightness(1.04) contrast(.95); }

/* ===== Форма отзыва и модерация ===== */
.form { display: grid; gap: 1.25rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; }
.form input[type="text"], .form input[type="password"], .form textarea { font: inherit; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.form textarea { resize: vertical; min-height: 9rem; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.form .check { display: flex; align-items: flex-start; gap: .75rem; font-weight: 400; color: var(--muted); font-size: .9375rem; }
.form .check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 1rem 1.25rem; border-radius: 8px; margin: 0 0 1.5rem; }
.notice p { margin: 0; }
.notice--ok { background: color-mix(in oklab, var(--accent) 12%, var(--bg)); }
.notice--error { background: oklch(94% 0.04 30); color: oklch(38% 0.12 30); }

.admin { padding-block: 3rem 5rem; }
.admin__title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.admin__tabs a { text-decoration: none; }
.admin__tabs [aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: .35em; }
.admin__tabs small { color: var(--muted); }
.admin__out { margin-left: auto; color: var(--muted); }
.admin__item { display: grid; gap: .9rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.admin__meta { margin: 0; color: var(--muted); font-size: .875rem; }
.admin__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin__actions .btn { min-height: 2.75rem; padding: .5rem 1.25rem; font-size: .9375rem; }

/* ===== Статья: SEO-разметка и читаемость ===== */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.byline { margin: 0; font-size: .9375rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem; max-width: none; }
.byline a { color: var(--ink); }

.toc { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; background: var(--tint); border-radius: 6px; }
.toc__title { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.35rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin: .35rem 0; font-size: 1rem; }
.toc .toc__l3 { margin-left: 1rem; list-style: circle; font-size: .9375rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article__body { hyphens: auto; overflow-wrap: break-word; }
.article__body h2, .article__body h3, .article__body h4 { scroll-margin-top: 5.5rem; }
.article__body a { color: var(--accent); }
.article__body ol > li::marker { color: var(--accent); font-weight: 600; }
.article__body p.source { font-size: .8125rem; color: var(--muted); margin-top: -.5rem; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 28rem; }

.authorbox { display: flex; gap: 1.5rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); }
.authorbox__img { flex: none; width: 6rem; height: 6rem; border-radius: 50%; overflow: hidden; background: var(--tint); }
.authorbox__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.authorbox__name { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.5rem; }
.authorbox__text { margin: 0; color: var(--muted); font-size: 1rem; }
.authorbox .link-arrow { margin-top: .75rem; }

.related { padding: 2rem 0; border-top: 1px solid var(--line); }
.related h2 { font-size: 2rem; margin-bottom: 1.25rem; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { border-top: 1px solid var(--line); }
.related li:last-child { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 1.1rem 0; text-decoration: none; }
.related__title { display: block; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; transition: color .3s var(--ease); }
.related a:hover .related__title { color: var(--accent); }
.related__text { display: block; margin-top: .3rem; color: var(--muted); font-size: .9375rem; }

@media (max-width: 860px) {
  .authorbox { align-items: flex-start; }
  .authorbox__img { width: 4.5rem; height: 4.5rem; }
}

/* Видео, аудио и картинки внутри статьи */
.video-note { margin: -1rem 0 2rem; font-size: .875rem; color: var(--muted); max-width: none; }
.video-note a { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.article__body audio { display: block; width: 100%; margin: 1.5rem 0 2rem; }
.inline-img { margin: 2rem 0; }
.inline-img img { max-width: 100%; height: auto; border-radius: 4px; }

/* Видео по клику */
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 2rem 0 1.25rem; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--ink); cursor: pointer; font: inherit; overflow: hidden; transition: background .3s var(--ease); }
.video-facade:hover { background: color-mix(in oklab, var(--tint) 85%, var(--accent)); }
.video-facade::before { content: ""; position: absolute; left: 50%; top: 46%; width: 4.5rem; height: 4.5rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); }
.video-facade::after { content: ""; position: absolute; left: calc(50% + .2rem); top: 46%; transform: translate(-50%, -50%); border-style: solid; border-width: .9rem 0 .9rem 1.45rem; border-color: transparent transparent transparent var(--accent-ink); }
.video-facade span { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; font-size: .9375rem; color: var(--muted); }
article iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; margin: 2rem 0 1.25rem; }

/* ===== Дипломы: список в стиле сайта ===== */
.split__note { margin: 1.25rem 0 0; color: var(--muted); font-size: 1rem; max-width: 30ch; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { border-top: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: 10.5rem 1fr auto; gap: 1.5rem; align-items: start; padding: 1.4rem 0; text-decoration: none; cursor: zoom-in; }
.doc__when { color: var(--muted); font-size: .9375rem; }
.doc__title { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; font-weight: 500; transition: color .3s var(--ease); }
.doc__meta { display: block; margin-top: .4rem; color: var(--muted); font-size: .9375rem; }
.doc__thumb { display: block; width: 5.25rem; height: 6.75rem; object-fit: contain; padding: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 3px; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.docs a:hover .doc__thumb { border-color: var(--ink); transform: translateY(-2px); }
.docs a:hover .doc__title { color: var(--accent); }
.docs-more { border-top: 1px solid var(--line); }
.docs-more summary { cursor: pointer; list-style: none; padding: 1.4rem 0; font-family: var(--serif); font-size: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.docs-more summary::-webkit-details-marker { display: none; }
.docs-more summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; }
.docs-more[open] { border-top: 0; }
.docs-more[open] summary { display: none; }
.docs-more > .docs li:first-child { border-top: 0; }
.docs-more .docs li:last-child, .docs-more:not([open]) { border-bottom: 1px solid var(--line); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: oklch(18% 0.01 60 / .88); }
.lightbox__stage { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 3px; box-shadow: 0 20px 60px -20px oklch(10% 0.01 60 / .6); }
.lightbox button { position: fixed; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid oklch(98% 0.01 85 / .5); border-radius: 50%; background: oklch(18% 0.01 60 / .5); color: var(--accent-ink); font: 400 1.5rem/1 var(--sans); cursor: pointer; transition: background .3s var(--ease); }
.lightbox button:hover { background: oklch(98% 0.01 85 / .2); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; left: 0; right: 0; bottom: 1rem; text-align: center; color: oklch(98% 0.01 85 / .8); font-size: .875rem; }
@media (max-width: 860px) {
  .docs a { grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.15rem 0; }
  .doc__when { grid-column: 1 / -1; font-size: .875rem; }
  .doc__title { font-size: 1.3rem; }
  .doc__thumb { width: 4.25rem; height: 5.5rem; align-self: start; }
  .lightbox__stage { padding: 4rem .75rem 3.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: .75rem; transform: none; }
  .lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
}

/* Мобильное меню: без кнопки «Записаться» (связь через иконки) */
@media (max-width: 860px) {
  .nav .nav__cta { display: none; }
  .nav__ics { margin-top: 1.1rem; }
}

/* Блок «Если откликнулось»: контакты кнопками */
.cta-label { margin: 1.5rem 0 .75rem !important; font-family: var(--serif); font-size: 1.35rem; color: var(--ink) !important; }
.cta-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.ctalink { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .55rem 1.3rem .55rem 1.05rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.ctalink:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.ctalink .ic__svg { width: 1.3rem; height: 1.3rem; flex: none; }
.ctalink--max .ic__svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 560px) { .ctalink { flex: 1 1 calc(50% - .6rem); justify-content: center; } }

/* Блок «Напишите мне»: равные кнопки с иконками, без акцента на одном мессенджере */
.contact__buttons { gap: .6rem; }
.contact__btn { display: flex; align-items: center; gap: .85rem; min-height: 3.25rem; padding: .6rem 1.4rem .6rem 1.2rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent; text-decoration: none; font-weight: 500; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.contact__btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.contact__btn .ic__svg { width: 1.35rem; height: 1.35rem; flex: none; }
.contact__btn--max .ic__svg { width: 1.2rem; height: 1.2rem; margin: 0 .075rem; }

/* «Если откликнулось»: кнопки одной ширины, ровной сеткой */
.cta-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ctalink { width: 100%; justify-content: center; padding-inline: .9rem; white-space: nowrap; }
@media (max-width: 760px) { .cta-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cta-links { grid-template-columns: 1fr; } }

/* «Если откликнулось»: только мессенджеры, три колонки одной ширины */
.cta-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .cta-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cta-links { grid-template-columns: 1fr; } }

.footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.footer a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Уведомление о cookie */
.cookie { position: fixed; z-index: 60; left: var(--gutter, 1rem); right: var(--gutter, 1rem); bottom: 1rem; max-width: 40rem; margin-inline: auto; display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .9rem 1.1rem; background: color-mix(in oklch, var(--bg, #fff) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(40, 30, 20, .25); font-size: .875rem; line-height: 1.5; color: var(--ink); }
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; flex: 1 1 18rem; }
.cookie__text a { color: inherit; text-underline-offset: .2em; }
.cookie__btn { flex: none; font: inherit; font-weight: 500; padding: .55rem 1.25rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg, #fff); cursor: pointer; }
.cookie__btn:hover { background: transparent; color: var(--ink); }
.cookie__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 520px) { .cookie { bottom: .5rem; } .cookie__btn { width: 100%; } }

.footer__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }

