/* ============================================
   EMELI — Base Styles
   Шрифти: Playfair Display + DM Sans
   ============================================ */

:root {
  /* ── Кольори ── */
  --color-primary:       #3A6B35;
  --color-primary-dark:  #1E3D14;
  --color-primary-light: #6B9B5E;

  --color-sage:          #8FA47A;
  --color-olive:         #A4AD8B;

  --color-cream:         #F5F0E4;
  --color-beige:         #FAF7F0;
  --color-mint:          #EFF3EA;
  --color-white:         #FFFFFF;

  --color-text:          #1A1A1A;
  --color-text-muted:    #6B6B6B;
  --color-text-light:    #999999;

  --color-border:        #E0DDD5;
  --color-shadow:        rgba(30, 61, 20, 0.08);

  /* ── Шрифти ── */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Segoe UI', Roboto, Arial, sans-serif;

  /* ── Розміри тексту ── */
  --text-xs:   0.75rem;     /* 12px */
  --text-sm:   0.875rem;    /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-md:   1.125rem;    /* 18px */
  --text-lg:   1.25rem;     /* 20px */
  --text-xl:   1.5rem;      /* 24px */
  --text-2xl:  2rem;        /* 32px */
  --text-3xl:  2.5rem;      /* 40px */
  --text-4xl:  3rem;        /* 48px */
  --text-5xl:  3.75rem;     /* 60px */

  /* ── Товщина шрифту ── */
  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ── Висота рядка ── */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-normal:  1.6;
  --leading-relaxed: 1.75;

  /* ── Міжбуквений інтервал ── */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-wider:   0.05em;
  --tracking-widest:  0.1em;

  /* ── Відступи ── */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* ── Закруглення ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Контейнер ── */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* ── Transitions ── */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;
}


/* ── Reset ── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}


/* ── Типографіка — Заголовки ── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-md);
}


/* ── Типографіка — Текст ── */

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.text-accent {
  color: var(--color-primary);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}


/* ── Контейнер ── */

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


/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px var(--color-shadow);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

/* ── Logo ── */

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 30px;
  width: auto;
}

/* ── Navigation ── */

.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 8px;
}

.header__nav-link {
  display: block;
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__nav-link--active {
  color: var(--color-text);
  background: var(--color-mint);
  font-weight: var(--weight-semibold);
}

/* ── Actions (phone + cart) ── */

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

.header__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: all var(--transition-fast);
}

.header__action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ── Burger (mobile) ── */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.header__burger:hover {
  background: var(--color-mint);
}

.header__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO
   ============================================ */

.hero {
  padding-top: 120px;
  padding-bottom: var(--space-4xl);
  background: linear-gradient(170deg, var(--color-beige) 0%, var(--color-white) 40%, var(--color-mint) 100%);
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Top: heading + description ── */

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.hero__top-left {
  flex: 1.2;
}

.hero__tag {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-wide);
}

.hero__title {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  max-width: 600px;
}

.hero__top-right {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-bottom: 8px;
}

.hero__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  max-width: 380px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 8px 12px 24px;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-base);
}

.hero__cta:hover {
  background: var(--color-primary-dark);
}

.hero__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.hero__cta:hover .hero__cta-icon {
  transform: translateX(3px);
}

/* ── Gallery grid ── */

