/* Xtra GmbH — xtragmbh.de
   One stylesheet for all pages. No framework, no build step. */

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #13a0b2;          /* the original site's teal */
  --brand-strong: #0b7f8e;   /* hover, and teal text on white (AA contrast) */
  --brand-soft: #e7f5f7;
  --ink: #0c1b2a;            /* headings, dark sections */
  --ink-2: #1c2e40;
  --text: #3d4b5c;
  --muted: #647385;
  --line: #e2e9ee;
  --bg: #ffffff;
  --bg-soft: #f4f8fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(12 27 42 / 0.05), 0 8px 24px -12px rgb(12 27 42 / 0.12);
  --shadow-lg: 0 2px 4px rgb(12 27 42 / 0.04), 0 24px 48px -20px rgb(12 27 42 / 0.25);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
h1, h2, h3, .lead { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { --section-bg: var(--bg); padding-block: clamp(72px, 10vw, 128px); background: var(--section-bg); }
.section--soft { --section-bg: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { --btn-bg: var(--brand-strong); --btn-bd: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgb(19 160 178 / .7); }
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .55); }
.btn--ghost:hover { --btn-bg: #fff; --btn-bd: #fff; color: var(--ink); box-shadow: none; }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 1.0625rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgb(255 255 255 / .82); font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; }
.topbar__list li { display: flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; color: var(--brand); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__social { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; }
.topbar__social:hover { background: rgb(255 255 255 / .1); }
.topbar__social .icon { color: rgb(255 255 255 / .82); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(12 27 42 / .5); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: 50px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav__list a {
  position: relative; padding-block: 6px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--brand-strong); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero__slides { position: relative; display: grid; }
.hero__slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center;
  min-height: clamp(560px, 82vh, 780px); padding-block: 96px 120px;
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -1; }
.hero__media img { object-fit: cover; object-position: 70% center; transform: scale(1.06); transition: transform 8s ease-out; }
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(8 20 32 / .92) 0%, rgb(8 20 32 / .78) 38%, rgb(8 20 32 / .25) 75%, rgb(8 20 32 / .1) 100%),
    linear-gradient(0deg, rgb(8 20 32 / .5) 0%, transparent 35%);
}
.hero__content { max-width: 680px; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; }
.hero__slide.is-active .hero__content { opacity: 1; transform: none; transition: opacity .7s ease .45s, transform .7s ease .45s; }
.hero__kicker { display: block; font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 500; color: var(--brand); margin-bottom: 12px; letter-spacing: -0.01em; }
.hero__title { color: #fff; margin-bottom: 20px; }
.hero__title span { display: block; color: rgb(255 255 255 / .72); font-weight: 500; }
.hero__text { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgb(255 255 255 / .85); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; }
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot {
  width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.hero__dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px;
  border-radius: 3px; background: rgb(255 255 255 / .35); transition: background-color .3s;
}
.hero__dot[aria-current="true"]::before { background: var(--brand); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.card {
  position: relative; height: 100%; padding: 32px 30px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 22px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-strong);
  transition: background-color .3s, color .3s;
}
.card__icon .icon { width: 26px; height: 26px; stroke-width: 1.75; }
.card:hover .card__icon { background: var(--brand); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 1rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 520 / 532; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.about__media::before {
  content: ""; position: absolute; z-index: -1; inset: 28px -28px -28px 28px; border-radius: 24px;
  background: repeating-linear-gradient(135deg, var(--brand-soft) 0 2px, transparent 2px 12px);
}
.about__badge {
  position: absolute; left: -20px; bottom: 32px; display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about__badge strong { display: block; font-size: 1.75rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.about__badge span { font-size: .875rem; color: var(--muted); }
.about__badge .card__icon { margin: 0; width: 48px; height: 48px; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: #fff; box-shadow: 0 0 0 10px rgb(19 160 178 / .25);
  transition: transform .25s, box-shadow .25s;
}
.play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgb(19 160 178 / .5); animation: pulse 2.4s ease-out infinite; }
.play:hover { color: #fff; transform: scale(1.06); box-shadow: 0 0 0 14px rgb(19 160 178 / .3); }
.play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; stroke: none; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.checklist { display: grid; gap: 14px; list-style: none; margin: 28px 0 36px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-weight: 500; }
.checklist .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--brand); }

/* ---------- Callback band + stats ---------- */
.band { position: relative; isolation: isolate; color: #fff; background: var(--ink); }
.band__bg, .band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__bg { z-index: -1; }
.band__bg img { object-fit: cover; object-position: center 30%; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 20 32 / .9) 0%, rgb(8 20 32 / .82) 50%, rgb(8 20 32 / .7) 100%); }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--brand); }
.band .lead { color: rgb(255 255 255 / .78); }
.band__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.band__actions .btn--ghost .icon { transition: none; }
.band__actions .btn--ghost:hover .icon { transform: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.stats li { padding: 22px 20px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.stats strong { display: block; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.stats .plus { color: var(--brand); }
.stats small { display: block; margin-top: 10px; font-size: .9375rem; color: rgb(255 255 255 / .75); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq__intro .btn { margin-top: 12px; }
.accordion { display: grid; gap: 14px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.accordion details[open] { border-color: transparent; box-shadow: var(--shadow-lg); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-strong); transition: transform .3s, background-color .3s, color .3s;
}
.accordion details[open] summary .icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.accordion details > p { margin: 0; padding: 0 26px 24px; }

/* ---------- Why us ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.feature { padding: 36px 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 3px solid var(--brand); }
.feature .card__icon { margin-bottom: 20px; }
.feature p { margin: 0; font-size: 1rem; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 36px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .45;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin-bottom: 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--brand); color: var(--brand-strong);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em;
  box-shadow: 0 0 0 8px var(--section-bg);
}
.step:hover .step__num { background: var(--brand); color: #fff; }
.step p { max-width: 340px; margin-inline: auto; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.contact-info li { padding: 32px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.contact-info .card__icon { margin-bottom: 18px; }
.contact-info h3 { font-size: 1.125rem; margin-bottom: 6px; }
.contact-info p { margin: 0; }
.contact-info a { color: var(--text); text-decoration: none; }
.contact-info a:hover { color: var(--brand-strong); }
.contact-cta { margin-top: 40px; text-align: center; }

/* ---------- Page hero (Impressum, Datenschutz, 404) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-block: clamp(64px, 9vw, 112px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(600px 300px at 85% 20%, rgb(19 160 178 / .45), transparent 70%), radial-gradient(500px 260px at 10% 110%, rgb(19 160 178 / .25), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 14px; font-size: .9375rem; color: rgb(255 255 255 / .7); }
.crumbs a { color: rgb(255 255 255 / .85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgb(255 255 255 / .4); }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose a { word-break: break-word; }
.prose .legal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; padding: 0; margin-bottom: 40px; }
.legal-grid li { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal-grid h2 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 12px; padding: 0; border: 0; }
.legal-grid p { margin: 0; color: var(--ink-2); }
.legal-grid .full { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgb(255 255 255 / .7); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .9fr 1.3fr 1.2fr; gap: 48px; padding-block: 80px 56px; }
.footer h2 { font-size: 1.0625rem; color: #fff; margin-bottom: 22px; letter-spacing: 0; }
.footer a { color: rgb(255 255 255 / .75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__brand img { width: 150px; height: 50px; margin-bottom: 20px; }
.footer__social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 8px; border-radius: 10px; background: rgb(255 255 255 / .08); }
.footer__social:hover { background: var(--brand); }
.footer__social .icon { width: 18px; height: 18px; color: #fff; }
.footer__links { display: grid; gap: 12px; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.footer__links .icon { width: 14px; height: 14px; color: var(--brand); }
.news { display: grid; gap: 18px; list-style: none; }
.news li { display: flex; gap: 14px; align-items: center; }
.news img { width: 84px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.news strong { display: block; color: #fff; font-weight: 600; line-height: 1.35; font-size: .9375rem; }
.news span { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .8125rem; color: rgb(255 255 255 / .6); }
.news .icon { width: 13px; height: 13px; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 18px;
  border-radius: var(--radius-sm); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14);
  color: #fff !important; font-weight: 600; transition: background-color .2s, border-color .2s;
}
.footer__mail:hover { background: var(--brand); border-color: var(--brand); }
.footer__mail .icon { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: .875rem; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: 24px; list-style: none; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 14px; background: var(--brand); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s, visibility 0s linear .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s, background-color .2s; }
.to-top:hover { color: #fff; background: var(--brand-strong); }
.to-top .icon { width: 20px; height: 20px; }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar__list li:first-child { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(12 27 42 / .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s linear .25s;
  }
  .header.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .header.nav-open .nav-toggle .icon--menu { display: none; }
  .header.nav-open .nav-toggle .icon--close { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .services, .features { grid-template-columns: repeat(2, 1fr); }
  .about, .band__grid, .faq { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .about__media { max-width: 520px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { top: 36px; bottom: 36px; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 16px); }
  .step { background: var(--section-bg); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar .container { min-height: 40px; }
  .topbar__list { gap: 6px 18px; font-size: .8125rem; }
  .brand img, .footer__brand img { width: 120px; height: 40px; }
  .hero__slide { min-height: 600px; padding-block: 72px 104px; }
  .hero__media img { object-position: 62% center; }
  .hero__media::after { background: linear-gradient(0deg, rgb(8 20 32 / .95) 0%, rgb(8 20 32 / .82) 55%, rgb(8 20 32 / .55) 100%); }
  .hero__actions .btn { flex: 1 1 auto; }
  .services, .features, .stats, .prose .legal-grid, .footer__grid { grid-template-columns: 1fr; }
  .band__actions .btn, .contact-cta .btn { width: 100%; }
  .stats li { display: flex; align-items: baseline; gap: 14px; }
  .stats small { margin: 0; }
  .about__media::before { inset: 16px -12px -16px 16px; }
  .about__badge { left: 12px; bottom: 16px; padding: 12px 16px; }
  .card, .feature { padding: 28px 24px; }
  .accordion summary { padding: 18px 20px; font-size: 1.0625rem; }
  .accordion details > p { padding: 0 20px 20px; }
  .contact-info li { padding: 26px 22px; }
  .footer__grid { gap: 40px; padding-block: 64px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__media img { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
