@font-face { font-family: Nunito; font-weight: 400; font-display: swap; src: url(fonts/nunito-Regular.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url(fonts/nunito-Bold.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(fonts/nunito-ExtraBold.woff2) format("woff2"); }

:root {
  --navy: #1f2d5a; --navy2: #2b3d78; --ink: #24305a; --soft: #5a6690;
  --snow: #eef6fc; --line: #d6e6f3; --berry: #c2304f; --berry2: #a8263f;
  --sun: #ffd25a; --mint: #2fb48f; --lilac: #8f6fd8; --card: #ffffff;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--snow); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--berry2); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- эффекты ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
/* сани: полёт и перетаскивание ведёт fx.js (один requestAnimationFrame со снегом). Слой не ловит клики,
   ловят только сами сани, пока летят. */
.sleigh { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.sleigh svg { position: absolute; top: 0; left: 0; width: 330px; height: auto; opacity: 0; pointer-events: none;
  will-change: transform; transform: translate(-9999px, 0); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.sleigh svg.on { opacity: 1; pointer-events: auto; }
.sleigh svg.grab { cursor: grabbing; }
.sleigh .deer { animation: bob .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.sleigh svg > g:nth-of-type(3) .deer { animation-delay: .17s; }
.sleigh svg > g:nth-of-type(4) .deer { animation-delay: .34s; }
@keyframes bob { from { transform: translateY(-1.5px); } to { transform: translateY(1.5px); } }
.sleigh .spark { animation: spark 1.2s ease-out infinite; }
.sleigh .spark:nth-child(2) { animation-delay: .4s; } .sleigh .spark:nth-child(3) { animation-delay: .8s; }
@keyframes spark { from { opacity: .95; } to { opacity: 0; transform: translate(-14px, 6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sleigh, #fx { display: none; }
  .btn { transition: none !important; }
}

/* ---------- шапка ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, #3e5bb0 0%, transparent 60%),
              linear-gradient(180deg, #16214a 0%, #24397a 55%, #3a5aa8 100%); }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -70px; height: 140px;
  background: var(--snow); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero .wrap:not(.top) { position: relative; z-index: 4; padding-top: 34px; padding-bottom: 120px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .top { padding-top: 22px; padding-bottom: 0; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 4;
  font-weight: 700; font-size: 15px; opacity: .92; }
.top a { color: #fff; text-decoration: none; }
.badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -.5px; }
h1 em { font-style: normal; color: var(--sun); }
.lead { font-size: clamp(17px, 2.1vw, 20px); margin: 0 0 24px; color: #e3ecff; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.price-note { font-size: 15px; color: #cfdcff; margin-top: 14px; }
.cover { position: relative; justify-self: center; width: min(360px, 100%); }
.cover { transform: rotate(2.5deg); }
.cover img { border-radius: 10px; box-shadow: 0 24px 60px rgba(5, 10, 40, .55); }
.cover .tag { position: absolute; left: 34%; bottom: 1.4%; background: var(--sun); color: var(--navy);
  font-weight: 800; font-size: 18px; line-height: 1.2; padding: 5px 12px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }

/* ---------- кнопки ---------- */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 17px; border: 0; cursor: pointer; text-decoration: none;
  padding: 15px 26px; border-radius: 99px; transform: translate(var(--mx), var(--my));
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background .2s; }
.btn-main { background: var(--berry); color: #fff; box-shadow: 0 10px 24px rgba(194, 48, 79, .35); }
.btn-main:hover { background: var(--berry2); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-light { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- разделы ---------- */
section { position: relative; z-index: 2; padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 14px; color: var(--navy); font-weight: 800; }
.sub { color: var(--soft); margin: 0 0 28px; max-width: 46em; }
.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pages figure { margin: 0; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 8px 26px rgba(31,45,90,.10); }
.pages img { border-radius: 6px; aspect-ratio: 210 / 297; width: 100%; height: auto; }
.pages figcaption { font-size: 14px; color: var(--soft); padding: 8px 4px 2px; }
.center { text-align: center; margin-top: 26px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 6px 22px rgba(31,45,90,.07); }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--soft); font-size: 16px; }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--sun); color: var(--navy); margin-bottom: 12px; }

.parents { background: #fff; }
.parents .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.parents ul { margin: 0; padding-left: 20px; }
.parents li { margin: 0 0 8px; }
.note { background: #fff7dc; border-radius: 14px; padding: 14px 18px; margin-top: 16px; font-size: 16px; }

/* ---------- форма ---------- */
.order { background: linear-gradient(180deg, var(--snow), #e2effa); }
.form { background: #fff; border-radius: 24px; padding: 30px; box-shadow: 0 14px 40px rgba(31,45,90,.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: 860px; margin: 0 auto; }
.form .full { grid-column: 1 / -1; }
label.f { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; color: var(--navy); }
.hint { font-size: 14px; color: var(--soft); margin-top: 5px; }
input[type=text], input[type=email] { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fbfdff; color: var(--ink); }
input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(143,111,216,.18); }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; }
.seg input:checked + span { border-color: var(--lilac); background: #f3eefe; color: var(--navy); }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }
.coverline { background: var(--snow); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; }
.coverline input { width: 9.5em; padding: 6px 10px; font-weight: 800; color: var(--berry2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--berry); }
.pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border-top: 1.5px solid var(--line); padding-top: 18px; }
.sum { font-size: 30px; font-weight: 800; color: var(--navy); }
.sum small { display: block; font-size: 14px; font-weight: 400; color: var(--soft); }
.err { color: #b3123d; font-weight: 700; min-height: 1em; }
.progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; display: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--mint); transition: width .2s; }

.faq details { background: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(31,45,90,.06); }
.faq summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.faq p { margin: 10px 0 0; color: var(--soft); }

footer { position: relative; z-index: 2; background: var(--navy); color: #c9d4f5; font-size: 14px; padding: 30px 0; }
footer a { color: #fff; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ---------- документы и «спасибо» ---------- */
.doc { background: #fff; border-radius: 20px; padding: 32px; margin: 30px auto 50px; max-width: 820px; box-shadow: 0 8px 30px rgba(31,45,90,.08); }
.doc h1 { color: var(--navy); font-size: 30px; }
.doc h2 { font-size: 20px; margin-top: 26px; }
.doc .ed { color: var(--soft); font-size: 15px; }
.simplehead { background: var(--navy); padding: 16px 0; }
.simplehead a { color: #fff; text-decoration: none; font-weight: 800; }
.status { text-align: center; }
.status .big { font-size: 26px; font-weight: 800; color: var(--navy); margin: 10px 0; }
.spinner { width: 46px; height: 46px; margin: 10px auto; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--berry); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero .wrap:not(.top) { grid-template-columns: 1fr; padding-bottom: 100px; gap: 26px; }
  .cover { width: min(270px, 80%); }
  .cover .tag { font-size: 13px; padding: 2px 7px; border-radius: 7px; bottom: 1.2%; left: 35%; }
  .pages { grid-template-columns: repeat(2, 1fr); }
  .grid3, .parents .cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .sleigh svg { width: 220px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn { width: 100%; }
  .cta { flex-direction: column; align-items: stretch; }
  .doc { padding: 22px; margin: 16px; }
}

/* плашка про cookie (как на ty-biznesmen.ru) */
.ck { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: #fff; color: var(--ink);
      border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(15,25,60,.25); display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ck[hidden] { display: none; }
.ck p { margin: 0; flex: 1; }
.ck .btn { padding: 10px 18px; font-size: 15px; width: auto; }
.price-note b { color: #fff; font-weight: 700; }

/* 12.11.2026: два варианта книги - плашка на первом экране и сравнение в блоке образца */
.two { display: inline-block; margin: -8px 0 22px; padding: 8px 16px; border-radius: 12px; background: #ffd25a; color: #1f2d5a; font-size: 17px; font-weight: 700; }
.two b { font-weight: 800; }
.cmp-h { text-align: center; color: var(--navy); font-size: 22px; margin: 34px 0 14px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp figure { margin: 0; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 8px 26px rgba(31,45,90,.10); }
.cmp figcaption { font-size: 16px; color: var(--soft); margin: 2px 4px 10px; }
.cmp figcaption b { color: var(--navy); font-size: 18px; }
.cmp img { border-radius: 8px; width: 100%; height: auto; }
.grid4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cmp { grid-template-columns: 1fr; } .grid4 { grid-template-columns: 1fr; } }

/* 12.11.2026: оплата как в магазине программ - главная кнопка СБП, вторая «Картой или другим способом» */
.paybtns { display: flex; flex-direction: column; align-items: stretch; min-width: 300px; }
.pay-sbp { gap: 12px; }
.sbp-badge { height: 24px; width: auto; flex: none; display: block; }
.pay-hint { text-align: center; color: var(--soft); font-size: 14px; line-height: 1.4; margin: 8px 0 12px; }
.pay-any { font-size: 16px; }
@media (max-width: 420px) { .paybtns { min-width: 0; width: 100%; } .pay-sbp { font-size: 17px; } }
