/* Layout: светлая «галерея» — фото во всю ширину, узкие колонки текста, крупные карточки товаров, много воздуха между блоками.
   Сайт сознательно в одной светлой гамме (как сайты модных домов). */
:root {
  --paper: #F3F4F5;      /* светло-серый фон */
  --white: #FBFBFA;      /* карточки, шапка */
  --sky: #DFE6EB;        /* светло-голубой — полосы-секции */
  --ink: #221F27;        /* сливово-чёрный, как отпечаток синего сандала */
  --stone: #6E6A75;      /* второстепенный текст */
  --line: #D5D8DD;       /* тонкие линии */
  --madder: #A9566F;     /* марена — акцент, очень дозированно */

  --display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --label: 'Tenor Sans', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1440px;
  --section: clamp(72px, 11vw, 160px);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; line-height: 1.08; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: calc(var(--gutter) + clamp(0px, 3vw, 40px));
  padding-right: calc(var(--gutter-r) + clamp(0px, 3vw, 40px));
}
.label {
  font-family: var(--label); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.muted { color: var(--stone); }
.link {
  font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px; display: inline-block;
  transition: color .25s, border-color .25s;
}
.link:hover { color: var(--madder); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px; background: var(--ink); color: var(--white);
  font-family: var(--label); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .25s;
}
.btn:hover { background: #3a3441; }
.btn[disabled] { background: var(--line); color: var(--stone); cursor: default; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  background: transparent; color: var(--ink); pointer-events: none;
}
.header a, .header button { pointer-events: auto; }
[data-tone-part] { color: var(--ink); transition: color .45s ease, text-shadow .45s ease; }
[data-tone-part].on-dark { color: var(--white); text-shadow: 0 1px 16px rgba(20, 17, 24, .35); }
[data-tone-part].on-dark .logo__mono { filter: drop-shadow(0 1px 10px rgba(20, 17, 24, .35)); }
.header__logo { display: flex; justify-content: center; }
body:not(.is-home) main { padding-top: 112px; }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 84px; gap: 16px;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav--right { justify-content: flex-end; }
.nav a, .nav button { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; position: relative; padding-block: 6px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.cart-count { font-variant-numeric: tabular-nums; }
.header__tools { display: none; align-items: center; gap: 16px; justify-self: end; }
.header__tools .label { font-size: 11px; }
.burger { display: none; width: 28px; height: 28px; position: relative; }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 3px; right: 3px; height: 1px; background: currentColor; }
.burger::before { top: 9px; } .burger span { top: 14px; } .burger::after { top: 19px; }

.logo { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1; }
.logo__mono { width: 34px; height: 34px; }
.logo__word { font-family: var(--label); font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .42em; margin-right: -.42em; }
.logo__sub { font-family: var(--display); font-style: italic; font-size: 13px; letter-spacing: .06em; opacity: .72; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--white);
  padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 32px) var(--gutter);
  display: flex; flex-direction: column; gap: 40px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 18px; }
.mobile-menu nav a { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.close { font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Главная: hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; position: relative; background: var(--ink); }
/* главный экран всегда ровно во весь экран: svh учитывает панели браузера на телефонах */
.hero img { width: 100%; height: 100vh; height: 100svh; object-fit: cover; opacity: .92; }
.hero__text {
  position: absolute; inset: auto 0 0 0; text-align: center; color: var(--white);
  padding: 0 var(--gutter-r) clamp(40px, 7vw, 88px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: linear-gradient(to top, rgba(20, 17, 24, .55), transparent);
  padding-top: 160px;
}
.hero__text h1 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 300; letter-spacing: -.01em; }
.hero__text h1 em { font-style: italic; }
.hero__text .link { color: var(--white); }

/* ---------- Секции ---------- */
.section { padding-block: var(--section); }
.section--sky { background: var(--sky); }
.section--white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(34px, 4.4vw, 60px); }
.section-head .label { display: block; margin-bottom: 18px; color: var(--stone); }

.manifesto { text-align: center; max-width: 980px; margin: 0 auto; display: grid; gap: 36px; justify-items: center; }
.manifesto p.big { font-family: var(--display); font-size: clamp(26px, 3.2vw, 44px); line-height: 1.28; font-weight: 400; }
.manifesto p.big em { color: var(--madder); }
.manifesto .small { max-width: 620px; color: var(--stone); font-size: 16px; }

