/* ============================================================
   SnackBox — Design System
   Concept: "Unbox" — geometric, confident, appetizing
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Palette */
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F3F1ED;
  --color-surface-warm: #FFF8F0;

  --color-primary: #E85D3A;
  --color-primary-hover: #D14E2E;
  --color-primary-light: #FFF0EB;
  --color-primary-glow: rgba(232, 93, 58, 0.12);

  --color-accent: #2BA584;
  --color-accent-light: #E8F6F1;

  --color-gold: #E5A84B;
  --color-gold-light: #FFF7E8;

  --color-text: #1E2328;
  --color-text-secondary: #5E6670;
  --color-text-tertiary: #9CA3AD;
  --color-text-inverse: #FFFFFF;

  --color-danger: #D93025;
  --color-danger-light: #FDECEA;

  --color-border: #E4E2DE;
  --color-border-light: #F0EEEA;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(30, 35, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(30, 35, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(30, 35, 40, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 35, 40, 0.10);
  --shadow-xl: 0 16px 48px rgba(30, 35, 40, 0.14);
  --shadow-glow: 0 0 0 4px var(--color-primary-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--duration-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, var(--text-6xl)); font-weight: 800; line-height: 1.18; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--text-2xl)); }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-overline {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

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

.section--warm {
  background: var(--color-surface-warm);
}

.section--dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-inverse);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .section-header { margin-bottom: var(--space-8); }
}

@media (min-width: 1440px) {
  .section { padding: var(--space-24) 0; }
}

/* Contacts grid */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
}

.contact-item__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: 2px;
}

.contact-item__value {
  color: var(--color-text);
  font-size: var(--text-base);
}

.contact-item__value--primary {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.contact-item__value--link {
  color: var(--color-primary);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-12);
}

.section-header p {
  margin-top: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: 1.75;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(232, 93, 58, 0.25);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover {
  background: var(--color-primary-light);
}

.btn--white {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-surface);
}

.btn--white:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}

.btn--dark:hover {
  background: #2E3438;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon-lg {
  width: 48px;
  height: 48px;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid var(--color-border-light);
}

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

.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-alt);
}

.card__body {
  padding: var(--space-6);
}

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-display);
}

.card__tag--size {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.card__tag--popular {
  background: var(--color-gold-light);
  color: var(--color-gold);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  transition: all var(--duration-normal);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  border-bottom-color: var(--color-border-light);
  background: rgba(250, 250, 248, 0.95);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  transform: rotate(-3deg);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover .logo__icon {
  transform: rotate(0deg) scale(1.05);
}

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

.nav__link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--duration-fast);
}

.nav__link:hover {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-surface-alt);
}

.nav__link--active {
  color: var(--color-text);
  background: var(--color-surface-alt);
  font-weight: 600;
  border-color: var(--color-primary);
}

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

.header__phone {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.header__phone:hover {
  color: var(--color-primary);
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 110;
}

.burger__lines {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger__line {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  transform-origin: center;
}

.burger.open .burger__line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.open .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.open .burger__line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__link {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-3);
}

.mobile-nav__link:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__desc {
  font-size: 1.1875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 520px;
}

.hero__box-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  text-align: center;
}

.hero__box-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.hero__box-card:nth-child(2) { transform: translateY(20px); }
.hero__box-card:nth-child(2):hover { transform: translateY(16px); }
.hero__box-card:nth-child(3) { transform: translateY(-10px); }
.hero__box-card:nth-child(3):hover { transform: translateY(-14px); }

.hero__box-emoji {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.hero__box-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.hero__box-price {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* Trust strip */
.trust-strip {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-item__icon--orange { background: var(--color-primary-light); }
.trust-item__icon--green { background: var(--color-accent-light); }
.trust-item__icon--gold { background: var(--color-gold-light); }

.trust-item__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.trust-item__sub {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* Hero photo */
.hero__photo-wrap {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 520px;
}

.hero__photo {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow);
}

.hero__photo-wrap:hover .hero__photo {
  transform: scale(1.03);
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero__visual { justify-content: center; }
  .hero__photo-wrap { display: none; }
  .hero__box-grid { max-width: 100%; }
  .trust-strip { gap: var(--space-6); }
}

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-height) + var(--space-8)); padding-bottom: var(--space-16); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .trust-strip { flex-direction: column; gap: var(--space-4); }
}

/* --- Direction Cards --- */
.direction-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6) var(--space-5);
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.direction-card::before {
  display: none;
}

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


