/* ============================================================
   XINON Design System — xinon.css
   Canonical component stylesheet. One system for:
     • the four websites   (new.xinon.at / xinon.eu / xinon.systems / portal.xinon.at)
     • the shop            (online-order.xinon.at)
     • print/marketing     (flyers — brand layer only)
   Source of truth: portal.xinon.at (finest work) on top of the shop
   style.css, reconciled with new.xinon.at/css/base.css and the flyer
   GUIDELINES. No build step, no CDN. Plain CSS custom properties.

   Token naming is the SHOP naming (--primary, --yellow, …) extended
   with marketing aliases (--on-surface, --secondary-container, …) so
   both existing markups keep working.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-700-latin.woff") format("woff");
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — canonical names. --blue is sampled from the logo; --navy is a darker
     shade of it for headings, text and deep surfaces (it is not a logo colour). */
  --blue: #005284;                 /* XINON blue — buttons, bands, links */
  --navy: #003b60;                 /* headings, structure, footer */
  /* Material-style names the shop and base.css markup use. Aliases only. */
  --primary: var(--navy);
  --primary-container: var(--blue);
  --primary-fixed: #cee5ff;        /* tonal blue — subtle fills */
  --primary-fixed-dim: #97cbff;
  --ui-blue: #44bef1;              /* interactive accent, input focus halo */
  --focus: var(--blue); /* focus ring on light surfaces (8.2:1 on white) */
  --yellow: #fbc51d;               /* XINON yellow, sampled from the logo — primary action only */
  --yellow-dim: #f4bf13;
  --yellow-soft: #fff6d6;
  --yellow-fixed: #ffdf95;
  --on-yellow: #4a3800;

  /* Surfaces */
  --surface: #f1fbff;              /* app background (cool tint) */
  --surface-low: #e9f6fb;
  --surface-variant: #d8e5e9;
  --card: #ffffff;

  /* Text */
  --text: #121d21;
  --muted: #41474f;

  /* Lines */
  --outline: #717880;              /* strong line / input border */
  --border: #c1c7d0;               /* default line */

  /* Error */
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* ---- Marketing aliases (so base.css markup keeps working) ---- */
  --on-surface: var(--text);
  --on-surface-variant: var(--muted);
  --on-background: var(--text);
  --on-primary: #ffffff;
  --on-primary-container: #8dc7fe;
  --secondary-container: var(--yellow);
  --on-secondary-container: var(--on-yellow);
  --secondary-fixed: var(--yellow-fixed);
  --secondary-fixed-dim: var(--yellow-dim);
  --surface-container-lowest: var(--card);
  --surface-container-low: var(--surface-low);
  --outline-variant: var(--border);
  --xinon-blue: var(--blue);
  --xinon-yellow: var(--yellow);
  --xinon-ui-blue: var(--ui-blue);

  /* Type */
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Spacing (8px base) */
  --sp-xs: 4px;
  --sp-base: 8px;
  --sp-sm: 12px;
  --sp-md: 24px;
  --sp-lg: 48px;
  --sp-xl: 80px;
  --gutter: 24px;

  /* Radius — soft, never pill */
  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;

  /* Elevation — used on hover only */
  --shadow-card: 0 10px 30px rgba(0, 59, 96, .14);
  --shadow-nav: 0 1px 0 var(--border);

  /* Motion — short, decelerating, only in answer to an action.
     Curves are Material 3 (standard / emphasized decelerate / accelerate). */
  --dur-fast: 120ms;               /* colour, press */
  --dur-base: 200ms;               /* hover, small state change */
  --dur-slow: 320ms;               /* expand, yellow bar sweep, dropdown */
  --dur-hero: 1800ms;              /* the one page-load moment (hero fiber pulse) */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 1, 1);

  /* Layout */
  --wrap: 760px;                   /* app / form column */
  --container-max: 1200px;         /* marketing container */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 16px/1.6 var(--font-sans);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
/* Links in running copy keep an underline (WCAG 1.4.1). Zero specificity, so
   any component rule (nav, footer, cards, buttons) overrides it. */
