:root {
  --night: #0c1a13;
  --pine-950: #0f2118;
  --pine-800: #17301f;
  --pine-700: #1f3d28;
  --pine-600: #2a5236;
  --frost: #eef4ee;
  --frost-deep: #dfe9df;
  --ink: #101a12;
  --ink-soft: #3d4b3f;
  --ink-on-frost-muted: #4c5a4d;
  --gold: #d7a94a;
  --gold-deep: #7a5915;
  --gold-bright: #f0c368;
  --cranberry: #a5393c;
  --btn-green: #1f3d28;
  --btn-green-hover: #0f2118;
  --cream-text: #f7f5ee;
  --line: rgba(15, 33, 24, 0.14);
  --line-light: rgba(247, 245, 238, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --shadow: 0 24px 48px -26px rgba(6, 12, 8, 0.55);
  --container: 1180px;
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-script: "Marck Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--frost);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.4em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

svg { fill: none; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Snowfall */
.snowfall { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snowflake {
  position: absolute;
  top: -5vh;
  border-radius: 50%;
  background: #ffffff;
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes snow-fall {
  from { transform: translateY(0) translateX(0); }
  50% { transform: translateY(55vh) translateX(12px); }
  to { transform: translateY(112vh) translateX(-8px); }
}

/* Header — always opaque enough for contrast, deepens slightly on scroll */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 26, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s ease;
}

.site-header.is-solid { background: rgba(12, 26, 19, 0.96); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream-text);
  white-space: nowrap;
}

.brand-mark { width: 24px; height: 24px; color: var(--gold); }

.main-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cream-text);
  opacity: 0.85;
}

.main-nav a:hover { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-max {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}

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

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--btn-green);
  color: var(--cream-text);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.phone-pill svg { width: 16px; height: 16px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  min-height: 48px;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--btn-green); color: var(--cream-text); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-1px); background: var(--btn-green-hover); }

.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero */

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--cream-text);
  background: var(--pine-950);
  margin-top: -73px;
  padding-top: 73px;
}

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.92); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 20, 14, 0.72) 0%, rgba(9, 20, 14, 0.5) 40%, rgba(9, 20, 14, 0.95) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: end;
  padding-bottom: 72px;
  width: 100%;
}

.hero-copy h1 { color: var(--cream-text); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }

.hero-lede { font-size: 1.12rem; max-width: 46ch; color: rgba(247, 245, 238, 0.9); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.price-card {
  background: var(--frost);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--gold-deep); }
.price-card-value { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; }
.price-card-note { font-size: 0.88rem; color: var(--ink-on-frost-muted); margin: 0; }

/* Festive strip (static, no auto-scroll) */
/* Season-only decoration: hidden once body.season-ended is set (script.js, SEASON_END) */

.season-ended .festive-strip { display: none; }

.festive-strip {
  background: var(--pine-950);
  color: var(--cream-text);
  padding: 14px 0;
}

.festive-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.festive-strip-inner span { display: inline-flex; align-items: center; gap: 8px; }
.festive-strip-inner svg { width: 13px; height: 13px; color: var(--gold-bright); }

/* Section basics */

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 12px;
}

.kicker-light { color: var(--gold); }

/* Assortment / product cards */

.assortment { padding: 96px 0 84px; background: var(--frost); }
.assortment > .wrap:first-child h2 { max-width: 16ch; }
.assortment h2 { max-width: 20ch; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(15, 33, 24, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px -20px rgba(15, 33, 24, 0.28);
}

.product-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--frost-deep); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }

.product-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; }

.product-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.product-card-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.product-card-price {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--pine-700);
  margin-bottom: 12px;
}

.product-card-cta {
  display: block;
  text-align: center;
  background: var(--btn-green);
  color: var(--cream-text);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.product-card-cta:hover { background: var(--btn-green-hover); }

.assortment-note {
  margin-top: 44px;
  padding: 16px 22px;
  background: var(--frost-deep);
  border-radius: 999px;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  max-width: 100%;
}

.assortment-note svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }

/* Statement */

.statement {
  background: var(--pine-950);
  color: var(--cream-text);
  padding: 96px 0;
}

.statement-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  margin: 0;
  max-width: 20ch;
  color: var(--cream-text);
}

.statement-text span { color: var(--gold); }

/* Gallery */

.gallery { padding: 96px 0; background: var(--frost); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
  margin-top: 36px;
}

.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* Why */

.why { padding: 96px 0; background: var(--pine-950); color: var(--cream-text); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.why-item {
  background: var(--pine-800);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(215, 169, 74, 0.18);
}

.why-item svg { width: 30px; height: 30px; color: var(--gold); }
.why-item p { color: rgba(247, 245, 238, 0.9); font-size: 1.02rem; margin: 0; }

/* Contact */

.contact { padding: 100px 0 110px; background: var(--frost); }
.contact-inner { max-width: 680px; }
.contact-inner h2 { max-width: 14ch; }

.contact-details { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 16px; }
.contact-meta { font-size: 0.95rem; color: var(--ink-on-frost-muted); }

/* Footer */

.site-footer { border-top: 1px solid rgba(215, 169, 74, 0.25); padding: 24px 0; background: var(--night); color: var(--cream-text); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(247, 245, 238, 0.75);
}

.footer-inner a { text-decoration: none; font-weight: 700; color: var(--gold-bright); }

.footer-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 245, 238, 0.12);
  font-size: 0.78rem;
  color: rgba(247, 245, 238, 0.55);
}

.footer-credit img { display: block; opacity: 0.85; }

.footer-version { color: rgba(247, 245, 238, 0.4); }

/* MAX logo mark inside buttons */

.btn img.max-icon { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }

/* Дед Мороз widget */

.santa-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.santa-trigger {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cranberry);
  color: var(--cream-text);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.santa-trigger svg { width: 26px; height: 26px; }
.santa-trigger:hover { background: #b8474a; }

.santa-bubble {
  width: min(300px, 78vw);
  background: var(--frost);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.santa-from { font-family: var(--font-script); font-size: 1.3rem; color: var(--cranberry); margin: 0 0 6px; }
.santa-joke { font-size: 0.98rem; color: var(--ink); margin: 0 0 14px; }

.santa-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-on-frost-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.santa-close svg { width: 16px; height: 16px; }
.santa-close:hover { background: rgba(0, 0, 0, 0.06); }

.santa-more {
  border: 2px solid var(--cranberry);
  background: transparent;
  color: var(--cranberry);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}

.santa-more:hover { background: rgba(165, 57, 60, 0.08); }

/* Responsive */

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero { min-height: 90vh; }
  .hero-grid { grid-template-columns: 1fr; }
  .price-card { max-width: 360px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
}

@media (max-width: 560px) {
  .header-inner { gap: 10px; }
  .phone-pill { font-size: 0.8rem; padding: 9px 14px; }
  .phone-pill span { display: none; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-grid { padding-bottom: 40px; }
  .price-card-value { font-size: 1.9rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .festive-strip-inner { gap: 8px 16px; font-size: 0.72rem; }
  .santa-widget { right: 14px; bottom: 14px; }
  .santa-trigger { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake { display: none; }
}
