/* Радуй - салюты и пиротехника. Синий бренда #172A6C (брендбук), фон - обложка каталога. */

:root {
  --blue: #172A6C;        /* фирменный синий из брендбука */
  --blue-deep: #0A1130;   /* ночное небо, база фона */
  --blue-dark: #0E1840;   /* тёмные секции */
  --blue-card: #1B2F77;   /* карточки на синем */
  --pink: #FF2E8F;        /* розовый заголовков каталога */
  --crimson: #BA2753;     /* малиновый бренда - кнопки */
  --crimson-dark: #9E1F46;/* малиновый при наведении */
  --white: #FFFFFF;
  --ink: #F2F4FF;         /* основной текст на тёмном */
  --muted: #A9B4DE;       /* приглушённый текст */
  --line: rgba(255,255,255,.12);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(4, 8, 30, .55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -100px, rgba(23,42,108,.85), transparent 70%),
    radial-gradient(900px 600px at -150px 30%, rgba(186,39,83,.28), transparent 70%),
    var(--blue-deep);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }

/* ============ ШАПКА ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: rgba(10, 17, 48, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 34px; width: auto; color: var(--white); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 13px; border-radius: 999px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--pink); color: var(--white); }
.header-phone {
  text-decoration: none; font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px;
  background: var(--crimson); color: var(--white);
  transition: background .2s;
}
.header-phone:hover { background: var(--crimson-dark); }
.burger { display: none; }

/* ============ ГЛАВНЫЙ ЭКРАН ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  /* обложка целиком; кадр опущен к ёлке - при center top в экран попадает замок */
  background: url('img/hero.jpg') center 63% / cover no-repeat var(--blue-deep);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(97deg, rgba(10,17,48,.88) 0%, rgba(10,17,48,.74) 30%, rgba(10,17,48,.3) 58%, transparent 78%),
    linear-gradient(180deg, rgba(10,17,48,.5) 0%, transparent 24%, rgba(10,17,48,.45) 84%, var(--blue-deep) 100%);
}
.hero-fade { position: absolute; inset: auto 0 0 0; height: 130px;
  background: linear-gradient(transparent, var(--blue-deep)); }
.hero-inner {
  position: relative; z-index: 2;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 140px 16px 90px;
}
.hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 5.3vw, 74px);
  line-height: 1.02; letter-spacing: .01em;
  text-shadow: 0 6px 40px rgba(4,8,30,.8);
}
.hero-sub {
  max-width: 560px; margin-top: 22px;
  font-size: 17px; color: var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 600;
  padding: 16px 30px; border-radius: 999px;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  /* кнопка «Получить каталог» - <button>, ему нужны сброс рамки и курсор */
  border: none; background: none; color: inherit; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--crimson); color: var(--white); box-shadow: 0 12px 34px rgba(186,39,83,.4); }
