/* ==========================================================================
   PION — доставка цветов. Демо-витрина.
   Палитра: крем + пудрово-розовый, тонкие линии, много воздуха.
   ========================================================================== */

:root {
  --cream:      #fbf7f4;
  --cream-2:    #f6eee9;
  --cream-3:    #f1e5e0;
  --blush:      #f0dcdd;
  --blush-soft: #f8ebeb;
  --rose:       #c2778a;
  --rose-deep:  #9d4f66;
  --ink:        #2c2226;
  --ink-2:      #6d5c63;
  --ink-3:      #9b8a90;
  --line:       #e6d9d5;
  --line-2:     #efe4e0;
  --white:      #ffffff;
  --sale:       #a8455c;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --gut: clamp(18px, 4vw, 56px);
  --maxw: 1360px;
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
  --head-total: 114px; /* полоска + шапка, уточняется из JS */
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

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

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* цифры — всегда гротеск, ровные табличные */
.num, .price {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* серифные заголовки не должны ронять старостильные цифры */
h1, h2, h3, h4,
.display, .logo, .page-title, .pc-name, blockquote {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* --------------------------------------------------------------------------
   Reveal (IntersectionObserver + transition)
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.09s; }
.rv-d2 { transition-delay: 0.18s; }
.rv-d3 { transition-delay: 0.27s; }
.rv-d4 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}

.lede {
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--ink-2);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn-rose { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }
.btn-rose:hover { background: var(--ink); border-color: var(--ink); }

.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-arrow:hover { color: var(--rose-deep); border-color: var(--rose); }
.link-arrow svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Полоска доставки
   -------------------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 55;
  background: var(--cream);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 10px var(--gut);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.topbar b { font-weight: 600; color: var(--rose-deep); }
.topbar .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--rose);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line-2);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}
.header-in {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 76px;
}

.logo {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
  padding-left: 0.34em;
  white-space: nowrap;
}
.logo-mark { color: var(--rose-deep); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  margin-inline-start: auto;
}
.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.35s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--rose);
  transition: right 0.4s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
.main-nav + .header-actions { margin-inline-start: 0; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.35s var(--ease);
}
.icon-btn:hover { background: var(--cream-3); }
.icon-btn svg { width: 21px; height: 21px; }

.cart-count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: var(--white);
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cart-count.on { opacity: 1; transform: none; }

.burger { display: none; }

/* прозрачная шапка поверх светлого героя */
body.has-hero .topbar {
  background: transparent;
  border-color: transparent;
}
body.has-hero .site-header {
  background: transparent;
  border-color: transparent;
}
body.has-hero .site-header.scrolled {
  background: var(--cream);
  border-color: var(--line-2);
}
/* герой подтягивается под шапку, чтобы первый экран был ровно 100svh */
body.has-hero .hero { margin-top: calc(-1 * var(--head-total)); }

