:root {
  /* Цветовые токены (Cinematic + Олива) */
  --bg-light: #FAFAF5;                 /* Благородный Off-White с легким оливковым подтоном */
  --bg-dark: #222421;                  /* Глубокий матовый графит с оливковым отливом (хвоя в сумерках) */
  --bg-alt: #ECECE1;                   /* Мягкая светлая олива для зонирования */
  --accent: #5A7356;                   /* Благородный оливковый брендовый цвет (кнопки, активные состояния) */
  --accent-hover: #485C45;             /* Более насыщенный оливковый для hover */
  --accent-terracotta: #B07A5A;        /* Тёплая полинезийская терракота */
  --accent-terracotta-hover: #9A6848;  /* Глубокий терракотовый для hover */
  --ink: #171916;                      /* Тёмный оливковый графит (основной текст, контраст >= 7:1) */
  --muted: #889086;                    /* Приглушенный оливково-серый для метаданных */
  --border: #E2E5E0;                   /* Нежный оливково-пастельный разделитель */
  --border-focus: #B2B4A7;             /* Контрастная олива для активных полей */
  
  /* Шрифты */
  --font-display: 'Forum', serif;
  --font-body: 'Onest', sans-serif;
  
  /* Пространственная шкала 8pt */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  
  /* Скругления */
  --radius-btn: 12px;
  --radius-card: 12px;
  --radius-image: 12px;
  
  /* Тональные тени с подмешиванием оливкового */
  --shadow-ambient: 0 4px 20px -2px rgba(38, 41, 35, 0.03), 0 2px 6px -1px rgba(38, 41, 35, 0.05);
  --shadow-hover: 0 12px 30px -4px rgba(38, 41, 35, 0.06), 0 4px 12px -2px rgba(38, 41, 35, 0.08);
  
  --nav-h: 72px;
  --wave-h: clamp(64px, 8.5vw, 96px);
  --seam-portfolio-top: #141612;
  --seam-portfolio-bottom: #181a17;
  --seam-forest-top: #2B2F29;
  --seam-forest-bottom: #262923;
}

/* ── Базовые стили ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: clip;
}

@media (min-width: 900px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .featured-showcase.slide-full {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ── A11y: skip-link (стили в main.css — style.css на фронте не подключается) ── */
.skip-link.screen-reader-text,
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus-visible {
  background-color: var(--bg-light);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  height: auto;
  left: var(--space-xs);
  line-height: normal;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  top: var(--space-xs);
  width: auto;
  z-index: 100000;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hover);
}

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

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

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

.container {
  max-width: 1280px;
  padding-inline: clamp(16px, 4vw, 32px);
  margin-inline: auto;
  width: 100%;
}

/* Фоновые узоры (тиснение) */
.ambient-pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  color: var(--accent);
  opacity: 0.02;
}

.ambient-pattern--1 {
  top: 15%;
  left: 0;
  transform: translateX(-35%);
}

.ambient-pattern--2 {
  top: 55%;
  right: 0;
  transform: translateX(35%);
}

