/* ===========================
   ИЛЕАР — Сеть супермаркетов
   style.css
   =========================== */

/* --- Custom Properties --- */
:root {
  --color-dark: #2d2d2d;
  --color-darker: #1a1a2e;
  --color-darkest: #151515;
  --color-pink: #e84c6f;
  --color-green: #4caf50;
  --color-yellow: #f9d423;
  --color-orange: #ff9800;
  --color-bg-light: #f5f5f7;
  --color-bg-white: #ffffff;
  --color-text-dark: #2d2d2d;
  --color-text-light: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-gray: #6b7280;

  --glass-dark: rgba(255, 255, 255, 0.06);
  --glass-light: rgba(255, 255, 255, 0.75);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --section-padding: clamp(60px, 10vw, 120px);
  --container-max: 1200px;
  --container-padding: clamp(16px, 4vw, 40px);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--color-bg-light);
}

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

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

button {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Utilities --- */
.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--color-yellow);
  color: var(--color-darkest);
  font-family: var(--font-heading);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

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

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

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

.section--gradient {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
  color: var(--color-text-light);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
  margin: 16px auto 0;
  border-radius: 2px;
}

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

.section__subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-gray);
  max-width: 600px;
  margin: 16px auto 48px;
}

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

/* --- Glass Cards --- */
.glass-card {
  background: var(--glass-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.glass-card-light {
  background: var(--color-bg-white);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card-light:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================
   1. NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  padding: 20px 0;
  transition: background var(--transition-smooth),
              padding var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(21, 21, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__link {
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-pink);
  transition: width var(--transition-smooth);
  border-radius: 1px;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

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

.nav__link.active {
  color: var(--color-pink);
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
  position: absolute;
  right: var(--container-padding);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

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

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

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

/* ============================
   2. HERO
   ============================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d2d 30%, #1a1a2e 60%, #2d2d2d 100%);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Decorative floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--pink {
  width: 400px;
  height: 400px;
  background: var(--color-pink);
  top: -100px;
  right: -100px;
  animation-duration: 10s;
}

.hero__orb--green {
  width: 300px;
  height: 300px;
  background: var(--color-green);
  bottom: -80px;
  left: -80px;
  animation-duration: 12s;
  animation-direction: reverse;
}

.hero__orb--yellow {
  width: 200px;
  height: 200px;
  background: var(--color-yellow);
  top: 50%;
  left: 60%;
  animation-duration: 9s;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  margin: 0 auto 28px;
  max-width: 100%;
  padding: 0 20px;
}

.hero__logos-divider {
  width: 1px;
  height: clamp(50px, 10vw, 80px);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.4), transparent);
  flex-shrink: 0;
}

.hero__logo {
  width: clamp(60px, 12vw, 100px);
  height: auto;
  animation: logoPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}

.hero__logo-partner {
  width: clamp(210px, 55vw, 500px);
  max-width: 75%;
  height: auto;
  mix-blend-mode: screen;
  filter: brightness(1.4) drop-shadow(0 4px 20px rgba(232, 76, 111, 0.2));
  animation: logoPulse 4s ease-in-out infinite;
  animation-delay: 0.5s;
  flex-shrink: 1;
}

.hero__logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__logo-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--color-text-light);
  letter-spacing: 0.15em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 12px 40px rgba(232, 76, 111, 0.3)); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  margin: 16px 0 40px;
  font-weight: 400;
}

.hero__cta {
  display: inline-block;
  padding: 16px 44px;
  border: 2px solid var(--color-pink);
  border-radius: 50px;
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: 50px;
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(232, 76, 111, 0.3);
  border-color: transparent;
}

.hero__cta span {
  position: relative;
  z-index: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 26px;
  height: 26px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(8px, 8px); opacity: 1; }
}

/* ============================
   3. ABOUT
   ============================ */
.about__grid {
  display: block;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
}

.about__text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.about__text p {
  margin-bottom: 16px;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

.about__text strong {
  color: var(--color-dark);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-bg-light);
  transition: transform var(--transition-fast);
}

.about__feature:hover {
  transform: translateX(4px);
}

.about__feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.about__feature-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.about__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about__stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-smooth);
}

.about__stat:hover {
  transform: translateY(-4px);
}

.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.about__stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================
   3.5 ACHIEVEMENTS
   ============================ */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.achievement-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  border: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.achievement-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.achievement-card__value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.achievement-card__label {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  line-height: 1.4;
}

/* ============================
   3.7 WHY US / QUALITY
   ============================ */
.quality__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.quality__card {
  text-align: center;
  padding: 36px 24px;
}

.quality__icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1;
}

.quality__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.quality__card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================
   4. NEW PROJECT
   ============================ */

/* Project header with logo */
.project__header {
  text-align: center;
  margin-bottom: 32px;
}


.project__header-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.project__info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.project__info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--glass-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-smooth);
}

