/* liliyalab.ru, меловой стиль. Правила: DESIGN.md подарков. Исходники рисунков: site-new-src/draw.py */
@font-face { font-family: Unbounded; src: url(fonts/unbounded.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/montserrat.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Caveat; src: url(fonts/caveat.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #08100E; --card: #12221F; --line: #2E4944;
  --chalk: #F6EEE4; --soft: #CDC6BA; --quiet: #9A958B;
  --orange: #FF6F3C; --mint: #5EEAD4; --green: #8FBF7A; --yellow: #FACC15;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --display: "Unbounded", "Montserrat", system-ui, sans-serif;
  --pad: 60px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  background: var(--bg) radial-gradient(rgba(246, 238, 228, .09) 1px, transparent 1.4px) 0 0 / 73px 73px;
  color: var(--chalk); font: 500 18px/1.6 var(--sans); overflow-x: clip; min-width: 320px;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.defs-svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--orange); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.hand { font-family: var(--hand); font-weight: 700; }
svg .stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig-svg { display: block; width: 100%; height: auto; overflow: visible; }
.draw-js .dr svg, .draw-js .dr-hero svg { opacity: 0; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.top__in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px var(--pad); }
.brand { font: 700 20px var(--display); }
.brand i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); margin-right: 10px; vertical-align: 2px; }
.nav { display: flex; gap: 30px; color: var(--soft); font-size: 15px; font-weight: 500; }
.nav a { padding: 8px 0; white-space: nowrap; }
.nav a:hover { color: #fff; }

/* ---------- меловые рамки и кнопки ---------- */
.cbox, .chalk-box { position: relative; isolation: isolate; border-radius: 22px 28px 20px 26px / 26px 20px 28px 22px; }
.cbox::before, .chalk-box::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 2.6px solid rgba(246, 238, 228, .85); border-radius: inherit; filter: url(#chalk-ui); pointer-events: none; }
.cbox--hot::before { border-color: var(--orange); }
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font: 800 16px var(--sans); border-radius: 14px; text-align: center; cursor: pointer; border: 0; background: none; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px 12px 15px 11px / 12px 15px 11px 14px; pointer-events: none; }
.btn--main { color: var(--bg); }
.btn--main::before { background: var(--orange); filter: url(#chalk-fill); }
.btn--chalk { color: var(--chalk); }
.btn--chalk::before { border: 2.2px solid rgba(246, 238, 228, .85); filter: url(#chalk-ui); }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--big { min-height: 64px; padding: 0 42px; font-size: 19px; }
.hl { font: 700 28px/1 var(--hand); color: var(--orange); display: inline-block; padding: 6px 0; }
.hl:hover { color: #ff8a5e; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- подвал ---------- */
.foot { border-top: 0; background: url(sep.svg) top / 600px 16px repeat-x; }
.foot__in { max-width: 1320px; margin: 0 auto; padding: 34px var(--pad) 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--soft); font-size: 15px; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot a { padding: 8px 0; }
.foot a:hover { color: #fff; }


@media (max-width: 1100px) { :root { --pad: 32px; } .nav { gap: 18px; } }
@media (max-width: 860px) { .nav { display: none; } .btn--sm { white-space: nowrap; } }
@media (max-width: 700px) {
  :root { --pad: 16px; }
  .top__in { padding: 10px 16px; gap: 10px; }
  .nav { display: none; }
  .brand { font-size: 17px; }
  .btn--sm { padding: 0 14px; font-size: 14px; }
  .foot__in { padding: 26px 16px 30px; }
}
