:root {
  --pink: #ff2e7e;
  --red: #ef2769; /* малиново-красный «ДЕД МОРОЗ» и кнопки «Заказать праздник» (буква «D» логотипа) */
  --text: #2b2b45;
  --muted: #5a5a75;
  --radius: 32px;
  /* Плоская мягкая тень белых плашек (без 3D-ступеньки снизу) */
  --clay: 0 10px 30px rgba(60, 100, 200, .14);
  /* Полупрозрачные «матовые» плашки: шапка, карточки, список у цены, контакты */
  --glass: rgba(255, 255, 255, .55);
  --glass-blur: blur(12px) saturate(1.2);
  --glass-border: rgba(255, 255, 255, .8);
  --font-title: 'Rubik', system-ui, sans-serif;
  --font-text: 'Nunito', system-ui, sans-serif;

  /* Сугроб — волнистый белый край */
  --drift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='d' gradientUnits='userSpaceOnUse' x1='0' y1='62' x2='0' y2='120'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 70Q90 20 200 55T420 50T640 60T860 45T1080 62T1300 48T1440 60V120H0Z' fill='url(%23d)'/%3E%3Cpath d='M0 92Q130 66 270 86T560 80T840 90T1120 78T1440 88V120H0Z' fill='url(%23d)' opacity='.8'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: clip; }

body {
  font-family: var(--font-text);
  color: var(--text);
  position: relative;
  background: #eaf4ff;
  /* горизонтальную прокрутку режет html { overflow-x: clip } — overflow на body ломал «липкую» шапку */
  line-height: 1.45;
}

/* Снежный 3D-фон (images/bg.webp), закреплён за содержимым */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .35)),
    url(../images/bg.webp) center 62% / cover no-repeat;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Видимая рамка фокуса для навигации с клавиатуры (Tab) */
a:focus-visible, button:focus-visible { outline: 3px solid #ffc81e; outline-offset: 3px; border-radius: 12px; }

#snow {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 60;
}

/* Подстраховка: украшения (сияния, сугробы) не выходят за края экрана; шапка вне main, поэтому остаётся «липкой» */
main { overflow-x: clip; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* Главный заголовок — готовая 3D-картинка (images/title-hero.webp) */
.hero__title { width: 100%; max-width: 760px; line-height: 0; }
.hero__title img { width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(40, 60, 150, .25)); }

/* Заголовок «Что входит в программу?» — картинка (images/title-program.webp) */
.section__heading { width: 100%; max-width: 640px; margin: 0 auto 36px; line-height: 0; }
.section__heading img { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(40, 60, 150, .2)); }


/* ===== Шапка-пилюля ===== */
.header { position: sticky; top: 12px; z-index: 50; padding-top: 12px; }
.header__inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  padding: 6px 10px 6px 18px;
  /* полупрозрачная «матовая» плашка: фон слегка просвечивает и размывается */
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--clay);
}

/* Кнопка-картинка в шапке (images/btn-order.webp, сверху и снизу прозрачные поля) */
.header__cta { display: block; flex-shrink: 0; margin: -14px 2px -18px 0; transition: transform .2s; }
.header__cta img { width: 270px; height: auto; filter: drop-shadow(0 6px 10px rgba(200, 8, 79, .25)); }
.header__cta:hover { transform: translateY(-2px) scale(1.03); }
.header__cta:active { transform: translateY(1px) scale(.98); }

/* Такая же кнопка-картинка в главном блоке, крупнее */
.hero__cta { display: block; width: 100%; max-width: 460px; margin: -30px 0 -40px; transition: transform .2s; }
.hero__cta img { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(200, 8, 79, .3)); }
.hero__cta:hover { transform: translateY(-3px) scale(1.03); }
.hero__cta:active { transform: translateY(1px) scale(.98); }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img {
  height: 78px; width: auto; margin: -6px 0;
  filter: drop-shadow(0 4px 8px rgba(60, 100, 200, .18));
  transition: transform .25s;
}
.logo:hover .logo__img { transform: rotate(-3deg) scale(1.05); }

