/* ====== Б—К · «Экономия до 30%» (hand-drawn) — точная копия черновика ====== */
*, *::before, *::after { box-sizing: border-box; }

@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-600-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2030; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("fonts/caveat-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+2030; }

:root {
  --ink: #123a95; --ink-2: #1b4dd1; --ink-line: #16357a; --accent: #1b4dd1;
  --paper: #fbfaf5; --muted: #5b6a86;

  --q-blue: #1b4dd1; --q-blue-deep: #123a95; --q-blue-soft: #e7edfc; --q-blue-line: #b9c9f0;
  --q-ink: #17233f;
  --q-grad-btn: linear-gradient(180deg, #2f5fd6 0%, #1b4dd1 100%);
  --q-grad-header: linear-gradient(135deg, #2f5fd6 0%, #123a95 100%);
  --q-chat-bg: #f2f4fb; --q-radius: 22px; --q-font: Manrope, "Segoe UI", system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Caveat", "Comic Sans MS", cursive; color: var(--ink); margin: 0; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(680px 460px at 8% -3%, rgba(27,77,209,0.07) 0%, transparent 55%),
    radial-gradient(760px 560px at 103% 6%, rgba(27,77,209,0.06) 0%, transparent 52%),
    radial-gradient(820px 620px at 50% 108%, rgba(27,77,209,0.05) 0%, transparent 55%),
    var(--paper);
  background-attachment: fixed;
}
.wrap { width: 100%; max-width: 620px; margin: 0 auto; padding: 18px 16px 34px; }

/* ---- Полоса доверия с Lottie ---- */
.trust-strip { display: flex; align-items: center; gap: 13px; background: #fffdf7; border: 2px solid var(--ink-line); border-radius: 22px 14px 24px 12px / 12px 24px 14px 22px; padding: 10px 16px; margin-top: 4px; box-shadow: 3px 4px 0 rgba(18,58,149,0.14); transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease; }
.trust-strip:hover { transform: translate(-1px, -4px); box-shadow: 5px 8px 0 rgba(18,58,149,0.2); }
.ts-lottie { width: 48px; height: 48px; flex: 0 0 auto; }
.ts-lottie svg { display: block; }
.ts-text { font-size: 18px; font-weight: 600; color: var(--ink-2); line-height: 1.02; }
.ts-text b { display: block; color: var(--ink); font-weight: 700; font-size: 21px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---- Шапка ---- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 2px 2px 8px; }
.brand-logo { width: 100px; height: auto; flex: 0 0 auto; }
.brand-name { font-family: Manrope, system-ui, sans-serif; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.2px; }
.brand-sub { font-family: Manrope, system-ui, sans-serif; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }

/* ---- Герой ---- */
.hero { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 2px; margin: 4px 0 0; }
.hero-text { min-width: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.hero-text:hover { transform: translateY(-5px) rotate(-0.6deg); }
.hero-title { margin: 0; font-weight: 700; line-height: 0.9; letter-spacing: 0.1px; font-size: clamp(22px, 6.4vw, 42px); color: var(--ink); }
.hero-title .accent { color: var(--accent); font-size: 1.14em; display: inline-block; margin-top: 2px; }
.hero-sub { margin: 9px 0 0; font-size: clamp(17px, 4.5vw, 24px); font-weight: 600; line-height: 0.98; color: var(--ink-2); }
.hero-img { overflow: visible; }
.hero-img img {
  width: 122%; max-width: 122%; margin: 0 -11% 0 0; height: auto; display: block;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  -webkit-mask-image: radial-gradient(150% 128% at 50% 42%, #000 64%, rgba(0,0,0,0.3) 85%, transparent 100%);
  mask-image: radial-gradient(150% 128% at 50% 42%, #000 64%, rgba(0,0,0,0.3) 85%, transparent 100%);
}
.hero-img:hover img { transform: translateY(-6px) rotate(-0.8deg) scale(1.02); }

/* ---- Рукописная синяя кнопка-полоса ---- */
.cta-bar { position: relative; margin: 18px 0; width: 100%; border: none; cursor: pointer; background: transparent; padding: 0; font-family: "Caveat", "Comic Sans MS", cursive; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.cta-frame { position: absolute; inset: 0; background: linear-gradient(180deg, #2f5fd6 0%, #1b4dd1 100%); border: 2.5px solid var(--ink-line); border-radius: 26px 18px 28px 16px / 16px 28px 18px 26px; box-shadow: 4px 5px 0 rgba(18,58,149,0.32); }
.cta-frame::after { content: ""; position: absolute; inset: 4px; border: 1.4px solid rgba(255,255,255,0.55); border-radius: 18px 24px 14px 22px / 22px 14px 24px 18px; pointer-events: none; }
.cta-label { position: relative; z-index: 1; display: block; padding: 15px 20px; color: #fff; font-family: inherit; font-weight: 700; letter-spacing: 0.4px; font-size: clamp(22px, 6.2vw, 32px); line-height: 1; }
.cta-bar:hover { transform: translate(-1px, -1px); }
.cta-bar:hover .cta-frame { box-shadow: 6px 7px 0 rgba(18,58,149,0.38); }
.cta-bar:active { transform: translate(2px, 2px); }

/* ---- 4 рисованные карточки в ряд ---- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 26px; align-items: start; }
.benefit img { width: 100%; height: auto; display: block; transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
.benefit:hover img { transform: translateY(-7px) rotate(-1.6deg) scale(1.03); }
@media (max-width: 360px) { .benefits { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---- Заголовок раздела ---- */
.why-title { margin: 4px 0 14px; font-size: clamp(26px, 7vw, 38px); font-weight: 700; line-height: 0.98; text-align: center; color: var(--ink); text-wrap: balance; }

/* ---- 3 рисованные сцены в ряд ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.why-card { margin: 0; display: flex; flex-direction: column; align-items: center; }
.why-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.why-card:hover img { transform: translateY(-5px) scale(1.05) rotate(-1deg); }
.why-card figcaption { padding: 4px 2px 0; font-size: clamp(15px, 4vw, 20px); font-weight: 600; line-height: 1.0; text-align: center; color: var(--ink-2); }

/* ---- Футер ---- */
.site-foot { margin-top: 26px; padding-top: 24px; border-top: 2px solid rgba(18,58,149,0.14); font-family: Manrope, system-ui, sans-serif; color: var(--muted); line-height: 1.6; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.foot-brand { color: var(--ink); font-weight: 800; font-size: 15px; margin-bottom: 7px; }
.foot-about p { margin: 0; font-size: 12.5px; max-width: 34ch; }
.foot-h { color: var(--ink); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.foot-col p { margin: 0; font-size: 12.5px; }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--accent); text-decoration: underline; }
.foot-bottom { margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(18,58,149,0.10); font-size: 11.5px; text-align: center; }
@media (min-width: 560px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1.35fr 1fr 1.1fr; gap: 26px; } }

/* ---- Планшет ---- */
@media (min-width: 620px) {
  .wrap { max-width: 700px; }
}

/* ---- Десктоп ---- */
@media (min-width: 900px) {
  .wrap { max-width: 980px; padding: 26px 28px 56px; }
  .topbar { gap: 14px; padding: 4px 4px 14px; }
  .brand-logo { width: 120px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 14px; }

  .hero { grid-template-columns: 0.9fr 1.1fr; gap: 10px; margin-top: 8px; }
  .hero-title { font-size: 56px; }
  .hero-sub { font-size: 27px; margin-top: 14px; }

  .trust-strip { max-width: 700px; margin: 12px auto 0; padding: 13px 24px; gap: 16px; }
  .ts-lottie { width: 56px; height: 56px; }
  .ts-text { font-size: 21px; }
  .ts-text b { font-size: 25px; }

  .cta-bar { display: block; max-width: 640px; margin: 24px auto; }
  .cta-label { font-size: 34px; padding: 17px 24px; }

  .benefits { gap: 18px; margin: 12px 0 42px; }
  .why-title { font-size: 46px; margin: 12px 0 28px; }
  .why-grid { gap: 24px; }
  .why-card figcaption { font-size: 22px; }

  .site-foot { margin-top: 40px; font-size: 12.5px; }
}

/* ---- Широкий десктоп ---- */
@media (min-width: 1200px) {
  .wrap { max-width: 1040px; }
  .hero-title { font-size: 62px; }
}