/* ── Типографика ── */
.section-label {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.section-lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.1875rem);
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--accent);
  color: var(--bg-light);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(90, 115, 86, 0.1);
  text-transform: none; /* Естественный регистр */
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 115, 86, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn--large {
  padding: 16px 36px;
  font-size: 0.95rem;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn--outline-accent {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

.btn--outline-accent:hover {
  background-color: rgba(90, 115, 86, 0.04);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--submit {
  background-color: var(--accent-terracotta);
}

.btn--submit:hover {
  background-color: var(--accent-terracotta-hover);
  box-shadow: 0 4px 12px rgba(176, 122, 90, 0.15);
}

.btn--added {
  background-color: var(--accent-terracotta) !important;
  color: #fff !important;
}

.btn--light {
  background-color: var(--bg-light);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn--light:hover {
  background-color: #fff;
  color: var(--ink);
}

.btn--outline-light {
  background-color: transparent;
  color: var(--bg-light);
  border: 1px solid rgba(250, 250, 245, 0.45);
  box-shadow: none;
}

.btn--outline-light:hover {
  background-color: rgba(250, 250, 245, 0.08);
  border-color: rgba(250, 250, 245, 0.7);
  color: #fff;
}

/* ── Хедер ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  border-bottom: 1px solid transparent;
}

.header--hero {
  color: var(--bg-light);
  background-color: transparent;
}

.header--solid {
  background-color: rgba(250, 250, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(38, 41, 35, 0.02);
  color: var(--ink);
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
  flex-shrink: 1;
  min-width: 0;
}

.header__logo-line {
  display: block;
  white-space: nowrap;
}

.header__logo-line--sub {
  font-size: 0.78em;
  letter-spacing: 0.03em;
  opacity: 0.92;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav a {
  position: relative;
  transition: color 0.25s;
  opacity: 0.85;
}

.header--hero .header__nav a {
  color: var(--bg-light);
}

.header--solid .header__nav a {
  color: var(--ink);
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.header__nav a:hover {
  opacity: 1;
  color: var(--accent-terracotta);
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__cart {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 250, 245, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.header--hero .header__cart {
  background-color: rgba(25, 25, 25, 0.2);
  color: var(--bg-light);
}

.header--solid .header__cart {
  border-color: var(--border);
  background-color: var(--bg-light);
  color: var(--ink);
}

.header__cart:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta) !important;
}

.header__cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background-color: var(--accent-terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(176, 122, 90, 0.3);
}

.header__cart-count.visible {
  display: flex;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header__burger.open span:nth-child(2) {
  opacity: 0;
}

.header__burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  display: flex;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background-color: var(--bg-light);
  z-index: 190;
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-xs);
  border-top: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  padding: var(--space-md) 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(226, 229, 224, 0.5);
  color: var(--ink);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent-terracotta);
}

.mobile-menu-cta {
  margin-top: var(--space-md);
  text-align: center;
  background-color: var(--accent);
  color: var(--bg-light) !important;
  border-radius: var(--radius-btn);
  padding: 14px !important;
}

/* ── Hero Блок ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg-light);
  overflow-x: clip;
  overflow-y: visible;
  background-color: #111;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(34, 36, 33, 0.45) 0%,
    rgba(34, 36, 33, 0.62) 45%,
    rgba(34, 36, 33, 0.72) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 48px) var(--space-md) var(--space-4xl);
  max-width: 800px;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero__content p {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: var(--space-2xl);
  max-width: 60ch;
  margin-inline: auto;
  text-shadow: 0 1px 5px rgba(0,0,0,0.15);
}

.hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-light);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  animation: hero-scroll-hint 2.4s ease-in-out infinite;
}

@keyframes hero-scroll-hint {
  0%, 100% {
    transform: translate(-50%, 0);
    opacity: 0.35;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, 8px);
    opacity: 0.7;
  }
  70% {
    opacity: 1;
  }
}

/* ── Секции ── */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background-color: var(--bg-alt);
}

.section--tone-cream { background-color: #FAFAF5; }
.section--tone-sage { background-color: #E6EBE0; }
.section--tone-sand { background-color: #F0E9DF; }
.section--tone-mist { background-color: #E5EBE8; }
.section--tone-blush { background-color: #F4EBE5; }
.section--tone-linen { background-color: #F6F4EE; }
.section--tone-olive { background-color: #DDE5D6; }

/* ── Нижняя часть главной: мерч / FAQ / блог / контакты ── */
/* Секции ПЕРЕД волной: padding-bottom включает зону overlap волны */
#merch.section--tone-forest {
  padding-bottom: calc(var(--wave-h) + clamp(24px, 4vw, 40px));
}

#faq.section--tone-linen,
#blog.section--tone-olive {
  padding-bottom: calc(var(--wave-h) + clamp(24px, 4vw, 40px));
}

#contacts.section--tone-cream {
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* Секции ПОСЛЕ волны: без negative margin (иначе волна режет контент сверху) */
.section-wave + #faq.section--tone-linen,
.section-wave + #blog.section--tone-olive,
.section-wave + #contacts.section--tone-cream {
  margin-top: 0;
  padding-top: clamp(32px, 5vw, 56px);
}

#blog.section--tone-olive,
#contacts.section--tone-cream {
  overflow: visible;
}

.section--tone-forest {
  position: relative;
  background-color: var(--seam-forest-bottom);
  color: rgba(250, 250, 245, 0.92);
  isolation: isolate;
}

#merch.section--tone-forest {
  overflow: visible;
}

.section--tone-forest::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #2B2F29 0%, #32362F 45%, #262923 100%);
  pointer-events: none;
  z-index: 0;
}

.section--tone-forest > .container {
  position: relative;
  z-index: 1;
}

.section--tone-forest .section-title,
.section--tone-forest h3 {
  color: #FAFAF5;
}

.section--tone-forest .section-lead,
.section--tone-forest .merch-card__desc {
  color: rgba(250, 250, 245, 0.72);
}

.section--tone-forest .merch-card {
  background: rgba(250, 250, 245, 0.06);
  border-color: rgba(250, 250, 245, 0.12);
}

.section--tone-forest .merch-card h3 {
  color: #FAFAF5;
}

.section-wave {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: calc(-1 * var(--wave-h));
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.section-wave svg {
  width: 100%;
  height: var(--wave-h);
  display: block;
  margin-bottom: -2px;
}

.section-wave--inset-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  margin-top: 0 !important;
  z-index: 4;
}

.section-wave--inset-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0 !important;
  z-index: 3;
  transform: translateZ(0);
  pointer-events: none;
}

.section-wave--inset-bottom svg {
  display: block;
  margin-bottom: -1px;
}

.section-wave--path-only svg {
  display: block;
}

.section + .section-wave {
  margin-top: calc(-1 * var(--wave-h));
}

.section-wave + .section {
  margin-top: 0;
}

.site-main--front {
  background-color: #FAFAF5;
  overflow-x: clip;
}

#about.section--tone-cream {
  margin-top: 0;
  padding-top: clamp(40px, 6vw, 72px);
}

.slide-full {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Блок Обо мне ── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: flex-start;
  margin-top: var(--space-xl);
}

.about__photo-wrapper {
  position: relative;
  padding: var(--space-sm);
}

.about__photo-wrapper::before {
  content: '';
  position: absolute;
  inset: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-image);
  transform: translate(12px, 12px);
  z-index: 0;
  pointer-events: none;
}

.about__photo {
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--border);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-ambient);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about__photo:hover img {
  transform: scale(1.02);
}