.project__info-card:hover {
  transform: translateY(-3px);
}

.project__info-icon {
  font-size: 1.5rem;
}

.project__info-text {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.project__info-card--link {
  cursor: pointer;
  text-decoration: none;
}

.project__info-card--link:hover {
  border-color: var(--color-pink);
  background: rgba(232, 76, 111, 0.08);
}

.project__info-card--accent {
  border-color: var(--color-pink);
  background: rgba(232, 76, 111, 0.1);
}

/* Project render */
.project__render {
  position: relative;
  margin: 40px auto 48px;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.project__render-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project__render-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(21, 21, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 76, 111, 0.4);
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.project__render-badge-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project__render-badge-date {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-pink);
}

/* Timeline */
.timeline {
  margin-top: 16px;
}

.timeline__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.timeline__heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
  margin: 12px auto 0;
  border-radius: 2px;
}

.timeline__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.timeline__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px clamp(8px, 2.5vw, 24px);
  position: relative;
  transition: all var(--transition-smooth);
  flex-shrink: 0;
}

.timeline__tab-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  transition: all var(--transition-smooth);
  position: relative;
}

.timeline__tab-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: transparent;
  transition: background var(--transition-smooth);
}

.timeline__tab.active .timeline__tab-dot {
  border-color: var(--color-pink);
  box-shadow: 0 0 20px rgba(232, 76, 111, 0.4);
}

.timeline__tab.active .timeline__tab-dot::after {
  background: var(--color-pink);
}

.timeline__tab-dot.pulse {
  animation: dotPulse 0.6s ease;
}

@keyframes dotPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.6); box-shadow: 0 0 24px rgba(232, 76, 111, 0.7); }
  100% { transform: scale(1); }
}

.timeline__tab-label {
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 2vw, 0.9rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-smooth);
  white-space: nowrap;
}

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

.timeline__tab:hover .timeline__tab-label {
  color: rgba(255, 255, 255, 0.8);
}

.timeline__connector {
  width: clamp(24px, 8vw, 80px);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  flex-shrink: 0;
}

.timeline__connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
  transition: width 0.6s ease;
}

.timeline__connector.filled::after {
  width: 100%;
}

/* Timeline panels */
.timeline__panels {
  position: relative;
}

.timeline__panel {
  display: none;
  animation: fadeSlideIn 0.5s ease forwards;
}

.timeline__panel.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carousel */
.timeline__carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border-dark);
}

.timeline__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
}

.timeline__track::-webkit-scrollbar {
  display: none;
}

.timeline__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}

.timeline__slide img {
  width: 100%;
  height: clamp(280px, 50vw, 520px);
  object-fit: cover;
  display: block;
}

.timeline__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
}

.timeline__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  line-height: 1;
}

.timeline__arrow:hover {
  background: rgba(232, 76, 111, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.timeline__arrow--prev {
  left: 16px;
}

.timeline__arrow--next {
  right: 16px;
}

/* Carousel dots */
.timeline__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

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

.timeline__dot.active {
  background: var(--color-pink);
  width: 24px;
  border-radius: 4px;
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ============================
   5. ASSORTMENT
   ============================ */
.assortment__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.assortment__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-white);
  border: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.assortment__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.assortment__card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.assortment__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.assortment__card:hover .assortment__card-image img {
  transform: scale(1.05);
}

.assortment__carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.assortment__carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.assortment__carousel-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

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

.assortment__carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.assortment__carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.assortment__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: background 0.3s ease;
}

.assortment__carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.assortment__carousel-arrow--prev {
  left: 6px;
}

.assortment__carousel-arrow--next {
  right: 6px;
}

@media (max-width: 768px) {
  .assortment__carousel-arrow {
    opacity: 0.7;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

.assortment__card-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-white));
}

.assortment__card-body {
  padding: 24px;
}

.assortment__card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.assortment__card-body p {
  font-size: 0.9rem;
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* ============================
   6. STORES
   ============================ */
.stores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stores__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stores__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.stores__card-header {
  padding: 24px 28px 0;
  border-left: 4px solid var(--color-pink);
  margin-left: 20px;
  margin-top: 20px;
}

.stores__card-city {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.stores__card-body {
  padding: 20px 28px;
}

.stores__info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.stores__info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stores__info-row p {
  font-size: 0.95rem;
}

.stores__map {
  padding: 0 20px 20px;
}

.stores__map iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: var(--radius-md);
  opacity: 0.85;
  transition: opacity var(--transition-smooth);
}

.stores__map iframe:hover {
  opacity: 1;
}

/* ============================
   7. LOYALTY
   ============================ */
.loyalty__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.loyalty__card-visual {
  display: flex;
  justify-content: center;
  perspective: 800px;
}

.loyalty__discount-card {
  width: 340px;
  height: 210px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 50%, #2d2d2d 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease;
  position: relative;
  overflow: hidden;
}

.loyalty__discount-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 76, 111, 0.1) 0%, transparent 50%);
  animation: cardShine 6s ease-in-out infinite;
}

