/* UtRental site stylesheet
   ---------------------------------------------------------------------------
   Palette   graphite ink, concrete neutrals, one safety-yellow accent.
   Shape     controls (buttons, inputs) 10px, cards and images 16px, chips and
             badges fully rounded. Nothing else.
   Theme     follows the system setting; the footer toggle stores an override
             in localStorage and sets data-theme on <html>.
   Motion    reveal-on-scroll and press feedback only, disabled under
             prefers-reduced-motion.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-italic.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f3f3f1;
  --surface: #fbfbfa;
  --surface-2: #e8e8e4;
  --surface-3: #dcddd8;
  --ink: #17191c;
  --ink-2: #4b5058;
  --ink-3: #6b7078;
  --line: #d5d6d1;
  --line-strong: #b9bbb5;
  --accent: #f5b301;
  --accent-hover: #ffc21f;
  --accent-soft: #fdf0c4;
  --on-accent: #17191c;
  --ok: #1d7a4c;
  --ok-soft: #dcefe4;
  --warn: #9a5b00;
  --warn-soft: #fbead0;
  --danger: #b42318;
  --danger-soft: #fbe4e1;
  --shadow: 0 1px 2px rgb(23 25 28 / 0.06), 0 12px 32px -12px rgb(23 25 28 / 0.18);
  --radius-control: 10px;
  --radius-card: 16px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #121417;
    --surface: #1a1d21;
    --surface-2: #23272c;
    --surface-3: #2d3238;
    --ink: #ecedea;
    --ink-2: #b1b5bb;
    --ink-3: #8d9299;
    --line: #2f343a;
    --line-strong: #454b52;
    --accent-soft: #3a3016;
    --ok: #5cc48f;
    --ok-soft: #173327;
    --warn: #f0b450;
    --warn-soft: #3a2c14;
    --danger: #ff8a7a;
    --danger-soft: #3b1d1a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121417;
  --surface: #1a1d21;
  --surface-2: #23272c;
  --surface-3: #2d3238;
  --ink: #ecedea;
  --ink-2: #b1b5bb;
  --ink-3: #8d9299;
  --line: #2f343a;
  --line-strong: #454b52;
  --accent-soft: #3a3016;
  --ok: #5cc48f;
  --ok-soft: #173327;
  --warn: #f0b450;
  --warn-soft: #3a2c14;
  --danger: #ff8a7a;
  --danger-soft: #3b1d1a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
p a,
li a,
.prose a,
.link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
p a:hover,
li a:hover,
.prose a:hover,
.link:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
}
h3 {
  font-size: 1.2rem;
  font-stretch: 104%;
  letter-spacing: -0.005em;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.875rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 760px;
}
.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  font-stretch: 104%;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:hover {
  border-color: var(--ink);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn--primary {
  --btn-bg: var(--accent);
  --btn-ink: var(--on-accent);
  --btn-border: var(--accent);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--dark {
  --btn-bg: var(--ink);
  --btn-ink: var(--bg);
  --btn-border: var(--ink);
}
.btn--dark:hover {
  border-color: var(--ink);
  opacity: 0.92;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-border: transparent;
  padding-inline: 8px;
}
.btn--ghost:hover {
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}
.btn--block {
  width: 100%;
}
.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

/* ---------- Announcement bar and header ---------- */
.announce {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.875rem;
  font-weight: 600;
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  text-align: center;
}
.announce a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce .icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .announce .announce__extra {
    display: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  font-stretch: 115%;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-2);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface-2);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  background: transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--surface-2);
}
.icon-btn .icon {
  width: 22px;
  height: 22px;
}
.cart-count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.cart-count[hidden] {
  display: none;
}
.menu-toggle {
  display: none;
}
.mobile-panel {
  display: none;
}
@media (max-width: 900px) {
  .nav-links,
  .nav-actions .account-label {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .mobile-panel {
    display: block;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 8px var(--gutter) 20px;
  }
  .mobile-panel[hidden] {
    display: none;
  }
  .mobile-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mobile-panel a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-weight: 650;
    font-size: 1.1rem;
  }
}