.about__text p {
  color: var(--ink);
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 65ch;
  opacity: 0.9;
}

.about__text p:last-of-type {
  margin-bottom: var(--space-2xl);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.stat-card {
  padding: var(--space-sm) 0;
}

.about__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--accent-terracotta);
  line-height: 1.1;
  margin-bottom: 4px;
}

.about__stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 20ch;
}

/* ── Преимущества ── */
.benefits-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-md);
}

.benefit-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent-terracotta);
  line-height: 1;
}

.benefit-item__content h3 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.benefit-item__content p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 70ch;
}

/* ── Портфолио ── */
#portfolio .portfolio-grid {
  gap: clamp(16px, 2.2vw, 28px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 24px);
}

.portfolio-grid--gallery {
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(14px, 2vw, 22px);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  background-color: var(--bg-alt);
  cursor: pointer;
  border: none;
  padding: 0;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s;
  grid-column: span 4;
}

.portfolio-item--large {
  grid-column: span 6;
}

.portfolio-item--hero {
  grid-column: span 8;
  grid-row: span 2;
}

.portfolio-item--wide {
  grid-column: span 8;
}

.portfolio-item--tall img {
  aspect-ratio: 3 / 5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  filter: brightness(0.94) contrast(1.04) saturate(1.02);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.portfolio-item:hover img {
  transform: scale(1.03);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 25, 22, 0.85) 0%, rgba(23, 25, 22, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--bg-light);
  text-align: left;
}

