/* ===== Токены ===== */
:root {
  /* цвета логотипа «Курсив»: графит #2B2A27, крем #F0EEE6, терракота #D97757 — матовые, без блеска */
  /* Палитра — только три цвета логотипа; оттенки — прозрачностью, а не новыми цветами (Егор: «слишком много цветов») */
  --ink: #262522;
  --ink-2: #262522;
  --ink-3: #262522;
  --paper: #F0EEE6;
  --cream: #F0EEE6;
  --sand: #F0EEE6;
  --taupe: rgba(38, 37, 34, .68);    /* второстепенный текст на креме */
  --mist: rgba(240, 238, 230, .66);  /* второстепенный текст на графите */
  --clay: #D97757;       /* акцент, кнопка */
  --clay-2: #A64D2E;     /* та же терракота темнее — мелкий текст на креме (контраст 5:1) */
  color-scheme: only light;  /* запрет браузеру перекрашивать сайт своей тёмной темой */
  --line-dark: rgba(30, 29, 27, .14);
  --line-light: rgba(240, 238, 230, .16);

  --f-display: "Playfair Display", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --h1: clamp(56px, 9vw, 150px);
  --h2: clamp(38px, 5vw, 74px);
  --h3: clamp(24px, 2.1vw, 32px);
  --lead: clamp(18px, 1.4vw, 21px);
  --body: 17px;
  --small: 14px;

  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(96px, 12vw, 176px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.nw { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

/* ===== Типографика ===== */
.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; }
.h1 { font-size: var(--h1); line-height: .92; font-weight: 400; letter-spacing: -.02em; }
.h2 { font-size: var(--h2); line-height: 1.02; }
.h3 { font-size: var(--h3); line-height: 1.15; }
.h1 em, .h2 em { font-weight: 400; color: var(--clay); }
.section--paper .h2 em, .section--cream .h2 em, .section--sand .h2 em, .space .h2 em { color: var(--clay-2); }
.lead { font-size: var(--lead); line-height: 1.6; max-width: 36em; }
.muted { color: var(--taupe); }
.eyebrow {
  font-size: var(--small); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay-2); margin-bottom: 20px;
}
.eyebrow--light { color: var(--clay); }
.line { display: block; overflow: hidden; padding: .1em .12em .24em 0; margin: -.1em -.12em -.24em 0; }  /* запас под хвосты курсива: р, у, д */
.line__in { display: block; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--accent { background: var(--clay); color: var(--ink); }
.btn--accent:hover { background: var(--cream); }
.btn--ghost { border: 1px solid rgba(240, 238, 230, .4); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--clay); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--clay-2); }
.btn--line { border: 1px solid var(--line-dark); }
.btn--line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.link-arrow { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ===== Шторка переходов ===== */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--ink); pointer-events: none; visibility: hidden; }
.is-entering .curtain { visibility: visible; }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 0 var(--gutter); color: var(--cream);
  transition: background .5s var(--ease), height .5s var(--ease), transform .5s var(--ease);
}
.header.is-solid { background: rgba(30, 29, 27, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 68px; }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--f-display); font-size: 30px; font-weight: 500; letter-spacing: .02em; }
.logo__kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.header__right { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 15px; font-weight: 500; white-space: nowrap; opacity: .9; }
.header__phone:hover { opacity: 1; color: var(--clay); }
.burger { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(240, 238, 230, .35); transition: background .35s var(--ease), border-color .35s; }
.burger:hover { background: var(--cream); border-color: var(--cream); }
.burger:hover span { background: var(--ink); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease), background .35s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 27px; }
.burger:hover span:first-child { transform: translateX(3px); }

