:root {
  --paper: #ffffff;
  --mist: #f4f3f0;
  --ink: #26170d;
  --ink-2: #6e5d50;
  --line: rgba(38, 23, 13, .12);
  --honey: #e8901c;
  --honey-text: #a85a07;       /* медовый для текста: контраст 4.9:1 на белом */
  --wax: #fff2dc;
  --leaf: #2f5d3a;
  --honey-color: #f2c350;      /* цвет мёда в банке, меняется JS */
  --radius-tile: 28px;
  --radius-field: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --header-h: 60px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Типографика ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
.h-display { font-size: clamp(40px, 6.6vw, 84px); letter-spacing: -.035em; line-height: 1.02; }
.h-section { font-size: clamp(30px, 4.4vw, 52px); }
.lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); max-width: 34em; margin: 20px 0 0; line-height: 1.45; }
.sub { color: var(--ink-2); margin: 14px 0 0; max-width: 40em; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .15s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3d2718; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: #f29d2c; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-wa { background: #0f7a43; color: #fff; }
.btn-wa:hover { background: #0c6838; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { color: var(--honey-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Флажки */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mist); position: relative; }
.lang button {
  position: relative; z-index: 1; width: 40px; height: 30px; border: 0; padding: 0; background: none;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center;
}
.lang button svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); opacity: .55; transition: opacity .2s; }
.lang button[aria-pressed="true"] svg { opacity: 1; }
.lang .pill {
  position: absolute; top: 3px; left: 3px; width: 40px; height: 30px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(38,23,13,.18); transition: transform .35s var(--ease-out);
}
.lang[data-lang="kz"] .pill { transform: translateX(40px); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { font-size: 28px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-jar { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-jar::after { /* мягкое свечение цветом мёда */
  content: ""; position: absolute; inset: 18% 6% 4%; z-index: -1; border-radius: 50%;
  background: var(--honey-color); filter: blur(60px); opacity: .35; transition: background-color .8s var(--ease-out);
}

/* Спектр */
.spectrum { margin-top: clamp(40px, 6vw, 72px); }
.spectrum-bar { display: flex; gap: 4px; height: 64px; }
.spectrum-bar button {
  flex: 1 1 0; border: 0; padding: 0; cursor: pointer; border-radius: 12px;
  background: var(--c); position: relative;
  transition: flex-grow .5s var(--ease-out), transform .2s;
}
.spectrum-bar button:first-child { border-radius: 20px 12px 12px 20px; }
.spectrum-bar button:last-child { border-radius: 12px 20px 20px 12px; }
.spectrum-bar button:hover { transform: translateY(-3px); }
.spectrum-bar button[aria-pressed="true"] { flex-grow: 3.2; }
.spectrum-bar button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--ink);
}
.spectrum-info { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 28px; min-height: 64px; }
.spectrum-info h2 { font-size: clamp(24px, 3vw, 34px); }
.spectrum-info p { margin: 4px 0 0; color: var(--ink-2); max-width: 36em; }
.spectrum-info .price { font-weight: 700; font-size: 20px; white-space: nowrap; }
.swap { transition: opacity .25s, transform .35s var(--ease-out); }
.swap.out { opacity: 0; transform: translateY(6px); }

/* Цифры доверия */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust b { display: block; font-size: 26px; letter-spacing: -.02em; }
.trust span { color: var(--ink-2); font-size: 14px; }

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-mist { background: var(--mist); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Каталог */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--paper); border-radius: var(--radius-tile); padding: 20px 20px 22px; overflow: hidden;
  transition: transform .4s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); }
