/* ==========================================================================
   Nagytarcsa Konténer Raktár – base stylesheet for all three pages (light mode).
   Plain CSS only: no build step, no frameworks, no web fonts. The site loads
   nothing from third parties, and the only thing it stores is a visitor's
   light/dark choice – and only when they make one (see theme.js).

   DARK MODE lives in dark.css, which every page links after this file and
   which only overrides it. The switch for it is styled further down.

   PLACEHOLDERS
   Every value the client has not supplied yet is wrapped in
   <span class="todo">…</span> and has a `<!-- TODO(...) -->` comment in the
   HTML, so a search for "TODO" lists all of them. The .todo rule at the end
   of this file paints them yellow on the page. Once the real values are in,
   delete that rule (or the class) to remove the highlights.
   ========================================================================== */

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --tint: #e9eff4;
  --ink: #152433;
  --muted: #52606f;
  --line: #dfe4e9;
  /* brand navy used as a surface: contact band, featured price card, header stripe */
  --primary: #0f3a56;
  /* the same navy used for text, lines and icons – it turns light blue in dark mode */
  --primary-fg: #0f3a56;
  --primary-dark: #0a283d;
  --primary-soft: #c7d5e1;
  --accent: #f28c28;
  --accent-hover: #f89d45;
  --accent-text: #a8540c;
  --accent-soft: #fdecd9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 36, 51, .05), 0 12px 32px rgba(21, 36, 51, .08);
  --container: 1120px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keeps anchored sections clear of the sticky header */
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 1.1rem + 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.75vw, 2.375rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }

p, ul, ol, dl, dd, figure { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--primary-fg); }
a:hover { color: var(--accent-text); }

main:focus { outline: none; }

::selection { background-color: var(--accent); color: var(--primary-dark); }

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .6rem 1rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: .75rem; color: #fff; }

/* ---------- Layout helpers ---------- */

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background-color: var(--tint); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: .25rem;
  border-radius: 2px;
  background-color: var(--accent);
}

