/* ==========================================================================
   Grisha — дизайн-система
   Тёплый молочный фон, графитовый текст, тонкая антиква + гротеск.
   ========================================================================== */

:root {
  --bg: #f5f2ed;
  --bg-2: #ebe6de;
  --ink: #1b1a17;
  --ink-2: #4a4741;
  --muted: #8b867d;
  --line: rgba(27, 26, 23, 0.14);
  --paper: #fbfaf7;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 3vw, 44px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Типографика ---------- */

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.display em {
  font-style: italic;
}

.link-line {
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}

.link-line:hover::after {
  transform: scaleX(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: transparent;
  color: var(--paper);
}

.btn--light-ghost {
  background: transparent;
  border-color: rgba(251, 250, 247, 0.5);
  color: var(--paper);
}

.btn--light-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

/* ---------- Появление при скролле ---------- */

@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1.2s var(--ease),
      transform 1.2s var(--ease);
    transition-delay: var(--d, 0ms);
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  color: var(--ink);
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.header--light {
  color: var(--paper);
}

.header--solid {
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header--open {
  color: var(--ink);
  background: transparent;
  border-bottom-color: transparent;
}

.header__side {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__side--end {
  justify-content: flex-end;
}

.header__link,
.header__burger {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__burger {
  display: none;
  align-items: center;
  gap: 10px;
}

.header__burger-lines {
  position: relative;
  width: 18px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.header__logo {
  display: block;
  line-height: 0;
}

.header__logo svg {
  display: block;
  height: 26px;
  width: auto;
}

/* Полноэкранное меню */

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out);
  visibility: hidden;
}

.menu--open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.menu__inner {
  height: 100%;
  overflow-y: auto;
  padding: calc(var(--header-h) + 6vh) var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.menu__main a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1.1;
}

.menu__cats {
  display: grid;
  gap: 10px;
}

.menu__cats a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu__foot {
  margin-top: auto;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

/* ==========================================================================
   Главная — первый экран
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #b9b7b3;
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__frame {
  position: relative;
  overflow: hidden;
}

.hero__parallax {
  position: absolute;
  /* срезаем края студийного фона, которые на фото темнее */
  inset: -6% -7%;
}

.hero__frame img {
  object-fit: cover;
  animation: heroZoom 2.6s var(--ease) both;
}

.hero__frame:nth-child(2) img {
  animation-delay: 0.15s;
}

/* На широком экране кадр режется сверху и снизу: держим верх, чтобы не срезать голову */
.hero__frame:first-child img {
  object-position: 50% 0%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) calc(var(--pad) * 0.8);
  background: linear-gradient(to top, rgba(20, 18, 15, 0.42), rgba(20, 18, 15, 0) 48%),
    linear-gradient(to bottom, rgba(20, 18, 15, 0.22), rgba(20, 18, 15, 0) 18%);
}

.hero__kicker {
  position: absolute;
  top: calc(var(--header-h) + 3vh);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: inherit;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease) 1.1s both;
}

.hero__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(80px, 22.5vw, 440px);
  line-height: 0.74;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  margin: 0 -0.02em;
  overflow: hidden;
  padding-top: 0.06em;
}

.hero__word svg {
  display: block;
  width: 100%;
  height: auto;
  animation: letterRise 1.5s var(--ease) 250ms both;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: fadeIn 1.4s var(--ease) 1.2s both;
}

@supports (animation-timeline: scroll()) {
  .hero__parallax {
    animation: heroParallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }

  .hero__word {
    animation: heroWordOut linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}

@keyframes letterRise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroParallax {
  to {
    transform: translateY(8%);
  }
}

@keyframes heroWordOut {
  to {
    transform: translateY(-18%);
    opacity: 0.2;
  }
}

/* ==========================================================================
   Главная — секции
   ========================================================================== */

.section {
  padding: clamp(80px, 14vh, 180px) var(--pad);
}

.section--tight {
  padding-top: clamp(40px, 7vh, 90px);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Манифест */

.intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  align-items: start;
}

.intro .label {
  grid-column: 1 / 3;
  padding-top: 0.9em;
}

.intro__text {
  grid-column: 3 / 12;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.9vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro__text em {
  font-style: italic;
}

.intro__aside {
  grid-column: 7 / 11;
  margin-top: clamp(24px, 4vw, 56px);
  color: var(--ink-2);
  max-width: 440px;
  display: grid;
  gap: 24px;
  justify-items: start;
}

/* Редакционная сетка категорий */

.editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  align-items: start;
}

.tile {
  display: block;
}

.tile--a {
  grid-column: 1 / 7;
}

.tile--b {
  grid-column: 8 / 11;
  margin-top: 22vh;
}

.tile--c {
  grid-column: 11 / 13;
  margin-top: 6vh;
}

.tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}

.tile__media img {
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.tile:hover .tile__media img {
  transform: scale(1.04);
}

.tile__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
}

.tile__num {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.tile__name {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.1;
  margin-right: auto;
}

/* Лента */

.rail {
  position: relative;
}

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--pad)) / 4);
  gap: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}