.tile:hover .jar-svg { transform: scale(1.04) rotate(-2deg); }
.tile .jar-svg { width: 62%; margin: 8px auto 18px; transition: transform .5s var(--ease-out); }
.tile h3 { font-size: 19px; letter-spacing: -.015em; }
.tile .price { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.badge {
  position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; background: var(--wax); color: var(--honey-text);
}
.badge-new { background: var(--ink); color: #fff; }

/* Продукты пчеловодства */
.extras { margin-top: clamp(48px, 6vw, 72px); }
.extras h3 { font-size: 24px; margin-bottom: 16px; }
.extras ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.extras li { background: var(--paper); border-radius: 20px; padding: 18px; }
.extras li b { display: block; font-size: 16px; }
.extras li span { color: var(--ink-2); font-size: 14px; }
.extras li strong { display: block; margin-top: 10px; font-size: 18px; }

/* Kaspi */
.kaspi { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius-tile); padding: clamp(24px, 4vw, 40px); }
.kaspi h3 { font-size: clamp(22px, 2.6vw, 30px); }
.kaspi p { margin: 8px 0 0; color: rgba(255,255,255,.72); max-width: 36em; }
.kaspi .btn { background: #d32f1f; color: #fff; flex: none; }
.kaspi .btn:hover { background: #b8271a; }

/* Акции */
.promos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promos li { border-radius: 24px; padding: 24px; background: var(--wax); min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.promos li:first-child { background: var(--honey); }
.promos .num { font-size: clamp(34px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.promos p { margin: 0; font-weight: 500; }
.note { color: var(--ink-2); font-size: 15px; margin-top: 16px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--paper); border-radius: var(--radius-tile); padding: clamp(20px, 3vw, 32px); }
.field + .field { margin-top: 24px; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.select {
  width: 100%; min-height: 52px; border-radius: var(--radius-field); border: 1.5px solid var(--line);
  padding: 0 44px 0 16px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2326170d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none; -webkit-appearance: none; font-size: 17px; cursor: pointer;
}
.select:focus { border-color: var(--ink); outline: none; }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--mist); border-radius: var(--radius-field); padding: 4px; }
.seg button { position: relative; z-index: 1; min-height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); transition: color .25s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(38,23,13,.14); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.seg small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }

.stepper { display: inline-flex; align-items: center; border-radius: var(--radius-field); background: var(--mist); padding: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 56px; text-align: center; font-weight: 700; font-size: 18px; }

.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-field); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.radio input { margin: 3px 0 0; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--wax); }
.radio:has(input:disabled) { opacity: .45; cursor: default; }
.radio small { display: block; color: var(--ink-2); }

.receipt { position: sticky; top: calc(var(--header-h) + 16px); }
.receipt .jar-svg { width: 96px; margin-bottom: 16px; }
.receipt h3 { font-size: 22px; }
.receipt dl { margin: 20px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.receipt .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; font-weight: 700; font-size: 22px; color: var(--ink); }
.receipt .btn { width: 100%; margin-top: 24px; }
.receipt .note { font-size: 14px; }
.gift-line { color: var(--leaf) !important; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 18px; }
.steps li::before { content: counter(s); display: block; font-size: 15px; font-weight: 700; color: var(--honey-text); margin-bottom: 10px; }

/* Отзывы */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews li { background: var(--paper); border-radius: var(--radius-tile); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.reviews blockquote { margin: 0; font-size: 18px; line-height: 1.45; }
.reviews cite { font-style: normal; color: var(--ink-2); font-weight: 600; }
.stars { color: var(--honey); letter-spacing: 2px; font-size: 15px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: stretch; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--ink-2); font-size: 14px; }
.contact-list a { font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.contact-list a:hover { color: var(--honey-text); }
.map { border-radius: var(--radius-tile); overflow: hidden; background: var(--mist); min-height: 420px; position: relative; }
.map iframe { border: 0; width: 100%; height: 100%; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink-2); }

/* Подвал */
.footer { padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Плавающая кнопка WhatsApp на телефоне */
.fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #0f7a43; color: #fff; place-items: center; box-shadow: 0 4px 14px rgba(38,23,13,.22); }
.fab svg { width: 28px; height: 28px; }

/* ---------- Банка ---------- */
.jar-honey { fill: var(--c, var(--honey-color)); transition: fill .8s var(--ease-out); }
.jar-level { transform-box: fill-box; transform-origin: bottom; }
.fill-in .jar-level { animation: fill 1.6s .2s var(--ease-out) both; }
@keyframes fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Страница товара ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); }
.product-media { position: sticky; top: calc(var(--header-h) + 24px); background: var(--mist); border-radius: 36px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.product-media .jar-svg { width: 58%; }
.product-media::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--honey-color); filter: blur(70px); opacity: .4; }
.product-media .jar-svg { position: relative; }
.crumbs { font-size: 15px; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 6px; }
.product h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; }
.product .desc { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 32em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 28px 0 0; }
.facts div { background: var(--mist); border-radius: 18px; padding: 14px 16px; }
.facts dt { font-size: 13px; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--honey-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); flex: none; }
.buy { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.buy-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; }
.buy-total .big { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buy-total .small { color: var(--ink-2); text-align: right; font-size: 15px; }
.buy-actions { display: grid; gap: 10px; margin-top: 24px; }
.buy-actions .btn { min-height: 56px; font-size: 17px; }
.inline-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-field); background: var(--wax); font-size: 15px; }
.other { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.other .tile { flex: 0 0 200px; scroll-snap-align: start; background: var(--mist); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .extras ul { grid-template-columns: repeat(3, 1fr); }
  .promos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-jar { width: min(46%, 240px); grid-row: 1; }
  .hero { padding-top: 24px; }
  .trust ul { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .calc, .contacts, .product { grid-template-columns: 1fr; }
  .receipt, .product-media { position: static; }
  .product-media { aspect-ratio: 4 / 3; }
  .product-media .jar-svg { width: 40%; }
  .reviews { grid-template-columns: 1fr; }
  .kaspi { flex-direction: column; align-items: flex-start; }
  .fab { display: grid; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { padding: 14px 14px 16px; border-radius: 22px; }
  .tile h3 { font-size: 16px; }
  .tile .price { font-size: 14px; }
  .badge { top: 10px; left: 10px; font-size: 11px; }
  .extras ul { grid-template-columns: repeat(2, 1fr); }
  .promos, .steps { grid-template-columns: 1fr; }
  .promos li { min-height: 0; }
  .spectrum-bar { height: 52px; gap: 3px; }
  .spectrum-bar button { border-radius: 8px; }
  .spectrum-bar button[aria-pressed="true"] { flex-grow: 2.4; }
  .facts { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .map { min-height: 340px; }
  .kaspi .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

#pBadge .badge { position: static; display: inline-block; margin-bottom: 12px; }

/* ---------- Django-версия ---------- */
.fieldset-reset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.fieldset-reset legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.contact-address { font-size: 18px; font-weight: 600; }
.contact-list-tight { margin-top: 0; }
.route { margin-top: 20px; }
.other-section { padding-bottom: clamp(64px, 8vw, 104px); }
.other-section h2 { margin-bottom: 24px; }
img.jar-svg.photo { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.product-media img.jar-svg.photo { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.extras li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }

/* ---------- Исправления после аудита ---------- */
/* Ссылка «К содержимому» для клавиатуры: видна при фокусе */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 10px; }

/* Самые узкие телефоны (320–359 px): шапка помещается целиком */
@media (max-width: 359px) {
  .header .wrap { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 34px; height: 34px; }
  .lang button { width: 34px; }
  .lang .pill { width: 34px; }
  .lang[data-lang="kz"] .pill { transform: translateX(34px); }
  .menu-btn { width: 40px; }
}
@media (max-width: 330px) {
  .brand { font-size: 0; }               /* остаётся только логотип */
  .brand img { width: 36px; height: 36px; }
}

/* Спектр на телефоне: два ряда по 6, каждая кнопка удобна для пальца */
@media (max-width: 640px) {
  .spectrum-bar { flex-wrap: wrap; height: auto; gap: 6px; }
  .spectrum-bar button,
  .spectrum-bar button:first-child,
  .spectrum-bar button:last-child { flex: 1 1 calc((100% - 30px) / 6); height: 44px; border-radius: 12px; }
  .spectrum-bar button[aria-pressed="true"] { flex-grow: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
  .spectrum-bar button[aria-pressed="true"]::after { display: none; }
}

/* Страница 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.error-box { max-width: 32em; text-align: center; }
.error-box img { margin: 0 auto 24px; border-radius: 50%; }
.error-box h1 { font-size: clamp(30px, 5vw, 44px); }
.error-box p { color: var(--ink-2); margin: 10px 0 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
