/* Анастасия Иванова — психолог по отношениям. Лендинг 18 экранов. */
:root {
  --bg: #F7F2EE;
  --bg-2: #F2E9E4;
  --card: #FFFDFB;
  --line: #E9DDD6;
  --ink: #1D1B26;
  --muted: #5D5760;
  --accent: #8B3A4A;
  --accent-h: #74303E;
  --accent-soft: #F5E5E3;
  --rose: #E7BDB5;
  --dark: #1E1A1C;
  --dark-2: #2A2427;
  --dark-line: rgba(255, 255, 255, .12);
  --on-dark: #F6EFEB;
  --on-dark-2: rgba(246, 239, 235, .8);
  --serif: "Noto Serif Display", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --script: "Marck Script", cursive;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --hdr: 84px;
  --shadow: 0 18px 50px -24px rgba(60, 30, 40, .28);
  --shadow-sm: 0 8px 24px -14px rgba(60, 30, 40, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
@media (min-width: 1800px) { .wrap { max-width: 1820px; } }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 700; }
.eyebrow .num { color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.h1, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.08;
}
.h1 { font-size: clamp(38px, 3.5vw, 66px); }
.h2 { font-size: clamp(32px, 3vw, 56px); }
.h1 em, .h2 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.15vw, 21px); color: var(--muted); line-height: 1.55; max-width: 62ch; }
.text { color: var(--muted); max-width: 64ch; }
.script { font-family: var(--script); color: var(--accent); font-size: 26px; line-height: 1.1; }

.mark {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  color: var(--ink);
  font-size: 17.5px;
  max-width: 60ch;
}
.mark-strong { font-family: var(--serif); font-size: clamp(20px, 1.5vw, 26px); color: var(--accent); line-height: 1.3; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 30px;
  border-radius: 16px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  text-align: center;
}
.btn .ico { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px rgba(139, 58, 74, .7); }
.btn-primary:hover { background: var(--accent-h); }
.btn-ghost { background: rgba(255, 255, 255, .6); border-color: #CFC2BB; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(139, 58, 74, .45); outline-offset: 3px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.trust .ico { width: 16px; height: 16px; }
.trust i { font-style: normal; opacity: .5; }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  pointer-events: none; transition: top .3s;
}
.hdr-in {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  height: clamp(80px, 5.2vw, 100px); padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: height .3s, padding .3s, background .3s, border-color .3s, box-shadow .3s;
}
.hdr.is-scrolled, .hdr.is-solid { top: 12px; }
.hdr.is-scrolled .hdr-in, .hdr.is-solid .hdr-in {
  height: 72px; padding: 0 14px 0 20px;
  background: rgba(255, 253, 251, .82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-color: rgba(233, 221, 214, .9);
  box-shadow: 0 10px 30px -20px rgba(60, 30, 40, .35);
}
.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
.logo-mark { width: clamp(44px, 2.9vw, 56px); height: clamp(44px, 2.9vw, 56px); color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; padding-left: 16px; border-left: 1px solid #D9CCC5; }
.logo-text b { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 1.3vw, 25px); color: var(--ink); }
.logo-text span { font-size: clamp(12.5px, .78vw, 15px); color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: clamp(2px, .6vw, 12px); margin: 0 auto; }
.nav > a, .nav-dd > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  font-size: clamp(14px, .85vw, 16px); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; transition: color .2s, background .2s;
}
.nav > a:hover, .nav-dd > button:hover, .nav > a.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-dd { position: relative; }
.nav-dd > button .ico { width: 14px; height: 14px; transition: transform .2s; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 280px;
  padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-dd:hover .nav-dd-panel, .nav-dd.is-open .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-dd:hover > button .ico, .nav-dd.is-open > button .ico { transform: rotate(180deg); }
.nav-dd-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; }
.nav-dd-panel a:hover { background: var(--accent-soft); }
.nav-dd-panel a .ico { color: var(--accent); margin-top: 2px; }
.nav-dd-panel b { display: block; font-size: 15px; font-weight: 600; }
.nav-dd-panel small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.hdr-cta { flex: none; white-space: nowrap; min-height: clamp(46px, 2.9vw, 56px); padding: 0 clamp(22px, 2.6vw, 50px); border-radius: 13px; font-size: clamp(15px, .85vw, 16px); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.burger .ico { width: 22px; height: 22px; }

/* .wrap ограничен 1400px до 1799px: размеры шапки не должны расти от vw, иначе CTA вылезает из плашки */
@media (min-width: 1367px) and (max-width: 1799px) {
  .hdr-in { gap: 18px; }
  .nav { gap: 2px; }
  .nav > a, .nav-dd > button { padding: 10px 9px; font-size: 15px; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-text b { font-size: 21px; }
  .logo-text span { font-size: 13px; }
  .hdr-cta { min-height: 48px; padding: 0 28px; font-size: 15px; }
}
@media (max-width: 1366px) {
  .hdr-in { gap: 12px; }
  .nav { gap: 0; }
  .nav > a, .nav-dd > button { padding: 10px 7px; font-size: 14px; }
  .hdr-cta { padding: 0 18px; }
}
@media (max-width: 1240px) {
  .nav > a.hide-md { display: none; }
}
@media (max-width: 1180px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: inline-flex; }
  .hdr, .hdr.is-scrolled, .hdr.is-solid { top: 10px; }
  .hdr-in, .hdr.is-scrolled .hdr-in, .hdr.is-solid .hdr-in {
    height: 62px; padding: 0 10px 0 14px;
    background: rgba(255, 253, 251, .82);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-color: rgba(233, 221, 214, .9);
  }
  .logo-mark { width: 38px; height: 38px; }
  .logo-text b { font-size: 18px; }
}
@media (max-width: 370px) {
  .logo { gap: 10px; }
  .logo-text { padding-left: 10px; }
  .logo-text b { font-size: 16.5px; }
}
@media (max-width: 340px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-text b { font-size: 15px; }
}

/* Мобильное меню */
.mnav {
  position: fixed; inset: 0; z-index: 60; background: rgba(30, 26, 28, .35);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--card); padding: 22px 22px 32px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; gap: 6px;
}
.mnav.is-open .mnav-panel { transform: none; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mnav a { display: block; padding: 13px 4px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav .mnav-sub a { font-size: 16px; padding-left: 18px; color: var(--muted); }
.mnav .btn { margin-top: 18px; border-bottom: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* Точки-навигация по экранам */
.dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; gap: 9px;
  padding: 12px 8px; border-radius: 30px; background: rgba(255, 253, 251, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 221, 214, .7);
}
.dots { transition: opacity .3s, visibility .3s; }
.dots.is-hidden { opacity: 0; visibility: hidden; }
.dots a { position: relative; display: block; width: 9px; height: 9px; border-radius: 50%; background: #CDBFB8; transition: background .2s, transform .2s; }
.dots a:hover, .dots a.is-active { background: var(--accent); transform: scale(1.35); }
.dots a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px;
  background: var(--dark); color: var(--on-dark); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dots a:hover span { opacity: 1; }
@media (max-width: 1100px), (max-height: 640px) { .dots { display: none; } }

/* ---------- Экраны ---------- */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--hdr) + 40px) 0 56px;
  scroll-margin-top: 0;
}
.screen > .wrap { position: relative; z-index: 2; }
.screen-warm { background: var(--bg-2); }
.screen-dark { background: var(--dark); color: var(--on-dark); }
.screen-dark .lead, .screen-dark .text { color: var(--on-dark-2); }
.screen-dark .eyebrow { color: var(--on-dark-2); }
.screen-dark .eyebrow .num, .screen-dark .eyebrow b { color: var(--rose); }
.screen-dark .h1 em, .screen-dark .h2 em { color: var(--rose); }
.screen-dark .mark { border-color: var(--rose); color: var(--on-dark); }
.screen-dark .mark-strong { color: var(--rose); }
.screen-dark .trust { color: var(--on-dark-2); }

.head { display: grid; gap: 18px; margin-bottom: clamp(28px, 3.4vh, 48px); max-width: 980px; }
.head-center { text-align: center; margin-left: auto; margin-right: auto; justify-items: center; }

.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4vw, 80px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.stack { display: grid; gap: clamp(18px, 2.4vh, 28px); align-content: center; }