.portfolio-item:hover .portfolio-item__overlay,
.portfolio-item:focus-visible .portfolio-item__overlay {
  opacity: 1;
}

@media (hover: none) {
  .portfolio-grid--gallery .portfolio-item .portfolio-item__overlay {
    opacity: 1;
  }
}

.portfolio-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.2;
}

.portfolio-item__desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  opacity: 0.85;
  line-height: 1.4;
  max-width: 40ch;
}

.portfolio-cta {
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ── Избранные: full-screen slide + editorial grid ── */
.featured-showcase {
  position: relative;
  margin-top: 0 !important;
  padding-bottom: 0;
  background-color: var(--seam-portfolio-bottom);
  overflow-x: clip;
  overflow-y: visible;
  z-index: 1;
}

.featured-showcase__inner {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(4px, 0.8vh, 10px);
  padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 40px));
  padding-bottom: calc(var(--wave-h) + clamp(32px, 4vw, 48px));
  position: relative;
  z-index: 1;
}

.featured-showcase.slide-full {
  min-height: auto;
  height: auto;
  max-height: none;
}

.featured-showcase__inner {
  min-height: auto;
  height: auto;
}

.featured-showcase__head {
  padding-top: clamp(8px, 1.2vh, 16px);
  padding-bottom: clamp(16px, 2.5vw, 24px);
}

.featured-showcase__head .section-title {
  margin-bottom: 8px;
}

.section-lead--compact {
  margin-bottom: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.featured-showcase__panel-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
}

.featured-panel {
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(24px, 3vw, 32px);
  background:
    linear-gradient(165deg, rgba(36, 39, 34, 0.92) 0%, rgba(28, 30, 26, 0.88) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    0 12px 48px rgba(38, 41, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portfolio-cta--showcase {
  margin-top: clamp(24px, 3vw, 32px);
  gap: var(--space-md);
}

.portfolio-cta--showcase .btn {
  min-width: min(100%, 280px);
}

.featured-showcase .portfolio-cta--showcase .btn:not(.btn--outline-light) {
  background-color: var(--accent);
  color: var(--bg-light);
  box-shadow: 0 4px 16px rgba(90, 115, 86, 0.25);
}

.featured-showcase .portfolio-cta--showcase .btn:not(.btn--outline-light):hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(90, 115, 86, 0.32);
}

.featured-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(176, 122, 90, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(90, 115, 86, 0.28) 0%, transparent 50%),
    linear-gradient(155deg, var(--seam-portfolio-top) 0%, #1e211c 38%, #252820 62%, var(--seam-portfolio-bottom) 100%);
}

.featured-showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.featured-showcase .container {
  position: relative;
  z-index: 1;
}

.section-label--light {
  color: var(--accent-terracotta);
}

.section-title--light {
  color: var(--bg-light);
}

.section-lead--light {
  color: rgba(250, 250, 245, 0.72);
  max-width: 58ch;
}

/* Избранные — editorial panel grid (3×3 desktop, 2 col mobile) */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
  width: 100%;
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-grid__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-image);
  overflow: hidden;
  cursor: pointer;
  background: #141612;
  width: 100%;
  aspect-ratio: 4 / 5;
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.35),
    0 2px 6px -1px rgba(38, 41, 35, 0.15);
  transition:
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s,
    border-color 0.35s;
}

.featured-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.94) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.featured-grid__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(12, 13, 11, 0.5) 0%, transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease;
  pointer-events: none;
}

.featured-grid__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(12px, 2vw, var(--space-lg));
  color: var(--bg-light);
  text-align: left;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.featured-grid__caption-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
}

.featured-grid__caption-desc {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1vw, 0.8125rem);
  line-height: 1.4;
  opacity: 0.88;
  max-width: 36ch;
}

.featured-grid__item:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 122, 90, 0.35);
  box-shadow:
    0 12px 30px -4px rgba(0, 0, 0, 0.45),
    0 4px 12px -2px rgba(38, 41, 35, 0.18);
  z-index: 2;
}

.featured-grid__item:hover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.05);
}

