/* Dauntless Aviation, design proposal v0.
   Palette comes from the live site: the navy #000033 field with its stripe texture, the logo blues,
   white panels and the menu's sky blue. Amber is the one warm note, reserved for the main action.
   Type: Source Serif 4 (echoes the serif wordmark) and Instrument Sans, weights 400/500/600 only. */

:root {
  --navy: #000033;
  --navy-2: #0c1a45;
  --navy-line: #24356a;
  --blue: #0b57a4;       /* logo blue */
  --blue-2: #1c7bc0;
  --sky: #00aaff;        /* menu hover on the live site */
  --sky-soft: #60aaff;
  --paper: #f6f8fb;
  --paper-2: #e9eff7;
  --white: #fff;
  --ink: #0c1a33;
  --muted: #53627f;
  --rule: #d5deeb;
  --amber: #f2a81d;
  --amber-ink: #2a1b00;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --t-meta: 0.75rem;     /* 12 */
  --t-sm: 0.875rem;      /* 14 */
  --t-body: 1rem;        /* 16 */
  --gutter: clamp(16px, 4vw, 32px);
  --r: 4px;
  --hit: 44px;
  --side: 272px;         /* left menu width */
  --bar: 72px;           /* top bar height under 1060px */
  --content: calc(100vw - var(--side));   /* width left of the menu, drives headline size */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  padding-left: var(--side);
  background: var(--navy) url("assets/v5background.gif");
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--hit); padding: 0 20px; border-radius: var(--r);
  font: 600 var(--t-body)/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: #ffbc3d; }
.btn--sky { background: var(--sky); color: #00203a; }
.btn--sky:hover { background: #33bbff; }
.btn--ghost { border-color: #9db3d4; color: var(--blue); }
.btn--ghost:hover { border-color: var(--blue); background: var(--white); }
.link-quiet { color: #b9c8ee; text-decoration: none; padding: 12px 6px; }
.link-quiet:hover { color: var(--white); }

/* ---------- site menu: fixed left column, a top bar with a menu panel under 1060px ---------- */
.top {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50;
  display: flex; flex-direction: column;
}
.brand { display: block; text-decoration: none; flex: none; padding: 24px 24px 16px; }
.brand__mark { width: 128px; height: 128px; border-radius: 12px; }
.brand__full { display: none; width: auto; height: 40px; }

.top__panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; scrollbar-width: thin; scrollbar-color: var(--navy-line) transparent; }
.nav ul { display: grid; }
.nav__h { margin: 16px 0 4px; padding: 0 8px; font: 600 var(--t-sm)/1.5 var(--sans); color: var(--sky-soft); }
.nav__group:first-child .nav__h { margin-top: 4px; }
.nav a, .nav__btn {
  display: flex; align-items: center; min-height: var(--hit); padding: 4px 8px; border-radius: var(--r);
  color: #dbe6ff; font: 500 var(--t-sm)/1.5 var(--sans); text-decoration: none;
}
.nav a:hover, .nav__btn:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); font-weight: 600; box-shadow: inset 3px 0 0 var(--sky); }
.nav__folds { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--navy-line); }
.nav__btn { width: 100%; justify-content: space-between; background: none; border: 0; cursor: pointer; font-weight: 600; }
.nav__btn svg { flex: none; transition: transform .15s ease-out; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__fold ul { padding-left: 12px; }
.nav__fold ul[hidden] { display: none; }

.top__actions { display: flex; align-items: center; gap: 8px; flex: none; padding: 16px; border-top: 1px solid var(--navy-line); }
.top__actions .btn { flex: 1; padding: 0 12px; }
.top__actions .link-quiet { display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 12px; }

.burger {
  display: none; align-items: center; gap: 8px; min-height: var(--hit); padding: 0 14px;
  background: none; border: 1px solid var(--navy-line); border-radius: var(--r); cursor: pointer;
  color: var(--white); font: 500 var(--t-sm)/1 var(--sans);
}
.burger:hover { border-color: var(--sky-soft); }
.burger__bars { position: relative; width: 18px; height: 12px; }
.burger__bars i { position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: currentColor; transition: transform .2s ease-out; }
.burger__bars i:first-child { transform: translateY(-4px); }
.burger__bars i:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] .burger__bars i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars i:last-child { transform: rotate(-45deg); }

