/* Ahlskog Transport – sivustoluonnos */

@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --ink: #123B59;          /* headings, deep blue */
  --text: #1E3548;         /* body copy */
  --muted: #53667A;        /* secondary copy, 5.4:1 on paper */
  --brand: #004A8F;        /* logo blue */
  --red: #C1231E;          /* primary actions, 5.8:1 with white */
  --red-dark: #9E1B17;
  --rule: #DAD7CE;
  --rule-strong: #B7B3A7;
  --field-border: #75818E;
  --tint: #EDF2F7;
  --error: #B0231C;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --bar-h: 0px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t: 160ms ease;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

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

section[id], footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9375rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.link-btn {
  background: none; border: 0; padding: 8px 0; color: var(--brand); font: inherit;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
}

.badge-24 {
  display: inline-block; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.5; vertical-align: 0.1em; white-space: nowrap;
}

/* Header */
.site-header {
  position: relative; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-link { display: block; padding: 6px 0; }
.logo { height: 38px; width: auto; }
.draft-tag {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: 1px 7px; white-space: nowrap;
}
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--red); }
.header-tools { display: none; align-items: center; gap: 20px; }

.lang-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  font: 600 0.875rem/1 var(--font); color: var(--ink); background: transparent;
  border: 0; min-width: 44px; min-height: 40px; padding: 0 10px; cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--rule-strong); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-switch button:focus-visible { outline-offset: -3px; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; color: var(--ink); font: 600 0.9375rem var(--font); cursor: pointer;
}
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 24px rgba(18, 59, 89, 0.12);
  padding-bottom: 20px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; min-height: 54px;
  color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 600;
  border-bottom: 1px solid var(--rule);
}
.mobile-menu-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 16px; }
.mobile-menu-foot .lang-switch button { min-height: 48px; min-width: 52px; }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .site-header { position: sticky; top: 0; }
  .main-nav, .header-tools { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .logo { height: 44px; }
}

