/* ── Токены ──────────────────────────────────────────────── */
:root {
  --c-bg:           #f8f5f1;
  --c-surface:      #ffffff;
  --c-surface-2:    #f2ece4;
  --c-border:       #e0d4c6;
  --c-text:         #1a140e;
  --c-text-muted:   #6b5a4a;
  --c-text-faint:   #a08878;
  --c-accent:       oklch(52% .16 42);
  --c-accent-soft:  oklch(94% .06 42);
  --c-accent-dark:  oklch(36% .14 42);
  --c-accent-hover: oklch(46% .17 42);
  --c-success:      oklch(48% .14 148);
  --c-warn:         oklch(62% .18 72);

  --sh-xs: 0 1px 2px rgba(0,0,0,.06);
  --sh-sm: 0 1px 4px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  --sh-md: 0 4px 16px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
  --sh-lg: 0 12px 40px rgba(0,0,0,.14);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;
}

/* ── Сброс ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Навигация ───────────────────────────────────────────── */
.site-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--sh-xs);
}
.nav-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: var(--sp-1);
  padding: 0 var(--sp-6);
  overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-weight: 800; font-size: .95rem;
  color: var(--c-text); white-space: nowrap;
  margin-right: var(--sp-4); padding: var(--sp-4) 0;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; color: var(--c-accent); }
.nav-logo span { font-size: 1.3rem; }
.nav-link {
  display: block; padding: 14px var(--sp-3);
  font-size: .875rem; font-weight: 500;
  color: var(--c-text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-accent); border-bottom-color: var(--c-accent);
  text-decoration: none;
}
.nav-pelmen {
  margin-left: auto;
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--c-accent-soft);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: .8rem; font-weight: 600;
  color: var(--c-accent-dark);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}
.nav-pelmen:hover { background: #e8d5c4; text-decoration: none; color: var(--c-accent-dark); }

/* ── Контейнер ───────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 var(--sp-6); }

/* ── Типографика секций ──────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-2);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
  line-height: 1.2; margin-bottom: var(--sp-5);
}
.section-lead {
  font-size: 1.05rem; color: var(--c-text-muted);
  max-width: 640px; margin-bottom: var(--sp-10); line-height: 1.7;
}
section { padding: var(--sp-16) 0; }
section + section { border-top: 1px solid var(--c-border); }

/* ── Карточки ────────────────────────────────────────────── */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-6); box-shadow: var(--sh-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

/* ── Теги ────────────────────────────────────────────────── */
.tag {
  display: inline-block; background: var(--c-accent-soft);
  color: var(--c-accent-dark); border-radius: 999px;
  padding: 3px 10px; font-size: .76rem; font-weight: 600; margin: 2px;
}

/* ── Кнопки ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 22px; border-radius: var(--r-md);
  font-size: .9rem; font-weight: 600; transition: all .15s;
  text-decoration: none; border: none; cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.btn-primary {
  background: var(--c-accent); color: #fff;
}
.btn-primary:hover { background: var(--c-accent-hover); text-decoration: none; color: #fff; }
.btn-ghost {
  background: transparent; color: var(--c-accent);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover { border-color: var(--c-accent); background: var(--c-accent-soft); text-decoration: none; }

/* ── Подвал ──────────────────────────────────────────────── */
.site-footer {
  background: var(--c-text); color: rgba(255,255,255,.55);
  padding: var(--sp-10) var(--sp-6); margin-top: var(--sp-16);
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: var(--sp-8); justify-content: space-between;
}
.footer-col { min-width: 160px; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: var(--sp-4); }
.footer-col a { display: block; color: rgba(255,255,255,.55); font-size: .875rem; margin-bottom: var(--sp-2); }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { max-width: 960px; margin: var(--sp-8) auto 0; padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; }
.footer-bottom strong { color: rgba(255,255,255,.8); }

/* ── Анимации ────────────────────────────────────────────── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.18)} 100%{transform:scale(1)} }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes pelmenFly {
  0%   { opacity:1; transform: translate(0,0) rotate(0deg) scale(1); }
  100% { opacity:0; transform: translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(.4); }
}
@keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-6deg)} 75%{transform:rotate(6deg)} }
@keyframes glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(192,98,42,.4); }
  50%     { box-shadow: 0 0 0 16px rgba(192,98,42,0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: var(--sp-12) 0; }
  .container { padding: 0 var(--sp-4); }
  .nav-inner { padding: 0 var(--sp-4); }
  .nav-pelmen { display: none; }
}
