/* ===== Змінні / палітра ===== */
:root {
  --violet-900: #2c1250;
  --violet-800: #3d1a6e;
  --violet-700: #5b21b6;
  --violet-600: #7c3aed;
  --violet-500: #9333ea;
  --violet-300: #c4a4f5;
  --violet-100: #efe6fd;
  --violet-050: #f7f2fe;
  --pink-accent: #e0459b;
  --ink: #2a1b3d;
  --muted: #6b5b81;
  --white: #ffffff;
  --shadow: 0 18px 40px -18px rgba(70, 20, 120, 0.35);
  --shadow-sm: 0 8px 20px -10px rgba(70, 20, 120, 0.3);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #ede0ff 0%, transparent 60%),
    linear-gradient(180deg, #f9f5ff 0%, #f3ecfe 100%);
  line-height: 1.6;
}

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

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

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-600), var(--violet-800));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(124,58,237,.6); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--violet-700);
  border-color: var(--violet-300);
}
.btn-ghost:hover { background: var(--violet-050); border-color: var(--violet-600); }
.btn-block { width: 100%; }

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(249, 245, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124,58,237,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-script { font-family: "Great Vibes", cursive; font-size: 30px; color: var(--violet-800); }
.brand-sub { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--violet-600); }
.nav-tg {
  background: var(--violet-100); color: var(--violet-700) !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.nav-tg:hover { background: var(--violet-300); }
.burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--violet-800); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 60px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; color: var(--violet-600); margin: 0 0 12px; }
.hero-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.05; margin: 0 0 18px; color: var(--violet-900); font-weight: 600;
}
.lead { font-size: 17px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--violet-800); font-weight: 500; }
.hero-media img {
  width: 100%; border-radius: 26px; box-shadow: var(--shadow);
  object-fit: cover; aspect-ratio: 4/3;
}
.img-missing {
  min-height: 260px; background: repeating-linear-gradient(45deg, #efe6fd, #efe6fd 14px, #e6d6fb 14px, #e6d6fb 28px);
}

/* ===== Секції ===== */
.section { padding: 66px 0; }
.section-alt { background: linear-gradient(180deg, #fbf8ff, #f4ecfe); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(30px, 4vw, 44px); color: var(--violet-900); margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

/* ===== Каталог ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  border: 1px solid rgba(124,58,237,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--violet-050); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--violet-700);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--violet-900); }
.card-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.card-price { margin: 0 0 14px; }
.price-main { font-size: 22px; font-weight: 700; color: var(--pink-accent); }
.price-tiers { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.price-tiers li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed rgba(124,58,237,.15); }
.price-tiers li:last-child { border-bottom: 0; }
.price-tiers b { color: var(--violet-800); }
.card-actions { display: flex; flex-direction: column; gap: 9px; }

/* ===== Кольори ===== */
.colors-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.color-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); font-weight: 500; font-size: 15px;
}
.color-dot { width: 26px; height: 26px; border-radius: 50%; flex: none; border: 2px solid rgba(0,0,0,.06); }

/* ===== Аромати ===== */
.scents-note {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm);
}
.scents-note p { font-size: 17px; color: var(--ink); margin: 0 0 20px; }
.scents-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Доставка ===== */
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.delivery-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); text-align: center; }
.delivery-icon { font-size: 40px; margin-bottom: 12px; }
.delivery-card h3 { margin: 0 0 8px; color: var(--violet-800); font-size: 20px; }
.delivery-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ===== Підвал ===== */
.site-footer { background: var(--violet-900); color: #efe6fd; padding: 46px 0 24px; margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand .brand-script { color: #fff; font-size: 34px; }
.footer-brand p { color: #c9b8e8; margin: 6px 0 0; font-size: 14px; max-width: 34ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #efe6fd; font-weight: 500; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; }
.footer-bottom p { margin: 0; font-size: 13px; color: #b9a6dc; }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(44,18,80,.55); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1; max-width: 860px; width: calc(100% - 32px);
  margin: 5vh auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow);
  max-height: 90vh; overflow: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); font-size: 24px; color: var(--violet-800); box-shadow: var(--shadow-sm);
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: var(--violet-050); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-info { padding: 40px 34px 34px; }
.modal-info h3 { font-family: "Cormorant Garamond", serif; font-size: 30px; margin: 0 0 6px; color: var(--violet-900); }
.modal-info .modal-desc { color: var(--muted); margin: 0 0 18px; }
.modal-price { font-size: 26px; font-weight: 700; color: var(--pink-accent); margin: 0 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--violet-800); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; border: 2px solid var(--violet-100);
  background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.chip .color-dot { width: 16px; height: 16px; }
.chip.selected { border-color: var(--violet-600); background: var(--violet-050); }
.field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--violet-100);
  font: inherit; color: var(--ink); background: #fff;
}
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-media img { min-height: 220px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 18px 20px; gap: 16px; box-shadow: var(--shadow);
  }
  .burger { display: flex; }
}
@media (max-width: 520px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