.section-intro {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hl {
  font-style: normal;
  white-space: nowrap;
  padding: 0 .08em;
  background-image: linear-gradient(180deg, transparent 68%, var(--accent-soft) 68%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .65rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }

.btn--accent { background-color: var(--accent); color: var(--primary-dark); }
.btn--accent:hover { background-color: var(--accent-hover); color: var(--primary-dark); }

.btn--outline { background-color: transparent; border-color: var(--primary-fg); color: var(--primary-fg); }
.btn--outline:hover { background-color: rgba(15, 58, 86, .08); color: var(--primary-fg); }

.btn--accent:focus-visible { outline-color: var(--primary-fg); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* corrugated container wall, used as the brand stripe */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--primary) 0 20px, #1b5178 20px 40px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  /* lets the narrow-screen rule at .header-phone measure the header itself, not the device */
  container-type: inline-size;
}

/* The name is the logo – there is no separate icon. A small place name sits above
   the business name; both are plain text. */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark-top {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.wordmark-name {
  /* grows with the window so that it still fits beside the other header buttons on the
     narrowest phones: 17 px at 360 px wide, 22 px from 480 px up */
  font-size: clamp(1.0625rem, 4.167vw + 2px, 1.375rem);
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--primary-fg);
}

.brand:hover .wordmark-name { color: var(--accent-text); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: .5rem .85rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: .975rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { background-color: var(--tint); color: var(--primary-fg); }

.header-phone {
  position: relative;
  min-height: 2.75rem;
  padding: .6rem 1.15rem;
  white-space: nowrap;
}

/* Very narrow screens: the brand, the theme switch and the call button do not fit side by side
   while the button also says "Hívás". Below this width the button shows its phone icon only;
   the word stays in the markup for screen readers. The query asks the header how much room it
   really has, so it is right whether or not the browser reserves space for a scrollbar. */
@container (max-width: 19.5rem) {
  .header-phone { padding-inline: 1rem; }

  .phone-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
  background-image:
    radial-gradient(60% 70% at 85% 0%, #d9e6ef 0%, rgba(217, 230, 239, 0) 70%),
    linear-gradient(180deg, #edf2f6 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  /* extra room at the bottom so the facts card can overlap */
  padding-bottom: clamp(5rem, 10vw, 7.5rem);
}

/* The title must not outgrow its own column: the first line of the slogan is a single long
   word ("Konténerraktár," is about 7.8 em wide) that cannot wrap. So the title is capped at
   12.2% of the column width; where there is room, this leaves the usual size untouched and it
   only steps in on narrow columns. Browsers without container units keep the plain size. */
.hero-copy { container-type: inline-size; }

.hero h1 {
  font-size: clamp(2.125rem, 1.1rem + 4.2vw, 3.5rem);
  font-size: min(clamp(2.125rem, 1.1rem + 4.2vw, 3.5rem), 12.2cqi);
}

.hero .lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  color: var(--muted);
}

/* The two statements under the slogan each get a line of their own on wide screens. On narrower
   ones the first would not fit on a single line, so there the text simply flows instead. */
.lead-br { display: none; }

@media (min-width: 1100px) {
  .lead-br { display: inline; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-media {
  aspect-ratio: 640 / 440;
  overflow: hidden;
  border-radius: 24px;
  background-color: #e3ecf3;
  box-shadow: var(--shadow);
}

.hero-media > img,
.hero-media > svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facts strip ---------- */

.facts {
  position: relative;
  z-index: 2;
  margin-top: -3.25rem;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts-list li {
  display: grid;
  gap: .1rem;
  padding: 1.35rem 1.75rem;
}

.facts-list li + li { border-left: 1px solid var(--line); }

.fact-value {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--primary-fg);
  white-space: nowrap;
}

.fact-label { font-size: .9375rem; color: var(--muted); }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.75rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-tag {
  align-self: flex-start;
  margin-top: 1rem;
  padding: .2rem .7rem;
  border-radius: 999px;
  background-color: var(--tint);
  color: var(--primary-fg);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .45rem;
  margin-top: 1rem;
}

.price-value {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  white-space: nowrap;
}

.price-unit { font-weight: 600; color: var(--muted); }
.price-net { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }

.price-card .check-list { margin: 1.5rem 0 2rem; }
.price-card .btn { width: 100%; margin-top: auto; }

.price-card--featured {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.price-card--featured .price-tag { background-color: var(--accent); color: var(--primary-dark); }
.price-card--featured .price-value { color: var(--accent); }
.price-card--featured .price-unit,
.price-card--featured .price-net { color: var(--primary-soft); }

.price-badge {
  position: absolute;
  top: -.85rem;
  right: 1.25rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: .8125rem;
  font-weight: 800;
}

.fineprint {
  max-width: 48rem;
  margin-top: 1.75rem;
  font-size: .9375rem;
  color: var(--muted);
}

/* ---------- Check list ---------- */

.check-list {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li { position: relative; padding-left: 1.85rem; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .27em;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background-color: var(--accent-soft);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: .39rem;
  top: .55rem;
  width: .35rem;
  height: .6rem;
  border: solid var(--primary-fg);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.price-card--featured .check-list li::before { background-color: var(--accent); }
.price-card--featured .check-list li::after { border-color: var(--primary-dark); }

/* ---------- Container section ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.feature-list {
  display: grid;
  gap: 1.35rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--primary-fg);
}

.feature-icon svg { width: 1.4rem; height: 1.4rem; }

.feature h3 { margin-bottom: .15rem; font-size: 1.0625rem; }
.feature p { color: var(--muted); }

.plan-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  grid-template-rows: auto 1.75rem;
  column-gap: .75rem;
}

.plan-floor {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  /* height = ~1/5 of the width (12,2 m : 2,44 m) via percentage padding, so the plan stays to scale */
  height: 0;
  min-height: 3.5rem;
  padding-top: 20.5%;
  overflow: hidden;
  border: 3px solid var(--primary-fg);
  border-radius: 10px;
  background-color: var(--surface);
}

.plan-wall {
  position: absolute;
  inset: 0 9% 0 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 24px);
}

.plan-door {
  position: absolute;
  inset: 0 0 0 91%;
  border-left: 3px solid var(--primary-fg);
  background-color: var(--accent);
}

/* the seam between the two door leaves */
.plan-door::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  width: 2px;
  margin-left: -1px;
  background-color: rgba(255, 255, 255, .9);
}

.plan-area {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: .05em .7em;
  border-radius: 999px;
  background-color: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--primary-fg);
  font-size: clamp(1rem, .85rem + .8vw, 1.375rem);
  font-weight: 800;
  white-space: nowrap;
}

.dim {
  position: relative;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}

.dim span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 .5rem;
  background-color: var(--surface);
  color: var(--primary-fg);
  white-space: nowrap;
}

.dim--length {
  grid-column: 1;
  grid-row: 2;
  height: 1.75rem;
  margin-top: .5rem;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.dim--length::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background-color: currentColor;
}

.dim--width {
  grid-column: 2;
  grid-row: 1;
  width: 1.5rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.dim--width::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background-color: currentColor;
}

.dim--width span {
  padding: .5rem 0;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
}

.plan-caption {
  margin-top: 1rem;
  font-size: .9375rem;
  color: var(--muted);
}

.specs {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.specs > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
}

.specs > div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin-left: auto; font-weight: 700; text-align: right; white-space: nowrap; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.gallery > * { min-width: 0; min-height: 0; }

.gallery > :first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery > :not(:first-child) { aspect-ratio: 4 / 3; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.img-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .2rem;
  padding: 1rem;
  border: 2px dashed #b4c1cd;
  border-radius: var(--radius);
  background-color: #f1f5f8;
  /* corrugated wall pattern */
  background-image: repeating-linear-gradient(90deg, rgba(15, 58, 86, .06) 0 2px, transparent 2px 22px);
  color: var(--muted);
  font-size: .9375rem;
  text-align: center;
}

.img-placeholder strong { font-size: 1.0625rem; color: var(--primary-fg); }

.ph-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: .4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--primary-fg);
  opacity: .6;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: .75rem;
  margin-top: 2rem;
}

.faq details {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--primary-fg); }