/* Фото */
.photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, #EADBD3, #D9C6BC);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 110px); width: 100%; }
.photo-43 { aspect-ratio: 4 / 3; }
.photo-cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: inline-flex; gap: 10px; align-items: center; width: fit-content; max-width: calc(100% - 36px);
  padding: 10px 16px; border-radius: 14px; background: rgba(255, 253, 251, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.photo-cap .ico { color: var(--accent); }

/* Плавающие карточки у портрета */
.float-card {
  position: absolute; z-index: 3;
  padding: 18px 20px; border-radius: 20px; background: rgba(255, 253, 251, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(233, 221, 214, .9); box-shadow: var(--shadow);
  font-size: 15.5px; line-height: 1.35; color: var(--ink); max-width: 230px;
}
.float-card .icon-box { margin-bottom: 10px; }
.float-script { position: absolute; z-index: 3; transform: rotate(-8deg); font-size: 30px; }

.icon-box {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon-box .ico { width: 24px; height: 24px; }
.screen-dark .icon-box { background: rgba(231, 189, 181, .14); color: var(--rose); }

/* Карточки */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 1.8vw, 28px); box-shadow: var(--shadow-sm);
}
.card h3 { font-family: var(--serif); font-size: clamp(20px, 1.45vw, 25px); line-height: 1.2; color: var(--accent); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-dark { background: var(--dark-2); border-color: var(--dark-line); box-shadow: none; }
.card-dark h3 { color: var(--rose); }
.card-dark p { color: var(--on-dark-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- 01 Hero ---------- */
.hero { background:
  radial-gradient(900px 600px at 78% 40%, #EFE2DB 0%, rgba(239, 226, 219, 0) 70%),
  linear-gradient(180deg, #FAF6F3 0%, var(--bg) 100%); }
.hero { overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; }
.hero .eyebrow { font-size: clamp(12.5px, .75vw, 14.5px); }
.hero .h1 { font-size: clamp(36px, 3.25vw, 63px); letter-spacing: -.02em; }
.hero .h1 .h1-top { display: block; color: var(--accent); }
.hero-text { max-width: min(930px, 49vw); }
.hero .mark { max-width: none; font-size: clamp(16.5px, 1.05vw, 20px); }
.hero .feats { border: 0; padding: 4px 0; }
.hero .feat { font-size: clamp(14px, .85vw, 16.5px); }
.hero .feat .icon-box { width: clamp(42px, 2.7vw, 52px); height: clamp(42px, 2.7vw, 52px); }
.hero .btns { display: grid; grid-template-columns: 1.33fr 1fr; }
.hero .btn { min-height: clamp(58px, 3.6vw, 70px); padding: 0 22px; border-radius: 14px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .35); border-color: rgba(29, 27, 38, .45); }

.hero-photo { position: absolute; inset: 0; z-index: 1; }
.hero-photo .photo { position: absolute; inset: 0; border-radius: 0; box-shadow: none; background: none; }
.hero-photo .photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(248, 243, 239, .88) 0%, rgba(248, 243, 239, .62) 32%, rgba(248, 243, 239, 0) 52%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }

.hero-aside {
  --card-w: clamp(190px, 11.8vw, 232px);
  position: absolute; z-index: 3; top: 30%; right: clamp(24px, 3.1vw, 64px); width: var(--card-w);
}
@media (min-width: 1061px) and (max-aspect-ratio: 3/2) {
  .hero-photo img { object-position: 66% center; }
  .hero-aside { top: 40%; }
}
.hero-photo .hero-card {
  position: relative; inset: auto; width: auto; max-width: none;
  padding: clamp(18px, 1.2vw, 24px) clamp(18px, 1.2vw, 24px) clamp(20px, 1.3vw, 26px);
  border-radius: 22px; font-size: clamp(16px, 1.05vw, 20px); line-height: 1.35;
}
.hero-card .float-card-text { display: block; }
.hero-card .icon-box { display: flex; width: clamp(46px, 2.9vw, 56px); height: clamp(46px, 2.9vw, 56px); margin-bottom: clamp(10px, .8vw, 16px); }
.hero-card-line { display: block; width: 40px; height: 1px; margin-top: clamp(12px, .9vw, 18px); background: #CDBFB8; }

/* Плавающие плашки: лёгкий 3D-наклон, толщина края и блик */
.hero-photo .hero-card, .book-photo .float-card {
  --px: 0deg; --py: 0deg; --ex: 3px;
  transform: var(--tilt) rotateY(var(--px)) rotateX(var(--py));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .2) 36%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 253, 251, .94) 0%, rgba(249, 242, 238, .9) 100%);
  border-color: rgba(255, 255, 255, .9) rgba(226, 211, 204, .9) rgba(214, 197, 189, .95) rgba(242, 233, 228, .95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -2px 0 rgba(214, 197, 189, .35),
    var(--ex) 4px 0 -1px rgba(224, 208, 200, .95),
    calc(var(--ex) * 2) 10px 16px -6px rgba(86, 50, 56, .2),
    calc(var(--ex) * 8) 38px 60px -20px rgba(86, 50, 56, .3);
  animation: float-card-drift 6.5s ease-in-out infinite;
}
.hero-photo .hero-card { --tilt: perspective(900px) rotateY(-13deg) rotateX(6deg) rotateZ(-1.6deg); transform-origin: 55% 50%; }
.book-photo .float-card { --tilt: perspective(900px) rotateY(10deg) rotateX(5deg) rotateZ(1.3deg); --ex: -3px; transform-origin: 45% 50%; animation-duration: 7.5s; animation-delay: -3s; }
.js .hero-photo .hero-card.reveal { transform: translateY(22px) var(--tilt); }
.js .hero-photo .hero-card.reveal.is-in { transform: var(--tilt) rotateY(var(--px)) rotateX(var(--py)); }
.js .hero-photo .hero-card.is-live { transition: opacity .8s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: 0s; }
@keyframes float-card-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -7px; rotate: -.5deg; }
}
@media (max-width: 1060px) {
  .hero-photo .hero-card { --tilt: perspective(800px) rotateY(-9deg) rotateX(4deg) rotateZ(-1.2deg); }
  .book-photo .float-card { --tilt: perspective(800px) rotateY(7deg) rotateX(4deg) rotateZ(1deg); }
}
@media (max-width: 760px) {
  .hero-photo .hero-card { --tilt: perspective(700px) rotateY(-7deg) rotateX(3deg) rotateZ(-1deg); --ex: 2px; }
  .book-photo .float-card { --tilt: perspective(900px) rotateY(4deg) rotateX(3deg) rotateZ(.6deg); --ex: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo .hero-card.reveal { transform: var(--tilt); }
}
.hero-arrow {
  position: absolute; right: calc(100% + 6px); top: 34%; width: clamp(58px, 4.2vw, 84px); height: auto;
  fill: none; stroke: #9A7479; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.hero-aside .float-script {
  position: absolute; left: 4px; top: calc(100% + 15vh); transform: rotate(-9deg);
  font-size: clamp(22px, 1.6vw, 32px); line-height: 1.05; white-space: nowrap;
}
@media (max-aspect-ratio: 17/10) {
  .hero-aside .float-script { top: auto; bottom: calc(100% + 18px); left: auto; right: 6px; }
}
@media (min-width: 1061px) and (max-width: 1180px) and (max-aspect-ratio: 3/2) {
  .hero-aside .float-script { display: none; }
}
.hero-aside .float-script svg { display: block; width: 4.6em; height: auto; margin: 2px 0 0 1.6em; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: .8; }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.feat { display: flex; gap: 12px; align-items: center; padding: 0 14px; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.feat + .feat { border-left: 1px solid var(--line); }
.feat:first-child { padding-left: 0; }
.feat .icon-box { width: 42px; height: 42px; }
.feat .icon-box .ico { width: 20px; height: 20px; }

/* ---------- 02 Ситуация (тёмный, фото) ---------- */
.situation { overflow: hidden; }
.situation-bg { position: absolute; inset: 0; z-index: 0; }
.situation-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%; }
.situation-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 26, 28, .97) 0%, rgba(30, 26, 28, .9) 38%, rgba(30, 26, 28, .45) 70%, rgba(30, 26, 28, .25) 100%),
              linear-gradient(0deg, rgba(30, 26, 28, .7) 0%, rgba(30, 26, 28, 0) 35%);
}
.situation .stack { max-width: 840px; gap: clamp(14px, 1.9vh, 22px); }
.situation .h2 { font-size: clamp(28px, 2.5vw, 48px); }
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pain { display: flex; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pain b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--on-dark); }
.pain > div > span { font-size: 14.5px; line-height: 1.45; color: var(--on-dark-2); }
.situation-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.quote-pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--dark-line); font-size: 15px; color: var(--on-dark-2); }
.quote-pill .ico { color: var(--rose); }