/* ===== Боковое меню ===== */
.menu { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr minmax(420px, 44vw); visibility: hidden; }
.menu.is-open { visibility: visible; }
.menu__media { background: rgba(30, 29, 27, .6); cursor: pointer; }
.menu__panel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: var(--cream); padding: 120px clamp(28px, 4vw, 64px) 48px;
}
.menu__close { position: absolute; top: 18px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(240, 238, 230, .35); }
.menu__close span { position: absolute; left: 13px; right: 13px; top: 23px; height: 1.5px; background: var(--cream); }
.menu__close span:first-child { transform: rotate(45deg); }
.menu__close span:last-child { transform: rotate(-45deg); }
.menu__close:hover { background: var(--cream); }
.menu__close:hover span { background: var(--ink); }
.menu__nav { display: flex; flex-direction: column; gap: 6px; }
.menu__link { display: flex; align-items: baseline; gap: 20px; padding: 6px 0; overflow: hidden; }
.menu__num { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--mist); width: 40px; flex: none; }
.menu__label { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; transition: color .35s var(--ease); }
.menu__link:hover .menu__label { color: var(--clay); }
.menu__link:hover .menu__num { color: var(--clay); }
.menu__num { transition: color .35s var(--ease); }
.menu__link.is-current .menu__label { font-style: italic; color: var(--clay); }
.menu__foot { display: grid; gap: 10px; color: var(--mist); font-size: 15px; }
.menu__phone { font-family: var(--f-display); font-size: 32px; color: var(--cream); white-space: nowrap; }
.menu__socials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; }
.menu__socials a { color: var(--cream); border-bottom: 1px solid var(--line-light); padding-bottom: 2px; }
.menu__socials a:hover { color: var(--clay); border-color: var(--clay); }

/* ===== Первый экран ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 29, 27, .55) 0%, rgba(30, 29, 27, .15) 35%, rgba(30, 29, 27, .55) 70%, rgba(30, 29, 27, .92) 100%),
    linear-gradient(90deg, rgba(30, 29, 27, .55) 0%, rgba(30, 29, 27, 0) 60%);
}
.hero__inner { position: relative; padding-bottom: clamp(56px, 8vh, 96px); }
.hero__title { margin-bottom: 32px; }
.hero__lead { color: rgba(240, 238, 230, .85); max-width: 30em; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  position: relative; display: flex; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 28px; font-size: 15px; color: var(--mist);
}
.hero__meta::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-light); }

/* ===== Интро ===== */
.intro__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; }
.intro__text { line-height: 1.12; }
.intro__text .w { opacity: .18; transition: none; }
.intro__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.intro__media img { width: 100%; height: 118%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 120px); }
.fact { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.fact__value { font-family: var(--f-display); font-size: var(--h2); line-height: 1; }
.fact__label { color: var(--taupe); max-width: 18em; }

/* ===== Живой фон тёмных секций ===== */
.glow { overflow: hidden; isolation: isolate; }
.glow__blob { position: absolute; z-index: -1; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; will-change: transform; }
.glow__blob--a { background: radial-gradient(circle, rgba(217, 119, 87, .55), rgba(217, 119, 87, 0) 65%); top: -20%; right: -15%; animation: drift-a 26s ease-in-out infinite alternate; }
.glow__blob--b { background: radial-gradient(circle, rgba(130, 70, 48, .6), rgba(130, 70, 48, 0) 65%); bottom: -25%; left: -15%; animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-18vw, 22vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(20vw, -16vh) scale(.9); } }
.glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Направления ===== */
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.directions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dir-card { display: flex; flex-direction: column; gap: 22px; }
.dir-card__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.dir-card__media img { width: 100%; height: 118%; object-fit: cover; transition: scale 1.1s var(--ease), filter 1.1s var(--ease); filter: saturate(.9); }
.dir-card:hover .dir-card__media img { scale: 1.05; filter: saturate(1); }
.dir-card__body { display: grid; gap: 6px; }
.dir-card__body p { color: var(--mist); }
.dir-card__price { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--clay); }
.dir-card .h3 { transition: color .35s var(--ease); }
.dir-card:hover .h3 { color: var(--clay); }

/* ===== Пространство (горизонтальная лента) ===== */
.space { background: var(--cream); position: relative; }
.space__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 56px); overflow: hidden; }
.space__head { display: flex; flex-direction: column; align-items: start; }
.space__head .h2 { max-width: 12em; }
.space__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.space__item { height: min(58svh, 560px); overflow: hidden; border-radius: var(--radius); flex: none; }
.space__item img { height: 100%; width: 100%; object-fit: cover; }
.space__item--1 { aspect-ratio: 4 / 5; }
.space__item--2 { aspect-ratio: 3 / 2; }
.space__item--3 { aspect-ratio: 4 / 5; }
.space__item--4 { aspect-ratio: 3 / 2; }
.space__item--5 { aspect-ratio: 4 / 5; }

/* ===== Прайс: строки ===== */
.popular__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.section-head--side { position: sticky; top: 120px; margin: 0; }
.section-head--side .h2 { margin-bottom: 36px; }
.price-list { border-top: 1px solid var(--line-dark); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark);
}
.price-row__name { font-size: 18px; font-weight: 500; line-height: 1.4; }
.price-row__name small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--taupe); }
.price-row__name em { display: block; margin-top: 4px; font-size: 14px; font-style: normal; color: var(--taupe); }
.price-row__price { font-family: var(--f-display); font-size: 26px; font-weight: 500; white-space: nowrap; }
.price-row[hidden] { display: none; }