@keyframes cardShine {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30%, 30%); }
}

.loyalty__discount-card:hover {
  transform: rotateY(0) rotateX(0);
}

.loyalty__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.loyalty__card-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.loyalty__card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.loyalty__card-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.loyalty__card-number {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  position: relative;
}

.loyalty__benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loyalty__benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-smooth);
}

.loyalty__benefit:hover {
  transform: translateX(6px);
}

.loyalty__benefit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.loyalty__benefit h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.loyalty__benefit p {
  font-size: 0.85rem;
  color: var(--color-text-gray);
  line-height: 1.5;
}

/* ============================
   8. FOOTER
   ============================ */
.footer {
  background: var(--color-darkest);
  color: var(--color-text-light);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer__brand-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.footer__contacts p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer__social-links {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-smooth);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer__social-link:hover {
  border-color: var(--color-pink);
  background: var(--color-pink);
  color: white;
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

/* ============================
   GALLERY (shared for IMG section)
   ============================ */
.gallery {
  margin-top: 48px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

.gallery__item:hover img {
  transform: scale(1.08);
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 968px) {
  .nav {
    background: rgba(21, 21, 21, 0.85);
    padding: 24px 0;
  }

  .nav.scrolled {
    background: #151515;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 24px 0;
  }

  .nav__burger {
    display: flex;
  }

  .nav__menu {
    display: none !important;
  }

  .nav__menu.open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #151515;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 1150;
  }

  .nav__menu .nav__link {
    color: #ffffff;
    font-size: 1.4rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
  }

  .about__image img {
    height: 300px;
  }

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

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

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

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

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

  .loyalty__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .loyalty__discount-card {
    transform: rotateY(0) rotateX(0);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__brand-tagline {
    max-width: none;
  }

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

/* Gallery collapse on mobile */
@media (max-width: 768px) {
  .gallery--collapsible .gallery__item:nth-child(n+7) {
    display: none;
  }

  .gallery--collapsible.gallery--expanded .gallery__item:nth-child(n+7) {
    display: block;
  }

  .project__gallery.gallery--collapsible .gallery__item:nth-child(n+7) {
    display: none;
  }

  .project__gallery.gallery--collapsible.gallery--expanded .gallery__item:nth-child(n+7) {
    display: block;
  }
}

.gallery__toggle {
  display: none;
  margin: 24px auto 0;
  padding: 14px 36px;
  border: 2px solid var(--color-pink);
  border-radius: 50px;
  background: transparent;
  color: var(--color-pink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  letter-spacing: 0.02em;
}

.gallery__toggle:hover {
  background: var(--color-pink);
  color: white;
}

.gallery__toggle--light {
  border-color: var(--color-pink);
  color: var(--color-pink);
}

.gallery__toggle--light:hover {
  background: var(--color-pink);
  color: white;
}

.gallery__toggle--dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-text-muted);
}

.gallery__toggle--dark:hover {
  border-color: var(--color-pink);
  background: var(--color-pink);
  color: white;
}

@media (max-width: 768px) {
  .gallery__toggle {
    display: block;
  }

  .gallery--expanded + .gallery__toggle {
    display: block;
  }

  .timeline__tab {
    padding: 10px 10px;
  }

  .timeline__connector {
    width: clamp(20px, 6vw, 50px);
  }

  .timeline__tab-label {
    font-size: 0.72rem;
  }
}

/* Mobile */
@media (max-width: 580px) {
  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

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

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

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero__title {
    letter-spacing: 0.06em;
  }

  .loyalty__discount-card {
    width: 100%;
    max-width: 340px;
  }

  .project__info {
    flex-direction: column;
    align-items: center;
  }

  .project__info-card {
    width: 100%;
  }

  .timeline__nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px 8px;
  }

  .timeline__nav::-webkit-scrollbar {
    display: none;
  }

  .timeline__tab {
    padding: 8px 6px;
    gap: 6px;
  }

  .timeline__tab-dot {
    width: 14px;
    height: 14px;
  }

  .timeline__tab-label {
    font-size: 0.6rem;
  }

  .timeline__connector {
    width: 20px;
  }

  .timeline__arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .timeline__arrow--prev { left: 8px; }
  .timeline__arrow--next { right: 8px; }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* Fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .nav.scrolled {
    background: rgba(21, 21, 21, 0.96);
  }

  .glass-card {
    background: rgba(30, 30, 30, 0.94);
  }

  .stores__card {
    background: rgba(30, 30, 30, 0.94);
  }

  .hero__overlay {
    background: rgba(21, 21, 21, 0.7);
  }

  .lightbox {
    background: rgba(0, 0, 0, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  .timeline__panel,
  .timeline__tab-dot.pulse,
  .hero__scroll span {
    animation: none !important;
  }
}