:where(p, li, dd, td, label) a:where(:not([class])) { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.shop { padding-top: var(--sp-md); padding-bottom: 40px; }
.section { padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
.section-sm { padding-top: var(--sp-lg); padding-bottom: var(--sp-lg); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; margin-bottom: 16px; }
.grid .wide { grid-column: span 2; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
body.is-embedded { background: var(--card); }
.is-embedded .shop { padding-bottom: 24px; }
/* Sticky footer: short pages keep .footer (app) and .site-footer (marketing) at the bottom.
   width: 100% keeps a centered .wrap main at full column width inside the flex column. */
body:has(> .site-footer), body:has(> .footer) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:has(> .site-footer) > main, body:has(> .footer) > main { flex: 1 0 auto; width: 100%; }
/* Form-only app pages (login, password, short forms): centered 460px column instead of 760px */
.wrap.is-narrow { max-width: calc(460px + 32px); }

/* ---------- Typography helpers ---------- */
.page-head { margin: 0 0 24px; }
.page-head h1 { font-size: clamp(1.625rem, 4.2vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); }
.page-lead { margin: 10px 0 0; max-width: 38rem; font-size: 1.0625rem; color: var(--muted); }
.section-title { margin: 32px 0 12px; font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--navy); }
.section-title:first-child { margin-top: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow-dim); display: inline-block; margin-bottom: var(--sp-sm); }
.label-caps { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.h-display { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.15; }
.h3 { font-size: 24px; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); }
.body-md { font-size: 16px; }
.body-sm { font-size: 14px; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--navy); }
.text-yellow { color: var(--yellow-dim); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-family: var(--font-mono); }
.speed { font-family: var(--font-mono); font-size: .875rem; font-weight: 700; color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Small grey notes next to a value: "netto", "brutto", "erfüllt".
   .amount-note stays inline, .fact-note sits on its own line under a fact. */
.amount-note { font-size: .8125rem; font-weight: 400; color: var(--muted); }
.fact-note { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }

/* ---------- Icons ----------
   XINON line icons (24 grid, 2px stroke, round), same style as XFon.
   <svg class="icon" aria-hidden="true"><use href="assets/icons.svg#fiber"/></svg>
   Source: tools/icons.py → assets/icons/*.svg + assets/icons.svg (sprite). */
.icon { display: inline-block; flex: none; width: 24px; height: 24px; max-width: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon.is-sm { width: 20px; height: 20px; }
.icon.is-lg { width: 32px; height: 32px; }

/* ---------- Buttons ----------
   .btn = primary (yellow). Variants via is-* classes.
   Aliases .btn-primary/.btn-secondary/.btn-ghost/.btn-light keep the
   marketing (base.css) markup working. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--r);
  background: var(--yellow);
  color: var(--on-yellow);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.btn:hover { background: var(--yellow-dim); color: var(--on-yellow); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn.is-quiet, .btn-ghost { background: var(--card); border-color: var(--blue); color: var(--blue); }
.btn.is-quiet:hover, .btn-ghost:hover { background: var(--primary-fixed); color: var(--navy); }
.btn.is-quiet:disabled { opacity: .55; cursor: not-allowed; }
.btn.is-quiet:disabled:hover { background: var(--card); color: var(--blue); }
.btn.is-dark, .btn-primary { background: var(--blue); color: #fff; }
.btn.is-dark:hover, .btn-primary:hover { background: var(--navy); color: #fff; }
.btn.is-soft { background: var(--primary-fixed); color: var(--navy); }
.btn.is-soft:hover { background: var(--primary-fixed-dim); color: var(--navy); }
.btn.is-light, .btn-light { background: #fff; color: var(--blue); }
.btn.is-light:hover, .btn-light:hover { background: var(--primary-fixed); color: var(--navy); }
.btn.is-small { min-height: 40px; padding: 8px 16px; }
.btn-secondary { background: var(--yellow); color: var(--on-yellow); }
.btn-secondary:hover { background: var(--yellow-dim); }
.btn:focus-visible, .link:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:is(.band, .hero, .stat-band, .footer, .site-footer) :focus-visible { outline-color: var(--on-primary); }
.link { font: inherit; padding: 0; border: 0; background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--navy); }
.inline { margin-top: 16px; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

/* ---------- Top bar (app) ---------- */
.topbar { position: relative; overflow: hidden; background: var(--card); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { position: relative; z-index: 1; display: block; }
.logo img { display: block; height: 32px; width: auto; }
.topbar-contact { position: relative; z-index: 1; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--navy); text-decoration: none; }
.topbar-contact:hover { color: var(--blue); }
.topbar-deco { position: absolute; top: 0; right: -48px; width: 256px; height: 100%; background: var(--yellow); opacity: .2; transform: skewX(-30deg); }
.account { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; font-size: .875rem; }
.account-name { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.account-name strong { color: var(--navy); }
.account-name span { font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

/* ---------- Site nav (marketing) ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--card); border-bottom: 1px solid var(--border); }
.site-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; overflow: hidden; }
.nav-logo img { height: 32px; width: auto; }
.nav-right { display: flex; align-items: center; gap: var(--sp-md); position: relative; z-index: 1; }
.nav-deco { position: absolute; top: 0; right: 0; width: 256px; height: 100%; background: var(--yellow); transform: skewX(-30deg) translateX(48px); opacity: .2; z-index: 0; }
.nav-links { display: flex; align-items: center; gap: var(--sp-md); }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text); padding: 6px 2px; border-bottom: 2px solid transparent; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--ui-blue); }
.lang-toggle { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; user-select: none; }
.lang-toggle button { background: none; border: none; padding: 2px 4px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.lang-toggle button.active, .lang-toggle button:hover { color: var(--yellow-dim); }
.lang-toggle .sep { color: var(--border); }
.nav-burger { display: none; background: none; border: none; color: var(--navy); font-size: 24px; }

/* ---------- Blue band / hero ---------- */
.band { position: relative; overflow: hidden; padding: 16px 0 26px; background: var(--blue); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); }
.band-deco { position: absolute; top: 0; right: 0; width: 34%; height: 100%; background: var(--yellow); opacity: .1; transform: skewX(-20deg) translateX(25%); }
.band-inner { position: relative; z-index: 1; }
/* Hero: one deep blue field, sentence-case headline, yellow only for the offer.
   The single orchestrated motion: a light pulse runs once along a fiber line. */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue) 0%, var(--navy) 100%); color: var(--on-primary); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 94%); }