/* ===== Мастера ===== */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.master__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; background: var(--cream); }
.master__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.1s var(--ease); }
.master:hover .master__media img { scale: 1.04; }
.master__role { color: var(--taupe); margin-top: 6px; }

/* ===== Призыв ===== */
.cta { position: relative; overflow: hidden; color: var(--cream); background: var(--ink); padding: calc(var(--section) * 1.1) 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 125%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 29, 27, .92) 0%, rgba(30, 29, 27, .7) 55%, rgba(30, 29, 27, .45) 100%); }
.cta__inner { position: relative; }
.cta .h2 { max-width: 11em; margin-bottom: 24px; }
.cta .lead { color: rgba(240, 238, 230, .8); margin-bottom: 40px; }
.cta__phone { display: inline-block; font-family: var(--f-display); font-size: clamp(34px, 5vw, 72px); line-height: 1; white-space: nowrap; margin-bottom: 40px; border-bottom: 1px solid var(--line-light); padding-bottom: 10px; transition: color .35s; }
.cta__phone:hover { color: var(--clay); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Подвал ===== */
.footer { background: var(--ink); color: var(--mist); padding: 72px 0 32px; border-top: 1px solid var(--line-light); font-size: 15px; }
.footer .logo { color: var(--cream); }
.footer__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: start; }
.footer__nav, .footer__contacts { display: grid; gap: 10px; }
.footer a:hover { color: var(--clay); }
.footer__contacts a { color: var(--cream); white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; font-size: 15px; opacity: .7; }

/* ===== Внутренние страницы ===== */
.page-hero { position: relative; padding: clamp(150px, 20vh, 220px) 0 clamp(64px, 8vw, 110px); }
.page-hero--full { min-height: 100svh; display: flex; align-items: center; }
.page-hero__title { margin-bottom: 28px; }
.page-hero--full .page-hero__title { margin-bottom: 40px; }
.page-hero__note { color: var(--mist); }

.price-nav { position: sticky; top: 0; z-index: 40; background: rgba(250, 249, 245, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); transition: top .5s var(--ease); }
.header.is-solid:not(.is-hidden) ~ main .price-nav { top: 68px; }
.price-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.search { position: relative; flex: none; width: 260px; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; fill: none; stroke: var(--taupe); stroke-width: 1.6; }
.search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--ink); }

.section.prices { padding-top: clamp(48px, 6vw, 88px); }
.price-cat { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 140px; }
.prices > .wrap > .price-cat:first-child { padding-top: 0; }
.price-cat:last-of-type { border-bottom: 0; }
.price-cat[hidden] { display: none; }
.price-cat__side { align-self: start; position: sticky; top: 170px; }
.price-cat__note { color: var(--taupe); margin-top: 18px; max-width: 26em; }
.price-cat__media { aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); margin-top: 32px; max-width: 360px; }
.price-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.prices__empty { font-size: var(--lead); padding: 40px 0; }
.prices__empty a { border-bottom: 1px solid currentColor; white-space: nowrap; }

.team-list { display: grid; gap: clamp(80px, 10vw, 160px); }
.team-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.team-row:nth-child(even) .team-row__media { order: 2; }
.team-row__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.team-row__media img { width: 100%; height: 115%; object-fit: cover; }
.team-row__body .h2 { margin-bottom: 24px; }
.team-row__body .lead { color: var(--taupe); margin-bottom: 18px; }
.team-row__years { font-weight: 600; margin-bottom: 36px; }

