/* ==========================================
   FLOWER SHOP LANDING — PREMIUM REDESIGN
   Apple × Awwwards × Premium Floral Boutique
   ========================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- THEME SYSTEM ---------- */
:root {
  /* Light palette */
  --bg-primary: #faf6f2;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5eeea;
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-border: rgba(255, 255, 255, 0.85);
  --bg-header: rgba(250, 246, 242, 0.75);
  --bg-header-scroll: rgba(250, 246, 242, 0.92);

  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9a9a9a;

  --accent: #c98a96;
  --accent-hover: #b5707e;
  --accent-light: #f5e1e4;
  --accent-glow: rgba(201, 138, 150, 0.35);

  --pink: #e8c4c8;
  --pink-dark: #d4a0a7;
  --pink-light: #f5e1e4;
  --cream: #faf6f2;
  --green: #a8c9a0;

  /* Gradients */
  --gradient-main: linear-gradient(160deg, #faf6f2 0%, #f5e1e4 40%, #f0e8df 100%);
  --gradient-hero-overlay: linear-gradient(
    180deg,
    rgba(250, 246, 242, 0.82) 0%,
    rgba(245, 225, 228, 0.78) 50%,
    rgba(250, 246, 242, 0.88) 100%
  );
  --gradient-cta-overlay: linear-gradient(
    180deg,
    rgba(30, 20, 22, 0.72) 0%,
    rgba(40, 25, 30, 0.85) 100%
  );
  --gradient-vignette: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.08) 100%);

  /* Shadows */
  --shadow-soft: 0 4px 40px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-btn-glow: 0 4px 24px rgba(201, 138, 150, 0.3);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 140px;
  --container-width: 1200px;

  /* Misc */
  --radius: 28px;
  --radius-sm: 18px;
  --radius-xs: 12px;
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Nav mobile */
  --nav-bg: rgba(250, 246, 242, 0.97);

  /* Footer */
  --footer-bg: #1a1a1a;
  --footer-text: rgba(255,255,255,0.5);
}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
  --bg-primary: #111115;
  --bg-secondary: #1a1a20;
  --bg-tertiary: #22222a;
  --bg-card: rgba(30, 30, 40, 0.55);
  --bg-card-border: rgba(255, 255, 255, 0.06);
  --bg-header: rgba(17, 17, 21, 0.7);
  --bg-header-scroll: rgba(17, 17, 21, 0.92);

  --text-primary: #f0ece6;
  --text-secondary: #9a9a9a;
  --text-tertiary: #6b6b6b;

  --accent: #c9899a;
  --accent-hover: #d9a0b0;
  --accent-light: rgba(201, 137, 154, 0.12);
  --accent-glow: rgba(201, 137, 154, 0.25);

  --pink: #8b3a4a;
  --pink-dark: #c9899a;
  --pink-light: rgba(139, 58, 74, 0.25);
  --cream: #1a1a20;
  --green: #4a8b6e;

  --gradient-main: linear-gradient(160deg, #111115 0%, #1a1520 40%, #151518 100%);
  --gradient-hero-overlay: linear-gradient(
    180deg,
    rgba(17, 17, 21, 0.78) 0%,
    rgba(26, 21, 32, 0.75) 50%,
    rgba(17, 17, 21, 0.85) 100%
  );
  --gradient-cta-overlay: linear-gradient(
    180deg,
    rgba(10, 8, 12, 0.8) 0%,
    rgba(17, 12, 18, 0.9) 100%
  );
  --gradient-vignette: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.25) 100%);

  --shadow-soft: 0 4px 40px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 8px 48px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 50px var(--accent-glow);
  --shadow-btn-glow: 0 4px 30px rgba(201, 137, 154, 0.25);

  --nav-bg: rgba(17, 17, 21, 0.97);

  --footer-bg: #0a0a0e;
  --footer-text: rgba(255,255,255,0.35);
}

/* ---------- HTML & BODY ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--gradient-main);
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }

/* Hero text stagger */
.hero__content .fade-in:nth-child(1) { transition-delay: 0.2s; }
.hero__content .fade-in:nth-child(2) { transition-delay: 0.4s; }
.hero__content .fade-in:nth-child(3) { transition-delay: 0.6s; }
.hero__content .fade-in:nth-child(4) { transition-delay: 0.8s; }
.hero__content .fade-in:nth-child(5) { transition-delay: 1.0s; }

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.25); }
  50% { box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 14px var(--accent-glow); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes soft-breathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 100px;
  padding: 16px 36px;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer micro-animation on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 65%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
  animation: shimmer 0.8s ease forwards;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.btn--white {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-3px);
}

.btn--lg {
  padding: 22px 48px;
  font-size: 17px;
}

.btn--glow {
  box-shadow: var(--shadow-btn-glow);
}