.direction-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-5);
}

.direction-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.direction-card__desc {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.direction-card__price {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.direction-card__price strong {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

.direction-card__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.direction-card__link svg {
  transition: transform var(--duration-fast);
}

.direction-card:hover .direction-card__link svg {
  transform: translateX(4px);
}

/* --- Feature Blocks --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.feature {
  padding: var(--space-6) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}

.feature__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.feature__text {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.step {
  position: relative;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.step__text {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* --- Product Catalog --- */
.catalog-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.filter-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.filter-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-pill.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* Product card */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: none;
  transform: none;
}

.product-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-alt);
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-2);
}

.product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

.product-card__sku {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.product-card__composition {
  list-style: none;
  margin: var(--space-2) 0;
  padding: 0;
  flex-grow: 1;
}

.product-card__composition li {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.product-card__composition li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-primary);
}

.product-card__price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.product-card__min {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  vertical-align: middle;
}

.product-card__add {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all var(--duration-fast);
}

.product-card__add:hover {
  background: var(--color-primary-hover);
  transform: scale(1.1);
}

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: var(--space-1);
}

.qty-control__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: 600;
  transition: all var(--duration-fast);
  box-shadow: var(--shadow-xs);
}

.qty-control__btn:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.qty-control__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  min-width: 32px;
  text-align: center;
}

/* --- Floating Cart --- */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--space-4) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  transform: translateY(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.cart-bar.visible {
  transform: translateY(0);
}

.cart-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

.cart-bar__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}

.cart-bar__hint {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
}

.cart-bar__total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
}

@media (max-width: 640px) {
  .cart-bar__hint { display: none; }
}

/* --- Expanded Cart Panel --- */
.cart-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--color-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-xl);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.cart-panel.open {
  transform: translateY(0);
}

.cart-panel__header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
}

.cart-panel__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.cart-panel__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-panel__item-name {
  flex-grow: 1;
  font-weight: 500;
}

.cart-panel__item-total {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}

.cart-panel__item-remove {
  color: var(--color-text-tertiary);
  cursor: pointer;
  padding: var(--space-1);
}

.cart-panel__item-remove:hover {
  color: var(--color-primary);
}

.cart-panel__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border-light);
  flex-shrink: 0;
}

.cart-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.cart-panel__row--total {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

/* Cart overlay backdrop */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 35, 40, 0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 90vw);
  background: var(--color-bg);
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 151;
  animation: slideInRight 0.25s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.cart-drawer__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}
.cart-drawer__header h3 { margin: 0; font-size: var(--text-lg); }
.cart-drawer__items {
  flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6);
}
.cart-drawer__item {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
  gap: var(--space-3);
}
.cart-drawer__item-info { flex: 1; min-width: 0; }
.cart-drawer__item-name { font-weight: 600; font-size: var(--text-sm); }
.cart-drawer__item-custom { font-size: 0.75rem; color: var(--color-primary); margin-top: 2px; }
.cart-drawer__item-price { font-size: 0.75rem; color: var(--color-text-secondary); margin-top: 2px; }
.cart-drawer__item-controls { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.cart-drawer__item-total { font-weight: 600; font-size: var(--text-sm); min-width: 60px; text-align: right; }
.cart-drawer__remove {
  width: 24px; height: 24px; border: none; background: none;
  color: var(--color-text-secondary); font-size: 1.2rem; cursor: pointer;
  border-radius: var(--radius-sm); transition: all 0.15s;
}
.cart-drawer__remove:hover { color: #e53e3e; background: #fee; }
.cart-drawer__footer { padding: var(--space-4) var(--space-6) var(--space-6); border-top: 1px solid var(--color-border-light); }
.cart-drawer__bonus { color: var(--color-primary); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.cart-drawer__discount { color: var(--color-accent); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.cart-drawer__total {
  display: flex; justify-content: space-between; font-weight: 700; font-size: var(--text-lg);
  margin-bottom: var(--space-4); padding-top: var(--space-3);
}
.cart-drawer__clear {
  display: block; width: 100%; margin-top: var(--space-3);
  background: none; border: none; color: var(--color-text-secondary);
  font-size: var(--text-sm); cursor: pointer; text-align: center; padding: var(--space-2);
}
.cart-drawer__clear:hover { color: #e53e3e; }
.qty-control--sm { gap: var(--space-1); }
.qty-control--sm .qty-control__btn { width: 26px; height: 26px; font-size: 0.85rem; }
.qty-control--sm .qty-control__value { min-width: 24px; font-size: var(--text-sm); }

/* --- Catalog Hero --- */
.catalog-hero {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-8);
  background: var(--color-surface-alt);
  text-align: center;
}
.catalog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.catalog-hero p {
  color: var(--color-text-secondary);
  font-size: var(--text-md);
}

/* --- Catalog Tabs --- */
.catalog-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.catalog-tab {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-light);
  background: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.catalog-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.catalog-tab--active,
.catalog-tab--active:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.catalog-tab-info {
  text-align: center;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.catalog-tab-info__min {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .catalog-tabs { gap: var(--space-1); }
  .catalog-tab { padding: var(--space-2) var(--space-4); font-size: 0.8rem; }
}

/* --- Discount Ladder --- */
.discount-ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

.discount-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.discount-card--featured {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.discount-card__badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.discount-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.discount-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
  .discount-ladder { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .discount-ladder { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .discount-ladder { grid-template-columns: 1fr; }
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-surface-alt);
}

.comparison-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.comparison-table .col-highlight {
  background: var(--color-primary-light);
  font-weight: 500;
}

.comparison-table .col-highlight-header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-text);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.1;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0.08;
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-4);
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .cta-banner { padding: var(--space-10) var(--space-6); border-radius: var(--radius-xl); }
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 14px var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: all var(--duration-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.form-input::placeholder {
  color: var(--color-text-tertiary);
}

.form-input--error {
  border-color: var(--color-danger);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 35, 40, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.modal-backdrop.open .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.modal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  transition: all var(--duration-fast);
  font-size: var(--text-xl);
}

.modal__close:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand-desc {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 280px;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-text-inverse);
}

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-2); }
}

/* --- Misc --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Success animation */
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: scaleIn 0.4s var(--ease-spring);
}

