/* =======================================================================
   BlackWhite — monochrome storefront
   โครงตามหน้าแรกของเว็บต้นแบบ: header 2 ชั้น + เมกะเมนู, hero แบบแบนเนอร์สไลด์,
   แถบ quick-link, ชิปหมวดสินค้า, แถวสินค้าแบบ carousel
   breakpoint: 431 / 833.99 / 1264 px
   ======================================================================= */
/* design tokens อยู่ที่ ../shared/tokens.css (โหลดก่อนไฟล์นี้) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
s { color: var(--ink-4); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1296px; margin-inline: auto; padding-inline: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  background: #fff; color: var(--ink);
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--card {
  width: 100%; margin-top: 12px; padding: 10px 14px; font-size: 14px;
  border-radius: var(--radius-sm); border-color: var(--line-2); background: var(--surface-2);
}
.btn--card:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* ============================== header ============================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }

.header__top-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 14px; min-height: 68px; padding-block: 10px;
}

.header__burger {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex: 0 0 auto;
}
.header__burger:hover { border-color: var(--ink); }
.burger { display: grid; gap: 4px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

.logo { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.logo__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.logo__text { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.logo__text span { font-weight: 300; color: var(--ink-3); }

/* search — pill กลาง header เหมือนต้นแบบ */
.search {
  position: relative; display: none; align-items: center;
  flex: 1 1 320px; min-width: 200px; max-width: 620px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 18px;
}
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  padding: 9px 10px; font: inherit; font-size: 14px; color: var(--ink);
}
.search input:focus { outline: none; }
.search__submit {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  padding: 9px 20px; font-size: 14px; font-weight: 600;
}
.search__submit:hover { background: #000; }

.header__actions { display: none; align-items: center; gap: 6px; flex: 0 0 auto; }
.header__mobile-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink-2);
  position: relative;
}
.tool:hover { border-color: var(--ink); }
.tool--lang { width: auto; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.tool__caret { font-size: 11px; color: var(--ink-4); }
.tool--cart { position: relative; }

.cart-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; margin-left: 6px;
  border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.btn-login:hover { background: var(--ink); color: #fff; }

/* ---- second row: category + nav ---- */
.header__nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.header__nav-inner { display: flex; align-items: stretch; gap: 8px; min-height: 56px; }

.nav-cat {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  align-self: center;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600;
}
.nav-cat[aria-expanded="true"] { background: #000; }
.nav-cat__caret { transition: transform .15s ease; }
.nav-cat[aria-expanded="true"] .nav-cat__caret { transform: rotate(180deg); }

.nav-list { display: flex; align-items: stretch; flex-wrap: nowrap; }
.nav-list--end { margin-left: auto; }
.nav-list > li { display: flex; }
.nav-list > li > a,
.nav-list > li > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 14px; border: 0; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li.is-open > button { background: var(--surface-2); color: var(--ink); }
.nav-list > li > button span { font-size: 11px; color: var(--ink-4); }

.has-menu { position: relative; }
.nav-drop {
  position: absolute; top: 100%; left: 0; z-index: 55;
  min-width: 220px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.has-menu.is-open .nav-drop { display: block; }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.nav-drop a:hover { background: var(--surface-2); }

/* ---- mega menu ---- */
.megamenu {
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .25);
}
.megamenu[hidden] { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding-block: 26px 30px; }
.mega__col h3 {
  font-size: 13px; font-weight: 700;
  color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mega__col ul { margin-top: 12px; display: grid; gap: 2px; }
.mega__col a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 6px; font-size: 14px; color: var(--ink-2); }
.mega__col a:hover { background: var(--surface-2); color: var(--ink); }

/* ---- mobile drawer ---- */
.drawer { border-top: 1px solid var(--line); background: #fff; padding: 14px 16px 18px; max-height: calc(100vh - 68px); overflow: auto; }
.drawer[hidden] { display: none; }
.drawer__title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); margin: 14px 0 8px; }
.drawer__list { display: grid; gap: 2px; }
.drawer__list a { display: block; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; }
.drawer__list a:hover { background: var(--surface-2); }
.drawer__list--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__list--chips a { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; }

/* =============================== hero =============================== */
.hero { padding-top: 14px; }
.hero__stage {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff;
}
.hero__track { display: grid; }

.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 1fr;
  gap: 18px; padding: 26px 22px 22px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__copy { order: 2; }
.slide__art { order: 1; }
.slide__art img { width: 100%; max-width: 300px; height: auto; margin-inline: auto; }
.slide__kicker {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-2);
}
.slide__title {
  margin-top: 12px; font-size: clamp(25px, 5.6vw, 44px);
  line-height: 1.12; letter-spacing: -1px; font-weight: 700;
}
.slide__title span { display: block; font-weight: 300; color: var(--ink-3); }
.slide__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.slide__price strong { font-size: 30px; letter-spacing: -.8px; }
.slide__price s { font-size: 15px; }
.slide__price em {
  font-style: normal; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}
.slide__meta { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.slide__copy .btn { margin-top: 18px; }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-4);
}
.hero__date { white-space: nowrap; }
.hero__note { white-space: nowrap; }
.hero__dots { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; justify-content: center; }
.hero__dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-2); transition: width .2s ease, background .2s ease;
}
.hero__dot.is-active { width: 22px; background: var(--ink); }