/* ---------- content panel: sky banner and the title logo, on the navy stripe frame ---------- */
main {
  margin: 16px 16px 0 0; border-radius: 16px; overflow: clip;
  background: var(--white) url("assets/header_bg.jpg") center top / 2000px 117px repeat-x;
}
.masthead { padding: 16px var(--gutter) 0; }
.masthead img { width: min(420px, 100%); height: auto; }

/* ---------- hero ---------- */
.hero { padding: clamp(16px, 2.5vw, 32px) 0 clamp(48px, 6vw, 80px); color: var(--ink); container-type: inline-size; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.125rem, calc(var(--content) * .045), 3.25rem); line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
.lede { margin-top: 22px; max-width: 56ch; font-size: 1.125rem; line-height: 1.6; color: #33425f; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 36px; max-width: 56ch; padding-top: 18px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); }

.featured { background: var(--white); color: var(--ink); border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.featured__stage { position: relative; aspect-ratio: 600 / 350; background: var(--paper); border-bottom: 1px solid var(--rule); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.slide.is-on { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.featured__bar { padding: 14px 8px 4px 20px; }
.featured__text { display: grid; gap: 2px; padding-right: 12px; }
.featured__text strong { font: 600 1.25rem/1.25 var(--serif); }
.featured__text .kicker { font-size: var(--t-sm); font-weight: 600; color: var(--blue); }
.featured__text span:last-child { color: #33425f; }
.featured__tabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 6px 0 0 -12px; }
.featured__tabs button {
  min-height: var(--hit); padding: 0 12px; border: 0; background: none; cursor: pointer; border-radius: var(--r);
  font: 500 var(--t-sm)/1 var(--sans); color: var(--muted); position: relative;
}
.featured__tabs button:hover { color: var(--ink); background: var(--paper-2); }
.featured__tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.featured__tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--blue); }

/* ---------- sheets ---------- */
.sheet { background: var(--paper); padding: clamp(48px, 7vw, 88px) 0; }
.sheet--tint { background: var(--paper-2); }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; }
.sec-sub { margin-top: 8px; color: var(--muted); }
.more { font-weight: 600; color: var(--blue); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: var(--hit); }

/* segmented filter */
.filter { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: var(--r); background: var(--white); overflow: hidden; }
.filter button {
  min-height: var(--hit); padding: 0 16px; cursor: pointer; border: 0; border-right: 1px solid var(--rule);
  background: none; color: var(--ink); font: 500 var(--t-sm)/1 var(--sans);
}
.filter button:last-child { border-right: 0; }
.filter button:hover { background: var(--paper-2); }
.filter button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

/* flagships: one dark lead, two light companions */
.flagships { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.flagships[hidden] { display: none; }
.flagships--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flag { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, background .15s; }
.flag h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.flag h3 a:focus-visible { outline: none; }
.flag:has(h3 a:focus-visible) { outline: 2px solid var(--sky); outline-offset: 3px; }
@media (hover: hover) {
  .flag:hover { border-color: #9db3d4; box-shadow: 0 2px 10px rgba(12, 26, 51, .08); }
  .flag--lead:hover { background: #10215a; border-color: var(--sky-soft); box-shadow: none; }
}
.flag img { border-radius: 14px; margin-bottom: 12px; }
.flag h3 { font-size: 1.5rem; }
.flag h3 a { text-decoration: none; }
.flag h3 a:hover { color: var(--blue); }
.flag__tag { font-weight: 600; color: var(--blue); }
.flag__text { font-size: var(--t-body); color: #33425f; margin-top: 4px; }
.flag .plat { margin-top: auto; padding-top: 14px; }

.flag--lead {
  grid-column: 1 / -1; background: var(--navy-2); border-color: var(--navy-line); color: var(--white); padding: 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto auto 1fr; gap: 0 clamp(32px, 5vw, 72px); align-items: start;
}
.flag--lead img { grid-column: 1; width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.flag--lead h3 { grid-column: 1; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.12; }
.flag--lead h3 a:hover { color: var(--sky-soft); }
.flag--lead .flag__tag { grid-column: 1; color: var(--sky-soft); font-size: 1.125rem; margin-top: 6px; }
.flag--lead .flag__text { grid-column: 2; grid-row: 1 / 4; color: #c9d6f3; font-size: 1.0625rem; line-height: 1.6; margin-top: 0; }
.flag--lead .plat { grid-column: 2; grid-row: 4; align-self: start; color: #9fb2e3; padding-top: 18px; margin-top: 0; }

.plat { font-size: var(--t-sm); color: var(--muted); }

.plist { margin-top: 28px; border-top: 1px solid var(--ink); }
.row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(150px, 190px) 12px; gap: 8px 20px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
/* whole row is the link: the title's ::after covers it. The tint is a ::before that bleeds 12px past the
   column, so the text and dividers stay put and the highlight doesn't hug the words. */
.row h3 a::after { content: ""; position: absolute; inset: 0; }
.row::before { content: ""; position: absolute; inset: 2px -12px; z-index: -1; border-radius: 8px; background: transparent; transition: background .15s; }
.row h3 a:focus-visible { outline: none; }
.row:has(h3 a:focus-visible)::before { background: #e7eff9; outline: 2px solid var(--sky); }
/* resting affordance: a chevron, so the row reads as a link on touch too (no hover there) */
.row::after {
  content: ""; grid-column: -2; grid-row: 1; justify-self: end; width: 8px; height: 8px; margin: 9px 2px 0 -8px;
  border-top: 2px solid #8a98b3; border-right: 2px solid #8a98b3; transform: rotate(45deg); transition: transform .15s ease-out, border-color .15s;
}
.row:active::before { background: #e7eff9; }
@media (hover: hover) {
  .row:hover::before { background: #e7eff9; }
  .row:hover::after { border-color: var(--blue); transform: translateX(3px) rotate(45deg); }
}
.row img { border-radius: 10px; margin-top: 2px; }
.row h3 { font-size: 1.1875rem; line-height: 1.3; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.row h3 span { font: 400 var(--t-body)/1.3 var(--sans); color: var(--muted); margin-left: 8px; }
.row p { margin-top: 4px; color: #33425f; max-width: 68ch; }
.row .plat { text-align: right; margin-top: 4px; }

/* ---------- purchasing band ---------- */
.band { background: var(--navy-2); color: var(--white); padding: clamp(40px, 5vw, 64px) 0; border-block: 1px solid var(--navy-line); }
.band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.15; }
.band p { margin-top: 12px; color: #b9c8ee; max-width: 46ch; }
.buy { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy-line); border-left: 1px solid var(--navy-line); }
.buy li { border-right: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }
.buy a { display: grid; gap: 4px; padding: 18px 20px; text-decoration: none; height: 100%; transition: background .15s; }
.buy a:hover { background: var(--navy); }
.buy strong { font: 600 1.0625rem/1.2 var(--serif); }
.buy span { font-size: var(--t-sm); color: #9fb2e3; }

/* ---------- feedback ---------- */
.news { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.news__rest { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.quote { margin: 0; padding: 22px 0; border-top: 1px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.quote__head { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); color: var(--muted); }
.quote__head time { font-weight: 600; color: var(--blue); }
.quote h3 { font-size: 1.1875rem; line-height: 1.25; }
.quote blockquote { margin: 0; }
.quote blockquote p { color: #2a3957; }
.quote__by { font-size: var(--t-sm); color: var(--muted); }
.quote__by b { color: var(--ink); font-weight: 600; }
.reply { font-size: var(--t-sm); color: #2a3957; border-left: 2px solid var(--amber); padding-left: 12px; margin-top: 2px; }
.reply b { display: block; font-weight: 600; color: var(--ink); }

.news__lead { position: sticky; top: 24px; }
.news__lead .quote { border-top-width: 3px; padding-top: 28px; gap: 16px; }
.news__lead .quote h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.15; }
.news__lead blockquote p { font: 400 clamp(1.125rem, 1.7vw, 1.3125rem)/1.55 var(--serif); color: var(--ink); }

/* ---------- footer ---------- */
.foot { color: #b9c8ee; padding: clamp(40px, 5vw, 64px) 0 28px; font-size: var(--t-sm); }
.foot__grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 40px; }
.foot__brand img { border-radius: 12px; margin-bottom: 16px; }
.foot__addr { line-height: 1.7; }
.foot__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.foot h3 { font: 600 var(--t-sm)/1.2 var(--sans); color: var(--sky-soft); margin-bottom: 8px; }
.foot li a { display: inline-flex; align-items: center; min-height: var(--hit); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot__partners { display: grid; gap: 12px; align-content: start; justify-items: start; }
.foot__partners img { background: var(--white); padding: 4px 8px; border-radius: var(--r); height: 40px; width: auto; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: var(--t-meta); }
#legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
#legal a { display: inline-flex; align-items: center; min-height: var(--hit); text-decoration: none; }
.proto { color: #7f93c8; align-self: center; }

/* ---------- products page ---------- */
.phead { color: var(--ink); padding: clamp(8px, 1.5vw, 16px) 0 clamp(32px, 4vw, 52px); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 8px; }
.crumbs a { text-decoration: none; color: var(--blue); display: inline-flex; align-items: center; min-height: var(--hit); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.phead__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.phead h1 { font-size: clamp(2.125rem, calc(var(--content) * .045), 3.25rem); line-height: 1.12; text-wrap: balance; }
.phead .lede { max-width: 56ch; }
.help { border-left: 2px solid var(--amber); padding: 4px 0 4px 22px; display: grid; gap: 14px; justify-items: start; }
.help p { font: 600 1.1875rem/1.3 var(--serif); }
.jump { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--rule); }
.jump a { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: var(--hit); }
.jump a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.jump b { font-weight: 500; font-size: var(--t-sm); color: var(--blue); margin-left: 8px; }

.count { font-size: var(--t-sm); color: var(--muted); margin: -12px 0 14px; }

.catalog { container-type: inline-size; --pw: 96px; border-top: 1px solid var(--ink); background: var(--white); border-inline: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0 0 var(--r) var(--r); }
.catalog__head, .crow { display: grid; grid-template-columns: 56px minmax(0, 1fr) calc(var(--pw) * 5); gap: 0 20px; align-items: center; padding-inline: 20px; }
.catalog__head { padding-block: 12px; border-bottom: 1px solid var(--rule); background: var(--paper); font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.catalog__head > span:first-child { grid-column: 1 / 3; }
.catalog__plats { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.crow { padding-block: 16px; border-bottom: 1px solid var(--rule); transition: background .15s; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: #f1f6fc; }
.crow[hidden] { display: none; }
.crow__icon img { border-radius: 13px; }
.crow h3 { font-size: 1.25rem; }
.crow h3 a { text-decoration: none; }
.crow h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.crow__tag { color: #33425f; margin-top: 2px; }
.crow__detail { font-size: var(--t-sm); color: var(--muted); margin-top: 2px; }
.crow__detail a { color: var(--blue); }
.crow__plats { display: grid; grid-template-columns: repeat(5, 1fr); }
.crow__plats li { padding-inline: 4px; }
.pbtn {
  display: flex; align-items: center; justify-content: center; min-height: var(--hit); border-radius: var(--r);
  font: 500 var(--t-sm)/1 var(--sans); text-decoration: none; text-align: center;
  border: 1px solid var(--rule); color: var(--blue); background: var(--white); transition: background .12s, color .12s, border-color .12s;
}
a.pbtn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pbtn--off { border-color: transparent; background: none; color: #b8c4d8; }

.search { display: block; position: relative; width: min(100%, 360px); }
.search input {
  width: 100%; min-height: var(--hit); padding: 0 14px 0 40px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2353627f' stroke-width='1.5'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") no-repeat 14px center;
  font: 400 var(--t-body)/1 var(--sans); color: var(--ink);
}
.search input:focus { border-color: var(--blue-2); outline: 2px solid var(--sky); outline-offset: 2px; }

.fgroup { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px 48px; padding: 28px 0; border-top: 1px solid var(--ink); }
.fgroup[hidden] { display: none; }
.fgroup header { align-self: start; position: sticky; top: 24px; }
.fgroup h3 { font-size: 1.375rem; }
.fgroup header p { margin-top: 6px; font-size: var(--t-sm); color: var(--muted); }
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.flist li { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.flist li[hidden] { display: none; }
.flist a { font: 600 1.0625rem/1.3 var(--serif); text-decoration: none; display: inline-block; padding: 2px 0; }
.flist a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.flist p { margin-top: 4px; font-size: var(--t-sm); line-height: 1.55; color: #33425f; }
.empty { padding: 24px 0; color: var(--muted); }
.empty[hidden] { display: none; }
.empty button { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 12px 4px; }

/* narrow table (menu beside it): slimmer platform columns so the product name keeps room */
@container (max-width: 900px) {
  .catalog__head, .crow { --pw: 72px; }
}

/* the hero stacks whenever its own column is narrow (the menu takes 272px from the viewport) */
@container (max-width: 880px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive: narrow 375, medium 768, wide 1280 ---------- */
@media (max-width: 1060px) {
  :root { --content: 100vw; }
  body { padding-left: 0; }
  html { scroll-padding-top: calc(var(--bar) + 16px); }
  .top {
    position: sticky; inset: auto; top: 0; width: auto;
    flex-direction: row; align-items: center; justify-content: space-between;
    min-height: var(--bar); padding-inline: var(--gutter);
    background: var(--white); border-bottom: 1px solid var(--rule);
  }
  .brand { padding: 2px 0; }
  .brand__mark, .masthead { display: none; }
  .brand__full { display: block; }
  .burger { color: var(--ink); border-color: #9db3d4; }
  .burger:hover { border-color: var(--blue); }
  main { margin: 0; border-radius: 0; background-position: center -40px; }
  .hero { padding-top: 40px; }
  .phead { padding-top: 40px; }
  .burger { display: inline-flex; }
  .top__panel {
    display: none; position: fixed; inset: var(--bar) 0 0 0; z-index: 40;
    background: var(--navy); overflow-y: auto; padding: 8px var(--gutter) 32px;
  }
  .top.is-open .top__panel { display: flex; }
  .nav { flex: none; overflow: visible; padding: 0; }
  .top__actions { padding: 16px 0 0; margin-top: 16px; }
  .hero__grid, .phead__grid { grid-template-columns: minmax(0, 1fr); }
  .band__grid, .news { grid-template-columns: minmax(0, 1fr); }
  .news__lead { position: static; }
  .flagships--3 { grid-template-columns: minmax(0, 1fr); }
  .flag--lead { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
  .flag--lead .flag__text { margin-top: 10px; }
  .flag--lead .plat { margin-top: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__partners { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; align-items: center; }
  .catalog { --pw: 78px; }
  .fgroup { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fgroup header { position: static; }
}
@media (max-width: 820px) {
  .catalog__head { display: none; }
  .crow { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 16px; padding-inline: 16px; align-items: start; }
  .crow__plats { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .crow__plats li { padding: 0; }
  .flist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --bar: 64px; }
  .row { grid-template-columns: 44px minmax(0, 1fr) 12px; }
  .row .plat { grid-column: 2; text-align: left; margin-top: 0; }
  .row h3 span { display: block; margin: 2px 0 0; }
  .buy { grid-template-columns: minmax(0, 1fr); }
  .news__rest { grid-template-columns: minmax(0, 1fr); }
  .foot__grid, .foot__cols { grid-template-columns: minmax(0, 1fr); }
  .foot__partners { grid-auto-flow: row; }
  .filter { width: 100%; }
  .filter button { flex: 1 1 auto; padding: 0 12px; }
}
@media (max-width: 480px) {
  .crow__plats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crow__plats li:has(.pbtn--off) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