.faq summary::after {
  content: "";
  flex: none;
  width: .75rem;
  height: .75rem;
  margin-right: .3rem;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-position: center, center;
  background-size: 100% 2px, 2px 100%;
  background-repeat: no-repeat;
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
}

.faq-body p + p { margin-top: .6em; }

/* ---------- Contact ---------- */

.contact {
  background-color: var(--primary);
  color: #fff;
}

.contact .eyebrow { color: var(--accent); }
.contact h2 { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact-text {
  max-width: 30rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--primary-soft);
}

.contact-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .06);
}

.contact-icon { background-color: var(--accent); color: var(--primary-dark); }

.contact-label {
  display: block;
  font-size: .875rem;
  color: var(--primary-soft);
}

.contact-value {
  display: inline-block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-value:hover { color: var(--accent); text-decoration: underline; }

.contact-sub {
  display: inline-block;
  margin-top: .1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-sub:hover { color: #fff; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2rem;
  background-color: var(--primary-dark);
  color: var(--primary-soft);
  font-size: .9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

/* the same wordmark as in the header; the footer is always dark, so its colours are fixed */
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.footer-brand .wordmark-top { color: var(--accent); }
.footer-brand .wordmark-name { font-size: clamp(1.125rem, 4.167vw + 2px, 1.25rem); color: #fff; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Legal pages ---------- */

.legal h1 { margin-bottom: .5rem; }

.legal-meta { margin-bottom: 1.75rem; font-size: .9375rem; color: var(--muted); }

.legal h2 {
  margin-top: 2.25rem;
  margin-bottom: .6rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}

.legal p + p { margin-top: .75em; }

.legal a { overflow-wrap: anywhere; }

.legal address {
  font-style: normal;
  margin-top: .6em;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.legal-data {
  display: grid;
  row-gap: .6rem;
  margin-top: 1rem;
}

/* one label / value pair per row */
.legal-data > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  align-items: baseline;
  column-gap: 1.5rem;
}

.legal-data dt { color: var(--muted); }
.legal-data dd { font-weight: 600; }

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */

@media (max-width: 1119px) {
  .header-phone .phone-number { display: none; }
}

@media (max-width: 999px) {
  .site-nav { display: none; }
}

@media (max-width: 899px) {
  .hero-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media { max-width: 34rem; }
}

@media (max-width: 959px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
}

@media (max-width: 719px) {
  .facts { margin-top: -2.25rem; }

  .facts-list { grid-template-columns: 1fr; }

  .facts-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.25rem;
  }

  .facts-list li + li { border-left: 0; border-top: 1px solid var(--line); }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gallery > :first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 599px) {
  .price-grid { max-width: none; }
}

@media (max-width: 479px) {
  .legal-data > div { grid-template-columns: 1fr; }
  .legal-data dd { margin-bottom: .6rem; }

  /* spec rows: the label gives way first (huge shrink weight) and wraps; a value only
     breaks onto a second line if it still does not fit next to the label's shortest form */
  .specs dt { flex-shrink: 999; }
  .specs dd { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after { transition: none !important; }
}

/* ---------- Theme toggle ----------
   One button in the header; a click switches between light and dark (see theme.js).

   theme.js sets data-theme on <html> to the mode being shown (light or dark) before the
   first paint. That reveals the button and picks its icon – so without JavaScript the
   button stays hidden and the site simply follows the system via dark.css.
   The icon shows what a click switches to: a moon while it is light, a sun while it is dark. */

.theme {
  display: none;
  place-items: center;
  /* never squeezed by its neighbours: stays a proper 40 × 44 px touch target */
  flex: none;
  position: relative;
  width: 2.5rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink);
  cursor: pointer;
  /* sits a little closer to the call button than the other header items do */
  margin-right: -.5rem;
}

/* a little extra room to hit on each side, inside the gaps to its neighbours */
.theme::before {
  content: "";
  position: absolute;
  inset: 0 -2px;
}

:root[data-theme] .theme { display: grid; }

.theme:hover { background-color: var(--tint); color: var(--primary-fg); }

.theme-icon { display: none; width: 1.35rem; height: 1.35rem; }

:root[data-theme="light"] .theme-icon--dark,
:root[data-theme="dark"] .theme-icon--light { display: block; }

/* ---------- Placeholder marker (delete once every TODO is filled in) ---------- */

.todo {
  padding: 0 .15em;
  border-radius: 3px;
  background-color: rgba(255, 196, 40, .38);
  border-bottom: 2px dashed currentColor;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