/* ---------- 03 Почему не помогает ---------- */
.vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vcard {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: clamp(280px, 36vh, 380px); padding: 26px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.vcard .vnum { position: absolute; right: 18px; top: 8px; font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--accent-soft); z-index: 0; }
.vcard > * { position: relative; z-index: 1; }
.vcard h3 { font-family: var(--serif); font-size: clamp(24px, 1.8vw, 32px); line-height: 1.12; margin-top: auto; }
.vcard .arrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.vcard p { color: var(--muted); font-size: 15.5px; }
.conclusion {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  padding: 18px 24px; border-radius: 18px; background: var(--accent-soft); border: 1px solid #EBCFCB;
  font-size: 17px;
}
.conclusion b { color: var(--accent); font-weight: 700; }
.conclusion .ico { color: var(--accent); width: 26px; height: 26px; }

/* ---------- 04 Желание ---------- */
.wish-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wish-cards .card { padding: 22px 20px; }
.wish-cards .card h3 { font-size: 21px; margin-top: 14px; }
.note-box { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px dashed #D8C5BD; color: var(--muted); font-size: 16px; }
.note-box b { color: var(--ink); font-weight: 600; }

/* ---------- 05 Начните с себя ---------- */
.mini-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.mini-feat { display: flex; gap: 12px; align-items: flex-start; }
.mini-feat .icon-box { width: 42px; height: 42px; }
.mini-feat .icon-box .ico { width: 20px; height: 20px; }
.mini-feat b { display: block; font-size: 15.5px; font-weight: 700; }
.mini-feat > div > span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; }

