/* УДИВИ — образ «Тишина»: монохром, воздух и одна тёплая деталь rouge ash.
   Цвета, шрифты и черта — по бренд-буку 2026. */

:root {
  --black: #0B0B0C;
  --graphite: #2B2B2E;
  --stone: #D8D6D2;
  --paper: #F7F6F3;
  --paper-2: #EFEEEA;
  --white: #FFFFFF;
  --rouge: #8C3A3A;          /* до 10% композиции */
  --rouge-hover: #763030;
  --rouge-on-dark: #B5524F;  /* на чёрном и графите */

  --ink: var(--black);
  --muted: #5C5A56;          /* 6.9:1 на белом */
  --line: var(--stone);
  --on-dark: #F7F6F3;
  --on-dark-muted: #A9A7A3;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --header: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --radius-control: 6px;     /* скругление — только у кнопок и тегов */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern";
}
::selection { background: var(--rouge); color: var(--white); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
h2 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
p { text-wrap: pretty; }

.mono, .label, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label {
  display: inline-block;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 62ch; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; max-width: 56ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--black); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 5.5vw, 80px); }
.section + .section { padding-top: 0; }
.wrap.full { max-width: none; }
.picks { padding-top: clamp(28px, 3.2vw, 48px); }
.picks .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 12px; }
@media (max-width: 1100px) { .picks .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .picks .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ——— Черта ——— */
.sep {
  display: inline-block;
  width: 0.16em;
  height: 0.82em;
  margin: 0 0.55em;
  background: var(--rouge);
  transform: rotate(32deg);
  vertical-align: -0.06em;
}
.on-dark .sep, .sep.light { background: var(--rouge-on-dark); }
.strokes {
  height: 28px;
  display: flex;
  gap: 18px;
  overflow: hidden;
  padding-inline: var(--gutter);
  align-items: center;
}
.strokes i { flex: none; width: 4px; height: 20px; background: var(--graphite); transform: rotate(32deg); }
.strokes i.r { background: var(--rouge-on-dark); }

/* ——— Символ: круг и черта (ширина черты 10% диаметра, высота 45%, 32°) ———
   По умолчанию — белый круг, rouge-черта; .rouge — rouge-круг, белая черта;
   .on-black — белый круг на чёрном, черта светлее. */
.symbol {
  position: relative;
  display: inline-block;
  flex: none;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
}
.symbol::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10%;
  height: 45%;
  background: var(--rouge);
  transform: translate(-50%, -50%) rotate(32deg);
}
.symbol.rouge { background: var(--rouge); }
.symbol.rouge::before { background: var(--white); }
.symbol.on-black::before { background: var(--rouge-on-dark); }

/* Черта перед слоганом */
.h-stroke {
  display: inline-block;
  width: 0.15em;
  height: 0.74em;
  margin: 0 0.3em 0 0.04em;
  background: var(--rouge-on-dark);
  transform: rotate(32deg);
  vertical-align: -0.02em;
}

/* ——— Логотип: черта и слово ——— */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}
.logo i { display: block; width: 0.25em; height: 1.24em; background: var(--rouge); transform: rotate(32deg) translateY(0.04em); }
.logo span { transform: translateY(-0.04em); }
.logo-dark { color: var(--white); }
.logo-dark i { background: var(--rouge-on-dark); }

/* ——— Шапка ——— */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-main { display: flex; gap: 26px; font-size: 14.5px; }
.nav-main a, .tool { position: relative; padding-block: 8px; font-size: 14.5px; transition: color .2s; }
.nav-main a:hover, .tool:hover { color: var(--rouge); }
.nav-main a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--rouge);
}
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.saved-link .mono { font-size: 12.5px; margin-left: 2px; }
.saved-link.has-items .mono { color: var(--rouge); }
.menu-button { display: none; }

/* ——— Кнопки ——— */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  background: var(--rouge);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .15s;
}
.button:hover { background: var(--rouge-hover); }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: var(--white); }
.on-dark .button.secondary { color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .button.secondary:hover { background: var(--white); color: var(--black); }
.button[aria-pressed="true"].secondary { background: var(--ink); color: var(--white); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--rouge); text-decoration-color: currentColor; }
.on-dark .link { text-decoration-color: rgba(255,255,255,.35); }
.on-dark .link:hover { color: var(--white); text-decoration-color: var(--rouge-on-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--white);
  white-space: nowrap;
}
.tag.accent { border-color: var(--rouge); color: var(--rouge); }