.rail__track::-webkit-scrollbar {
  display: none;
}

.rail__track > * {
  scroll-snap-align: start;
}

.rail__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.rail__nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease);
}

.rail__nav button:hover {
  background: var(--ink);
  color: var(--paper);
}

.rail--looks .rail__track {
  grid-auto-columns: clamp(250px, 27vw, 440px);
}

/* Карточка товара */

.card {
  display: block;
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}

.card__img {
  object-fit: cover;
  transition:
    opacity 0.7s var(--ease),
    transform 1.4s var(--ease);
}

.card__img--alt {
  opacity: 0;
}

@media (hover: hover) {
  .card:hover .card__img--alt {
    opacity: 1;
  }
  .card:hover .card__img {
    transform: scale(1.025);
  }
}

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
}

.card__name {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card__price {
  white-space: nowrap;
}

/* На узких телефонах длинное название выталкивало цену за край экрана */
@media (max-width: 400px) {
  .card__meta {
    flex-direction: column;
    gap: 2px;
  }
}

.card__color {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Блок «О коллекции» */

.label-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  align-items: stretch;
}

.label-split__main {
  grid-column: 1 / 8;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}

.label-split__main img {
  object-fit: cover;
}

.label-split__body {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: 6vh;
}

.label-split__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
}

.label-split__text {
  color: var(--ink-2);
  max-width: 380px;
  margin-bottom: 32px;
}

.label-split__small {
  position: relative;
  width: 62%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  align-self: flex-end;
  background: var(--bg-2);
}

.label-split__small img {
  object-fit: cover;
}

/* Образы */

.look {
  display: block;
}

.look__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}

.look__media img {
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.look:hover .look__media img {
  transform: scale(1.04);
}

.look__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
}

.look__num {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

/* Бутик (тёмный блок) */

.boutique {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 14vh, 180px) var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
}

.boutique .label {
  color: rgba(251, 250, 247, 0.55);
}

.boutique__lead {
  grid-column: 1 / 8;
}

.boutique__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-top: 20px;
}

.boutique__title em {
  font-style: italic;
}

.boutique__addr {
  margin-top: 32px;
  font-size: 15px;
  color: rgba(251, 250, 247, 0.75);
}

.boutique__side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}

.steps {
  display: grid;
  gap: 22px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(251, 250, 247, 0.16);
  color: rgba(251, 250, 247, 0.82);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: rgba(251, 250, 247, 0.5);
}

.boutique__btns {
  display: grid;
  gap: 10px;
}

/* ==========================================================================
   Каталог
   ========================================================================== */

.page-head {
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) var(--pad) clamp(28px, 4vw, 48px);
}

.page-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.page-head__title sup {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  vertical-align: top;
  margin-left: 10px;
  color: var(--muted);
  position: relative;
  top: 1.4em;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filters button,
.density button {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.filters button:hover,
.density button:hover,
.filters button[aria-pressed="true"],
.density button[aria-pressed="true"] {
  color: var(--ink);
}

.filters button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.density {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) var(--pad);
  padding: clamp(28px, 4vw, 48px) var(--pad) clamp(80px, 12vh, 140px);
}

.grid--large {
  --cols: 3;
}

.empty {
  padding: 80px var(--pad);
  color: var(--muted);
}

/* ==========================================================================
   Карточка товара (страница)
   ========================================================================== */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: var(--pad);
  padding: calc(var(--header-h) + 24px) var(--pad) 0;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}

.gallery__item img {
  object-fit: cover;
}

.gallery__count {
  display: none;
}

.pdp__info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(8px, 4vh, 48px) 0 48px clamp(0px, 2vw, 32px);
  display: grid;
  gap: 28px;
  align-content: start;
}

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

.pdp__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 3.4vw, 54px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pdp__sub {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--ink-2);
}

