/* Ysabeau Infant (OFL, Google Fonts), вариативный — один файл на подмножество. Выбрала Диана 27.10. */
@font-face {
  font-family: 'Ysabeau Infant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/ysabeau-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ysabeau Infant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/ysabeau-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ysabeau Infant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/assets/fonts/ysabeau-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* те же файлы для имени на обложке: block, а не swap — иначе имя рисуется запасным шрифтом и после загрузки сдвигается на ~8px */
@font-face {
  font-family: 'Ysabeau Infant Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url(/assets/fonts/ysabeau-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Ysabeau Infant Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url(/assets/fonts/ysabeau-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ysabeau Infant Display';
  font-style: normal;
  font-weight: 300 700;
  font-display: block;
  src: url(/assets/fonts/ysabeau-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Чёрно-белая фотография — её почерк; цвет один, «лепесток» с портрета,
   и он идёт только большой плоскостью (витрина продуктов), никогда — акцентом в тексте. */
:root {
  --ink: #000;
  --paper: #fff;
  /* розовый убран по просьбе Дианы (27.10): поле витрины — глухой тёмный приглушённый синий (без металла), светлый тинт — для чипов и ховеров */
  --band: #55677a;
  --petal: #dde3ea;
  --petal-deep: #c3d0dd;
  --stone: #6b6b6b;
  --hair: #e3e1dd;
  /* один шрифт на всё — Ysabeau Infant (выбор Дианы 27.10) */
  --display: "Ysabeau Infant", Georgia, serif;
  --body: "Ysabeau Infant", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --bar-h: 56px;
  --sect-pad: clamp(48px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  font-feature-settings: "ss01";
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
/* быстрый двойной тап по кнопке (бургер!) не должен зумить страницу; щипок-зум остаётся */
a, button, summary, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em; border-radius: 0;
  font: 500 .9375rem/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); transition: background-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2a2a2a; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn:disabled, .btn:disabled:hover { background: transparent; color: var(--stone); border-color: var(--hair); cursor: default; }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: var(--petal); border-color: var(--petal); }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter);
  color: var(--paper); transition: background-color .25s, color .25s;
}
.bar.is-solid { background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.bar__mark { font: 600 .8125rem/1 var(--display); letter-spacing: .01em; text-decoration: none; margin-right: auto; white-space: nowrap; }
/* в хиро имя уже есть крупно — в шапке оно проявляется, когда большое имя целиком уехало под шапку */
.bar__mark { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .35s ease, transform .35s ease, visibility 0s .35s; }
.bar.is-named .bar__mark, body.menu-open .bar__mark { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .bar__mark { transition: none !important; transform: none; } }
.bar__nav, .bar__langs, .bar__cta { display: none; }
.bar__nav a { text-decoration: none; font-size: .9375rem; padding: .4rem 0; border-bottom: 1px solid transparent; }
.bar__nav a:hover { border-bottom-color: currentColor; }
.bar .btn--ink { background: var(--paper); color: var(--ink); border-color: var(--paper); min-height: 40px; }
.bar.is-solid .btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* наведение: в обоих состояниях шапки кнопка «зажигается» фирменным розовым */
.bar .btn--ink:hover, .bar .btn--ink:focus-visible { background: var(--petal); color: var(--ink); border-color: var(--petal); }
.lang { text-decoration: none; font-size: .8125rem; font-weight: 500; padding: .35rem .45rem; border-radius: 0; opacity: .6; }
.lang:hover { opacity: 1; }
.lang[aria-current] { opacity: 1; box-shadow: inset 0 0 0 1.5px currentColor; }
/* в шапке одна контурная форма — пилюля Telegram; текущий язык там просто подчёркнут */
.bar .lang[aria-current] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .4em; }
.bar__burger {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.bar__burger i { display: block; width: 24px; height: 2px; border-radius: 0; background: currentColor; transition: transform .2s, opacity .2s; }
.bar__burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.bar__burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.bar__burger[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1000px) {
  :root { --bar-h: 68px; }
  .bar__nav { display: flex; gap: 1.75rem; }
  .bar__langs { display: flex; gap: .15rem; }
  .bar__cta { display: inline-flex; }
  .bar__burger { display: none; }
}

/* мобильное меню — лист под шапкой */
.sheet {
  position: fixed; inset: var(--bar-h) 0 0; z-index: 39; overflow-y: auto;
  background: var(--paper); padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2rem;
}
.sheet[hidden] { display: none; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font: 500 1.5rem/1.2 var(--display); text-decoration: none; padding: .7rem 0; border-bottom: 1px solid var(--hair); }
.sheet__langs { display: flex; gap: .5rem; }
.sheet__langs .lang { font-size: 1rem; padding: .6rem .9rem; }
.sheet__social { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.sheet__social a, .foot__social a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; min-height: 44px; }
body.menu-open { overflow: hidden; }
body.menu-open .bar { background: var(--paper); color: var(--ink); }
/* эксперимент «стекло»: меню над хиро — фото видно, надписи хиро скрыты */
body.menu-glass .bar { background: rgba(0,0,0,.25); color: var(--paper); } /* тот же тон, что верх листа: без ступеньки под шапкой */
body.menu-glass :focus-visible { outline-color: var(--paper); }
body.menu-glass .bar__mark { opacity: 0; visibility: hidden; }
body.menu-glass .sheet { background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.6)); color: var(--paper); }
body.menu-glass .sheet nav a { border-bottom-color: rgba(255,255,255,.28); }
.hero__body { transition: opacity .3s ease; }
body.menu-glass .hero__body { opacity: 0; }