/* ---------- 06 Результат (тёмный) ---------- */
.result { background:
  radial-gradient(700px 500px at 85% 20%, rgba(139, 58, 74, .28), rgba(139, 58, 74, 0) 70%),
  var(--dark); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.result-item { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; align-content: start; padding: clamp(22px, 2vw, 30px); border-radius: 24px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.result-item .rnum { font-family: var(--serif); font-size: 54px; line-height: .9; color: var(--rose); }
.result-item h3 { font-family: var(--serif); font-size: clamp(22px, 1.7vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.result-item p { color: var(--on-dark-2); font-size: 15.5px; }
.result-side { display: grid; gap: 18px; align-content: center; }
.result-side .photo { aspect-ratio: 16 / 10; box-shadow: none; }

/* ---------- 07 Консультация ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 22px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step .icon-box { margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-size: 21px; color: var(--accent); margin-bottom: 6px; line-height: 1.2; }
.step h3 small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 44px; width: 10px; height: 10px;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); opacity: .6;
}
#konsultaciya .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#konsultaciya .step::after { display: none; }
#konsultaciya .step { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
#konsultaciya .step .icon-box { margin: 0; grid-row: span 2; }
.consult-photo { position: relative; }
.consult-photo .photo { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 120px); }
.terms {
  position: absolute; right: -14px; bottom: 28px; z-index: 3; width: 270px;
  padding: 20px; border-radius: 22px; background: rgba(255, 253, 251, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.terms-list { display: grid; gap: 10px; margin-bottom: 14px; }
.terms-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; }
.terms-list .icon-box { width: 38px; height: 38px; }
.terms-list .icon-box .ico { width: 18px; height: 18px; }
.terms small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }
.terms .btn { width: 100%; min-height: 50px; padding: 0 16px; font-size: 15px; }

/* ---------- 08 Программа ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin: 6px 0 26px; }
.flow::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); opacity: .45; }
.flow-item { position: relative; text-align: center; padding: 0 14px; }
.flow-icon { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow-icon .ico { width: 36px; height: 36px; stroke-width: 1.4; }
.flow-icon b { position: absolute; top: -4px; right: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.flow-item h3 { font-family: var(--serif); font-size: clamp(22px, 1.7vw, 28px); margin-bottom: 8px; }
.flow-item p { font-size: 15.5px; color: var(--muted); max-width: 30ch; margin: 0 auto; }
.program-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ---------- 09 Квиз ---------- */
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: stretch; }
.quiz {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  padding: clamp(22px, 2.2vw, 36px); display: flex; flex-direction: column; gap: 20px; min-height: 470px;
}
.quiz-top { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.quiz-bar { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quiz-bar i { height: 6px; border-radius: 4px; background: var(--line); transition: background .3s; }
.quiz-bar i.on { background: var(--accent); }
.quiz-step { display: none; flex-direction: column; gap: 18px; animation: qIn .35s ease; }
.quiz-step.is-active { display: flex; }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step legend { padding: 0; margin-bottom: 18px; }
.quiz-q { font-family: var(--serif); font-size: clamp(24px, 1.9vw, 34px); line-height: 1.15; }
.quiz-hint { font-size: 14.5px; color: var(--muted); margin-top: -8px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px;
  border-radius: 16px; border: 1px solid var(--line); background: #FFF; cursor: pointer;
  font-size: 15.5px; font-weight: 500; line-height: 1.3; transition: border-color .2s, background .2s, box-shadow .2s;
}
.opt label .icon-box { width: 40px; height: 40px; }
.opt label .icon-box .ico { width: 19px; height: 19px; }
.opt label:hover { border-color: #D5B9B3; }
.opt input:checked + label { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt input:focus-visible + label { outline: 3px solid rgba(139, 58, 74, .45); outline-offset: 2px; }
.opts-pic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts-pic .opt label { flex-direction: column; align-items: stretch; gap: 12px; height: 100%; min-height: 0; padding: 8px 8px 14px; }
.opt-img { position: relative; display: block; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--line); }
.opt-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@media (hover: hover) { .opts-pic .opt label:hover .opt-img img { transform: scale(1.04); } }
.opt-img::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.opt input:checked + label .opt-img::after { opacity: 1; transform: none; }
.opt-txt { padding: 0 6px; }
@media (prefers-reduced-motion: reduce) { .opt-img img, .opt-img::after { transition: none; } }
@media (max-width: 760px) {
  .opts-pic .opt label { flex-direction: row; align-items: center; gap: 14px; padding: 8px 14px 8px 8px; }
  .opts-pic .opt-img { width: 72px; flex: none; border-radius: 10px; }
  .opt-img::after { top: 4px; right: 4px; width: 22px; height: 22px; background-size: 12px; }
  .opt-txt { padding: 0; }
}
.quiz-nav { display: flex; gap: 12px; margin-top: auto; }
.quiz-nav .btn-primary { flex: 1; }
@media (max-width: 760px) {
  .quiz-nav { flex-wrap: wrap-reverse; }
  .quiz-nav .btn-ghost { flex: 1 0 auto; }
  .quiz-nav .btn-primary { flex: 999 1 auto; }
}
.quiz-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.quiz-note .ico { width: 18px; height: 18px; color: var(--accent); }
.quiz-lead { scroll-margin-top: calc(var(--hdr) + 16px); animation: qIn .35s ease; }
.ql-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(22px, 2.6vw, 40px); align-items: start; }
.ql-info { display: flex; flex-direction: column; gap: 16px; }
.ql-kicker { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 30px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 700; }
.ql-kicker .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.ql-teaser { font-size: 16px; line-height: 1.55; color: var(--muted); }
.ql-teaser b { color: var(--ink); font-weight: 600; }
.ql-doc { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.ql-doc b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.ql-doc-img { position: relative; flex: none; width: 66px; aspect-ratio: 3 / 4; border-radius: 30px 30px 8px 8px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.ql-doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.ql-doc-img i { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; font-style: normal; letter-spacing: .1em; text-align: center; }
.ql-back { align-self: flex-start; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ql-back:hover { color: var(--accent); }
.quiz-lead .seg label { height: 42px; padding: 0 13px; font-size: 14.5px; }
.ql-done { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px); border-radius: 20px; background: var(--accent-soft); outline: none; }
.ql-done .icon-box { background: #fff; }
.ql-done h3 { font-family: var(--serif); font-size: clamp(24px, 1.8vw, 30px); line-height: 1.15; }
.ql-done p { font-size: 15.5px; color: var(--muted); }
.ql-done a:not(.btn) { color: var(--accent); font-weight: 600; }
.ql-done .ql-contact { color: var(--ink); }
.ql-done .ql-contact.is-warn { color: #8E2B2B; }
.ql-done .btns { margin-top: 6px; }
@media (max-width: 900px) {
  .ql-grid { grid-template-columns: minmax(0, 1fr); }
  .ql-done .btns .btn { flex: 1 1 auto; }
}
.quiz-side { background: rgba(255, 253, 251, .7); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.quiz-side li { display: flex; gap: 14px; align-items: center; padding: 10px 0; font-size: 15px; color: var(--muted); line-height: 1.35; }
.quiz-side li b { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .25s; }
.quiz-side li.is-active { color: var(--ink); font-weight: 600; }
.quiz-side li.is-active b, .quiz-side li.is-done b { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-side .script { margin-top: auto; font-size: 24px; transform: rotate(-4deg); padding-top: 14px; }

/* ---------- 10 Результат диагностики ---------- */
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.res-card { display: flex; gap: 16px; align-items: flex-start; }
.res-card h3 { font-size: 21px; }
.res-card .ans { color: var(--ink); font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.res-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.res-badge.is-filled { background: var(--accent-soft); border-color: #EBCFCB; color: var(--accent); font-weight: 600; }
.res-aside { display: grid; gap: 14px; }
.res-aside .terms-list { margin: 0; }

/* ---------- 11 Запись (форма) ---------- */
.book { background: linear-gradient(180deg, var(--bg) 0%, #F3EAE5 100%); }
.book-photo { position: relative; }
.book-photo .photo { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 110px); }
.book-photo .float-card { left: -22px; top: 57%; max-width: 250px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 2vw, 32px); box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.input, .select {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1px solid #DCCDC6; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235D5760' stroke-width='1.8'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 58, 74, .14); }
.input.is-error { border-color: #C0392B; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid #DCCDC6; background: #fff; cursor: pointer; font-size: 15px; font-weight: 500; transition: all .2s; }
.seg label .ico { width: 18px; height: 18px; }
.seg input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.seg input:focus-visible + label { outline: 3px solid rgba(139, 58, 74, .45); outline-offset: 2px; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); }
.form .btn { width: 100%; }
.form-sub { font-size: 13px; color: var(--muted); text-align: center; }
.form-msg { display: none; font-size: 14px; padding: 10px 14px; border-radius: 12px; background: #FBEAEA; color: #8E2B2B; }
.form-msg.is-on { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quiz-attached { display: none; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.quiz-attached.is-on { display: flex; }
.quiz-attached .ico { width: 18px; height: 18px; }
.conditions { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--muted); }
.conditions span { display: inline-flex; align-items: center; gap: 8px; }
.conditions .ico { width: 18px; height: 18px; color: var(--accent); }

/* ---------- 12 О психологе ---------- */
.about-photo { position: relative; }
.about-photo .photo { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 110px); }
.about-name { font-family: var(--serif); font-size: 24px; color: var(--accent); }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.about-stats li { padding: 12px 14px 13px; border-radius: 16px; background: var(--accent-soft); }
.about-stats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 1.8vw, 32px); line-height: 1.1; color: var(--accent); white-space: nowrap; }
.about-stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 560px) { .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.creds { display: grid; gap: 10px; }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cred b { display: block; font-size: 15px; }
.cred > div > span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.todo { color: #9A6A2E !important; background: #FFF4DF; border: 1px dashed #E2C48F; border-radius: 6px; padding: 1px 6px; font-weight: 500; }

/* ---------- Лента компаний (clients marquee) ---------- */
.clients { --gap: clamp(44px, 4.4vw, 76px); --s: 1; padding: clamp(48px, 7vh, 88px) 0 clamp(16px, 2vh, 28px); overflow: hidden; }
.clients-head { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-bottom: clamp(26px, 4vh, 44px); }
.clients-head::before, .clients-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.clients-head .eyebrow { text-align: center; }
.clients-marquee { display: grid; gap: clamp(20px, 3vh, 34px); }
.clients-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.clients-track { display: flex; width: max-content; animation: clients-scroll 56s linear infinite; will-change: transform; }
.clients-row-rev .clients-track { animation-duration: 64s; animation-direction: reverse; }
.clients-row:hover .clients-track, .clients-marquee:focus-within .clients-track { animation-play-state: paused; }
.clients-group { display: flex; align-items: center; flex: none; gap: var(--gap); padding-right: var(--gap); min-height: 58px; }
.clients-group li { flex: none; display: flex; align-items: center; }
.clients-group img { width: calc(var(--w) * var(--s) * 1px); height: auto; opacity: .7; transition: opacity .3s ease; }
.clients-group li:hover img { opacity: 1; }
@keyframes clients-scroll { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 760px) {
  .clients { --s: .74; --gap: 38px; }
  .clients-group { min-height: 44px; }
  .clients-row {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .clients-track { width: auto; animation: none; transform: none; }
  .clients-group[aria-hidden="true"] { display: none; }
  .clients-row { -webkit-mask-image: none; mask-image: none; }
  .clients-group { flex: 1; flex-wrap: wrap; justify-content: center; gap: 26px var(--gap); max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
}

/* ---------- 12 Образование и дипломы ---------- */
.cred-link { display: inline-flex; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
.edu { flex-direction: column; justify-content: center; }
.edu .head { max-width: 860px; }
.edu-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(28px, 3.6vw, 72px); align-items: start; }
.edu-info { display: grid; gap: clamp(22px, 3vh, 34px); }

.edu-main {
  position: relative; overflow: hidden; display: grid; gap: 18px;
  padding: clamp(24px, 2.4vw, 38px); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.edu-main::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--rose)); }
.edu-main::after {
  content: "1999"; position: absolute; right: clamp(14px, 2vw, 30px); top: clamp(4px, 1vw, 14px); pointer-events: none;
  font-family: var(--serif); font-size: clamp(64px, 6.4vw, 112px); line-height: 1; letter-spacing: -.03em; color: var(--accent-soft);
}
.edu-main > * { position: relative; z-index: 1; }
.edu-tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.edu-tag .ico { width: 18px; height: 18px; }
.edu-main h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.1vw, 36px); line-height: 1.12; letter-spacing: -.01em; max-width: 16ch; }
.edu-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.edu-facts > div { min-width: 0; }
.edu-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.edu-facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.edu-facts dd small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--muted); }
.edu-facts .wide { grid-column: 1 / -1; }

.edu-link {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-color: rgba(139, 58, 74, .35); text-underline-offset: 4px;
  transition: text-decoration-color .2s, color .2s;
}
.edu-link:hover { color: var(--accent-h); text-decoration-color: currentColor; }
.edu-link .ico { width: 18px; height: 18px; transition: transform .2s; }
.edu-link:hover .ico { transform: translateX(3px); }

.edu-tl { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.edu-tl li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid #E4D6CF; }
.edu-tl li:last-child { border-bottom: 1px solid #E4D6CF; }
.edu-year { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--accent); white-space: nowrap; }
.edu-tl b { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 4px; }
.edu-tl p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-bottom: 8px; }
.edu-tl .edu-link { font-size: 14.5px; }
.edu-quote { margin: 4px 0 12px; padding: 14px 18px 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.edu-quote figcaption { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.edu-quote figcaption .ico { width: 15px; height: 15px; }
.edu-quote blockquote { margin: 6px 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink); }
.edu-quote cite { display: block; font-style: normal; font-size: 13px; line-height: 1.45; color: var(--muted); }

.edu-side { display: grid; gap: 16px; }
.edu-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 22px); margin: 0; padding: 0; list-style: none; }
.edu-doc {
  position: relative; display: grid; grid-template-rows: auto auto; width: 100%; height: 100%; padding: 0; text-align: left; cursor: zoom-in;
  border-radius: 22px; border: 1px solid #E6D7D0; overflow: hidden; color: var(--ink);
  background: var(--card); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.edu-paper {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3.1; padding: 7% 7.5%;
  background: radial-gradient(120% 90% at 50% 0%, #FFFDFB 0%, #F4EAE4 70%, #EFE2DA 100%);
}
.edu-paper img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 3px; background: #fff;
  box-shadow: 0 1px 2px rgba(40, 20, 28, .12), 0 12px 26px -12px rgba(60, 30, 40, .45), 0 30px 50px -36px rgba(60, 30, 40, .5);
  transform: rotate(var(--rot, -1.2deg)); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.edu-docs li:nth-child(2) .edu-paper img { --rot: 1.4deg; }
.edu-docs li:nth-child(3) .edu-paper img { --rot: -.7deg; }
.edu-docs li:nth-child(4) .edu-paper img { --rot: 1.8deg; }
.edu-cap { display: grid; gap: 2px; padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.edu-cap b { font-size: 15px; line-height: 1.3; }
.edu-cap > span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.edu-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.edu-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  background: rgba(255, 253, 251, .92); border: 1px solid var(--line); box-shadow: 0 6px 16px -8px rgba(40, 18, 28, .35);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
}
.edu-zoom .ico { width: 18px; height: 18px; }
@media (hover: hover) {
  .edu-doc:hover { transform: translateY(-4px); border-color: #DCC6BD; box-shadow: var(--shadow); }
  .edu-doc:hover .edu-paper img { transform: rotate(0deg) scale(1.03); }
  .edu-doc:hover .edu-zoom { opacity: 1; transform: none; }
}
@media (hover: none) { .edu-zoom { opacity: 1; transform: none; } }
.edu-doc:focus-visible .edu-zoom { opacity: 1; transform: none; }
.edu-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.edu-note .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }

@media (min-width: 1061px) {
  .edu-side { position: sticky; top: calc(var(--hdr) + 28px); }
}
@media (max-width: 1240px) {
  .edu-facts { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 1060px) {
  .edu-grid { grid-template-columns: 1fr; }
  .edu-side { max-width: 720px; }
  .edu-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
}
@media (max-width: 760px) {
  .edu-facts { grid-template-columns: 1fr; gap: 12px; }
  .edu-main::after { display: none; }
  .edu-tag { font-size: 11px; letter-spacing: .1em; }
  .edu-main h3 { max-width: none; }
  .edu-tl li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .edu-year { font-size: 20px; }
  .edu-docs {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 4px clamp(16px, 4vw, 48px) 14px; scroll-padding-inline: clamp(16px, 4vw, 48px);
  }
  .edu-docs::-webkit-scrollbar { display: none; }
  .edu-docs li { flex: 0 0 76%; scroll-snap-align: start; }
  .edu-doc { border-radius: 18px; }
  .edu-cap { padding: 12px 14px 14px; }
  .edu-badge { top: 10px; left: 10px; }
  .edu-zoom { top: 10px; right: 10px; width: 34px; height: 34px; }
}

/* лайтбокс документов */
html.lbox-lock { overflow: hidden; }
.lbox { position: fixed; inset: 0; z-index: 95; color: var(--on-dark); }
.lbox[hidden] { display: none; }
.lbox-backdrop { position: absolute; inset: 0; background: rgba(22, 16, 19, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .24s ease-out; }
.lbox.is-open .lbox-backdrop { opacity: 1; }
.lbox-box { position: absolute; inset: 0; outline: none; pointer-events: none; }
.lbox-box > * { pointer-events: auto; }
.lbox-stage {
  position: absolute; inset: 72px clamp(76px, 7vw, 132px) 108px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; transform: scale(.97); transition: opacity .24s ease-out, transform .28s cubic-bezier(.2, .8, .2, 1);
}
.lbox.is-open .lbox-stage { opacity: 1; transform: none; }
.lbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px; background: #fff; pointer-events: auto; touch-action: pan-y pinch-zoom;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .7); transition: opacity .18s ease-out;
}
.lbox-img.is-swap { opacity: 0; }
.lbox-cap { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(760px, calc(100% - 200px)); text-align: center; display: grid; gap: 4px; }
.lbox-cap b { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.lbox-cap span { font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }
.lbox-count { position: absolute; top: 26px; left: 28px; font-size: 13px; font-weight: 600; letter-spacing: .18em; color: var(--on-dark-2); }
.lbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--on-dark); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s, border-color .2s, transform .2s;
}
.lbox-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.lbox-btn:focus-visible { outline: 3px solid rgba(231, 189, 181, .7); outline-offset: 3px; }
.lbox-btn .ico { width: 22px; height: 22px; }
.lbox-x { top: 16px; right: 18px; width: 48px; height: 48px; }
.lbox-x:hover { transform: rotate(90deg); }
.lbox-prev, .lbox-next { top: 50%; margin-top: -40px; }
.lbox-prev { left: clamp(14px, 2vw, 36px); }
.lbox-next { right: clamp(14px, 2vw, 36px); }
.lbox-prev .ico { transform: rotate(180deg); }
@media (max-width: 760px) {
  .lbox-stage { inset: 70px 10px 132px; }
  .lbox-count { top: 30px; left: 18px; }
  .lbox-x { top: 14px; right: 12px; }
  .lbox-prev, .lbox-next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; width: 48px; height: 48px; }
  .lbox-prev { left: 12px; }
  .lbox-next { right: 12px; }
  .lbox-cap { bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 136px); }
  .lbox-cap b { font-size: 16.5px; }
  .lbox-cap span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .edu-doc, .edu-paper img, .lbox-stage, .lbox-img, .lbox-backdrop { transition: none; }
  .lbox-stage { transform: none; }
}

/* ---------- 13 Почему комфортно (тёмный, фото) ---------- */
.comfort-bg { position: absolute; inset: 0; z-index: 0; }
.comfort-bg img { width: 100%; height: 100%; object-fit: cover; }
.comfort-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 26, 28, .88), rgba(30, 26, 28, .94)); }
.comfort .card-dark { background: rgba(42, 36, 39, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: clamp(22px, 2vw, 32px); }
.comfort .card-dark h3 { font-size: clamp(22px, 1.7vw, 28px); margin: 14px 0 8px; }

/* ---------- 14 Отзывы ---------- */
.review { display: flex; flex-direction: column; gap: 16px; min-height: 300px; }
.review-quote { font-family: var(--serif); font-size: 64px; line-height: .6; color: var(--accent-soft); height: 30px; }
.review-text { font-size: 16.5px; color: var(--ink); flex: 1; }
.review-meta { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.review-meta .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; }
.review-meta b { display: block; color: var(--ink); font-size: 15px; }
.review.is-placeholder { border-style: dashed; background: rgba(255, 253, 251, .6); box-shadow: none; }
.review.is-placeholder .review-text { color: var(--muted); font-style: italic; }
.section-note { margin-top: 20px; font-size: 14.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.section-note .ico { width: 18px; height: 18px; color: var(--accent); }

/* ---------- 15 Для кого ---------- */
.seg-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.seg-card.is-main { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.seg-card.is-main h3 { color: var(--rose); }
.seg-card.is-main li { color: var(--on-dark-2); }
.seg-card.is-main .icon-box { background: rgba(231, 189, 181, .14); color: var(--rose); }
.seg-card .tag { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: rgba(231, 189, 181, .16); color: var(--rose); }
.seg-card h3 { font-family: var(--serif); font-size: clamp(26px, 2vw, 34px); color: var(--accent); }
.seg-card ul { display: grid; gap: 10px; }
.seg-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--muted); line-height: 1.45; }
.seg-card li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.seg-card .link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.seg-card.is-main .link { color: var(--rose); }
.seg-card .link .ico { width: 18px; height: 18px; transition: transform .2s; }
.seg-card .link:hover .ico { transform: translateX(3px); }

/* ---------- 16 Форматы ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.2vw, 36px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.price-card.is-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.price-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.price-card h3 { font-family: var(--serif); font-size: clamp(26px, 2vw, 34px); }
.price { font-family: var(--serif); font-size: clamp(40px, 3.4vw, 60px); line-height: 1; color: var(--accent); }
.price small { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.price-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.price-meta span { display: inline-flex; gap: 8px; align-items: center; }
.price-meta .ico { width: 18px; height: 18px; color: var(--accent); }
.price-card ul { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-card li { display: flex; gap: 10px; font-size: 15.5px; color: var(--muted); }
.price-card li .ico { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* ---------- 17 FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 980px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: #DCC4BE; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: clamp(17px, 1.2vw, 20px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.faq summary .pm .ico { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); font-size: 16px; max-width: 75ch; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--hdr) + 30px); }

/* ---------- 18 Финал (тёмный) ---------- */
.final { background:
  radial-gradient(800px 600px at 20% 80%, rgba(139, 58, 74, .3), rgba(139, 58, 74, 0) 70%),
  var(--dark); }
.final .form-card { background: var(--dark-2); border-color: var(--dark-line); box-shadow: none; }
.final .field > span { color: var(--on-dark-2); }
.final .input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--on-dark); }
.final .input::placeholder { color: rgba(246, 239, 235, .45); }
.final .check { color: var(--on-dark-2); }
.final .check a { color: var(--rose); }
.final .form-sub { color: var(--on-dark-2); }
.final-photo { position: relative; }
.final-photo .photo { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 110px); box-shadow: none; background: var(--dark-2); }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--dark-line); font-size: 15px; color: var(--on-dark-2); text-decoration: none; }
.contact b { display: block; color: var(--on-dark); font-weight: 600; }
.contact > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact .icon-box { width: 40px; height: 40px; }
.contact .icon-box .ico { width: 19px; height: 19px; }
a.contact:hover { border-color: rgba(231, 189, 181, .5); }
.final .stack { gap: clamp(14px, 1.9vh, 22px); }
.final .h2 { font-size: clamp(28px, 2.5vw, 48px); }
.final .form-card { padding: 22px; }
.final .btns { flex-wrap: nowrap; }
.final .btns .btn { flex: 1 1 0; white-space: nowrap; padding: 0 18px; }
.final .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.final .contact { padding: 10px 12px; font-size: 13.5px; line-height: 1.35; gap: 10px; }
.final .contact .icon-box { width: 34px; height: 34px; }
.final .contact .icon-box .ico { width: 16px; height: 16px; }
.final .todo { color: #F1D39B !important; background: rgba(241, 211, 155, .1); border-color: rgba(241, 211, 155, .4); }
.contacts-more { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; font-size: 14px; line-height: 1.4; }
.contacts-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(231, 189, 181, .45); text-underline-offset: 4px; }
.contacts-more a:hover { text-decoration-color: currentColor; }
.contacts-more .ico { width: 16px; height: 16px; fill: #E7BDB5; stroke: none; flex: none; }

/* ---------- Соцсети и профили ---------- */
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.social { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 600; line-height: 1; transition: border-color .2s, color .2s; }
.social svg { width: 17px; height: 17px; fill: currentColor; stroke: none; flex: none; }
.social:hover { border-color: var(--accent); }
.social:focus-visible { outline: 3px solid rgba(139, 58, 74, .45); outline-offset: 2px; }
.social.has-text { width: auto; padding: 0 14px 0 11px; border-radius: 999px; }
.social.has-text svg { width: 15px; height: 15px; }
.screen-dark .social, .footer .social { background: transparent; border-color: rgba(255, 255, 255, .18); color: var(--on-dark); }
.screen-dark .social svg, .footer .social svg { color: #E7BDB5; }
.screen-dark .social:hover, .footer .social:hover { border-color: rgba(231, 189, 181, .6); color: #fff; text-decoration: none; }
.screen-dark .social:focus-visible, .footer .social:focus-visible { outline-color: rgba(231, 189, 181, .7); }

/* ---------- Подвал ---------- */
.footer { background: #171416; color: rgba(246, 239, 235, .7); padding: 36px 0 110px; font-size: 14px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.footer a { color: rgba(246, 239, 235, .85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 761px) { .footer { padding-bottom: 36px; } }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 26, 28, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(640px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--card); border-radius: 26px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); transform: translateY(14px); transition: transform .3s; }
.modal.is-open .modal-box { transform: none; }
.modal-x { position: absolute; top: 16px; right: 16px; }
.modal h3 { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin-bottom: 12px; padding-right: 40px; }
.modal p + p { margin-top: 10px; }
.modal .creds { margin-top: 18px; }
.msg-links { display: grid; gap: 10px; margin-top: 18px; }
.msg-link { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.msg-link:hover { border-color: var(--accent); }
.msg-link small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.msg-link .brand { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.msg-link .brand svg { width: 22px; height: 22px; fill: currentColor; }
.brand-max { background: linear-gradient(135deg, #44CCFF, #5533EE 55%, #9933DD); }
.brand-tg { background: #27A7E7; }
.brand-wa { background: #25D366; }
.brand-ph { background: var(--accent); }

/* ---------- Мобильная нижняя панель и cookie ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45;
    display: flex; gap: 8px; padding: 8px; border-radius: 18px;
    background: rgba(255, 253, 251, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25);
    transform: translateY(140%); transition: transform .3s;
  }
  .mbar.is-on { transform: none; }
  .mbar .btn { flex: 1; min-height: 50px; padding: 0 14px; font-size: 15px; }
  .mbar .icon-btn { width: 50px; height: 50px; }
}
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 70; max-width: 420px; display: none; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--dark); color: var(--on-dark-2); font-size: 13.5px; line-height: 1.45; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); }
.cookie.is-on { display: flex; }
.cookie a { color: var(--rose); }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
@media (max-width: 760px) { .cookie { left: 10px; right: 10px; bottom: 82px; max-width: none; } }

/* ---------- Служебные страницы ---------- */
.page { padding: calc(var(--hdr) + 60px) 0 80px; min-height: 100svh; }
.page .hdr-in .nav { display: none; }
.doc { max-width: 860px; }
.doc h1 { font-family: var(--serif); font-size: clamp(32px, 3vw, 48px); line-height: 1.12; margin-bottom: 18px; }
.doc h2 { font-family: var(--serif); font-size: 24px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 10px; }
.doc ul { list-style: disc; padding-left: 22px; }
.thanks-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 30px 0; }
@media (max-width: 760px) { .thanks-steps { grid-template-columns: 1fr; } }

/* ---------- Появление ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Адаптив ---------- */
@media (max-height: 900px) and (min-width: 1061px) {
  .screen { padding-top: calc(var(--hdr) + 24px); padding-bottom: 36px; }
  .hero .h1 { font-size: clamp(34px, 2.9vw, 52px); }
  .vcard { min-height: 250px; }
  .feats { padding: 12px 0; }
  .book .stack { gap: 14px; }
  .book .lead { font-size: 16px; }
  .book .form-card { padding: 20px 22px; }
  .book .form { gap: 10px; }
  .book .input, .book .select { height: 48px; }
  .book .seg label { height: 40px; }
  .book .btn { min-height: 52px; }
  .book .form-sub { display: none; }
}
@media (max-width: 1240px) {
  .vcards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2)::after { display: none; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .feat:nth-child(3) { border-left: 0; padding-left: 0; }
  .quiz-layout, .res-layout { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1060px) {
  :root { --hdr: 74px; }
  .screen { min-height: 0; padding: calc(var(--hdr) + 36px) 0 64px; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev > .photo-col { order: -1; }
  .book-photo, .about-photo, .final-photo, .consult-photo { justify-self: center; width: min(100%, 520px); }
  .photo-tall, .book-photo .photo, .about-photo .photo, .final-photo .photo, .consult-photo .photo { max-height: none; }
  .hero { flex-direction: column; align-items: stretch; padding-top: 0; }
  .hero-photo { position: relative; width: 100%; height: min(78vh, 640px); margin-top: 60px; }
  .hero-photo .photo {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 62%, transparent 100%);
  }
  .hero-photo .photo::after, .hero-arrow, .hero-photo .float-script { display: none; }
  .hero-photo img { object-position: 68% center; }
  .hero-aside { position: static; width: auto; }
  .hero-photo .hero-card {
    position: absolute; left: auto; right: 16px; top: 43%; bottom: auto;
    display: flex; align-items: center; gap: 12px; width: max-content;
    padding: 12px 20px 12px 12px; font-size: 15px;
  }
  .hero-card .icon-box { width: 42px; height: 42px; margin: 0; }
  .hero-card-line { display: none; }
  .hero-text { max-width: none; margin-top: -40px; position: relative; z-index: 2; }
  .book-photo .float-card { left: -18px; }
  .terms { right: 10px; }
  .quiz-layout, .res-layout, .faq-layout { grid-template-columns: 1fr; }
  .quiz-side { display: none; }
  .faq-aside { position: static; }
  .grid-3, .prices { grid-template-columns: 1fr; }
  .grid-3 { max-width: 640px; }
  .result-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
  .flow::before { display: none; }
  .situation-bg::after { background: linear-gradient(180deg, rgba(30, 26, 28, .55) 0%, rgba(30, 26, 28, .92) 45%, rgba(30, 26, 28, .97) 100%); }
  .situation-bg img { height: 80vh; object-position: 78% center; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .situation .stack { padding-top: 22vh; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .screen { padding: calc(var(--hdr) + 26px) 0 52px; }
  .logo-text span { display: none; }
  .grid-2, .grid-4, .vcards, .steps, .pains, .wish-cards, .mini-feats, .program-text, .opts, .form-row, .contacts { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .feat { padding: 0 10px; font-size: 13.5px; }
  .feat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step::after { display: none; }
  .vcard { min-height: 0; }
  .vcard h3 { margin-top: 30px; }
  .flow { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .float-card { position: relative; inset: auto; margin: -40px 12px 0; max-width: none; }
  .book-photo .float-card { right: auto; left: auto; top: auto; margin-top: 14px; }
  #konsultaciya .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 0; }
  .hero .h1 { font-size: 30px; }
  .h2 { font-size: 29px; }
  .hero-photo { height: 54vh; }
  .hero .btns { grid-template-columns: 1fr; }
  .hero-photo .float-card { position: absolute; margin: 0; left: 12px; right: auto; bottom: auto; gap: 10px; font-size: 14px; padding: 10px 16px 10px 10px; }
  .hero-photo .float-card .icon-box { width: 36px; height: 36px; }
  .final .btns { flex-wrap: wrap; }
  .final .btns .btn { flex-basis: 100%; white-space: normal; padding: 0 16px; font-size: 16px; line-height: 1.25; text-align: center; }
  .final .contacts { grid-template-columns: 1fr; }
  .float-script { display: none; }
  .terms { position: relative; right: auto; bottom: auto; width: auto; margin: -50px 12px 0; }
  .result-item { grid-template-columns: 1fr; gap: 10px; }
  .faq summary { padding: 16px 18px; }
  .faq .ans { padding: 0 18px 18px; }
  .conclusion { align-items: flex-start; }
}

/* ---------- Раздел «Полезно» ---------- */
.blog-page { padding-top: calc(var(--hdr) + 40px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.post-cat {
  display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.blog-hero { max-width: 920px; display: grid; gap: 18px; margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-grid-main { margin-bottom: 64px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCC9C1; }
.post-card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 1.4vw, 24px); line-height: 1.2; }
.post-card p { flex: 1; font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.post-meta .ico { width: 16px; height: 16px; }
.post-meta .post-arrow { width: 20px; height: 20px; margin-left: auto; color: var(--accent); transition: transform .2s; }
.post-card:hover .post-arrow { transform: translateX(4px); }
.post-card.has-img { padding-top: 0; overflow: hidden; }
.post-img { display: block; margin: 0 -26px 6px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); }
.post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-img img { transform: scale(1.04); }
.art-cover { margin: 28px 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--accent-soft); box-shadow: var(--shadow-sm); }
.art-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 340px); gap: clamp(40px, 4vw, 80px); align-items: start; }
/* при .wrap 1820px (≥1800) колонка статьи вышла бы >1250px — сужаем контейнер только страницы статьи */
@media (min-width: 1800px) { .blog-page > .wrap:has(> .art-layout) { max-width: 1500px; } }
.art { min-width: 0; }
.art-title { margin: 18px 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3vw, 52px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.art-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.art-meta .ico { width: 18px; height: 18px; color: var(--accent); }
.art-author > span { display: flex; flex-direction: column; line-height: 1.3; }
.art-author b { color: var(--ink); font-size: 15px; }
.art-ava { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 18%; background: var(--accent-soft); }
.art-ava-lg { width: 72px; height: 72px; }
.art-short {
  margin: 30px 0 10px; padding: 22px 26px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); box-shadow: var(--shadow-sm);
}
.art-short b { display: block; margin-bottom: 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.art-short p { font-size: clamp(18px, .5vw + 12px, 19px); line-height: 1.6; color: var(--ink); }
.art-body { font-size: clamp(18px, .5vw + 12px, 19px); line-height: 1.72; color: #2E2A33; }
.art-body p { margin: 0 0 18px; }
.art-body h2 { margin: 46px 0 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2vw, 34px); line-height: 1.2; scroll-margin-top: 110px; }
.art-body h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 700; }
.art-body ul, .art-body ol { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.art-body ul li { position: relative; padding-left: 28px; }
.art-body ul li::before { content: ""; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.art-body ol { counter-reset: n; }
.art-body ol li { position: relative; padding-left: 44px; counter-increment: n; }
.art-body ol li::before {
  content: counter(n); position: absolute; left: 0; top: .2em; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1;
}
.art-body strong { color: var(--ink); }
.art-body a { color: var(--accent); text-underline-offset: 3px; }
.art-body blockquote {
  margin: 26px 0; padding: 22px 26px; border-radius: 18px;
  background: var(--accent-soft); color: var(--accent-h);
  font-family: var(--serif); font-size: clamp(19px, 1.35vw, 22px); line-height: 1.5;
}
.art-inline-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  margin: 34px 0; padding: 20px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.art-inline-cta b { display: block; font-size: 16.5px; line-height: 1.35; }
.art-inline-cta span:not(.icon-box) { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.art-inline-cta .btn { min-height: 48px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.art-faq { margin-top: 50px; }
.art-faq h2 { margin-bottom: 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2vw, 34px); scroll-margin-top: 110px; }
.faq-item { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { color: var(--accent); transition: transform .2s; }
.faq-item[open] summary .ico { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--muted); line-height: 1.65; }
.art-cta {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; align-items: center;
  margin-top: 50px; padding: clamp(26px, 3vw, 44px); border-radius: 28px;
  background: radial-gradient(620px 320px at 92% 0%, rgba(139, 58, 74, .6), transparent 70%), var(--dark); color: var(--on-dark);
}
.art-cta .eyebrow { color: var(--rose); }
.art-cta h2 { margin: 12px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.15; }
.art-cta p { color: var(--on-dark-2); }
.art-cta-actions { display: grid; gap: 12px; }
.art-cta-actions .btn { width: 100%; }
.art-cta-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--on-dark-2); }
.art-cta-note .ico { width: 16px; height: 16px; }
.blog-cta { margin: 0 0 96px; }
.art-author-box { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.art-author-box > div { display: flex; flex-direction: column; gap: 4px; }
.art-author-box b { font-family: var(--serif); font-weight: 500; font-size: 21px; }
.art-author-box span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.art-author-box a { font-size: 15px; font-weight: 600; color: var(--accent); }
.art-author-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.art-author-box .art-author-edu { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 4px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.art-author-edu .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.art-author-box .art-author-edu a { font-size: 14px; }
.art-author-box .socials { margin-top: 6px; gap: 6px; }
.art-author-box .social { width: 34px; height: 34px; }
.art-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.art-aside { position: sticky; top: 110px; display: grid; gap: 18px; }
.art-toc { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.art-toc b, .art-side-cta b { display: block; margin-bottom: 12px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.art-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.art-toc a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.art-toc a:hover { color: var(--accent); }
.art-side-cta { display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: var(--accent-soft); }
.art-side-cta b { margin-bottom: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.art-side-cta span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.art-side-cta .btn { min-height: 48px; }
.related { margin-top: 72px; padding: 72px 0 96px; background: var(--bg-2); }
.related .h2 { margin-bottom: 28px; }

@media (max-width: 1100px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-aside { display: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .blog-page { padding-top: calc(var(--hdr) + 20px); }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { padding: 22px; }
  .post-img { margin: 0 -22px 4px; }
  .art-cover { margin-top: 22px; border-radius: 18px; }
  .art-body, .art-short p { font-size: 17px; }
  .art-body h2 { margin-top: 36px; }
  .art-inline-cta { grid-template-columns: 1fr; }
  .art-cta { grid-template-columns: 1fr; border-radius: 22px; }
  .art-author-box { align-items: flex-start; }
  .related { margin-top: 48px; padding: 48px 0 110px; }
  .blog-cta { margin-bottom: 64px; }
}

/* consult popup */
.art-side-cta[data-popup] { cursor: pointer; transition: box-shadow .25s, transform .25s; }
.art-side-cta[data-popup]:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.art-inline-actions { display: grid; gap: 8px; justify-items: center; }
.art-inline-actions .btn { width: 100%; color: #fff; text-decoration: none; }
.art-inline-link { font-size: 14px; font-weight: 600; color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 760px) { .art-inline-actions { justify-items: stretch; text-align: center; } }

html.cpop-lock { overflow: hidden; }
html.cpop-gutter { scrollbar-gutter: stable; }
.cpop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cpop[hidden] { display: none; }
.cpop-backdrop {
  position: absolute; inset: 0; background: rgba(28, 20, 24, .5);
  backdrop-filter: blur(10px) saturate(.9); -webkit-backdrop-filter: blur(10px) saturate(.9);
  opacity: 0; transition: opacity .24s ease-out;
}
.cpop.is-open .cpop-backdrop { opacity: 1; }
.cpop-box {
  position: relative; width: min(1100px, 100%); border-radius: 28px; overflow: hidden; overflow: clip; background: var(--card); outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 2px 6px rgba(40, 18, 28, .06), 0 30px 70px -24px rgba(40, 18, 28, .4), 0 80px 140px -50px rgba(40, 18, 28, .5);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .24s ease-out, transform .26s cubic-bezier(.2, .8, .2, 1);
}
.cpop.is-open .cpop-box { opacity: 1; transform: none; }
.cpop-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  border: 1px solid var(--line); background: rgba(255, 253, 251, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(40, 18, 28, .35); transition: transform .2s, color .2s, border-color .2s;
}
.cpop-x:hover { color: var(--accent); border-color: #DCC9C1; transform: rotate(90deg); }
.cpop-x .ico { width: 20px; height: 20px; }
.cpop-scroll {
  --cpop-h: min(880px, calc(100svh - 48px));
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start;
  max-height: var(--cpop-h); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #D9C9C2 transparent;
}

/* фото */
.cpop-media { position: sticky; top: 0; height: var(--cpop-h); min-height: 0; overflow: hidden; background: var(--dark); color: #fff; }
.cpop-photo { position: absolute; inset: 0; margin: 0; }
.cpop-main { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: opacity .16s ease-out, transform .5s ease-out; }
.cpop-main.is-swap { opacity: 0; transform: scale(1.02); }
.cpop-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 22, 26, .28) 0%, transparent 22%, transparent 48%, rgba(30, 22, 26, .55) 72%, rgba(30, 22, 26, .9) 100%);
}
.cpop-photo figcaption { position: absolute; left: 28px; right: 28px; bottom: 112px; z-index: 1; display: grid; gap: 4px; }
.cpop-photo figcaption b { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.cpop-photo figcaption span { font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.cpop-photo figcaption .cpop-edu {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 6px; padding: 5px 12px 5px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #fff;
}
.cpop-edu .ico { width: 15px; height: 15px; color: var(--rose); }
.cpop-badge {
  position: absolute; bottom: 226px; left: 22px; right: 22px; z-index: 1; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 44px);
  padding: 10px 14px 10px 10px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink);
  background: rgba(255, 253, 251, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .45);
}
.cpop-badge .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.cpop-thumbs { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; display: flex; gap: 10px; }
.cpop-thumb {
  width: 62px; height: 62px; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; flex: none;
  border: 2px solid rgba(255, 255, 255, .35); background: var(--dark-2); opacity: .78; transition: opacity .2s, border-color .2s, transform .2s;
}
.cpop-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.cpop-thumb:hover { opacity: 1; transform: translateY(-2px); }
.cpop-thumb.is-active { opacity: 1; border-color: var(--rose); }

/* текст и форма */
.cpop-body { display: grid; gap: 20px; padding: 44px 48px 36px; min-width: 0; }
.cpop-eyebrow { color: var(--accent); padding-right: 56px; }
.cpop-title { margin-top: -8px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 2.6vw, 42px); line-height: 1.08; letter-spacing: -.015em; }
.cpop-title em { font-style: normal; color: var(--accent); }
.cpop-lead { margin-top: -6px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.cpop-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cpop-facts li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 14px 9px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.2; }
.cpop-facts .ico { width: 18px; height: 18px; color: var(--accent); }
.cpop-plan { padding: 24px; border-radius: 22px; background: linear-gradient(160deg, #F8EDEA 0%, var(--bg) 100%); border: 1px solid #EEDFD9; }
.cpop-plan h3 { margin-bottom: 16px; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; }
.cpop-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; list-style: none; counter-reset: cp; }
.cpop-steps li { position: relative; display: grid; gap: 4px; padding-left: 44px; counter-increment: cp; }
.cpop-steps li::before {
  content: "0" counter(cp); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid #E6D3CC;
  color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.cpop-steps b { font-size: 15.5px; line-height: 1.3; padding-top: 5px; }
.cpop-steps span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cpop-prep { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #E2CFC8; font-size: 14px; line-height: 1.5; color: var(--muted); }
.cpop-prep .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.cpop-form { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.cpop-form-head { display: grid; gap: 2px; }
.cpop-form-head b { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; }
.cpop-form-head span { font-size: 14.5px; color: var(--muted); }
.cpop-form .field > span i { font-style: normal; font-weight: 500; opacity: .75; }
.cpop-form .seg label { height: 46px; }
.cpop-textarea { height: auto; min-height: 92px; padding: 13px 16px; line-height: 1.5; resize: vertical; }
.cpop-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cpop-form .form-sub { text-align: left; }
.cpop-sos { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cpop-sos .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.cpop-sos b { color: var(--ink); }

@media (max-width: 1100px) {
  .cpop-scroll { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .cpop-body { padding: 40px 34px 30px; }
  .cpop-steps { grid-template-columns: 1fr; }
  .cpop-badge { bottom: 276px; }
}
@media (max-width: 900px) {
  .cpop-box { width: min(640px, 100%); }
  .cpop-scroll { grid-template-columns: 1fr; }
  .cpop-media { position: relative; height: 300px; }
  .cpop-photo figcaption { bottom: 24px; right: 140px; }
  .cpop-photo figcaption b { font-size: 26px; }
  .cpop-badge { display: none; }
  .cpop-thumbs { left: auto; right: 20px; bottom: 22px; gap: 6px; }
  .cpop-thumb { width: 46px; height: 46px; border-radius: 12px; }
  .cpop-thumb:nth-child(n+4) { display: none; }
  .cpop-eyebrow { padding-right: 0; }
}
@media (max-width: 760px) {
  .cpop { align-items: flex-end; padding: 0; }
  .cpop-box { width: 100%; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: opacity .2s ease-out, transform .3s cubic-bezier(.2, .8, .2, 1); }
  .cpop-scroll { --cpop-h: calc(100svh - 16px); }
  .cpop-box::before { content: ""; position: absolute; top: 8px; left: 50%; z-index: 3; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, .7); }
  .cpop-x { top: 14px; right: 14px; }
  .cpop-media { height: 250px; }
  .cpop-photo figcaption { left: 20px; bottom: 20px; right: 20px; }
  .cpop-photo figcaption b { font-size: 24px; }
  .cpop-photo figcaption span { font-size: 13.5px; }
  .cpop-thumbs { left: 16px; right: auto; top: 22px; bottom: auto; }
  .cpop-thumb:nth-child(n+4) { display: block; }
  .cpop-thumb { width: 40px; height: 40px; border-radius: 10px; }
  .cpop-body { gap: 18px; padding: 24px 18px calc(26px + env(safe-area-inset-bottom)); }
  .cpop-title { font-size: 30px; }
  .cpop-lead { font-size: 15.5px; }
  .cpop-facts li { padding: 7px 12px 7px 9px; font-size: 13px; }
  .cpop-plan { padding: 20px 18px; border-radius: 18px; }
  .cpop-plan h3, .cpop-form-head b { font-size: 21px; }
  .cpop-form .seg label { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cpop-backdrop, .cpop-box, .cpop-main, .cpop-x, .cpop-thumb { transition: opacity .15s linear; }
  .cpop-box, .cpop-main.is-swap { transform: none; }
}

/* talks gallery */
.talks-grid {
  display: grid; gap: clamp(12px, 1.2vw, 20px); margin: 0; padding: 0; list-style: none;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(220px, 17.5vw, 330px));
  grid-template-areas: "a b c e" "a b d e";
}
.talks-a { grid-area: a; }
.talks-b { grid-area: b; }
.talks-c { grid-area: c; }
.talks-d { grid-area: d; }
.talks-e { grid-area: e; }
.talks-item { min-width: 0; min-height: 0; }
.talks-card {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: left; color: #fff;
  border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #EADBD3, #D9C6BC);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, var(--shadow-sm);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}
.talks-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.talks-a img { object-position: 50% 30%; }
.talks-b img { object-position: 8% 50%; }
.talks-c img { object-position: 50% 12%; }
.talks-d img { object-position: 50% 30%; }
.talks-e img { object-position: 62% 50%; }
.talks-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 20, 24, 0) 52%, rgba(30, 20, 24, .2) 70%, rgba(30, 20, 24, .66) 100%);
}
.talks-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: grid; gap: 4px; text-shadow: 0 1px 12px rgba(20, 10, 14, .35); }
.talks-cap b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.22; letter-spacing: -.005em; }
.talks-cap > span { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.talks-a .talks-cap { left: 28px; right: 28px; bottom: 26px; gap: 8px; }
.talks-a .talks-cap b { font-size: clamp(22px, 1.9vw, 34px); max-width: 24ch; }
.talks-a .talks-cap > span { order: -1; }
.talks-zoom {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--accent);
  background: rgba(255, 253, 251, .92); box-shadow: 0 6px 16px -8px rgba(40, 18, 28, .45);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
}
.talks-zoom .ico { width: 18px; height: 18px; }
.talks-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.talks-card:focus-visible .talks-zoom { opacity: 1; transform: none; }
@media (hover: hover) {
  .talks-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, var(--shadow); }
  .talks-card:hover img { transform: scale(1.05); }
  .talks-card:hover .talks-zoom { opacity: 1; transform: none; }
}
@media (hover: none) { .talks-zoom { opacity: 1; transform: none; width: 34px; height: 34px; } }
.lbox[data-group="talks"] .lbox-img { border-radius: 16px; background: #2A2226; }
/* в окне записи 5 миниатюр: на узкой колонке фото (901–1100px) уменьшаем их, чтобы ряд не выходил за край */
@media (min-width: 901px) and (max-width: 1100px) {
  .cpop-thumbs { gap: 8px; }
  .cpop-thumb { width: 50px; height: 50px; border-radius: 12px; }
}

@media (max-width: 1060px) {
  .talks-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, clamp(220px, 36vw, 320px)) clamp(240px, 40vw, 340px);
    grid-template-areas: "a b" "a c" "d e";
  }
  .talks-b img { object-position: 30% 22%; }
}
@media (max-width: 760px) {
  .talks-grid { gap: 10px; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e"; }
  .talks-item { aspect-ratio: 3 / 4; }
  .talks-a { aspect-ratio: 4 / 4.6; }
  .talks-card { border-radius: 18px; }
  .talks-cap { left: 14px; right: 14px; bottom: 12px; }
  .talks-cap b { font-size: 15px; }
  .talks-a .talks-cap { left: 18px; right: 18px; bottom: 18px; gap: 6px; }
  .talks-a .talks-cap b { font-size: 19px; }
  .talks-a .talks-cap > span { font-size: 11.5px; }
  .talks-zoom { top: 10px; right: 10px; }
  .talks-b img { object-position: 28% 50%; }
  .talks-d img { object-position: 46% 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .talks-card, .talks-card img, .talks-zoom { transition: none; }
}

