/* Дизайн «Bento»: карточки разного размера, крупный Unbounded, мягкие пастельные плитки. */
:root {
  --bg: #ECEEF2;
  --card: #FFFFFF;
  --blush: #F4E2E4;
  --powder: #DCE5F2;
  --mint: #DCEDE3;
  --lilac: #E5E1F1;
  --sand: #F3ECE0;
  --ink: #1E2330;
  --soft: #535A6B;
  --pen: #364C9C;

  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --r: 28px;
  --gap: 14px;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.03em; line-height: 1.04; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--powder); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gap); }
.hand { font-family: var(--hand); font-weight: 600; color: var(--pen); }

/* Кнопки — отклик в момент нажатия */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font: 500 16px/1 var(--sans);
  border: 0; cursor: pointer; transition: transform 160ms var(--ease), background-color 180ms ease;
}
.btn:hover { background: var(--pen); }
.btn:active { transform: scale(0.97); }
.btn.soft { background: var(--bg); color: var(--ink); }
.btn.soft:hover { background: var(--powder); }
.btn.white { background: #fff; color: var(--ink); }
.btn.white:hover { background: var(--blush); }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--pen) 35%, transparent); transition: text-decoration-color 180ms ease, color 180ms ease; }
.link:hover { color: var(--pen); text-decoration-color: var(--pen); }

/* Плавающая навигация */
.top { position: sticky; top: 10px; z-index: 20; padding: 10px var(--gap) 0; }
.top .bar {
  max-width: 1252px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 8px 30px -18px rgba(30, 35, 48, .4);
}
.top .bar { position: relative; }
.top .brand { font: 500 15px var(--display); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; margin-right: auto; }
.top .btn .short { display: none; }
.top nav { display: flex; gap: 2px; align-items: center; margin-right: -14px; }
.burger { display: none; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: background-color 180ms ease, transform 160ms var(--ease); }
.burger:hover { background: var(--powder); }
.burger:active { transform: scale(0.94); }
.burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 220ms var(--ease), opacity 160ms ease; }
.top.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top.open .burger i:nth-child(2) { opacity: 0; }
.top.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.top nav a:not(.btn) { text-decoration: none; font-size: 14px; padding: 10px 14px; border-radius: 999px; color: var(--soft); transition: background-color 180ms ease, color 180ms ease; }
.top nav a:not(.btn):hover, .top nav a[aria-current] { background: var(--bg); color: var(--ink); }

/* Карточки */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.card { background: var(--card); border-radius: var(--r); padding: clamp(22px, 2.4vw, 34px); position: relative; overflow: hidden; transition: transform 500ms var(--spring), box-shadow 300ms ease; }
.card.hover:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(30, 35, 48, .45); }
.card.hover:active { transform: translateY(-1px) scale(0.99); }
.tag { display: inline-block; font: 500 13px var(--sans); color: var(--soft); background: var(--bg); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px; }
.on-tint .tag, .tag.light { background: rgba(255, 255, 255, .62); }

/* ===== Первый экран ===== */
.hero { padding-top: 22px; }
.hero .grid { grid-template-areas:
  "h h h h h h h p p p p p"
  "t t t t c c c p p p p p"
  "a a a a s s s s q q q q"; }