.hero .hero-deco { position: absolute; top: 0; right: 0; width: 38%; height: 100%; background: var(--on-primary); opacity: .045; transform: skewX(-20deg) translateX(30%); z-index: 0; }
.hero .fiber-pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero .fiber-pattern path { stroke: var(--on-primary); stroke-opacity: .1; stroke-width: 1.2; }
.hero .fiber-pattern path:nth-child(2) { stroke: var(--yellow); stroke-opacity: .9; stroke-dasharray: 90 1400; stroke-dashoffset: -1300; animation: fiber-pulse var(--dur-hero) var(--ease-standard) 400ms 1 both; }
@keyframes fiber-pulse { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -1300; } }
.hero .hero-inner { position: relative; z-index: 1; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero .eyebrow { color: var(--yellow); }
.hero h1 { max-width: 15em; margin-bottom: var(--sp-sm); color: var(--on-primary); font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-transform: none; }
.hero .h1-sub { max-width: 32em; margin-bottom: var(--sp-md); color: var(--yellow); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; text-transform: none; }
.hero .hero-box { max-width: 40rem; display: flex; flex-direction: column; gap: var(--sp-sm); }
.hero .hero-box p { color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.6; }
.hero .hero-box .hero-cta-line { font-weight: 700; color: var(--on-primary); }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-md); }
.hero .btn.is-quiet, .hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--on-primary); }
.hero .btn.is-quiet:hover, .hero .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--on-primary); color: var(--on-primary); }

