/* ============================================================
 * Konfetka.cc · Sketch 012 · Component Styles
 * ============================================================
 * Подключается ПОСЛЕ tokens.css. Использует только семантические
 * токены (--color-fg, --space-N, --text-base и т.д.), никогда —
 * shade-токены напрямую.
 *
 * Структура: reset → primitives → header → hero → expertise →
 * categories → big-sizes → reviews → about → journal → final →
 * footer → sticky-mobile → utilities → motion-helpers.
 * ============================================================ */

/* ============================================================
 * 01 · RESET & BASE
 * ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* scroll-behavior: smooth убран — конфликтует с Lenis. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt", "onum";
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Кастомное selection — фуксия signature вместо браузерного синего.
   Часть бренда: даже выделение текста читается «нашим». */
::selection {
  background: var(--color-selection-bg);
  color: var(--color-selection-fg);
}

img, svg, video, picture {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Универсальный focus-ring — заметный, тёплый, обязательный.
   Аудитория 50+ + a11y. Не убирать. */
:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Headings — сбрасываем, потом задаём через классы */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--weight-medium);
  font-family: var(--font-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg);
}

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


/* ============================================================
 * 02 · PRIMITIVES (containers, dividers, eyebrow)
 * ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-default);
  margin-inline: auto;
  padding-inline: var(--container-px-mobile);
}
.container--prose  { max-width: var(--container-prose); }
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

@media (min-width: 768px) {
  .container { padding-inline: var(--container-px-tablet); }
}
@media (min-width: 1120px) {
  .container { padding-inline: var(--container-px-desktop); }
}

/* Editorial eyebrow — uppercase 12px sans, tracked-wide, accent.
   Используется как маркер секции, как «заглавие столбца» в журнале. */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

/* Section-mark — нумерованный маркер секции «01 · работа с фигурой».
   Серьёзный editorial-приём, как номера разделов в журнале. */
.section-mark {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--color-fg-muted);
  margin-bottom: var(--space-10);
}
.section-mark__num {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--color-accent);
}
.section-mark::before,
.section-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-rule);
}
.section-mark::before { max-width: 48px; }

/* Hairline divider — для разделения внутри секций без визуального шума */
.hairline {
  border: 0;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-12) 0;
}

/* Italic-accent helper — для кричащих italic-эмфазисов в заголовках */
.italic-accent {
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-accent);
}

/* Italic-accent с фуксией — крайне редко, для главного слова страницы */
.italic-signature {
  font-style: italic;
  font-weight: var(--weight-regular);
  color: var(--color-signature);
  position: relative;
  display: inline-block;
}
.italic-signature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 1px;
  background: var(--color-signature);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--dur-grand) var(--ease-emphasis);
  transition-delay: 1200ms;
  /* JS добавляет .is-drawn на первом появлении в viewport */
}
.italic-signature.is-drawn::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .italic-signature::after { transform: scaleX(1); transition: none; }
}


/* ============================================================
 * 03 · BUTTONS
 * ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 52px;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: var(--lift-sm);
  box-shadow: var(--shadow-lg);
}
.btn--primary:active {
  background: var(--color-accent-pressed);
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--color-fg);
  border-color: var(--color-fg-muted);
}
.btn--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-fg);
}

.btn--whatsapp {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  box-shadow:
    var(--shadow-md),
    0 0 0 0 rgba(232, 122, 140, 0.6);
  position: relative;
}
.btn--whatsapp::before {
  /* Subtle tactile «дыхание» CTA — задаёт ощущение «живой»,
     но не агрессивно. Останавливается под reduced-motion. */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent);
  opacity: 0;
  pointer-events: none;
  animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0; transform: scale(0.95); }
  50%      { opacity: 0.4; transform: scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--whatsapp::before { animation: none; }
}
.btn--whatsapp:hover {
  background: var(--color-accent-hover);
  transform: var(--lift-sm);
  box-shadow: var(--shadow-lg);
}