.hero__gallery {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.3fr 1fr;
  grid-template-rows: 380px;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.hero__gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero__gallery-item:hover img {
  transform: scale(1.05);
}

.hero__gallery-item--1 {
  border-radius: var(--radius-lg);
}

.hero__gallery-item--2 {
  border-radius: var(--radius-xl);
}

.hero__gallery-item--3 {
  border-radius: var(--radius-xl);
}

.hero__gallery-item--4 {
  border-radius: var(--radius-lg);
}

/* ── Spinning circle badge ── */

.hero__circle-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 120px;
  height: 120px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__circle-text {
  position: absolute;
  width: 110px;
  height: 110px;
  animation: spin 12s linear infinite;
}

.hero__circle-text text {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  fill: var(--color-text);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.hero__circle-play {
  font-size: 1rem;
  color: var(--color-text);
  z-index: 1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Bottom text ── */

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1000px;
}

.hero__bottom-text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}


/* ============================================
   STORY / ABOUT
   ============================================ */

.story {
  padding: var(--space-5xl) 0;
  background: var(--color-beige);
  overflow: hidden;
}

.story__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── Intro ── */

.story__intro {
  margin-bottom: var(--space-4xl);
}

.story__tag {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
  letter-spacing: var(--tracking-wide);
}

.story__main-title {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  margin-bottom: var(--space-3xl);
}

.story__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.story__lead {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.story__intro-text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.story__highlight {
  font-weight: var(--weight-semibold);
  color: var(--color-primary) !important;
  font-size: var(--text-lg) !important;
  margin-top: var(--space-sm);
}

/* ── Two-column cards ── */

.story__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-4xl);
}

.story__card {
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
  position: relative;
}

.story__card--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.story__card--dark p,
.story__card--dark li {
  color: rgba(255, 255, 255, 0.8);
}

.story__card--dark h3 {
  color: var(--color-white);
}

.story__card--light {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

/* Текстовий блок «технологія» — не суцільне полотно */
.story__card-lead {
  margin-bottom: var(--space-lg);
}

.story__card-lead p:not(:last-child) {
  margin-bottom: var(--space-md);
}

.story__card-highlight {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-beige) 100%);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-primary-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.story__card-highlight-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.story__card--light .story__card-accent {
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
}

.story__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
}

.story__card--dark .story__card-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.story__card--light .story__card-icon {
  background: var(--color-mint);
  color: var(--color-primary);
}

.story__card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.story__card p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

/* Перекриваємо загальне правило для вступу та виділеного блоку */
.story__card .story__card-lead p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.story__card .story__card-highlight-text {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-text);
  margin-bottom: 0 !important;
}

.story__list {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story__list li {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  padding-left: 20px;
  position: relative;
}

.story__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
}

.story__card--dark .story__list li::before {
  background: rgba(255, 255, 255, 0.4);
}

.story__card--light .story__list li::before {
  background: var(--color-primary);
}

.story__list--tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.story__list--tags li {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.story__list--tags li::before {
  display: none;
}

.story__card-accent {
  font-weight: var(--weight-medium) !important;
  font-style: italic;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.story__card--light .story__card-accent {
  border-top-color: var(--color-border);
  color: var(--color-primary) !important;
}

/* ── Why EMELI ── */

.story__why {
  margin-bottom: var(--space-4xl);
}

.story__why-content {
  max-width: 900px;
  margin: 0 auto;
}

.story__why-content h3 {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.story__why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.story__why-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.story__why-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-4px);
}

.story__why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  background: var(--color-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.story__why-item p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.story__why-note {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ── Mission ── */

.story__mission {
  background: var(--color-primary-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl) var(--space-2xl);
}

.story__mission-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.story__mission-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.story__mission-title {
  font-size: clamp(1.75rem, 3vw, var(--text-3xl));
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-tight);
}

.story__mission-text {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.story__mission-divider {
  width: 60px;
  height: 2px;
  background: var(--color-primary-light);
  margin: 0 auto var(--space-xl);
  border-radius: 2px;
}

.story__mission-final {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-relaxed);
}

.story__mission-final strong {
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  display: block;
  font-size: var(--text-lg);
  margin-top: var(--space-xs);
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 0;
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Brand column ── */

.footer__logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: var(--space-lg);
}

.footer__brand-text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-xl);
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer__social:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ── Link columns ── */

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-weight: var(--weight-semibold);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

/* ── Contacts ── */

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
}