.success-check svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Page spacing */
.page-top {
  padding-top: calc(var(--header-height) + var(--space-12));
}


/* ============================================================
   ENHANCEMENTS — v2
   ============================================================ */

/* --- Hero: gradient background + decorative blobs --- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(232, 93, 58, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(229, 168, 75, 0.05), transparent),
    var(--color-bg);
}

.hero__box-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
}

.hero__box-card:nth-child(1) { background: #FFF5EB; border-color: rgba(232,93,58,0.12); }
.hero__box-card:nth-child(2) { background: #F5EDE4; border-color: rgba(139,109,76,0.12); }
.hero__box-card:nth-child(3) { background: #FFF0F0; border-color: rgba(200,100,100,0.12); }
.hero__box-card:nth-child(4) { background: #F3EEFF; border-color: rgba(120,90,200,0.12); }

.hero__box-emoji {
  font-size: 3.5rem;
  margin-bottom: var(--space-3);
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.hero__box-card:hover .hero__box-emoji {
  transform: scale(1.2) rotate(-5deg);
}

.hero__box-card:hover {
  box-shadow: var(--shadow-lg);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Stagger children */
.reveal[style*="--d:1"] { transition-delay: 0.08s; }
.reveal[style*="--d:2"] { transition-delay: 0.16s; }
.reveal[style*="--d:3"] { transition-delay: 0.24s; }
.reveal[style*="--d:4"] { transition-delay: 0.32s; }
.reveal[style*="--d:5"] { transition-delay: 0.40s; }

/* --- Direction Cards: unique colors + improved icons --- */
.direction-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-5);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.direction-card:hover .direction-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.direction-card:nth-child(1) .direction-card__icon { background: #FFF5EB; }
.direction-card:nth-child(2) .direction-card__icon { background: #F5EDE4; }
.direction-card:nth-child(3) .direction-card__icon { background: #FFF0F0; }
.direction-card:nth-child(4) .direction-card__icon { background: #F3EEFF; }

/* direction-card ::before removed */

/* --- Feature numbers: more visible --- */
.feature__number {
  color: var(--color-primary);
  opacity: 0.18;
}

/* --- Product cards: improved add button + image hover overlay --- */
.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,35,40,0.2), transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}

.product-card:hover .product-card__img-wrap::after {
  opacity: 1;
}

/* Full-width add button */
.product-card__add-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--duration-fast);
}

.product-card__add-full:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,93,58,0.25);
}

.product-card__add-full:active {
  transform: translateY(0);
}

/* Qty control: show line total */
.qty-control--wide {
  justify-content: space-between;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-2);
}

.qty-control__line-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-left: auto;
  padding-right: var(--space-2);
}

