/* ==========================================================================
   ICE THAI LAB — премиальный прозрачный лёд, Пхукет
   Дизайн-система: светлая «бумажная» база, ледяные акценты, тонкие линии.
   ========================================================================== */

:root {
  /* Палитра */
  --paper:      #F6F3EE;
  --paper-warm: #EFEAE2;
  --surface:    #FFFFFF;
  --ink:        #0E1418;
  --ink-soft:   #3A4249;
  --muted:      #7A828A;
  --line:       rgba(14, 20, 24, .12);
  --line-soft:  rgba(14, 20, 24, .07);
  --glacier:    #1F5C99;
  --glacier-lt: #7FB3E3;
  --frost:      #E4EEF7;
  --gold:       #B08A45;

  /* Типографика */
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Ритм */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --section-y: clamp(72px, 11vw, 156px);

  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------- Базовое */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
/* Атрибуты width/height в разметке нужны для резервирования места, но не должны
   мешать aspect-ratio — height задаём явно там, где кадрируем. */
img[width][height] { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--paper { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .eyebrow,
.section--ink .lead { color: rgba(246, 243, 238, .68); }
.section--ink .rule { background: rgba(246, 243, 238, .2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------ Типографика */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .5;
  flex: none;
}

h1, h2, h3, h4 { margin: 0; font-weight: 200; letter-spacing: .04em; line-height: 1.08; }

.display {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  text-transform: uppercase;
  letter-spacing: .015em;
  line-height: .98;
}

.h2 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.05;
}

.h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.65;
  margin: 0;
}

.small { font-size: .8125rem; color: var(--muted); line-height: 1.55; }

.num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--glacier);
}

/* ---------------------------------------------------------------- Кнопки */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); opacity: .88; }
.btn:active { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); opacity: 1; }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }

.btn--block { width: 100%; }

.btn[disabled] { opacity: .38; pointer-events: none; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-more:hover { gap: 16px; border-color: var(--ink); }
.link-more::after { content: '→'; }

/* --------------------------------------------------------------- Шапка */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 243, 238, .84);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand span { font-weight: 200; letter-spacing: .3em; }

.nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
  margin-left: auto;
  align-items: center;
}
.nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); border-color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.cart-btn:hover { opacity: .85; }
.cart-btn__count {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--glacier-lt);
  color: var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  place-items: center;
}
.burger span { display: block; width: 17px; height: 1px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1px; background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

@media (max-width: 1080px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 74px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
  .nav a:hover, .nav a[aria-current='page'] { border-color: var(--line-soft); }
}

/* ----------------------------------------------------------------- Герой */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: min(86vh, 860px);
  padding-block: clamp(56px, 8vw, 110px);
}
.hero__title { margin-bottom: 30px; }
.hero__title .serif { display: block; font-size: .82em; margin-top: .06em; }
.hero__lead { margin-bottom: 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hero__facts div { background: var(--paper); padding: 18px 20px; }
.hero__facts b { display: block; font-size: 1.5rem; font-weight: 200; letter-spacing: .02em; }
.hero__facts span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 34px;
  background: var(--ink);
  color: var(--paper);
  padding: 15px 22px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__badge { left: 14px; }
}

/* --------------------------------------------------------- Бегущая строка */

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 15px;
  background: var(--paper-warm);
}
.marquee__track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: slide 46s linear infinite;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.marquee__track span { display: flex; align-items: center; gap: 46px; }
.marquee__track span::after { content: '◇'; color: var(--glacier-lt); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* -------------------------------------------------------- Сетка «фичей» */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 68px);
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
  min-height: 218px;
  display: flex;
  flex-direction: column;
  transition: background .3s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature .num { margin-bottom: 26px; }
.feature h3 { margin-bottom: 12px; }
.feature p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.section--paper .feature { background: var(--paper-warm); }
.section--paper .feature:hover { background: var(--surface); }

/* ----------------------------------------------------------- Производство */

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
}
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
}
.split img { width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.split--wide img { aspect-ratio: 3 / 2; }

.steps { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; }
.steps li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: s;
  content: '0' counter(s);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--glacier);
  padding-top: 5px;
}
.steps h4 { font-size: .95rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------ Карточки коллекций */

.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.collection {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.collection:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px rgba(14, 20, 24, .4); }
.collection__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-warm); }
.collection__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.collection__img img[width][height] { height: 100%; }
.collection:hover .collection__img img { transform: scale(1.045); }
.collection__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.collection__body p { margin: 0; font-size: .875rem; color: var(--muted); flex: 1; }
.collection__body .link-more { margin-top: 16px; align-self: flex-start; }

/* ---------------------------------------------------------------- Каталог */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.variant-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 34px;
}
.variant-switch__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.seg { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button {
  padding: 10px 18px;
  background: var(--surface);
  border: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.seg button:hover { background: var(--frost); }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: rgba(14,20,24,.22); box-shadow: 0 18px 38px -26px rgba(14,20,24,.45); }

.card__media { position: relative; aspect-ratio: 1; background: #F6F3EE; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__media img[width][height] { height: 100%; }
.card:hover .card__media img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--frost);
  color: var(--glacier);
}
.badge--soon { background: rgba(176, 138, 69, .14); color: var(--gold); }
.badge--custom { background: var(--ink); color: var(--paper); }