.btn--glow:hover {
  box-shadow: var(--shadow-glow);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.header.is-scrolled {
  background: var(--bg-header-scroll);
  box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

.header__logo-icon {
  font-size: 30px;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.header__logo:hover .header__logo-icon {
  transform: rotate(20deg) scale(1.1);
}

.header__nav {
  display: flex;
  gap: 36px;
}

.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__link:hover {
  color: var(--text-primary);
}

.header__link:hover::after {
  width: 100%;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.header__phone:hover {
  color: var(--accent);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--bg-card-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  box-shadow: var(--shadow-glow);
}

.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: all 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__thumb svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle__thumb {
  left: 27px;
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-tertiary);
  border-color: rgba(201, 137, 154, 0.2);
}

/* ---------- BURGER ---------- */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* WebGL shader canvas */
.hero__shader-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Background image with parallax depth */
.hero__bg {
  position: absolute;
  inset: -20px;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  z-index: 1;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Cinematic overlay */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 2;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: var(--gradient-vignette);
  z-index: 3;
  pointer-events: none;
}

/* Cinematic light */
.hero__light {
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.4;
  animation: soft-breathe 6s ease-in-out infinite;
  filter: blur(60px);
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 800px;
}

.hero__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 52px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.hero__phone:hover {
  color: var(--accent);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero__scroll-hint:hover {
  color: var(--accent);
}

/* ---------- ADVANTAGES ---------- */
.advantages {
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background */
.advantages::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168, 201, 160, 0.15) 0%, transparent 50%);
  animation: advantages-bg-float 20s ease-in-out infinite;
  opacity: 0.5;
  filter: blur(80px);
  pointer-events: none;
}

@keyframes advantages-bg-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -30px) rotate(5deg); }
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.advantage-card {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(201, 138, 150, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Multi-layer gradient glow */
.advantage-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    var(--pink-dark) 50%,
    var(--green) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

/* Shine effect */
.advantage-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
}

.advantage-card:hover {
  transform: translateY(-16px) rotateX(5deg) scale(1.02);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(201, 138, 150, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    0 0 80px var(--accent-glow);
  border-color: rgba(201, 138, 150, 0.4);
}

.advantage-card:hover::before {
  opacity: 0.6;
}

.advantage-card:hover::after {
  opacity: 1;
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Icon with 3D effect */
.advantage-card__icon {
  font-size: 56px;
  margin-bottom: 32px;
  line-height: 1;
  position: relative;
  z-index: 1;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(201, 138, 150, 0.3));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
}

.advantage-card:hover .advantage-card__icon {
  transform: scale(1.15) rotateY(10deg) translateZ(20px);
  filter: drop-shadow(0 8px 24px rgba(201, 138, 150, 0.5));
}

.advantage-card__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.6s ease;
}

.advantage-card:hover .advantage-card__title {
  transform: translateZ(10px);
}

.advantage-card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
  transition: color 0.6s ease;
}

.advantage-card:hover .advantage-card__text {
  color: var(--text-primary);
}

/* ---------- GALLERY ---------- */
.gallery {
  background: var(--bg-tertiary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Glow overlay on hover */
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery__item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item:hover::before {
  opacity: 0.6;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item { min-height: 280px; }
.gallery__item--tall { min-height: 576px; }

/* ---------- HOW TO ORDER ---------- */
.how-to-order {
  background: transparent;
}

.steps {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 64px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.step:hover {
  transform: translateY(-6px) translateX(6px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent-glow);
}

.step__number {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--pink-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.step__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.how-to-order__cta {
  text-align: center;
}

/* ---------- CONTACTS ---------- */
.contacts {
  background: transparent;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 44px;
}

.contacts__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contacts__value {
  font-size: 18px;
  font-weight: 500;
}

.contacts__value--link:hover {
  color: var(--accent);
}

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--bg-card-border);
}

.contacts__map iframe {
  display: block;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  position: relative;
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}

.final-cta__bg {
  position: absolute;
  inset: -10px;
  background: url('images/cta-bg.jpg') center/cover no-repeat;
  z-index: 0;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.final-cta__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-cta-overlay);
  z-index: 1;
}

.final-cta__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 3;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.final-cta__subtitle {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.final-cta__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.final-cta__phone:hover {
  color: var(--pink-light);
  text-shadow: 0 0 40px var(--accent-glow);
}

.final-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-bg);
  padding: 36px 0;
  transition: background 0.4s ease;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 14px;
  color: var(--footer-text);
}

.footer__links a {
  font-size: 14px;
  color: var(--footer-text);
}

.footer__links a:hover {
  color: #fff;
}

/* ---------- STICKY MOBILE CALL ---------- */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.sticky-call:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--tall {
    grid-row: span 1;
    min-height: 280px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  body {
    font-size: 16px;
  }

  .section__title {
    margin-bottom: 44px;
  }

  /* Header mobile */
  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 998;
  }

  .header__nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .header__nav .header__link {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .header__phone {
    display: none;
  }

  .header__burger {
    display: flex;
    z-index: 1001;
  }

  .header__burger.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .header__burger.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero mobile */
  .hero {
    min-height: calc(100vh - 76px);
    padding: 110px 20px 80px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__scroll-hint {
    display: none;
  }

  .hero__light {
    display: none;
  }

  /* Advantages mobile */
  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .advantage-card {
    padding: 32px 24px;
  }

  /* Gallery mobile */
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__item {
    min-height: 240px;
  }

  .gallery__item--tall {
    min-height: 240px;
  }

  /* Steps mobile */
  .step {
    flex-direction: column;
    gap: 16px;
    padding: 32px 24px;
  }

  .step__number {
    font-size: 44px;
  }

  /* Contacts mobile */
  .contacts__info {
    padding: 32px 24px;
  }

  /* Final CTA mobile */
  .final-cta {
    padding: 100px 20px;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: center;
  }

  /* Footer mobile */
  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Sticky call */
  .sticky-call {
    display: flex;
  }

  .btn--lg {
    padding: 18px 36px;
    font-size: 16px;
    width: 100%;
    max-width: 340px;
  }

  .header__right {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 38px;
  }

  .section__title {
    font-size: 32px;
  }

  .container {
    padding: 0 16px;
  }

  .advantage-card__icon {
    font-size: 40px;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