.btn-primary:hover { background: var(--crimson-dark); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn-blue:hover { background: #21388C; }
.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: 14px 44px; margin-top: 48px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-stats b {
  display: block; font-family: 'Unbounded', sans-serif;
  font-size: 30px; font-weight: 800; color: var(--pink);
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ============ СЕКЦИИ ============ */
.section { padding: 90px 16px; }
.section > * { max-width: 1180px; margin-inline: auto; }
.section-dark { background: var(--blue-dark); }
.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 800;
  text-transform: uppercase; line-height: 1.15;
}
.section-title em { font-style: normal; color: var(--pink); display: block; }
.section-lead { max-width: 720px; margin-top: 18px; color: var(--muted); font-size: 17px; }

/* ============ ПРЕИМУЩЕСТВА ============ */
.adv-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px; margin-top: 46px;
}
.adv {
  background: linear-gradient(160deg, var(--blue-card), var(--blue) 80%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.adv:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.adv svg { width: 42px; height: 42px; color: var(--pink); margin-bottom: 18px; }
.adv h3 { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.35; }
.adv p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ============ КАТАЛОГ ============ */
.cat-tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px; margin-top: 44px;
}
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cat-tile span {
  position: absolute; right: 10px; bottom: 10px;
  font-family: 'Unbounded', sans-serif; font-size: 11px; font-weight: 600;
  background: rgba(10,17,48,.8); color: var(--white);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.cat-block { margin-top: 70px; }
.cat-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  scroll-margin-top: 90px;
  border-bottom: 2px solid var(--pink); padding-bottom: 12px;
}
.cat-block { scroll-margin-top: 90px; }
.cat-head em {
  font-style: normal; font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; text-transform: uppercase;
}
.cat-head i { font-style: normal; font-size: 13px; color: var(--muted); }
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px; margin-top: 24px;
}
.card {
  min-width: 0;
  background: var(--blue-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  /* overflow здесь нельзя: он обрезал бы лупу. Углы скругляет сам .card-img */
  position: relative; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); z-index: 20; }
/* Картинка товара показывается целиком: абсолютное позиционирование + contain.
   Через max-height:100% не работает - процент от высоты, заданной aspect-ratio,
   не разрешается, и коробка вылезала за карточку либо резалась по краям. */
.card-img {
  position: relative; background: var(--white);
  aspect-ratio: 5 / 4; min-height: 0; overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.card-img { cursor: zoom-in; }
.card-img img {
  position: absolute; inset: 12px;
  width: calc(100% - 24px); height: calc(100% - 24px);
  object-fit: contain;
}
/* значок лупы в углу фото */
.zoom-hint {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(23, 42, 108, .1); color: var(--blue);
  transition: background .2s, color .2s;
}
.zoom-hint svg { width: 15px; height: 15px; }
.card:hover .zoom-hint { background: var(--crimson); color: var(--white); }

/* ЛУПА: при наведении фото показывается крупно поверх соседних карточек */
.card-zoom {
  position: absolute; left: 50%; top: 50%; z-index: 40;
  transform: translate(-50%, -50%) scale(.9);
  width: 330px; height: 430px; padding: 16px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(4, 8, 30, .7);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s, transform .18s, visibility .18s;
}
.card-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (hover: hover) {
  .card:hover .card-zoom { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
}

/* Римские свечи - этикетки узкие и длинные, им нужен блок повыше */
#svechi .card-img { aspect-ratio: 3 / 4; }
#svechi .card-zoom { width: 300px; height: 520px; }
.fx-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 600;
  background: var(--pink); color: var(--white);
  padding: 5px 10px; border-radius: 999px;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-top h4 { font-family: 'Unbounded', sans-serif; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card-top code { font-size: 11px; color: var(--muted); white-space: nowrap; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.spec b { display: block; font-size: 14px; color: var(--white); }
.spec span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fx {
  margin-top: 10px; font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-cta {
  margin-top: auto; padding-top: 14px;
  align-self: flex-start;
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--pink);
}
.card-cta:hover { text-decoration: underline; }

/* ============ СОТРУДНИЧЕСТВО ============ */
.coop-sub {
  font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 600;
  text-transform: uppercase; color: var(--pink); margin-top: 52px;
}
.coop-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px; margin-top: 24px;
}
.coop-col {
  background: var(--blue-dark); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.coop-num {
  font-family: 'Unbounded', sans-serif; font-size: 34px; font-weight: 800; color: var(--pink);
}
.coop-col h4 { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 600; margin-top: 8px; }
.coop-col ul { list-style: none; margin-top: 16px; }
.coop-col li {
  position: relative; padding: 8px 0 8px 22px;
  font-size: 14px; color: var(--muted);
  border-top: 1px solid var(--line);
}
.coop-col li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink);
}
.coop-import {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px;
  margin-top: 40px; padding: 40px;
  background: linear-gradient(135deg, var(--blue) 0%, #21388C 60%, var(--crimson) 160%);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.coop-import h3 { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.coop-import-tag { color: var(--white); font-weight: 700; margin: 12px 0; }
.coop-import p { font-size: 15px; }
.coop-import-cta { align-self: center; text-align: center; }
.coop-import-cta p { margin-bottom: 18px; font-weight: 600; }

/* ============ БЛОГ ============ */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px; margin-top: 46px;
}
.blog-card {
  background: var(--blue-card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-body h3 { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.35; }
.blog-body p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.blog-more {
  margin-top: auto; padding-top: 16px; align-self: flex-start;
  background: none; border: none; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--pink);
}
.blog-more:hover { text-decoration: underline; }
.article {
  width: min(680px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--blue-dark); color: var(--ink);
  padding: 40px; margin: auto;
}
.article::backdrop { background: rgba(4, 8, 30, .8); backdrop-filter: blur(6px); }
.article h3 {
  font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 800;
  text-transform: uppercase; color: var(--pink); padding-right: 40px;
}
.article p { margin-top: 14px; font-size: 15px; }
/* ============ ОКНО «ПОЛУЧИТЬ КАТАЛОГ» ============ */
.getcat { width: min(620px, calc(100vw - 32px)); }
.getcat-lead { color: var(--muted); }
.getcat-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.way {
  min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 20px 12px; border-radius: var(--radius);
  text-decoration: none; color: var(--white);
  border: 1px solid var(--line);
  transition: transform .15s, filter .2s;
}
.way:hover { transform: translateY(-3px); filter: brightness(1.12); }
.way svg { width: 30px; height: 30px; }
.way b { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 600; }
.way span { font-size: 11.5px; opacity: .85; }
.way-file { background: var(--crimson); }
.way-tg { background: #2AABEE; }
.way-wa { background: #25D366; }
.getcat-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ============ ОКНО С КРУПНЫМ ФОТО ============ */
.photo {
  width: min(560px, calc(100vw - 24px));
  padding: 18px; margin: auto;
  background: var(--blue-dark); border: 1px solid var(--line); border-radius: var(--radius);
}
.photo::backdrop { background: rgba(4, 8, 30, .86); }
.photo figure { margin: 0; }
.photo img {
  width: 100%; max-height: 74vh; object-fit: contain;
  background: var(--white); border-radius: 10px;
}
/* крестик лежит поверх светлой картинки - ему нужна своя подложка */
.photo .dialog-close { background: rgba(10, 17, 48, .8); border-color: transparent; color: var(--white); }
.photo figcaption {
  margin-top: 12px; text-align: center;
  font-family: 'Unbounded', sans-serif; font-size: 13px; color: var(--ink);
}

.dialog-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--ink);
  font-size: 15px; cursor: pointer;
}
.dialog-close:hover { background: var(--crimson); }

/* ============ ОПЛАТА ============ */
.pay-wrap {
  max-width: 720px; margin-top: 30px;
  background: var(--blue-dark); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px;
}
.pay-wrap p + p { margin-top: 14px; }
.pay-wrap .hero-cta { margin-top: 26px; }

/* ============ ПОДВАЛ ============ */
.footer {
  background: #060B22; border-top: 1px solid var(--line);
  padding: 70px 16px 34px;
}
.footer-grid {
  max-width: 1180px; margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 40px;
}
.footer-logo { height: 44px; width: auto; color: var(--white); }
.footer-brand p { margin-top: 16px; font-family: 'Unbounded', sans-serif; font-size: 13px; color: var(--pink); }
.footer-contacts h3 {
  font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px;
}
.footer-contacts a {
  display: block; text-decoration: none; font-weight: 600;
  font-size: 17px; padding: 4px 0;
}
.footer-contacts a:hover { color: var(--pink); }
.footer-note { display: flex; gap: 16px; align-items: flex-start; }
.age-badge {
  flex-shrink: 0;
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 15px;
  border: 2px solid var(--crimson); color: var(--white); background: var(--crimson);
  border-radius: 50%; width: 52px; height: 52px;
  display: grid; place-items: center;
}
.footer-note p { font-size: 12.5px; color: var(--muted); }

/* ============ АДАПТИВ ============ */
@media (max-width: 1020px) {
  .adv-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .coop-grid { grid-template-columns: 1fr; }
  .coop-import { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .header { padding: 12px 16px; gap: 14px; }
  .header-phone { margin-left: auto; padding: 8px 14px; font-size: 12px; }
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .burger span { width: 24px; height: 2.5px; background: var(--white); border-radius: 2px; }
  .nav {
    position: fixed; top: 62px; left: 0; right: 0;
    flex-direction: column; padding: 12px 16px 20px;
    background: rgba(10,17,48,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  /* на узком экране текст ложится на саму картинку - гасим её сильнее */
  .hero { background-position: center 58%; }
  .hero::before {
    background: linear-gradient(183deg, rgba(10,17,48,.66) 0%, rgba(10,17,48,.82) 46%, rgba(10,17,48,.9) 74%, var(--blue-deep) 100%);
  }
  .hero-inner { padding: 118px 16px 60px; }
  .hero-stats { gap: 14px 28px; }
  .hero-stats b { font-size: 24px; }
  .section { padding: 64px 16px; }
  .adv-grid { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .card-img { aspect-ratio: 4 / 3; }
  .coop-import { padding: 26px; }
  .article { padding: 28px 22px; }
  .getcat-ways { grid-template-columns: 1fr; }
  .way { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 18px; }
  .way b { flex: 1; }
}
