/* Грибник — сайт. Дизайн-токены из приложения. Шрифт Golos Text (Google Fonts). */
:root {
  --accent: #ef9b1c;
  --accent-text: #2b1d04;
  --accent-pressed: #c97c08;
  --accent-deep: #d07f08;
  --brand: #2e4632;
  --dark-green: #22331f;
  --heading: #26361f;
  --success: #4c8a3f;
  --success-dark: #7fbf6e;
  --bg: #f7f3e8;
  --card: #ffffff;
  --chip: #f3ebd7;
  --chip2: #e7dfc6;
  --border: #e4dcc4;
  --text: #3a4536;
  --text-2: #5b6650;
  --text-3: #a39b84;
  --dark-bg: #131b14;
  --dark-text: #f6f2e7;
  --dark-2: #b8c2ae;
  --dark-3: #9fb294;
  --track: #f2a33c;
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-pressed); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,232,.82);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--heading); }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav a { font-weight: 600; font-size: 16px; color: var(--text-2); }
.nav a:hover { color: var(--accent-pressed); }
.nav .btn-sm { color: var(--accent-text); }

/* Language switcher */
.lang { display: flex; gap: 4px; align-items: center; }
.lang a { font-weight: 700; font-size: 13px; color: var(--text-3); padding: 5px 9px; border-radius: 9px; }
.lang a:hover { color: var(--accent-pressed); }
.lang a.active { background: var(--brand); color: #fff; }
.site-footer .lang a { color: var(--dark-3); }
.site-footer .lang a.active { background: rgba(246,242,231,.14); color: var(--dark-text); }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--text-3); letter-spacing: .02em; margin-top: -3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 26px; border-radius: 18px;
  font-weight: 700; font-size: 19px; cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 8px 24px rgba(200,120,10,.35); }
.btn-primary:hover { color: var(--accent-text); filter: brightness(1.03); }
.btn-sm { height: 44px; padding: 0 18px; border-radius: 12px; font-size: 16px; background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--brand); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px; border-radius: 16px;
  background: var(--brand); color: var(--dark-text);
}
.store:hover { color: var(--dark-text); filter: brightness(1.08); }
.store svg { width: 26px; height: 26px; flex: none; }
.store .s-top { font-size: 12px; opacity: .8; line-height: 1.1; }
.store .s-big { font-size: 18px; font-weight: 700; line-height: 1.15; }

/* Footer */
.site-footer { background: var(--dark-green); color: var(--dark-3); margin-top: 80px; }
.site-footer .container { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.site-footer .f-brand { font-weight: 600; font-size: 16px; color: var(--dark-3); }
.site-footer nav { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a { font-weight: 500; font-size: 15px; color: var(--dark-3); }
.site-footer nav a:hover { color: var(--accent); }

/* Prose (legal pages) */
.prose-wrap { max-width: 780px; margin: 0 auto; padding: 56px 32px 24px; }
.prose h1 { font-size: 40px; font-weight: 800; color: var(--heading); margin-bottom: 8px; }
.prose .updated { color: var(--text-3); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 23px; font-weight: 700; color: var(--heading); margin: 34px 0 12px; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--heading); }
.prose a { text-decoration: underline; }
.back-home { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--accent-pressed); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto;
  background: var(--dark-green); color: var(--dark-text);
  border: 1px solid rgba(246,242,231,.14); border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 16px 48px rgba(0,0,0,.35);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie-banner p { flex: 1 1 320px; font-size: 15px; color: var(--dark-2); line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .actions { display: flex; gap: 10px; }
.cookie-banner button { height: 44px; padding: 0 20px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border: none; }
.cookie-accept { background: var(--accent); color: var(--accent-text); }
.cookie-decline { background: rgba(246,242,231,.1); color: var(--dark-text); border: 1px solid rgba(246,242,231,.2); }
@media (max-width: 520px) { .cookie-banner .actions { width: 100%; } .cookie-banner button { flex: 1; } }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { padding: 0 20px; }
  .nav { gap: 14px; }
  .nav > a:not(.btn-sm) { display: none; }
  .prose h1 { font-size: 32px; }
}