/* Разделы: 3 крупных плитки платков + 4 плитки остальных разделов */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.cat { display: grid; gap: 14px; grid-column: span 3; align-content: start; }
.cat:nth-child(-n+3) { grid-column: span 4; }
.cat__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--line); max-width: 100%; }
.cat:nth-child(-n+3) .cat__img { aspect-ratio: 4 / 5; }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cat:hover .cat__img img { transform: scale(1.04); }
.cat__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.cat__title { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.cat:nth-child(n+4) .cat__title { font-size: 23px; }
.cat__size { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.cat__count { font-size: 13px; color: var(--stone); margin-top: -6px; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 72px) clamp(16px, 2vw, 28px); }
.card { display: grid; gap: 18px; align-content: start; }
.card__img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--line); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.card__img img + img { opacity: 0; }
.card:hover .card__img img + img { opacity: 1; }
.card__badge {
  position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--white);
  font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 10px;
}
.card__body { display: grid; gap: 6px; }
.card__kind { color: var(--stone); }
.card__name { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; }
.price { font-family: var(--label); font-size: 14px; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__dyes { font-size: 13px; color: var(--stone); }

/* Мастерская: вертикальное видео + текст */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.process__video { position: relative; aspect-ratio: 9 / 16; max-height: 86vh; max-width: 100%; justify-self: center; width: 100%; background: var(--ink); overflow: hidden; }
.process__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound {
  position: absolute; left: 16px; bottom: 16px; color: var(--white); border: 1px solid rgba(251, 251, 250, .7);
  padding: 8px 12px; font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(20, 17, 24, .25); backdrop-filter: blur(4px);
}
.process__text { display: grid; gap: 28px; align-content: center; min-width: 0; max-width: 600px; }
.process__text h2 { font-size: clamp(38px, 4.6vw, 64px); }
.process__lead { font-family: var(--display); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.4; }
.care { display: grid; border-top: 1px solid var(--line); }
.care div { display: grid; grid-template-columns: 120px 1fr; gap: 6px 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.care .label { grid-row: span 2; padding-top: 6px; }
.care h3 { font-size: 24px; }
.care p { color: var(--stone); font-size: 14px; }

/* Красители */
.dyes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.dye { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 24px 28px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); align-items: start; }
.dye__swatch { width: 56px; height: 56px; border-radius: 50%; }
.dye h3 { font-size: 26px; }
.dye p { font-size: 14px; color: var(--stone); }
.dye .label { color: var(--ink); margin-top: 8px; display: block; }

/* Мастер-классы (тизер) */
.mk-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.mk-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); min-height: 420px; }
.mk-card__img { overflow: hidden; }
.mk-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.mk-card:hover .mk-card__img img { transform: scale(1.04); }
.mk-card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mk-card__body h3 { font-size: clamp(28px, 2.6vw, 38px); }
.mk-card__body .spacer { flex: 1; }
.mk-card__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.mk-card__body h3 a:hover { color: var(--madder); }

/* О мастере */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.about__img { aspect-ratio: 2 / 3; overflow: hidden; max-width: 100%; }
.about__img img { object-position: center top; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text { display: grid; gap: 24px; max-width: 560px; min-width: 0; }
.about__text h2 { font-size: clamp(36px, 4.6vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; font-variant-numeric: lining-nums; }
.facts span { font-size: 13px; color: var(--stone); }

/* ---------- Каталог ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.page-head h1 { font-size: clamp(44px, 6.4vw, 96px); font-weight: 300; }
.page-head p { max-width: 620px; color: var(--stone); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
.tabs a { font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); padding: 6px 0; border-bottom: 1px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a sup { font-size: 9px; margin-left: 3px; }
.empty { text-align: center; display: grid; gap: 20px; justify-items: center; padding-block: 48px 24px; max-width: 560px; margin: 0 auto; }
.empty h2 { font-size: clamp(30px, 3.4vw, 44px); }
.empty p { color: var(--stone); }

/* ---------- Товар ---------- */
.crumbs { padding-block: 28px; color: var(--stone); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 88px); align-items: start; padding-bottom: var(--section); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; cursor: zoom-in; background: var(--line); }
.gallery img:first-child { grid-column: 1 / -1; }
.info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 108px); display: grid; gap: 26px; min-width: 0; }
.info h1 { font-size: clamp(40px, 4.4vw, 64px); }
.info .price { font-size: 18px; }
.unique { display: flex; align-items: center; gap: 10px; }
.unique::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--madder); }
.specs { display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { margin: 0; color: var(--stone); }
.specs dd { margin: 0; }
details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding-block: 16px; }
details summary::-webkit-details-marker { display: none; }
details p { padding-bottom: 18px; color: var(--stone); font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20, 17, 24, .94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 92vh; width: auto; }
.lightbox .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 20px); right: calc(env(safe-area-inset-right, 0px) + 24px); color: var(--white); }

