/* Шрифты хранятся у нас: Google Fonts в РФ работает нестабильно и передаёт IP посетителей за рубеж. */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/caveat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/caveat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lobster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lobster-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lobster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lobster-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Токены. Палитра «зимняя сказка при свечах»: ночной синий, свечное золото,
   клюквенный красный, кремовая бумага.
   ========================================================================== */
:root {
  --night-900: #0b1733;
  --night-800: #10224a;
  --night-700: #173263;
  --night-500: #2a5594;
  --snow: #f4f8ff;
  --cream: #f8f3ea;
  --paper: #fffdf8;
  --red: #b3262e;
  --red-dark: #8e1c23;
  --gold: #d4a63a;
  --gold-soft: #f6e6bd;
  --green: #2f6b4f;
  --ink: #1c2440;
  --ink-soft: #3a4566;
  --muted: #6b7286;
  --line: rgba(28, 36, 64, .12);
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 34, 74, .06), 0 1px 2px rgba(16, 34, 74, .05);
  --shadow: 0 12px 32px rgba(16, 34, 74, .10), 0 2px 6px rgba(16, 34, 74, .06);
  --shadow-lg: 0 24px 60px rgba(11, 23, 51, .28);
  --font-ui: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-title: "Lobster", Georgia, serif;
  --container: 1120px;
  --snow-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' opacity='.9'%3E%3Cpath d='M20 10v16M13 14l14 8M13 22l14-8'/%3E%3Cpath d='M85 60v12M80 63l10 6M80 69l10-6'/%3E%3Cpath d='M45 92v10M41 95l8 4M41 99l8-4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   Основа
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main { position: relative; z-index: 1; padding: 0 16px 64px; }

.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.15em; }
.muted { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Тёмная полоса со снегом (шапка + первый экран)
   ========================================================================== */
.band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 75% 10%, rgba(42, 85, 148, .65), transparent 70%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 55%, var(--night-700) 100%);
  color: #fff;
  padding-bottom: 56px;
  margin-bottom: 40px;
}
.band::after { /* мягкий сугроб внизу */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 46px;
  background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.band > * { position: relative; z-index: 1; }
.band > .snowfall, .band > .glow { position: absolute; z-index: 0; }
.snowfall {
  inset: 0; pointer-events: none;
  background-image: var(--snow-pattern), var(--snow-pattern);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 60px 40px;
  opacity: .28;
  animation: snow 22s linear infinite;
}
@keyframes snow { to { background-position: 0 120px, 60px 230px; } }
.glow { right: -120px; top: 40px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .18), transparent 65%); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snowfall, .flight * { animation: none !important; }
}