/* ---------- первый экран ---------- */
/* Имя набрано во всю ширину и садится на нижний край снимка — это и есть «логотип» страницы. */
.hero { position: relative; height: 100svh; min-height: 520px; max-height: 1100px; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 56% 26%; filter: grayscale(1) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5) 0, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 46%, rgba(0,0,0,.65) 100%); }
/* Всё, что поверх фото, — один нижний блок: подпись и направления стоят на одной линии
   прямо над именем, по краям DOKUCHAEVA (слева) и DIANA (справа). Середина кадра — лицу. */
.hero__body {
  position: absolute; inset: auto 0 0; z-index: 1; padding: 0 var(--gutter) clamp(18px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kicker index" "name name";
  align-items: end; column-gap: 2rem; row-gap: clamp(12px, 1.8vw, 24px);
}
.hero__kicker { grid-area: kicker; font-size: .9375rem; line-height: 1.55; max-width: 22ch; }
.hero__name {
  grid-area: name;
  font-family: "Ysabeau Infant Display", "Ysabeau Infant", Georgia, serif;
  font-weight: 500; text-transform: uppercase; letter-spacing: .01em; line-height: .9;
  /* «DOKUCHAEVA» в Ysabeau шириной ≈ 6,8 кегля (замер по пикселям): /6.95 — фамилия встаёт в колонку */
  font-size: min(15rem, calc((100vw - 2 * var(--gutter)) / 6.95));
  margin-left: -0.04em;
  /* блок шириной ровно в фамилию: DIANA выравнивается по её правому краю, а не по краю колонки */
  justify-self: start; width: max-content;
}
.hero__name span { display: block; }
/* имя сверху, фамилия во всю ширину: короткое DIANA уходит вправо, лесенка сохраняется */
.hero__name span:first-child { text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .hero__name span { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
  .hero__name span + span { animation-delay: .12s; }
  @keyframes rise { from { transform: translateY(40%); opacity: 0; } }
}

/* ---------- вступление: заявление и действия | доказательство ---------- */
.intro {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 5vw, 64px);
  display: grid; gap: 1.5rem; grid-template-areas: "lead" "cta" "stats";
}
.intro__lead { grid-area: lead; font: 400 clamp(1.375rem, 2.6vw, 2.25rem)/1.25 var(--display); letter-spacing: -0.02em; max-width: 26ch; }
.intro__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: .75rem; }
.stats { grid-area: stats; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin-top: .5rem; }
.stats li { padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.stats li:nth-child(odd) { padding-right: 1rem; }
.stats li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--hair); }
.stats a { text-decoration: none; display: block; }
/* цифры не громче лида: тот же кегль, что у заявления */
.stats b { display: block; font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1 var(--display); letter-spacing: -0.03em; }
.stats span { display: block; color: var(--stone); font-size: .875rem; margin-top: .35rem; }
@media (min-width: 760px) {
  .intro {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "lead stats" "cta stats";
    align-items: start; column-gap: 4rem; row-gap: 2rem;
  }
  .intro__cta { align-self: end; }
  .stats { margin-top: .4rem; }
}

/* ---------- секции ---------- */
.sect { max-width: var(--max); margin: 0 auto; padding: var(--sect-pad) var(--gutter) 0; }
/* переход из меню: заголовок раздела встаёт на 32px под шапкой, хвост предыдущего раздела уходит под неё
   (scroll-padding-top уже даёт +12px, поэтому 20px) */