/* Меню по центру между логотипом и кнопкой */
/* Пункты равномерно распределены по всей свободной ширине шапки и крупнее на широких экранах */
.nav { flex: 1; display: flex; justify-content: space-evenly; gap: 16px; font-weight: 800; font-size: clamp(16px, 1.35vw, 20px); }
.nav a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--red);
  transform: scaleX(0); transition: transform .2s;
}
.nav a:hover::after { transform: scaleX(1); }

/* Переключатель языка RU / UZ — маленький кружок справа в шапке */
.lang {
  flex-shrink: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--red); border: 2px solid var(--glass-border);
  font-family: var(--font-title); font-weight: 800; font-size: 15px; letter-spacing: .02em;
  box-shadow: 0 4px 10px rgba(60, 100, 200, .14);
  transition: transform .2s;
}
.lang:hover { transform: scale(1.08); }

/* ===== Фото ===== */
.photo {
  position: relative; overflow: hidden;
  border: 8px solid #fff;
  box-shadow: var(--clay);
  background: linear-gradient(160deg, #ffd9e9 0%, #dbe8ff 100%);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Hero ===== */
.hero { position: relative; padding: 40px 0 110px; }
/* Полупрозрачный сугроб внизу — отделяет главный блок от «Знакомьтесь с нами» */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 100px;
  background: var(--drift) center bottom / 100% 100% no-repeat;
  z-index: 1; pointer-events: none;
}
.hero__inner { display: flex; justify-content: center; }
.hero__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.hero__content::before {
  content: ''; position: absolute; inset: -30px -40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
}


/* ===== Секции и карточки ===== */
.section { position: relative; padding: 56px 0 96px; }
/* Сугроб внизу каждого блока */
.section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: var(--drift) center bottom / 100% 100% no-repeat;
  z-index: 1; pointer-events: none;
}
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  box-shadow: var(--clay);
  border: 2px solid var(--glass-border);
}