/* ——— Изображения: ч/б, цвет — только по приближении ——— */
.bw { filter: grayscale(1) contrast(1.04); }
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.contain img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }

/* ——— Шапка страницы ——— */
.page-head { padding-top: clamp(28px, 3.6vw, 52px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 14px; color: var(--muted); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumb a:hover { color: var(--rouge); }
.crumb .sep { height: 10px; width: 2px; margin: 0 10px; }

.section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.2vw, 32px); }
.section-top h2 { max-width: 20ch; }
.section-top p { color: var(--muted); max-width: 44ch; margin-top: 8px; }

/* ——— Главная: первый экран ——— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  min-height: calc(100svh - var(--header));
  background: var(--black);
}
.hero-photo { position: relative; overflow: hidden; background: var(--black); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 4.4vw, 72px);
  color: var(--white);
}
.hero-panel .label { color: var(--on-dark-muted); }
.hero-panel h1 { margin-top: 22px; font-size: clamp(48px, 6.4vw, 104px); letter-spacing: -0.05em; line-height: 0.96; }
.hero-panel p { margin-top: 26px; max-width: 36ch; font-size: 17px; color: #D9D7D3; }
.hero-panel .actions { margin-top: 40px; }

/* ——— Сетка вещей ——— */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; }
.card .media { aspect-ratio: 1; }
.card .media img { filter: grayscale(1) contrast(1.04); transition: filter .7s var(--ease), transform .9s var(--ease); }
@media (hover: hover) {
  .card:hover .media img, .card:focus-within .media img { filter: none; }
  .card:hover .media img { transform: scale(1.025); }
}
.card .media svg { width: 70%; height: 70%; margin: 15%; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.card-body { padding-top: 12px; display: grid; gap: 2px; }
.card-brand { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); justify-self: start; }
.card-brand:hover { color: var(--rouge); }
.card .card-brand { position: relative; z-index: 2; }
.card h3 { font-size: 16px; line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .price { font-size: 13.5px; margin-top: 4px; }
.card .card-note { font-size: 13px; color: var(--muted); }
.card .tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.save {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--black);
  transition: color .2s, background-color .2s, transform .2s;
}
.save svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.save:hover { background: rgba(255,255,255,.8); }
.save[aria-pressed="true"] { color: var(--rouge); }
.save[aria-pressed="true"] svg { fill: currentColor; }
.save.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.22); } }

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 0;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.brand-strip > span:first-child { color: var(--muted); margin-right: 18px; }
.brand-strip a { display: inline-flex; align-items: baseline; gap: 6px; transition: color .2s; }
.brand-strip a:hover { color: var(--rouge); }
.brand-strip small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.brand-strip .sep { height: 12px; width: 2px; margin: 0 14px; }

/* ——— Поводы ——— */
.occasions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.occasions .side { display: grid; gap: 16px; }
.occasion { position: relative; display: flex; flex-direction: column; }
.occasion .media { aspect-ratio: 16 / 9; }
.occasion .media img { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.occasion:hover .media img { transform: scale(1.03); }
.occasion.big .media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.occasion-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 10px; }
.occasion-caption h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.occasion-caption p { color: var(--muted); font-size: 14px; text-align: right; }
.occasion:hover h3 { color: var(--rouge); }

/* ——— Лица мастеров ——— */
.faces { background: var(--black); color: var(--white); }
.faces .section-top p { color: var(--on-dark-muted); }
.faces-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.face { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--graphite); }
.face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.94); transition: transform 1.1s var(--ease), filter .6s; }
.face:hover img { transform: scale(1.04); filter: grayscale(1) contrast(1.06) brightness(1); }
.face .face-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 6px 9px;
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.face.next { grid-column: span 2; aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2.4vw, 32px); background: var(--rouge); }
.face.next .mark { position: absolute; right: 8%; top: 50%; width: 30%; margin: 0; translate: 0 -50%; transition: transform .9s var(--ease); }
.face.next:hover .mark { transform: rotate(-8deg); }
.face.next > span:last-child { position: relative; max-width: 62%; }
.face.next h3 { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.025em; }
.face.next p { font-size: 14px; color: rgba(255,255,255,.82); margin-top: 6px; }
.face.next:hover { background: var(--rouge-hover); }
.faces .fine { color: var(--on-dark-muted); margin-top: 16px; }

