/* ── нелепо · общие стили (tokens, header, footer, typography) ── */
:root {
  --cream: #F1E6D0;
  --paper: #E8DBC8;
  --paper-deep: #DBC9AE;
  --ink: #1A1714;
  --ink-soft: #2A241D;
  --salat: #B6E635;
  --salat-deep: #9DCB1F;
  --yellow: #F5D43A;
  --pink: #F4C9CE;
  --pink-deep: #E8A6AE;
  --moss: #4A6B2E;
  --red: #D9352C;
  --blue: #2A5DBC;
  --lilac: #A8B8E8;

  --serif: 'Caveat', 'Caveat Brush', cursive;
  --brush: 'Caveat Brush', 'Caveat', cursive;
  --script: 'Marck Script', 'Caveat', cursive;
  --ui: 'Onest', system-ui, sans-serif;

  --r-card: 18px;
  --r-pill: 999px;
}

*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--ui);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>"),
    radial-gradient(circle at 20% 10%, rgba(0,0,0,0.04), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.03), transparent 50%);
  overflow-x: hidden;
  cursor: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ── Header ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(241, 230, 208, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px dashed rgba(26, 23, 20, 0.25);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 0.85;
  color: var(--ink);
  letter-spacing: -1px;
  transform: rotate(-3deg);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.logo .dot {
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-6px);
}
.logo .o-eye { position: relative; display: inline-block; }
.logo .o-eye::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: blink 5s infinite;
}
@keyframes blink {
  0%, 92%, 96%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  94% { transform: translate(-50%, -50%) scaleY(0.1); }
}

.nav {
  display: flex; gap: 4px; align-items: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}
.nav a {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: background .2s, transform .2s;
  line-height: 1;
}
.nav a:hover { background: var(--yellow); transform: rotate(-2deg); }
.nav a.active { background: var(--ink); color: var(--cream); }

.basket {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  transition: transform .2s, background .2s;
}
.acct-link {
  margin-left: auto; margin-right: 14px;
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--ink-soft); padding: 6px 4px;
}
.acct-link:hover { color: var(--ink); text-decoration: underline; text-decoration-style: wavy; }
.basket:hover { background: var(--yellow); transform: rotate(-2deg) translateY(-2px); }
.basket .count {
  background: var(--red);
  color: var(--cream);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
}

/* ── Page header (страничные заголовки) ── */
.page-head {
  padding: 56px 0 32px;
  position: relative;
}
.page-crumb {
  font-family: var(--serif);
  font-size: 24px;
  color: rgba(26, 23, 20, 0.55);
  margin-bottom: 6px;
}
.page-crumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-style: wavy; }
.page-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -2px;
  margin: 0;
}
.page-title .accent { color: var(--red); display: inline-block; transform: rotate(-2deg); }
.page-sub {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 12px 0 0;
  line-height: 1.1;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  margin-top: 80px;
  padding: 60px 0 40px;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--salat) 0 22px, var(--yellow) 22px 44px, var(--red) 44px 66px, var(--cream) 66px 88px);
}
.foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.foot .logo { color: var(--cream); }
.foot h4 { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; font-weight: 600; }
.foot ul li { font-family: var(--ui); font-size: 15px; padding: 4px 0; opacity: 0.85; }
.foot ul li a:hover { color: var(--yellow); text-decoration: underline; text-decoration-style: wavy; }
.foot p { font-family: var(--ui); font-size: 14px; line-height: 1.5; opacity: 0.7; margin: 0; }
.foot-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1.5px dashed rgba(241, 230, 208, 0.25);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ui);
  font-size: 13px;
  opacity: 0.6;
}

/* ── Утиль ── */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  transition: transform .2s, background .2s;
}
.btn-pill:hover { background: var(--yellow); transform: rotate(-2deg) translateY(-2px); }
.btn-pill.solid { background: var(--ink); color: var(--cream); }
.btn-pill.solid:hover { background: var(--red); color: var(--cream); }

.tape {
  position: absolute;
  width: 90px; height: 28px;
  background: rgba(245, 212, 58, 0.78);
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.12);
}

.scroll-marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.scroll-marquee span {
  display: inline-block;
  padding-right: 60px;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* кошка-курсор для интерактивных элементов */
.paw-cursor { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='20' r='8' fill='%23F4C9CE'/><circle cx='10' cy='10' r='4' fill='%23F4C9CE'/><circle cx='22' cy='10' r='4' fill='%23F4C9CE'/><circle cx='6' cy='17' r='3' fill='%23F4C9CE'/><circle cx='26' cy='17' r='3' fill='%23F4C9CE'/></svg>") 16 16, pointer; }

/* responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-title { font-size: 64px; }
  .wrap { padding: 0 20px; }
}

/* вход / админка рядом с корзинкой */
.admin-link { font-family: var(--serif); font-size: 18px; margin-right: 12px; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; color: var(--ink); }
.admin-link.on { text-decoration: none; padding: 8px 16px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--cream); }