/* ---------- Мастер-классы ---------- */
.mk { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.mk__media { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; align-content: start; }
.mk__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.mk__media img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
.mk__body { display: grid; gap: 28px; align-content: start; min-width: 0; }
.mk__body h2 { font-size: clamp(40px, 4.8vw, 68px); }
.mk__lead { font-family: var(--display); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.4; max-width: 640px; }
.mk__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); padding: 7px 12px; font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.topics div { padding-block: 18px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.topics h3 { font-size: 22px; }
.topics p { font-size: 14px; color: var(--stone); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.buy .price { font-size: 22px; }

/* ---------- Портфолио ---------- */
.masonry { columns: 3 280px; column-gap: 12px; }
.masonry img { width: 100%; margin-bottom: 12px; break-inside: avoid; cursor: zoom-in; }

/* ---------- Контакты / о мастере ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { background: var(--white); padding: 32px 28px; display: grid; gap: 10px; min-width: 0; transition: background .25s; }
.contact:hover { background: var(--sky); }
.contact h3 { font-size: 28px; }
.contact p { color: var(--stone); overflow-wrap: anywhere; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(64px, 8vw, 112px) calc(env(safe-area-inset-bottom, 0px) + 32px); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid rgba(243, 244, 245, .18); }
.footer h4 { margin: 0 0 18px; font-weight: 400; color: rgba(243, 244, 245, .55); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__brand { display: grid; gap: 18px; max-width: 360px; }
.footer__brand .logo { align-items: flex-start; }

.footer__brand p { font-size: 14px; color: rgba(243, 244, 245, .7); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 12px; color: rgba(243, 244, 245, .5); }

/* ---------- Корзина ---------- */
.overlay { position: fixed; inset: 0; z-index: 75; background: rgba(20, 17, 24, .35); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 76; width: min(460px, 100%);
  background: var(--white); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) calc(var(--gutter-r) + 12px) calc(env(safe-area-inset-bottom, 0px) + 28px) 28px;
  gap: 24px; overflow-y: auto;
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head h2 { font-size: 34px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 76px; aspect-ratio: 3 / 4; object-fit: cover; }
.line h3 { font-size: 20px; }
.line p { font-size: 12px; color: var(--stone); }
.line button { font-size: 11px; color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  padding: 12px 14px; border-radius: 0; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.note { font-size: 12px; color: var(--stone); }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%);
  z-index: 90; background: var(--ink); color: var(--white); padding: 14px 22px;
  font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; max-width: calc(100% - 32px);
}

/* Анимация появления вида */
.view { animation: fade .6s ease both; }
@keyframes fade { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .mk-row { grid-template-columns: 1fr; }
  .dyes { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { min-height: 68px; }
  .header__tools { display: flex; }
  .logo__mono { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cat:nth-child(-n+3) { grid-column: span 2; }
  .cat { grid-column: span 3; }
  .process { grid-template-columns: 1fr; }
  .process__video { max-width: 440px; }
  body:not(.is-home) main { padding-top: 84px; }
  .about, .product, .mk { grid-template-columns: 1fr; }
  .info { position: static; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; }
  .hero img + img { display: none; }
  .cats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cat, .cat:nth-child(-n+3) { grid-column: span 1; }
  .cat:first-child { grid-column: 1 / -1; }
  .cat:first-child .cat__img { aspect-ratio: 4 / 3; }
  .cat__title, .cat:nth-child(n+4) .cat__title { font-size: 20px; }
  .care div { grid-template-columns: 1fr; }
  .care .label { grid-row: auto; }
  .grid { grid-template-columns: 1fr 1fr; gap: 36px 12px; }
  .card__name { font-size: 21px; }
  .card__dyes { display: none; }
  .card__row { flex-direction: column; gap: 2px; }
  .dyes, .topics { grid-template-columns: 1fr; }
  .mk-card { grid-template-columns: 1fr; }
  .mk-card__img { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 100px 1fr; }
  .logo__word { letter-spacing: .3em; margin-right: -.3em; }
}

/* ---------- Фраза «из тумана» ---------- */
.fog.is-armed .w {
  display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(10px) scale(1.02);
  transition: opacity 1.6s ease, filter 1.9s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i) * 55ms);
}
.fog.is-armed.is-in .w { opacity: 1; filter: blur(0); transform: none; }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .9s ease, visibility .9s;
  animation: preFallback .6s ease 6s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mono { width: 76px; height: 76px; }
.preloader__mono path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) forwards; }
.preloader__mono path:nth-child(2) { animation-delay: .35s; }
.preloader__mono path:nth-child(3) { animation-delay: .45s; }
.preloader__mono path:nth-child(4) { animation-delay: .3s; animation-duration: 1.3s; }
.preloader__mono path:nth-child(5) { animation-delay: .55s; }
.preloader__mono .leaf { opacity: 0; transform-origin: 50px 8px; transform: scale(.4); animation: leaf .8s ease 1.25s forwards; fill: var(--madder); }
.preloader__word { font-family: var(--label); font-size: clamp(18px, 2.2vw, 24px); letter-spacing: .42em; margin-right: -.42em; display: flex; }
.preloader__word span { opacity: 0; filter: blur(6px); animation: letter .7s ease forwards; }
.preloader__word span:nth-child(1) { animation-delay: 1.00s; } .preloader__word span:nth-child(2) { animation-delay: 1.05s; }
.preloader__word span:nth-child(3) { animation-delay: 1.10s; } .preloader__word span:nth-child(4) { animation-delay: 1.15s; }
.preloader__word span:nth-child(5) { animation-delay: 1.20s; } .preloader__word span:nth-child(7) { animation-delay: 1.30s; }
.preloader__word span:nth-child(8) { animation-delay: 1.35s; } .preloader__word span:nth-child(9) { animation-delay: 1.40s; }
.preloader__word span:nth-child(10) { animation-delay: 1.45s; } .preloader__word span:nth-child(11) { animation-delay: 1.50s; }
.preloader__word span:nth-child(12) { animation-delay: 1.55s; }
.preloader__sub { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--stone); opacity: 0; animation: letter .9s ease 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes leaf { to { opacity: 1; transform: none; } }
@keyframes letter { to { opacity: 1; filter: blur(0); } }
@keyframes preFallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
}