.c-head { grid-area: h; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.c-head h1 { font-size: clamp(30px, 3.9vw, 58px); font-weight: 700; line-height: 1.06; }
.c-head .lead { font-size: 19px; max-width: 36ch; margin: 22px 0 28px; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.c-port { grid-area: p; padding: 0; min-height: 560px; background: var(--lilac); }
.c-port img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 30%; transition: transform 1.2s var(--ease); }
.c-port:hover img { transform: scale(1.03); }
.c-port .hello { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; padding: 18px 20px; }
.c-port .hi { font: 600 32px/1 var(--hand); color: var(--pen); margin: 0 0 6px; }
.c-port .hello p:last-child { margin: 0; font-size: 15px; color: var(--soft); }
.c-port .hello .link { color: var(--pen); white-space: nowrap; }

.c-thought { grid-area: t; background: var(--blush); min-height: 230px; cursor: pointer; }
.c-thought .th {
  font: 500 21px/1.3 var(--display); letter-spacing: -0.02em;
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: var(--w, 0%) 2px; background-repeat: no-repeat; background-position: 0 55%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 600ms var(--ease) 200ms;
}
.c-thought .rf { font: 600 32px/1.05 var(--hand); color: var(--pen); margin: 14px 0 0; transform: rotate(-1.5deg); transform-origin: left; }
.c-thought .body { transition: opacity 260ms ease, filter 260ms ease; }
.c-thought .body.swap { opacity: 0; filter: blur(4px); }
.c-thought .dots { position: absolute; right: 24px; top: 30px; display: flex; gap: 5px; }
.c-thought .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(30, 35, 48, .2); transition: background-color 300ms ease, transform 300ms var(--spring); }
.c-thought .dots i.on { background: var(--ink); transform: scale(1.3); }

.c-cost { grid-area: c; background: var(--powder); display: flex; flex-direction: column; justify-content: space-between; }
.num { font: 700 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.c-cost .num { font-size: clamp(30px, 3.1vw, 46px); }
.c-cost p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.c-art { grid-area: a; padding: 0; min-height: 260px; }
.c-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.c-art:hover img { transform: scale(1.05); }
.c-art .lbl { position: absolute; left: 16px; right: 16px; bottom: 16px; width: fit-content; background: rgba(255, 255, 255, .9); border-radius: 16px; padding: 8px 14px; font-size: 13px; line-height: 1.35; }
.c-plan { grid-area: s; background: var(--mint); }
.c-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-plan li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.c-plan li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .5); }
.c-plan .total { margin: 18px 0 0; font: 500 15px var(--display); }
.c-slot { grid-area: q; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.c-slot .tag { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.c-slot .when { font: 500 clamp(24px, 2.4vw, 34px)/1.12 var(--display); letter-spacing: -0.03em; min-height: 2.2em; }
.c-slot .sub { margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: 14px; }
.c-slot .actions { margin-top: 18px; }

/* ===== Разделы ===== */
.section { padding-top: clamp(56px, 7vw, 96px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 22px; padding: 0 6px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 64px); font-weight: 700; }
.sec-head p { max-width: 42ch; color: var(--soft); margin: 0; }

/* Запросы */
.req .grid { grid-auto-rows: minmax(150px, auto); }
.tile { display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; border: 0; text-align: left; font: inherit; color: inherit; }
.tile h3 { font-size: clamp(22px, 2.2vw, 32px); }
.tile p { margin: 12px 0 0; color: var(--soft); font-size: 15px; max-width: 36ch; }
.tile .voice { color: var(--ink); font-weight: 500; }
/* Мысль «пишется» от руки: при прокрутке — с паузой, когда плитка встала на место; при наведении — сразу */
.tile .more {
  font: 600 24px/1.1 var(--hand); color: var(--pen); margin-top: 12px;
  opacity: 0; transform: translateY(4px); clip-path: inset(-20% 100% -20% 0);
  transition: opacity 300ms ease, transform 500ms var(--spring), clip-path 1100ms var(--ease);
}
.tile.show .more, .tile:hover .more, .tile:focus-visible .more { opacity: 1; transform: none; clip-path: inset(-20% 0 -20% 0); }
.tile.show .more { transition-delay: 650ms; }
.tile.show:hover .more { transition-delay: 0ms; }
.no-js .tile .more { opacity: 1; transform: none; clip-path: none; }
.t1 { grid-column: span 5; grid-row: span 2; background: var(--blush); }
.t1 h3 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 700; }
.t2 { grid-column: span 4; background: var(--powder); }
.t3 { grid-column: span 3; background: var(--sand); }
.t4 { grid-column: span 3; background: var(--mint); }
.t5 { grid-column: span 4; background: var(--lilac); }
.t6 { grid-column: span 7; }

/* Процесс */
.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.step .n { font: 700 72px/0.9 var(--display); color: var(--bg); -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -0.04em; }
.step h3 { font-size: 22px; margin: 18px 0 10px; }
.step p { margin: 0; color: var(--soft); font-size: 15px; }
.pill { display: inline-block; margin-top: 16px; font: 500 13px var(--sans); background: var(--bg); padding: 6px 12px; border-radius: 999px; }
.progress { margin-top: var(--gap); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.progress .track { flex: 1 1 260px; height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--powder), var(--pen)); border-radius: 999px; transition: width 1.6s var(--ease); }
.progress.in .track i { width: 100%; }
.progress b { font: 500 16px var(--display); }
.progress .hand { font-size: 26px; }