/* ——— Подарок (приглашение) ——— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .media { aspect-ratio: 3 / 2; }
.invite h2 { max-width: 14ch; }
.invite p { margin-top: 14px; color: var(--muted); max-width: 42ch; font-size: 16px; }

/* ——— Мастерские: список ——— */
.workshop-intro { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); }
.workshop-intro .intro-text p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), padding .3s var(--ease);
}
.row .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.row p { color: var(--muted); font-size: 15px; }
.row .count { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
a.row:hover h3 { color: var(--rouge); }
a.row:hover { padding-left: 10px; }

/* Большой список мастерских */
.workshop-list .row { grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.3fr) 128px; align-items: center; padding: 16px 0; }
.workshop-list .row h3 { font-size: clamp(22px, 2.2vw, 30px); }
.workshop-list .thumb { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; }
.workshop-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.workshop-list .thumb svg, .tech svg { width: 60%; height: 60%; margin: auto; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.workshop-list .thumb, .tech { display: grid; place-items: center; }
.workshop-list .meta { display: grid; gap: 6px; }

/* ——— Каталог ——— */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.controls label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
select, input, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 15.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B0B0C' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center / 12px;
  cursor: pointer;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-bottom: 2px solid var(--rouge); }
::placeholder { color: #8A8884; }
.controls-toggle { display: none; margin-top: 18px; font-size: 14px; font-weight: 500; }
.result-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px 0 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.result-bar .mono { color: var(--ink); }

/* ——— Карточка вещи ——— */
.product { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.product-media { position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.product-media .media { aspect-ratio: 1; }
.product-media .media svg { width: 70%; height: 70%; margin: 15%; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.product-media .tag { margin-top: 12px; }
.product-info { padding-top: 6px; }
.product-info h1 { font-size: clamp(30px, 3.4vw, 46px); margin-top: 10px; max-width: 14ch; }
.product-info .desc { margin-top: 12px; font-size: 16px; max-width: 46ch; }
.product-info .price { display: block; font-size: 21px; margin-top: 18px; }
.product-info .price small { display: block; margin-top: 4px; font-family: var(--font); font-size: 13px; color: var(--muted); }
.why { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.why p { margin-top: 6px; font-size: 16px; max-width: 46ch; }
.product-info .fine { margin-top: 16px; }
.passport { margin-top: 36px; border-top: 1px solid var(--ink); }
.passport h2 { font-size: 20px; letter-spacing: -0.025em; padding: 16px 0 2px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; cursor: pointer; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 18px; font-weight: 400; color: var(--muted); transition: transform .3s var(--ease); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 14px; color: var(--muted); max-width: 60ch; }
details .link { margin-top: 10px; }
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.next-link { padding: 16px 0; border-top: 1px solid var(--ink); }
.next-link h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; transition: color .2s; }
.next-link p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.next-link:hover h3 { color: var(--rouge); }

/* ——— Сплит-заголовок (мастерская, бренд, линейка) ——— */
.split-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(36px, 4.5vw, 64px); }
.split-hero h1 { margin-top: 12px; }
.split-hero .lead { margin-top: 14px; }
.split-hero .media { aspect-ratio: 3 / 2; }
.split-hero .tech { aspect-ratio: 3 / 2; background: var(--paper); }
.split-hero .fine { margin-top: 16px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; }
.byline .avatar { width: 44px; height: 44px; display: grid; place-items: center; background: var(--black); color: var(--white); font-weight: 500; }
.byline .muted { display: block; }
.credits { margin-top: 24px; font-size: 15px; }
.credits a:hover { color: var(--rouge); }

.note-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.note-block h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 10px; }
.note-block p + p { margin-top: 14px; }

.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); padding: 28px 0; border-top: 1px solid var(--ink); }
.facts h2 { font-size: 24px; }
.facts dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts a:hover { color: var(--rouge); }

/* Этапы линейки */
.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line); }
.stage { padding: 18px 12px 0 0; font-size: 15px; font-weight: 500; }
.stage i { display: block; width: 3px; height: 16px; margin: 0 0 14px 4px; background: var(--stone); transform: rotate(32deg); }
.stage.done i { background: var(--rouge); }
.stage small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.stage:not(.done) { color: var(--muted); }