/* ---------- Home: hero ---------- */
.hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__copy {
  display: grid;
  gap: 24px;
  align-content: center;
}
.hero__copy .lede {
  max-width: 44ch;
}
.hero__title {
  font-size: clamp(2.3rem, 3.7vw, 3.35rem);
}
.hero__title span {
  display: block;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__media {
  position: relative;
  min-height: 460px;
}
.hero__photo {
  width: 100%;
  height: 100%;
  min-height: 460px;
  max-height: 600px;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.hero__inset {
  position: absolute;
  left: -40px;
  bottom: -32px;
  width: 44%;
  border-radius: var(--radius-card);
  border: 6px solid var(--bg);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__media,
  .hero__photo {
    min-height: 300px;
  }
  .hero__inset {
    left: 12px;
    bottom: -24px;
    width: 42%;
  }
}

/* ---------- Home: delivery promises ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.promise {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
}
.promise__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.promise__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promise__body {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 12px;
  align-content: start;
}
.promise__body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.promise--truck {
  grid-row: span 2;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.promise--truck .muted {
  color: color-mix(in srgb, var(--bg) 72%, var(--ink));
}
.promise--truck .promise__media {
  aspect-ratio: 4 / 3;
}
.promise--note {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.promise--note .promise__body {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 16px;
}
.promise--note .icon {
  width: 34px;
  height: 34px;
}
@media (max-width: 860px) {
  .promise-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .promise--truck {
    grid-row: auto;
  }
}

/* ZIP checker */
.zip-check {
  display: grid;
  gap: 10px;
}
.zip-check__row {
  display: flex;
  gap: 8px;
}
.zip-check input {
  flex: 1;
  min-width: 0;
}
.zip-result {
  font-weight: 600;
  min-height: 1.6em;
}
.zip-result[data-state='truck'] {
  color: var(--ok);
}
.zip-result[data-state='ship'] {
  color: inherit;
}
.zip-result[data-state='out'],
.zip-result[data-state='invalid'] {
  color: var(--danger);
}
.promise--truck .zip-result[data-state='truck'] {
  color: var(--accent);
}
.promise--truck .zip-result[data-state='out'],
.promise--truck .zip-result[data-state='invalid'] {
  color: #ffb4a8;
}
.promise--truck .input {
  background: #23272c;
  border-color: #454b52;
  color: #ecedea;
}
.promise--truck .input::placeholder {
  color: #9aa0a7;
}

/* ---------- Home: how it works ---------- */
.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.how__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
}
.how__intro img {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.step:first-child {
  border-top: 0;
  padding-top: 0;
}
.step__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}
.step:nth-child(3) .step__icon {
  background: var(--accent);
  color: var(--on-accent);
}
.step__icon .icon {
  width: 28px;
  height: 28px;
}
.step h3 {
  margin-bottom: 6px;
}
@media (max-width: 860px) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .how__intro {
    position: static;
  }
}

/* ---------- Home: categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 14px;
}
.cat-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: #f7f7f5;
  background: #23272c;
  grid-column: span 4;
  isolation: isolate;
}
.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s var(--ease);
}
.cat-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 11 13 / 0) 30%, rgb(10 11 13 / 0.82) 100%);
}
.cat-tile:hover img {
  transform: scale(1.04);
}
.cat-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  display: grid;
  gap: 4px;
}
.cat-tile h3 {
  font-size: 1.3rem;
}
.cat-tile p {
  font-size: 0.92rem;
  color: rgb(247 247 245 / 0.82);
}
.cat-tile--wide {
  grid-column: span 8;
}
.cat-tile--tall {
  grid-row: span 2;
}
@media (min-width: 961px) {
  .cat-tile.s3 {
    grid-column: span 3;
  }
  .cat-tile.s4 {
    grid-column: span 4;
  }
  .cat-tile.s5 {
    grid-column: span 5;
  }
  .cat-tile.s7 {
    grid-column: span 7;
  }
  .cat-tile.tall {
    grid-row: span 2;
  }
}
@media (max-width: 960px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 200px;
  }
  .cat-tile,
  .cat-tile--wide {
    grid-column: span 1;
  }
  .cat-tile--tall {
    grid-row: span 1;
  }
  .cat-tile:first-child {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-tile:first-child {
    grid-column: span 1;
  }
}

/* ---------- Product cards ---------- */
.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.card__cat {
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-3);
}
.card h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}
.card h3 a {
  text-decoration: none;
}
.card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.card__price strong {
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 108%;
}
.card__price span {
  color: var(--ink-2);
  font-size: 0.9rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge .icon {
  width: 15px;
  height: 15px;
}
.badge--truck {
  background: var(--accent-soft);
  color: var(--ink);
}
.badge--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

/* Featured rail */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 23%);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
}
.rail > * {
  scroll-snap-align: start;
}
.rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .rail {
    grid-auto-columns: 78%;
  }
}