.featured-grid__item:hover .featured-grid__shade,
.featured-grid__item:focus-visible .featured-grid__shade {
  opacity: 1;
  background: linear-gradient(to top, rgba(23, 25, 22, 0.88) 0%, rgba(23, 25, 22, 0.25) 58%, transparent 100%);
}

.featured-grid__item:hover .featured-grid__caption,
.featured-grid__item:focus-visible .featured-grid__caption {
  opacity: 1;
}

.featured-grid__item:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

@media (hover: none) {
  .featured-grid__shade {
    opacity: 1;
    background: linear-gradient(to top, rgba(23, 25, 22, 0.82) 0%, rgba(23, 25, 22, 0.18) 52%, transparent 100%);
  }

  .featured-grid__caption {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-grid__item,
  .featured-grid__item img,
  .featured-grid__shade,
  .featured-grid__caption {
    transition: none;
  }
}

/* ── Первый блок под шапкой ── */
.section--first {
  padding-top: calc(var(--nav-h) + clamp(32px, 5vw, 56px));
}

/* ── Галерея: категории ── */
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
  margin-top: var(--space-lg);
}

.gallery-category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(139, 119, 88, 0.18);
  background: linear-gradient(165deg, var(--bg-light) 0%, rgba(245, 241, 234, 0.6) 100%);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s, border-color 0.35s;
}

.gallery-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(180, 120, 78, 0.35);
}

.gallery-category-card__media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery-category-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 25, 22, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.gallery-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-category-card:hover .gallery-category-card__media img {
  transform: scale(1.04);
}

.gallery-category-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.gallery-category-card__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: var(--text-main);
}

.gallery-category-card__body p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

.gallery-category-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
}

.portfolio-category-block {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  margin-bottom: var(--space-3xl);
}

.portfolio-category-block:last-child {
  margin-bottom: 0;
}

.portfolio-category-block__head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.portfolio-category-block__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
}

.portfolio-category-block__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.portfolio-category-block__head p {
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.6;
}

.portfolio-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-lg);
}

.portfolio-page-nav a {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.portfolio-page-nav a:hover,
.portfolio-page-nav a.is-active {
  border-color: var(--accent);
  background: rgba(90, 115, 86, 0.08);
  color: var(--accent);
}

/* ── Страница галереи (portfolio.html) ── */
.gallery-page {
  padding-bottom: var(--space-4xl);
}

.gallery-page__hero {
  padding-bottom: var(--space-lg);
}

.gallery-page__back {
  display: inline-flex;
  margin-bottom: var(--space-lg);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.gallery-page__back:hover {
  color: var(--accent-hover);
}

.gallery-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
  color: var(--ink);
}

.gallery-page__lead {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
  margin: 0;
}

.gallery-dashbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  background: rgba(230, 235, 224, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 119, 88, 0.14);
  padding-block: var(--space-sm) var(--space-md);
}

.page-portfolio .gallery-dashbar.is-pinned {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  width: 100%;
}

.gallery-dashbar-spacer {
  height: 0;
  pointer-events: none;
}