.footer__contacts li i {
  color: var(--color-primary-light);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.footer__contacts a,
.footer__contacts span {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer__contacts a:hover {
  color: var(--color-white);
}

/* ── Bottom bar ── */

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom p {
  color: inherit;
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}


/* ── Cart badge ── */

.header__cart-btn {
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--weight-bold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}


/* ============================================
   CATALOG
   ============================================ */

.catalog {
  padding: var(--space-5xl) 0;
  background: var(--color-white);
}

.catalog__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.catalog__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.catalog__tag {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
  letter-spacing: var(--tracking-wide);
}

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

.catalog__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ── Product Card ── */

.product-card {
  background: var(--color-beige);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 40px var(--color-shadow);
}

.product-card__gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--color-beige);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card__img--active {
  opacity: 1;
}

.product-card__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.product-card__dot--active {
  background: var(--color-white);
  width: 24px;
  border-radius: 4px;
}

/* Gallery arrows */
.product-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--color-text);
  z-index: 3;
  opacity: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.product-card__gallery:hover .product-card__arrow {
  opacity: 1;
}

.product-card__arrow:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.product-card__arrow--prev {
  left: 10px;
}

.product-card__arrow--next {
  right: 10px;
}

.product-card__info {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-sm);
}

.product-card__name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.product-card__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.product-card__details {
  margin-bottom: var(--space-lg);
  margin-top: auto;
}

.product-card__details-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition-fast);
}

.product-card__details-btn:hover {
  gap: 10px;
}

.product-card__volumes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.product-card__volumes--single .product-card__volume {
  width: 100%;
  text-align: center;
}

.product-card__volumes--variants {
  flex-direction: column;
}

.product-card__volumes--variants .product-card__volume {
  width: 100%;
  text-align: center;
}

.product-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.product-card--promo {
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(45, 90, 61, 0.12);
}

.product-card__features {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.product-card__features li + li {
  margin-top: 4px;
}

.product-card__price--sale {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.product-card__price-old {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.modal__price--sale {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.modal__price--sale .product-card__price-old {
  font-size: var(--text-lg);
}

.product-card__volume {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-card__volume:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-card__volume--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.product-card__volume--active:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
}

.product-card__volume--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

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

.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.product-card__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-card__add-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}


/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-text);
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-cream);
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.modal__gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  background: var(--color-beige);
  aspect-ratio: 1 / 1;
  width: 100%;
  align-self: start;
}

.modal__gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.modal__gallery-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal__gallery-slider img.active {
  opacity: 1;
}

.modal__gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text);
  z-index: 3;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.modal__gallery-arrow:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.modal__gallery-arrow--prev {
  left: 12px;
}

.modal__gallery-arrow--next {
  right: 12px;
}

.modal__gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.modal__gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.modal__gallery-dot.active {
  background: var(--color-white);
  width: 24px;
  border-radius: 4px;
}

.modal__content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}

.modal__category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-sm);
}

.modal__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
}

.modal__text {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  flex: 1;
}

.modal__text p {
  margin-bottom: var(--space-sm);
}

.modal__text strong {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.modal__volumes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.modal__volumes button {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal__volumes button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.modal__volumes button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.modal__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.modal__price {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.modal__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal__add-btn:hover {
  background: var(--color-primary-dark);
}


/* ============================================
   CART SIDEBAR
   ============================================ */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100dvh;
  background: var(--color-white);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}

.cart.open {
  transform: translateX(0);
}

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

.cart__title {
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition-fast);
}

.cart__close:hover {
  background: var(--color-cream);
}

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

.cart__empty {
  text-align: center;
  padding: var(--space-4xl) 0;
  color: var(--color-text-muted);
}

.cart__empty i {
  font-size: 3rem;
  color: var(--color-olive);
  margin-bottom: var(--space-md);
}

.cart__empty p {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.cart__empty span {
  font-size: var(--text-sm);
}

/* cart item */
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.cart-item__volume {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

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

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.cart-item__qty-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-item__qty {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  min-width: 20px;
  text-align: center;
}

.cart-item__price {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.cart-item__remove {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  transition: color var(--transition-fast);
}

.cart-item__remove:hover {
  color: #c0392b;
}

.cart__footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: var(--color-beige);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  font-size: var(--text-md);
}

.cart__total strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
}

.cart__checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition-fast);
}