.btn .arrow {
  transition: transform var(--dur-quick) var(--ease-out);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }

/* Icon button — для secondary каналов связи (tel, Tg, Viber) */
.btn-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn-icon:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: var(--lift-sm);
}
.btn-icon svg { width: 20px; height: 20px; }

/* Link with kinetic underline — для inline-ссылок в hero */
.link-kinetic {
  position: relative;
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-fg);
  padding-bottom: 4px;
}
.link-kinetic::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-signature);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--dur-medium) var(--ease-out);
}
.link-kinetic:hover { color: var(--color-accent); }
.link-kinetic:hover::after {
  transform-origin: left;
  /* На hover линия «перерисовывается» с другой стороны — kinetic emphasis */
  animation: kinetic-line var(--dur-medium) var(--ease-emphasis);
}
@keyframes kinetic-line {
  0%   { transform: scaleX(1); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: right; }
  51%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
@media (prefers-reduced-motion: reduce) {
  .link-kinetic:hover::after { animation: none; }
}


/* ============================================================
 * 04 · HEADER
 * ============================================================ */
.site-header {
  position: relative;
  z-index: var(--z-header);
  padding-block: var(--space-5);
  background: rgba(28, 8, 15, 0);
  /* Стартует прозрачным, hero видим через шапку. */
  transition: background-color var(--dur-medium) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(28, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-8);
  align-items: center;
}

/* Logo — текстовый wordmark Cormorant + heritage-mark рядом */
.site-logo {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(24px, 22px + 0.6vw, 30px);
  font-weight: var(--weight-medium);
  color: var(--color-fg);
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-logo__mark {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  transform: translateY(2px);
}
.site-logo__accent {
  font-style: italic;
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* Navigation */
.site-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  align-items: center;
}
.site-nav a {
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Phone block в шапке — крупно, видимо, mono */
.site-header__phone {
  text-align: right;
  line-height: 1.3;
}
.site-header__phone-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-fg);
  letter-spacing: -0.01em;
}
.site-header__phone-hours {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 2px;
}
.site-header__phone-hours::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  /* Subtle pulse — «магазин открыт сейчас» */
  box-shadow: 0 0 0 0 rgba(127, 180, 149, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 180, 149, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(127, 180, 149, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__phone-hours::before { animation: none; }
}


/* ============================================================
 * 05 · HERO
 * ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* На устройствах с динамической chrome (iOS) dvh лучше vh */
  display: flex;
  align-items: stretch;
  /* Сдвигаем вверх под прозрачную шапку */
  margin-top: calc(-1 * (var(--space-5) * 2 + 30px + 1px));
  padding-top: calc(var(--space-5) * 2 + 30px + 1px);
  overflow: hidden;
  isolation: isolate;
  /* isolation — корректная работа mix-blend-mode внутри */
}

/* Background photo */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* Photo eases-in после загрузки */
  opacity: 0;
  animation: hero-fade-in 900ms var(--ease-out) 200ms forwards;
}
@keyframes hero-fade-in {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img { opacity: 1; animation: none; }
}