/* ---------- Steps (progress) + portal nav ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.steps li { display: flex; align-items: center; gap: 8px; }
.step-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; font-size: .6875rem; letter-spacing: 0; }
.steps .is-done { color: rgba(255, 255, 255, .85); }
.steps .is-done .step-num { background: rgba(255, 255, 255, .85); border-color: transparent; color: var(--blue); }
.steps .is-current { color: var(--yellow); }
.steps .is-current .step-num { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r); color: rgba(255, 255, 255, .8); font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"] { background: var(--yellow); color: var(--navy); }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 4px; }
label > span { font-size: .875rem; font-weight: 600; }
.field-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px 1px 6px; border-radius: 999px; background: var(--error-container); color: var(--error); font-size: .75rem; font-style: normal; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.field-hint svg { width: 13px; height: 13px; fill: currentColor; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--outline); border-radius: var(--r); background: var(--card); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ui-blue); outline-offset: 0; border-color: var(--blue); }
input[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; min-height: 96px; }
.error { color: var(--error); font-size: .8125rem; }
fieldset { margin: 0 0 20px; padding: 20px; border: 2px solid var(--border); border-radius: var(--r); background: var(--card); }
legend { padding: 0 8px; margin-left: -8px; font-size: 1.125rem; font-weight: 800; color: var(--navy); }
.fieldset-note { margin: 0 0 4px; font-weight: 600; color: var(--navy); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; margin: 8px 0; }
.check > span { font-weight: 400; font-size: 1rem; }
.check input { margin-top: 5px; padding: 0; accent-color: var(--blue); }
.choices { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; margin: 8px 0 16px; }
.choices-label { width: 100%; font-weight: 600; font-size: .875rem; }
.choices-list { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; margin: 0 0 20px; }
.choice { min-height: 48px; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--r); background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
button.choice:hover { border-color: var(--blue); }
.choice-street { color: var(--muted); cursor: default; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.field-label { font-size: .875rem; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 16px; }
.filters label { min-width: 160px; }
.form-narrow { max-width: 460px; }
.form-narrow label { margin-bottom: 14px; }
.form-narrow input { width: 100%; }

/* Shop form logic: CSS-only toggles the order/addons steps rely on */
.billing-fields, .sepa-fields { margin-top: 12px; }
form:has(#billing_same:checked) .billing-fields { display: none; }
form:not(.sepa-only):not(:has(#pay_sepa:checked)) .sepa-fields { display: none; }
form:not(.sepa-only):not(:has(#pay_sepa:checked)) .terms-sepa { display: none; }
form:has(#pay_sepa:checked) .terms-invoice { display: none; }
.addons-form:has(input[name="addon"][value=""]:checked) .phone-number { display: none; }
.phone-number:not(:has(input[value="port"]:checked)) .phone-number-port { display: none; }
.phone-number-port { margin: 0 0 4px; font-size: .9375rem; color: var(--navy); }
.customer-type { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; font-size: .9375rem; color: var(--muted); }
.address-line { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--navy); }
.address-line svg { flex: none; width: 20px; height: 20px; fill: var(--blue); }

/* XINON select: native fallback + enhanced (select.js) */
select { appearance: none; -webkit-appearance: none; min-height: 48px; padding-right: 44px; background: var(--card) url("chevron.svg") no-repeat right 12px center / 20px 20px; cursor: pointer; }
.xselect { position: relative; }
.xselect-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px 10px 14px; border: 1px solid var(--outline); border-radius: var(--r); background: var(--card); color: var(--navy); font: inherit; font-weight: 700; text-align: left; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.xselect-button:hover { border-color: var(--blue); }
.xselect-button:focus-visible { outline: 2px solid var(--ui-blue); outline-offset: 0; border-color: var(--blue); }
.xselect-button[aria-expanded="true"] { border: 2px solid var(--blue); padding: 9px 11px 9px 13px; box-shadow: inset 4px 0 0 var(--yellow); }
.xselect-chevron { flex: none; width: 20px; height: 20px; fill: var(--blue); transition: transform var(--dur-base) var(--ease-standard); }
.xselect-button[aria-expanded="true"] .xselect-chevron { transform: rotate(180deg); }
.xselect-options { min-width: 100%; }
.xselect-options .option { min-height: 44px; }
.xselect-options .option-icon { visibility: hidden; }
.xselect-options .option[aria-selected="true"] .option-icon { visibility: visible; }
.xselect-options .option:hover, .xselect-options .option.is-active { background: var(--primary-fixed); }
.xselect-options .option[aria-selected="true"] { background: var(--surface-low); box-shadow: inset 4px 0 0 var(--yellow); }
.xselect-options .option[aria-selected="true"].is-active { background: var(--primary-fixed); }

/* Combobox / dropdown options */
.address-search { display: flex; flex-direction: column; align-items: flex-start; }
.combobox { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-bottom: 16px; }
.combobox > label { font-size: .875rem; font-weight: 600; }
.combobox-field { position: relative; }
.combobox input { width: 100%; height: 56px; padding: 0 48px 0 46px; border: 2px solid var(--border); font-size: 1.0625rem; transition: border-color var(--dur-fast) var(--ease-standard); -webkit-appearance: none; appearance: none; }
.combobox input:focus { outline: none; border-color: var(--blue); }
.combobox input[aria-expanded="true"] { border-color: var(--blue); }
.combobox-icon { position: absolute; top: 28px; left: 15px; width: 20px; height: 20px; margin-top: -10px; fill: var(--outline); pointer-events: none; }
.combobox-field:focus-within .combobox-icon { fill: var(--blue); }
.clear { position: absolute; top: 28px; right: 6px; width: 44px; height: 44px; margin-top: -22px; padding: 12px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.clear svg { display: block; width: 20px; height: 20px; fill: var(--outline); }
.clear:hover svg { fill: var(--text); }
.spinner { position: absolute; top: 28px; right: 18px; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.options { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 10; max-height: 360px; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: var(--card); border: 2px solid var(--blue); border-radius: var(--r); box-shadow: var(--shadow-card); animation: drop var(--dur-base) var(--ease-enter); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: var(--r); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.option + .option { margin-top: 2px; }
.option[aria-selected="true"] { background: var(--surface-low); box-shadow: inset 4px 0 0 var(--yellow); }
.option:active { background: var(--primary-fixed); }
.option-icon { flex: none; width: 20px; height: 20px; fill: var(--outline); }
.option[aria-selected="true"] .option-icon { fill: var(--blue); }
.option-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.option-main { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.option-main mark { background: none; color: var(--blue); font-weight: 800; }
.option-sub { overflow: hidden; font-size: .8125rem; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.option-arrow { flex: none; font-size: 1.5rem; line-height: 1; color: var(--outline); }
.option-empty { padding: 12px; font-size: .9375rem; color: var(--muted); }
.hint { min-height: 1.2em; margin: 0; font-size: .8125rem; color: var(--muted); }

/* TAN / one-time-code */
.tan-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 20px; border: 2px solid var(--blue); border-radius: var(--r); background: var(--card); }
.tan-form label { width: 100%; }
.tan-input { width: 100%; max-width: 280px; height: 60px; border: 2px solid var(--border); font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; letter-spacing: .35em; text-align: center; }
.tan-input:focus { outline: none; border-color: var(--blue); }
.tan-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-bottom: 20px; }

/* ---------- Cards ---------- */
.type, .product {
  position: relative; overflow: hidden;
  border: 2px solid var(--border); border-radius: var(--r);
  background: var(--card);
  transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.type::before, .product::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-standard);
}
.type:hover, .product:hover { border-color: var(--yellow); box-shadow: var(--shadow-card); color: var(--text); }
.type:hover::before, .product:hover::before, .product.is-promo::before { transform: scaleX(1); }
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.type { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px 20px; color: var(--text); text-decoration: none; }
.type.is-current { border-color: var(--blue); }
.type-icon { flex: none; width: 32px; height: 32px; fill: var(--blue); }
.type-body { display: flex; flex-direction: column; gap: 4px; }
.type-name { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: var(--navy); }
.type-desc { font-size: .9375rem; color: var(--muted); }

.products { display: grid; gap: 16px; margin-bottom: 24px; }
.product { display: flex; align-items: center; gap: 16px; padding: 22px 20px 20px; cursor: pointer; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.product:focus-within { border-color: var(--blue); box-shadow: var(--shadow-card); }
.product.is-selected { border-color: var(--blue); }
.product.is-promo { border-color: var(--yellow); background: linear-gradient(var(--yellow-soft), var(--card) 70%); }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.product-name { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--navy); }
.product-desc { margin: 0; font-size: .9375rem; color: var(--muted); }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.product-price small { white-space: nowrap; font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.product-meta { margin: 0; font-size: .875rem; color: var(--muted); }
.product-meta s { margin-right: 4px; }
.product-cta { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; transition: background-color var(--dur-base) var(--ease-standard); }
.product-cta svg { width: 22px; height: 22px; fill: var(--on-yellow); }
.product:hover .product-cta { background: var(--yellow-dim); }
.product-cta::after { content: ""; position: absolute; inset: 0; } /* whole card is the hit area */
.product-cta:focus-visible { outline: none; }
.product:has(.product-cta:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.promo { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--navy); }
.promo span::before { content: "+ "; color: var(--yellow-dim); }
.product.is-option { flex-direction: row; cursor: pointer; }
.product.is-option > .product-body { font-size: inherit; font-weight: inherit; }
.product.is-option input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.product.is-option:has(input:checked) { border-color: var(--blue); }
.product.is-option:has(input:checked)::before { transform: scaleX(1); }
.product.is-option.is-disabled { cursor: not-allowed; opacity: .6; }
.product.is-option.is-disabled:hover { border-color: var(--border); box-shadow: none; }
.product.is-option.is-disabled:hover::before { transform: scaleX(0); }

/* Marketing card (base.css) */
.cards-section { position: relative; z-index: 2; margin-top: -32px; }
.cards {display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: var(--sp-md); position: relative; overflow: hidden; color: inherit; transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-standard); }
.card:hover { border-color: var(--yellow); box-shadow: var(--shadow-card); color: inherit; }
.card:hover::before { transform: scaleX(1); }
.card .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--sp-sm); }
.card .card-title { font-size: 24px; font-weight: 700; color: var(--navy); }
.card .card-arrow { color: var(--border); font-size: 22px; transition: color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.card:hover .card-arrow { color: var(--yellow-dim); transform: translateX(4px); }
.card .card-desc { font-size: 16px; font-weight: 500; margin-bottom: var(--sp-md); }
.card .card-desc .sub { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.card .tags { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-top: auto; }
.tag { background: var(--surface-variant); color: var(--muted); }

.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: var(--sp-md); }
.feature .f-icon { width: 44px; height: 44px; border-radius: var(--r); background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: var(--sp-sm); }
.feature h3 { font-size: 18px; margin-bottom: var(--sp-xs); }
.feature p { font-size: 15px; color: var(--muted); }

/* Tariff (pricing) */
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.tariff { position: relative; background: var(--card); border: 2px solid var(--border); border-radius: var(--r); padding: var(--sp-md); display: flex; flex-direction: column; transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.tariff:hover { border-color: var(--ui-blue); box-shadow: var(--shadow-card); }
.tariff.featured { border-color: var(--yellow); }
.tariff .t-speed { font-size: 34px; font-weight: 800; color: var(--navy); line-height: 1; }
.tariff .t-speed small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tariff .t-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 var(--sp-sm); }
.tariff .t-price { font-size: 26px; font-weight: 800; color: var(--navy); }
.tariff .t-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.tariff .t-vat { font-size: 11px; color: var(--muted); margin-bottom: var(--sp-sm); }
.tariff ul { margin: var(--sp-sm) 0 var(--sp-md); display: flex; flex-direction: column; gap: 6px; }
.tariff ul li { font-size: 14px; color: var(--text); padding-left: 22px; position: relative; }
.tariff ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ui-blue); font-weight: 700; }
.tariff .btn { margin-top: auto; width: 100%; }
.badge-pop { position: absolute; top: -12px; right: 16px; background: var(--yellow); color: var(--on-yellow); }

/* Contract (portal) */
.contracts { display: grid; gap: 16px; }
.contract { border: 2px solid var(--border); border-left: 4px solid var(--yellow); border-radius: var(--r); background: var(--card); }
.contract-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; padding: 20px 20px 16px; }
.contract-address { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 4px; font-size: .9375rem; color: var(--muted); }
.contract-address svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: var(--blue); }
.contract-product { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.2; color: var(--navy); }
.contract-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin: 0; padding: 14px 20px; background: var(--surface-low); }
.contract-facts dt { font-size: .8125rem; color: var(--muted); }
.contract-facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.contract-facts .num { font-family: var(--font-mono); font-size: .9375rem; }
.contract-extras { margin: 0; padding: 12px 20px 16px; list-style: none; font-size: .9375rem; }
.contract-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.contract-extras li + li { border-top: 1px solid var(--border); }
.contract-extras span:last-child { color: var(--muted); white-space: nowrap; }
.contract-extras li.is-total { margin-top: 4px; border-top: 2px solid var(--border); padding-top: 8px; }
.contract-extras li.is-total span:last-child { color: var(--navy); }
.contract.is-cancelled { border-left-color: var(--outline); }

/* Methods (radio cards) */
.methods { display: grid; gap: 12px; margin-bottom: 20px; }
.methods .product { padding: 18px 20px; }
.methods .product-name { font-size: 1.0625rem; }
.method-target { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); }
.method { flex-direction: row; align-items: flex-start; cursor: default; }
.method > input[type="radio"] { margin-top: 2px; }
.method .product-name { cursor: pointer; }
.method-field { display: block; margin-top: 8px; }
.product.is-option .method-field input { width: 100%; height: auto; accent-color: auto; }
.method:not(:has(> input[type="radio"]:checked)) .method-field { display: none; }