/* Бренды */
.brands-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.brand-card { display: flex; flex-direction: column; }
.brand-card .media { aspect-ratio: 4 / 3; }
.brand-card .media img { filter: grayscale(1) contrast(1.05); transition: transform 1s var(--ease); }
.brand-card:hover .media img { transform: scale(1.03); }
.brand-card h3 { margin-top: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; transition: color .2s; }
.brand-card:hover h3 { color: var(--rouge); }
.brand-card p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.brand-card .label { margin-top: 6px; }

/* Истории (лукбуки, журнал) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.story .media { aspect-ratio: 3 / 2; }
.story .media img { transition: transform 1s var(--ease); }
.story:hover .media img { transform: scale(1.03); }
.story .label { margin-top: 12px; }
.story h3 { margin-top: 4px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; transition: color .2s; }
.story:hover h3 { color: var(--rouge); }
.story p { margin-top: 4px; color: var(--muted); max-width: 48ch; }

.look-hero { aspect-ratio: 21 / 9; margin-bottom: clamp(28px, 3.5vw, 48px); }

/* Чтение */
.reading { max-width: 680px; margin-inline: auto; padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 80px); padding-inline: var(--gutter); box-sizing: content-box; }
.reading h1 { margin-top: 18px; }
.reading > p { margin-top: 16px; font-size: 17px; line-height: 1.6; }
.reading h2 { margin-top: 36px; font-size: 24px; }
.reading h2 + p { margin-top: 10px; }
.reading .media { margin-top: 28px; aspect-ratio: 16 / 10; }
.reading .fine { font-size: 14px; }
.reading .actions { margin-top: 32px; }

/* Подарок */
.gift { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(44px, 5.5vw, 80px); }
.form { display: grid; gap: 6px; }
.form label { font-size: 13px; font-weight: 500; margin-top: 14px; }
.form label:first-child { margin-top: 0; }
.form .button { margin-top: 24px; justify-self: start; }
.form .fine { margin-top: 14px; }
.panel { background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.gift-results h2 { font-size: clamp(26px, 2.6vw, 36px); }
.gift-results .summary { margin: 8px 0 24px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.gift-results .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gift-start .media { aspect-ratio: 16 / 9; margin-bottom: 20px; }
.gift-start p { margin-top: 14px; color: var(--muted); max-width: 44ch; }

/* Для брендов */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(44px, 5.5vw, 80px); }
.steps { margin-top: 20px; border-top: 1px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.join .fine { margin-top: 24px; }
.join h2 { font-size: clamp(24px, 2.4vw, 32px); }
.panel > p { margin-top: 10px; color: var(--muted); }
.panel .form { margin-top: 28px; }
.success .button { margin-top: 28px; }
.draft { margin-top: 20px; min-height: 180px; padding: 14px; border: 1px solid var(--line); background: var(--white); font-family: var(--mono); font-size: 13px; }

/* Избранное, пусто, 404 */
.saved-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.saved-head button:hover { color: var(--rouge); }
.subhead { font-size: 22px; margin: 0 0 24px; }
.empty { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.empty .mark { width: 56px; margin-bottom: 28px; }
.empty h2 { max-width: 18ch; }
.empty p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.end { height: clamp(44px, 5.5vw, 80px); }

/* ——— Подвал ——— */
.site-footer { background: var(--black); color: var(--on-dark); padding-top: 28px; }
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter) 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
}
.footer-slogan { margin-top: 20px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols > div { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer-cols .label { color: var(--on-dark-muted); margin-bottom: 8px; }
.footer-cols a, .footer-cols button { text-align: left; color: var(--on-dark); transition: color .2s; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--rouge-on-dark); }
.footer-fine {
  max-width: var(--max);
  margin-inline: auto;
  padding: 20px var(--gutter) 28px;
  display: flex;
  justify-content: space-between;
  gap: 8px 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--graphite);
  font-size: 13px;
  color: var(--on-dark-muted);
}
.footer-fine a { text-decoration: underline; text-underline-offset: 3px; }
.footer-fine a:hover { color: var(--white); }

/* ——— Диалоги ——— */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgba(11, 11, 12, .55); }
.sheet { width: 100%; max-width: none; max-height: none; margin: 0; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: var(--header); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.search-sheet { position: fixed; inset: 0 0 auto 0; max-height: 86dvh; padding: 0 var(--gutter) 40px; overflow: auto; }
.search-sheet[open] { animation: drop .45s var(--ease); }
.search-input { font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.03em; border-bottom-width: 1px; padding: 6px 0 12px; }
.search-results { margin-top: 28px; display: grid; gap: 32px; max-width: 900px; }
.search-group { display: grid; }
.search-group .label { margin-bottom: 6px; }
.result { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result .thumb { width: 56px; height: 56px; background: var(--paper); overflow: hidden; }
.result .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.result .thumb .sep { margin: 20px 0 0 26px; }
.result small { display: block; color: var(--muted); font-size: 13px; }
.result:hover { color: var(--rouge); }
.modal { width: min(520px, calc(100% - 32px)); margin: auto; padding: 0 32px 32px; }
.modal h2 { font-size: 28px; }
.modal #follow-desc { margin-top: 8px; }
.modal .form { margin-top: 24px; }
.menu-sheet { position: fixed; inset: 0; height: 100dvh; padding: 0 var(--gutter) 32px; display: none; flex-direction: column; }
.menu-sheet[open] { display: flex; animation: fade .3s var(--ease); }
.menu-links { display: grid; gap: 2px; margin-bottom: 32px; }
.menu-links a { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; padding: 6px 0; }
.menu-links a[aria-current="page"] { color: var(--rouge); }
.menu-sheet .button { align-self: flex-start; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  max-width: calc(100% - 32px);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Наверх */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--black);
  color: var(--white);
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease), background-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--rouge); }