/* Hero */
.hero { padding-block: 28px 0; }
.hero-grid { display: grid; gap: 28px; }
.eyebrow { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.35rem, 9.5vw, 4.25rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--brand); }
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); margin-top: 16px; max-width: 34em; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .actions .btn { flex: 1 1 150px; }
.hero-contacts {
  margin: 24px 0 0; display: grid; gap: 0;
  border-top: 1px solid var(--rule);
}
.hero-contacts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.hero-contacts dt { font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.hero-contacts dd { margin: 0; }
.hero-contacts a { font-weight: 600; font-size: 1.0625rem; color: var(--ink); white-space: nowrap; }
.hero-photo { margin: 0 calc(var(--gutter) * -1); }
.hero-photo picture { display: block; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 50%; background: #dfe3e6; }

@media (min-width: 560px) {
  .hero .actions .btn { flex: 0 0 auto; }
  .hero-contacts { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .hero-contacts > div { flex-direction: column; gap: 2px; }
}
@media (min-width: 900px) {
  .hero { padding-block: 56px 72px; }
  .hero-grid { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 48px; align-items: stretch; }
  .hero-text { align-self: center; }
  .hero h1 { font-size: clamp(2.75rem, 3.9vw, 3.5rem); }
  .hero-photo { margin: 0; align-self: center; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.section-white { background: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 600; color: var(--brand); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--red); border-radius: 2px; transform: skewX(-20deg); }
.kicker-light { color: #CFE0F2; }
.section h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); font-weight: 700; letter-spacing: -0.01em; }
.section-lead { margin-top: 12px; font-size: 1.125rem; color: var(--text); max-width: 38em; }
.fine { font-size: 0.875rem; color: var(--muted); }

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
}
.service-num { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; }
.service-name h3 { font-size: 1.75rem; font-weight: 700; color: var(--brand); letter-spacing: 0.01em; }
.service-name p { font-weight: 600; color: var(--ink); }
.service-text, .service-actions { grid-column: 2; }
.service-text { color: var(--text); margin-top: 4px; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.link-call { gap: 0.3em; font-weight: 600; color: var(--ink); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 900px) {
  .service-row { grid-template-columns: 56px minmax(180px, 3fr) minmax(0, 5fr) minmax(250px, 3fr); align-items: center; gap: 24px; padding: 28px 0; }
  .service-num { padding-top: 0; }
  .service-text, .service-actions { grid-column: auto; margin: 0; }
  .service-actions { justify-content: flex-end; }
}

.aircargo {
  margin-top: 40px; background: var(--ink); color: #fff;
  display: grid; gap: 24px; padding: 28px var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
}
.aircargo h3 { color: #fff; font-size: 1.75rem; }
.aircargo-text p:last-child { margin-top: 8px; color: #E3ECF4; max-width: 34em; }
.aircargo-hours { font-weight: 500; color: #E3ECF4; }
.aircargo-number {
  display: inline-block; color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; border-bottom: 2px solid var(--red); line-height: 1.2; margin-top: 4px;
}
.aircargo-number:hover { border-bottom-color: #fff; }
.aircargo-note { margin-top: 10px; font-size: 0.9375rem; color: #C9D8E6; }
.aircargo :focus-visible { outline-color: #fff; }
@media (min-width: 700px) {
  .aircargo { margin-inline: 0; padding: 36px 40px; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

/* Route finder */
.finder { display: grid; gap: 24px; }
.finder-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.swap-btn {
  width: 44px; height: 48px; display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--radius); cursor: pointer;
}
.swap-btn:hover { border-color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > legend, .choice-group > legend { font-weight: 600; color: var(--ink); font-size: 1rem; }
.hint { font-size: 0.9375rem; color: var(--muted); margin-top: -2px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--font); color: var(--text);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23123B59' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[type="date"] { appearance: none; -webkit-appearance: none; display: block; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.finder-result { min-height: 200px; }
.board { border: 1px solid var(--rule-strong); border-top: 4px solid var(--brand); background: var(--paper); padding: 24px; }
.board-label { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.board-route { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 6px; font-weight: 700; }
.board-route .arrow { color: var(--red); padding-inline: 4px; }
.times { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule-strong); }
.times li {
  flex: 0 0 auto; min-width: 33.333%; padding: 14px 16px 14px 0;
  font-size: clamp(1.75rem, 6vw, 2.25rem); font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--rule-strong);
}
.times-caption { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }
.board-note { margin-top: 18px; font-weight: 500; color: var(--ink); }
.board .btn { margin-top: 16px; }
.board-empty { border-top-color: var(--rule-strong); }
.board-empty h3 { font-size: 1.375rem; }
.board-empty p { margin-top: 8px; }

.samples-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.samples { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.samples li { border-bottom: 1px solid var(--rule); }
.sample-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 4px; background: transparent; border: 0; cursor: pointer;
  font: 500 1rem var(--font); color: var(--ink); text-align: left;
}
.sample-btn:hover { background: var(--tint); }
.sample-btn .sample-times { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9375rem; white-space: nowrap; }
.sample-btn[aria-pressed="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
.sample-btn:focus-visible { outline-offset: -3px; }
.finder-foot { margin-top: 16px; font-weight: 500; }
.finder-foot a::after { content: " ↗"; }
.finder-samples .fine { margin-top: 6px; }

@media (min-width: 900px) {
  .finder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "controls result" "samples result"; gap: 28px 56px; align-items: start; }
  .finder-controls { grid-area: controls; }
  .finder-result { grid-area: result; }
  .finder-samples { grid-area: samples; }
  .board { padding: 32px 36px; }
}

/* Recurring */
.recurring-grid { display: grid; gap: 32px; }
.list-title { font-size: 1rem; font-weight: 600; margin-top: 24px; }
.ruled-list { list-style: none; margin: 8px 0 28px; padding: 0; border-top: 1px solid var(--rule); max-width: 460px; }
.ruled-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.ruled-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--red); }
.recurring-photo { margin: 0 calc(var(--gutter) * -1); }
.recurring-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 50%; background: #dfe3e6; }
@media (min-width: 900px) {
  .recurring-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
  .recurring-photo { margin: 0; }
  .recurring-photo img { aspect-ratio: 4 / 3; }
}

/* Enquiry */
.enquiry-grid { display: grid; gap: 28px; }
.demo-note {
  display: flex; gap: 10px; align-items: baseline; margin-top: 16px;
  padding: 12px 14px; background: var(--tint); border-left: 3px solid var(--brand); color: var(--ink); font-size: 0.9375rem;
}
.demo-label { font-weight: 700; font-size: 0.8125rem; color: #fff; background: var(--brand); padding: 1px 7px; border-radius: 2px; flex: none; }
.enquiry-intro .section-lead { font-size: 1rem; }
.direct { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); display: none; }
.direct-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.direct a { font-weight: 600; }

.enquiry-panel { background: var(--paper); border: 1px solid var(--rule); padding: 24px var(--gutter); margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 700px) { .enquiry-panel { margin-inline: 0; padding: 32px; } }
@media (min-width: 900px) {
  .enquiry-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
  .enquiry-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .direct { display: block; }
  .enquiry-panel { padding: 40px; }
}

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; }
.step-bar { height: 4px; background: var(--rule); border-radius: 2px; }
.step-bar.is-active { background: var(--brand); }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step > * + * { margin-top: 22px; }
.step-legend { padding: 0 0 20px; margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.2; color: var(--ink); display: flex; flex-direction: column; float: left; width: 100%; }
.step > .step-legend + * { clear: both; margin-top: 0; }
.step-count { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; gap: 16px; } }

.choice-group > legend { margin-bottom: 8px; padding: 0; }
.choices { display: grid; gap: 8px; }
@media (min-width: 560px) {
  .choices-2 { grid-template-columns: 1fr 1fr; }
  .choices-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px; height: 100%;
  min-height: 52px; padding: 10px 14px; background: var(--white);
  border: 1px solid var(--field-border); border-radius: var(--radius);
  font-weight: 500; color: var(--text); line-height: 1.25;
  transition: border-color var(--t), background-color var(--t);
}
.choice span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--field-border); background: #fff; box-shadow: inset 0 0 0 3px #fff;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--brand); background: var(--tint); box-shadow: inset 0 0 0 1px var(--brand); color: var(--ink); font-weight: 600; }
.choice input:checked + span::before { border-color: var(--brand); background: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.contact-group > legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 4px; }
.contact-group .field-row { margin-top: 10px; }
.contact-group .field > label { font-weight: 500; }

.error { color: var(--error); font-weight: 600; font-size: 0.9375rem; display: flex; gap: 6px; }
.error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--error); color: #fff; font-size: 0.75rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.choice-group.has-error .choice span { border-color: var(--error); }

.error-summary { border: 2px solid var(--error); background: #fff; padding: 16px 18px; margin-bottom: 22px; }
.error-summary h3 { font-size: 1.0625rem; color: var(--error); }
.error-summary ul { margin: 8px 0 0; padding-left: 20px; }
.error-summary li { margin: 4px 0; }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }

.context { border: 1px solid var(--rule-strong); background: var(--white); padding: 12px 14px; margin-bottom: 22px; }
.context-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.context-items { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.context-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.context-items .remove { background: none; border: 0; color: var(--brand); font: 500 0.875rem var(--font); text-decoration: underline; cursor: pointer; min-height: 40px; padding: 0 4px; white-space: nowrap; }

.submit-note { font-size: 0.9375rem; color: var(--muted); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 4px; }
.form-nav .btn-primary { margin-left: auto; }
@media (max-width: 559px) {
  .form-nav { flex-direction: column-reverse; align-items: stretch; }
  .form-nav .btn { width: 100%; margin-left: 0; }
}

/* Preview */
.preview-flag { border: 2px solid var(--ink); background: var(--white); padding: 18px 20px; }
.preview-flag h3 { font-size: 1.375rem; }
.preview-flag p { margin-top: 6px; }
.summary-title { font-size: 1.0625rem; margin-top: 28px; }
.summary { margin: 10px 0 0; border-top: 2px solid var(--ink); }
.summary > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.summary dt { font-size: 0.875rem; color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; color: var(--ink); font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 560px) {
  .summary > div { grid-template-columns: 38% 1fr; gap: 16px; }
  .summary dt { font-size: 0.9375rem; }
}
.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 559px) { .preview-actions .btn { width: 100%; } }
.copy-status { min-height: 1.5em; margin-top: 10px; font-weight: 600; color: var(--brand); }
.copy-fallback { width: 100%; margin-top: 8px; font-size: 0.9375rem; }
.preview-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.preview-foot a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #E3ECF4; padding-block: 56px 32px; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-title { color: #fff; font-size: 1.75rem; margin-bottom: 28px; }
.footer-grid { display: grid; gap: 28px; }
.footer-block { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 14px; }
.footer-block h3 { color: #fff; font-size: 1.125rem; margin-bottom: 6px; }
.footer-block p { margin-top: 4px; }
.footer-desc { color: #C9D8E6; font-size: 0.9375rem; }
.footer-phone { font-size: 1.375rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); display: inline-block; line-height: 1.3; margin: 2px 0 4px; }
.footer-phone:hover { border-bottom-color: #fff; }
.site-footer address { font-style: normal; }
.lang-switch-footer { border-color: rgba(255,255,255,0.4); margin-top: 4px; }
.lang-switch-footer button { color: #fff; font-weight: 500; padding: 0 12px; }
.lang-switch-footer button + button { border-left-color: rgba(255,255,255,0.4); }
.lang-switch-footer button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.footer-links { margin-top: 14px !important; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-note { margin-top: 36px; font-size: 0.875rem; color: #AFC3D6; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 2fr 3fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule-strong);
  box-shadow: 0 -6px 16px rgba(18, 59, 89, 0.08);
  transition: transform var(--t);
}
.action-bar .btn { min-height: 48px; padding: 0 12px; }
body.is-typing .action-bar, body.menu-open .action-bar { transform: translateY(110%); }
@media (max-width: 999px) {
  :root { --bar-h: calc(64px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1000px) {
  .action-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