/* ---------- Tables ---------- */
.invoices { width: 100%; border-collapse: collapse; border: 2px solid var(--border); border-radius: var(--r); background: var(--card); font-size: .9375rem; }
.invoices th { padding: 10px 16px; border-bottom: 2px solid var(--border); background: var(--surface-low); font-size: .8125rem; font-weight: 600; color: var(--muted); text-align: left; }
.invoices td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.invoices tr:last-child td { border-bottom: 0; }
.invoices .num { font-family: var(--font-mono); font-size: .875rem; white-space: nowrap; }
.invoices .amount { font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.invoices th.amount { color: var(--muted); }
.invoices .action { width: 1%; text-align: right; white-space: nowrap; }
.download { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.download svg:not(.icon) { width: 18px; height: 18px; fill: currentColor; }
.invoices .action .btn { min-height: 44px; padding: 8px 14px 8px 12px; gap: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; }
table.data th { background: var(--surface-low); color: var(--navy); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--border); }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table.data tr:last-child td { border-bottom: none; }
table.data td.k { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
table.data td.v { font-weight: 600; }

/* ---------- Costs / summary / current ---------- */
.costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-low); }
.costs-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.costs-title { margin-bottom: 2px; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.costs-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.costs-row strong { color: var(--navy); white-space: nowrap; }
.costs-row s { margin-right: 4px; font-weight: 500; color: var(--muted); }
.costs-row.is-total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border); font-weight: 700; }
.costs-row.is-free strong { padding: 0 6px; border-radius: var(--r-sm); background: var(--yellow); color: var(--on-yellow); }
.costs-saving { margin: 2px 0 0; font-size: .8125rem; font-weight: 700; color: var(--blue); }
.costs-note { grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
.costs.is-compact { padding: 12px 14px; }
.summary { display: grid; gap: 8px; margin-bottom: 24px; padding: 20px; border: 2px solid var(--border); border-left: 4px solid var(--yellow); border-radius: var(--r); background: var(--card); }
.summary > div:not(.costs) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.summary > div > span { color: var(--muted); }
.summary > div > strong { color: var(--navy); }
.summary .costs { grid-column: 1 / -1; margin-top: 4px; }
.current { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-low); }
.current strong { color: var(--navy); }
.order-terms { max-height: 260px; overflow-y: auto; margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font-size: .875rem; line-height: 1.55; color: var(--muted); }
.order-terms p + p { margin-top: 8px; }