/* Смена страницы */
#app:focus { outline: none; }
#app.enter > * { animation: rise .6s var(--ease) both; }
#app.enter > *:nth-child(2) { animation-delay: .05s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ——— Адаптив ——— */
@media (max-width: 1100px) {
  .faces-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .face.next { grid-column: span 1; aspect-ratio: 1; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-main { gap: 18px; }
  .header-tools { gap: 18px; }
  .tool-join { display: none; }
  .workshop-list .row { grid-template-columns: 44px minmax(0, 1fr) 140px; }
  .workshop-list .row p.short { display: none; }
}

@media (max-width: 900px) {
  :root { --header: 60px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .nav-main, #open-search { display: none; }
  .logo { font-size: 24px; }
  .menu-button { display: inline-block; }
  .header-tools { gap: 20px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-panel { padding: 36px var(--gutter) 44px; }

  .split, .workshop-intro, .split-hero, .product, .gift, .join, .note-block, .facts, .footer-inner { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .occasions { grid-template-columns: 1fr; }
  .occasions .side { grid-template-rows: none; }
  .occasion .media { aspect-ratio: 3 / 2; flex: none; }
  .occasion.big .media { aspect-ratio: 4 / 3; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls[hidden] { display: none; }
  .controls-toggle { display: inline-flex; }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row p, .row .count { grid-column: 2; }
  .workshop-list .row { grid-template-columns: 40px minmax(0, 1fr) 112px; }
  .split-hero { align-items: start; }
}

@media (max-width: 640px) {
  .grid, .grid.three, .brands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .gift-results .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .face.next { aspect-ratio: 2 / 1; }
  .face.next { grid-column: span 2; }
  .face.next .mark { width: 22%; right: 6%; }
  .face.next > span:last-child { max-width: 64%; }
    .face .face-label { left: 8px; bottom: 8px; font-size: 10px; max-width: calc(100% - 16px); }
  .duo, .next-links { grid-template-columns: 1fr; }
  .card h3 { font-size: 15px; }
  .card .save { right: 4px; top: 4px; }
  .controls { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage { display: grid; grid-template-columns: 24px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stage i { margin: 2px 0 0 6px; }
  .facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .brand-strip .lead-in { width: 100%; }
  .look-hero { aspect-ratio: 4 / 3; }
  .occasion-caption { flex-direction: column; gap: 2px; }
  .occasion-caption p { text-align: left; }
  .workshop-list .row { grid-template-columns: 32px minmax(0, 1fr) 88px; gap: 12px; }
  .hero-panel h1 { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