.cart__checkout-btn:hover {
  background: var(--color-primary-dark);
}


/* ============================================
   CHECKOUT
   ============================================ */

.modal--checkout {
  max-width: 600px;
}

.checkout {
  padding: var(--space-2xl);
}

.checkout__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.checkout__summary {
  background: var(--color-beige);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  max-height: 200px;
  overflow-y: auto;
}

.checkout__summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}

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

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkout__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout__field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.checkout__field input,
.checkout__field textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  outline: none;
  resize: vertical;
}

.checkout__field input:focus,
.checkout__field textarea:focus {
  border-color: var(--color-primary);
}

.checkout__field input::placeholder,
.checkout__field textarea::placeholder {
  color: var(--color-text-light);
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  font-size: var(--text-md);
}

.checkout__total strong {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
}

.checkout__submit {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition-fast);
}

.checkout__submit:hover {
  background: var(--color-primary-dark);
}

.checkout__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.checkout__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-lg);
  margin-top: var(--space-md);
  color: #991b1b;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.checkout__error i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}


/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-page {
  padding: 160px 0 var(--space-5xl);
  min-height: 80vh;
  background: linear-gradient(170deg, var(--color-beige) 0%, var(--color-white) 50%, var(--color-mint) 100%);
  display: flex;
  align-items: center;
}

.success-page__container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.success-page__icon {
  margin-bottom: var(--space-2xl);
}

.success-page__circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2.5rem;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-page__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}

.success-page__text {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-3xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.success-page__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  text-align: left;
}

.success-page__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.success-page__info-item > i {
  width: 44px;
  height: 44px;
  background: var(--color-mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.success-page__info-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 4px;
}

.success-page__info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin: 0;
}

.success-page__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.success-page__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: all var(--transition-fast);
}

.success-page__btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.success-page__btn--primary:hover {
  background: var(--color-primary-dark);
}

.success-page__btn--outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.success-page__btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}


/* ============================================
   LEGAL PAGES (privacy, terms)
   ============================================ */

.legal-page {
  padding: 140px 0 var(--space-4xl);
  min-height: 70vh;
  background: var(--color-white);
}

.legal-page__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-2xl);
  transition: gap var(--transition-fast);
}

.legal-page__back:hover {
  gap: 12px;
}

.legal-page h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-sm);
}

.legal-page__updated {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3xl);
  font-style: italic;
}

.legal-page section {
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}

.legal-page p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.legal-page ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.legal-page li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  list-style: disc;
}

.legal-page li strong {
  color: var(--color-text);
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  color: var(--color-primary-dark);
}


/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  z-index: 3000;
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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


/* ── Responsive ── */

@media (max-width: 1024px) {
  .story__intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .story__columns {
    grid-template-columns: 1fr;
  }

  .story__why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .product-card__arrow {
    opacity: 1;
  }
  .hero__gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 280px 280px;
  }

  .hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
  }

  .header__burger {
    display: flex;
    z-index: 999999;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }

  .header__nav.open {
    transform: translateX(0);
  }

  .header__logo-img{
    height: 25px;
  }

  .header__nav-list {
    flex-direction: column;
    background: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    gap: var(--space-sm);
  }

  .header__nav-link {
    font-size: var(--text-xl);
    padding: 12px 32px;
  }

  .header__actions {
    display: flex;
    margin-right: var(--space-sm);
  }

  .hero {
    padding-top: 100px;
  }

  .hero__gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: var(--space-sm);
  }

  .hero__circle-badge {
    width: 90px;
    height: 90px;
    bottom: -20px;
    right: -20px;
  }

  .hero__circle-text {
    width: 82px;
    height: 82px;
  }

  .hero__circle-text text {
    font-size: 8px;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
  }

  .story__why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .story__mission {
    padding: var(--space-2xl) var(--space-lg);
  }

  .modal__body {
    grid-template-columns: 1fr;
  }

  .modal__gallery {
    aspect-ratio: 1 / 1;
    max-height: none;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }

  .hero__gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 260px);
  }
}
