:root {
  --bg: #f7f4ee;
  --bg-alt: #efeade;
  --surface: #fffdf9;
  --ink: #2c2a24;
  --ink-soft: #5c584e;
  --olive: #6f7d55;
  --olive-dark: #58643f;
  --khaki: #a8a08c;
  --line: #e2dccd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 55, 40, 0.08);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.1rem; }

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

.btn {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid var(--olive);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--olive-dark); border-color: var(--olive-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--olive-dark); }
.btn--ghost:hover { background: var(--olive); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 0.9rem; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.is-scrolled { border-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo { font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; line-height: 1.25; }
.logo__sub { font-weight: 500; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.nav > a:not(.btn):hover { color: var(--olive-dark); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding: 72px 0 96px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero__eyebrow, .section__eyebrow {
  color: var(--olive-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__subtitle { margin-top: 20px; font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero__facts strong { color: var(--ink); }
.hero__facts li { position: relative; padding-left: 16px; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
}

.hero__photo { position: relative; }

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  filter: brightness(1.14) contrast(1.02) saturate(0.92);
}

.hero__photo img.is-placeholder { object-fit: contain; }

.hero__slides { position: relative; aspect-ratio: 4 / 5; }

.hero__photo .hero__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero__photo .hero__slide.is-active { opacity: 1; pointer-events: auto; }

.hero__photo .hero__slide--diagram {
  object-fit: contain;
  background: #f4ecd9;
  filter: none;
}

.hero__nav {
  position: absolute;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
  color: var(--olive-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.hero__nav:hover { background: var(--surface); }
.hero__nav--prev { left: 14px; }
.hero__nav--next { right: 14px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__lead { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

.about__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.about__text p { margin-bottom: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.about__text p:first-child { color: var(--ink); }
.about__text p:last-child { color: var(--ink); font-weight: 500; }

.about__cards { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h3 { margin-bottom: 6px; font-size: 1rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Падающий снег (новогодний декор) */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.snow__flake {
  position: absolute;
  top: -6vh;
  color: #fff;
  text-shadow: 0 1px 4px rgba(88, 100, 63, 0.25);
  animation: snowfall linear infinite;
  will-change: transform;
}

@keyframes snowfall {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2vw, 55vh) rotate(180deg); }
  100% { transform: translate(-1vw, 112vh) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .snow__flake { animation: none; opacity: 0.25; }
}

/* ============ Новогодний декор ============ */

/* Бегущая строка: Санта с оленем + сообщение о сессии */
.marquee {
  background: #bf3b2e;
  color: #efe6d2;
  overflow: hidden;
  border-bottom: 1px solid rgba(44, 42, 36, 0.12);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-run 30s linear infinite;
}
.marquee__unit {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 36px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.marquee__sleigh {
  width: 128px;
  height: auto;
  flex-shrink: 0;
  animation: sleigh-bob 1.2s ease-in-out infinite;
}
@keyframes marquee-run {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@keyframes sleigh-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__sleigh { animation: none; }
}

.section, #hero { position: relative; overflow: hidden; }

/* «Как проходит»: зимняя иллюстрация с ёлками — сбоку справа, чтобы не мешать кнопке */
#process .container { position: relative; z-index: 1; }
#process::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 20px;
  bottom: 10px;
  width: 250px;
  height: 310px;
  pointer-events: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 300'%3E%3Cellipse cx='120' cy='288' rx='115' ry='14' fill='%23efe6d2'/%3E%3Crect x='58' y='250' width='9' height='16' rx='2' fill='%238a7a5c'/%3E%3Cpolygon points='62,158 42,196 82,196' fill='%236f7d55'/%3E%3Cpolygon points='62,182 36,228 88,228' fill='%2363714b'/%3E%3Cpolygon points='62,208 30,254 94,254' fill='%2358643f'/%3E%3Ccircle cx='52' cy='204' r='4' fill='%23c98f5f'/%3E%3Ccircle cx='72' cy='222' r='4' fill='%23efe6d2'/%3E%3Cpolygon points='62,146 63.4,149.6 67,150.5 63.4,151.4 62,155 60.6,151.4 57,150.5 60.6,149.6' fill='%23c98f5f'/%3E%3Crect x='152' y='226' width='11' height='18' rx='2' fill='%238a7a5c'/%3E%3Cpolygon points='157,84 125,140 189,140' fill='%236f7d55'/%3E%3Cpolygon points='157,118 115,186 199,186' fill='%2363714b'/%3E%3Cpolygon points='157,152 105,230 209,230' fill='%2358643f'/%3E%3Ccircle cx='140' cy='160' r='6' fill='%23c98f5f'/%3E%3Ccircle cx='176' cy='132' r='5' fill='%23efe6d2'/%3E%3Ccircle cx='158' cy='198' r='6' fill='%23a8a08c'/%3E%3Ccircle cx='172' cy='172' r='4' fill='%23efe6d2'/%3E%3Cpolygon points='157,68 159.2,74 165,75.4 159.2,76.8 157,83 154.8,76.8 149,75.4 154.8,74' fill='%23c98f5f'/%3E%3C/svg%3E");
}

/* «Контакты»: новогодняя картинка на фоне — звёзды, луна, ёлки, сугроб */
#contacts .container { position: relative; z-index: 1; }
#contacts::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  pointer-events: none;
  background: no-repeat center bottom / cover;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 250'%3E%3Cg fill='%23efe6d2'%3E%3Ccircle cx='90' cy='40' r='2' opacity='0.7'/%3E%3Ccircle cx='340' cy='30' r='2' opacity='0.6'/%3E%3Ccircle cx='600' cy='45' r='2' opacity='0.7'/%3E%3Ccircle cx='850' cy='95' r='1.5' opacity='0.4'/%3E%3Ccircle cx='960' cy='35' r='2' opacity='0.6'/%3E%3C/g%3E%3Ccircle cx='1060' cy='65' r='24' fill='%23efe6d2' opacity='0.85'/%3E%3Ccircle cx='1052' cy='58' r='5' fill='%23dcd4bd'/%3E%3Ccircle cx='1070' cy='72' r='3.5' fill='%23dcd4bd'/%3E%3Cg fill='%232c3225'%3E%3Cpolygon points='80,115 30,222 130,222'/%3E%3Cpolygon points='300,140 255,220 345,220'/%3E%3Cpolygon points='560,150 520,220 600,220'/%3E%3Cpolygon points='840,135 795,222 885,222'/%3E%3Cpolygon points='1140,145 1098,220 1182,220'/%3E%3C/g%3E%3Cg fill='%23333a2b'%3E%3Cpolygon points='180,90 128,226 232,226'/%3E%3Cpolygon points='430,105 380,226 480,226'/%3E%3Cpolygon points='700,95 648,228 752,228'/%3E%3Cpolygon points='980,110 930,226 1030,226'/%3E%3C/g%3E%3Cpath d='M0 218 Q200 188 400 210 T800 206 T1200 200 V250 H0 Z' fill='%23e9ecdf'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
  #process::after { display: none; }
  #contacts::after { height: 180px; }
}
