:root {
  --ink: #26064b;
  --ink-deep: #1b112e;
  --violet: #5000ed;
  --lav: #ebdfff;
  --lav-soft: #f0e5fd;
  --coral: #ff696d;
  --coral-hi: #ff8588;
  --paper: #fcfaf8;
  --muted: #685775;
  --line: #d9cbea;
  --on-dark: #d2c4e1;
  --line-dark: #ffffff2b;
  --sans: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius-card: 24px;
  --radius-ctl: 12px;
  --header-height: 72px;
  --section-pad: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.header :focus-visible, .hero :focus-visible, .notes-section :focus-visible, .catalog :focus-visible, .contact :focus-visible, .footer :focus-visible { outline-color: var(--coral); }
#main:focus, #preview-title:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
em { font-style: normal; color: var(--violet); }
[hidden] { display: none !important; }
.sprite { position: absolute; }
.todo { padding: 0 .3em; border-radius: 4px; background: #ffe98a; color: #3a2a00; outline: 1px dashed #b38f00; outline-offset: -1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.icon { width: 1em; height: 1em; flex: none; }
.wrap { width: min(1160px, 100% - clamp(32px, 10.4vw, 96px)); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 30; padding: 12px; border-radius: 8px; background: white; color: var(--ink); }
.skip:focus { top: 10px; }

.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.notes-section .section-label, .catalog .section-label, .contact .section-label { color: var(--on-dark); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-ctl); background: var(--coral); color: var(--ink); font-size: 16px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-align: center; transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s; }
.button .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.button--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.button--sm .icon { width: 16px; height: 16px; }
.button--ghost { background: transparent; border-color: #ffffff59; color: var(--paper); }
.button--block { width: 100%; }
.button--pill { min-height: 50px; border-radius: 999px; }
.button--pill.button--sm { min-height: 44px; }
.button--pill:has(.button__arrow) { gap: 10px; padding: 0 22px 0 26px; }
.button--pill.button--sm:has(.button__arrow) { gap: 8px; padding: 0 16px 0 20px; }
.button--pill.button--block { justify-content: space-between; }
.button__arrow { display: inline-grid; place-items: center; flex: none; color: inherit; }
.button--ghost .button__arrow { color: var(--coral); }
.button .button__arrow .icon { width: 16px; height: 16px; }
.button:active { transform: translateY(1px); }
@media (hover: hover) {
  .button:hover { background: var(--coral-hi); box-shadow: 0 10px 28px -10px #ff696db3; }
  .button:hover .icon { transform: translateX(3px); }
  .button:hover .icon:has([href="#i-arrow-ur"]) { transform: translate(2px, -2px); }
  .button--ghost:hover { background: #ffffff14; border-color: var(--paper); box-shadow: none; }
}

/* Header */
.header { position: sticky; top: 0; z-index: 20; height: var(--header-height); border-bottom: 1px solid #ffffff1f; background: #26064bf0; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); color: var(--paper); transition: background-color .25s, border-color .25s; }
.js .header:not(.is-scrolled, .is-open) { border-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header.is-open { background: var(--ink); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; gap: .26em; flex-shrink: 0; white-space: nowrap; font-size: 21px; line-height: .95; font-weight: 800; letter-spacing: -.045em; }
.logo-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo-prod { display: inline-flex; align-items: baseline; gap: .2em; color: var(--coral); }
.logo-prod b { font-size: 1.14em; font-weight: 800; }
.terminal-cursor { display: inline-block; width: .58em; height: .2em; margin-left: -.1em; border-radius: 1px; background: var(--coral); animation: terminal-blink 1.06s step-end infinite; }
@keyframes terminal-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
nav { display: flex; gap: 4px; margin-left: auto; }
nav a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #e7dbee; transition: color .18s, background-color .18s; }
nav a[aria-current] { color: #fff; }
nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--coral); }
.menu { display: none; }
@media (hover: hover) { nav a:hover { color: #fff; background: #ffffff14; } }
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  body { font-size: 16px; }
  .header-inner { gap: 10px; }
  .logo { font-size: 18px; }
  .header-cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .menu { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 10px; border: 0; border-radius: 10px; background: none; }
  .menu span { width: 22px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .2s var(--ease); }
  .menu[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; margin: 0; padding: 8px clamp(16px, 5.2vw, 48px) 20px; border-top: 1px solid #ffffff1f; background: var(--ink); box-shadow: 0 24px 32px -16px #0b022099; }
  nav.open { display: grid; }
  nav a { min-height: 52px; padding: 0; border-radius: 0; font-size: 18px; }
  nav a + a { border-top: 1px solid #ffffff1f; }
  nav a[aria-current]::after { left: 0; right: auto; bottom: 10px; width: 24px; }
}
@media (max-width: 370px) {
  .logo { font-size: 16px; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(100svh, 920px);
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + 40px) 0 72px;
  background:
    radial-gradient(ellipse at 80% 22%, #5c3fdf 0%, transparent 54%),
    radial-gradient(ellipse at 100% 46%, #454aaf 0%, transparent 51%),
    radial-gradient(ellipse at 81% 96%, #522652 0%, transparent 48%),
    radial-gradient(ellipse at 43% 9%, #4f17a7 0%, transparent 64%),
    linear-gradient(165deg, #351568, #301168 43%, #1b1036 94%);
  color: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 76% 48%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 75% at 76% 48%, #000, transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.045em; text-wrap: initial; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero-title-accent { color: #dfc9ff; }
.hero-lead { max-width: 30em; margin-top: 36px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #efe6f7; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 44px; }
.hero-note { flex-basis: 100%; max-width: 30em; font-size: 15px; line-height: 1.5; color: #cbb9e6; }
.hero-aside { min-width: 0; padding-inline: 40px; }
.hero-card { position: relative; }
.portrait { aspect-ratio: 7 / 10; overflow: hidden; border-radius: 28px; background: linear-gradient(165deg, #eadcff, #c6abfa); box-shadow: 0 48px 80px -48px #0b0220, 0 0 0 1px #ffffff2e; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-id { position: absolute; inset: auto 0 0; padding: 88px 24px 22px; border-radius: 0 0 28px 28px; background: linear-gradient(to top, #12052af5, #12052ad1 46%, transparent); }
.hero-id h2 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; text-wrap: initial; }
.hero-about-copy { margin-top: 8px; font-size: 15px; line-height: 1.4; color: #e7dbee; }
.hero-dialogue p { position: absolute; max-width: 152px; padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: var(--paper); color: var(--ink); font: 500 13px/1.45 var(--mono); box-shadow: 0 12px 28px -12px #0b0220b3; transform-origin: 0 100%; animation: dialogue-pop .45s var(--ease) .7s backwards, dialogue-float 4s ease-in-out 1.2s infinite; }
.hero-dialogue p:first-child { top: 6%; left: -40px; }
.hero-dialogue p + p { top: 19%; right: -56px; border-radius: 14px 14px 4px 14px; background: var(--lav); transform-origin: 100% 100%; animation-delay: 1.35s, 2.6s; }
.hero-card:hover .hero-dialogue p { animation-play-state: paused; }
.hero-copy > *, .hero-card { animation: rise .7s var(--ease) backwards; }
.hero-lead { animation-delay: .08s; }
.hero-actions, .hero-card { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes dialogue-pop { from { opacity: 0; scale: .8; } }
@keyframes dialogue-float { 50% { translate: 0 -5px; } }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .hero-aside { padding-inline: 28px; }
  .hero-dialogue p { max-width: 140px; padding: 9px 11px; font-size: 12px; }
  .hero-dialogue p:first-child { left: -28px; }
  .hero-dialogue p + p { right: -28px; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto 1fr; gap: 0 40px; align-items: start; }
  .hero-copy { display: contents; }
  .hero h1 { grid-column: 1 / -1; font-size: clamp(28px, 9.6vw, 72px); }
  .hero-lead, .hero-aside { margin-top: 40px; }
  .hero-actions { margin-top: 32px; }
  .hero-aside { grid-column: 2; grid-row: 2 / span 2; padding-inline: 24px; }
  .hero-dialogue p:first-child { left: -24px; }
  .hero-dialogue p + p { right: -24px; }
}
@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .hero-lead { margin-top: 24px; }
  .hero-aside { grid-column: auto; grid-row: auto; width: min(100%, 400px); margin-top: 56px; }
}
@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-height) + 28px); }
  .hero-aside { margin-inline: auto; padding-inline: 12px; }
  .hero-dialogue p:first-child { left: -12px; }
  .hero-dialogue p + p { right: -12px; }
  .hero-id { padding: 72px 20px 20px; }
  .hero-id h2 { font-size: 24px; }
}

/* Знакомо? */
.pains-section { padding-block: var(--section-pad); background: var(--lav-soft); }
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pain { display: flex; flex-direction: column; gap: 28px; padding: 28px 32px 34px; border: 1px solid var(--line); border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 6px; background: #fff; box-shadow: 0 16px 32px -24px #26064b40; }
.pain__n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--violet); }
.pain__q { max-width: 26ch; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.pivot { max-width: 46rem; margin-top: 44px; padding-left: 24px; border-left: 3px solid var(--coral); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; font-weight: 500; letter-spacing: -.015em; text-wrap: pretty; }
@media (max-width: 760px) {
  .pains { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .pain { gap: 20px; padding: 22px 24px 26px; }
  .pivot { margin-top: 32px; padding-left: 18px; }
}

/* О чём будем говорить */
.notes-section { padding-block: var(--section-pad) calc(var(--section-pad) / 2); background: var(--ink); color: var(--paper); }
.notes { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.notes__head { position: sticky; top: calc(var(--header-height) + 40px); }
.notes__head h2 { font-size: clamp(32px, 3.9vw, 52px); }
.notes__lead { max-width: 26em; margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--on-dark); text-wrap: pretty; }

.notes__panel { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius-card); background: #ffffff0a; }
.topic-group + .topic-group { border-top: 1px solid var(--line-dark); }
.topic-group__t { display: flex; align-items: center; gap: 10px; padding: 16px 28px; border-bottom: 1px solid var(--line-dark); background: #ffffff08; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.notes__list { list-style: none; margin: 0; padding: 0; }
.note { padding: 22px 28px 24px; transition: background-color .2s; }
.note + .note { border-top: 1px solid #ffffff1c; }
.note__t { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.note__d { max-width: 50ch; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--on-dark); }
@media (hover: hover) { .note:hover { background: #ffffff0a; } }
.notes__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 20px 28px 22px; border-top: 1px solid var(--line-dark); background: #ffffff08; font-size: 15.5px; line-height: 1.45; color: var(--on-dark); transition: background-color .2s; }
.notes__foot-link { font-weight: 600; color: var(--paper); text-decoration: underline; text-decoration-color: #ff696d80; text-underline-offset: 5px; }
.notes__foot-link .icon { width: 16px; height: 16px; margin-left: 8px; vertical-align: -3px; color: var(--coral); transition: transform .2s var(--ease); }
.notes__foot:is(:hover, :focus-visible) .notes__foot-link .icon { transform: translateX(4px); }
@media (hover: hover) { .notes__foot:hover { background: #ffffff10; } .notes__foot:hover .notes__foot-link { text-decoration-color: var(--coral); } }
@media (max-width: 900px) {
  .notes { grid-template-columns: 1fr; }
  .notes__head { position: static; }
}
@media (max-width: 480px) {
  .topic-group__t, .note, .notes__foot { padding-inline: 20px; }
}

/* Форматы */
.catalog { padding-block: var(--section-pad); background: linear-gradient(var(--ink), var(--ink-deep) 420px); color: var(--paper); }
.catalog__head { max-width: 1000px; }
.catalog h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; }
.formats-subtitle { color: #b9a8cc; }
.catalog__group { display: flex; align-items: center; gap: 16px; margin: 64px 0 20px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #b9a8cc; }
.catalog__group::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

.fmt { display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-dark); border-radius: var(--radius-card); background: #ffffff0a; transition: border-color .2s, background-color .2s; }
.fmt:target { outline: 2px solid var(--coral); outline-offset: 3px; }
.fmt__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.fmt__label, .fmt__badge { padding: 5px 10px; border-radius: 99px; font: 400 12px/1.4 var(--mono); }
.fmt__label { border: 1px solid var(--line-dark); color: var(--on-dark); }
.fmt__badge { background: var(--coral); color: var(--ink); font-weight: 500; }
.fmt__t { margin: 28px 0 12px; font-size: clamp(24px, 2.2vw, 28px); line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.fmt__lead { margin-bottom: 6px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.fmt__d { font-size: 16px; line-height: 1.5; color: var(--on-dark); }
.fmt__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 16px 0; border-block: 1px solid var(--line-dark); }
.fmt__meta dt { display: block; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b9a8cc; }
.fmt__meta dd { display: block; margin: 4px 0 0; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--paper); }
.fmt h4 { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #b9a8cc; }
.fmt__block { margin-top: 28px; }
.checks { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; color: #e7dbee; }
.checks .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--coral); }
.fmt .button { align-self: flex-start; margin-top: 32px; }
@media (hover: hover) { .fmt--core:not(.fmt--top):hover, .fmt--extra:hover { border-color: #ffffff59; background: #ffffff0f; } }

/* Консультация: точка входа */
.fmt--featured { margin-top: 64px; border-color: var(--coral); background: radial-gradient(120% 70% at 0 0, #ff696d2e, transparent 62%), #ffffff0a; }
.fmt__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.fmt__main { display: flex; flex-direction: column; }
.fmt__main .fmt__d { max-width: 44ch; }
.fmt__main .fmt__meta { margin-bottom: 32px; }
.fmt__main .button { margin-top: auto; }
.fmt__side { padding-left: clamp(32px, 5vw, 72px); border-left: 1px solid var(--line-dark); }
.fmt__side .fmt__block:first-child { margin-top: 0; }
.fmt__meta .fmt__free { color: var(--coral); }

/* Основные форматы: строки карточек выровнены между собой */
.fmt--core { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
.fmt--core .fmt__t { margin-top: 24px; }
.fmt--core .button { align-self: end; justify-self: start; }
.fmt--top { position: relative; border-color: #ff696d99; background: radial-gradient(100% 50% at 50% 0, #ff696d1f, transparent 70%), #ffffff0a; }
.fmt__sticker { position: absolute; top: -22px; right: 20px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: var(--ink); font: 800 16px/1 var(--sans); letter-spacing: .02em; box-shadow: inset 0 0 0 4px var(--coral), inset 0 0 0 5.5px #26064b40, 0 12px 24px -10px #0b0220e6; transform: rotate(12deg); pointer-events: none; }

/* Дополнительные форматы: свёрнуты по умолчанию */
.fmt--extra { padding: clamp(24px, 3vw, 32px); }
.fmt--extra .fmt__t { margin: 20px 0 8px; }
.fmt--extra .fmt__meta { margin-top: 20px; }
.fmt__more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--paper); }
.fmt__more::-webkit-details-marker { display: none; }
.fmt__more::after { content: ""; flex: none; width: 26px; height: 26px; border: 1px solid #ffffff59; border-radius: 50%; background: linear-gradient(var(--coral), var(--coral)) center / 11px 1.5px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 1.5px 11px no-repeat; transition: transform .3s var(--ease), border-color .18s; }
.fmt__details[open] .fmt__more::after { transform: rotate(45deg); border-color: var(--coral); }
.fmt__more-close, .fmt__details[open] .fmt__more-open { display: none; }
.fmt__details[open] .fmt__more-close { display: inline; }
.fmt__body { display: flex; flex-direction: column; padding-top: 12px; }
@media (hover: hover) { .fmt__more:hover::after { border-color: var(--coral); } }
@supports (interpolate-size: allow-keywords) {
  .fmt__details { interpolate-size: allow-keywords; }
  .fmt__details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .fmt__details[open]::details-content { block-size: auto; }
}

@media (max-width: 1040px) {
  .core-grid { grid-template-columns: 1fr; gap: 16px; }
  .fmt--core { display: flex; }
}
@media (max-width: 900px) {
  .fmt--featured { margin-top: 40px; }
  .catalog__group { margin-top: 48px; }
  .fmt__cols { display: flex; flex-direction: column; gap: 0; }
  .fmt__main, .fmt__side { display: contents; }
  .fmt__main .button { order: 1; margin-top: 32px; }
  .fmt__main .fmt__meta { margin-bottom: 0; }
  .fmt__side .fmt__block:first-child { margin-top: 28px; }
}
@media (max-width: 680px) {
  .extra-grid { grid-template-columns: 1fr; gap: 12px; }
  .core-grid { gap: 12px; }
  .fmt .button { align-self: stretch; }
  .fmt--core .button { justify-self: stretch; }
}


/* Обо мне */
.about { padding-block: var(--section-pad); background: var(--lav-soft); }
.about h2 em, .faq h2 em { color: #8a73a8; }
.about-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-height) + 40px); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius-card); background: linear-gradient(165deg, #eadcff, #c6abfa); }
.about-photo figcaption { padding-top: 18px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.about-photo figcaption span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--muted); }
.about-link { display: inline-flex; margin-top: 12px; color: var(--ink); transition: color .18s; }
.about-link .icon { width: 26px; height: 26px; }
@media (hover: hover) { .about-link:hover { color: var(--violet); } }
.about__story { max-width: 62ch; margin-top: 32px; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.about__story p + p { margin-top: 18px; }
.experience-sticker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin: 40px 5px 44px 0; padding: 22px 4px; list-style: none; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: #fff; box-shadow: 0 16px 32px -24px #26064b40; }
.experience-sticker li { display: grid; align-content: start; gap: 6px; padding-inline: 20px; font-size: 14.5px; line-height: 1.35; text-wrap: balance; }
.experience-sticker li + li { border-left: 1px solid var(--line); }
.experience-sticker strong { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; max-width: 720px; margin: 0; padding: 0; list-style: none; }
.reasons li { padding-top: 18px; border-top: 1px solid var(--line); }
.reason__t { margin-bottom: 6px; font-size: 19px; }
.reason__d { font-size: 16px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { position: static; display: flex; align-items: center; gap: 16px; }
  .about-photo img { width: 88px; aspect-ratio: 1; border-radius: 20px; }
  .about-photo figcaption { padding-top: 0; }
  .about__story { margin-top: 24px; font-size: 16px; }
  .experience-sticker { margin-block: 32px 36px; }
}
@media (max-width: 560px) {
  .experience-sticker { grid-template-columns: 1fr; padding: 6px 18px; }
  .experience-sticker li { grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 0; }
  .experience-sticker li + li { border-left: 0; border-top: 1px solid var(--line); }
  .experience-sticker strong { font-size: 25px; }
  .reasons { grid-template-columns: 1fr; gap: 22px; }
}

/* FAQ */
.faq { padding-block: 0 var(--section-pad); background: var(--lav-soft); }
.faq-grid { padding-top: var(--section-pad); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-height) + 40px); }
.faq-art { max-width: 460px; aspect-ratio: 967 / 761; margin-top: 36px; overflow: hidden; border-radius: 3.1% / 3.94%; }
.faq-art img { width: 113.75%; max-width: none; margin: -7.24% 0 0 -6.41%; }
.qa { border-top: 1px solid #d3c1ea; }
.qa:last-child { border-bottom: 1px solid #d3c1ea; }
.qa summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; transition: color .18s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid #b9a0dc; border-radius: 50%; background: linear-gradient(var(--violet), var(--violet)) center / 12px 1.5px no-repeat, linear-gradient(var(--violet), var(--violet)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease), background-color .18s, border-color .18s; }
.qa[open] summary::after { transform: rotate(45deg); border-color: var(--violet); }
.qa > p { max-width: 60ch; padding: 0 52px 24px 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
@media (hover: hover) {
  .qa summary:hover { color: var(--violet); }
  .qa summary:hover::after { border-color: var(--violet); background-color: #fff; }
}
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease), content-visibility .3s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq__head { position: static; }
  .faq-art { margin-top: 28px; }
}
@media (max-width: 760px) {
  .qa summary { gap: 16px; padding: 18px 0; font-size: 17px; }
  .qa > p { padding: 0 0 20px; font-size: 16px; }
}

/* Запись */
.contact { padding-block: var(--section-pad); background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(48px, 7vw, 96px); align-items: start; }
.booking-side { grid-row: span 2; }
.contact h2 { font-size: clamp(40px, 5vw, 64px); color: var(--lav); }
.contact h2 .dim { color: var(--coral); }
.contact .lead { max-width: 30em; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #e7dbee; text-wrap: pretty; }
.contact-shell { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-dark); border-radius: var(--radius-card); background: #ffffff0a; }
.contact-shell h3 { font-size: 26px; letter-spacing: -.03em; }
.form-intro { margin: 8px 0 26px; font-size: 15px; color: var(--on-dark); }
.form-field { margin-bottom: 18px; }
.form-field label, #request-preview label { display: block; margin-bottom: 8px; font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.form-field label > span { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: #b9a8cc; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #ffffff40; border-radius: var(--radius-ctl); background-color: #ffffff0f; color: #fff; font-size: 16px; line-height: 1.4; transition: border-color .18s, box-shadow .18s, background-color .18s; }
select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23ebdfff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #b9a8cc; opacity: 1; }
option { background: #3b205c; color: #fff; }
:is(input, select, textarea):focus-visible { outline: none; border-color: var(--coral); background-color: #ffffff17; box-shadow: 0 0 0 3px #ff696d59; }
input[aria-invalid=true] { border-color: #ffafb1; }
.field-error { margin: -8px 0 18px; font-size: 14px; color: #ffafb1; }
.form-note { margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; color: #b9a8cc; }
#request-preview > p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #e7dbee; }
#request-preview label { margin-top: 22px; }
#request-message { margin-bottom: 16px; line-height: 1.55; }
.copy-message { display: block; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--lav); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
#request-preview > .form-note { margin: 4px 0 8px; font-size: 13.5px; color: #b9a8cc; }
#copy-status:empty { display: none; }
@media (hover: hover) {
  :is(input, select, textarea):hover { border-color: #ffffff80; }
  .copy-message:hover { color: #ff9b9e; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .booking-side { order: 1; grid-row: auto; margin-top: 40px; }
}

/* Footer */
.footer { border-top: 1px solid #ffffff1f; background: var(--ink); color: var(--on-dark); font-size: 15px; }
.footer-inner { display: flex; align-items: center; gap: 12px 40px; padding-block: 32px; }
.footer .logo { color: var(--paper); }
.footer p { margin-right: auto; line-height: 1.45; color: var(--paper); }
.footer p span { font: 400 12px/1.4 var(--mono); color: #b9a8cc; }
.footer-inner > a:not(.logo) { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; transition: color .18s; }
@media (hover: hover) { .footer-inner > a:not(.logo):hover { color: #fff; } }
@media (max-width: 760px) {
  .footer-inner { flex-wrap: wrap; padding-block: 28px; }
  .footer .logo { width: 100%; margin-bottom: 4px; }
  .footer p { width: 100%; margin-bottom: 4px; }
}

/* Motion */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: rise .7s var(--ease) var(--reveal-delay, 0s) backwards; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; }
  /* A blinking caret has no motion; macOS keeps text carets blinking with Reduce Motion too */
  .terminal-cursor { animation: terminal-blink 1.06s step-end infinite !important; }
}

/* Email contact in the footer. */
.footer .footer-email { display: inline-block; padding-block: 6px; color: var(--coral); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