/* ---------- Запись на мастер-класс ---------- */
.modal { position: fixed; inset: 0; z-index: 85; background: rgba(20, 17, 24, .45); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal__box { background: var(--white); width: min(600px, 100%); max-height: 100%; overflow-y: auto; padding: clamp(24px, 4vw, 40px); display: grid; gap: 24px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); padding: 0; margin-bottom: 8px; }
.field select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--dates { display: grid; grid-template-columns: repeat(4, 1fr); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: grid; gap: 2px; text-align: center; border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.pick small { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.pick:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pick input:checked + span small { color: inherit; opacity: .7; }
.pick input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.form-error { color: var(--madder); font-size: 13px; }
.booked { display: grid; gap: 14px; justify-items: start; }
.booked__when { font-family: var(--display); font-size: 32px; line-height: 1.1; }
.mobile-menu nav a.sub { font-size: 20px; padding-left: 16px; }
@media (max-width: 600px) { .chips--dates { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Переключатель языка ---------- */
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 11px; letter-spacing: .14em; }
.lang span { opacity: .4; }
.nav .lang button { padding-block: 6px; }
.lang button { opacity: .5; transition: opacity .25s; }
.lang button.is-active, .lang button:hover { opacity: 1; }
.lang button.is-active { text-decoration: underline; text-underline-offset: 5px; }
.mobile-menu__lang { margin-top: auto; }
.mobile-menu__lang .lang { font-size: 14px; gap: 12px; }

/* ---------- Согласие в формах ---------- */
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.5; color: var(--stone); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-error span { color: var(--madder); }
.consent.is-error input { outline: 1px solid var(--madder); outline-offset: 2px; }

/* ---------- Уведомление о cookie ---------- */
.cookie {
  position: fixed; z-index: 88; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  width: min(440px, calc(100% - 32px)); background: var(--white); color: var(--ink);
  padding: 22px 24px; display: grid; gap: 16px; box-shadow: 0 18px 50px rgba(20, 17, 24, .16);
  font-size: 13px; line-height: 1.55; animation: fade .6s ease 3s both;
}
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { min-height: 44px; justify-self: start; }

/* ---------- Документы ---------- */
.legal .tabs { justify-content: center; }
.legal__body { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; font-size: 15px; }
.legal__body h2 { font-size: 28px; margin-top: 24px; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__body mark { background: var(--sky); color: var(--ink); padding: 0 3px; }
.footer__bottom span { overflow-wrap: anywhere; }

/* Мобильная шапка: логотип в одну строку, язык и корзина компактно */
.logo__word { white-space: nowrap; }
@media (max-width: 600px) {
  .header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header .logo__word { font-size: 13px; letter-spacing: .2em; margin-right: -.2em; }
  .header .logo__sub { font-size: 12px; }
  .header__tools { gap: 12px; }
  .header__tools .label, .header__tools .lang { font-size: 10px; letter-spacing: .12em; }
}
@media (max-width: 374px) {
  .header__tools .lang { display: none; } /* на самых узких экранах язык — в меню */
}

/* ---------- Кнопка «наверх» ---------- */
.totop {
  position: fixed; z-index: 45;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 8px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 17, 24, .12);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s, background .25s, color .25s;
}
.totop svg { width: 20px; height: 20px; transition: transform .3s ease; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.totop:hover svg { transform: translateY(-2px); }
@media (max-width: 600px) { .totop { width: 46px; height: 46px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); } }

/* Режим шапки 'hide' */
.header { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px) - 4px)); }