/* ============================ quick links ============================ */
.quicklinks { padding-block: 16px; }
.quicklinks__row {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x proximity;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  padding: 8px 6px;
  scrollbar-width: none;
}
.quicklinks__row::-webkit-scrollbar { display: none; }
.quicklinks__row > li { flex: 0 0 auto; scroll-snap-align: start; }
.quicklinks__row > li + li { border-left: 1px solid var(--line); }
.quicklinks__row a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
}
.quicklinks__row a:hover { background: var(--surface-2); }
.quicklinks__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  flex: 0 0 auto;
}
.quicklinks__text { display: grid; line-height: 1.25; }
.quicklinks__text strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.quicklinks__text small { font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.quicklinks__chev { font-size: 16px; color: var(--ink-4); }

/* ============================ category chips ======================== */
.chips { border-block: 1px solid var(--line); background: #fff; }
.chips__row {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 12px;
  scrollbar-width: none;
}
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; flex: 0 0 auto;
  padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.chip span { font-size: 11px; color: var(--ink-4); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active span { color: rgba(255, 255, 255, .7); }

/* ============================= benefits ============================= */
.benefits { border-bottom: 1px solid var(--line); background: #fff; }
.benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; padding-block: 6px; }
.benefit { display: flex; align-items: center; gap: 10px; padding: 12px 6px; font-size: 13.5px; color: var(--ink-2); }
.benefit__ico {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 11px; font-weight: 700; color: var(--ink-3);
}

/* ---------- section shell ---------- */
.section { padding-block: 40px; }
.section--tight { padding-block: 32px; }
.section--muted { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section__head h2 { color: #fff; }
.section--dark .link-more { color: #fff; }
.section--dark .build__media { background: #fff; }
.section--dark .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.section--dark .btn--primary:hover { background: #f0f0f0; box-shadow: 3px 3px 0 #fff; }
.section--dark .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.section--dark .btn--ghost:hover { border-color: #fff; box-shadow: 3px 3px 0 #fff; }

.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { font-size: clamp(20px, 3.4vw, 26px); letter-spacing: -.4px; }
.link-more { font-size: 14px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-more:hover { opacity: .65; }

/* ---------- flash sale ---------- */
.flash-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.flash-title { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(20px, 3.4vw, 26px); }
.flash-title::before { content: ""; width: 12px; height: 12px; background: var(--ink); border-radius: 2px; }
.flash-timer { font-size: 13px; color: var(--ink-3); }
.flash-timer strong {
  display: inline-block; min-width: 74px; margin-left: 4px;
  padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: #fff;
  font-variant-numeric: tabular-nums; text-align: center;
}

.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.tab {
  border: 0; background: transparent; border-radius: 999px;
  padding: 7px 18px; font-size: 14px; font-weight: 600; color: var(--ink-3);
}
.tab.is-active { background: var(--ink); color: #fff; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-hard); transform: translate(-2px, -2px); }

.card__media {
  position: relative; aspect-ratio: 4 / 3;
  display: grid; place-items: center; padding: 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 9px; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}
.card__body { display: flex; flex-direction: column; padding: 13px; flex: 1 1 auto; }
.card__brand { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ink-4); }
.card__name { margin-top: 4px; font-size: 15px; line-height: 1.35; font-weight: 600; }
.card__spec {
  margin-top: 6px; font-size: 12.5px; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.card__price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.card__price strong { font-size: 20px; letter-spacing: -.4px; }
.card__price s { font-size: 13px; }
.card__save { font-size: 11px; font-weight: 700; color: var(--ink); background: var(--surface-3); padding: 2px 6px; border-radius: 4px; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--ink-4); }

/* ---------- horizontal row ---------- */
.row-nav { display: inline-flex; gap: 6px; }
.row-nav__btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 18px; line-height: 1; color: var(--ink-2);
}
.row-nav__btn:hover { border-color: var(--ink); }

.rows {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 10px; margin: -4px -4px 0;
}
.rows > .card { scroll-snap-align: start; }

/* ---------- builds ---------- */
.builds { display: grid; gap: 16px; }
.build {
  display: flex; flex-direction: column;
  padding: 16px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}
.build--feature { background: rgba(255, 255, 255, .1); border-color: #fff; }
.build__media {
  border-radius: var(--radius-sm); overflow: hidden; background: #fff;
  padding: 10px; margin-bottom: 14px;
}
.build__media img { width: 100%; height: auto; }
.build__tier {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.build h3 { margin-top: 10px; font-size: 20px; }
.build ul { margin-top: 10px; display: grid; gap: 5px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.build ul li::before { content: "—"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.build__price { margin-top: auto; padding-top: 16px; font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.build__price small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .6); }
.build .btn { margin-top: 14px; align-self: flex-start; }

/* ---------- brands ---------- */
.brands { border-block: 1px solid var(--line); background: #fff; }
.brands__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px;
  padding-block: 22px; font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--ink-4);
}
.brands__row span:hover { color: var(--ink); }

/* ---------- newsletter ---------- */
.newsletter {
  display: grid; gap: 18px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: repeating-linear-gradient(-45deg, #fafafa, #fafafa 10px, #fff 10px, #fff 20px);
}
.newsletter h2 { font-size: clamp(19px, 3vw, 24px); letter-spacing: -.3px; }
.newsletter p { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.newsletter__form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 14px;
}
.newsletter__form input:focus { outline: none; border-color: var(--ink); }
.newsletter__msg { flex: 1 1 100%; font-size: 13px; min-height: 18px; }
.newsletter__msg.is-error { color: #b00020; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 36px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
.footer__title { font-size: 13px; color: #fff; margin-bottom: 10px; letter-spacing: .02em; }
.footer__grid ul { display: grid; gap: 7px; font-size: 13.5px; }
.footer__grid a:hover, .footer__meta a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__meta {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.footer__contact { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .62); line-height: 1.7; }
.footer__social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; font-size: 13px; }
.footer__social a { border-bottom: 1px solid rgba(255, 255, 255, .4); }
.footer__bottom {
  margin-top: 24px; padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12px; color: rgba(255, 255, 255, .55);
}
.footer__bottom a { border-bottom: 1px solid rgba(255, 255, 255, .3); }

/* ---------- cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--ink); box-shadow: var(--shadow-hard);
  font-size: 13px; color: var(--ink-2);
}
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 240px; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; margin-left: auto; }
.cookie .btn { padding: 9px 16px; font-size: 13px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 70;
  transform: translate(-50%, 12px);
  padding: 11px 18px; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* =========================== responsive =========================== */
@media (max-width: 833.99px) {
  .header.search-open .search { display: flex; flex: 1 1 100%; max-width: none; margin: 0; }
}

@media (max-width: 431px) {
  .slide { padding: 18px 16px 16px; }
  .slide__art img { max-width: 220px; }
  .hero__foot { padding: 8px 14px; font-size: 11px; }
  .hero__date, .hero__note { display: none; }
  .quicklinks__text strong { font-size: 12.5px; }
  .card__spec { min-height: 34px; }
}

@media (min-width: 640px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rows { grid-auto-columns: 44%; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .search { display: flex; }
}

@media (min-width: 834px) {
  .header__burger { display: none; }
  .header__mobile-tools { display: none; }
  .header__actions { display: flex; }
  .header__nav { display: block; }
  .header__top-inner { flex-wrap: nowrap; min-height: 74px; }
  .search { margin-inline: auto; }

  .slide {
    grid-template-columns: 1.02fr .98fr; align-items: center;
    gap: 32px; padding: 34px 40px 30px;
  }
  .slide__copy { order: 1; }
  .slide__art { order: 2; }
  .slide__art img { max-width: 100%; }
  .hero__foot { padding: 12px 26px; }

  .benefits__grid { grid-template-columns: repeat(5, 1fr); }
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rows { grid-auto-columns: 31%; }
  .builds { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .newsletter { grid-template-columns: 1fr auto; align-items: center; padding: 30px 32px; }
  .newsletter__form { flex: 0 1 440px; }
  .footer__grid { grid-template-columns: repeat(5, 1fr); }
  .footer__meta { grid-template-columns: 1.4fr 1fr; }
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 700px; }
  .toast { bottom: 32px; }
}

@media (min-width: 1024px) {
  .rows { grid-auto-columns: 23.5%; }
}

@media (min-width: 1264px) {
  .wrap { padding-inline: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