/* Product footer: stack layout for new buttons */
.product-card__footer--stack {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* --- Micro-interactions --- */
.btn:active {
  transform: scale(0.97) !important;
}

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

.card:focus-visible,
.direction-card:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Logo subtle animation */
.logo__icon {
  transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover .logo__icon {
  transform: rotate(0deg) scale(1.08);
}

/* Footer improvements */
.footer {
  background: linear-gradient(to bottom, #252A2E, var(--color-text) 60px);
}

.footer__link:hover {
  color: var(--color-text-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Mobile improvements --- */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero {
    padding-bottom: var(--space-10);
  }

  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .hero__actions .btn {
    min-height: 48px;
  }

  .product-card__add-full {
    min-height: 48px;
  }

  .qty-control__btn {
    width: 44px;
    height: 44px;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* --- Discount cards: hover effect --- */
.discount-card {
  transition: all var(--duration-normal) var(--ease-out);
}

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

/* --- Landing hero: subtle background --- */
.landing-hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(232, 93, 58, 0.05), transparent),
    var(--color-bg);
}

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

/* ============================================================
   ENHANCEMENTS — v3: Social proof, WhatsApp, Back-to-top, Steps
   ============================================================ */

/* --- Social Proof: Stats Bar --- */
.stats-bar {
  padding: var(--space-12) 0;
  background: var(--color-surface-alt);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat {
  padding: var(--space-4);
}

.stat__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, var(--text-5xl));
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (max-width: 480px) {
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Social Proof: Client Logos --- */
.clients-strip {
  padding: var(--space-8) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.clients-strip__label {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-6);
  font-weight: 500;
}

.clients-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all var(--duration-slow);
}

.clients-strip__logos:hover {
  opacity: 0.8;
  filter: grayscale(0.3);
}

.clients-strip__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text);
  opacity: 0.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.clients-strip__logo:hover { opacity: 0.7; }
.clients-strip__logo--yandex { font-weight: 900; letter-spacing: -0.04em; font-size: 1.35rem; }
.clients-strip__logo--sber { font-weight: 800; letter-spacing: 0.18em; font-size: 0.95rem; }
.clients-strip__logo--mts { font-weight: 900; letter-spacing: 0.22em; font-size: 1.1rem; }
.clients-strip__logo--tinkoff { font-weight: 600; letter-spacing: -0.01em; font-size: 1.15rem; }
.clients-strip__logo--vk { font-weight: 900; letter-spacing: -0.03em; font-size: 1.5rem; }
.clients-strip__logo--ozon { font-weight: 800; font-size: 1.3rem; }
.clients-strip__logo--avito { font-weight: 700; letter-spacing: 0.02em; font-size: 1.2rem; font-style: italic; }

/* --- Social Proof: Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.testimonial__stars {
  color: var(--color-gold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

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

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

@media (max-width: 1024px) {
  .testimonials { grid-template-columns: 1fr; }
}

/* --- Steps: with icons --- */
.step__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  position: relative;
}

.step:nth-child(1) .step__icon { background: var(--color-primary-light); }
.step:nth-child(2) .step__icon { background: var(--color-accent-light); }
.step:nth-child(3) .step__icon { background: var(--color-gold-light); }
.step:nth-child(4) .step__icon { background: #F3EEFF; }

/* Step connector line */
.steps {
  position: relative;
}

@media (min-width: 1025px) {
  .step {
    position: relative;
  }

  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: calc(100% - 56px);
    height: 2px;
    background: var(--color-border-light);
    left: 72px;
  }
}

/* --- Landing Hero: with product image --- */
.landing-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.landing-hero__img-stack {
  position: relative;
  display: flex;
  justify-content: center;
}

.landing-hero__img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  transition: transform var(--duration-normal) var(--ease-out);
}

.landing-hero__img:hover {
  transform: rotate(0deg) scale(1.02);
}

.landing-hero__float-badge {
  position: absolute;
  bottom: -12px;
  right: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.landing-hero__float-badge span {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

@media (max-width: 1024px) {
  .landing-hero__grid { grid-template-columns: 1fr; }
  .landing-hero__img-stack { display: none; }
}

/* --- WhatsApp Floating Button --- */
.fab-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  border: none;
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

/* Tooltip */
.fab-whatsapp__tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.fab-whatsapp:hover .fab-whatsapp__tooltip {
  opacity: 1;
}

/* When cart bar is visible, move WhatsApp up */
.cart-bar.visible ~ .fab-whatsapp {
  bottom: calc(var(--space-6) + 72px);
}

@media (max-width: 640px) {
  .fab-whatsapp { width: 48px; height: 48px; bottom: var(--space-4); right: var(--space-4); }
  .fab-whatsapp svg { width: 24px; height: 24px; }
  .fab-whatsapp__tooltip { display: none; }
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: calc(var(--space-6) + 64px);
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .back-to-top { right: calc(var(--space-4) + 56px); bottom: var(--space-4); width: 40px; height: 40px; }
}

/* ============================================================
   INGREDIENT SWAP DROPDOWN
   ============================================================ */

.swap-item {
  position: relative;
  cursor: pointer;
}

.swap-item__current {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
}

.swap-item__current:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.swap-item__current--changed {
  color: var(--color-accent);
  background: var(--color-accent-light);
  font-weight: 500;
}

.swap-item__current--changed:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.swap-item__icon {
  flex-shrink: 0;
  opacity: 0.35;
  transition: transform var(--duration-fast);
  width: 10px;
  height: 10px;
}

.swap-item:hover .swap-item__icon {
  opacity: 0.7;
}

/* Dropdown */
.swap-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -8px;
  z-index: 50;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all var(--duration-fast) var(--ease-out);
}

.swap-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.swap-dropdown__label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  padding: var(--space-1) var(--space-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.swap-dropdown__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--duration-fast);
}

.swap-dropdown__option:hover {
  background: var(--color-surface-alt);
}

.swap-dropdown__option--active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.swap-dropdown__option--active:hover {
  background: var(--color-primary-light);
}

/* Swap items use same bullet as regular items */
.swap-item::before {
  content: '' !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--color-accent) !important;
  opacity: 0.5;
}

