/* Печаткино — стиль сайта (v2: Nunito, тёплая палитра, живые карточки) */
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-var-cyr.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito-var-lat.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+20AC, U+20BD, U+2026;
}

:root {
  --ink: #27355c;
  --accent: #1f3b73;
  --orange: #f57c00;
  --orange-dark: #d96d00;
  --bg: #fffaf2;
  --hero-bg: #faedc1;
  --card: #ffffff;
  --card-border: #efe7d6;
  --muted: #5a6a8c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: #ffd9a8; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px;
}
body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
main { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; }

.site-header {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 14px 20px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 242, .92);
  backdrop-filter: blur(8px);
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.35rem; font-weight: 800; color: var(--accent); text-decoration: none;
}
.logo img { width: 34px; height: 34px; }
.site-header nav a { margin-left: 18px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header nav a:hover { color: var(--orange); }

.dev-banner {
  background: #fff3cd; border: 1px solid #ffe69c; color: #664d03;
  padding: 8px 14px; border-radius: 10px; margin-bottom: 18px; font-size: .9rem;
}

/* ── герой ── */
.hero {
  display: flex; align-items: center; gap: 24px;
  background: var(--hero-bg); border-radius: 24px;
  padding: 36px 40px; margin-top: 6px;
}
.hero-text { flex: 1.15; }
.hero h1 { font-size: 2.3rem; font-weight: 800; color: var(--accent); line-height: 1.15; margin: 0 0 14px; }
.hero p { max-width: 440px; margin: 0 0 22px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mascot { flex: 0.85; text-align: center; }
.hero-mascot img { width: 100%; max-width: 330px; height: auto; }
.trust-row {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px;
  font-size: .92rem; font-weight: 700; color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ── кнопки ── */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 800; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: rgba(31, 59, 115, .07); }
.btn-big { padding: 14px 30px; font-size: 1.1rem; }
.btn-sample {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px dashed var(--orange); color: var(--orange-dark);
  padding: 10px 18px; border-radius: 999px; font-weight: 800; text-decoration: none;
  font-size: .95rem;
}
.btn-sample:hover { background: #fff4e5; }

/* ── бейджи и чипы ── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 800;
}
.b-amber { background: #ffe3c2; color: #8a4a00; }
.b-blue { background: #d9ecff; color: #0c447c; }
.b-green { background: #ddf3e4; color: #085041; }
.b-purple { background: #f3e3ff; color: #3c3489; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 4px; }
.chips .badge { font-size: .9rem; padding: 7px 16px; }

/* ── каталог ── */
.catalog h2, .why h2 { color: var(--accent); font-weight: 800; font-size: 1.6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(31, 59, 115, .06);
  display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 59, 115, .12); }
.card-media { position: relative; border-radius: 12px; overflow: hidden; }
.card-media img { width: 100%; display: block; }
.card-media .badge { position: absolute; left: 10px; top: 10px; }
.card h3 { margin: 12px 2px 4px; font-size: 1.08rem; font-weight: 800; color: var(--accent); }
.card .muted { margin: 0 2px 12px; font-size: .9rem; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.price.big { font-size: 1.9rem; }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.why-grid div {
  background: var(--card); padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--card-border);
}
.why-grid strong { color: var(--accent); }

/* ── страница товара ── */
.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; padding-top: 24px; }
.product-cover img.main-shot {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--card-border); box-shadow: 0 4px 18px rgba(31, 59, 115, .1);
  display: block;
}
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img {
  width: 64px; height: 88px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--card-border); cursor: pointer; display: block;
  background: #fff;
}
.thumbs img.active { border-color: var(--orange); }
.sample-box { margin-top: 16px; }
.product h1 { color: var(--accent); font-weight: 800; margin-top: 0; }
.subtitle { font-size: 1.1rem; color: var(--muted); }
.bullets li { margin-bottom: 6px; }
.buy-row { display: flex; align-items: center; gap: 22px; margin: 18px 0 8px; flex-wrap: wrap; }
.buy-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-form input[type="email"] {
  padding: 12px 16px; border-radius: 999px; border: 2px solid #d9d2bf;
  font-size: 1rem; min-width: 240px; font-family: inherit; background: #fff;
}
.buy-form input[type="email"]:focus { outline: none; border-color: var(--accent); }

.success { text-align: center; padding: 60px 0; }
.success h1 { color: var(--accent); font-weight: 800; }

.generator { text-align: center; }
.generator h1 { color: var(--accent); font-weight: 800; }
.gen-controls { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.gen-controls select { padding: 8px 14px; border-radius: 999px; border: 2px solid #d9d2bf; font-size: 1rem; font-family: inherit; background: #fff; }
#maze { max-width: 100%; height: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(31,59,115,.08); }

.legal { max-width: 760px; }
.legal h1 { color: var(--accent); font-weight: 800; }

.site-footer {
  border-top: 1px solid var(--card-border); margin-top: 40px; padding: 22px 20px;
  text-align: center; color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  main { padding: 0 14px 48px; }

  .site-header { padding: 10px 14px; }
  .logo { font-size: 1.15rem; gap: 7px; }
  .logo img { width: 28px; height: 28px; }
  .site-header nav { display: flex; gap: 14px; }
  .site-header nav a { margin-left: 0; font-size: .95rem; white-space: nowrap; }
  .hide-m { display: none; }

  .hero { flex-direction: column; padding: 26px 18px 22px; text-align: center; gap: 10px; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { padding: 12px 22px; font-size: 1rem; }
  .trust-row { justify-content: center; gap: 10px 16px; margin-top: 16px; font-size: .85rem; }
  .hero-mascot img { max-width: 210px; }

  .chips { margin: 20px 0 2px; }
  .chips .badge { font-size: .82rem; padding: 6px 13px; }

  .product { grid-template-columns: 1fr; gap: 22px; padding-top: 14px; }
  .product h1 { font-size: 1.45rem; }
  .price.big { font-size: 1.6rem; }
  .buy-row { gap: 12px; }
  .buy-form { width: 100%; }
  .buy-form input[type="email"] { flex: 1 1 100%; min-width: 0; }
  .buy-form .btn { width: 100%; text-align: center; }
  .thumbs img { width: 56px; height: 77px; }

  .why-grid div { padding: 14px; }
  .site-footer { font-size: .82rem; }
}
@media print {
  .site-header, .site-footer, .gen-controls, .no-print, .dev-banner { display: none !important; }
  body { background: #fff; }
  #maze { box-shadow: none; }
}
