/* Atelier de la Rose: витрина по черновику мастерской.
   Белый фон, антиква с курсивом в заголовках, тёмно-оливковая кнопка, много воздуха. */

:root {
  --bg: #fbfaf6;
  --alt: #f2f0ea;
  --ink: #1c1c1a;
  --muted: #62625d;
  --line: #e2e2dd;
  --field: #efefeb;
  --olive: #3c4332;
  --olive-deep: #2c3125;
  --on-olive: #f6f6f1;
  --accent: var(--olive);
  --error: #9a2f2f;
  --scrim: rgb(28 28 26 / 0.34);
  --shadow: 0 24px 60px -24px rgb(28 28 26 / 0.3);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  /* Весь сайт набран Cormorant Garamond: --sans оставлен как псевдоним, чтобы не трогать правила.
     Антиква мельче и тоньше гротеска, поэтому шкала крупнее: текст 18px/500, подписи-капсы 13px/600. */
  --sans: var(--serif);
  --fs-body: 18px;
  --fs-small: 16px;
  --fs-caps: 13px;
  --fs-btn: 15px;
  --fs-field: 17px;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 3.2vw, 56px);
  --header: 72px;
  --max: 1600px;
  --section: clamp(96px, 11vw, 160px);

  color-scheme: light;
}
@media (max-width: 760px) {
  :root { --header: 60px; }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 var(--fs-body)/1.55 var(--sans);
  font-variant-numeric: lining-nums;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure { margin: 0; }
b, strong { font-weight: 650; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--olive); color: var(--on-olive); }
input, textarea { caret-color: var(--olive); }
:focus-visible { outline: 1.5px solid var(--olive); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: #cfcfc9 transparent; }

.ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
.ic--sm { width: 18px; height: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
}
/* Ссылка-стрелка из черновика: текст, тонкая линия, стрелка */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: border-color 200ms ease, gap 300ms var(--ease);
}
.arrow-link .ic { width: 16px; height: 16px; transition: transform 300ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover { border-color: currentColor; }
  .arrow-link:hover .ic { transform: translateX(4px); }
  .arrow-link--down:hover .ic { transform: translateY(3px); }
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.04;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
.display em { font-style: italic; display: block; padding-bottom: 0.06em; }
.h1 { font-size: clamp(44px, 5.2vw, 84px); }
.h2 { font-size: clamp(38px, 4.4vw, 72px); }
.h3 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; }

/* Подпись раздела словами: «О мастерской», «Конструкция» */
.label {
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --b-bg: var(--olive);
  --b-fg: var(--on-olive);
  --b-bd: var(--olive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  background: var(--b-bg);
  color: var(--b-fg);
  border: 1px solid var(--b-bd);
  font-size: var(--fs-btn);
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 220ms ease, color 220ms ease, border-color 220ms ease, opacity 200ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.985); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: color-mix(in srgb, var(--ink) 40%, transparent); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { --b-bg: var(--olive-deep); --b-bd: var(--olive-deep); }
  .btn--ghost:not([disabled]):hover { --b-bg: var(--ink); --b-fg: var(--bg); --b-bd: var(--ink); }
}
.btn .ic { width: 16px; height: 16px; transition: transform 240ms var(--ease); }
/* На телефоне длинная подпись кнопки переносится внутри кнопки, а не распирает колонку */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; padding: 12px 20px; } }
@media (hover: hover) { .btn:hover .ic--arrow { transform: translateX(3px); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  position: relative;
  transition: opacity 160ms ease, transform 160ms var(--ease);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) { .icon-btn:hover { opacity: 0.6; } }
.icon-btn__count {
  position: absolute;
  top: 5px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--olive);
  color: var(--on-olive);
  font-size: 13px;
  font-weight: 700;
  line-height: 19px;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
}
.icon-btn__count:empty { display: none; }
.fav-btn[aria-pressed="true"] .ic { fill: currentColor; }