.sizes__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sizes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sizes__list button {
  min-width: 52px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.sizes__list button:hover {
  border-color: var(--ink);
}

.sizes__list button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pdp__actions {
  display: grid;
  gap: 10px;
}

.pdp__alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pdp__note {
  font-size: 12px;
  color: var(--muted);
}

.details {
  border-top: 1px solid var(--line);
}

.details details {
  border-bottom: 1px solid var(--line);
}

.details summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details summary::after {
  content: "+";
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.4s var(--ease);
}

.details details[open] summary::after {
  transform: rotate(45deg);
}

.details__body {
  padding: 0 0 22px;
  color: var(--ink-2);
  display: grid;
  gap: 10px;
}

/* ==========================================================================
   О нас / Бутик
   ========================================================================== */

.about-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) var(--pad) clamp(60px, 10vh, 120px);
}

.about-hero__title {
  grid-column: 1 / 11;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about-hero__title em {
  font-style: italic;
}

.about-pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: 0 var(--pad);
  align-items: end;
}

.about-pair__a {
  grid-column: 1 / 8;
}

.about-pair__b {
  grid-column: 9 / 12;
}

.frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}

.frame img {
  object-fit: cover;
}

.frame--wide {
  aspect-ratio: 5 / 6;
}

.prose {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: clamp(80px, 14vh, 160px) var(--pad);
}

.prose .label {
  grid-column: 1 / 4;
}

.prose__body {
  grid-column: 4 / 10;
  display: grid;
  gap: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}

.prose__body p:first-child {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 300;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
  padding: 0 var(--pad) clamp(80px, 14vh, 160px);
}

.values li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--ink-2);
}

.values h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}

.contacts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: 0 var(--pad) clamp(80px, 14vh, 160px);
}

.contacts__list {
  grid-column: 1 / 6;
  display: grid;
  gap: 0;
  align-content: start;
}

.contacts__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.contacts__row:last-child {
  border-bottom: 1px solid var(--line);
}

.contacts__row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contacts__map {
  grid-column: 7 / 13;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}

.contacts__map img {
  object-fit: cover;
  object-position: center 30%;
  transition: transform 1.6s var(--ease);
}

.contacts__map:hover img {
  transform: scale(1.03);
}

.contacts__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 15, 0.5), rgba(20, 18, 15, 0) 55%);
}

.contacts__map-cta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: var(--paper);
}

.contacts__map-cta .label {
  color: rgba(251, 250, 247, 0.7);
}

.contacts__map-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.1;
}

.order {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: clamp(60px, 10vh, 120px) var(--pad);
  border-top: 1px solid var(--line);
}

.order .section__title {
  grid-column: 1 / 6;
}

.order__steps {
  grid-column: 7 / 13;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.order__steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.order__steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--muted);
}

.order__steps strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
  padding: clamp(60px, 10vh, 120px) var(--pad) 24px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  /* колонки ссылок по ширине текста, промежутки между ними одинаковые; остальное место — первой колонке */
  grid-template-columns: minmax(0, 1fr) repeat(4, max-content);
  gap: var(--pad);
  column-gap: clamp(40px, 5vw, 104px);
}

.footer__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  font-weight: 300;
  max-width: 340px;
}

.footer__col .label {
  margin-bottom: 16px;
}

.footer__col ul {
  display: grid;
  gap: 8px;
}

.footer__col a {
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--muted);
}

.footer__word {
  margin-top: clamp(60px, 10vh, 120px);
  user-select: none;
}

.footer__word svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer__legal a {
  transition: color 0.3s var(--ease);
}

.footer__legal a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.notfound {
  min-height: 80vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  text-align: center;
  padding: var(--pad);
}

/* ==========================================================================
   Документы: оферта, политика, доставка
   ========================================================================== */

.doc {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--pad);
  padding: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--pad) clamp(80px, 12vh, 140px);
}

.doc__nav {
  grid-column: 1 / 4;
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 16px;
}

.doc__nav ul {
  display: grid;
  gap: 10px;
  max-width: 240px;
}

.doc__nav a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.doc__nav a:hover,
.doc__nav a[aria-current="page"] {
  color: var(--ink);
}

.doc__main {
  grid-column: 4 / 11;
  min-width: 0;
}

.doc__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.doc__meta {
  margin-top: 20px;
}

.doc__lead {
  margin-top: 24px;
  max-width: 620px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  font-weight: 300;
}