/* ---------- Feedback ---------- */
.alert { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--error); border-radius: var(--r); background: var(--error-container); color: var(--on-error-container); }
.notice { margin-bottom: 16px; padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: var(--r); background: var(--primary-fixed); color: var(--navy); }
.panel { padding: 20px; border: 2px solid var(--border); border-left: 4px solid var(--yellow); border-radius: var(--r); background: var(--card); }
.panel p + p { margin-top: 8px; }
.hotline { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-low); font-size: .9375rem; }
.hotline svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: var(--blue); }
.hotline a { font-weight: 700; white-space: nowrap; }
.hotline.is-prominent { border-left: 4px solid var(--yellow); background: var(--yellow-soft); }
.not-found { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 16px 18px; border: 2px solid var(--border); border-left: 4px solid var(--yellow); border-radius: var(--r); background: var(--card); color: var(--text); text-decoration: none; transition: border-color var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); }
.not-found:hover { border-color: var(--yellow); box-shadow: var(--shadow-card); color: var(--text); }
.not-found.is-highlighted { background: var(--yellow-soft); border-color: var(--yellow); }
.not-found svg { flex: none; width: 26px; height: 26px; margin-top: 1px; fill: var(--blue); }
.not-found > span { display: flex; flex-direction: column; gap: 2px; }
.not-found strong { font-size: 1.0625rem; color: var(--navy); }
.not-found > span > span { font-size: .9375rem; color: var(--muted); }