/* ---------- Home: pricing explainer ---------- */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.rate-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.rate-demo__head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.rate-demo__head img {
  border-radius: 12px;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.rate-demo__rates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.rate {
  padding: 18px 16px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.rate:first-child {
  border-left: 0;
}
.rate strong {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 108%;
}
.rate span {
  font-size: 0.85rem;
  color: var(--ink-2);
}
.rate em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ok);
}
.rate-demo__foot {
  padding: 16px 18px;
  background: var(--surface-2);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.fee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.fee-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
}
.fee-list .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .pricing {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .rate-demo__rates {
    grid-template-columns: repeat(2, 1fr);
  }
  .rate:nth-child(3) {
    border-left: 0;
  }
  .rate:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Home: audiences ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.audience__item {
  display: grid;
  gap: 18px;
  align-content: start;
}
.audience__item:first-child {
  grid-column: 1 / span 7;
}
.audience__item:last-child {
  grid-column: 8 / span 5;
  margin-top: clamp(0px, 8vw, 110px);
}
.audience__item img {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}
.audience__item:first-child img {
  aspect-ratio: 16 / 11;
}
.audience__item:last-child img {
  aspect-ratio: 4 / 5;
}
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tick-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.tick-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--ok);
}
@media (max-width: 860px) {
  .audience__item:first-child,
  .audience__item:last-child {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ---------- Home: quality + storm bands ---------- */
.quality {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.quality__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.quality__body {
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  gap: 20px;
  align-content: center;
}
@media (max-width: 860px) {
  .quality {
    grid-template-columns: minmax(0, 1fr);
  }
  .quality__media img {
    min-height: 240px;
    max-height: 320px;
  }
}
.storm {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: #f4f4f2;
  background: #1a1d21;
  isolation: isolate;
}
.storm > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.storm::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(14 16 19 / 0.92) 0%, rgb(14 16 19 / 0.78) 45%, rgb(14 16 19 / 0.25) 100%);
}
.storm__body {
  padding: clamp(32px, 6vw, 80px);
  max-width: 640px;
  display: grid;
  gap: 18px;
}
.storm__body p {
  color: rgb(244 244 242 / 0.85);
}
.storm__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.storm__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.storm__links a:hover {
  background: rgb(255 255 255 / 0.2);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  transition: transform 0.25s var(--ease);
  margin-top: 3px;
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 64ch;
  display: grid;
  gap: 10px;
}
@media (max-width: 860px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--on-accent);
}
.cta-band p {
  margin-top: 8px;
  max-width: 56ch;
}
.cta-band .btn--dark {
  --btn-bg: #17191c;
  --btn-ink: #f3f3f1;
  --btn-border: #17191c;
}
@media (max-width: 700px) {
  .cta-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px 36px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  text-decoration: none;
  color: var(--ink-2);
}
.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.footer-contact {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}
.footer-contact a,
.footer-contact div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact .icon {
  margin-top: 3px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.85rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Page heads and breadcrumbs ---------- */
.page-head {
  padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px);
  display: grid;
  gap: 14px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-strong);
}
.crumbs a {
  text-decoration: none;
  color: var(--ink-2);
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- Forms ---------- */
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field > label,
.label {
  font-weight: 650;
  font-size: 0.95rem;
}
.field .optional {
  font-weight: 500;
  color: var(--ink-3);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea {
  min-height: 140px;
  resize: vertical;
}
.select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
}
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--danger);
}
.hint {
  font-size: 0.85rem;
  color: var(--ink-2);
}
.error {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--danger);
}
.error:empty {
  display: none;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .form-grid,
  .form-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.check .error {
  grid-column: 2;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.segmented label {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  cursor: pointer;
}
.segmented label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.segmented input {
  position: absolute;
  opacity: 0;
}
.segmented label:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.segmented span {
  color: var(--ink-2);
  font-size: 0.85rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
}
.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--surface-2);
  font-size: 0.93rem;
}
.notice .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.notice--warn {
  background: var(--warn-soft);
}
.notice--warn .icon {
  color: var(--warn);
}
.notice--danger {
  background: var(--danger-soft);
}
.notice--danger .icon {
  color: var(--danger);
}
.notice--ok {
  background: var(--ok-soft);
}
.notice--ok .icon {
  color: var(--ok);
}
.notice--accent {
  background: var(--accent-soft);
}