/* Режим шапки 'fade': светлая дымка под шапкой */
.header::before {
  content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  top: calc(-1 * env(safe-area-inset-top, 0px)); bottom: -36px;
  background: linear-gradient(to bottom, rgba(243, 244, 245, .96) 0%, rgba(243, 244, 245, .9) 55%, rgba(243, 244, 245, 0) 100%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  opacity: 0; transition: opacity .5s ease;
}
.header.has-haze::before { opacity: 1; }
.header.has-haze [data-tone-part] { text-shadow: none; }

/* Временный переключатель вариантов шапки */
.header-demo {
  position: fixed; z-index: 87; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  background: var(--ink); color: var(--white); padding: 10px 12px 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  box-shadow: 0 12px 40px rgba(20, 17, 24, .3); max-width: calc(100% - 32px);
}
.header-demo .label { font-size: 9px; opacity: .6; }
.header-demo div { display: flex; gap: 4px; flex-wrap: wrap; }
.header-demo button { font-family: var(--label); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 10px; border: 1px solid rgba(251, 251, 250, .25); }
.header-demo button.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (max-width: 600px) { .header-demo { bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); } }

/* ================= Анимации появления (единый стиль) ================= */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-curtain: cubic-bezier(.7, 0, .2, 1); }

/* Гамбургер → крестик */
.burger::before, .burger::after, .burger span { transition: top .35s var(--ease-out), transform .45s var(--ease-out), opacity .25s ease; }
.burger.is-open::before { top: 14px; transform: rotate(45deg); }
.burger.is-open span { opacity: 0; transform: scaleX(.2); }
.burger.is-open::after { top: 14px; transform: rotate(-45deg); }

/* Мобильное меню: «шторка» сверху вниз, пункты проявляются по очереди */
body.menu-open .header { z-index: 72; }
.mobile-menu { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-curtain); }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu nav a, .mobile-menu__lang { opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .3s ease; }
.mobile-menu.is-open nav a, .mobile-menu.is-open .mobile-menu__lang {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(.22s + var(--i, 10) * 40ms);
}

/* Корзина: выезжает справа, фон затемняется */
.overlay { opacity: 0; transition: opacity .5s ease; }
.overlay.is-open { opacity: 1; }
.drawer { transform: translateX(100%); transition: transform .6s var(--ease-curtain); }
.drawer.is-open { transform: none; }
.drawer > * { opacity: 0; transform: translateX(24px); transition: opacity .2s ease, transform .3s ease; }
.drawer.is-open > * { opacity: 1; transform: none; transition: opacity .5s ease .25s, transform .6s var(--ease-out) .25s; }