.sect[id], .shop[id] { scroll-margin-top: calc(20px - var(--sect-pad)); }
.sect__head { display: grid; gap: .9rem; margin-bottom: clamp(24px, 4vw, 48px); }
.sect__head h2 { font-size: clamp(2rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; }
.sect__head p { color: var(--stone); max-width: 52ch; font-size: 1.0625rem; }
@media (min-width: 900px) {
  .sect__head { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 4rem; }
}
.sect__cta { margin-top: 2rem; }

/* услуги для брендов — список, а не карточки */
.svcs { border-top: 1px solid var(--ink); }
.svc { display: grid; gap: .4rem 2rem; padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--hair); }
.svc h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.svc__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.svc__text { color: var(--stone); max-width: 62ch; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 5fr 6fr 2fr; align-items: baseline; padding: 1.75rem 0; }
  .svc .fmt { grid-column: 1; grid-row: 2; }
  .svc__price { grid-column: 3; grid-row: 1; text-align: right; }
  .svc__text { grid-column: 2; grid-row: 1 / span 2; }
}
/* фото вокруг списка услуг, как у неё на Тильде: слева уличное, справа коллаж */
.brands { display: grid; gap: 1.5rem; }
.brands picture img { width: 100%; border-radius: 0; }
.brands__street { display: none; }
.brands__collage { order: 2; }
@media (min-width: 1100px) {
  .brands { grid-template-columns: 3fr 8fr 4fr; gap: 2.5rem; align-items: start; }
  .brands__street { display: block; position: sticky; top: calc(var(--bar-h) + 24px); }
  .brands__street img { aspect-ratio: 3 / 4; object-fit: cover; }
  .brands__collage { order: 0; position: sticky; top: calc(var(--bar-h) + 24px); }
  .brands .svc { grid-template-columns: 1fr auto; }
  .brands .svc h3 { grid-column: 1; grid-row: 1; }
  .brands .svc .fmt { grid-column: 1 / -1; grid-row: 2; }
  .brands .svc__price { grid-column: 2; grid-row: 1; }
  .brands .svc__text { grid-column: 1 / -1; grid-row: 3; }
}

/* логотипы клиентов */
/* марки, а не таблица: воздух вместо линеек, радиус как у фотографий на сайте */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.logos li { background: var(--paper); border-radius: 0; overflow: hidden; position: relative; }
/* у белых плиток край иначе растворяется в странице */
.logos li::after { content: ""; position: absolute; inset: 0; border-radius: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.logos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 760px) { .logos { grid-template-columns: repeat(8, 1fr); gap: 8px; } }

/* ---------- витрина: синее поле ---------- */
.shop { background: var(--band); color: var(--paper); margin-top: clamp(64px, 10vw, 128px); padding: var(--sect-pad) 0; }
.shop .sect__head { max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter); }
.shop .sect__head p { color: var(--paper); opacity: .8; }
.shop .item { color: var(--ink); }
/* мобилка: лента со свайпом, край следующей карточки виден — понятно, что можно листать */
.items {
  /* зазор = поле страницы: после прокрутки от предыдущей карточки не торчит полоска */
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 360px); gap: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain;
}
/* последняя карточка встаёт к правому краю: лента не уезжает в пустоту, слева выглядывает соседняя */
.items > .item:last-child { scroll-snap-align: end; }
.items::-webkit-scrollbar { display: none; }
.item {
  scroll-snap-align: start; background: var(--paper); border-radius: 0;
  padding: 1.25rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; min-height: 100%;
}
.item h3 { font-size: 1.25rem; line-height: 1.15; }
.fmt { display: flex; flex-wrap: wrap; gap: .35rem; }
.fmt span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; line-height: 1; padding: .4rem .7rem .4rem .55rem; border-radius: 0; background: var(--petal); }
.fmt .ico { width: 15px; height: 15px; stroke-width: 1.8; }
.svc .fmt span { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.item__text { color: var(--stone); font-size: .9375rem; flex: 1; }
.item__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--hair); }
.item__price { font: 500 1.25rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
@media (min-width: 900px) {
  .items { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: var(--max); margin: 0 auto; gap: 16px; }
  .item { padding: 1.5rem; }
}

/* ---------- комьюнити: чёрный блок ---------- */
.community { background: var(--ink); color: var(--paper); margin-top: clamp(64px, 10vw, 128px); }
.community__body { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 112px) var(--gutter); display: grid; gap: 1.25rem; }
.community__body h2 { font-size: clamp(3rem, 11vw, 10rem); line-height: .9; font-weight: 600; letter-spacing: -0.045em; }
.community__body p { max-width: 40ch; font-size: 1.125rem; opacity: .85; }
.community__body .btn { justify-self: start; }