.doc__body {
  margin-top: clamp(40px, 7vh, 72px);
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.doc__body h2 {
  margin: 48px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  color: var(--ink);
}

.doc__body h2:first-child {
  margin-top: 0;
}

.doc__body p + p,
.doc__body p + ul,
.doc__body ul + p,
.doc__body dl + p {
  margin-top: 12px;
}

.doc__body ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.doc__body ul li {
  position: relative;
  padding-left: 22px;
}

.doc__body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.doc__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc__body strong {
  font-weight: 500;
  color: var(--ink);
}

.doc__req {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  margin: 0;
}

.doc__req dt,
.doc__req dd {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.doc__req dt {
  color: var(--muted);
}

.doc__req dd {
  color: var(--ink);
}

@media (max-width: 768px) {
  .doc {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .doc__nav {
    grid-row: 2;
    position: static;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  .doc__nav,
  .doc__main {
    grid-column: 1 / -1;
  }

  .doc__req {
    grid-template-columns: 1fr;
  }

  .doc__req dd {
    border-top: 0;
    padding-top: 0;
  }
}

/* ==========================================================================
   Плашка про cookie
   ========================================================================== */

.cookie {
  position: fixed;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 60;
  max-width: 420px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(27, 26, 23, 0.08);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  animation: fadeIn 0.6s var(--ease) both;
}

.cookie a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cookie__actions .btn {
  min-height: 40px;
  padding: 0 18px;
}

@media (max-width: 768px) {
  .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .cookie__actions .btn {
    flex: 1;
    padding: 0 10px;
  }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1024px) {
  .rail__track {
    grid-auto-columns: calc((100% - 2 * var(--pad)) / 3);
  }

  .grid {
    --cols: 3;
  }

  .grid--large {
    --cols: 2;
  }

  .label-split__body {
    grid-column: 8 / 13;
  }

  .footer__grid {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }

  .footer__col--lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  body {
    font-size: 14px;
  }

  .header__link {
    display: none;
  }

  .header__side--end .header__link:last-child {
    display: inline;
  }

  .header__burger {
    display: inline-flex;
  }

  .header__logo svg {
    height: 22px;
  }

  .hero__media {
    grid-template-columns: 1fr;
  }

  .hero__frame:nth-child(2) {
    display: none;
  }

  .hero__word {
    font-size: 23vw;
  }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
  }

  .hero__kicker {
    font-size: 10px;
  }

  .intro,
  .editorial,
  .label-split,
  .boutique,
  .about-hero,
  .about-pair,
  .prose,
  .contacts,
  .order {
    grid-template-columns: 1fr 1fr;
  }

  .intro .label,
  .intro__text,
  .intro__aside,
  .label-split__main,
  .label-split__body,
  .boutique__lead,
  .boutique__side,
  .about-hero__title,
  .prose .label,
  .prose__body,
  .contacts__list,
  .contacts__map,
  .order .section__title,
  .order__steps {
    grid-column: 1 / -1;
  }

  .intro__aside {
    margin-top: 8px;
  }

  .tile--a {
    grid-column: 1 / -1;
  }

  .tile--b {
    grid-column: 1 / 2;
    margin-top: 12px;
  }

  .tile--c {
    grid-column: 2 / 3;
    margin-top: 72px;
  }

  .rail__track {
    grid-auto-columns: 72%;
    gap: 12px;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad);
    scroll-padding: 0 var(--pad);
  }

  .rail--looks .rail__track {
    grid-auto-columns: 78%;
  }

  .rail__nav {
    display: none;
  }

  .label-split__body {
    padding-top: 12px;
  }

  .label-split__small {
    display: none;
  }

  /* На телефоне отступы через vh давали между секциями ~240px пустоты */
  .section,
  .boutique,
  .prose,
  .order {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section--tight {
    padding-top: 24px;
  }

  .values,
  .contacts {
    padding-bottom: 64px;
  }

  .footer {
    padding-top: 56px;
  }

  .boutique__side {
    margin-top: 32px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .density {
    justify-content: flex-end;
  }

  .grid {
    --cols: 2;
    gap: 28px 12px;
  }

  .grid--large {
    --cols: 1;
  }

  .pdp {
    grid-template-columns: 1fr;
    padding: var(--header-h) 0 0;
    gap: 0;
  }

  .gallery {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    position: relative;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .gallery-wrap {
    position: relative;
  }

  .gallery__count {
    display: block;
    position: absolute;
    right: var(--pad);
    bottom: 14px;
    font-size: 11px;
    letter-spacing: 0.14em;
    background: rgba(245, 242, 237, 0.85);
    padding: 4px 10px;
  }

  .pdp__info {
    position: static;
    padding: 28px var(--pad) 48px;
  }

  .about-pair__a {
    grid-column: 1 / -1;
  }

  .about-pair__b {
    grid-column: 2 / 3;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .contacts__row {
    grid-template-columns: 110px 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--pad);
    row-gap: 40px;
  }

  .footer__col a {
    overflow-wrap: anywhere;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .footer__legal ul {
    flex-direction: column;
  }
}

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

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
