/* ============================================================
   Фабрика Деда Мороза — витрина новогодних подарков
   ============================================================ */

:root {
  --night: #081527;
  --night-2: #0c1f36;
  --night-3: #102844;
  --cream: #fbf6ec;
  --cream-2: #f4ecdd;
  --paper: #ffffff;
  --gold: #e7bf78;
  --gold-light: #f6dfb0;
  --gold-deep: #b98b3d;
  --berry: #b23a34;
  --ink: #17263a;
  --muted: #5f6d7e;
  --line: rgba(23, 38, 58, 0.1);

  --font-display: Georgia, "Times New Roman", "PT Serif", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-card: 0 30px 60px -42px rgba(8, 21, 39, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

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

a { color: inherit; }

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--gold);
  color: #1b1a17;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #f9e4b8 0%, var(--gold) 48%, #d6a558 100%);
  color: #241d12;
  box-shadow: 0 16px 34px -18px rgba(231, 191, 120, 0.95);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -18px rgba(231, 191, 120, 1);
  filter: brightness(1.04);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
  color: #f6efe3;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.btn--ghost-dark {
  border-color: rgba(23, 38, 58, 0.18);
  background: transparent;
  color: var(--ink);
  backdrop-filter: none;
}
.btn--ghost-dark:hover {
  background: rgba(23, 38, 58, 0.06);
  border-color: rgba(23, 38, 58, 0.3);
}

.btn--sm { padding: 11px 18px; font-size: 14px; }

.btn--soft {
  background: rgba(23, 38, 58, 0.05);
  color: var(--ink);
  border-color: rgba(23, 38, 58, 0.08);
}
.btn--soft:hover { background: rgba(23, 38, 58, 0.1); }

.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Декоративное свечение ---------- */

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 78% 6%, rgba(231, 191, 120, 0.16), transparent 70%),
    radial-gradient(50% 35% at 8% 22%, rgba(64, 128, 196, 0.16), transparent 72%);
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(8, 21, 39, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -30px rgba(0, 0, 0, 0.9);
}

.header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8f2e6;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(231, 191, 120, 0.12);
  border: 1px solid rgba(231, 191, 120, 0.28);
  flex: none;
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.logo__sub {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 242, 230, 0.5);
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a {
  color: rgba(248, 242, 230, 0.74);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1.25;
}
.header__phone-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 242, 230, 0.45);
  margin-bottom: 2px;
}
.header__phone-number {
  font-size: 14px;
  font-weight: 600;
  color: #f8f2e6;
  text-decoration: none;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.header__phone-number:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 82% 8%, #17395f 0%, transparent 58%),
    radial-gradient(70% 60% at 8% 100%, #14324f 0%, transparent 62%),
    linear-gradient(180deg, #081527 0%, #0a1a2e 55%, #0b1e33 100%);
  color: #f7f1e6;
  overflow: hidden;
  padding: 148px 0 150px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--cream));
  z-index: 2;
  pointer-events: none;
}

.hero__snow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__snow i {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

@keyframes snowfall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.7; }
  100% { transform: translate3d(26px, 112vh, 0); opacity: 0; }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow__line {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--dark { color: var(--gold-deep); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.05rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.02em;
  height: 0.09em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 191, 120, 0.75), rgba(231, 191, 120, 0.05));
}

.hero__lead {
  max-width: 54ch;
  color: rgba(247, 241, 230, 0.72);
  font-size: 17px;
  line-height: 1.66;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.fact {
  position: relative;
  padding-left: 22px;
}
.fact + .fact { padding-left: 40px; }
.fact + .fact::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.fact dt {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.1;
  color: var(--gold-light);
}
.fact dd {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.5);
  margin-top: 4px;
}

.hero__media { position: relative; }

.hero__halo {
  position: absolute;
  inset: -14% -10% -14% -10%;
  background: radial-gradient(closest-side, rgba(231, 191, 120, 0.24), transparent 72%);
  filter: blur(28px);
  z-index: 0;
}

.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(231, 191, 120, 0.32);
  box-shadow:
    0 60px 90px -50px rgba(0, 0, 0, 0.9),
    0 0 0 8px rgba(255, 255, 255, 0.02);
  aspect-ratio: 1 / 1;
  margin: 0;
  transform: rotate(-1.6deg);
  transition: transform 0.7s var(--ease);
}
.hero__frame:hover { transform: rotate(0deg) scale(1.012); }

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(251, 246, 236, 0.95);
  color: var(--ink);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}