.wave { margin-top: var(--gap); background: var(--lilac); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 40px; align-items: start; }
.wave .tag { background: rgba(255, 255, 255, .62); }
.wave h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; }
.wave p { color: var(--soft); max-width: 58ch; }
@media (max-width: 1000px) { .wave { grid-template-columns: minmax(0, 1fr); } }
.myths { background: var(--mint); }
.myth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--soft); max-width: 58ch; }
.myth-list b { color: var(--ink); font-weight: 500; }

/* Стоимость и обо мне */
.p1 { grid-column: span 4; background: var(--powder); }
.p2 { grid-column: span 4; background: var(--blush); }
.p1 .num, .p2 .num { margin: 8px 0 12px; font-size: clamp(42px, 4.4vw, 64px); }
.p1 p, .p2 p { color: var(--soft); margin: 0; font-size: 15px; }
.p3 { grid-column: span 4; display: flex; flex-direction: column; justify-content: center; }
.p3 b { font: 500 18px var(--display); display: block; margin-bottom: 8px; }
.p3 p { margin: 0; color: var(--soft); font-size: 15px; }
.about { grid-column: span 12; display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: center; }
.about .ava { width: 220px; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--lilac); }
.about .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 34% 25%; }
.about .txt p { margin-bottom: 12px; }
.about .sign { font: 600 40px/1 var(--hand); color: var(--pen); margin: 8px 0 2px; }
.about .role { font-size: 14px; color: var(--soft); margin: 0; }
.about .edu { background: var(--bg); border-radius: 20px; padding: 22px; font-size: 15px; }
.about-solo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
.about .edu b { display: block; font: 700 44px/1 var(--display); letter-spacing: -0.04em; margin-bottom: 8px; }