/* ---------- Catalog ---------- */
.catalog-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--bg);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.catalog-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.search {
  position: relative;
  flex: 1 1 260px;
}
.search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
}
.search .input {
  padding-left: 42px;
}
.toolbar-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-selects .select {
  width: auto;
  min-width: 170px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--ink-3);
}
.chip[aria-pressed='true'],
.chip[aria-current='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.chip small {
  font-size: 0.78rem;
  opacity: 0.7;
}
.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 64px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-card);
}
.empty-state .icon {
  width: 40px;
  height: 40px;
  color: var(--ink-3);
}
.empty-state[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .catalog-toolbar {
    position: static;
  }
  .toolbar-selects,
  .toolbar-selects .select {
    width: 100%;
  }
  .toolbar-selects .select {
    flex: 1 1 140px;
    min-width: 0;
  }
}

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.pdp__media {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 10px;
}
.pdp__media figure {
  margin: 0;
}
.pdp__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  background: var(--surface-2);
}
.pdp__media figcaption {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 8px;
}
.pdp__buy {
  display: grid;
  gap: 22px;
}
.pdp__title {
  display: grid;
  gap: 12px;
}
.pdp__title h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}
.pdp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}
.periods legend {
  font-weight: 650;
  margin-bottom: 8px;
  padding: 0;
}
.period {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  cursor: pointer;
}
.period input {
  position: absolute;
  opacity: 0;
}
.period span {
  font-size: 0.85rem;
  color: var(--ink-2);
}
.period strong {
  font-size: 1.3rem;
  font-weight: 800;
  font-stretch: 108%;
}
.period em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ok);
  min-height: 1.1em;
}
.period:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--accent-soft);
}
.period:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.buy-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 12px;
}
.qty {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  height: 48px;
  overflow: hidden;
}
.qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.qty button:hover {
  background: var(--surface-2);
}
.qty input {
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  width: 100%;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.buy-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.buy-total strong {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 108%;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.fact {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--surface-2);
  font-size: 0.9rem;
}
.fact strong {
  display: block;
  font-size: 0.95rem;
}
.fact .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
@media (max-width: 520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
  }
  .pdp__media {
    position: static;
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.detail-block--specs {
  grid-column: span 7;
}
.detail-block--included {
  grid-column: span 5;
}
.detail-block--use {
  grid-column: span 6;
}
.detail-block--safety {
  grid-column: span 6;
  background: var(--accent-soft);
  border-color: transparent;
}
@media (max-width: 860px) {
  .detail-block--specs,
  .detail-block--included,
  .detail-block--use,
  .detail-block--safety {
    grid-column: 1 / -1;
  }
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
}
.spec-grid div {
  display: grid;
  gap: 2px;
}
.spec-grid dt {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 600;
}
.spec-grid dd {
  margin: 0;
  font-weight: 650;
}
@media (max-width: 520px) {
  .spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plain-list {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}
.plain-list li::marker {
  color: var(--ink-3);
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.cart-lines {
  display: grid;
  gap: 14px;
}
.line {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.line__img {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--surface-2);
}
.line__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.line__top h3 {
  font-size: 1.05rem;
}
.line__top h3 a {
  text-decoration: none;
}
.line__top h3 a:hover {
  text-decoration: underline;
}
.line__controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 124px;
  gap: 10px;
  margin-top: 12px;
}
.line__controls .field > label {
  font-size: 0.8rem;
  color: var(--ink-2);
}
.line__controls .qty {
  height: 44px;
  grid-template-columns: 36px 1fr 36px;
}
.line__controls .input,
.line__controls .select {
  min-height: 44px;
}
.line__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.87rem;
  color: var(--ink-2);
}
.line__price {
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
}
.line .notice {
  margin-top: 10px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 0.87rem;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--danger);
}
@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .line {
    grid-template-columns: minmax(0, 1fr);
  }
  .line__img {
    max-height: 180px;
  }
  .line__controls {
    grid-template-columns: 1fr 1fr;
  }
  .line__controls .field:first-child {
    grid-column: 1 / -1;
  }
}
.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}
.summary-rows {
  display: grid;
  gap: 10px;
  margin: 0;
}
.summary-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.summary-rows dt {
  color: var(--ink-2);
}
.summary-rows dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}
.summary-rows .total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}
.summary-rows .total dt {
  color: var(--ink);
  font-weight: 700;
}
.summary-rows .total dd {
  font-weight: 850;
  font-size: 1.35rem;
}
.free {
  color: var(--ok);
}