.site-header { max-width: var(--container); margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 23px; letter-spacing: .01em; }
.logo:hover { color: #fff; }
.logo__icon { width: 26px; height: 26px; color: var(--gold-soft); }
.logo--dark { color: var(--ink); }
.logo--dark:hover { color: var(--ink); }
.logo--dark .logo__icon { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; }
.site-nav a { color: #dfe8f7; text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav__cta { padding: 8px 16px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.site-nav__cta:hover { border-color: #fff; }

/* ---------- Первый экран ---------- */
.hero { max-width: var(--container); margin: 0 auto; padding: 8px 16px 0; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(42px, 7vw, 74px); line-height: 1.02; letter-spacing: -.015em; margin: 10px 0 16px; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: #d6e1f3; max-width: 560px; margin: 0 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--gold-soft); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.eyebrow--dark { background: var(--gold-soft); color: #7a5a12; }
.hero--home { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c7d4ea; font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--gold); }
.hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero--article { text-align: center; padding-top: 6px; }
.hero--article h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 6px; }
.hero--article .hero__lead { margin: 0 auto; }
.crumbs { margin: 0; font-size: 14px; color: #b9c8e2; }
.crumbs a { color: #fff; }

/* ==========================================================================
   Кнопки и поля
   ========================================================================== */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--red);
  background: #fff; color: var(--red); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--red-dark); }
.btn:active { transform: translateY(0); }
.btn--primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(180deg, #c8323a 0%, var(--red) 55%, var(--red-dark) 100%);
  box-shadow: 0 8px 20px rgba(179, 38, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(179, 38, 46, .42), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--lg { padding: 15px 28px; font-size: 18px; }
.btn--big { width: 100%; margin-top: 22px; font-size: 20px; padding: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.actions--center { justify-content: center; }

.field { display: block; font-weight: 700; margin: 18px 0 4px; }
.field input {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-weight: 400; font-size: 18px;
  padding: 14px 16px; border: 1.5px solid #cfd6e3; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--night-500); box-shadow: 0 0 0 4px rgba(42, 85, 148, .15); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--red); }
.field-error { color: var(--red); font-weight: 700; font-size: 15px; margin: 8px 0 0; }
.alert { background: #fde8e8; color: var(--red-dark); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; }

/* ==========================================================================
   Секции главной
   ========================================================================== */
.section { max-width: var(--container); margin: 0 auto 72px; }
.section--narrow { max-width: 780px; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section__head h2 { margin: 0 0 8px; }
.section__head p { margin: 0; color: var(--muted); font-size: 18px; }

/* Форма письма */
.letter-form { max-width: 800px; margin: 0 auto; }
.picker { border: 0; padding: 0; margin: 0 0 18px; }
.picker__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.picker__option {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--card); border-radius: var(--radius-sm); padding: 10px 10px 12px; cursor: pointer;
  font-weight: 700; font-size: 15px; border: 2px solid transparent; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.picker__option:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.picker__option input { position: absolute; opacity: 0; }
.picker__option:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 46, .12); }
.picker__option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.picker__swatch { width: 100%; height: 56px; border-radius: 8px; }
.picker__option--snow .picker__swatch { background: var(--snow-pattern), linear-gradient(160deg, #cfe6ff, #6fa3e0); background-size: 60px 60px, auto; }
.picker__option--tale .picker__swatch { background: radial-gradient(circle at 30% 30%, #fff3d6, #f0d9a8); box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 7px var(--gold); }
.picker__option--classic .picker__swatch { background: #fff; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 7px #fff, inset 0 0 0 9px var(--green); }

.hints { margin: 16px 0 0; background: var(--card); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.hints summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.hints summary .icon { color: var(--gold); }
.hints ul { margin: 10px 0 6px; padding-left: 22px; }
.hints p { margin: 6px 0 0; font-size: 15px; }

.parent-box { background: var(--card); border-radius: var(--radius); padding: 26px; margin-top: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.parent-box h3 { margin: 0 0 4px; font-size: 21px; }
.parent-box p { margin: 0; color: var(--ink-soft); }
.parent-box__head { display: flex; gap: 14px; align-items: flex-start; }
.parent-box__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0 !important; font-size: 14px; color: var(--muted) !important; }
.badge-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gold-soft); color: #8a6414; }
.badge-icon .icon { width: 24px; height: 24px; }

/* Как это работает */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; }
.how__step { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-sm); counter-increment: how; }
.how__step::before { content: counter(how); position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--gold-soft); }
.how__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(160deg, var(--night-700), var(--night-500)); color: var(--gold-soft); margin-bottom: 14px; }
.how__icon .icon { width: 26px; height: 26px; }
.how__step h3 { margin: 0 0 6px; font-size: 20px; }
.how__step p { margin: 0; color: var(--ink-soft); }

/* Анонс Волшебной отправки */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--card); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.promo__text { padding: 8px 18px 8px 0; }
.promo__text h2 { margin: 12px 0 10px; }
.promo__text p { color: var(--ink-soft); }
.promo__price { font-size: 18px; color: var(--ink) !important; }
.promo__price strong { color: var(--red); font-size: 24px; }

/* Статьи на главной */
.article-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.article-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 22px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.article-card h3 { margin: 0 0 8px; font-size: 18px; }
.article-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; flex: 1; }
.article-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 15px; }

/* Вопросы и ответы */
.faq { background: var(--card); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 52px 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); }

/* Список статей и карточки */
.info { max-width: 780px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cards--list { grid-template-columns: 1fr; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.card h3 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }

/* ==========================================================================
   Документы и статьи
   ========================================================================== */
.doc { max-width: 780px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.doc h1 { font-family: var(--font-head); font-size: 38px; margin-top: 0; }
.doc h2 { font-size: 28px; margin: 32px 0 10px; }
.article { font-size: 18px; line-height: 1.7; }
.article h2 { color: var(--ink); }
.article .lead { font-size: 20px; color: var(--ink-soft); margin-top: 0; }
.article li { margin-bottom: 6px; }
.steps-list li { margin-bottom: 12px; }
.sample { margin: 16px 0; padding: 18px 22px; background: #fbf4e3; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--font-hand); font-size: 24px; line-height: 1.45; color: #1d2b5a; }
.address { background: #f3f6fb; border-radius: var(--radius-sm); padding: 16px 20px; font-size: 18px; }
.address p { margin: 4px 0; }
.cta { margin: 40px 0 8px; padding: 28px; border-radius: var(--radius); background: radial-gradient(600px 200px at 85% 0, rgba(42, 85, 148, .7), transparent 70%), linear-gradient(135deg, var(--night-900), var(--night-700)); color: #fff; }
.cta h2 { color: #fff; margin-top: 0; font-size: 30px; }
.cta p { color: #d6e1f3; }
.more ul { padding-left: 22px; }
.templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 20px 0; }
.template { margin: 0; background: #fff; border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: center; }
.template__preview .picker__swatch { display: block; height: 160px; border-radius: 8px; }
.template figcaption { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.template .btn { font-size: 15px; padding: 10px 14px; }

.price-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 16px; }
.price-table th, .price-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 14px; color: var(--muted); font-weight: 700; }
.price-table td:last-child { white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .price-table td:nth-child(2), .price-table th:nth-child(2) { display: none; } }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer { background: #efe7d8; border-top: 1px solid var(--line); padding: 40px 16px 24px; color: var(--ink-soft); font-size: 15px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--red); }
.site-footer p { margin: 10px 0 0; max-width: 420px; }
.site-footer__copy { max-width: var(--container); margin: 28px auto 0 !important; color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Бланки (используются и на сайте, и в PDF)
   ========================================================================== */
.blank {
  --line: 2.1rem;
  --paper: #fff;
  --accent: var(--red);
  position: relative;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  background: var(--paper);
}
.blank__frame { position: relative; border-radius: 10px; padding: 32px 32px 24px; background: var(--paper); }
.blank__head { text-align: center; margin-bottom: 12px; }
.blank__to { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.blank__title { font-family: var(--font-title); font-weight: 400; color: var(--accent); font-size: clamp(28px, 6vw, 40px); margin: 6px 0 0; letter-spacing: 0; }
.blank__text, .blank__textarea {
  font-family: var(--font-hand); font-size: 26px; line-height: var(--line); color: #1d2b5a;
  background-image: repeating-linear-gradient(transparent 0, transparent calc(var(--line) - 1px), rgba(31,42,68,.18) calc(var(--line) - 1px), rgba(31,42,68,.18) var(--line));
  background-attachment: local;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.blank__text { min-height: calc(var(--line) * 8); }
.blank__textarea { display: block; width: 100%; min-height: calc(var(--line) * 9); border: 0; resize: vertical; padding: 0; outline: none; background-color: transparent; }
.blank__textarea::placeholder { color: rgba(29,43,90,.38); }
.blank__sign { margin-top: 14px; text-align: right; font-family: var(--font-hand); font-size: 26px; color: #1d2b5a; }
.blank__sign p { margin: 0; }
.blank__date { font-size: 20px; color: var(--muted); }
.blank__sign--edit { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: flex-end; align-items: center; text-align: left; }
.blank__sign--edit label { display: inline-flex; align-items: baseline; gap: 8px; }
.blank__sign--edit input[type=text], .blank__sign--edit select { font: inherit; font-size: 26px; color: #1d2b5a; border: 0; border-bottom: 2px dashed rgba(31,42,68,.4); background: transparent; padding: 0 4px; width: 9.5em; border-radius: 0; }
.blank__sign--edit input::placeholder { color: rgba(29,43,90,.35); }
.blank__sign--edit select { width: auto; cursor: pointer; }
.blank__sign--edit input:focus, .blank__sign--edit select:focus { outline: none; border-bottom-color: var(--accent); border-bottom-style: solid; }
.gender { display: inline-flex; gap: 8px; font-size: 22px; }
.gender label { cursor: pointer; }
.gender input { position: absolute; opacity: 0; }
.gender span { display: inline-block; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(31,42,68,.2); transition: background-color .15s, border-color .15s; }
.gender input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.gender input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Снежный */
.blank--snow { --accent: #1f5fa8; background: var(--snow-pattern), linear-gradient(160deg, #cfe6ff, #6fa3e0); background-size: 120px 120px, auto; }
.blank--snow .blank__frame { background: rgba(255,255,255,.95); }

/* Сказочный */
.blank--tale { --paper: #fbf1dc; background: #fbf1dc; box-shadow: var(--shadow-lg), inset 0 0 0 6px var(--red), inset 0 0 0 10px var(--gold); padding: 22px; }
.blank--tale .blank__frame { background: radial-gradient(circle at 50% 0, #fff9ea, #f7e6c2); border: 1px dashed rgba(201,162,39,.7); }
.blank--tale .blank__frame::before, .blank--tale .blank__frame::after {
  content: ""; position: absolute; top: 12px; width: 40px; height: 52px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cpath d='M20 4l3 6 6 1-4.5 4 1 6.5L20 18l-5.5 3.5 1-6.5L11 11l6-1z' fill='%23d4a63a'/%3E%3Cpath d='M20 16l9 12h-5l8 10h-6l8 10H6l8-10H8l8-10h-5z' fill='%232f6b4f'/%3E%3Crect x='17.5' y='48' width='5' height='4' fill='%237a4b2a'/%3E%3C/svg%3E") center/contain no-repeat;
}
.blank--tale .blank__frame::before { left: 14px; }
.blank--tale .blank__frame::after { right: 14px; }

/* Классический */
.blank--classic { background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 5px var(--red), inset 0 0 0 11px #fff, inset 0 0 0 14px var(--green); padding: 22px; }
.blank--classic .blank__title { color: var(--green); }

/* ==========================================================================
   «Письмо улетело», просмотр письма
   ========================================================================== */
.sent { max-width: 680px; margin: 0 auto; text-align: center; padding: 0 16px; }
.sent__title { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(38px, 7vw, 60px); margin: 0 0 10px; }
.sent__lead { color: #d6e1f3; font-size: 20px; margin: 0; }
.sent .parent-box { text-align: left; }
.flight { position: relative; height: 170px; }
.flight__envelope { position: absolute; left: 50%; top: 70px; width: 120px; margin-left: -60px; animation: fly 2.6s ease-in .4s forwards; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  30% { transform: translate(-30px, 10px) rotate(-8deg) scale(1.05); }
  100% { transform: translate(220px, -260px) rotate(18deg) scale(.25); opacity: 0; }
}
.flight__star { position: absolute; width: 10px; height: 10px; background: #ffe58a; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: twinkle 1.6s ease-in-out infinite; }
.flight__star.s1 { left: 58%; top: 40px; animation-delay: 1.2s; }
.flight__star.s2 { left: 70%; top: 10px; animation-delay: 1.6s; }
.flight__star.s3 { left: 40%; top: 20px; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.4); } }
.letter-view { max-width: 800px; margin: 0 auto; }

/* ==========================================================================
   Волшебная отправка
   ========================================================================== */
.scene { display: block; width: 100%; height: auto; border-radius: 14px; }
.offer { position: relative; margin-top: 22px; padding: 26px; border-radius: var(--radius); background: var(--card); text-align: left; box-shadow: var(--shadow); border: 2px solid var(--gold); }
.offer::before { content: "Новинка"; position: absolute; top: -13px; left: 24px; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.offer--done::before { content: none; }
.offer h3 { margin: 4px 0 14px; font-family: var(--font-head); font-size: 32px; color: var(--ink); }
.offer__preview { margin: 0 0 14px; }
.offer p { color: var(--ink-soft); }
.offer__list { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 8px; }
.offer__list li { position: relative; padding-left: 30px; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.journey { max-width: 800px; margin: 0 auto; }
.journey__now { margin: 0; background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.journey__now figcaption { padding: 16px 10px 6px; }
.journey__now h2 { margin: 0 0 6px; font-size: 34px; color: var(--red); }
.journey__now p { margin: 0; font-size: 19px; color: var(--ink-soft); }
.journey__next { text-align: center; font-size: 17px; margin: 22px 0; }
.journey__final { margin: 22px 0; }
.journey__note { text-align: center; margin-top: 22px; }
.timeline { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.timeline__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: var(--card); border-radius: var(--radius-sm); padding: 14px 10px; color: var(--muted); font-size: 14px; box-shadow: var(--shadow-sm); }
.timeline__dot { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e6ebf3; font-weight: 800; }
.timeline__item.is-open { color: var(--ink); }
.timeline__item.is-open .timeline__dot { background: var(--green); color: #fff; }
.timeline__item.is-current { outline: 2px solid var(--gold); }
.timeline__item.is-current .timeline__dot { background: var(--gold); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
  .hero--home { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin: 0 auto; }
  .article-cards { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .promo__text { padding: 4px 8px 12px; }
}
@media (max-width: 720px) {
  .how { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { flex-direction: row; text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .logo { font-size: 19px; white-space: nowrap; gap: 8px; }
  .logo__icon { width: 22px; height: 22px; }
  .site-nav__cta { padding: 6px 12px; font-size: 14px; white-space: nowrap; }
  .site-header { padding: 14px 16px; }
  .hero--home { padding-top: 8px; }
  .hero__actions .btn { width: 100%; }
  .hero__art { display: none; }
  .trust { flex-direction: column; gap: 8px; }
  .article-cards { grid-template-columns: 1fr; }
  .parent-box { padding: 20px; }
  .blank { padding: 8px; }
  .blank--tale, .blank--classic { padding: 16px; }
  .blank__frame { padding: 22px 14px 16px; }
  .blank--tale .blank__frame::before, .blank--tale .blank__frame::after { width: 28px; height: 36px; top: 8px; }
  .blank__text, .blank__textarea, .blank__sign, .blank__sign--edit input[type=text], .blank__sign--edit select { font-size: 23px; }
  .blank__sign--edit { justify-content: flex-start; }
  .blank__sign--edit input[type=text] { width: 7.5em; }
  .gender { font-size: 20px; }
  .picker__option { font-size: 13px; }
  .picker__swatch { height: 44px; }
}

/* ==========================================================================
   PDF (A4)
   ========================================================================== */
body.pdf { background: #fff; }
.blank--print { width: 210mm; height: 297mm; border-radius: 0; box-shadow: none; padding: 12mm; display: flex; }
.blank--print.blank--tale { box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 10px var(--gold); }
.blank--print.blank--classic { box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 11px #fff, inset 0 0 0 14px var(--green); }
.blank--print .blank__frame { flex: 1; display: flex; flex-direction: column; padding: 14mm 14mm 10mm; border-radius: 6px; }
.blank--print .blank__text { flex: 1; font-size: 25px; }
.blank--print.blank--long { --line: 1.75rem; }
.blank--print.blank--long .blank__text { font-size: 21px; }
.blank--empty .blank__text { flex: 1; }
.blank__fill { display: inline-block; width: 60mm; border-bottom: 1.5px solid rgba(31,42,68,.45); height: 1em; vertical-align: baseline; }
.blank__fill--short { width: 25mm; }

/* ==========================================================================
   Ответ от Деда Мороза
   ========================================================================== */
.blank--reply { --paper: #fffaf0; --accent: var(--red); background: #fffaf0; box-shadow: var(--shadow-lg), inset 0 0 0 5px var(--gold), inset 0 0 0 9px #fffaf0, inset 0 0 0 11px var(--red); padding: 24px; }
.blank--reply .blank__frame { background: radial-gradient(circle at 50% 0, #fffdf6, #fbf0d8); }
.reply__body { font-family: var(--font-hand); font-size: 25px; line-height: 1.45; color: #1d2b5a; }
.reply__body p { margin: 0 0 .7em; text-indent: 1.2em; }
.reply__veil { filter: blur(6px); user-select: none; pointer-events: none; opacity: .75; }
.reply__lock { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-weight: 700; color: var(--red-dark); }
.reply__sign { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; font-family: var(--font-hand); font-size: 28px; color: #1d2b5a; text-align: right; }
.reply__sign p { margin: 0; line-height: 1.2; }
.seal { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d4434b, var(--red) 55%, var(--red-dark)); box-shadow: 0 0 0 4px rgba(179, 38, 46, .18), inset 0 -3px 6px rgba(0, 0, 0, .25); transform: rotate(-12deg); }
.seal svg { width: 34px; height: 34px; }
.blank--print.blank--reply { box-shadow: inset 0 0 0 5px var(--gold), inset 0 0 0 9px #fffaf0, inset 0 0 0 11px var(--red); }
.blank--print .reply__body { flex: 1; font-size: 24px; }
.blank--print.blank--long .reply__body { font-size: 20px; }

.blank--diploma { --paper: #fffdf6; background: #fffdf6; box-shadow: var(--shadow-lg), inset 0 0 0 8px var(--red), inset 0 0 0 14px #fffdf6, inset 0 0 0 16px var(--gold); padding: 30px; text-align: center; }
.blank--diploma .blank__frame { display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #fffdf6, #f8eccf); }
.diploma__title { font-family: var(--font-title); font-weight: 400; color: var(--red); font-size: 96px; margin: 40px 0 10px; }
.diploma__for { font-size: 22px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0; }
.diploma__name { font-family: var(--font-hand); font-weight: 700; font-size: 72px; color: #1d2b5a; margin: 10px 0 20px; }
.diploma__text { font-family: var(--font-hand); font-size: 30px; color: #1d2b5a; line-height: 1.4; margin: 0 0 40px; }
.blank--diploma .reply__sign { justify-content: center; }
.blank--print.blank--diploma { box-shadow: inset 0 0 0 8px var(--red), inset 0 0 0 14px #fffdf6, inset 0 0 0 16px var(--gold); }

.illustration-page { width: 210mm; height: 297mm; display: flex; align-items: center; justify-content: center; background: #fffaf0; }
.illustration-page__frame { width: 180mm; text-align: center; }
.illustration-page__frame .scene { border-radius: 10px; box-shadow: 0 0 0 4px var(--gold); }
.illustration-page__caption { font-family: var(--font-hand); font-size: 34px; color: #1d2b5a; margin: 18px 0 0; }

.constructor { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.constructor__side .parent-box { margin-top: 0; margin-bottom: 18px; }
.constructor textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1.5px solid #cfd6e3; border-radius: var(--radius-sm); resize: vertical; }
.constructor textarea:focus { border-color: var(--night-500); box-shadow: 0 0 0 4px rgba(42, 85, 148, .15); outline: none; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 10px 0 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: #fff7f6; }
.choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: 0 0 auto; }
.offer-buy__total { font-size: 20px; margin: 16px 0 0 !important; text-align: right; }
.offer-buy__total strong { color: var(--red); font-size: 26px; }
.alert--soft { background: #fff6e0; color: #7a5a12; font-weight: 600; }
.offer--reply { border-color: var(--red); }
@media (max-width: 900px) { .constructor { grid-template-columns: 1fr; } }

/* ==========================================================================
   Адвент-календарь
   ========================================================================== */
.hero__actions--center { justify-content: center; }
.advent-samples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.advent-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.advent-card__day { position: absolute; top: -12px; left: 18px; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 18px; box-shadow: var(--shadow-sm); }
.advent-card h3 { margin: 12px 0 8px; font-size: 19px; }
.advent-card__intro { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.advent-card__task { margin: 0; padding: 10px 12px; background: #fbf4e3; border-radius: 10px; font-weight: 600; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.select { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 18px; padding: 13px 12px; border: 1.5px solid #cfd6e3; border-radius: var(--radius-sm); background: #fff; }
.gender--form { margin: 14px 0 4px; font-size: 17px; font-family: var(--font-ui); }
.gender--form span { padding: 6px 16px; }
.gender--form input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }

.advent { max-width: var(--container); margin: 0 auto; }
.advent-grid { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.door { border-radius: var(--radius-sm); min-height: 96px; }
.door__locked { height: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--night-700), var(--night-500)); color: #cfe0f7; }
.door__locked .door__num { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: #fff; opacity: .9; }
.door__when { font-size: 13px; }
.door--open details { height: 100%; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.door--open summary { list-style: none; cursor: pointer; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 96px; }
.door--open summary::-webkit-details-marker { display: none; }
.door--open .door__num { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.door__title { font-weight: 700; font-size: 15px; }
.door--today details { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(212, 166, 58, .2); }
.door details[open] { grid-column: 1 / -1; }
.door:has(details[open]) { grid-column: 1 / -1; }
.door__body { padding: 0 16px 16px; }
.door__body p { margin: 0 0 10px; }
.door__task { padding: 10px 12px; background: #fbf4e3; border-radius: 10px; }
.advent__note { text-align: center; }

/* Карточки для печати: 6 на странице А4 */
.cards-page { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 0; width: 190mm; height: 277mm; break-after: page; }
.cards-page:last-child { break-after: auto; }
.print-card { position: relative; border: 1px dashed #b9b2a2; padding: 12mm 9mm 8mm; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 0, #fffdf6, #fbf1dc); }
.print-card__day { position: absolute; top: 6mm; right: 8mm; font-family: var(--font-title); font-size: 46px; color: var(--red); line-height: 1; }
.print-card__title { font-family: var(--font-head); font-size: 22px; margin: 6mm 0 4mm; color: var(--ink); padding-right: 16mm; }
.print-card__task { flex: 1; font-family: var(--font-hand); font-size: 23px; line-height: 1.3; color: #1d2b5a; margin: 0; }
.print-card__sign { margin: 4mm 0 0; font-size: 11px; color: var(--muted); text-align: right; }
@media (max-width: 720px) { .advent-samples { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* Шапка: без переносов; на средних экранах прячем «Статьи», на узких — всё, кроме кнопки */
.logo, .site-nav a { white-space: nowrap; }
@media (max-width: 860px) { .site-nav a[href="/stati"] { display: none; } }
@media (max-width: 640px) { .site-nav a[href="/advent"] { display: none; } }