.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { font-size: .975rem; font-weight: 500; letter-spacing: .02em; line-height: 1.3; }
.card__sub { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }

.card__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.card__price b { font-size: 1.35rem; font-weight: 300; letter-spacing: .01em; }
.card__price span { font-size: .78rem; color: var(--muted); }
.card__price em { font-size: .72rem; font-style: normal; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.card__actions { display: flex; gap: 8px; margin-top: 16px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex: none;
}
.qty button {
  width: 34px;
  height: 40px;
  background: none;
  border: 0;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-soft);
  transition: background .2s;
}
.qty button:hover { background: var(--frost); }
.qty input {
  width: 46px;
  height: 40px;
  border: 0;
  border-inline: 1px solid var(--line);
  background: none;
  text-align: center;
  font: inherit;
  font-size: .875rem;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.card .btn { flex: 1; padding: 13px 12px; font-size: 10.5px; letter-spacing: .14em; }

.note {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  background: var(--frost);
  border-left: 2px solid var(--glacier);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.note b { font-weight: 600; }

/* --------------------------------------------------------------- Таблицы */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .875rem; }
thead th {
  text-align: left;
  padding: 16px 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper); }
td:first-child { font-weight: 500; }
td.price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.price { text-align: right; }

/* -------------------------------------------------------------- Галерея */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0,0,0,.6);
}
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 3 / 5; }
.cart-line img[width][height] { height: 72px; }

/* ---------------------------------------------------------- Клиенты, лого */

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(246,243,238,.16);
  border: 1px solid rgba(246,243,238,.16);
}
.client { background: var(--ink); padding: 30px 24px; }
.client b { display: block; font-size: 1rem; font-weight: 300; letter-spacing: .18em; text-transform: uppercase; }
.client span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246,243,238,.5); }

.segments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.segments li {
  list-style: none;
  padding: 9px 18px;
  border: 1px solid rgba(246,243,238,.22);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ Условия/факты */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.fact b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 200; letter-spacing: .01em; margin-bottom: 10px; }
.fact strong { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 8px; }
.fact p { margin: 0; font-size: .85rem; color: var(--muted); }
.section--paper .fact { background: var(--paper-warm); }

/* ---------------------------------------------------------------- Формы */

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .925rem;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--glacier); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Контакты */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(246,243,238,.16);
  border: 1px solid rgba(246,243,238,.16);
}
.contact { background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.contact .num { color: var(--glacier-lt); }
.contact strong { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,243,238,.55); }
.contact a, .contact span { font-size: 1.02rem; font-weight: 300; letter-spacing: .03em; word-break: break-word; }
.contact a { border-bottom: 1px solid rgba(246,243,238,.28); align-self: flex-start; transition: border-color .2s; }
.contact a:hover { border-color: var(--paper); }

/* ---------------------------------------------------------------- Подвал */

.footer { background: var(--ink); color: rgba(246,243,238,.62); padding-block: clamp(46px, 6vw, 76px) 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer h4 { color: var(--paper); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .875rem; }
.footer a:hover { color: var(--paper); }
.footer__brand { color: var(--paper); font-size: 15px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 16px; }
.footer__bottom {
  margin-top: clamp(38px, 5vw, 62px);
  padding-top: 24px;
  border-top: 1px solid rgba(246,243,238,.14);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .1em;
}

/* ----------------------------------------------------------- Корзина (drawer) */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 24, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(480px, 100vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .38s var(--ease);
  box-shadow: -30px 0 60px -40px rgba(14,20,24,.6);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 17px;
  line-height: 1;
  transition: background .2s;
}
.icon-btn:hover { background: var(--surface); }

.drawer__body { flex: 1; overflow-y: auto; padding: 0 var(--gutter); }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px var(--gutter) 24px; background: var(--surface); }

.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--paper-warm); }
.cart-line__name { font-size: .925rem; font-weight: 500; line-height: 1.3; }
.cart-line__var { font-size: .75rem; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.cart-line__sum { font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line .qty button { width: 30px; height: 34px; }
.cart-line .qty input { width: 40px; height: 34px; }
.cart-line__del { background: none; border: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.cart-line__del:hover { color: #B3261E; }

.cart-empty { padding: 60px 0; text-align: center; color: var(--muted); font-size: .9rem; }

.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.cart-total span { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cart-total b { font-size: 1.65rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.cart-warn { font-size: .78rem; color: var(--gold); margin: 0 0 14px; line-height: 1.5; }

.checkout { display: flex; flex-direction: column; gap: 14px; padding-bottom: 26px; }
.checkout .field input, .checkout .field textarea { background: var(--paper); }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- Появление */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- Утилиты */

.stack-sm > * + * { margin-top: 14px; }
.mt-l { margin-top: clamp(30px, 4vw, 52px); }
.mb-l { margin-bottom: clamp(30px, 4vw, 52px); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