.hero__tag-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__tag-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: #8a2f2a;
}

/* ---------- Преимущества ---------- */

.benefits {
  position: relative;
  z-index: 4;
  margin-top: -74px;
  padding: 0 28px;
}
.benefits__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 34px;
  padding: 34px 40px;
  background: #fff;
  border: 1px solid rgba(23, 38, 58, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 70px -55px rgba(8, 21, 39, 0.7);
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 6px 0;
}
.benefit__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(231, 191, 120, 0.16);
  color: var(--gold-deep);
}
.benefit h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.benefit p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Каталог ---------- */

.catalog {
  padding: 96px 0 110px;
  background: var(--cream);
  position: relative;
}

.catalog__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}
.section-head--center { justify-content: center; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title--light { color: #f8f2e6; }

.section-lead {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid rgba(23, 38, 58, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 44px 70px -46px rgba(8, 21, 39, 0.6);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d1b2e;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card__tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 22px 22px 24px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.card__title button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.card__title button:hover { color: var(--gold-deep); }

.card__short {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card__price {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.card__price span {
  font-size: 17px;
  color: var(--muted);
}

.card__buttons {
  display: flex;
  gap: 8px;
}

.catalog__note {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------- Как заказать ---------- */

.how {
  position: relative;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(39, 84, 132, 0.55), transparent 60%),
    linear-gradient(160deg, #0a1a2e 0%, #071322 100%);
  color: #f7f1e6;
  padding: 92px 0 100px;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
}

.how__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.how .section-head { margin-bottom: 52px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.step__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 10px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(247, 241, 230, 0.62);
}

/* ---------- Подвал ---------- */

.footer {
  background: #060f1c;
  color: rgba(247, 241, 230, 0.7);
  padding: 74px 0 0;
}
.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 56px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  gap: 16px;
  max-width: 420px;
}
.logo__mark--footer {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}
.footer__title {
  font-family: var(--font-display);
  font-size: 20px;
  color: #f8f2e6;
  margin-bottom: 8px;
}
.footer__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.52);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.footer__label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.4);
  margin-bottom: 4px;
}
.footer__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
}
.footer__phone {
  font-family: var(--font-display);
  font-size: 25px;
  color: #f8f2e6;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.footer__phone:hover { color: var(--gold); }

.footer__wa {
  font-size: 12.5px;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(231, 191, 120, 0.32);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__wa:hover { color: #fff; border-color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(247, 241, 230, 0.35);
}

/* ---------- Модальное окно ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 28, 0.74);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.3s var(--ease);
}

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(1040px, 100%);
  max-height: min(88vh, 820px);
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 80px 120px -60px rgba(0, 0, 0, 0.85);
  animation: popIn 0.42s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(23, 38, 58, 0.12);
  background: rgba(251, 246, 236, 0.9);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }

.modal__media {
  position: relative;
  background: #0d1b2e;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 20px 18px;
}
.modal__media > img {
  max-width: 100%;
  max-height: calc(100% - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal__thumbs {
  flex: none;
  display: flex;
  gap: 9px;
  padding: 7px;
  border-radius: 15px;
  background: rgba(6, 15, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.modal__thumbs[hidden] { display: none; }

.modal__thumb {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0d1b2e;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__thumb:hover { opacity: 0.85; transform: translateY(-1px); }
.modal__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(231, 191, 120, 0.4);
}
.modal__price {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  margin-top: -2px;
}

.modal__info {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal__body {
  padding: 38px 38px 12px;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  padding-right: 40px;
}
.modal__desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

.modal__label {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.modal__list {
  display: grid;
  gap: 8px;
  counter-reset: item;
  font-size: 14px;
  color: #2c3c50;
}
.modal__list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.modal__list li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 38px 22px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.modal__actions .btn { flex: 1 1 46%; }
.modal__hint {
  flex: 1 0 100%;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Выбор номера ---------- */

.picker {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.picker[hidden] { display: none; }

.picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 28, 0.72);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s var(--ease);
}

.picker__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 30px 30px 26px;
  border-radius: 26px;
  background: var(--cream);
  box-shadow: 0 70px 110px -60px rgba(0, 0, 0, 0.9);
  animation: popIn 0.35s var(--ease);
}

.picker__close {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(23, 38, 58, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.picker__close:hover { background: #fff; transform: rotate(90deg); }

.picker__eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
  padding-right: 40px;
}
.picker__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  padding-right: 40px;
}
.picker__hint {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.picker__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.picker__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.picker__number {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}

.picker__actions {
  display: flex;
  gap: 7px;
}

.picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.picker__btn svg { flex: none; }

.picker__btn--wa {
  background: #128c47;
  color: #fff;
}
.picker__btn--wa:hover { background: #0f7a3d; transform: translateY(-1px); }

.picker__btn--call {
  background: rgba(23, 38, 58, 0.06);
  color: var(--ink);
  border: 1px solid var(--line);
}
.picker__btn--call:hover { background: rgba(23, 38, 58, 0.11); }

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Мобильная панель ---------- */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 21, 39, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-bar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mobile-bar__btn--call {
  color: #f8f2e6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.mobile-bar__btn--wa {
  color: #12210f;
  background: linear-gradient(135deg, #f9e4b8, var(--gold));
}

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .hero__inner { gap: 44px; }
  .hero { padding: 132px 0 140px; }
  .header__inner { gap: 22px; }
}

@media (max-width: 920px) {
  .nav { display: none; }
  .benefits__inner { grid-template-columns: 1fr; gap: 18px; padding: 28px; }
  .benefits { margin-top: -58px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { padding-top: 20px; }

  .modal__dialog { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 92vh; }
  .modal__media { height: 38vh; min-height: 0; gap: 10px; padding: 14px 14px 12px; }
  .modal__thumb { width: 44px; height: 44px; }
  .modal__body { padding: 26px 24px 10px; }
  .modal__actions { padding: 14px 24px 18px; }
}

@media (max-width: 760px) {
  .header__phones { display: none; }
  .header__inner { padding: 14px 18px; }
  .logo__mark { width: 40px; height: 40px; border-radius: 12px; }
  .logo__title { font-size: 15px; }
  .logo__sub { font-size: 9px; letter-spacing: 0.12em; }

  .hero { padding: 112px 0 118px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 0 18px; }
  .hero__title { font-size: clamp(1.85rem, 7.6vw, 2.5rem); }
  .hero__title em { white-space: normal; }
  .hero__lead { font-size: 15.5px; }
  .hero__actions { gap: 10px; margin-bottom: 34px; }
  .hero__actions .btn { flex: 1 1 auto; padding: 14px 18px; font-size: 14.5px; }
  .hero__facts { gap: 0; }
  .fact { padding-left: 0; flex: 1; }
  .fact + .fact { padding-left: 22px; }
  .fact + .fact::before { left: 0; }
  .fact dt { font-size: 21px; }
  .fact dd { font-size: 10px; letter-spacing: 0.06em; }
  .hero__frame { transform: none; border-radius: 24px; }

  .benefits { padding: 0 16px; }
  .catalog { padding: 74px 0 84px; }
  .catalog__inner { padding: 0 18px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .section-head--center { align-items: center; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .how { padding: 74px 0 84px; }
  .how__inner { padding: 0 18px; }
  .footer__inner { padding: 0 18px 44px; gap: 30px; }
  .footer__bottom { padding: 20px 18px 92px; }
  .mobile-bar { display: flex; }
  .modal { padding: 10px; }
  .modal__dialog { border-radius: 20px; }
  .modal__body { padding: 22px 20px 8px; }
  .modal__actions { padding: 12px 20px 16px; }
  .modal__price { font-size: 24px; }
  .modal__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .hero__facts .fact dd { font-size: 9.5px; }
  .card__foot { flex-wrap: wrap; }
  .card__buttons { width: 100%; }
  .card__buttons .btn { flex: 1; }
}

@media (max-width: 560px) {
  .picker { padding: 0; align-items: end; }
  .picker__panel {
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 26px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: sheetUp 0.32s var(--ease);
  }
  .picker__title { font-size: 21px; }
  .picker__item { flex-direction: column; align-items: stretch; gap: 11px; padding: 14px; }
  .picker__number { font-size: 18px; }
  .picker__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .picker__btn { padding: 11px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__snow { display: none; }
}