/* ---------- обо мне ---------- */
.about { display: grid; gap: 2rem; }
.about__img img { width: 100%; border-radius: 0; }
.about__body { display: grid; gap: 1rem; align-content: start; }
.about__body h2 { font-size: clamp(2rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; margin-bottom: .5rem; }
.about__body p { max-width: 54ch; font-size: 1.0625rem; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font: 500 clamp(1.0625rem, 1.8vw, 1.3125rem)/1.3 var(--display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 300 1.75rem/1 var(--body); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--stone); max-width: 62ch; }

/* ---------- подвал ---------- */
.foot { background: var(--ink); color: var(--paper); margin-top: clamp(64px, 10vw, 128px); padding: clamp(40px, 6vw, 80px) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.foot__name { font: 600 clamp(2rem, 9vw, 8rem)/.9 var(--display); letter-spacing: -0.045em; text-transform: uppercase; margin-bottom: clamp(32px, 5vw, 64px); }
/* одна строка: Telegram — соцсети — языки, всё на одной средней линии */
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.foot__social { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.foot__langs { display: flex; align-items: center; gap: .25rem; }
.foot__legal { margin-top: 2.5rem; font-size: .8125rem; opacity: .55; }
@media (min-width: 900px) { .foot__langs { margin-left: auto; } }

/* ---------- нижняя панель на телефоне ---------- */
.dock {
  position: fixed; inset: auto 0 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair); transform: translateY(110%); transition: transform .25s;
}
.dock .btn { width: 100%; }
.dock.is-on { transform: none; }
@media (min-width: 1000px) { .dock { display: none; } }

/* ---------- заявка: на телефоне лист снизу, на десктопе окно ---------- */
.order {
  border: 0; padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); width: 100%; max-width: 100%;
  margin: auto 0 0; border-radius: 0; max-height: 92svh; background: var(--paper); color: var(--ink);
}
.order::backdrop { background: rgba(0,0,0,.5); }
.order[open] { animation: sheet-up .25s cubic-bezier(.2,.7,.1,1); }
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .order[open] { animation: none; } }
@media (min-width: 640px) {
  .order { margin: auto; max-width: 520px; border-radius: 0; padding: 2rem; }
  @keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } }
}
.order__x { position: absolute; right: 10px; top: 10px; }
.order__x button { width: 44px; height: 44px; border: 0; background: none; font: 300 2rem/1 var(--body); cursor: pointer; color: inherit; }
.order__kicker { color: var(--stone); font-size: .875rem; }
.order h2:focus { outline: none; }
.order h2 { font-size: 1.5rem; margin: .35rem 2.5rem 1.25rem 0; }
.order__form { display: grid; gap: .9rem; }
.order__form label { display: grid; gap: .35rem; font-size: .875rem; color: var(--stone); }
.order__form input, .order__form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--hair); border-radius: 0; padding: .8rem .9rem; width: 100%;
}
.order__form input:focus, .order__form textarea:focus { border-color: var(--ink); outline: none; }
.order__form .btn { width: 100%; }
.order__status:empty { display: none; }
.order__status { font-size: .9375rem; }
.order__status.is-err { color: #b00020; }
.order__alt { font-size: .875rem; color: var(--stone); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* ---------- направления ---------- */
/* Десктоп: колонка в нижнем блоке первого экрана, на одной линии с подписью.
   Телефон: чёрная «полка» под фото — продолжение постера; текстовые ссылки, а не пилюли,
   чтобы не путались с кнопками. Затухание справа показывает, что лента листается. */
.index ul { display: flex; }
.index a { text-decoration: none; }
.index--hero { grid-area: index; display: none; }
.index--strip { background: var(--band); color: var(--paper); }
.index--strip ul {
  gap: 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  /* ширины затуханий переключает site.js (fade-l / fade-r) по положению прокрутки */
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
}
.index--strip ul.fade-l { --fl: 40px; }
.index--strip ul.fade-r { --fr: 56px; }
.index--strip ul::-webkit-scrollbar { display: none; }
.index--strip li { flex: none; scroll-snap-align: start; }
.index--strip li + li { border-left: 1px solid rgba(255,255,255,.28); }
.index--strip a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1rem;
  font-size: .9375rem; font-weight: 500; white-space: nowrap;
}
.index--strip li:first-child a { padding-left: 0; }
.index--strip a:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (min-width: 1000px) {
  .index--strip { display: none; }
  .index--hero { display: block; }
  .index--hero ul { flex-direction: column; align-items: flex-end; }
  /* пункты не переносятся: иначе колонка вырастает вверх и наезжает на шапку (Диана, 27.10) */
  .index--hero a { font-size: .9375rem; line-height: 1.55; padding: .15rem 0; border-bottom: 1px solid transparent; white-space: nowrap; text-wrap: nowrap; }
  .index--hero a:hover { border-bottom-color: currentColor; }
}
/* пришли по ссылке из направлений — подсвечиваем, куда попали */
.svc:target h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; animation: land-text 2s ease-in 1 both; }
/* вспышка гаснет сама: показать, куда привела ссылка, и не оставлять подчёркивание навсегда */
/* выбранная карточка — в чёрной рамке: куда привела ссылка, на какую тапнули/кликнули;
   тап мимо снимает (site.js, класс is-picked). Рамка внутри (inset): у ленты на телефоне
   горизонтальная прокрутка, и наружная тень обрезалась бы по краю ленты. */