/* Layered overlays:
   1. dark wine vignette на низ — для читаемости текста
   2. radial warm-glow от лампы — наш «midnight feel»
   3. колорный мост — мягко затягивает фото в палитру сайта */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Тёплый glow по центру-верху как «лампа» */
    radial-gradient(ellipse 60% 50% at 35% 30%,
      rgba(232, 122, 140, 0.12) 0%,
      rgba(228, 169, 177, 0.06) 30%,
      transparent 60%),
    /* Vignette снизу для читаемости текста */
    linear-gradient(
      180deg,
      rgba(28, 8, 15, 0.35) 0%,
      rgba(28, 8, 15, 0.55) 60%,
      rgba(28, 8, 15, 0.92) 100%
    ),
    /* Лёгкий wine-cast по всему фото */
    linear-gradient(135deg,
      rgba(74, 32, 51, 0.2) 0%,
      transparent 50%,
      rgba(28, 8, 15, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Watermark — heritage силуэт корсета, scroll-anchor */
.hero__watermark {
  position: absolute;
  right: -40px;
  top: 8%;
  width: clamp(280px, 32vw, 480px);
  opacity: 0.07;
  z-index: 2;
  pointer-events: none;
  filter: brightness(2);
  /* На тёмной палитре watermark должен подсветиться */
}

/* Content — сетка hero, текст слева */
.hero__content {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  padding-bottom: var(--space-24);
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-fg);
  margin-bottom: var(--space-6);
  max-width: 14em;
  /* Лёгкий fade-up на загрузке */
  opacity: 0;
  transform: translateY(20px);
  animation: hero-content-in 800ms var(--ease-emphasis) 400ms forwards;
}
@keyframes hero-content-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title { opacity: 1; transform: none; animation: none; }
}

.hero__lead {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  max-width: 28em;
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-content-in 800ms var(--ease-emphasis) 600ms forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__lead { opacity: 1; transform: none; animation: none; }
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-content-in 800ms var(--ease-emphasis) 800ms forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__cta { opacity: 1; transform: none; animation: none; }
}

.hero__cta-aux {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.hero__signature {
  /* Подпись «или приходите без записи: ТЦ Славянский» — тонкий,
     мягкий, но видимый. */
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-muted);
  opacity: 0;
  animation: hero-content-in 800ms var(--ease-emphasis) 1000ms forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero__signature { opacity: 1; animation: none; }
}

/* Scroll indicator — тонкая вертикальная линия снизу,
   подсказывает «есть что ниже». */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg-faint);
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-fg-faint) 0%, transparent 100%);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%      { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll::after { animation: none; }
}


/* ============================================================
 * 06 · EXPERTISE STRIP
 * ============================================================ */
.expertise {
  background: var(--color-bg);
  padding-block: var(--section-y-md);
  position: relative;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.expertise__item {
  text-align: left;
  padding-right: var(--space-6);
  border-left: 1px solid var(--color-rule);
  padding-left: var(--space-6);
}

.expertise__num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-style: italic;
  font-weight: var(--weight-medium);
  line-height: 1;
  color: var(--color-accent);
  font-variant-numeric: oldstyle-nums;
  margin-bottom: var(--space-3);
}

.expertise__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  line-height: var(--leading-snug);
}


/* ============================================================
 * 07 · CATEGORIES — horizontal scroll-rail
 * ============================================================ */
.cats {
  padding-block: var(--section-y-md);
  position: relative;
  overflow: hidden;
}

.cats__head {
  margin-bottom: var(--space-12);
}

.cats__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  max-width: 18em;
  margin-bottom: var(--space-4);
}

.cats__lead {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  max-width: 32em;
}

/* Scroll-rail container — горизонтальный скролл с snap */
.cats__rail {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--space-4) 0 var(--space-8);
  /* Дополнительный padding по краям чтобы карточки могли «вылезать» */
  margin-inline: calc(-1 * var(--container-px-mobile));
  padding-inline: var(--container-px-mobile);
}
@media (min-width: 768px) {
  .cats__rail {
    margin-inline: calc(-1 * var(--container-px-tablet));
    padding-inline: var(--container-px-tablet);
  }
}
@media (min-width: 1120px) {
  .cats__rail {
    margin-inline: calc(-1 * var(--container-px-desktop));
    padding-inline: var(--container-px-desktop);
  }
}
.cats__rail::-webkit-scrollbar { display: none; }

/* Cat tile */
.cat-tile {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  transition: transform var(--dur-medium) var(--ease-out);
}
@media (min-width: 768px) {
  .cat-tile { flex: 0 0 320px; }
}

/* Шахматный сдвиг чётных тайлов — editorial-композиция */
.cat-tile:nth-child(even) {
  transform: translateY(24px);
}
.cat-tile:hover {
  transform: translateY(-6px);
}
.cat-tile:nth-child(even):hover {
  transform: translateY(18px);
}