.swap-item:hover::before {
  opacity: 1;
}

/* ============================================================
   HERO PHOTO — Full-bleed background image hero
   ============================================================ */

.hero-photo {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-height);
}

.hero-photo__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(30, 35, 40, 0.55) 0%, rgba(30, 35, 40, 0.15) 60%, transparent 100%),
    linear-gradient(to top, rgba(30, 35, 40, 0.6) 0%, rgba(30, 35, 40, 0.2) 50%, transparent 100%);
  z-index: 1;
}

.hero-photo__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-16);
  padding-top: var(--space-16);
  max-width: var(--container-max);
}

.hero-photo__title {
  color: var(--color-text-inverse);
  font-size: clamp(2.5rem, 6vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
}

.hero-photo__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xl);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-photo .hero__actions {
  margin-bottom: 0;
}

.hero-photo .text-overline {
  margin-bottom: var(--space-4);
}

.hero-photo__badge {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
}

/* Hero photo: quick-nav cards */
.hero-photo__cards {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-photo__card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(30, 35, 40, 0.2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-text-inverse);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.hero-photo__card:hover {
  background: rgba(30, 35, 40, 0.35);
  transform: translateY(-2px);
}

.hero-photo__card-emoji {
  font-size: 1.4rem;
}

.hero-photo__card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.hero-photo__card-price {
  font-size: var(--text-xs);
  opacity: 0.7;
}

@media (max-width: 640px) {
  .hero-photo__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .hero-photo__card {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }
}

/* Trust strip section (below hero-photo) */
.trust-strip-section {
  padding: var(--space-10) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-strip-section .trust-strip {
  margin-top: 0;
}

/* On pages with hero-photo, make header transparent until scrolled */
.hero-photo ~ .header,
body:has(.hero-photo) .header:not(.header--scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:has(.hero-photo) .header:not(.header--scrolled) .logo,
body:has(.hero-photo) .header:not(.header--scrolled) .nav__link,
body:has(.hero-photo) .header:not(.header--scrolled) .header__phone {
  color: var(--color-text-inverse);
}

body:has(.hero-photo) .header:not(.header--scrolled) .nav__link {
  border-color: rgba(255, 255, 255, 0.4);
}

body:has(.hero-photo) .header:not(.header--scrolled) .nav__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-inverse);
}

body:has(.hero-photo) .header:not(.header--scrolled) .nav__link--active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: var(--color-text-inverse);
}

body:has(.hero-photo) .header:not(.header--scrolled) .burger__line {
  background: var(--color-text-inverse);
}

@media (max-width: 768px) {
  .hero-photo {
    min-height: 70vh;
    align-items: flex-end;
  }

  .hero-photo__content {
    padding-bottom: var(--space-10);
  }

  .hero-photo__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-photo__desc {
    font-size: var(--text-base);
  }
}