/* System banner: one line above the top bar for a special mode.
   Navy = test system, .is-staff (yellow, an alert) = staff looking at a customer's view. */
.system-banner { padding: var(--sp-xs) var(--sp-md); background: var(--navy); color: var(--on-primary); font-size: .8125rem; font-weight: 700; text-align: center; }
.system-banner.is-staff { background: var(--yellow); color: var(--on-yellow); }

/* ---------- Badges / status / marks ---------- */
/* Chips: one spec for every small label (mono caps, 2px radius, same height).
   Colour carries the meaning; .status adds a dot so state is not colour-only. */
.badge, .status, .tag, .badge-pop { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-sm); font-family: var(--font-mono); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.badge { background: var(--yellow); color: var(--on-yellow); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.is-active { background: var(--primary-fixed); color: var(--navy); }
.status.is-ending { background: var(--error-container); color: var(--on-error-container); }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: var(--yellow); }
.done-mark svg { width: 30px; height: 30px; fill: var(--on-yellow); }

/* ---------- Stat band / CTA band ---------- */
/* Stat band: a left-aligned spec strip on navy. Numbers stay white (yellow is rationed). */
.stat-band { background: var(--navy); color: var(--on-primary); }
/* Directly under a hero the strip tucks in behind the slant, so the slant reads blue-on-navy. */
.hero:has(+ .stat-band) { z-index: 1; }
.hero + .stat-band { margin-top: -64px; padding-top: 64px; }
.stat-band .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-md) var(--gutter); }
.stat { padding-top: var(--sp-sm); border-top: 1px solid rgba(255, 255, 255, .22); }
.stat .stat-num { color: var(--on-primary); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .stat-label { margin-top: 6px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.4; }
/* CTA band: solid yellow (conversion), navy text, blue button. No gradient. */
.cta-band { position: relative; overflow: hidden; background: var(--yellow); color: var(--navy); }
.cta-band .cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); flex-wrap: wrap; }
.cta-band h2 { color: var(--navy); }
.cta-band p { max-width: 40rem; margin-top: 6px; color: var(--on-yellow); }
.cta-band .btn:not(.is-quiet):not(.btn-ghost) { background: var(--blue); color: var(--on-primary); }
.cta-band .btn:not(.is-quiet):not(.btn-ghost):hover { background: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .8); border-top: 4px solid var(--yellow); }
.footer .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 20px; padding-bottom: 20px; font-size: .8125rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { display: block; height: 24px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

.site-footer { background: var(--blue); color: var(--on-primary-container); position: relative; overflow: hidden; margin-top: auto; }
.site-footer a { text-decoration: none; }
.site-footer .footer-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 16px; background: var(--yellow); }
.site-footer .footer-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-lg); padding-top: var(--sp-xl); padding-bottom: var(--sp-xl); }
.site-footer .f-logo img { height: 40px; width: auto; opacity: .92; margin-bottom: var(--sp-md); }
.site-footer address { font-size: 16px; line-height: 1.7; color: rgba(141, 199, 254, .85); }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: var(--sp-sm); }
.site-footer .f-contact p { font-size: 16px; color: rgba(141, 199, 254, .85); margin-bottom: 8px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: rgba(141, 199, 254, .85); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .f-copy { margin-top: var(--sp-lg); padding-top: var(--sp-md); border-top: 1px solid rgba(255, 255, 255, .15); font-family: var(--font-mono); font-size: 12px; color: rgba(141, 199, 254, .6); }

/* ---------- Utility ---------- */
.mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); } .mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); } .mb-md { margin-bottom: var(--sp-md); } .mb-lg { margin-bottom: var(--sp-lg); }
.center { text-align: center; }
.flex { display: flex; } .wrap-flex { flex-wrap: wrap; } .gap-sm { gap: var(--sp-sm); } .gap-md { gap: var(--sp-md); }
.flex.wrap { flex-wrap: wrap; max-width: none; margin: 0; padding: 0; } /* base.css markup: class="flex wrap" */
.hidden { display: none !important; }
.below { margin-top: 20px; font-size: .9375rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .tariffs { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: var(--sp-md); }
  .stat-band .stats { grid-template-columns: 1fr 1fr; }
  .cards-section { margin-top: 0; }
}
@media (max-width: 767px) {
  :root { --sp-xl: 56px; --sp-lg: 32px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .cards, .tariffs, .grid-3 { grid-template-columns: 1fr; }
  .stat-band .stats { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: var(--sp-md); }
  .hero { clip-path: none; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: var(--sp-md); gap: var(--sp-sm); box-shadow: var(--shadow-card); }
}
@media (max-width: 639px) {
  .topbar-contact, .account-name { display: none; }
  .band { padding: 14px 0 24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%); }
  .page-head { margin-bottom: 18px; }
  .shop { padding-top: 16px; }
  .steps { gap: 6px 10px; }
  .steps li:not(.is-current) .step-label { display: none; }
  .nav a { padding: 6px 10px; }
  .types, .grid { grid-template-columns: 1fr; }
  .grid .wide { grid-column: auto; }
  fieldset { padding: 16px; }
  .type, .product { padding: 20px 16px 16px; }
  .product { gap: 12px; }
  .costs { grid-template-columns: 1fr; }
  .contract-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-head .btn { width: 100%; }
  .tan-form .btn, .address-search > .btn, .actions .btn { width: 100%; }
  .tan-input { max-width: none; }
  .options { position: static; max-height: none; margin-top: 6px; }
  .actions { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .invoices thead { display: none; }
  .invoices, .invoices tbody, .invoices tr, .invoices td { display: block; width: 100%; }
  .invoices tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .invoices tr:last-child { border-bottom: 0; }
  .invoices td { padding: 0; border: 0; }
  .invoices td.amount, .invoices td.action { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .hero .fiber-pattern path:nth-child(2) { animation: none; stroke-opacity: 0; }
  .spinner { animation-duration: 2s !important; animation-iteration-count: infinite !important; }
}