/* Статьи на главной */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; text-decoration: none; min-height: 220px; }
.post-card h3 { font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.post-card p { margin: 0; color: var(--soft); font-size: 15px; }
.post-card .go { margin-top: auto; padding-top: 18px; font: 600 22px var(--hand); color: var(--pen); }
.posts-grid .post-card:nth-child(3n+1) { background: var(--sand); }
.posts-grid .post-card:nth-child(3n+2) { background: var(--mint); }
.posts-grid .post-card:nth-child(3n+3) { background: var(--lilac); }

/* ===== Запись (виджет) ===== */
.booking-head .messengers { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--soft); }
.booker { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--gap); }
.booker > .card { margin: 0; }
.b-title { font: 500 13px var(--sans); color: var(--soft); background: var(--bg); border-radius: 999px; padding: 6px 12px; display: inline-block; margin: 0 0 16px; letter-spacing: 0; }
.b-status { color: var(--soft); max-width: 44ch; }
.b-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.b-day {
  flex: none; scroll-snap-align: start; width: 74px; padding: 12px 0; border-radius: 20px; border: 0; background: var(--bg);
  cursor: pointer; display: grid; justify-items: center; gap: 2px; font: 500 13px/1.3 var(--sans); color: var(--ink);
  transition: transform 300ms var(--spring), background-color 180ms ease;
}
.b-day b { font: 700 26px/1 var(--display); letter-spacing: -0.03em; }
.b-day:hover { background: var(--powder); }
.b-day[aria-pressed="true"] { background: var(--ink); color: #fff; transform: translateY(-3px); }
.b-day:active, .b-time:active { transform: scale(0.96); }
.b-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 16px; }
.b-time { min-height: 50px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; font: 500 16px/1 var(--sans); font-variant-numeric: tabular-nums; transition: transform 300ms var(--spring), background-color 180ms ease; }
.b-time:hover { background: var(--powder); }
.b-time[aria-pressed="true"] { background: var(--pen); color: #fff; }
.b-tz { margin: 16px 0 0; font-size: 14px; color: var(--soft); }
.b-form { background: var(--lilac); display: grid; gap: 14px; align-content: start; }
.b-form .b-title { background: rgba(255, 255, 255, .62); justify-self: start; margin-bottom: 0; }
.b-chosen { margin: 0; color: var(--soft); }
.b-chosen.on { color: var(--pen); font: 500 17px/1.35 var(--display); letter-spacing: -0.02em; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; color: var(--soft); padding: 0; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 18px; border: 2px solid transparent; border-radius: 18px; background: rgba(255, 255, 255, .85); color: var(--ink); font: 400 16px/1 var(--sans); transition: border-color 180ms ease, background-color 180ms ease; }
.field input:focus { outline: none; border-color: var(--pen); background: #fff; }
.seg { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.field .seg input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 14px; transition: background-color 180ms ease; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--pen); outline-offset: 2px; }
.b-hint { margin: 0; font-size: 14px; color: var(--soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check a { color: var(--pen); }
.b-error { margin: 0; color: #A33A3A; font-size: 14px; }
.b-error:empty { display: none; }
.b-form .btn { justify-self: start; }
.b-done { grid-column: 1 / -1; text-align: center; padding: clamp(36px, 5vw, 64px) 16px; }
.b-done .hand { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; margin-bottom: 12px; }
.b-done p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.actions.center { justify-content: center; }
.booker [hidden], .b-done[hidden] { display: none !important; }

/* Вопросы */
.faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.faq b { display: block; font: 500 18px/1.25 var(--display); letter-spacing: -0.02em; margin-bottom: 10px; }
.faq p { margin: 0; color: var(--soft); font-size: 15px; }

/* ===== Подвал ===== */
.foot { padding: clamp(56px, 7vw, 96px) 0 var(--gap); }
.end { background: var(--ink); color: #fff; border-radius: var(--r); padding: clamp(28px, 4vw, 56px); }
.end .big { font: 700 clamp(36px, 6vw, 92px)/1 var(--display); letter-spacing: -0.04em; max-width: 12ch; margin: 0 0 32px; }
.end .row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.end .row a { text-decoration: none; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 15px; transition: background-color 180ms ease; }
.end .row a:hover { background: rgba(255, 255, 255, .2); }
.end .small { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.6; max-width: 80ch; display: grid; gap: 6px; }
.end .small p { margin: 0; }
.end .legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.end .legal a { color: rgba(255, 255, 255, .85); }

/* ===== Внутренние страницы ===== */
.page { padding-top: 22px; }
.page-card { background: var(--card); border-radius: var(--r); padding: clamp(24px, 5vw, 72px); }
.page-head h1 { font-size: clamp(36px, 5.4vw, 76px); font-weight: 700; }
.page-head p { font-size: 19px; color: var(--soft); max-width: 46ch; margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--bg); text-decoration: none; font-size: 14px; transition: background-color 180ms ease, transform 160ms var(--ease); }
.chips a:hover { background: var(--powder); }
.chips a:active { transform: scale(0.97); }
.cat-block { margin-top: clamp(36px, 5vw, 64px); scroll-margin-top: 100px; }
.cat-block h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 18px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.posts a { display: block; height: 100%; text-decoration: none; background: var(--bg); border-radius: 22px; padding: 24px; transition: transform 400ms var(--spring), background-color 180ms ease; }
.posts a:hover { transform: translateY(-3px); background: var(--powder); }
.posts h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.posts p { margin: 0; color: var(--soft); font-size: 15px; }
.posts .meta { margin-top: 10px; font-size: 13px; }

.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article { max-width: 720px; }
.article header { padding: 20px 0 36px; }
.article h1 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; line-height: 1.05; }
.article .lead { font-size: 20px; line-height: 1.45; margin: 22px 0 0; color: var(--soft); }
.article .byline { margin: 18px 0 0; font-size: 14px; color: var(--soft); }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.7em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--pen); }
.prose a { color: var(--pen); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 22px 28px; background: var(--blush); border-radius: 22px; font: 600 32px/1.15 var(--hand); color: var(--pen); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.4em 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--bg); }
.prose .fig { margin: 2em 0; }
.prose .fig img { width: 100%; border-radius: 22px; background: var(--bg); }
.prose .fig figcaption { margin-top: 10px; font-size: 13px; color: var(--soft); }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--soft); max-width: 44ch; }
.topic-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--gap); padding: 0 6px; }
.topic-links span { font-size: 14px; color: var(--soft); margin-right: 4px; }
.topic-links a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--card); transition: background-color 180ms ease, transform 160ms var(--ease); }
.topic-links a:hover { background: var(--powder); }
.topic-links a:active { transform: scale(0.97); }
.callout { margin: 48px 0 0; background: var(--lilac); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); }
.callout h2 { font-size: 26px; margin-bottom: 12px; }
.callout p { max-width: 40ch; margin-bottom: 22px; color: var(--soft); }
.related { margin-top: 48px; }
.related h2 { font-size: 24px; margin-bottom: 18px; }
.doc h1 { font-size: clamp(28px, 3.6vw, 44px); }
.doc .prose { font-size: 16px; }
.doc .prose h2 { font-size: 21px; }