/* --------------------------------------------------------------------------
   Мобильное меню
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: min(340px, 88vw);
  padding: 26px var(--gut) 40px;
  background: var(--cream);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: none; }
.mn-close {
  display: block;
  margin-left: auto;
  margin-bottom: 24px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 26px;
}
.mn-foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-2);
}
.mn-foot a { display: inline; border-bottom: 0; padding: 0; font-family: var(--sans); font-size: 13px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blush-soft);
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(252, 245, 243, 0.82) 0%, rgba(252, 245, 243, 0.34) 8%, rgba(255, 255, 255, 0) 17%),
    linear-gradient(to top, rgba(249, 236, 234, 0.95) 0%, rgba(250, 239, 237, 0.7) 32%, rgba(252, 244, 242, 0.18) 58%, rgba(255, 255, 255, 0) 80%),
    linear-gradient(to right, rgba(250, 239, 237, 0.86) 0%, rgba(250, 240, 238, 0.52) 30%, rgba(255, 255, 255, 0) 62%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(56px, 9vh, 110px);
  padding-top: 140px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(157, 79, 102, 0.35);
  border-radius: 999px;
  background: rgba(255, 253, 252, 0.72);
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8.6vw, 122px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 14ch;
}
.hero h1 em {
  display: block;
  font-style: italic;
  color: var(--rose-deep);
}
.hero-sub {
  margin: 0 0 34px;
  max-width: 44ch;
  font-size: clamp(15px, 1.35vw, 19px);
  color: var(--ink-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-scroll {
  position: absolute;
  right: var(--gut);
  bottom: clamp(56px, 9vh, 110px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--ink-3), transparent);
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 84px); }
.section-cream { background: var(--cream-2); }
.section-blush { background: var(--blush-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.section-head h2 em { font-style: italic; color: var(--rose-deep); }
.section-head .lede { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Категории
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--cream-3);
  aspect-ratio: 3 / 4;
}
.cat-tile:nth-child(1),
.cat-tile:nth-child(2) { grid-column: span 3; aspect-ratio: 16 / 11; }
.cat-tile:nth-child(n + 3) { grid-column: span 2; aspect-ratio: 4 / 5; }
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 34, 38, 0.5) 0%, rgba(44, 34, 38, 0.12) 40%, rgba(44, 34, 38, 0) 68%);
}
.cat-tile:hover img { transform: scale(1.045); }
.cat-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  color: var(--white);
}
.cat-cap .n {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 27px);
  line-height: 1.15;
}
.cat-cap .q {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0.85;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Карточка товара
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: clamp(14px, 1.7vw, 30px) clamp(10px, 1.3vw, 22px);
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.pc-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--cream-2);
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.04); }

.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pc-badge.sale {
  background: var(--sale);
  color: var(--white);
  font-variant-numeric: lining-nums tabular-nums;
}

.pc-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease);
}
.pc-quick:hover { background: var(--rose-deep); }
.product-card:hover .pc-quick, .product-card:focus-within .pc-quick { opacity: 1; transform: none; }

.pc-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.pc-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.pc-price .old {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   Слайдер-лента
   -------------------------------------------------------------------------- */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(238px, 1fr);
  gap: clamp(10px, 1.3vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover { background: var(--ink); color: var(--cream); }
.rail-btn[disabled] { opacity: 0.3; pointer-events: none; }

/* --------------------------------------------------------------------------
   Блок о бренде
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}
.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
}
.about-media figure { margin: 0; border: 1px solid var(--line-2); overflow: hidden; }
.about-media figure:first-child { margin-top: clamp(24px, 5vw, 64px); }
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.1vw, 56px);
  line-height: 1.06;
  margin: 10px 0 18px;
}
.about-text h2 em { font-style: italic; color: var(--rose-deep); }
.about-text p { color: var(--ink-2); margin: 0 0 16px; max-width: 52ch; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 30px);
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about-stats div b {
  display: block;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}
.about-stats div span {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   Преимущества
   -------------------------------------------------------------------------- */
.perk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.perk {
  background: var(--cream);
  padding: clamp(24px, 2.6vw, 38px);
}
.perk svg {
  width: 30px;
  height: 30px;
  color: var(--rose-deep);
  margin-bottom: 18px;
  stroke-width: 1.1;
}
.perk h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.perk p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Полоса-баннер (подписка)
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.band-media { position: relative; min-height: 340px; }
.band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-body {
  padding: clamp(30px, 4.4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.band-body h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.07;
  margin: 10px 0 16px;
}
.band-body h2 em { font-style: italic; color: var(--rose-deep); }
.band-body p { color: var(--ink-2); margin: 0 0 24px; max-width: 46ch; }
.band-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.band-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.band-list svg { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--rose); }

/* --------------------------------------------------------------------------
   Отзывы
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
}
.review {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--rose); }
.stars svg { width: 14px; height: 14px; }
.review blockquote {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.42;
  color: var(--ink);
}
.review .who {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--ink-3);
}
.review .who b { display: block; color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Подписка на письма
   -------------------------------------------------------------------------- */
.nl { text-align: center; }
.nl h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.06;
  margin: 12px 0 14px;
}
.nl h2 em { font-style: italic; color: var(--rose-deep); }
.nl p { color: var(--ink-2); margin: 0 auto 30px; max-width: 46ch; }
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
}
.nl-form input {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.nl-form input::placeholder { color: var(--ink-3); }
.nl-done {
  max-width: 480px;
  margin-inline: auto;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #cdbfc4;
  padding-top: clamp(48px, 6vw, 84px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(26px, 3vw, 54px);
  padding-bottom: clamp(38px, 5vw, 64px);
}
.site-footer .logo { color: var(--cream); }
.f-about { margin: 18px 0 0; font-size: 14px; max-width: 34ch; color: #b6a6ac; }
.f-social { display: flex; gap: 8px; margin-top: 22px; }
.f-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cdbfc4;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.f-social a:hover { background: var(--cream); color: var(--ink); }
.f-social svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }

.footer-demo {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-block: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #9d8f95;
}
.footer-demo a { color: var(--cream); border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   Корзина-drawer
   -------------------------------------------------------------------------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(44, 34, 38, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.veil.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(430px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform 0.5s var(--ease);
}
.cart-drawer.open { transform: none; }
.cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-2);
}
.cd-head h3 { font-family: var(--serif); font-size: 28px; }
.cd-body { flex: 1; overflow-y: auto; padding: 6px 22px; }
.cd-empty { padding: 60px 0; text-align: center; color: var(--ink-3); font-size: 15px; }

.cd-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.cd-item img { width: 78px; height: 98px; object-fit: cover; border: 1px solid var(--line-2); }
.cd-item .n { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.cd-item .s { font-size: 12px; color: var(--ink-3); margin: 3px 0 8px; }
.cd-item .p { font-weight: 600; font-size: 15px; }
.cd-remove {
  align-self: start;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.3s var(--ease);
}
.cd-remove:hover { color: var(--sale); }

.qty-ctl {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty-ctl button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-2);
  transition: background 0.3s var(--ease);
}
.qty-ctl button:hover { background: var(--cream-3); }
.qty-ctl .q {
  min-width: 26px;
  text-align: center;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
  font-weight: 600;
}

.cd-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cd-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink-2);
}
.cd-total b { font-size: 24px; font-weight: 600; color: var(--ink); }
.cd-note { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

/* --------------------------------------------------------------------------
   Тост
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  transform: translate(-50%, 130%);
  max-width: min(420px, 90vw);
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13.5px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.5s;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), visibility 0s;
}

/* --------------------------------------------------------------------------
   Внутренние страницы
   -------------------------------------------------------------------------- */
.page-head { padding-top: clamp(28px, 4vw, 52px); }
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 74px);
  line-height: 1.03;
  margin: 0 0 12px;
}
.page-title em { font-style: italic; color: var(--rose-deep); }
.page-sub { color: var(--ink-2); margin: 0 0 clamp(26px, 3.5vw, 44px); max-width: 60ch; }