/* ---------- Auth, checkout, account ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 5vw, 56px) 0;
}
.auth-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 16px;
}
.auth-aside img {
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-aside {
    position: static;
  }
  .auth-aside img {
    display: none;
  }
}
.narrow {
  max-width: 560px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  counter-reset: prog;
}
.progress li {
  display: grid;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink-3);
}
.progress li::before {
  content: '';
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
}
.progress li[data-state='done']::before,
.progress li[data-state='current']::before {
  background: var(--ink);
}
.progress li[data-state='current'] {
  color: var(--ink);
}
@media (max-width: 560px) {
  .progress li span {
    display: none;
  }
}
.form-step {
  display: grid;
  gap: 22px;
}
.form-step[hidden] {
  display: none;
}
.form-step > h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.fieldset legend {
  font-weight: 750;
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding: 0;
}
.strength {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.strength span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: width 0.25s var(--ease), background-color 0.25s;
}
.initials-box {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 16px;
  align-items: end;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.initials-box p {
  font-weight: 650;
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .initials-box {
    grid-template-columns: minmax(0, 1fr);
  }
}
.checkout-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.checkout-steps li .icon {
  width: 18px;
  height: 18px;
}
.checkout-steps li[data-state='done'] {
  background: var(--ok-soft);
  color: var(--ok);
}
.checkout-steps li[data-state='current'] {
  background: var(--ink);
  color: var(--bg);
}
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.gate__body {
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  gap: 18px;
  align-content: center;
}
.gate__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
@media (max-width: 860px) {
  .gate {
    grid-template-columns: minmax(0, 1fr);
  }
  .gate__media {
    display: none;
  }
}
.data-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}
.data-list div {
  display: grid;
  gap: 2px;
}
.data-list dt {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-weight: 600;
}
.data-list dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .data-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.account-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 800px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.order {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.order:first-of-type {
  border-top: 0;
}
.order__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Delivery page ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.area {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--surface);
  border: 1px solid var(--line);
}
.area strong {
  display: block;
  margin-bottom: 4px;
}
.area span {
  font-size: 0.87rem;
  color: var(--ink-2);
}
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.compare__col {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-rows: auto 1fr;
}
.compare__col img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.compare__body {
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding-bottom: 18px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before {
  display: none;
}
.timeline .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}
.timeline .dot .icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 820px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.contact-cards {
  display: grid;
  gap: 12px;
}
.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}
.contact-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}
.contact-card strong {
  display: block;
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
}
.hours dt {
  color: var(--ink-2);
}
.hours dd {
  margin: 0;
  font-weight: 600;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
  font-size: 0.9rem;
}
.toc h2 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
}
.toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.toc__other {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prose {
  max-width: 76ch;
  display: grid;
  gap: 16px;
}
.prose section {
  display: grid;
  gap: 14px;
  padding-top: 28px;
}
.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}
.prose h3 {
  font-size: 1.08rem;
  margin-top: 6px;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose strong {
  color: var(--ink);
}
.prose .caps {
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.95rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  font-weight: 700;
  background: var(--surface-2);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.statutory {
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  font-weight: 700;
  background: var(--surface);
  color: var(--ink) !important;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.legal-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.legal-index a {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}
.legal-index a:hover {
  border-color: var(--ink-3);
}
.legal-index span {
  color: var(--ink-2);
  font-size: 0.93rem;
}
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
  }
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-weight: 600;
  animation: toast-in 0.35s var(--ease);
}
.toast .icon {
  color: var(--accent);
}
.toast a {
  color: var(--accent);
  white-space: nowrap;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .hero__copy > *,
  .hero__media {
    animation: rise 0.8s var(--ease) both;
  }
  .hero__copy > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero__copy > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero__media {
    animation-delay: 140ms;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Misc ---------- */
mark {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 4px;
}
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 5px;
}
[hidden] {
  display: none !important;
}