/* Окна (запись) и просмотр фото */
.modal, .lightbox { opacity: 0; transition: opacity .45s ease; }
.modal.is-open, .lightbox.is-open { opacity: 1; }
.modal__box { transform: translateY(28px) scale(.98); transition: transform .6s var(--ease-out); }
.modal.is-open .modal__box { transform: none; }
.lightbox img { transform: scale(.96); transition: transform .6s var(--ease-out); }
.lightbox.is-open img { transform: none; }

/* Уведомление о cookie */
.cookie { animation: none; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.cookie.is-open { opacity: 1; transform: none; }

/* Аккордеон: плюс превращается в минус */
details summary { position: relative; padding-right: 28px; }
details summary::before, details summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 1px; background: currentColor;
  transition: transform .45s var(--ease-out);
}
details summary::after { transform: rotate(90deg); }
details.is-expanded summary::after { transform: rotate(0deg); }
details p { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .4s var(--ease-out); }
details.is-expanded p { opacity: 1; transform: none; transition: opacity .5s ease .1s, transform .5s var(--ease-out) .1s; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .drawer, .drawer > *, .overlay, .modal, .modal__box, .lightbox, .lightbox img, .cookie, .mobile-menu nav a, .mobile-menu__lang, details p {
    clip-path: none !important; transform: none !important; opacity: 1 !important;
  }
}
/* Пока открыто мобильное меню — шапка всегда тёмная поверх белого фона */
body.menu-open [data-tone-part], body.menu-open [data-tone-part].on-dark { color: var(--ink); text-shadow: none; }
body.menu-open [data-tone-part].on-dark .logo__mono { filter: none; }
body.menu-open .header::before { opacity: 0; }

/* ---------- «В единственном экземпляре» в карточке ---------- */
.card__unique { font-size: 10px; color: var(--stone); }
.card__unique::before { width: 5px; height: 5px; }

/* ---------- Отзывы ---------- */
.reviews-tools, .reviews-page-tools { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.reviews-page-tools { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.review-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.review-filter button {
  font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s;
}
.review-filter button:hover { border-color: var(--ink); }
.review-filter button.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.slider-nav { display: flex; gap: 8px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .25s, color .25s; }
.slider-nav button:hover { background: var(--ink); color: var(--white); }
.slider-nav svg { width: 18px; height: 18px; }
.reviews-note { margin-top: -24px; margin-bottom: 28px; font-size: 13px; }

.reviews-track {
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review {
  position: relative; margin: 0; background: var(--white); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.reviews-track .review { flex: 0 0 clamp(280px, 31vw, 430px); scroll-snap-align: start; }
.review__mark { font-family: var(--display); font-size: 80px; line-height: .7; height: 34px; color: var(--madder); }
.review blockquote { margin: 0; flex: 1; }
.review p { font-family: var(--display); font-size: clamp(19px, 1.45vw, 22px); line-height: 1.45; }
.review--clamp p { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review--clamp.is-expanded p { display: block; -webkit-line-clamp: unset; }
.review__more { align-self: flex-start; font-family: var(--label); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.review figcaption { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.review__name { font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.review__topic { font-size: 13px; color: var(--stone); }
.review__pending { position: absolute; top: 20px; right: 20px; background: var(--sky); border-color: var(--sky); }
.reviews-cta { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 48px); }

.reviews-grid { columns: 3 300px; column-gap: clamp(16px, 2vw, 24px); }
.reviews-grid .review { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 24px); }

.review-form-wrap {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 88px);
  background: var(--white); padding: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 7vw, 96px);
}
.review-form__intro { display: grid; gap: 18px; align-content: start; min-width: 0; }
.review-form__intro h2 { font-size: clamp(36px, 4vw, 56px); }
#review-form { min-width: 0; }
@media (max-width: 900px) { .review-form-wrap { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .reviews-track .review { flex-basis: 84%; }
  .slider-nav { display: none; }
  .reviews-note { margin-top: -16px; }
}

/* Шапка: на средних экранах (ноутбуки с узким окном) — гамбургер, чтобы пункты не переносились */
.nav a, .nav button { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__tools { display: flex; }
}