.item { cursor: pointer; }
.item.is-picked { box-shadow: inset 0 0 0 2px var(--ink); }
@keyframes land-text { 0%, 40% { text-decoration-color: currentColor; } 100% { text-decoration-color: transparent; } }

/* Ysabeau — антиква с узкими буквами: отрицательная разрядка от прежнего широкого гротеска ей мешает */
h1, h2, h3, .bar__mark, .stats b, .sheet nav a { letter-spacing: 0; }
h2 { font-weight: 500; }
body { font-size: 1.06rem; }

/* переносы: заголовки — ровными строками, абзацы — без одинокого слова в конце (где браузер умеет; иначе спасают неразрывные пробелы из build.js) */
h1, h2, h3, .intro__lead { text-wrap: balance; }
p, li, summary, .item__text, .svc__text { text-wrap: pretty; }

/* ---------- подстраницы с Тильды: taplink, гайды, «Давай так» ---------- */
.subpage .bar { color: var(--ink); }
.sub { max-width: 720px; margin: 0 auto; padding: calc(var(--bar-h) + clamp(28px, 6vw, 64px)) var(--gutter) 0; }
.sub__head { display: grid; gap: 1rem; }
.sub__avatar img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 30%; }
.sub__kicker { font-size: .875rem; color: var(--stone); text-transform: uppercase; letter-spacing: .06em; }
.sub h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); line-height: 1; font-weight: 500; }
.sub h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.1; margin-bottom: 1rem; }
.sub__lead { font-size: 1.15rem; }
.sub__list { display: grid; gap: .5rem; padding-left: 1.1rem; list-style: disc; }
.sub__list li::marker { color: var(--band); }
.sub__buy { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.sub__note { font-size: .875rem; color: var(--stone); }
.sub__sect { margin-top: clamp(40px, 8vw, 72px); display: grid; gap: .75rem; }
.sub__sect > p { max-width: 62ch; }
.sub__links { display: grid; gap: 8px; }
.sub__links a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center;
  padding: 1rem 1.1rem; border: 1.5px solid var(--ink); text-decoration: none; min-height: 56px;
  transition: background-color .15s, color .15s;
}
.sub__links a:hover { background: var(--band); color: var(--paper); border-color: var(--band); }
.sub__lt { font-weight: 600; font-size: 1.05rem; }
.sub__ls { grid-column: 1; font-size: .875rem; color: var(--stone); margin-top: .2rem; }
.sub__links a:hover .sub__ls { color: inherit; opacity: .8; }
.sub__lc { grid-column: 2; grid-row: 1 / span 2; font-size: .875rem; white-space: nowrap; }
.sub__prices { display: grid; gap: 12px; }
@media (min-width: 640px) { .sub__prices { grid-template-columns: 1fr 1fr; } }
.sub__price { background: var(--band); color: var(--paper); padding: 1.25rem; display: grid; gap: .6rem; align-content: start; }
.sub__price h3 { font-size: 1.3rem; }
.sub__pv { font-size: 1.6rem; font-weight: 500; }
.sub__pv span { font-size: .875rem; opacity: .8; }
.sub__price .sub__list li::marker { color: var(--paper); }