/* ---------------------------------------------------------------- announcement + header */
.announcement {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  background: var(--olive);
  color: var(--on-olive);
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px var(--gutter);
  line-height: 1.5;
  text-wrap: balance;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-header__left, .site-header__right { display: flex; align-items: center; gap: 6px; }
.site-header__right { justify-content: flex-end; margin-right: -10px; }
.site-header__left { margin-left: -12px; }
.nav-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  font-size: var(--fs-btn);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 160ms ease;
}
@media (hover: hover) { .nav-text:hover { opacity: 0.6; } }
.nav-text[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.logo { display: block; padding: 4px; }
.logo img { height: 40px; width: auto; }
.site-footer__logo img, .drawer .logo img { width: auto; }
.only-desktop { display: inline-flex; }
.only-mobile { display: none; }
@media (max-width: 860px) {
  .logo img { height: 32px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline-flex; }
  .nav-text--menu span { display: none; }
  .announcement { font-size: var(--fs-caps); letter-spacing: 0.08em; padding: 8px 16px; }
}
@media (min-width: 861px) { .nav-text--menu { display: none; } }

/* ---------------------------------------------------------------- drawers */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--scrim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 320ms ease; }

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 50;
  width: min(460px, 100vw);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
  overscroll-behavior: contain;
}
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer--right { right: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 0 calc(var(--gutter) - 10px) 0 var(--gutter);
  flex: none;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 8px var(--gutter) 24px; }
.drawer__foot { flex: none; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

.menu { width: min(540px, 100vw); }
.menu__list { display: grid; gap: 2px; padding-top: 12px; }
.menu__link {
  font-variant-numeric: lining-nums;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  transition: color 160ms ease;
}
.menu__link small { font-family: var(--sans); font-style: italic; font-size: 17px; color: var(--muted); letter-spacing: 0; }
@media (hover: hover) { .menu__link:hover { color: var(--accent); } }
.menu__aux { display: grid; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 18px; }
.menu .menu__list > li, .menu .menu__aux > li { opacity: 0; transform: translateY(14px); transition: opacity 360ms var(--ease), transform 520ms var(--ease); }
.menu.is-open .menu__list > li, .menu.is-open .menu__aux > li { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i, 0) * 45ms); }

/* ---------------------------------------------------------------- product grid + card */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: clamp(40px, 4vw, 64px);
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 32px; } }

.card { display: grid; gap: 12px; align-content: start; }
.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--field);
  overflow: hidden;
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 500ms var(--ease), transform 900ms var(--ease);
}
.card__alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__alt { opacity: 1; }
  .card:hover .card__media img:first-child { transform: scale(1.015); }
}
.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: start; }
.card__name { font-size: 20px; line-height: 1.25; }
.card__price { grid-column: 1; font-size: 17px; color: var(--muted); }
.card__price b { font-weight: 650; color: var(--ink); }
.card__tag { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); }
.card__fav { grid-column: 2; grid-row: 1 / span 2; margin: -10px -10px 0 0; }
.fav-btn[aria-pressed="true"] { color: var(--accent); }
.fav-btn[aria-pressed="true"] .ic { fill: currentColor; }
.card__flag { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .card__name { font-size: 18px; }
  .card__price { font-size: 16px; }
}

.img-fade { opacity: 0; transition: opacity 600ms var(--ease); }
.img-fade.is-loaded { opacity: 1; }

/* skeleton */
.sk { background: var(--field); position: relative; overflow: hidden; }
.sk-line { height: 12px; background: var(--field); margin-top: 8px; width: 70%; }
.sk-line + .sk-line { width: 40%; }

/* ---------------------------------------------------------------- media frames */
.frame { position: relative; display: block; width: 100%; overflow: hidden; background: var(--field); }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame__tmp {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: var(--fs-caps);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.92);
  background: rgb(28 28 26 / 0.42);
  padding: 3px 7px;
  pointer-events: none;
}
figcaption { font-size: 17px; font-style: italic; color: var(--muted); margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; }
figcaption b { font-weight: 600; font-style: normal; color: var(--ink); }