.gallery-dashbar-spacer.is-active {
  height: var(--dashbar-h, 56px);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-tab {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(250, 250, 245, 0.65);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.gallery-tab:hover {
  border-color: rgba(90, 115, 86, 0.45);
  background: rgba(250, 250, 245, 0.95);
}

.gallery-tab.is-active {
  border-color: var(--accent);
  background: rgba(90, 115, 86, 0.12);
  color: var(--accent);
  box-shadow: 0 1px 0 rgba(90, 115, 86, 0.08);
}

.gallery-page__body {
  padding-top: var(--space-xl);
}

.gallery-panel {
  scroll-margin-top: calc(var(--nav-h) + var(--dashbar-h, 56px));
}

.gallery-panel__head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.gallery-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  color: var(--ink);
}

.gallery-panel__desc {
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.6;
  margin: 0;
}

.gallery-panel__count {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
}

.gallery-load-meta {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.gallery-load-sentinel {
  height: 4px;
  margin-top: var(--space-md);
}

.gallery-load-sentinel.is-hidden {
  display: none;
}

.gallery-load-sentinel.is-loading::after {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin: var(--space-md) auto 0;
  border: 2px solid rgba(90, 115, 86, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gallery-spin 0.7s linear infinite;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-load-sentinel.is-loading::after {
    animation: none;
    border-top-color: rgba(90, 115, 86, 0.35);
  }
}

@media (max-width: 767px) {
  .gallery-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  .gallery-tab {
    flex-shrink: 0;
  }
}

/* ── Процесс ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.process-step {
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--bg-light);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--accent-terracotta);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.process-step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Цены ── */
.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.price-card {
  padding: var(--space-2xl) var(--space-lg);
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ambient);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.price-card--featured {
  background-color: var(--bg-alt);
  border-color: var(--accent);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-terracotta);
  color: var(--bg-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(176, 122, 90, 0.3);
}

.price-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-md);
}

.price-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.price-note {
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

/* ── Мерч ── */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.merch-grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-inline: auto;
}

.merch-grid--duo .merch-card__img {
  aspect-ratio: 4 / 5;
}

.merch-grid--duo .merch-card__photo {
  object-position: center 12%;
}

.merch-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.merch-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.merch-card__img {
  aspect-ratio: 1;
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}

.merch-card__img.is-dragging {
  cursor: grabbing;
}

.merch-card__img.is-dragging .merch-card__photo {
  transition: none;
}

.merch-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) contrast(1.03);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.28s ease;
}

.merch-card__photo.is-changing {
  opacity: 0.82;
}

.merch-card--featured:hover .merch-card__photo {
  transform: scale(1.03);
}

.merch-card__nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.merch-card__nav-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(23, 25, 22, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 18, 14, 0.22);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.merch-card__nav-btn:hover {
  background: rgba(176, 122, 90, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(15, 18, 14, 0.28);
}

.merch-card__nav-btn:active {
  transform: scale(0.96);
}

.merch-card__nav-btn:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 2px;
}

.merch-card__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  background: rgba(23, 25, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.merch-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.merch-card__dot.is-active {
  background: var(--accent-terracotta);
  transform: scale(1.15);
}

.merch-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E2E4DA;
  color: var(--accent);
}

.merch-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.merch-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.merch-card__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
  line-height: 1.45;
  flex: 1;
}

.merch-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-top: auto;
}

.merch-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-terracotta);
}

/* ── FAQ Аккордеоны ── */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  margin-top: var(--space-md);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s;
}

.faq-item__btn:hover {
  color: var(--accent);
}

.faq-item.open .faq-item__btn {
  color: var(--accent-terracotta);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background-color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
}

.faq-item__icon::before {
  width: 14px;
  height: 1.5px;
  top: 9px;
  left: 3px;
}

.faq-item__icon::after {
  width: 1.5px;
  height: 14px;
  top: 3px;
  left: 9px;
}

.faq-item.open .faq-item__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item.open .faq-item__icon::before {
  transform: rotate(45deg);
  background-color: var(--accent-terracotta);
}

.faq-item__answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.open .faq-item__answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-item__answer {
  overflow: hidden;
}

.faq-item__answer p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-bottom: var(--space-md);
  max-width: 70ch;
}

/* ── Блог ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.blog-card-wrapper {
  display: flex;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-light);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card__img-container {
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02);
  transition: transform 0.5s;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.02);
}

.blog-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  color: var(--ink);
  font-weight: 500;
  transition: color 0.25s;
}

.blog-card:hover h3 {
  color: var(--accent-terracotta);
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card__more::after {
  content: '→';
  transition: transform 0.2s;
}

.blog-card:hover .blog-card__more::after {
  transform: translateX(4px);
}

/* ── Контакты и Форма Записи ── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 12fr; /* по умолчанию 12-col сетка в родителе */
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  margin-top: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-lead-text {
  font-size: clamp(0.95rem, 1.1vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
}

.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: var(--space-2xs);
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}

