@font-face{font-family:Manrope;src:url(assets/manrope-lat.woff2);font-weight:400 600;font-display:swap}
@font-face{font-family:Manrope;src:url(assets/manrope-cyr.woff2);font-weight:400 600;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url(assets/manrope-ext.woff2);font-weight:400 600;font-display:swap;unicode-range:U+0100-02BA,U+1E00-1EFF,U+20A0-20AB}

@font-face {
  font-family: "Cormorant Garamond";
  src: url(assets/cormorant-lat.woff2) format("woff2");
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20AB;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url(assets/cormorant-cyr.woff2) format("woff2");
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root { color-scheme: dark; }
:root {
  --bg: #121110;
  --bg-alt: #191715;
  --surface: #211e1a;
  --plate: #28241f;
  --footer: #100e0e;
  --text: #ede6da;
  --muted: #c2b5a8;
  --accent: #b8975a;
  --accent-hover: #d3b77f;
  --accent-disabled: #9c8255;
  --ink: #191511;
  --line: #ede6da26;
  --control: #a68b60;
  --error: #f3a298;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 76px);
}

[data-theme="ivory"] {
  color-scheme: light;
  --bg: #fdf8f8;
  --bg-alt: #f8eef0;
  --surface: #ffffff;
  --plate: #f3e2e6;
  --footer: #f7ebee;
  --text: #2e2226;
  --muted: #6f5359;
  --accent: #a3486b;
  --accent-hover: #8e3658;
  --accent-disabled: #b9879a;
  --ink: #ffffff;
  --line: #8e365826;
  --control: #c08a9c;
  --error: #9b263e;
}

[data-theme="midnight"] {
  --bg: #101822;
  --bg-alt: #15202d;
  --surface: #1a293a;
  --plate: #233549;
  --footer: #0c131d;
  --text: #ecf2fa;
  --muted: #b9c8d9;
  --accent: #a4c9ec;
  --accent-hover: #c7e0f6;
  --accent-disabled: #91a9c2;
  --ink: #101d2b;
  --line: #d3e4ff33;
  --control: #7795b2;
  --error: #ffb5b5;
}

[data-theme="forest"] {
  --bg: #14221c;
  --bg-alt: #1a2a21;
  --surface: #22352a;
  --plate: #2b4234;
  --footer: #101b16;
  --text: #f1eee3;
  --muted: #c0cbbc;
  --accent: #bed3a7;
  --accent-hover: #d9e8c5;
  --accent-disabled: #a1b397;
  --ink: #1b2b20;
  --line: #dce9d333;
  --control: #90a788;
  --error: #ffc1ac;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 16px/1.62 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1, h2, h3, .price { font: 600 1em/1.02 var(--serif); letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6.5vw, 78px); }
h2 { font-size: clamp(39px, 5.8vw, 80px); }
h3 { font-size: clamp(30px, 3.1vw, 46px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 10; background: var(--surface); padding: 9px 13px; transform: translateY(-180%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 8px; z-index: 5; margin-top: 8px; }
.bar {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px;
  min-height: 64px; padding: 6px 8px 6px 13px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--surface); box-shadow: 0 8px 25px #1a100d1a;
}
.logo { display: inline-grid; align-content: center; width: fit-content; min-height: 44px; gap: 3px; text-decoration: none; }
.logo img { width: clamp(106px, 13vw, 174px); height: auto; }
.logo span { max-width: 215px; color: var(--muted); font-size: 8px; font-weight: 600; line-height: 1.3; text-transform: uppercase; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
  padding: 6px 8px 6px 15px; border: 1px solid var(--accent); border-radius: 99px; background: var(--accent); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.button span {
  display: grid; flex: none; place-items: center; width: 31px; height: 31px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font-size: 16px;
}
.button:hover { background: var(--ink); color: var(--accent); }
.button:hover span { background: var(--accent); color: var(--ink); }
.outline { border-color: var(--control); background: transparent; color: var(--text); }
.outline span { background: var(--plate); color: var(--text); }
.outline:hover { background: var(--plate); color: var(--text); }
.header-book { min-height: 44px; padding-left: 10px; gap: 5px; font-size: 12px; }
.header-book span { width: 23px; height: 23px; font-size: 13px; }
.menu, .close {
  display: grid; place-content: center; gap: 5px; width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--text);
}
.menu span { width: 16px; height: 1px; background: currentColor; }
nav { display: none; position: absolute; inset: calc(100% + 6px) 0 auto; padding: 8px 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
nav[data-open] { display: grid; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav a:hover, .text-link:hover, .legal a:hover { color: var(--accent); }

.hero { display: grid; gap: 18px; padding-block: 32px 54px; }
.hero-lead, .hero-description { min-width: 0; }
.hero-description { color: var(--muted); max-width: 43ch; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.photo {
  position: relative; display: grid; place-items: center; min-width: 0; isolation: isolate; overflow: hidden;
  background: var(--plate); border: 1px solid var(--line); aspect-ratio: 16/11;
}
.photo picture, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-label { max-width: 25ch; padding: 10px; color: var(--muted); text-align: center; font-size: 13px; }
.hero-photo { width: min(100%, 420px); margin-inline: auto; aspect-ratio: 6/5; border-radius: 48% 48% 0 0 / 50% 50% 0 0; }
.hero-photo:has(.photo-label)::before {
  content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid var(--line); border-radius: inherit;
}
.hero-photo:has(.photo-label) { background: linear-gradient(150deg, var(--surface), var(--plate) 68%, var(--bg)); }

.section { padding-block: clamp(46px, 8vw, 105px); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 20px; }
.section-head h2 { max-width: 19ch; }
.kicker { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.intro { max-width: 66ch; color: var(--muted); }
.about-grid, .tariffs, .media-grid { display: grid; gap: 14px; margin-top: 26px; }
.about-grid article { display: grid; gap: 12px; min-width: 0; }
.about-photo, .media-photo { border-radius: 16px; }
.about-copy { padding-block: 3px 18px; border-bottom: 1px solid var(--line); }
.about-copy p, .media-grid article > p { margin-top: 6px; color: var(--muted); }
#services { background: var(--plate); }
.tariff {
  display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: clamp(17px, 3.2vw, 40px);
  border: 1px solid var(--line); border-radius: 21px; background: var(--surface);
}
.tariff.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.flag { align-self: flex-start; padding: 3px 10px; border: 1px solid var(--accent); border-radius: 99px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.tariff h3 { max-width: 21ch; }
.tariff dl { display: grid; gap: 9px; }
.tariff dt { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.tariff dd { color: var(--muted); font-size: 14px; }
.tariff-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: clamp(40px, 4.4vw, 63px); }
.currency, .test { display: block; color: var(--muted); font-size: 12px; }
.tariff .button { margin-block: 10px 3px; }
.media-grid { gap: 23px 14px; margin-bottom: 24px; }
.media-grid article { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.media-grid h3 { margin-top: 9px; font-size: 28px; }
.video, .player iframe { display: block; position: relative; width: 100%; aspect-ratio: 16/11; padding: 0; border: 0; border-radius: 16px; background: var(--plate); }
.play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--control); border-radius: 50%; background: var(--surface); color: var(--accent); }
div.video .play { display: none; }
#advertisers { background: var(--surface); }
.formats { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 23px; padding: 0; list-style: none; }
.formats li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 20px; margin-top: 20px; }
.footer-grid .logo { margin-bottom: 12px; }
.social { display: grid; gap: 4px; padding: 0; list-style: none; }
.social li > a, .social li > span { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.social svg { flex: none; color: var(--accent); }
.legal-note { margin-top: 12px; color: var(--muted); font-size: 12px; }
.text-link, .legal a { display: flex; align-items: center; min-height: 44px; width: fit-content; }
.placeholder { cursor: default; }

dialog { width: min(100% - 24px, 570px); max-height: calc(100dvh - 24px); overflow: auto; padding: clamp(14px, 4vw, 30px); border: 1px solid var(--control); border-radius: 21px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: #140e0acc; }
.dialog-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 12px; }
.dialog-head h2 { font-size: clamp(33px, 6vw, 48px); }
.close { flex: none; font-size: 24px; }
form, form > label { display: grid; gap: 6px; }
form { gap: 12px; }
form > label { font-size: 14px; }
input, textarea, select { min-width: 0; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--control); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 16px; }
textarea { resize: vertical; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.consent { display: grid; grid-template-columns: 44px 1fr; align-items: center; font-size: 14px; line-height: 1.4; }
.consent input { width: 22px; min-height: 22px; accent-color: var(--accent); }
.consent label { cursor: pointer; }
.consent a, .form-fallback a { color: var(--accent); }
.form-service, .form-fallback, .form-status { margin-bottom: 6px; color: var(--muted); }
.form-status[data-error] { color: var(--error); }
.cookies { position: fixed; inset: auto var(--gutter) 12px; z-index: 6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--control); border-radius: 14px; background: var(--surface); }
.cookies p { margin-right: auto; }
.standalone { padding-block: 36px 70px; }
.standalone h1 { max-width: 17ch; margin: 12px 0 20px; }
.standalone .button { margin-top: 14px; }
.standalone section { margin-top: 22px; }
.standalone section h2 { font-size: 34px; }
@keyframes enter { from { opacity: .3; transform: translateY(8px); } }
.reveal { animation: enter .38s ease-out both; }

@media (min-width: 670px) {
  .tariffs, .about-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .hero-photo { grid-column: 2; grid-row: 1; }
  .hero-description { grid-column: 1; }
}
@media (min-width: 1050px) {
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 15px; padding-left: 18px; }
  .menu { display: none; }
  nav, nav[data-open] { position: static; display: flex; justify-content: center; gap: clamp(10px, 1.65vw, 23px); padding: 0; border: 0; }
  nav a { font-size: 13px; }
  .about-grid { gap: 22px; }
  .about-grid article { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); align-items: start; }
  .about-copy h3 { font-size: clamp(27px, 2.7vw, 42px); }
  .media-grid, .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.about-role { margin-bottom: 8px; color: var(--accent); font-weight: 600; }
.about-grid article.about-copy { display: block; }
.practice-layout { display: grid; gap: 22px; align-items: start; }
.practice-list { border-top: 1px solid var(--line); }
.practice-list details { border-bottom: 1px solid var(--line); }
.practice-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 64px; padding: 10px 0; list-style: none; cursor: pointer;
  font: 600 clamp(25px, 3vw, 37px)/1.1 var(--serif);
}
.practice-list summary::-webkit-details-marker { display: none; }
.practice-list summary::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  border: 1px solid var(--control); border-radius: 50%; color: var(--accent); font: 400 21px var(--sans);
  transition: transform .2s ease;
}
.practice-list details[open] summary::after { transform: rotate(45deg); }
.practice-list details > div { padding: 0 0 12px; color: var(--muted); }
.practice-list details p + p { margin-top: 8px; }
#gallery { background: var(--plate); }
.gallery-strip {
  display: grid; grid-auto-columns: min(76vw, 335px); grid-auto-flow: column; gap: 12px;
  overflow-x: auto; padding: 5px 5px 14px; scroll-snap-type: x mandatory;
}
.gallery-strip figure, #gallery-view figure { margin: 0; }
.gallery-strip figure { scroll-snap-align: start; min-width: 0; }
.gallery-strip .photo { aspect-ratio: 5/4; border-radius: 12px; }
.gallery-open { display: block; padding: 0; width: 100%; border: 0; border-radius: 12px; background: none; }
.gallery-open img { transition: transform .3s ease; }
.gallery-open:hover img { transform: scale(1.05); }
.gallery-strip figcaption, #gallery-view figcaption { color: var(--muted); font-size: 13px; margin-top: 7px; }
#gallery-view { width: min(100% - 24px, 840px); }
#gallery-view .close { margin: 0 0 9px auto; }
#gallery-view img { max-height: 65dvh; margin-inline: auto; object-fit: contain; }
.gallery-controls { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.gallery-controls .button { min-width: 48px; justify-content: center; padding: 0; }
@media (min-width: 1050px) {
  nav, nav[data-open] { gap: clamp(7px, 1.1vw, 17px); }
  nav a { font-size: 12px; }
  .about-grid article.about-copy { padding: 14px 0 20px; }
}

.hero { gap: clamp(20px, 6vw, 76px); padding-block: clamp(40px, 8vw, 108px); }
.hero h1 { max-width: 15ch; font-family: var(--serif); font-size: clamp(40px, 6vw, 84px); line-height: 1.08; letter-spacing: -.045em; }
.hero-description { margin-top: 18px; }
.hero .actions { margin-top: 24px; }
.hero-photo { width: 100%; max-width: 490px; aspect-ratio: 1.12; border-radius: 20px; }
.hero-photo:has(.photo-label) { background: var(--plate); }
.hero-photo:has(.photo-label)::before { border-radius: 12px; }
.bar { border-radius: 18px; box-shadow: 0 7px 25px #1724320b; }
.button { border-radius: 10px; padding-inline: 13px 8px; }
.button span { border-radius: 7px; }
.section-head { display: grid; gap: 12px; }
.section-head::before { content: ""; width: 38px; height: 2px; background: var(--accent); transform-origin: left; }
.section-head.reveal::before { animation: section-line .52s ease-out both; }
@keyframes section-line { from { transform: scaleX(.15); } }
.section-head .kicker { margin: 0; }
.section-head h2, .footer h2 { font-family: var(--serif); font-size: clamp(36px, 4.7vw, 66px); letter-spacing: -.045em; line-height: 1.12; }
.about-grid { gap: 18px; }
.about-copy { padding: 16px 0; }
.practice-layout { max-width: 820px; }
.practice-list summary, .tariff h3, .about-copy h3, .media-grid h3 {
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; letter-spacing: -.026em;
}
.tariff, .about-photo, .media-photo { border-radius: 14px; }
.tariff.featured { box-shadow: none; }
.price {
  font-family: var(--serif); font-size: clamp(37px, 4.2vw, 58px); line-height: 1.18;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.price-unit { font-size: .57em; letter-spacing: 0; color: var(--muted); }
.reveal { animation-duration: .56s; }
@media (min-width: 670px) {
  .hero { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
}
@media (min-width: 1050px) {
  .hero-photo { aspect-ratio: .98; }
}
@media (prefers-reduced-motion: reduce) {
  .section-head.reveal::before { animation: none; }
}

.bar { border-radius: 99px; box-shadow: 0 8px 28px #3a2e251a; }
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo .logo-mark {
  display: grid; flex: none; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--plate); color: var(--accent); font-size: 16px; font-weight: 700;
}
.logo-copy { display: grid; gap: 2px; }
.logo-copy strong { color: var(--text); font-size: clamp(11px, 1.35vw, 17px); letter-spacing: .045em; }
.logo-copy em { color: var(--accent); font-style: normal; }
.logo-copy small { font-size: 7px; text-transform: none; }
.hero { position: relative; isolation: isolate; grid-template-columns: minmax(0,1fr); gap: 12px; padding-block: 32px 56px; }
.hero-roles { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.hero-roles span + span::before { content: "·"; margin-right: 12px; color: var(--accent); }
.hero-motto {
  position: relative; z-index: -1; color: var(--accent); white-space: nowrap;
  font-size: clamp(44px, 14vw, 210px); font-weight: 700; letter-spacing: -.095em; line-height: .9;
}
.hero-photo { width: min(100%, 420px); aspect-ratio: 1.18; border-radius: 48% 48% 18px 18px / 50% 50% 18px 18px; }
.hero-photo:has(.photo-label) { background: radial-gradient(ellipse at 50% 20%, var(--surface), var(--plate)); }
.hero-photo:not(:has(.photo-label)) { border: 0; border-radius: 0; background: none; }
.hero-photo:not(:has(.photo-label)) img { object-fit: contain; object-position: center bottom; }
.hero h1 { max-width: 20ch; font-size: clamp(30px, 5vw, 57px); font-weight: 700; }
.hero-description { margin-top: 12px; }
.hero .actions { margin-top: 18px; }
.section-head h2 { font-size: clamp(26px, 3.45vw, 48px); font-weight: 700; }
.practice-list { display: grid; gap: 12px; padding: 0; border: 0; list-style: none; }
.practice-list li, .tariff, .media-grid article, .about-grid article.about-copy, .footer-grid > div {
  padding: clamp(15px, 2.7vw, 31px); border: 1px solid var(--line); border-radius: 23px; background: var(--surface);
  box-shadow: 0 12px 30px #3a2e250b;
}
.practice-list li { display: grid; gap: 12px; }
.practice-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.practice-list a > span:last-child { margin-left: auto; color: var(--accent); }
.practice-number { color: var(--accent); font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tariff.featured { border-color: var(--accent); }
#services, #gallery { background: var(--bg); }
#advertisers { background: var(--bg); }
@media (min-width: 670px) {
  .practice-layout { max-width: none; }
  .practice-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1050px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); grid-template-rows: auto auto 1fr; gap: 16px 36px; min-height: 690px; align-items: start; padding-block: 44px 64px; }
  .hero-motto { grid-area: 2 / 1 / 3 / -1; font-size: clamp(120px, 15vw, 210px); }
  .hero-lead { grid-area: 3 / 1; align-self: end; }
  .hero-photo { grid-area: 2 / 2 / 4; align-self: end; width: 92%; aspect-ratio: .9; margin-right: 0; }
}

/* Ритм разделов */
#services, .closing { background: var(--bg-alt); color: var(--text); }
.closing { padding-block: clamp(40px, 8vw, 100px); }
.closing h2 { font-size: clamp(32px, 5vw, 67px); }
.closing p { margin: 10px 0 18px; color: var(--muted); }
.closing .outline { color: var(--text); border-color: var(--accent); }
.closing .outline span { color: var(--bg-alt); }
.closing .test { color: var(--muted); }
.closing-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 160px),1fr)); gap: 16px; margin: 26px 0; }
.fact { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); }
.fact strong { color: var(--accent); font-size: clamp(29px, 4.5vw, 61px); line-height: 1.12; font-variant-numeric: tabular-nums; }
.fact small, .collage figcaption, .faq-list small { color: var(--muted); font-size: 12px; }
.collage { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 10px 5px; }
.collage figure { margin: 0; padding: 7px; background: var(--surface); box-shadow: 0 6px 18px #100e0e55; transform: rotate(-2deg); transition: transform .24s ease; }
.collage figure:nth-child(even) { transform: rotate(2deg); }
.collage figure:nth-child(3n) .photo { aspect-ratio: 1.3; }
.collage figcaption { padding: 5px 2px; }
.practice-list li { padding: 0; box-shadow: none; }
.practice-list a { min-height: 92px; padding: 10px 13px; }
.practice-list strong, .practice-list small { display: block; }
.practice-list small { color: var(--muted); font-weight: 400; font-size: 13px; }
.practice-number { font-size: clamp(30px, 4.5vw, 55px); line-height: 1; }
.quote { margin-block: 12px clamp(30px, 7vw, 95px); padding: clamp(20px, 5vw, 60px); background: var(--plate); border-radius: 24px; }
.quote figure, .quote blockquote, .reviews-track figure, .reviews-track blockquote { margin: 0; }
.quote blockquote { font-size: clamp(25px, 5vw, 59px); font-weight: 700; line-height: 1.15; }
.quote blockquote::before { content: "«"; display: block; color: var(--accent); font-size: 1.4em; line-height: .85; }
.quote figcaption { margin-top: 8px; color: var(--muted); }
.steps { display: grid; gap: 16px; padding: 0; margin-top: 16px; list-style: none; }
.steps li { padding-top: 10px; border-top: 1px solid var(--control); }
.step-number { color: var(--accent); font-size: 31px; font-weight: 700; }
.steps h3 { font-size: clamp(18px, 2.5vw, 29px); }
.steps p { margin-top: 7px; color: var(--muted); }
.faq-list { max-width: 850px; border-top: 1px solid var(--line); }
.faq-list details { padding: 0 8px; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding-block: 12px; min-height: 44px; font-weight: 600; }
.faq-list details p { padding-bottom: 14px; color: var(--muted); }
.reviews-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(78vw, 260px),1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.reviews-track figure { scroll-snap-align: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.reviews-track figcaption { margin-top: 9px; font-weight: 700; }
.review-photo { max-width: 72px; border-radius: 50%; }
.reviews-controls { display: flex; gap: 8px; margin-top: 10px; }
.reviews-controls .button { min-width: 44px; justify-content: center; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 9; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.back-top { position: fixed; z-index: 5; right: max(14px,env(safe-area-inset-right)); bottom: max(14px,env(safe-area-inset-bottom)); width: 44px; height: 44px; border: 1px solid var(--control); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 22px; }
body:has(.cookies:not([hidden])) .back-top { visibility: hidden; }
.bar { min-height: 0; }
.header.is-compact .bar { padding-block: 2px; }
nav [aria-current="location"] { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }
.hero-motto { animation: enter .65s ease both; }
.hero-photo { animation: enter .72s .08s ease both; }
.about-copy:nth-child(2n), .tariff:nth-child(2n), .practice-list li:nth-child(2n), .media-grid article:nth-child(2n) { animation-delay: .065s; }
.about-copy:nth-child(3n), .tariff:nth-child(3n), .media-grid article:nth-child(3n) { animation-delay: .13s; }
@media (min-width: 670px) and (max-width: 1049px) {
  .hero { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-motto { grid-column: 1 / -1; }
  .hero-photo { grid-row: 3; }
}
@media (min-width: 670px) {
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
  .steps li { padding-right: 14px; }
  .collage { grid-template-columns: 1.12fr .85fr 1fr .85fr; align-items: start; }
  .collage figure:nth-child(even) { margin-top: 22px; }
}
@media (min-width: 1050px) {
  .media-grid { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; }
  .media-grid article:first-child { grid-row: span 5; }
  .media-grid article:not(:first-child) { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 2px 10px; padding: 8px; }
  .media-grid article:not(:first-child) .player { grid-row: span 5; }
  .media-grid article:not(:first-child) > :not(.player) { grid-column: 2; margin: 0; }
  .media-grid article:not(:first-child) h3 { font-size: 17px; }
  .media-grid article:not(:first-child) .photo-label { font-size: 9px; padding: 2px; }
  .media-grid article:not(:first-child):has(iframe) { grid-template-columns: 1fr; }
  .media-grid article:not(:first-child):has(iframe) .player { grid-row: auto; }
  .media-grid article:not(:first-child):has(iframe) > :not(.player) { grid-column: 1; }
}
@media (hover: hover) {
  .practice-list a:hover { color: var(--accent-hover); }
}
.hero { container-type: inline-size; grid-template-columns: minmax(0,1fr); grid-template-rows: auto; min-height: 0; gap: 18px; }
.hero-motto, .hero-photo, .hero-lead { grid-area: auto; }
.hero-motto { z-index: 1; margin: 0; font-size: clamp(42px, 21.5cqi, 260px); line-height: 1; text-align: center; }
.hero-motto span { display: inline-block; }
.hero-lead { align-self: center; }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 1.18; border-radius: 22px; margin: 0 auto; }
.hero-photo:has(.photo-label) { background: radial-gradient(ellipse at 26% 16%, var(--surface), var(--plate) 78%); }
.hero-photo:has(.photo-label)::before { border-radius: 14px; }
.hero-photo .photo-label { font-size: 12px; }
@media (min-width: 670px) {
  .hero { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 20px clamp(24px,6vw,86px); }
  .hero-motto { grid-area: 1 / 1 / 2 / -1; }
  .hero-lead { grid-area: 2 / 1; }
  .hero-photo { grid-area: 2 / 2; align-self: center; }
  .hero-photo--cutout { margin-top: -8px; }
}
.direction-band { border-block: 1px solid var(--line); background: var(--bg-alt); padding-block: clamp(12px,2vw,20px); }
.direction-band ul { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; list-style: none; }
.direction-band li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: clamp(12px,1.35vw,16px); }
.direction-band li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.contact-map {
  display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; align-items: center;
  margin-top: 16px; padding: 8px; min-height: 68px; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
a.contact-map:hover { border-color: var(--accent); }
.contact-map-preview {
  display: grid; place-items: center; height: 54px; border-radius: 8px; color: var(--accent);
  background: repeating-linear-gradient(36deg, transparent 0 14px, var(--line) 14px 16px, transparent 16px 26px),
    repeating-linear-gradient(108deg, var(--plate) 0 16px, var(--surface) 16px 20px);
}
.contact-map-preview svg { width: 26px; height: 26px; fill: var(--surface); }
.contact-map-copy { display: grid; gap: 3px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.contact-map-copy > span { color: var(--muted); font-size: 12px; }
a.contact-map .contact-map-copy > span { color: var(--accent); text-decoration: underline; }


/* Навигация между страницами */
nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .32em; }
.home-links {
  position: static; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr));
  gap: 10px; padding: 0 0 clamp(32px,6vw,70px); border: 0; background: transparent;
}
.home-links a {
  display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.home-links a:hover { border-color: var(--accent); }
.home-links a span { color: var(--accent); }
#main > .section .intro + .button { margin-top: 16px; }
.page-intro { padding-block: clamp(32px,7vw,92px); }
.page-intro h1 { font-size: clamp(32px,6.4vw,80px); font-weight: 700; overflow-wrap: anywhere; }
.section-head h1 { font-size: clamp(32px,5.3vw,72px); font-weight: 700; overflow-wrap: anywhere; }
.site-footer { padding-block: 22px; border-top: 1px solid var(--line); }
.site-footer .wrap, .site-footer .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer .wrap { justify-content: space-between; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media all {
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { z-index: 1; animation-duration: .36s; }
  ::view-transition-old(root) { animation: page-exit .22s ease-in both; }
  ::view-transition-new(root) { animation: page-enter .43s cubic-bezier(.2,.65,.25,1) both; }
  @supports not selector(::view-transition-new(root)) {
    #main { animation: page-enter .38s ease-out both; }
  }
}
@keyframes page-exit { to { opacity: 0; transform: translateY(-5px); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(12px); } }

/* Онлайн-форматы и предложения партнёрам */
.service-group + .service-group { margin-top: clamp(28px,5vw,58px); }
.service-group > h3 { font-size: clamp(22px,3vw,34px); font-weight: 700; }
.service-group .tariffs { margin-top: 14px; }
.subscribe-band { padding-block: 20px; background: var(--plate); }
.subscribe-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.subscribe-band h2 { font-size: clamp(22px,3vw,34px); }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 8px; }
.subscribe-actions svg { flex: none; }
.subscribe-actions button:disabled { cursor: default; }
.subscribe-note { margin-top: 10px; }
.partner-cards { display: grid; gap: 24px clamp(24px,5vw,64px); }
.partner-cards article { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.partner-cards h3 { font-size: clamp(22px,2.8vw,35px); overflow-wrap: anywhere; }
.partner-cards article > p { color: var(--muted); }
.partner-cards article .button { margin-top: 4px; }
.partner-price { font-weight: 700; }
.tariff-summary { display: grid; gap: inherit; min-width: 0; }
.media-offer { margin-top: clamp(24px, 4vw, 56px); }
#services .payment-unavailable:disabled { cursor: not-allowed; opacity: 1; }
@media (min-width: 900px) {
  .media-offer .tariff {
    display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: center; column-gap: clamp(24px, 5vw, 70px);
  }
  .media-offer .tariff-bottom { margin: 0; padding: 0 0 0 clamp(20px, 3vw, 44px); border: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 670px) { .partner-cards { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); } }

/* Noir */
::selection { background: var(--accent); color: var(--ink); }
.bar { background: var(--bg); border-radius: 12px; box-shadow: none; }
.menu { border-radius: 8px; }
.logo .logo-mark { border-radius: 6px; }
.header-book { padding-inline: 8px; }
.header-book span { display: none; }
.hero h1 { font-size: clamp(39px,5.8vw,76px); }
.hero h1, .section-head h1, .section-head h2, .page-intro h1, .service-group h3,
.tariff h3, .about-copy h3, .media-grid h3, .partner-cards h3, .subscribe-band h2,
.hero-motto, .quote blockquote, .price { font-family: var(--serif); font-weight: 600; }
.hero-motto { font-size: clamp(48px,19.4cqi,252px); letter-spacing: -.065em; }
.section-head h1, .page-intro h1 { font-size: clamp(43px,6.4vw,92px); }
.section-head h2 { font-size: clamp(36px,4.8vw,66px); }
.hero-photo:has(.photo-label) {
  border-radius: 48% 48% 18px 18px / 55% 55% 18px 18px;
  background: radial-gradient(ellipse at 24% 12%, #4d3925, #2a2220 42%, #171314 78%);
}
.hero-photo:has(.photo-label)::before { border-radius: inherit; border-color: var(--line); }
.section:nth-child(even), #advertisers, #gallery, #services, .closing { background: var(--bg-alt); }
.tariff, .media-grid article, .about-grid article.about-copy, .footer-grid > div {
  background: var(--surface); border-radius: 12px; box-shadow: none;
}
.tariff.featured { border: 1px solid var(--line); border-top-color: var(--accent); }
.flag { padding: 0; border: 0; border-radius: 0; color: var(--accent); letter-spacing: 0; text-transform: none; }
.tariff dt, .section-head .kicker { color: var(--muted); letter-spacing: 0; text-transform: none; }
.price { font-size: clamp(32px,4vw,52px); }
.button:not(.outline):not(:disabled):hover { background: var(--accent-hover); color: var(--ink); border-color: var(--accent-hover); }
.button:not(.outline):not(:disabled):hover span { background: var(--ink); color: var(--accent-hover); }
.button.outline { border-color: var(--control); color: var(--text); }
.button.outline:hover { background: var(--surface); color: var(--text); }
.button:focus-visible, #services .tariff .button:focus-visible { outline-color: var(--accent); }
.payment-unavailable:disabled { background: var(--accent-disabled); color: var(--ink); border-color: var(--accent-disabled); }
.payment-unavailable:disabled span { color: var(--accent-disabled); }
dialog { background: var(--bg-alt); border-color: var(--line); }
input, textarea, select { background: var(--plate); color: var(--text); border-color: var(--line); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.consent input { accent-color: var(--accent); }
.form-status[data-error] { color: var(--error); }
.video, .media-photo { background: var(--surface); }
.media-photo .photo-label { padding-bottom: 28px; }
div.video .play { display: grid; pointer-events: none; }
.site-footer, #contacts { background: var(--footer); color: var(--muted); }
.standalone > p, .standalone section { max-width: 70ch; }
.standalone h1 { font-size: clamp(34px,7vw,78px); overflow-wrap: anywhere; }

:root:not([data-theme="noir"]) {
  .hero-photo:has(.photo-label) { background: var(--surface); }
  input, textarea, select { border-color: var(--control); }
  input:focus, textarea:focus, select:focus { border-color: var(--accent); }
  .closing .outline span { color: var(--text); }
}

/* Языки и подпись бренда */
.language-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.language-switch [aria-current] { color: var(--accent); font-weight: 700; }
.language-switch a { padding: 4px; text-decoration: none; }
.language-switch a:hover { text-decoration: underline; }
.language-desktop { display: none; }
.language-mobile { padding: 8px 0 4px; }
.hero h1 { max-width: 23ch; font-size: clamp(30px,4.25vw,61px); }
.h1-kicker { display: block; margin-bottom: 8px; color: var(--accent); font: 600 .32em/1.2 var(--sans); letter-spacing: .06em; }
@media (min-width:1050px) {
  .header .bar:has(#nav) { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .header #nav { background: transparent; }
  .language-desktop { display: flex; }
  .language-mobile { display: none; }
}

/* Опциональное раскрытие первого экрана */
.reveal-hero { container-type: inline-size; padding-block: clamp(24px,4vw,56px) clamp(32px,5vw,64px); }
.reveal-stage {
  --fs: min(11.6cqi, 158px);
  --capsule-width: 3.6em;
  --capsule-height: 1.81em;
  display: flex; align-items: center; justify-content: center; gap: .085em;
  height: var(--capsule-height); font: 600 var(--fs)/.95 var(--serif); letter-spacing: -.065em;
}
.reveal-stage.is-placeholder {
  --capsule-width: 2.8em;
  --capsule-height: 1.14em;
}
.reveal-half { white-space: nowrap; }
/* третье слово девиза — под капсулой, тем же шрифтом */
.reveal-below { font: 600 min(11.6cqi, 158px)/.95 var(--serif); letter-spacing: -.065em; text-align: center; margin-top: -.42em; white-space: nowrap; }
@media (max-width: 720px) { .reveal-below { font-size: min(17cqi, 76px); margin-top: -.3em; } }
.reveal-capsule {
  position: relative; isolation: isolate; display: grid; flex: none; place-items: center; overflow: hidden;
  width: var(--capsule-width); height: var(--capsule-height); border-radius: 999px;
  background: var(--surface);
}
.reveal-capsule::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border: 1px solid var(--line);
  border-radius: inherit; pointer-events: none;
}
.reveal-photo, .reveal-poster, .reveal-capsule video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: var(--capsule-width); height: var(--capsule-height); max-width: none;
  object-fit: cover; object-position: center top;
}
.reveal-photo { border: 0; background: var(--surface); }
.reveal-photo img { object-position: center top; }
/* своя картинка для каждой темы: тёмная — для noir, светлая — для ivory */
:root[data-theme="ivory"] .hero-dark, :root:not([data-theme="ivory"]) .hero-light { display: none; }
.reveal-photo .photo-label { position: relative; z-index: 1; font: 500 12px/1.45 var(--sans); letter-spacing: normal; }
.is-placeholder .reveal-photo::before, .is-placeholder .reveal-photo::after {
  content: ""; position: absolute; top: 50%; height: 1px; width: 18%; background: var(--control);
}
.is-placeholder .reveal-photo::before { left: 8%; }
.is-placeholder .reveal-photo::after { right: 8%; }
.reveal-capsule video { z-index: 1; }
.reveal-line { position: absolute; inset: 0; z-index: 2; background: var(--accent); opacity: 0; pointer-events: none; }
.reveal-hero .hero-lead {
  display: grid; gap: 12px; margin-top: clamp(24px,4vw,56px); padding-top: clamp(16px,2.5vw,32px);
  border-top: 1px solid var(--line);
}
.reveal-hero h1 { max-width: 24ch; font-size: clamp(34px,4.2vw,60px); line-height: 1; }
.reveal-hero .hero-description { font-size: clamp(14px,1.4vw,17px); }
.reveal-hero .actions { margin-top: 16px; }
.reveal-hero .hero-details > .text-link { gap: 4px; margin-top: 4px; padding-inline-start: 0; }
@media (min-width: 721px) {
  .reveal-hero .hero-lead { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(24px,5vw,64px); }
}
@media (max-width: 720px) {
  .reveal-stage {
    --fs: min(21cqi, 95px); --capsule-width: 100cqi; --capsule-height: calc(100cqi / 1.85);
    flex-direction: column; gap: .10em; height: calc(var(--capsule-height) + 2.1em);
  }
  .reveal-stage.is-placeholder {
    --fs: min(15cqi, 88px);
    --capsule-width: min(100cqi, 400px);
    --capsule-height: clamp(72px,26cqi,128px);
  }
}
.js-reveal .reveal-capsule { width: .012em; clip-path: inset(49% 0); }
.js-reveal .reveal-stage { column-gap: .026em; }
.js-reveal .reveal-line { opacity: 1; }
.js-reveal .header, .js-reveal .reveal-hero :is(.hero-heading,.hero-details,.photo-label) { opacity: 0; }
@media (max-width: 720px) {
  .js-reveal .reveal-capsule { width: var(--capsule-width); height: 1.5px; clip-path: inset(0 49%); }
  .js-reveal .reveal-stage { row-gap: .03em; }
}

/* ───── Atelier: слой полировки (типографика, ритм, поверхности, движение) ───── */
:root {
  --ease: cubic-bezier(.2,.7,.2,1);
  --glow: color-mix(in srgb, var(--accent) 13%, transparent);
  --hair: color-mix(in srgb, var(--accent) 42%, transparent);
  --card: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 58%, var(--bg)));
  --radius: 6px;
  scrollbar-color: var(--control) var(--bg);
}
html { -webkit-text-size-adjust: 100%; }
body {
  line-height: 1.68; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-kerning: normal;
  background: radial-gradient(110% 70vh at 50% -18vh, var(--glow), transparent 72%) no-repeat var(--bg);
}
/* Матовое зерно: собственный SVG-шум, без внешних файлов */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22180%22 height=%22180%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%22.9%22 numOctaves=%222%22 stitchTiles=%22stitch%22/%3E%3CfeColorMatrix values=%220 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0%22/%3E%3C/filter%3E%3Crect width=%22180%22 height=%22180%22 filter=%22url(%23n)%22/%3E%3C/svg%3E");
}
h1, h2, h3, blockquote { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.price, .fact strong, .practice-number, .step-number { font-variant-numeric: lining-nums tabular-nums; }

/* Заголовки: легче начертание, спокойнее трекинг */
.reveal-hero h1, .section-head h1, .section-head h2, .page-intro h1, .closing h2, .standalone h1, .dialog-head h2 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.06;
}
.tariff h3, .about-copy h3, .media-grid h3, .partner-cards h3, .service-group > h3, .subscribe-band h2, .steps h3 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; line-height: 1.14;
}
.steps h3 { font-size: clamp(22px, 2.5vw, 30px); }
.quote blockquote { font-weight: 500; letter-spacing: -.02em; }
.intro, .hero-description { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.72; }

/* Надстрочные подписи: капитель с разрядкой */
.section-head .kicker, .h1-kicker, .tariff dt, .flag, .hero-roles, .about-role {
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.5;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.h1-kicker { margin-bottom: 14px; letter-spacing: .28em; }
.hero-roles { gap: 2px 14px; margin-bottom: 14px; color: var(--muted); letter-spacing: .16em; }
.hero-roles span::before, .hero-roles span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 2px 0; background: var(--accent); transform: rotate(45deg); }
.flag { display: inline-flex; align-items: center; gap: 10px; }
.flag::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Ритм секций */
.section { padding-block: clamp(64px, 9vw, 132px); }
.section-head { gap: 16px; margin-bottom: clamp(24px, 3.4vw, 44px); }
.section-head::before { width: 64px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-head h2 { max-width: 22ch; }
.about-grid, .tariffs, .media-grid { gap: clamp(14px, 1.8vw, 24px); }
.service-group + .service-group { margin-top: clamp(40px, 6vw, 80px); }
.service-group > h3 { display: flex; align-items: center; gap: 18px; }
.service-group > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Шапка: матовое стекло */
.bar {
  border-radius: 10px; border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 #ffffff0a inset, 0 18px 40px -24px #000000b3;
  transition: padding .3s var(--ease);
}
.logo-copy strong { letter-spacing: .14em; font-weight: 600; }
nav a { position: relative; letter-spacing: .02em; transition: color .25s ease; }
@media (min-width: 1050px) {
  #nav > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
  }
  #nav > a:hover::after, #nav > a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  nav a[aria-current], nav [aria-current="location"] { text-decoration: none; }
}
.language-switch { letter-spacing: .12em; font-size: 11px; }

/* Кнопки: матовое золото, капитель, стрелка без плашки */
.button {
  position: relative; min-height: 52px; padding: 10px 20px 10px 22px; gap: 16px; border-radius: 4px;
  font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; line-height: 1.45;
  background-image: linear-gradient(180deg, #ffffff26, #ffffff00 58%, #00000014);
  box-shadow: 0 1px 0 #ffffff33 inset, 0 14px 30px -18px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .4s var(--ease), transform .4s var(--ease);
}
.button span {
  width: auto; height: auto; border-radius: 0; background: none !important; color: currentColor !important;
  font-size: 15px; letter-spacing: 0; transition: transform .4s var(--ease);
}
.button:not(.outline):not(:disabled):hover { background-image: linear-gradient(180deg, #ffffff26, #ffffff00 58%, #00000014); }
.button.outline, .button.outline:hover, .button:disabled { background-image: none; box-shadow: none; }
.button.outline { border-color: var(--hair); }
.header-book { min-height: 44px; padding-inline: 16px; font-size: 10.5px; box-shadow: none; }
.gallery-controls .button, .reviews-controls .button { padding: 0; letter-spacing: 0; font-size: 15px; }
@media (hover: hover) {
  .button:not(:disabled):not(.placeholder):hover { transform: translateY(-1px); }
  .button:not(.outline):not(:disabled):hover { box-shadow: 0 1px 0 #ffffff33 inset, 0 20px 36px -18px color-mix(in srgb, var(--accent) 85%, transparent); }
  .button:not(:disabled):not(.placeholder):hover span { transform: translate(3px, -3px); }
  .button.outline:not(.placeholder):hover { border-color: var(--accent); background-color: color-mix(in srgb, var(--accent) 9%, transparent); }
}
.button:active:not(:disabled) { transform: translateY(0); }
.text-link { text-decoration-color: var(--hair); text-decoration-thickness: 1px; transition: color .25s ease, text-decoration-color .25s ease; }
.text-link:hover { text-decoration-color: currentColor; }

/* Первый экран: только окружение, механика раскрытия не тронута */
.reveal-capsule::after { border-color: var(--hair); }
/* тёмная тема: чёрный фон картинки сливается с фоном страницы — без капсулы-подложки и рамки */
:root:not([data-theme="ivory"]) .reveal-capsule { background: transparent; }
:root:not([data-theme="ivory"]) .reveal-capsule::after { border-color: transparent; }
:root:not([data-theme="ivory"]) .hero-dark { background: transparent; }
:root:not([data-theme="ivory"]) .hero-dark img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.reveal-hero .hero-lead { border-top-color: transparent; border-image: linear-gradient(90deg, var(--hair), var(--line) 40%, transparent) 1; }
.reveal-hero h1 { line-height: 1.04; }
.reveal-hero .actions { margin-top: 22px; }

/* Лента направлений */
.direction-band { background: color-mix(in srgb, var(--bg-alt) 70%, transparent); padding-block: clamp(16px, 2vw, 22px); }
.direction-band ul { gap: 8px 28px; }
.direction-band li { gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.direction-band li::before { width: 5px; height: 5px; border-radius: 0; background: var(--accent); transform: rotate(45deg); }
@media (min-width: 1050px) { .direction-band ul { justify-content: space-between; } }

/* Поверхности */
.tariff, .media-grid article, .about-grid article.about-copy, .footer-grid > div, .home-links a,
.reviews-track figure, .practice-list li, .contact-map {
  border-radius: var(--radius); background: var(--card);
  box-shadow: 0 1px 0 #ffffff0a inset;
  transition: border-color .5s ease, box-shadow .6s var(--ease), translate .6s var(--ease);
}
.photo, .about-photo, .media-photo, .video, .player iframe, .gallery-strip .photo, .gallery-open { border-radius: var(--radius); }
.photo-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.reveal-photo .photo-label { font-size: 11px; letter-spacing: .14em; }
@media (hover: hover) {
  .tariff:hover, .media-grid article:hover, .home-links a:hover, .reviews-track figure:hover, .practice-list li:hover {
    border-color: var(--hair); translate: 0 -4px;
    box-shadow: 0 1px 0 #ffffff0f inset, 0 34px 60px -38px #000000d9;
  }
}

/* Тарифы */
.tariff { gap: 20px; padding: clamp(24px, 3vw, 44px); }
.tariff.featured {
  border-color: var(--hair); border-top-color: var(--accent);
  background: radial-gradient(130% 55% at 50% 0, var(--glow), transparent 72%), var(--card);
}
.tariff dt { margin-bottom: 4px; font-size: 10.5px; }
.tariff dd { font-size: 14.5px; line-height: 1.6; }
.tariff-bottom { padding-top: 22px; }
.price { font-size: clamp(38px, 4.3vw, 58px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.price-unit { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.currency, .test { margin-top: 6px; line-height: 1.5; }
.tariff .button { margin-block: 18px 4px; }
.partner-cards article { gap: 14px; padding-top: 26px; border-top-color: var(--hair); }
.partner-price { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; }

/* Переходы на разделы */
.home-links { gap: 12px; }
.home-links a { align-items: center; min-height: 64px; padding: 16px 20px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.home-links a span { transition: transform .4s var(--ease); }
.home-links a:hover span { transform: translate(3px, -3px); }

/* Цитата, шаги, факты, FAQ */
.quote { border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(90% 120% at 0 0, var(--glow), transparent 60%), var(--card); }
.steps li { padding-top: 18px; border-top-color: var(--hair); }
.step-number, .practice-number { font-family: var(--serif); font-weight: 500; }
.fact { padding-top: 16px; border-top-color: var(--hair); }
.fact strong { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; }
.fact small { letter-spacing: .04em; }
.faq-list details { padding: 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 18px; list-style: none; transition: color .25s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; color: var(--accent); font: 400 24px/1 var(--serif); transition: transform .4s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-hover); }
.faq-list details p { padding-bottom: 20px; max-width: 68ch; }

/* Финальный блок, подписка, подвал */
.closing { position: relative; background: radial-gradient(70% 110% at 50% 118%, var(--glow), transparent 68%), var(--bg-alt); border-top: 1px solid var(--line); }
.closing p { margin: 16px 0 26px; max-width: 60ch; }
.subscribe-band { padding-block: clamp(24px, 3vw, 36px); border-block: 1px solid var(--line); background: var(--card); }
.site-footer { padding-block: 28px; font-size: 13px; letter-spacing: .02em; }
.site-footer a, .legal a, .social a { text-decoration-color: transparent; transition: color .25s ease, text-decoration-color .25s ease; }
.site-footer a:hover, .legal a:hover, .social a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

/* Диалоги и поля */
dialog { border-radius: 10px; border-color: var(--hair); padding: clamp(20px, 4vw, 40px); box-shadow: 0 40px 90px -30px #000000e6; }
dialog::backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .45s var(--ease) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.close, .menu, .back-top { transition: border-color .3s ease, color .3s ease, background-color .3s ease; }
.close:hover, .menu:hover, .back-top:hover { border-color: var(--accent); color: var(--accent-hover); }
form { gap: 16px; }
form > label { gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
input, textarea, select {
  min-height: 48px; padding: 10px 14px; border-radius: 4px; background: var(--bg);
  border-color: color-mix(in srgb, var(--control) 70%, transparent);
  font-weight: 400; letter-spacing: 0; transition: border-color .25s ease, box-shadow .25s ease;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 4px var(--glow); }
.consent input { min-height: 22px; padding: 0; }
.cookies { border-radius: 10px; border-color: var(--hair); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 50px -24px #000000cc; }
.reading-progress { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); }

/* Появление при прокрутке */
@keyframes enter { from { opacity: .001; transform: translateY(22px); } }
.reveal { animation-duration: .9s; animation-timing-function: var(--ease); }
.gallery-open img { transition: transform .9s var(--ease); }

:root[data-theme="ivory"] {
  body::before { opacity: .03; mix-blend-mode: multiply; }
  .bar { box-shadow: 0 18px 40px -28px #6a3a4a59; }
  .tariff:hover, .media-grid article:hover, .home-links a:hover, .reviews-track figure:hover, .practice-list li:hover { box-shadow: 0 30px 50px -36px #6a3a4a80; }
  dialog { box-shadow: 0 40px 90px -40px #6a3a4a99; }
}

/* ───── Движение: прокрутка, меню, переходы между страницами ───── */
/* Класс .motion ставит app.js и только если пользователь не просил уменьшить движение. */
.rise {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s ease calc(var(--i, 0) * 90ms), transform 1.15s var(--ease) calc(var(--i, 0) * 90ms),
    border-color .5s ease, box-shadow .6s var(--ease), translate .6s var(--ease);
}
.rise.in { opacity: 1; transform: none; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .16em; margin: -.12em -.04em -.16em; }
.split .word > span {
  display: inline-block; transform: translateY(112%) rotate(4deg); transform-origin: left bottom;
  transition: transform 1.15s var(--ease) calc(var(--i, 0) * 60ms + 60ms);
}
.split.in .word > span { transform: none; }
.motion .section-head::before { animation: none; transform: scaleX(0); transition: transform 1.2s var(--ease) .1s; }
.motion .section-head:has(.in)::before { transform: scaleX(1); }
.motion .service-group > h3::after { transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .25s; }
.motion .service-group > h3.in::after { transform: scaleX(1); }
.motion .closing { overflow: hidden; }

/* Бегущая лента направлений */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; max-width: none; margin: 0; animation: marquee 44s linear infinite; }
.marquee li { flex: none; padding-right: clamp(36px, 5vw, 72px); white-space: nowrap; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* Блик под курсором и блик на золотой кнопке */
.tariff, .home-links a, .media-grid article { position: relative; }
.tariff::after, .home-links a::after, .media-grid article::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%);
  transition: opacity .6s ease;
}
.button { overflow: hidden; }
.button:not(.outline):not(:disabled)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 36%, #ffffff66 50%, transparent 64%);
}
@media (hover: hover) {
  .tariff:hover::after, .home-links a:hover::after, .media-grid article:hover::after { opacity: 1; }
  .button:not(.outline):not(:disabled):hover::after { transform: translateX(130%); transition: transform 1s var(--ease); }
}

/* Шапка: уходит при прокрутке вниз */
.header { transition: transform .6s var(--ease); }
.header.is-away { transform: translateY(calc(-100% - 20px)); }

/* Мобильное меню: плавное раскрытие, пункты по очереди, «бургер» складывается в крест */
.menu span { transition: transform .5s var(--ease); }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 1049.98px) {
  #nav, #nav[data-open] {
    display: grid; padding: 14px 22px 16px; border-radius: 10px; border-color: var(--hair);
    background: var(--surface); box-shadow: 0 34px 60px -30px #000000e6;
    transform-origin: top center;
  }
  #nav { visibility: hidden; opacity: 0; transform: translateY(-12px) scale(.97); transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .5s; }
  #nav[data-open] { visibility: visible; opacity: 1; transform: none; transition: opacity .35s ease, transform .6s var(--ease), visibility 0s; }
  #nav > a {
    min-height: 54px; border-bottom: 1px solid var(--line); font: 500 24px/1.2 var(--serif); letter-spacing: -.01em;
    opacity: 0; translate: 0 14px; transition: opacity .3s ease, translate .3s ease, color .25s ease;
  }
  #nav[data-open] > a { opacity: 1; translate: none; transition: opacity .6s ease calc(var(--n) * 55ms + 80ms), translate .8s var(--ease) calc(var(--n) * 55ms + 80ms), color .25s ease; }
  #nav > a:nth-child(1) { --n: 0; } #nav > a:nth-child(2) { --n: 1; } #nav > a:nth-child(3) { --n: 2; }
  #nav > a:nth-child(4) { --n: 3; } #nav > a:nth-child(5) { --n: 4; } #nav > a:nth-child(6) { --n: 5; }
  #nav > a[aria-current="page"] { text-decoration: none; }
  #nav .language-mobile { padding-top: 14px; }
}

/* Прокрутка как таймлайн: первый экран мягко отступает, фото дрейфуют в рамке */
@supports (animation-timeline: view()) {
  .motion:not(.js-reveal) .reveal-stage { animation: stage-out linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  .motion .photo:not(.reveal-photo) img { animation: photo-drift linear both; animation-timeline: view(); }
  .motion .gallery-open img { animation: none; }
  .motion .closing h2 { animation: closing-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
}
@keyframes stage-out { to { opacity: .12; transform: translateY(-6vh) scale(.93); } }
@keyframes photo-drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.02) translateY(4%); } }
@keyframes closing-in { from { letter-spacing: .04em; opacity: .4; } }

/* Переход между страницами: новая страница поднимается шторкой, отметка в меню переезжает */
@media all {
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
  ::view-transition-old(root) { animation: page-exit .7s cubic-bezier(.4,0,.2,1) both; }
  ::view-transition-new(root) { animation: page-enter .85s cubic-bezier(.16,1,.3,1) both; }
  @media (min-width: 1050px) {
    #nav > a[aria-current="page"]::after { view-transition-name: nav-mark; }
    ::view-transition-group(nav-mark) { z-index: 2; animation-duration: .7s; animation-timing-function: cubic-bezier(.3,.9,.3,1); }
  }
}
@keyframes page-exit { to { opacity: .3; transform: translateY(-36px) scale(.975); } }
@keyframes page-enter { from { clip-path: inset(100% 0 0 0); transform: translateY(48px); } to { clip-path: inset(0); transform: none; } }

/* ───── Editorial: экспериментальная журнальная композиция (ветка-превью) ───── */

/* 1. Первый экран во весь экран, крупная капсула под портрет */
body .reveal-hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 76px); }
body .reveal-stage, body .reveal-stage.is-placeholder { --capsule-width: 3.5em; --capsule-height: 2.3em; }
@media (max-width: 720px) {
  body .reveal-stage, body .reveal-stage.is-placeholder { --fs: min(21cqi, 95px); --capsule-width: 100cqi; --capsule-height: 104cqi; }
}

/* 3. Типографика: крупнее заголовки, больше воздуха, меньше золота */
body .section { padding-block: clamp(84px, 12vw, 180px); }
body .section-head { margin-bottom: clamp(36px, 6vw, 88px); }
body .section-head h1, body .page-intro h1 { max-width: none; font-size: clamp(40px, 8.4vw, 136px); line-height: .94; letter-spacing: -.035em; }
body .section-head h2, body .closing h2 { max-width: 16ch; font-size: clamp(38px, 6.6vw, 104px); line-height: .96; letter-spacing: -.03em; }
body .service-group > h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
body .price { color: var(--text); font-size: clamp(44px, 5.4vw, 84px); }
body .fact strong { color: var(--text); font-size: clamp(48px, 7vw, 104px); }

/* 2 + 4. Услуги: прайс-лист строками вместо карточек */
#services, .media-offer { counter-reset: tariff; }
body .tariffs { grid-template-columns: minmax(0, 1fr); gap: 0; }
body .service-group + .service-group { margin-top: clamp(48px, 7vw, 96px); }
body .tariff { counter-increment: tariff; }
body .tariff::before {
  content: counter(tariff, decimal-leading-zero); display: block; position: static; inset: auto; width: auto; height: auto;
  background: none; border: 0; opacity: 1; transform: none;
  font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); padding-top: .9em;
}
body .tariff:not(.featured) {
  padding: clamp(24px, 3.2vw, 44px) 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0;
  background: none; box-shadow: none; translate: none;
}
body .tariffs .tariff:not(.featured):last-child { border-bottom: 1px solid var(--hair); }
body .tariff:not(.featured)::after { display: none; }
body .tariff h3 { max-width: 20ch; font-size: clamp(27px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.015em; }
body .tariff-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
body .tariff.featured { margin-top: clamp(28px, 4vw, 56px); padding: clamp(28px, 4.4vw, 72px); border-radius: 2px; }
@media (min-width: 860px) {
  body .tariff { display: grid; grid-template-columns: 5ch minmax(0, 1fr) minmax(200px, auto); column-gap: clamp(20px, 4vw, 64px); align-items: start; }
  body .tariff-bottom { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  body .tariff dl { max-width: 62ch; }
}
.fold {
  display: flex; align-items: baseline; gap: .5em; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.fold::after {
  content: "+"; flex: none; margin-left: auto; font: 300 .8em/1 var(--sans); color: var(--accent);
  transition: transform .5s var(--ease);
}
.fold[aria-expanded="true"]::after { transform: rotate(135deg); }
.fold:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }
.tariff.is-fold:not(.is-open) dl { display: none; }
.tariff.is-fold.is-open dl { animation: enter .6s var(--ease) both; }

/* Спокойные кнопки в строках: золото остаётся только у главного действия */
body .tariff:not(.featured) .button:not(.outline):not(:disabled),
body .partner-cards .button:not(.outline):not(:disabled) {
  background: transparent; background-image: none; color: var(--text); border-color: var(--hair); box-shadow: none;
}
body .tariff:not(.featured) .button:not(.outline):not(:disabled)::after,
body .partner-cards .button:not(.outline):not(:disabled)::after { display: none; }
body .tariff:not(.featured) .button:not(.outline):not(:disabled):hover,
body .partner-cards .button:not(.outline):not(:disabled):hover {
  background: transparent; background-image: none; color: var(--accent-hover); border-color: var(--accent);
}

/* 2. Остальные карточки без рамок, с номерами */
body .about-grid article.about-copy, body .footer-grid > div, body .media-grid article {
  padding: 24px 0 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0; background: none; box-shadow: none; translate: none;
}
body .media-grid article::after { display: none; }
body .partner-cards { counter-reset: partner; }
body .partner-cards article { counter-increment: partner; }
body .partner-cards article::before {
  content: counter(partner, decimal-leading-zero); font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted);
}
body .partner-cards h3 { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.04; }

/* Указатель разделов на главной: крупный список вместо плашек */
body .home-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: idx; padding-block: clamp(40px, 7vw, 100px); }
body .home-links a {
  counter-increment: idx; display: flex; align-items: baseline; justify-content: flex-start; gap: clamp(14px, 3vw, 48px);
  min-height: 0; padding: clamp(14px, 2vw, 26px) 0; border: 0; border-top: 1px solid var(--hair); border-radius: 0;
  background: none; box-shadow: none; translate: none;
  font: 500 clamp(30px, 5.2vw, 78px)/1 var(--serif); letter-spacing: -.02em; text-transform: none; color: var(--text);
  transition: padding-left .6s var(--ease), color .3s ease;
}
body .home-links a:last-child { border-bottom: 1px solid var(--hair); }
body .home-links a::before { content: counter(idx, decimal-leading-zero); font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); }
body .home-links a::after { display: none; }
body .home-links a span { margin-left: auto; font-size: .45em; }
@media (hover: hover) {
  body .home-links a:hover { padding-left: clamp(12px, 2vw, 28px); border-color: var(--hair); color: var(--accent-hover); box-shadow: none; translate: none; }
}

/* 6. Шаги: крупные контурные номера; на широком экране лента листается вбок */
body .steps li { padding-top: 22px; }
body .step-number {
  display: block; margin-bottom: .18em; font: 500 clamp(72px, 11vw, 176px)/.82 var(--serif); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
body .steps h3 { font-size: clamp(26px, 3vw, 42px); }
@media (min-width: 1000px) {
  .motion #process.pin { height: 240vh; padding-block: 0; overflow-x: clip; }
  .motion #process.pin > .wrap { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
  .motion #process.pin .steps { display: flex; gap: 0; width: max-content; will-change: transform; }
  .motion #process.pin .steps li { flex: none; width: min(44vw, 620px); padding-right: 6vw; }
}

/* 5. Медиа как кино: одна большая обложка, остальное рядом ниже */
body .media-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px); align-items: start; }
body .media-grid article, body .media-grid article:not(:first-child) { display: block; grid-row: auto; padding: 0; border-top: 0; }
body .media-grid article:not(:first-child) .player { grid-row: auto; }
body .media-grid article > :not(.player) { grid-column: auto; margin-top: 10px; }
body .media-grid .video, body .media-grid .player iframe { aspect-ratio: 16/9; border-radius: 2px; }
body .media-grid h3, body .media-grid article:not(:first-child) h3 { font-size: clamp(22px, 2.2vw, 30px); }
body .media-grid article:not(:first-child) .photo-label { font-size: 10px; padding: 8px; }
@media (min-width: 700px) {
  body .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .media-grid article:first-child { grid-column: 1 / -1; }
  body .media-grid article:first-child h3 { margin-top: 20px; font-size: clamp(32px, 4.4vw, 64px); }
}
/* Обложки выпусков — 16:9 целиком, без обрезки имён и лиц */
body .media-grid .media-photo { aspect-ratio: 16/9; height: 100%; border: 0; }
/* внизу обложек — плашки с фамилиями, кнопку ставим в верхний правый угол */
body .media-grid .play { top: 10px; right: 10px; bottom: auto; width: 36px; height: 36px; font-size: 12px; }
@media (min-width: 1050px) {
  body .media-grid article:first-child { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); align-content: end; }
  body .media-grid article:first-child .player { grid-column: 1; grid-row: 1 / span 8; align-self: start; }
  body .media-grid article:first-child > :not(.player) { grid-column: 2; }
  body .media-grid article:first-child h3 { margin-top: 0; font-size: clamp(30px, 2.8vw, 44px); }
}
.media-grid article:first-child .media-photo::before, .media-grid article:first-child .media-photo::after {
  content: ""; position: absolute; top: 50%; left: 50%; pointer-events: none;
}
.media-grid article:first-child .media-photo::before {
  width: clamp(64px, 8vw, 104px); aspect-ratio: 1; translate: -50% -50%; border: 1px solid var(--accent); border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.media-grid article:first-child .media-photo::after {
  width: clamp(14px, 1.7vw, 22px); aspect-ratio: .88; translate: -38% -50%; background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.media-grid article:first-child .media-photo .photo-label { position: absolute; left: 0; right: 0; bottom: 14px; margin: auto; padding: 0; }

/* 7. Финал: огромное имя бренда в подвале */
body .closing { padding-block: clamp(96px, 14vw, 220px); }
body .site-footer { overflow: hidden; padding-bottom: 0; }
.site-footer::after {
  content: "FULL LIFE LAB"; display: block; margin: clamp(28px, 5vw, 64px) 0 -.05em; pointer-events: none; user-select: none;
  font: 500 min(15.2vw, 320px)/.78 var(--serif); letter-spacing: -.035em; white-space: nowrap; text-align: center;
  color: transparent; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 30%, transparent), transparent 96%);
  -webkit-background-clip: text; background-clip: text;
}

/* 8. Постоянная кнопка записи на телефоне */
.dock { display: none; }
@media (max-width: 720px) {
  .dock {
    display: block; position: fixed; z-index: 5; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
    transform: translateY(160%); transition: transform .6s var(--ease);
  }
  .dock.on { transform: none; }
  .dock .button { display: flex; justify-content: center; width: 100%; min-height: 54px; }
  body:has(.dock.on) .back-top { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); }
  body:has(.cookies:not([hidden])) .dock, body:has(dialog[open]) .dock { visibility: hidden; }
}

/* 9. Форма по шагам: один вопрос на экран */
.step-off { display: none !important; }
.stepped [data-step]:not(.step-off) { animation: enter .5s var(--ease) both; }
.stepped > label:not(.trap) { font: 500 clamp(24px, 3vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; color: var(--text); }
.stepped > label:not(.trap) :is(input, select, textarea) { margin-top: 16px; font: 400 16px/1.45 var(--sans); letter-spacing: 0; }
.stepped > label small { font: 400 12px/1.4 var(--sans); letter-spacing: 0; }
.step-bar { height: 1px; margin-bottom: 26px; background: var(--line); }
.step-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.step-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.step-nav .step-count { margin-left: auto; font: 600 11px/1 var(--sans); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-nav [hidden] { display: none; }

/* ───── Телефон (до 720 px): компактный первый экран, шапка, тарифы, закреплённая кнопка ───── */
@media (max-width: 720px) {
  /* Шапка: только логотип и бургер */
  .header .logo small, .header .header-book { display: none; }
  .header .bar { grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; }
  .header .menu { width: 44px; height: 44px; }

  /* Первый экран: девиз, круг ~58% ширины, H1 и кнопка помещаются в 812 px */
  body .reveal-hero { justify-content: flex-start; min-height: 0; padding-block: 14px 28px; }
  body .reveal-stage, body .reveal-stage.is-placeholder {
    --fs: min(17cqi, 76px); --capsule-width: 58cqi; --capsule-height: 58cqi;
    gap: .06em; height: calc(var(--capsule-height) + 2.02em);
  }
  .reveal-hero .photo-label { max-width: 20ch; font-size: 9px; }
  .reveal-hero .hero-lead { gap: 14px; margin-top: 14px; padding-top: 14px; }
  .reveal-hero .hero-roles { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 10px; }
  .reveal-hero h1 { margin-top: 8px; font-size: clamp(26px, 7.6vw, 34px); line-height: 1.06; }
  .reveal-hero .h1-kicker { margin-bottom: 4px; }
  .reveal-hero .hero-details { display: flex; flex-direction: column; align-items: flex-start; }
  .reveal-hero .actions { order: -1; display: grid; width: 100%; gap: 8px; margin: 0 0 16px; }
  .reveal-hero .actions .button { justify-content: space-between; width: 100%; min-height: 50px; }
  .reveal-hero .hero-details > .text-link { min-height: 44px; margin-top: 6px; align-items: center; }

  /* Ритм: меньше вертикальных отступов */
  body .section { padding-block: 44px; }
  body .section-head { margin-bottom: 20px; }
  body .section-head h1, body .page-intro h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1; }
  body .section-head h2, body .closing h2 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.02; }
  body .closing { padding-block: 48px; }
  .closing p { margin: 10px 0 18px; }
  .subscribe-band { padding-block: 20px; }
  .subscribe-band .button { min-height: 44px; }
  body .service-group + .service-group { margin-top: 30px; }
  body .fact strong { font-size: clamp(36px, 11vw, 48px); }
  body .step-number { font-size: 56px; }
  body .partner-cards { gap: 22px; }
  body .partner-cards article { gap: 10px; padding-top: 18px; }
  body .partner-cards h3 { font-size: 24px; overflow-wrap: break-word; }
  body .partner-cards article > p { font-size: 14.5px; line-height: 1.55; }

  /* Тарифы: метка, название, цена и кнопка; описание раскрывается по «Подробнее» */
  body .tariff:not(.featured) { padding: 16px 0 18px; }
  body .tariff.featured { margin-top: 14px; padding: 16px 16px 18px; }
  body .tariff { gap: 8px; }
  body .tariff::before { padding-top: 0; }
  body .tariff.featured::before { display: none; }
  body .tariff h3 { max-width: none; font-size: 23px; line-height: 1.12; overflow-wrap: break-word; }
  .tariff .fold { display: grid; gap: 8px; min-height: 44px; align-content: center; }
  .tariff .fold::after {
    content: "Подробнее +"; margin: 0; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); transform: none;
  }
  .tariff .fold[aria-expanded="true"]::after { content: "Свернуть −"; transform: none; }
  :lang(en) .tariff .fold::after { content: "Details +"; }
  :lang(en) .tariff .fold[aria-expanded="true"]::after { content: "Hide −"; }
  :lang(es) .tariff .fold::after { content: "Detalles +"; }
  :lang(es) .tariff .fold[aria-expanded="true"]::after { content: "Ocultar −"; }
  body .tariff dl { gap: 6px; margin-top: 4px; }
  body .tariff dd { font-size: 14px; line-height: 1.5; }
  body .tariff-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 4px; }
  body .tariff-bottom .price { font-size: 32px; }
  body .tariff-bottom .button { min-height: 44px; margin: 0; padding: 4px 6px 4px 14px; font-size: 12px; }
  body .tariff-bottom .button span { width: 26px; height: 26px; font-size: 13px; }

  /* Нижнее меню дублирует шапку — на телефоне убрано */
  body .home-links { display: none; }

  /* Подвал */
  .site-footer .logo small { display: none; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer::after { margin-top: 18px; }

  /* Закреплённая «Записаться»: непрозрачная полоса, текст под ней не просвечивает */
  .dock {
    inset: auto 0 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: var(--bg);
    transform: translateY(110%);
  }
  .dock .button { min-height: 48px; }
  body:has(.dock.on) .back-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(#nav[data-open]) .dock { visibility: hidden; }

  /* Зоны нажатия и поля форм */
  .text-link, .language-switch a, #nav > a { min-height: 44px; }
  .language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
  .close { width: 44px; height: 44px; }
  dialog :is(input, select, textarea), form :is(input:not([type="checkbox"]), select, textarea) { font-size: 16px; }
  .consent input[type="checkbox"] { width: 22px; height: 22px; }
}

/* Переключатель тёмной / светлой темы */
.theme-toggle { display: grid; place-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--control); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: border-color .3s ease, color .3s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="ivory"] .theme-toggle .i-sun { display: none; }
:root[data-theme="ivory"] .theme-toggle .i-moon { display: block; }
.bar:has(.theme-toggle) { grid-auto-flow: column; grid-auto-columns: auto; }
/* без VK обложка ведёт на YouTube — кнопка ▶ видна и на ссылке */
a.video .play { display: grid; pointer-events: none; }

/* оплата, реквизиты, черновики документов */
.tariff-note { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.requisites { overflow-wrap: anywhere; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 12px; }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.legal-links a:hover { color: inherit; }
.legal-draft { display: inline-block; margin-bottom: 20px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