/* --- каталог --- */
.catalog-layout {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 100px);
}

.filters { position: sticky; top: 100px; }
.f-close { display: none; }
.f-group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.f-group:last-child { border-bottom: 0; }
.f-group h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.f-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.f-option:hover { color: var(--ink); }
.f-option input { accent-color: var(--rose-deep); width: 16px; height: 16px; margin: 0; }
.f-option .qty { margin-left: auto; font-size: 12px; color: var(--ink-3); }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
}
.price-inputs span { color: var(--ink-3); }

.f-reset {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  border-bottom: 1px solid var(--line);
}

.catalog-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.found { font-size: 13px; color: var(--ink-3); }
.sort-select {
  margin-left: auto;
  height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5c63' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
}
.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.catalog-empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
}

/* --- карточка товара --- */
.product-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(26px, 4vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 90px);
}
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.gal-thumbs { display: grid; gap: 10px; }
.gal-thumbs button {
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--cream-2);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  transition: border-color 0.35s var(--ease);
}
.gal-thumbs button.on { border-color: var(--ink); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-main {
  border: 1px solid var(--line-2);
  background: var(--cream-2);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gal-main img { width: 100%; height: 100%; object-fit: cover; }

.p-info { position: sticky; top: 104px; }
.p-cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.p-info h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.9vw, 52px);
  line-height: 1.06;
  margin-bottom: 16px;
}
.p-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-2);
}
.p-price-row .now { font-size: 30px; font-weight: 600; }
.p-price-row .old { font-size: 17px; color: var(--ink-3); text-decoration: line-through; }
.p-price-row .save {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sale);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: lining-nums tabular-nums;
}