.contacts__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 100px); align-items: stretch; }
.contacts__info { display: grid; gap: 44px; align-content: start; }
.contacts__block .eyebrow { margin-bottom: 12px; }
.contacts__phone { font-family: var(--f-display); font-size: clamp(32px, 3.6vw, 52px); line-height: 1; white-space: nowrap; }
.contacts__phone:hover { color: var(--clay-2); }
.contacts__block .muted { margin-top: 6px; }
.contacts__hours { display: flex; justify-content: space-between; max-width: 320px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.contacts__socials { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { min-height: 520px; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(.6) sepia(.15); }

/* ===== Состояния анимаций (включаются только с JS) ===== */
.js-ready .reveal-up { opacity: 0; transform: translateY(28px); }
.js-ready .img-reveal { clip-path: inset(100% 0 0 0); }
.js-ready .line__in { transform: translateY(105%); }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .directions__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .header__phone { display: none; }
}
@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr; }
  .menu__media { display: none; }
  .intro__grid, .popular__grid, .price-cat, .team-row, .contacts__grid { grid-template-columns: 1fr; }
  .intro__media { aspect-ratio: 4 / 3; }
  .section-head--side, .price-cat__side { position: static; }
  .price-cat__media { display: none; }
  .team-row:nth-child(even) .team-row__media { order: 0; }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .team__grid .master:nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid .logo { grid-column: 1 / -1; }
  .price-nav__inner { flex-direction: column; align-items: stretch; height: auto; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .search { width: 100%; }
  .space__pin { height: auto; padding: var(--section) 0; }
  .space__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .space__track::-webkit-scrollbar { display: none; }
  .space__item { height: 62vw; scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .header { height: 72px; }
  .header__book { display: none; }
  .logo__name { font-size: 26px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { flex-direction: row; align-items: baseline; gap: 18px; padding: 20px 0; }
  .fact__value { min-width: 3.4em; font-size: 44px; }
  .directions__grid { grid-template-columns: 1fr; gap: 48px; }
  .dir-card__media { aspect-ratio: 4 / 3; }
  .team__grid { grid-template-columns: 1fr; gap: 48px; }
  .team__grid .master:nth-child(3) { display: block; }
  .section-head--row { flex-direction: column; align-items: start; }
  .hero__meta { flex-direction: column; gap: 4px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__actions .btn { flex: 1 1 40%; }
  .cta__actions .btn:first-child { flex-basis: 100%; }
  .price-row { gap: 16px; padding: 18px 0; }
  .price-row__name { font-size: 16px; }
  .price-row__price { font-size: 22px; }
  .space__item { height: 92vw; }
  .space__item--2, .space__item--4 { aspect-ratio: 4 / 5; }
  .contacts__map, .contacts__map iframe { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .menu__panel { padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow__blob { animation: none; }
  .js-ready .reveal-up, .js-ready .img-reveal, .js-ready .line__in { opacity: 1; transform: none; clip-path: none; }
}

/* ===================== Курсив: свои блоки ===================== */
.glow__blob { opacity: .32; }
.menu__label { white-space: nowrap; }  /* «Бот-бригадир» не рвётся по дефису */

.hero__media > img { width: 100%; height: 100%; object-fit: cover; }
.hero .eyebrow--light { color: rgba(240, 238, 230, .82); }  /* терракота терялась на оранжевом небе */

/* логотип: знак (К + курсор) и название */
.logo { flex-direction: row; align-items: center; gap: 12px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-style: italic; font-size: 28px; letter-spacing: 0; }

/* продукты на главной — две крупные карточки */
.products__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product { display: flex; flex-direction: column; gap: 24px; }
.product__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.product__media img { width: 100%; height: 118%; object-fit: cover; filter: saturate(.85); transition: scale 1.1s var(--ease), filter 1.1s var(--ease); }
.product:hover .product__media img { scale: 1.04; filter: saturate(1); }
.product__body { display: grid; gap: 10px; max-width: 34em; }
.product__body p { color: var(--mist); }
.product__price { font-size: 16px; font-weight: 600; color: var(--clay); }
.product .h3 { transition: color .35s var(--ease); }
.product:hover .h3 { color: var(--clay); }

/* шаги «как работаем» — строки с номером */
.steps { border-top: 1px solid var(--line-dark); margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line-dark); }
.step__num { font-family: var(--f-display); font-style: italic; font-size: 34px; line-height: 1; color: var(--clay-2); }
.step__title { font-family: var(--f-display); font-size: var(--h3); line-height: 1.15; }
.step__text { color: var(--taupe); }
.section--ink .steps, .section--ink .step { border-color: var(--line-light); }
.section--ink .step__num { color: var(--clay); }
.section--ink .step__text { color: var(--mist); }

/* бригадир: день смены рядом с телефоном */
.day__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.day__side { position: sticky; top: 110px; }
.day__side .h2 { margin-bottom: 36px; }
.time-row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.time-row:first-child { border-top: 1px solid var(--line-dark); }
.time-row__time { font-family: var(--f-display); font-size: 26px; line-height: 1.2; white-space: nowrap; color: var(--clay-2); }
.time-row__title { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.time-row__text { color: var(--taupe); }


/* возможности — 4 коротких пункта */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { padding-top: 24px; border-top: 1px solid var(--line-light); }
.feature .h3 { margin-bottom: 10px; }
.feature p { color: var(--mist); }

/* тарифы */
.plans__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.plans__note { color: var(--taupe); margin-bottom: 36px; max-width: 26em; }
.price-row__price small { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--clay-2); margin-left: 10px; }
.price-row--accent .price-row__price { color: var(--clay-2); }

/* витрина работы: компьютер + телефон */
.work { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.work__shots { position: relative; padding-bottom: 8%; }
.work__pc { border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.work__pc img { width: 100%; }
.work__phone { position: absolute; right: -4%; bottom: 0; width: 26%; border-radius: 18px; overflow: hidden; border: 6px solid var(--ink-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.work__body .h2 { margin-bottom: 24px; }
.work__body .lead { color: var(--mist); margin-bottom: 28px; }
.work__list { display: grid; gap: 10px; margin-bottom: 36px; color: var(--cream); }
.work__list li::before { content: "— "; color: var(--clay); }

/* призыв без телефона: крупный ник в Telegram */
.cta__phone { font-style: italic; }


@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 900px) {
  .products__grid, .day__grid, .plans__grid, .work { grid-template-columns: 1fr; }
  .day__side { position: static; }
  .phone { margin: 0 auto; }
  .step { grid-template-columns: 56px 1fr; }
  .step__text { grid-column: 2; }
}
@media (max-width: 640px) {
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 24px; }
  .features { grid-template-columns: 1fr; }
  .time-row { grid-template-columns: 72px 1fr; gap: 16px; }
  .time-row__time { font-size: 22px; }
  .work__phone { width: 30%; right: 0; }
  .price-row__price small { display: block; margin: 2px 0 0; text-align: right; }
}

/* главная: плоский первый экран в цветах логотипа, без фото и видео */
.hero--flat { justify-content: space-between; padding-top: 84px; }
.hero-flat { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(24px, 5vh, 64px); }
.hero--flat .hero__inner { padding-bottom: 0; }
.hero--flat .hero__lead { color: var(--mist); }
.hero-flat__scene { width: 100%; max-width: 620px; justify-self: end; }
.scene { width: 100%; height: auto; overflow: visible; }
.intro__text--wide { max-width: 22em; }

.product__media--clay { background: var(--clay); }
.product__media--cream { background: var(--cream); }
.product__media .art { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.product:hover .product__media .art { transform: scale(1.04); }

@media (max-width: 900px) {
  .hero-flat { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-flat__scene { max-width: 440px; justify-self: center; margin-top: 8px; }
  .hero--flat { min-height: auto; }
}
.product__kind { font-size: var(--small); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }


/* плоско: без цветных пятен и шума на тёмных секциях */
.glow__blob, .glow::after { display: none; }

/* телефон: рамка, «островок», строка состояния, поле ввода — как настоящий */
.phone { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 52px; background: #1C1B19;
  box-shadow: inset 0 0 0 2px rgba(240, 238, 230, .14), 0 50px 90px -40px rgba(30, 29, 27, .6); }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #1C1B19; }
.phone::before { left: -4px; top: 22%; height: 9%; box-shadow: 0 70px 0 #1C1B19; }  /* громкость */
.phone::after { right: -4px; top: 28%; height: 13%; }                                /* питание */
.phone__screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 42px; overflow: hidden; background: #DCD6C8; }
.phone__status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 26px 0 30px;
  font-size: 15px; font-weight: 700; color: var(--ink); background: var(--paper); }
.phone__island { position: absolute; left: 50%; top: 11px; width: 92px; height: 26px; translate: -50% 0; border-radius: 13px; background: #000; }
.phone__icons { display: flex; align-items: center; gap: 6px; }
.phone__net { width: 17px; height: 11px; background: var(--ink); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone__bat { position: relative; width: 24px; height: 12px; border: 1.5px solid var(--ink); border-radius: 4px; }
.phone__bat::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; border-radius: 1.5px; background: var(--ink); }
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; background: var(--paper); border-bottom: 1px solid var(--line-dark); }
.phone__bar b { display: block; font-size: 16px; line-height: 1.2; }
.phone__bar small { font-size: 13px; color: var(--taupe); }
.phone__back { font-size: 30px; line-height: 1; color: var(--clay-2); margin-right: 2px; }
.phone__ava { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px 10px; font-size: 14px; line-height: 1.35; overflow: hidden;
  background-image: radial-gradient(rgba(38, 37, 34, .08) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.msg { position: relative; max-width: 86%; padding: 8px 12px 18px; border-radius: 16px 16px 16px 4px; background: #FBFAF6; color: var(--ink);
  box-shadow: 0 1px 1px rgba(38, 37, 34, .12); }
.msg--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #F3D6C9; }
.msg__btn { display: block; margin: 8px -4px 2px; padding: 7px; border-radius: 10px; text-align: center; font-weight: 700; font-size: 14px; color: var(--cream); background: var(--ink); }
.msg__at { position: absolute; right: 10px; bottom: 3px; font-size: 11px; color: var(--taupe); }
.chat__time { align-self: center; padding: 2px 12px; border-radius: 999px; font-size: 13px; color: var(--cream); background: rgba(38, 37, 34, .35); }
.phone__input { display: flex; align-items: center; gap: 10px; padding: 10px 14px 30px; background: var(--paper); font-size: 18px; }
.phone__field { flex: 1; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 15px; color: var(--taupe); }
.phone__home { position: absolute; left: 50%; bottom: 9px; width: 120px; height: 5px; translate: -50% 0; border-radius: 3px; background: var(--ink); }

/* первый экран с мультяшным фоном вместо видео */
.art-bg { display: block; width: 100%; height: 100%; }
.js-ready .art-bg { visibility: hidden; }  /* scene.js покажет после первого кадра */
.hero--art .hero__shade { background: linear-gradient(90deg, rgba(30, 29, 27, .9) 0%, rgba(30, 29, 27, .55) 42%, rgba(30, 29, 27, 0) 70%),
  linear-gradient(0deg, rgba(30, 29, 27, .7) 0%, rgba(30, 29, 27, 0) 30%); }
.hero--art .hero__meta { color: rgba(240, 238, 230, .85); }

/* призыв: текст и картинка-переписка */
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.cta__art { border-radius: 24px; background: rgba(240, 238, 230, .06); }
.cta__art .art { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hero--art { justify-content: flex-start; padding-top: 72px; }
  .hero--art .hero__media { position: relative; inset: auto; height: 62vw; min-height: 260px; }
  .hero--art .hero__shade { display: none; }
  .hero--art .hero__inner { padding-top: 40px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__art { max-width: 520px; }
}
@media (max-width: 640px) {
  .phone { width: min(100%, 320px); }
  .menu__num { font-size: 18px; width: 32px; }
  .step__num { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .js-ready .art-bg { visibility: visible; } }
.hero--art .hero__title { font-size: clamp(52px, 7.2vw, 116px); }
.hero--art .hero__lead { max-width: 26em; }
@media (max-width: 900px) {
  .hero__media--right { overflow: hidden; }
  .hero__media--right .art-bg { width: 175%; margin-left: -75%; }  /* на узком экране — только окно и телефон */
}

/* ---------- Кеша-капля и мини-страница «Кто я» ---------- */
.kdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; image-rendering: pixelated; visibility: hidden; }
.kdrop__hit { position: fixed; left: 0; top: 0; z-index: 46; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; cursor: grab; touch-action: none; visibility: hidden; }
.kdrop.is-on { visibility: visible; }
.kdrop__hit:active { cursor: grabbing; }
.kmodal { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: var(--cream); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.kmodal::backdrop { background: rgba(30, 29, 27, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kmodal[open] { animation: kmodal-in .5s var(--ease); }
.kmodal[open]::backdrop { animation: kmodal-fade .4s ease; }
@keyframes kmodal-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes kmodal-fade { from { opacity: 0; } }
.kmodal__card { position: relative; padding: clamp(28px, 5vw, 48px); }
.kmodal__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); }
.kmodal__close span { position: absolute; left: 12px; right: 12px; top: 21px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.kmodal__close span + span { transform: rotate(-45deg); }
.kmodal__kesha { display: block; width: 96px; margin-bottom: 18px; }
.kmodal__title { font: 500 clamp(34px, 5vw, 48px)/1.1 var(--f-display); margin-bottom: 16px; }
.kmodal__title em { font-weight: 400; color: var(--clay-2); }
.kmodal__lead { font-size: 19px; line-height: 1.55; margin-bottom: 28px; }
.kmodal__facts { display: grid; gap: 20px; margin-bottom: 32px; }
.kmodal__facts dt { font-family: var(--f-display); font-style: italic; font-size: 22px; color: var(--clay-2); margin-bottom: 4px; }
.kmodal__facts dd { margin: 0; font-size: 17px; line-height: 1.6; }
.kmodal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .kmodal__actions .btn { flex: 1 1 100%; } }