/* Раскрытие кадра при появлении: как штора из первого экрана */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1300ms var(--ease-io); }
  .js .reveal > img { transform: scale(1.08); transition: transform 1800ms var(--ease); }
  .js .reveal.is-in { clip-path: inset(0 0 0 0); }
  .js .reveal.is-in > img { transform: none; }
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 1100ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rise.is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: calc(100svh - var(--header) - var(--strip, 0px));
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  color: #fff;
  background: #3b4248;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgb(14 16 14 / 0.62) 0%, rgb(14 16 14 / 0.18) 42%, transparent 70%),
    linear-gradient(to right, rgb(14 16 14 / 0.28), transparent 55%);
}
.hero__logo { position: absolute; left: 50%; top: 36%; width: clamp(160px, 15vw, 260px); transform: translate(-50%, -50%); }
.hero__logo img { width: 100%; height: auto; }
.hero__text { position: absolute; left: var(--gutter); bottom: clamp(32px, 5vw, 72px); right: var(--gutter); display: grid; gap: 18px; max-width: 900px; }
.hero__label { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.hero__title { font-size: clamp(52px, 7.4vw, 128px); line-height: 0.98; color: #fff; }
.hero__aside { position: absolute; right: var(--gutter); bottom: clamp(36px, 5vw, 78px); color: #fff; }
.hero__note { position: absolute; top: 16px; right: var(--gutter); font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: rgb(14 16 14 / 0.4); padding: 4px 8px; }
@media (max-width: 760px) {
  .hero { height: calc(88svh - var(--header)); min-height: 520px; }
  .hero__logo { top: 30%; width: 150px; }
  .hero__aside { left: var(--gutter); right: auto; bottom: 28px; }
  .hero__text { bottom: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media > * { animation: settle 2200ms var(--ease) both; }
  .hero__logo { animation: fade 1400ms 200ms ease both; }
  .hero__text > *, .hero__aside { animation: rise 1000ms var(--ease) both; animation-delay: calc(450ms + var(--i, 0) * 110ms); }
}
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.stack { display: grid; gap: 22px; align-content: start; }
.stack--lg { gap: 30px; }
.lead { color: var(--muted); max-width: 46ch; font-size: 19px; line-height: 1.5; }
.lead p + p { margin-top: 1em; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* Начало формы */
.start__head { margin-bottom: clamp(36px, 5vw, 72px); }
.start__a { grid-column: 1 / 6; }
.start__a .frame { aspect-ratio: 4 / 5; }
.start__b { grid-column: 7 / -1; align-self: end; }
.start__b .frame { aspect-ratio: 9 / 7; }
@media (max-width: 860px) {
  .start .g12 { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .start__a, .start__b { grid-column: 1; }
  .start__a { width: 82%; }
}

/* Детали в движении */
.motion__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.motion .frame { aspect-ratio: 16 / 9; max-height: 86vh; width: 100%; background: #1f2120; }
.motion__ph { position: absolute; inset: auto auto 16px 16px; color: #fff; background: rgb(14 16 14 / 0.5); font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; }
.motion__ph span { display: flex; gap: 8px; align-items: center; }
.motion__ph .ic { width: 16px; height: 16px; }
@media (max-width: 760px) { .motion .frame { aspect-ratio: 4 / 5; } }

/* Добро пожаловать */
.welcome { text-align: center; display: grid; justify-items: center; gap: 28px; padding-inline: var(--gutter); }
.welcome .display { font-size: clamp(32px, 4.6vw, 76px); max-width: 18ch; }

/* Конструкция и материал */
.split { align-items: center; row-gap: 40px; }
.split__media { grid-column: 1 / 7; }
.split__media .frame { aspect-ratio: 6 / 5; }
.split__text { grid-column: 8 / -1; }
.split--rev .split__media { grid-column: 7 / -1; grid-row: 1; }
.split--rev .split__media .frame { aspect-ratio: 1 / 1; max-width: 560px; margin-left: auto; }
.split--rev .split__text { grid-column: 1 / 6; grid-row: 1; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__media, .split__text, .split--rev .split__media, .split--rev .split__text { grid-column: 1; grid-row: auto; }
  .split--rev .split__media .frame { max-width: none; }
}
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(28px, 4vw, 64px); margin-top: 12px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stat span { font-size: 16px; font-style: italic; color: var(--muted); }

/* О мастерской */
.about__banner { aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; margin-bottom: clamp(48px, 6vw, 96px); }
.about__head { grid-column: 1 / 6; }
.about__body { grid-column: 7 / -1; }
.about__body .lead { max-width: 60ch; font-size: 20px; color: var(--ink); }
.sign { margin-top: 36px; display: grid; gap: 2px; }
.sign b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.1; }
.sign span { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) {
  .about .g12 { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .about__head, .about__body { grid-column: 1; }
  .about__banner { aspect-ratio: 4 / 3; }
}

/* Дверь мастерской: переход на страницу «О мастерской» */
.door { position: relative; display: block; min-height: min(78vh, 760px); color: #fff; isolation: isolate; overflow: hidden; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1600ms var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(14 16 14 / 0.58), transparent 60%); }
.door__text { position: absolute; left: var(--gutter); bottom: clamp(32px, 5vw, 72px); display: grid; gap: 20px; }
.door__text .display { font-size: clamp(44px, 5.4vw, 92px); color: #fff; }
@media (hover: hover) and (pointer: fine) { .door:hover img { transform: scale(1.025); } .door:hover .arrow-link .ic { transform: translateX(4px); } }

/* Письма из мастерской */
.letters { background: var(--alt); text-align: center; }
.letters__inner { max-width: 620px; margin: 0 auto; display: grid; gap: 24px; justify-items: center; padding-inline: var(--gutter); }
.letters .display { font-size: clamp(40px, 4.4vw, 68px); }
.letters__form { width: 100%; display: grid; gap: 18px; margin-top: 12px; text-align: left; }
.underline-field { display: flex; align-items: center; border-bottom: 1px solid var(--ink); }
.underline-field input { flex: 1; border: 0; background: transparent; height: 56px; font-size: 19px; padding: 0; }
.underline-field input:focus { outline: none; }
.underline-field input::placeholder { color: var(--muted); }
.underline-field button { width: 48px; height: 48px; display: grid; place-items: center; transition: transform 240ms var(--ease); }
@media (hover: hover) { .underline-field button:hover { transform: translateX(4px); } }
.letters__done { font-family: var(--serif); font-size: 28px; font-style: italic; }

/* ---------------------------------------------------------------- product block */
.pdp { align-items: start; row-gap: 40px; }
.pdp__media { grid-column: 1 / 8; min-width: 0; }
.pdp__main { aspect-ratio: 4 / 5; cursor: zoom-in; }
.pdp__main img { transition: opacity 360ms ease; }
.pdp__main img.is-swapping { opacity: 0; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.pdp__thumb { aspect-ratio: 3 / 4; position: relative; overflow: hidden; background: var(--field); opacity: 0.55; transition: opacity 200ms ease; }
.pdp__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb .frame__tmp { display: none; }
.pdp__thumb[aria-current="true"] { opacity: 1; outline: 1px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .pdp__thumb:hover { opacity: 1; } }
.pdp__info { grid-column: 9 / -1; min-width: 0; }
.pdp__sticky { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 26px; padding-bottom: 24px; }
.pdp__title { font-size: clamp(44px, 4vw, 64px); line-height: 1; }
.pdp__meta { font-size: 16px; color: var(--muted); }
.pdp__desc { color: var(--ink); font-size: 19px; line-height: 1.5; max-width: 46ch; }
.price-block { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-big { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; font-variant-numeric: lining-nums; }
.price-big--tbd { font-family: var(--sans); font-size: 20px; font-style: italic; color: var(--muted); }
.price-tag { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--olive); color: var(--olive); padding: 3px 8px; }
.price-note { font-size: 16px; color: var(--muted); max-width: 44ch; }
.size-picker { display: grid; gap: 10px; }
.size-picker__head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.size-picker__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.size-btn { height: 48px; border: 1px solid var(--line); font-size: 18px; font-variant-numeric: lining-nums tabular-nums; transition: border-color 160ms ease, transform 120ms var(--ease); }
.size-btn:active { transform: scale(0.97); }
@media (hover: hover) { .size-btn:not([aria-disabled="true"]):hover { border-color: var(--ink); } }
.size-btn[aria-checked="true"] { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); color: var(--olive); font-weight: 700; }
.size-btn[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)); }
.size-hint { font-size: 16px; color: var(--error); min-height: 1em; }
.pdp__buy { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 8px; }
@media (max-width: 480px) { .pdp__buy .btn { padding: 0 14px; letter-spacing: 0.1em; white-space: normal; text-align: center; line-height: 1.3; } }
.pdp__buy .fav-btn { width: 56px; height: 56px; border: 1px solid var(--line); }

.acc { border-top: 1px solid var(--line); }
.acc > * { border-bottom: 1px solid var(--line); }
.acc summary, .acc__row {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 56px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  transition: opacity 160ms ease;
}
@media (hover: hover) { .acc summary:hover, .acc__row:hover { opacity: 0.65; } }
.acc summary::-webkit-details-marker { display: none; }
.acc .ic { width: 16px; height: 16px; transition: transform 260ms var(--ease); }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc__body { padding: 0 0 22px; font-size: 17px; line-height: 1.5; color: var(--muted); display: grid; gap: 10px; white-space: pre-line; max-width: 52ch; }
.acc__body .link { color: var(--ink); }

@media (max-width: 960px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp__media, .pdp__info { grid-column: 1; }
  .pdp__sticky { position: static; }
}
@media (max-width: 760px) {
  .pdp__media { margin-inline: calc(var(--gutter) * -1); }
  .pdp__main { display: none; }
  .pdp__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; grid-template-columns: none; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pdp__thumbs::-webkit-scrollbar { display: none; }
  .pdp__thumb { aspect-ratio: 4 / 5; opacity: 1; scroll-snap-align: start; }
  .pdp__thumb .frame__tmp { display: none; }
.pdp__thumb[aria-current="true"] { outline: 0; }
}

.size-scheme { background: #fff; border: 1px solid var(--line); padding: 16px; }
.size-scheme img { width: 100%; max-height: 420px; object-fit: contain; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.sk { background: var(--field); }
.sk-line { height: 12px; background: var(--field); margin-top: 8px; width: 70%; }
.img-fade { opacity: 0; transition: opacity 600ms var(--ease); }
.img-fade.is-loaded { opacity: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 104px) 0 28px; font-size: 18px; margin-top: auto; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer li + li { margin-top: 9px; }
.site-footer__logo img { height: 64px; width: auto; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; color: var(--muted); font-size: 15px; }
.site-footer__bottom a { white-space: nowrap; }
.site-footer__bottom > span { line-height: 1.9; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__bottom { flex-direction: column; } }

/* ---------------------------------------------------------------- catalog */
.page-head { padding-top: clamp(32px, 5vw, 72px); padding-bottom: 24px; }
.filters {
  position: sticky;
  top: var(--header);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.filters__row { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.filters__cats { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; padding-block: 4px; }
.filters__cats::-webkit-scrollbar { display: none; }
.filters__cat { white-space: nowrap; font-size: 18px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.filters__cat[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
@media (hover: hover) { .filters__cat:hover { color: var(--ink); } }
.filters__side { display: flex; align-items: center; gap: 16px; flex: none; }
.filters__count { font-size: 16px; color: var(--muted); white-space: nowrap; }
.select {
  appearance: none;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%235e5e5c' d='M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z'/%3E%3C/svg%3E") no-repeat right center / 14px;
  padding: 8px 22px 8px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.sizes-filter { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; }
.chip {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-size: 17px;
  font-variant-numeric: lining-nums tabular-nums;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 120ms var(--ease);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { border-color: var(--ink); } }
.chip--label { border: 0; min-width: 0; padding-left: 0; color: var(--muted); cursor: default; }
@media (max-width: 760px) {
  .filters__row { flex-wrap: wrap; gap: 0; }
  .filters__cats { flex-basis: 100%; }
  .filters__side { width: 100%; justify-content: space-between; padding-bottom: 6px; }
}

.empty { padding: 72px 0 96px; display: grid; justify-items: start; gap: 18px; max-width: 520px; }
.empty p { color: var(--muted); }

/* ---------------------------------------------------------------- size chart (карта мерок) */
.measure-table { width: 100%; border-collapse: collapse; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
.measure-table th, .measure-table td { text-align: left; padding: 12px 8px 12px 0; vertical-align: bottom; }
.measure-table thead th { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); line-height: 1.3; }
.measure-table tbody th { font-weight: 650; }
.measure-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.measure-table .is-sel > * { color: var(--accent); }
.measure-empty { color: var(--muted); }
.chart-block { display: grid; gap: 14px; margin-bottom: 36px; }
.chart-block h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.chart-note { font-size: 16px; font-style: italic; color: var(--muted); }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none; }
.lightbox.is-open { display: block; }
.lightbox__track { height: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.lightbox__track img { width: 100%; height: 100dvh; object-fit: contain; scroll-snap-align: center; background: var(--field); }
.lightbox__close { position: fixed; top: 10px; right: 10px; z-index: 2; background: var(--bg); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: 16px; font-weight: 600; color: var(--muted); }
.input, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 0;
  font-size: var(--fs-field);
  font-variant-numeric: lining-nums;
  transition: border-color 160ms ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field__err { font-size: 16px; color: var(--error); }
.form__error { font-size: 17px; color: var(--error); min-height: 1em; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--muted); margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--ink); }
.check > span { text-wrap: pretty; }

.options { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.option:has(input:checked) { border-color: var(--ink); }
.option[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
.option input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--muted); border-radius: 50%; margin: 0; display: grid; place-items: center; }
.option input:checked { border-color: var(--ink); }
.option input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.option b { font-weight: 650; display: block; font-size: 18px; line-height: 1.3; }
.option small { color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- cart / checkout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 96px); align-items: start; padding-bottom: 96px; }
.two-col__aside { position: sticky; top: calc(var(--header) + 24px); }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .two-col__aside { position: static; } }
.line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.line:first-child { padding-top: 0; }
.line__img { aspect-ratio: 3 / 4; background: var(--field); position: relative; overflow: hidden; }
.line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line__info { display: grid; gap: 4px; align-content: start; font-size: 18px; line-height: 1.3; }
.line__info .muted { font-size: 16px; }
.line__side { display: grid; justify-items: end; align-content: space-between; gap: 12px; font-size: 18px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 36px; margin-top: 8px; width: max-content; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; }
.qty button .ic { width: 14px; height: 14px; }
.qty span { min-width: 24px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.line__remove { font-size: 15px; color: var(--muted); }
@media (hover: hover) { .line__remove:hover { color: var(--accent); } }
.line__warn { font-size: 15px; color: var(--error); }
.summary { display: grid; gap: 14px; padding: 24px; background: var(--field); }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
.summary__row > :first-child { flex: none; }
.summary__row > :last-child { text-align: right; text-wrap: balance; }
.summary__row--total { font-size: 22px; font-weight: 650; padding-top: 14px; border-top: 1px solid var(--line); }
.summary small { font-size: 15px; line-height: 1.45; color: var(--muted); }
.drawer .line { grid-template-columns: 76px 1fr auto; }

.done { padding: clamp(48px, 8vw, 120px) 0; display: grid; gap: 20px; max-width: 620px; }

/* ---------------------------------------------------------------- account */
.account { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: 96px; }
.account__nav { display: grid; gap: 4px; align-content: start; position: sticky; top: calc(var(--header) + 24px); }
.account__nav button, .account__nav a { text-align: left; padding: 8px 0; font-size: 18px; font-weight: 600; color: var(--muted); transition: color 160ms ease; }
.account__nav [aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (hover: hover) { .account__nav button:hover { color: var(--ink); } }
@media (max-width: 760px) {
  .account { grid-template-columns: 1fr; gap: 20px; }
  .account__nav { position: static; display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .account__nav button { white-space: nowrap; }
}
.order { border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
.order + .order { margin-top: 12px; }
.order__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.order__num { font-weight: 650; font-variant-numeric: lining-nums tabular-nums; }
.status { font-size: var(--fs-caps); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.status--cancelled, .status--returned { color: var(--muted); }
.status--new { color: var(--accent); }
.order__items { display: flex; gap: 8px; flex-wrap: wrap; }
.order__items .line__img { width: 56px; }
.timeline { display: grid; gap: 6px; font-size: 16px; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.addr { border: 1px solid var(--line); padding: 18px; display: grid; gap: 4px; font-size: 18px; }
.addr + .addr { margin-top: 10px; }
.addr__actions { display: flex; gap: 16px; margin-top: 10px; font-size: 16px; }

/* ---------------------------------------------------------------- auth */
.auth { max-width: 440px; margin: 0 auto; padding: clamp(40px, 8vw, 110px) 0 96px; display: grid; gap: 28px; }
.code-input { letter-spacing: 0.5em; font-size: 28px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- text pages */
.prose { max-width: 68ch; font-size: 19px; line-height: 1.65; padding-bottom: 96px; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 6vw, 120px); align-items: start; }
@media (max-width: 960px) { .page-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 10px; font-size: 19px; margin-bottom: 32px; }

/* ---------------------------------------------------------------- dialogs */
dialog.sheet {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  width: min(520px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.sheet::backdrop { background: var(--scrim); }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-in 420ms var(--ease-drawer); }
  dialog.sheet[open]::backdrop { animation: fade-in 320ms ease; }
}
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__inner { display: flex; flex-direction: column; height: 100%; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  padding: 14px 20px;
  max-width: calc(100vw - 32px);
  transition: opacity 220ms ease, transform 320ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; text-underline-offset: 3px; margin-left: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}

/* ---------------------------------------------------------------- v3: бегущая строка, шапка */
.announcement { padding: 9px 0; text-wrap: nowrap; }
.announcement__track { display: flex; flex: none; align-items: center; }
.announcement__track span { padding: 0 28px; }
.announcement__sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; padding: 0 !important; }
@media (prefers-reduced-motion: no-preference) {
  .announcement__track { animation: ticker 48s linear infinite; }
  .announcement:hover .announcement__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-100%); } }
.cart-count:not(:empty)::before { content: "("; }
.cart-count:not(:empty)::after { content: ")"; }
.cart-count { font-variant-numeric: lining-nums; }
.nav-text--cart { gap: 4px; }
@media (max-width: 860px) {
  .nav-text--cart { padding: 0 10px; font-size: var(--fs-btn); }
  .nav-text--cart .ic { width: 22px; height: 22px; }
  .site-header__right { gap: 0; }
}

/* ---------------------------------------------------------------- v3: магазин */
.shop-head { display: grid; gap: 14px; padding-bottom: clamp(32px, 4vw, 64px); }
.shop-title { font-size: clamp(64px, 11vw, 188px); line-height: 0.9; letter-spacing: -0.03em; }
.filters[hidden] { display: none; }
.showcase { display: grid; gap: clamp(64px, 9vw, 160px); }
.showcase__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.showcase__main { grid-column: 1 / 8; aspect-ratio: 4 / 5; }
.showcase__alt { opacity: 0; transition: opacity 700ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .showcase__main:hover .showcase__alt { opacity: 1; } }
.showcase__aside { grid-column: 9 / -1; display: grid; gap: clamp(32px, 5vw, 80px); align-content: space-between; height: 100%; }
.showcase__detail { aspect-ratio: 3 / 4; width: min(70%, 320px); }
.showcase__name { font-size: clamp(44px, 4.6vw, 76px); line-height: 0.98; }
.showcase__cta { justify-self: start; margin-top: 10px; }
.showcase__item.is-rev .showcase__main { grid-column: 6 / -1; grid-row: 1; }
.showcase__item.is-rev .showcase__aside { grid-column: 1 / 5; grid-row: 1; }
@media (max-width: 860px) {
  .showcase__item { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .showcase__main, .showcase__aside, .showcase__item.is-rev .showcase__main, .showcase__item.is-rev .showcase__aside { grid-column: 1; grid-row: auto; }
  .showcase__detail { display: none; }
  .showcase__cta { justify-self: stretch; }
}

/* ---------------------------------------------------------------- v3: вещь на главной */
.piece { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-right: var(--gutter); }
.piece__media { grid-column: 1 / 8; height: min(100svh, 1000px); }
.piece__media a { position: absolute; inset: 0; }
.piece__media img { width: 100%; height: 100%; object-fit: cover; }
.piece__text { grid-column: 9 / -1; padding-block: 40px; }
.piece__title { font-size: clamp(48px, 5.4vw, 96px); line-height: 0.95; }
.piece__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.piece__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; max-width: 420px; }
.piece__strip .frame { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .piece { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .piece__media { grid-column: 1; height: auto; aspect-ratio: 4 / 5; }
  .piece__text { grid-column: 1; padding: 32px var(--gutter) 0; }
  .piece__cta .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- v3: медиа на всю ширину */
.motion--bleed { padding-block: var(--section); }
.motion--bleed .frame { aspect-ratio: auto; height: min(100svh, 1100px); max-height: none; }
.motion__cap { padding: 18px var(--gutter) 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.about__banner--bleed { height: min(100svh, 1000px); aspect-ratio: auto; max-height: none; margin-bottom: clamp(56px, 7vw, 120px); }
@media (max-width: 760px) {
  .motion--bleed .frame { height: 88svh; }
  .about__banner--bleed { height: 70svh; }
}
/* Кинематографичный параллакс кадров на всю ширину: картинка медленно сдвигается при прокрутке */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .motion--bleed .frame > img, .motion--bleed .frame > video, .about__banner--bleed > img, .door > img, .piece__media img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .welcome, .start__head { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes drift { from { transform: scale(1.12) translateY(-4%); } to { transform: scale(1.12) translateY(4%); } }
@keyframes lift { from { opacity: 0.2; transform: translateY(48px); } to { opacity: 1; transform: none; } }
.welcome .display { font-size: clamp(40px, 6vw, 108px); max-width: 14ch; line-height: 0.98; }

/* ---------------------------------------------------------------- v4: правки арт-директора */
/* Бегущая строка: одна строка, 32px, повторы через 48px с разделителем */
.announcement { height: 32px; padding: 0; align-items: center; font-size: var(--fs-caps); }
.announcement__track { width: max-content; white-space: nowrap; }
.announcement__track span { padding: 0 24px; }
.announcement__sep { margin: 0; }

/* Главная: прозрачная шапка поверх видео */
.is-home .site-header { position: absolute; left: 0; right: 0; top: 32px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; border-bottom-color: transparent; }
.is-home .site-header .logo img { filter: brightness(0) invert(1); }
.is-home .site-header.is-stuck { position: fixed; top: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px); color: var(--ink); border-bottom-color: var(--line); animation: header-in 420ms var(--ease) both; }
.is-home .site-header.is-stuck .logo img { filter: none; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.is-home .hero { height: calc(100svh - 32px); max-height: none; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__title { font-size: clamp(40px, 7vw, 120px); }

/* Начало формы: два кадра встык */
.diptych .start__head { margin-bottom: clamp(32px, 4vw, 56px); }
.diptych__frames { display: grid; grid-template-columns: 1fr 1fr; }
.diptych__frames .frame { height: 90vh; min-height: 520px; }
.diptych__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diptych__line { display: flex; align-items: baseline; gap: 24px; padding-top: 20px; flex-wrap: wrap; }
.diptych__name { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.diptych__price { font-size: 17px; color: var(--muted); flex: 1; }
@media (max-width: 760px) {
  .diptych__frames { grid-template-columns: 1fr; }
  .diptych__frames .frame { height: 78svh; min-height: 0; }
  .diptych__price { flex-basis: 100%; }
}

/* Конструкция: вертикальное видео прогулки */
.split__media--video .frame { aspect-ratio: 9 / 16; height: min(90vh, 960px); width: auto; max-width: 100%; margin: 0 auto; }
.split__media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split__media--video .frame { width: 100%; height: auto; aspect-ratio: 4 / 5; } }

/* Материал: кадр на всю ширину 70vh */
.material__band { height: 70vh; min-height: 420px; margin-bottom: clamp(48px, 6vw, 96px); }
.material__band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.material__head { grid-column: 1 / 6; }
.material__text { grid-column: 7 / 11; }
.material__swatch { grid-column: 11 / -1; align-self: end; }
.material__swatch .frame { aspect-ratio: 1; max-width: 200px; }
.material__swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .material__body { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .material__head, .material__text, .material__swatch { grid-column: 1; }
  .material__band { height: 56svh; }
}
.about__banner--bleed { display: block; }
.about__banner--bleed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Карточка товара: лента фото 8/12 и липкая информация 4/12 */
.pdp__media { grid-column: 1 / 9; }
.pdp__info { grid-column: 9 / -1; }
.pdp__sticky { top: 96px; }
.pdp__stack { display: grid; gap: 8px; }
.pdp__shot { aspect-ratio: 4 / 5; cursor: zoom-in; }
.pdp__shot img, .pdp__shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__shot--video { cursor: default; }
.size-picker__list { grid-template-columns: repeat(auto-fill, 48px); }
.size-btn { width: 48px; height: 48px; }
.buybar { display: none; }
.pdp > *, .g12 > *, .showcase__item > *, .split > * { min-width: 0; }
@media (max-width: 960px) {
  .pdp__media, .pdp__info { grid-column: 1; }
}
@media (max-width: 760px) {
  .pdp__media { margin-inline: calc(var(--gutter) * -1); }
  .pdp__stack { grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; }
  .pdp__stack::-webkit-scrollbar { display: none; }
  .pdp__shot { scroll-snap-align: start; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .buybar__price { font-family: var(--serif); font-size: 26px; line-height: 1; }
  .buybar .btn { min-height: 48px; padding: 0 18px; }
  body:has(.buybar) .site-footer { padding-bottom: 96px; }
}

/* Магазин при одной-двух вещах: крупно, половина ширины */
.showcase__main { grid-column: 1 / 7; }
.showcase__aside { grid-column: 8 / -1; }
.showcase__detail { aspect-ratio: 9 / 16; width: min(46%, 240px); }
.showcase__detail video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Вход: сплит 50/50 */
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header) - 32px); }
.login-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-split__form { display: grid; place-items: center; padding: 48px var(--gutter); }
.login-split__form .auth { width: min(400px, 100%); padding: 0; margin: 0; }
@media (min-width: 761px) { .account { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 860px) {
  .login-split { grid-template-columns: 1fr; }
  .login-split__media { height: 36svh; }
}

/* Подвал на телефоне в одну колонку */
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }
.welcome .display { font-size: clamp(40px, 5vw, 88px); max-width: 22ch; }
@media (max-width: 860px) {
  .showcase__main, .showcase__aside { grid-column: 1 !important; grid-row: auto !important; }
  .showcase__aside { height: auto; }
}

/* ---------------------------------------------------------------- v5: всё набрано Cormorant Garamond */
/* Мелкий кегль, вписанный прямо в шаблоны (кабинет, оформление, корзина), подтянут к шкале антиквы */
[style*="font-size:12px"] { font-size: 15px !important; }
[style*="font-size:13px"] { font-size: 16px !important; }
[style*="font-size:14px"] { font-size: 17px !important; }