/* Появление */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity 700ms var(--ease), transform 900ms var(--spring); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ===== Планшет и телефон ===== */
@media (max-width: 1000px) {
  .hero .grid { grid-template-areas: "h h h h h h h h h h h h" "p p p p p p p p p p p p" "t t t t t t c c c c c c" "q q q q q q s s s s s s" "a a a a a a a a a a a a"; }
  .c-port { min-height: 520px; }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: span 6; grid-row: auto; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p1, .p2, .p3 { grid-column: span 12; }
  .about { grid-template-columns: minmax(0, 1fr); } .about .ava { width: 160px; }
  .booker, .faq, .posts-grid { grid-template-columns: minmax(0, 1fr); }
  /* Меню прячется под кнопку с тремя полосками */
  .top .bar { gap: 8px; }
  .burger { display: flex; }
  .top nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-radius: 24px; padding: 8px; box-shadow: 0 18px 40px -20px rgba(30, 35, 48, .45);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 180ms ease, transform 260ms var(--ease), visibility 0s 260ms;
  }
  .top.open nav { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 260ms var(--ease); }
  .top nav a:not(.btn) { font-size: 16px; padding: 14px 18px; color: var(--ink); border-radius: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --gap: 10px; --r: 24px; }
  .hero .grid { grid-template-areas: "h" "p" "t" "c" "q" "s" "a"; grid-template-columns: minmax(0, 1fr); }
  .req .grid { grid-template-columns: minmax(0, 1fr); }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: auto; }
  .steps-row, .posts { grid-template-columns: minmax(0, 1fr); }
  .c-head { min-height: auto; }
  .c-port { min-height: 600px; }
  .c-port img { object-position: 34% 0%; }
  .c-port .hello { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .c-port .hi { font-size: 28px; }
  .c-port .hello p:last-child { font-size: 14px; line-height: 1.45; }
  .top .bar { padding: 6px 6px 6px 18px; }
  .top .brand { font-size: 13px; }
}
@media (max-width: 380px) {
  .top .bar { padding-left: 14px; gap: 6px; }
  .top .brand { font-size: 12px; }
  .top .btn { padding: 0 14px; font-size: 13px; }
}
@media (max-width: 340px) {
  .top .btn .long { display: none; }
  .top .btn .short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}