.phone-link {
  font-weight: 500;
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--accent);
}

.contact-channels {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.contact-channel svg {
  color: var(--accent);
  transition: color 0.25s;
}

.contact-channel:hover {
  border-color: var(--accent);
  background-color: rgba(90, 115, 86, 0.04);
}

.contact-channel:hover svg {
  color: var(--accent-hover);
}

/* Карта */
.map-container {
  margin-top: var(--space-sm);
  border-radius: var(--radius-image);
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-ambient);
  position: relative;
  background-color: var(--bg-alt);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-md);
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Формы */
.form-card {
  padding: clamp(24px, 4vw, 40px);
  background-color: var(--bg-alt);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-ambient);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
  opacity: 0.85;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: transparent;
  color: var(--ink);
  transition: border-color 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--border-focus);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
  color: var(--accent);
  font-weight: 500;
}

.form-success p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Подвал ── */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  background-color: var(--bg-dark);
  color: rgba(250, 250, 245, 0.7);
  border-top: 1px solid rgba(250, 250, 245, 0.05);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer__brand-section {
  max-width: 320px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg-light);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.footer__brand-section p {
  font-size: 0.8125rem;
  line-height: 1.5;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  font-size: 0.8125rem;
}

.footer__links a {
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--bg-light);
}

.footer__bottom {
  width: 100%;
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(250, 250, 245, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer__copy {
  width: 100%;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.6;
}

.footer__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.footer__credit-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  color: rgba(250, 250, 245, 0.7);
}

.footer__credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  background-color: rgba(176, 122, 90, 0.15);
  border: 1px solid rgba(176, 122, 90, 0.35);
  color: var(--accent-terracotta);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer__credit-link:hover {
  background-color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  color: var(--bg-light);
}

.footer__credit-link:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

.footer__credit-link:active {
  transform: scale(0.98);
}

.footer__credit-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

/* ── Корзина (Cart Drawer) ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(34, 36, 33, 0.52);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(450px, 100vw);
  height: 100%;
  background-color: var(--bg-light);
  z-index: 410;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(34, 36, 33, 0.08);
  border-left: 1px solid var(--border);
  pointer-events: none;
  visibility: hidden;
  contain: layout style paint;
}

.cart-panel.open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  visibility: visible;
}

body.cart-open {
  overflow: hidden;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.cart-panel__header h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--ink);
}

.cart-panel__close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}

.cart-panel__close:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-image);
  object-fit: cover;
  object-position: center 15%;
  display: block;
  flex-shrink: 0;
}

.cart-item__img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-image);
  background-color: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.cart-item__price {
  font-size: 0.8125rem;
  color: var(--accent-terracotta);
  font-weight: 600;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color 0.25s, color 0.25s;
}

.cart-item__qty button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-qty-num {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

.cart-item__remove {
  grid-column: 2 / -1;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  justify-self: start;
  padding: 0;
  transition: color 0.2s;
  margin-top: -4px;
}

.cart-item__remove:hover {
  color: var(--accent-terracotta);
}

.cart-panel__footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  background-color: var(--bg-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--ink);
}

#cart-total {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-terracotta);
}

.cart-panel__footer .btn {
  width: 100%;
}

/* ── Модальное окно (Order Modal) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(34, 36, 33, 0.52);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.open {
  display: flex;
}

.modal--order-contact .order-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-md);
}

.modal--order-contact .contact-btn {
  max-width: 100%;
}

.order-contact-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.modal {
  background-color: var(--bg-light);
  border-radius: var(--radius-card);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  position: relative;
  box-shadow: 0 20px 80px rgba(34, 36, 33, 0.15);
  border: 1px solid var(--border);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
  z-index: 10;
}

.modal__close:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

.modal h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--ink);
}

.modal__sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  line-height: 1.45;
}

.order-summary {
  background-color: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  border: 1px solid rgba(226, 229, 224, 0.5);
}

.order-summary__line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink);
}

.order-summary__total {
  border-top: 1px solid var(--border);
  margin-top: var(--space-xs);
  padding-top: var(--space-sm);
  font-weight: 600;
}

.order-summary__total span:last-child {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-terracotta);
}

/* ── Лайтбокс ── */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(23, 25, 22, 0.95);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-image);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 250, 245, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-light);
  transition: border-color 0.25s, color 0.25s;
}