/* Знакомьтесь */
.section--about { padding-top: 12px; }
/* На компьютере блок шире общего контейнера, чтобы фото были крупными */
.section--about .container { max-width: 1400px; }
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* Заголовок «Знакомьтесь с нами!» — картинка (images/title-meet.webp) */
/* «О нас» в меню ведёт прямо к этому заголовку (id="about") — он встаёт сразу под шапкой */
.meet__heading { width: 100%; max-width: 640px; margin: 0 auto 18px; line-height: 0; }
.meet__heading img { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(40, 60, 150, .2)); }
/* Карточка персонажа: фото в рамке слева, имя и описание справа (как в референсе) */
/* Обе карточки по одной сетке: фото и текст выровнены по верху, имена одной высоты */
.meet__card { display: grid; grid-template-columns: 46% 1fr; gap: 32px; align-items: stretch; padding: 22px 30px 22px 22px; }
/* Текст по высоте фото: надпись сверху, пункты равномерно на всю карточку */
.meet__text { display: flex; flex-direction: column; padding: 14px 0 10px; }
.meet__text .stars-list { flex: 1; align-content: space-evenly; }
/* Фото в полный рост: рамка того же формата 2:3, что и сами фото */
.photo--meet { aspect-ratio: 2 / 3; align-self: start; border-radius: 24px; border-width: 6px; }
/* Фото чуть увеличивается при наведении; по клику открывается на весь экран (main.js) */
.photo--meet { cursor: zoom-in; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.photo--meet:hover { transform: scale(1.06); box-shadow: 0 18px 40px rgba(60, 100, 200, .26); z-index: 2; }
/* Имена — готовые 3D-надписи (images/name-ded.webp, images/name-sneg.webp) */
/* Обе надписи одной ширины, в коробке одной высоты — пункты начинаются на одном уровне */
.meet__name { height: 66px; display: flex; align-items: center; margin-bottom: 18px; line-height: 0; }
.meet__name img { width: 100%; max-width: 310px; height: auto; max-height: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 10px rgba(40, 60, 150, .18)); }
.stars-list { list-style: none; display: grid; gap: 12px; }
.meet .stars-list { gap: 18px; }
.meet .stars-list li { font-size: 20px; line-height: 1.35; font-weight: 800; color: var(--text); text-wrap: pretty; } /* как текст в карточках программы */
.meet .stars-list li::before { top: 9px; }
.stars-list li {
  position: relative; padding-left: 30px;
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.stars-list li::before { content: ''; position: absolute; left: 5px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px #ffe1ee; }

/* Что входит */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 26px; } /* все карточки одной высоты, и в ряд, и столбиком */
/* Три карточки одной высоты; заголовок и текст по одной сетке, крупно на всю карточку */
.include {
  display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 16px;
  min-height: 230px; padding: 32px 24px 28px; text-align: center;
  transition: transform .25s;
}
.include:hover { transform: translateY(-6px) rotate(-1deg); }
.include__title {
  font-family: var(--font-title); font-weight: 900; text-transform: uppercase;
  font-size: clamp(24px, 2.5vw, 36px); line-height: 1.05; color: var(--pink);
  white-space: nowrap; /* каждая карточка — ровно две строки заголовка */
  text-shadow: 0 2px 0 #ffd0e2, 0 6px 12px rgba(200, 8, 79, .18);
}
.include p { color: var(--text); font-weight: 800; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.4; text-wrap: balance; }

/* Стоимость */
.price {
  margin-top: 48px;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px;
  padding: 40px;
  background: none; /* без белого размытого пятна под ценой */
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0; box-shadow: none;
}
/* «Стоимость программы — 850 000 сум» — картинка (images/title-price.webp) */
.price__main { line-height: 0; }
.price__main img {
  width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(200, 8, 79, .2));
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
/* Цена чуть увеличивается при наведении */
.price__main img:hover { transform: scale(1.06); }
.price__list {
  list-style: none; display: grid; gap: 16px;
  padding: 30px 32px; border-radius: 26px;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  box-shadow: var(--clay);
}
.price__list li {
  /* такой же текст, как в карточках «Подарки / Музыка / Фото»: тёмный и жирный */
  position: relative; padding-left: 32px;
  color: var(--text); font-weight: 800; font-size: clamp(17px, 1.45vw, 19px); line-height: 1.35;
}
.price__list li::before { content: ''; position: absolute; left: 4px; top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px #ffe1ee; }

/* Призыв */
.cta { padding-bottom: 140px; }
.cta::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: var(--drift) center bottom / 100% 100% no-repeat;
  z-index: 1; pointer-events: none;
}

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contacts > * { min-width: 0; }
.contacts__call, .contacts__msg {
  padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.phone-btn { display: block; width: 100%; max-width: 440px; margin: -12px 0 -18px; } /* номер без анимации; анимация только у «Позвонить» */
.phone-btn img { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(200, 8, 79, .25)); }
.call-btn { display: block; width: 220px; max-width: 70%; margin: -6px 0 -10px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.call-btn img { width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(200, 8, 79, .22)); }
.call-btn:hover { transform: scale(1.05); }
.call-btn:active { transform: scale(.97); }
.contacts__msg-title { font-weight: 800; font-size: 20px; color: var(--text); }
/* Instagram и Telegram — круглые значки с подписью */
.socials { display: flex; justify-content: center; gap: clamp(28px, 5vw, 56px); }
.social { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 17px; color: var(--text); }
.social__icon {
  width: 88px; height: 88px; object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(60, 100, 200, .25));
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.social:hover .social__icon { transform: translateY(-4px) scale(1.06); }
.social:active .social__icon { transform: scale(.96); }
.social:focus-visible { outline: 3px solid #ffc81e; outline-offset: 4px; border-radius: 12px; }

/* Просмотр фото на весь экран */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(15, 20, 50, .88);
  opacity: 0; transition: opacity .25s;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img {
  max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 20px; border: 6px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: scale(.92); transition: transform .25s;
  cursor: default;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #fff; background: var(--red); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.lightbox__close:focus-visible, .photo--meet:focus-visible { outline: 3px solid #ffc81e; outline-offset: 3px; }

/* Подсказка внизу экрана */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 110;
  max-width: calc(100vw - 32px); padding: 14px 22px;
  background: var(--text); color: #fff; font-weight: 800; font-size: 16px; text-align: center;
  border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .25s;
}
.toast[hidden] { display: none; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Подвал */
.footer { position: relative; z-index: 2; padding: 24px 0 36px; color: var(--muted); font-weight: 700; font-size: 14px; background: #eef5ff; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { color: #c8104f; display: inline-block; padding: 10px 0; margin: -10px 0; } /* темнее розового для читаемости; высокая зона нажатия пальцем */

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .meet { max-width: 680px; margin-left: auto; margin-right: auto; }
  .meet { grid-template-columns: 1fr; gap: 36px; }
  .meet__card { grid-template-columns: 46% 1fr; }
  .meet .stars-list li { font-size: 21px; }
  .price { margin-top: 20px; padding-top: 12px; } /* ноутбук: цена ближе к карточкам программы */
}

@media (max-width: 960px) {
  /* Шапка на планшете: кнопка заказа поменьше, чтобы влезла кнопка языка */
  .header__inner { gap: 16px; }
  .header__cta img { width: 210px; }
  .includes { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 20px; }
  .include { min-height: 0; }
  .price { grid-template-columns: 1fr; justify-items: center; gap: 20px; margin-top: 20px; padding: 12px 32px 32px; }
  .price__main { width: 100%; max-width: 620px; }
  /* Плашка по ширине текста и по центру — без пустого места справа */
  .price__list { width: fit-content; max-width: 100%; padding: 28px 40px; }
  .price__list li { font-size: 20px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  /* Телефоны: карточки без «размытия» под ними (тяжело для слабых телефонов при прокрутке), чуть плотнее белый */
  .card, .price__list { --glass: rgba(255, 255, 255, .72); --glass-blur: none; }
  body::before { background-position: 0 0, center 70%; }
  .header { top: 8px; padding-top: 8px; }
  /* Шапка на телефоне: логотип и меню в одну строку, как на компьютере (кнопка заказа есть ниже) */
  .header__cta { display: none; }
  .header__inner { gap: 8px; padding: 4px 8px 4px 10px; }
  .nav { justify-content: space-evenly; gap: 6px; font-size: clamp(12px, 3.5vw, 14px); }
  .nav a { padding: 10px 2px; }
  .logo__img { height: 50px; margin: -2px 0; }
  .lang { width: 38px; height: 38px; font-size: 13px; }

  .hero { padding: 28px 0 44px; }
  .hero::after { height: 50px; }
  .meet { grid-template-columns: 1fr; gap: 36px; }
  /* Карточки на телефоне: фото сверху, надпись и описание под ним */
  .meet__card { grid-template-columns: 1fr; gap: 0; padding: 16px 18px 22px; }
  .meet__card .photo--meet { width: min(62%, 260px); justify-self: center; }
  .meet__name { height: 54px; justify-content: center; margin: 18px 0 16px; }
  .meet__name img { max-width: 250px; margin: 0 auto; object-position: center; }
  .meet__text { padding: 0; }
  .meet .stars-list { gap: 14px; }
  .meet .stars-list li { font-size: 17px; }
  .include { padding: 26px 20px; gap: 10px; }
  .contacts { grid-template-columns: 1fr; gap: 36px; }
  .section.cta { padding-bottom: 110px; }
  .section { padding: 44px 0 80px; }
  .section--about { padding-top: 4px; }
  html { scroll-padding-top: 84px; } /* шапка на телефоне ниже */
  .section::after { height: 60px; }
  .section__heading { margin-bottom: 28px; }
  .price { margin-top: 12px; padding: 4px 0 24px; }
}

@media (max-width: 420px) {
  .price__list { padding: 24px 22px; }
  .price__list li { font-size: 17px; }
  .contacts__call, .contacts__msg { padding: 22px 16px; }
}

@media (max-width: 360px) {
  /* Самые узкие экраны: меню уменьшается вместе с шириной, чтобы «Контакты» не вылезали */
  .header__inner { gap: 4px; padding: 4px 8px 4px 6px; }
  .nav { font-size: clamp(10px, 3.6vw, 12.5px); gap: 0; }
  .logo__img { height: clamp(32px, 12vw, 42px); }
  .lang { width: 32px; height: 32px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