.cat-tile__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 0;
}
.cat-tile:hover .cat-tile__bg {
  transform: scale(1.06);
}
/* Винные градиенты для каждой категории — пока без реальных фото */
.cat-tile:nth-child(1) .cat-tile__bg { background-image: linear-gradient(160deg, #5C2A3D, #1C080F); }
.cat-tile:nth-child(2) .cat-tile__bg { background-image: linear-gradient(170deg, #7A2E3B, #2A0E17); }
.cat-tile:nth-child(3) .cat-tile__bg { background-image: linear-gradient(150deg, #4A2033, #0F0408); }
.cat-tile:nth-child(4) .cat-tile__bg { background-image: linear-gradient(175deg, #6B2638, #1C080F); }
.cat-tile:nth-child(5) .cat-tile__bg { background-image: linear-gradient(165deg, #5C2A3D, #25101A); }
.cat-tile:nth-child(6) .cat-tile__bg { background-image: linear-gradient(180deg, #4A2033, #1C080F); }

.cat-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 30%,
    rgba(15, 4, 8, 0.85) 100%);
  z-index: 1;
}

.cat-tile__num {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: rgba(248, 239, 227, 0.6);
}

.cat-tile__content {
  position: absolute;
  left: var(--space-5);
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
}

.cat-tile__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  font-style: italic;
  line-height: 1.1;
  color: var(--color-fg);
  margin-bottom: 4px;
  transition: transform var(--dur-medium) var(--ease-out);
}
.cat-tile:hover .cat-tile__name {
  transform: translateX(4px);
}

.cat-tile__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(248, 239, 227, 0.7);
  font-variant-numeric: tabular-nums;
}

.cats__hint {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fg-faint);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.cats__hint::after {
  content: "→";
  font-family: var(--font-sans);
  letter-spacing: 0;
  animation: hint-slide 2s ease-in-out infinite;
}
@keyframes hint-slide {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50%      { transform: translateX(8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cats__hint::after { animation: none; }
}


/* ============================================================
 * 08 · BIG SIZES — typographic walk
 * ============================================================ */
.bigsize {
  padding-block: var(--section-y-lg);
  background: var(--color-surface-warm);
  position: relative;
  overflow: hidden;
}

/* Тёплое световое пятно как декор-фон */
.bigsize::before {
  content: "";
  position: absolute;
  top: 30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--glow-lamp);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.bigsize__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 980px) {
  .bigsize__inner { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: var(--space-16); }
}

.bigsize__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.bigsize__lead {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  margin-bottom: var(--space-8);
  max-width: 28em;
}

/* Scale walk — крупные цифры размеров как typo-artwork */
.scale-walk {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: oldstyle-nums;
}

.scale-walk__item {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: var(--weight-medium);
  color: var(--color-fg);
  position: relative;
  cursor: default;
  transition: color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
/* Каждая третья — italic accent (нечётная динамика) */
.scale-walk__item:nth-child(3n) {
  color: var(--color-accent);
  font-style: italic;
  font-weight: var(--weight-regular);
}
/* Кульминация — самая крупная и яркая */
.scale-walk__item--peak {
  font-size: clamp(56px, 7vw, 112px) !important;
  font-weight: var(--weight-semi);
  color: var(--color-fg);
}
.scale-walk__item:hover {
  color: var(--color-signature);
  transform: translateY(-4px);
}

.scale-walk__note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-fg-muted);
  text-transform: uppercase;
  margin-top: var(--space-6);
  width: 100%;
  display: block;
}


/* ============================================================
 * 09 · REVIEWS — quote cards with typewriter feel
 * ============================================================ */
.reviews {
  padding-block: var(--section-y-md);
  background: var(--color-bg);
  position: relative;
}

.reviews__head {
  margin-bottom: var(--space-12);
  max-width: 36em;
}

.reviews__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .reviews__grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}

.review {
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8) var(--space-8);
  border-radius: var(--radius-md);
  position: relative;
  border: 1px solid var(--color-border-subtle);
  transition:
    transform var(--dur-medium) var(--ease-out),
    border-color var(--dur-medium) var(--ease-out),
    box-shadow var(--dur-medium) var(--ease-out);
}
.review:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.review__tag {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-surface-warm);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.review__body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg);
  margin-bottom: var(--space-6);
}
.review__body::before {
  content: "«";
  font-family: var(--font-display);
  font-size: 4em;
  line-height: 0.5;
  color: var(--color-signature);
  margin-right: var(--space-2);
  vertical-align: -0.4em;
}

.review__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
}
.review__name {
  font-family: var(--font-sans);
  font-weight: var(--weight-semi);
  color: var(--color-fg);
  font-size: var(--text-sm);
}
.review__meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
}


/* ============================================================
 * 10 · ABOUT — letter-style
 * ============================================================ */
.about {
  padding-block: var(--section-y-lg);
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 980px) {
  .about__inner {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-16);
    align-items: center;
  }
}

.about__photo-wrap {
  position: relative;
  padding-right: var(--space-6);
}

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--color-surface);
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Тёплый wine-cast на фото для палитровой связности */
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(74, 32, 51, 0.25) 0%,
      transparent 50%,
      rgba(232, 122, 140, 0.1) 100%);
  pointer-events: none;
}