.lightbox__close:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

/* ── Плавное появление (Scroll Reveal) ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Тост уведомления ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background-color: var(--bg-dark);
  color: var(--bg-light);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 700;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1), opacity 0.35s;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid rgba(250, 250, 245, 0.08);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Центрированные Контакты (Кнопки) ── */
.contacts-centered {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-top: var(--space-xl);
}

.contacts-centered .contact-lead-text {
  margin-bottom: var(--space-xl);
}

.contact-buttons-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: var(--shadow-ambient);
}

.contact-btn--telegram {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.contact-btn--telegram:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(90, 115, 86, 0.15);
}

.contact-btn--vk {
  background-color: #fff;
  color: #4C75A3;
  border: 1px solid #4C75A3;
}

.contact-btn--vk:hover {
  background-color: rgba(76, 117, 163, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 117, 163, 0.1);
}

.contact-btn--instagram {
  background-color: #fff;
  color: #E1306C;
  border: 1px solid #E1306C;
}

.contact-btn--instagram:hover {
  background-color: rgba(225, 48, 108, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 48, 108, 0.1);
}

.contact-btn--phone {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.contact-btn--phone:hover {
  background-color: var(--bg-alt);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Юридические документы в футере ── */
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(224, 228, 220, 0.15);
  font-size: 0.8125rem;
  width: 100%;
}

.footer__legal-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.25s;
}

.footer__legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ── Баннер Cookie ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 680px;
  margin-inline: auto;
  background-color: var(--bg-light);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 16px 24px;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(38, 41, 35, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 999;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner__text a:hover {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
}

/* ── Адаптивность ── */
@media (max-width: 1024px) {
  .gallery-categories {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-item, .portfolio-item--large,
  .portfolio-item--hero, .portfolio-item--wide {
    grid-column: span 1;
  }
  .portfolio-item img {
    aspect-ratio: 1;
  }
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: flex;
  }
  .header__actions .header__cta {
    display: none;
  }
  .header__inner {
    min-width: 0;
  }
  .header__logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(46vw, 280px);
    font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  }

  .header__logo-line {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header--solid .header__burger span {
    background-color: var(--ink);
  }
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .about__photo-wrapper {
    width: 100%;
    max-width: 320px;
    margin-bottom: var(--space-sm);
  }
  .prices-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: var(--space-md);
  }

  #blog .portfolio-cta {
    margin-top: var(--space-lg);
    padding-inline: clamp(4px, 2vw, 12px);
  }

  #blog .portfolio-cta .btn--outline-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 14px 22px;
    white-space: normal;
    line-height: 1.35;
    background-color: #FAFAF5;
    border: 1px solid rgba(90, 115, 86, 0.42);
    box-shadow: 0 4px 18px rgba(43, 47, 41, 0.06);
    transform: none;
  }

  #blog .portfolio-cta .btn--outline-accent:hover {
    background-color: #FAFAF5;
    border-color: var(--accent);
    transform: none;
    box-shadow: 0 6px 22px rgba(43, 47, 41, 0.09);
  }

  #blog .blog-card {
    box-shadow: 0 8px 28px rgba(43, 47, 41, 0.06);
  }

  #blog .blog-card__body {
    padding-bottom: var(--space-lg);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .map-container {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .merch-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-inline: auto;
  }
  .merch-card__nav {
    padding: 0 8px;
  }
  .merch-card__nav-btn {
    width: 36px;
    height: 36px;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .about__stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .about__photo-wrapper::before {
    transform: translate(8px, 8px);
  }
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-lg);
  }
  .footer__brand-section {
    max-width: 100%;
  }
  .footer__links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md) var(--space-lg);
  }
}

/* Снижение интенсивности анимаций для доступности */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__scroll {
    animation: none !important;
  }
}