.opt-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.opt-label span { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--ink-3); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.opt-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.opt-chip:hover { border-color: var(--ink-3); }
.opt-chip.on { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.p-actions { display: flex; gap: 10px; margin-bottom: 28px; }
.p-actions .btn { flex: 1; }

.p-desc { color: var(--ink-2); margin: 0 0 24px; }

.p-specs {
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.p-specs dt,
.p-specs dd {
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.p-specs dt { color: var(--ink-3); padding-right: 24px; }
.p-specs dd { text-align: right; }

.p-perks { display: grid; gap: 12px; }
.p-perks div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.p-perks svg { flex: none; width: 19px; height: 19px; color: var(--rose-deep); stroke-width: 1.2; margin-top: 2px; }

/* --- оформление --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 100px);
}
.co-block {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: clamp(22px, 2.6vw, 34px);
  margin-bottom: 16px;
}
.co-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 20px;
}
.co-block h3 .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-deep);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: 0.05em; color: var(--ink-3); }
.field input, .field textarea {
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { border-color: var(--rose); outline: none; }
.field input.err { border-color: var(--sale); background: #fdf4f5; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.radio-card:last-child { margin-bottom: 0; }
.radio-card.on { border-color: var(--ink); background: var(--cream-2); }
.radio-card input { accent-color: var(--rose-deep); width: 18px; height: 18px; flex: none; margin: 0; }
.radio-card .t { font-size: 15px; font-weight: 600; }
.radio-card .d { font-size: 13px; color: var(--ink-3); }
.radio-card .rc-price { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }

.summary {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  padding: clamp(22px, 2.4vw, 30px);
}
.summary h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; }
.sum-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.sum-item img { width: 58px; height: 74px; object-fit: cover; border: 1px solid var(--line-2); }
.sum-item .meta { font-size: 12px; color: var(--ink-3); }
.sum-item .p { font-weight: 600; white-space: nowrap; }

.promo-field { display: flex; gap: 8px; margin: 18px 0 0; }
.promo-field input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
}
.promo-field button {
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.promo-field button:hover { background: var(--ink); color: var(--cream); }
.promo-msg { margin-top: 10px; font-size: 13px; min-height: 20px; }
.promo-msg.ok { color: #3f7a55; }
.promo-msg.bad { color: var(--sale); }

.sum-rows { margin: 18px 0 22px; display: grid; gap: 10px; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); }
.sum-row.total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.sum-row.total span:last-child { font-size: 24px; font-weight: 600; }

.co-empty, .thanks {
  text-align: center;
  padding: clamp(48px, 8vw, 110px) 20px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  margin-bottom: clamp(56px, 7vw, 100px);
}
.co-empty h2, .thanks h2 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 54px); margin-bottom: 14px; }
.co-empty p, .thanks p { color: var(--ink-2); margin: 0 auto 12px; max-width: 46ch; }
.thanks .demo-note { font-size: 13.5px; color: var(--ink-3); }
.thanks .btn, .co-empty .btn { margin-top: 22px; }
.tk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--rose-deep);
}
.tk-icon svg { width: 28px; height: 28px; stroke-width: 1.3; }

/* --------------------------------------------------------------------------
   Адаптив — все переопределения ПОСЛЕ базовых правил
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .cat-tile:nth-child(1),
  .cat-tile:nth-child(2) { grid-column: span 3; aspect-ratio: 16 / 10; }
  .cat-tile:nth-child(n + 3) { grid-column: span 2; aspect-ratio: 3 / 4; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .main-nav + .header-actions { margin-inline-start: auto; }

  .catalog-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(340px, 90vw);
    padding: 22px var(--gut) 40px;
    background: var(--cream);
    border-left: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(101%);
    transition: transform 0.5s var(--ease);
  }
  .filters.open { transform: none; }
  .f-close {
    display: block;
    margin-left: auto;
    margin-bottom: 18px;
    padding: 8px 0;
    border: 0;
    background: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  .filters-toggle { display: inline-flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .band { grid-template-columns: 1fr; }
  .band-media { min-height: 260px; }
  .review-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product-layout { grid-template-columns: 1fr; }
  .p-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .rail { grid-auto-columns: minmax(66vw, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tile:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .cat-tile:nth-child(2) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .cat-tile:nth-child(n + 3) { grid-column: span 1; aspect-ratio: 3 / 4; }
  .perk-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .about-media { grid-template-columns: 1fr 1fr; }

  .hero-scroll { display: none; }
  .hero-content { padding-top: 120px; }
  .logo { font-size: 25px; }
  .header-in { min-height: 66px; }

  .pc-name { font-size: 19px; }
  .pc-quick { opacity: 1; transform: none; height: 40px; font-size: 10px; }

  .gallery { grid-template-columns: 1fr; }
  .gal-thumbs { grid-auto-flow: column; grid-auto-columns: 76px; justify-content: start; order: 2; }

  .p-specs { grid-template-columns: 1fr; }
  .p-specs dt { padding-bottom: 0; border-bottom: 0; font-size: 12px; }
  .p-specs dd { text-align: left; padding-top: 2px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .sum-item { grid-template-columns: 48px 1fr auto; }
  .sum-item img { width: 48px; height: 60px; }
}

@media (max-width: 560px) {
  .topbar { font-size: 11.5px; }
  .topbar .tb-hours { display: none; }
}

@media (max-width: 400px) {
  .grid { gap: 18px 8px; }
  .pc-name { font-size: 17px; }
  .btn { padding: 0 22px; font-size: 13px; }
  .hero-cta .btn { width: 100%; }
}