.about__title {
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
  max-width: 14em;
}

.about__body {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-fg);
  margin-bottom: var(--space-4);
  max-width: 32em;
}
.about__body--muted { color: var(--color-fg-muted); }

.about__sig {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-accent);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.about__sig::before {
  content: "—";
  color: var(--color-fg-muted);
  font-size: var(--text-md);
}


/* ============================================================
 * 11 · JOURNAL TEASER
 * ============================================================ */
.journal {
  padding-block: var(--section-y-md);
  background: var(--color-surface-warm);
  position: relative;
}

.journal__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}
.journal__title {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
}

.journal__more {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.journal__more:hover { color: var(--color-accent-hover); }
.journal__more .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.journal__more:hover .arrow { transform: translateX(4px); }

.journal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .journal__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.article-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-subtle);
  position: relative;
  cursor: pointer;
  transition: border-color var(--dur-medium) var(--ease-out);
}
.article-card::after {
  /* Fuchsia hairline появляется снизу на hover — signature */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-signature);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-medium) var(--ease-out);
}
.article-card:hover {
  border-color: var(--color-signature);
}
.article-card:hover::after {
  transform: scaleX(1);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.article-card__meta-tag {
  color: var(--color-accent);
}
.article-card__meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-fg-faint);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 1.15;
  color: var(--color-fg);
  letter-spacing: var(--tracking-tight);
  margin-block: var(--space-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.article-card:hover .article-card__title { color: var(--color-accent); }

.article-card__dek {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__read {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fg-faint);
  letter-spacing: var(--tracking-wide);
  margin-top: var(--space-2);
}


/* ============================================================
 * 12 · FINAL CTA
 * ============================================================ */
.final {
  background: var(--color-bg-deep);
  color: var(--color-fg);
  padding-block: var(--section-y-xl);
  position: relative;
  overflow: hidden;
}

/* Тёплое пятно за финальной секцией */
.final::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--glow-lamp-warm);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.final__inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.final__title {
  font-size: var(--text-4xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tighter);
  color: var(--color-fg);
  margin-bottom: var(--space-6);
}

.final__lead {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-fg-muted);
  margin-bottom: var(--space-10);
  max-width: 32em;
  margin-inline: auto;
}

.final__address {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  color: var(--color-fg-muted);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.final__address strong {
  color: var(--color-fg);
  font-weight: var(--weight-medium);
}

.final__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}


/* ============================================================
 * 13 · FOOTER
 * ============================================================ */
.site-footer {
  background: var(--color-bg);
  padding-block: var(--space-16) var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-fg-muted);
  border-top: 1px solid var(--color-border-subtle);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-fg);
  margin-bottom: var(--space-4);
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.site-footer a { color: var(--color-fg-muted); transition: color var(--dur-fast) var(--ease-out); }
.site-footer a:hover { color: var(--color-accent); }

.site-footer__about {
  font-family: var(--font-serif);
  line-height: var(--leading-snug);
  max-width: 26em;
  margin-top: var(--space-4);
}

.site-footer__legal {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-fg-faint);
  flex-wrap: wrap;
  letter-spacing: -0.01em;
}


/* ============================================================
 * 14 · STICKY MOBILE CTA BAR
 * ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(28, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  /* iOS safe-area для жестового home indicator */
}

.sticky-cta__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2);
}

.sticky-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--color-fg-muted);
  background: transparent;
  text-align: center;
  text-decoration: none;
}
.sticky-cta__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sticky-cta__btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
  font-weight: var(--weight-semi);
  border-radius: var(--radius-md);
  font-size: 13px;
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  .sticky-cta { display: block; }
  /* Резервируем padding снизу страницы под sticky-bar */
  body { padding-bottom: 80px; }
}


/* ============================================================
 * 15 · MOTION HELPERS — scroll-revealed
 * ============================================================ *
 * Простые CSS-классы для появления элементов при входе в viewport.
 * Активирует .is-visible (через IntersectionObserver в js).
 * ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-emphasis);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-medium) var(--ease-out),
    transform var(--dur-medium) var(--ease-emphasis);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
 * 16 · RESPONSIVE OVERRIDES
 * ============================================================ */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .expertise__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (max-width: 640px) {
  .hero__title { max-width: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 0 auto; }
  .hero__cta-aux { flex: 0 0 auto; }
  .expertise__grid { grid-template-columns: 1fr 1fr; }
  .expertise__item { padding-right: var(--space-3); padding-left: var(--space-4); }
  .expertise__item:nth-child(odd) { padding-left: 0; border-left: none; }
  .scale-walk__item { font-size: clamp(40px, 12vw, 72px) !important; }
  .scale-walk__item--peak { font-size: clamp(48px, 14vw, 88px) !important; }
  .journal__head { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
 * 17 · SKETCH TOOLBAR (только для скетча, не в продакшен)
 * ============================================================ */
#sketch-tools {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: var(--z-debug);
  font-family: var(--font-sans);
  font-size: 11px;
  background: rgba(28, 8, 15, 0.92);
  color: var(--color-fg);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease-out);
  display: flex;
  gap: 6px;
  align-items: center;
}
#sketch-tools:hover { opacity: 1; }
#sketch-tools .vp-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  cursor: pointer;
  font-family: var(--font-mono);
}
#sketch-tools .vp-btn:hover { background: rgba(255, 255, 255, 0.18); }
#sketch-tools .vp-btn.active { background: var(--color-accent); color: var(--color-accent-fg); border-color: var(--color-accent); }

.vp-wrap { transition: max-width var(--dur-base) var(--ease-out); margin-inline: auto; }
body.vp-phone .vp-wrap { max-width: 375px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); }
body.vp-tablet .vp-wrap { max-width: 768px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05); }


/* ============================================================
 * 18 · VARIANT NAV (sketch navigation between pages)
 * ============================================================ */
#variant-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-debug) - 1);
  background: rgba(15, 4, 8, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 6px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-fg-muted);
  letter-spacing: 0.02em;
}
#variant-nav .label {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--color-border-subtle);
}
#variant-nav a {
  color: var(--color-fg-muted);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all var(--dur-fast) var(--ease-out);
}
#variant-nav a:hover {
  background: rgba(228, 169, 177, 0.1);
  color: var(--color-accent);
}
#variant-nav a.is-active {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
body { padding-top: 36px; }
