/* Michael Bau – Stylesheet */

:root {
  --blue: #0e1cbd;
  --blue-dark: #0a1494;
  --blue-soft: #e8eaff;
  --navy: #0b1030;
  --navy-2: #121a46;
  --ink: #141826;
  --text: #333848;
  --muted: #6a7085;
  --line: #e1e4ec;
  --grey: #f3f4f7;
  --white: #fff;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
  --wrap: 1200px;
  --gutter: 24px;
  --shadow: 0 12px 40px rgba(11, 16, 48, 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 0.45em;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }

a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; top: -80px; left: 16px; z-index: 100;
  padding: 10px 14px; background: var(--blue); color: var(--white); border-radius: var(--r);
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.tick { width: 22px; height: 22px; flex: none; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 2px solid var(--blue); border-radius: var(--r);
  background: var(--blue); color: var(--white);
  font-family: var(--head); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 1.2rem; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.header { display: flex; align-items: center; gap: 40px; height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong {
  font-family: var(--head); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--blue);
}
.brand__text small { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 22px; }
.header__phone {
  color: var(--ink); text-decoration: none;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem;
}
.header__phone:hover { color: var(--blue); }

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-left: auto; margin-right: -10px;
  border: 0; background: none; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__lines, .nav-toggle__lines::before, .nav-toggle__lines::after {
  display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--ink); position: relative;
  transition: transform 0.2s, top 0.2s, background 0.2s;
}
.nav-toggle__lines::before, .nav-toggle__lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle__lines::before { top: -8px; }
.nav-toggle__lines::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__lines::after { top: 0; transform: rotate(-45deg); }

.nav-panel {
  position: fixed; inset: var(--header-h, 84px) 0 0 0; z-index: 30; display: none;
  flex-direction: column; justify-content: space-between;
  padding: 16px var(--gutter) 32px; background: var(--white); overflow-y: auto;
}
.nav-panel.is-open { display: flex; }
.nav-panel nav { display: flex; flex-direction: column; }
.nav-panel nav a {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.8rem;
}
.nav-panel nav a[aria-current="page"] { color: var(--blue); }
.nav-panel__foot { display: grid; gap: 16px; padding-top: 24px; }
.nav-panel__phone { text-align: center; font-family: var(--head); font-weight: 700; font-size: 1.4rem; text-decoration: none; }

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

.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(86vh, 820px);
  background: var(--navy); color: var(--white);
}
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 16, 48, 0.88) 0%, rgba(11, 16, 48, 0.72) 42%, rgba(11, 16, 48, 0.25) 75%, rgba(11, 16, 48, 0.1) 100%),
    linear-gradient(180deg, rgba(11, 16, 48, 0) 50%, rgba(11, 16, 48, 0.55) 100%);
}
.hero__content { padding: 120px 0 72px; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p { font-size: 1.3rem; line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); color: var(--ink);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -8px 30px rgba(11, 16, 48, 0.12);
}
.hero__facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px; border-right: 1px solid var(--line);
  font-family: var(--head); font-weight: 600; font-size: 1.15rem;
}
.hero__facts li:last-child { border-right: 0; }
.hero__facts .tick { color: var(--blue); }

/* ---------- Sections ---------- */

.section, .block { padding: 104px 0; }
.block--flush { padding-top: 56px; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2::before {
  content: ""; display: block; width: 56px; height: 5px; margin-bottom: 22px; background: var(--blue);
}
.section-head p { font-size: 1.2rem; color: var(--muted); }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.section-head--row > div { max-width: 680px; }

/* ---------- Service tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; grid-column: span 2; display: block; overflow: hidden;
  border-radius: var(--r); background: var(--navy); color: var(--white); text-decoration: none;
  aspect-ratio: 4 / 3;
}
.tile--large { grid-column: span 3; aspect-ratio: 3 / 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 48, 0) 35%, rgba(11, 16, 48, 0.55) 70%, rgba(11, 16, 48, 0.92) 100%);
}
.tile__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 6px; padding: 26px 28px;
}
.tile__body strong { font-family: var(--head); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.tile__body span { font-size: 0.98rem; color: rgba(255, 255, 255, 0.78); }
.tile__body::after {
  content: "Mehr erfahren →"; margin-top: 6px;
  font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--white);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s;
}
.tile:hover img { transform: scale(1.04); }
.tile:hover .tile__body::after { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: 4px; }

/* ---------- Compare (Vorher/Nachher) ---------- */

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare { margin: 0; }
.compare--wide { grid-column: 1 / -1; }
.compare__frame {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 9;
  border-radius: var(--r); overflow: hidden; background: #ccc; user-select: none;
  box-shadow: var(--shadow);
}
.compare__after, .compare__before img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.compare__before { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; border-right: 3px solid var(--white); }
.compare__before img { width: 100cqi; max-width: none; }
.compare__tag {
  position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 4px;
  background: rgba(11, 16, 48, 0.78); color: var(--white);
  font-family: var(--head); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; background: var(--blue); }
.compare input[type="range"] {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  background: transparent; appearance: none; cursor: ew-resize;
}
.compare input[type="range"]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.compare input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 5-5 5 5 5M12 5l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.compare input[type="range"]::-moz-range-track { height: 100%; background: transparent; border: 0; }
.compare input[type="range"]::-moz-range-thumb {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--white);
  background: var(--blue); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.compare figcaption { padding-top: 16px; color: var(--muted); }
.compare figcaption strong { display: block; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.3rem; }

/* ---------- Trust (dark) ---------- */

.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.trust__text > p { font-size: 1.2rem; max-width: 520px; }
.trust__text h2::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 22px; background: var(--blue-soft); opacity: 0.9; }
.trust__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.trust__list li { display: flex; gap: 14px; }
.trust__list .tick { color: var(--white); background: var(--blue); border-radius: 4px; padding: 3px; width: 28px; height: 28px; }
.trust__list h3 { font-size: 1.2rem; margin-bottom: 4px; }
.trust__list p { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.trust__photo { position: relative; margin: 0; }
.trust__photo img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; position: relative; z-index: 1; }
.trust__photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--r);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li {
  position: relative; padding: 32px 28px 30px;
  background: var(--grey); border-radius: var(--r); border-top: 4px solid var(--blue);
}
.steps__n {
  display: block; margin-bottom: 36px;
  font-family: var(--head); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--blue);
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1.02rem; color: var(--muted); }

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

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.contact__intro h2::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 22px; background: var(--blue); }
.contact__lead { font-size: 1.2rem; }
.contact__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.contact__list span { display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact__list a, .contact__list p { color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.5rem; margin: 0; }
.contact__list a:hover { color: var(--blue); }
.contact__hint { margin-top: 40px; padding: 24px 28px; border-left: 4px solid var(--blue); background: var(--white); border-radius: 0 var(--r) var(--r) 0; }
.contact__hint h3 { font-size: 1.1rem; margin-bottom: 10px; }
.contact__hint ul { margin: 0; padding-left: 18px; font-size: 1rem; color: var(--text); }
.contact__hint li { margin: 4px 0; }

.contact__form { padding: 40px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }

.form-alert { margin: 0 0 20px; padding: 12px 14px; border-left: 4px solid #b42318; background: #fbeeee; color: #7a1c14; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #c6cad6; border-radius: var(--r); background: var(--white); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14, 28, 189, 0.14); }
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23141826' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[aria-invalid="true"] { border-color: #b42318 !important; }
.field__error { margin: 6px 0 0; color: #9f2218; font-size: 0.92rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.check label { font-size: 0.98rem; font-weight: 400; display: block; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { width: 100%; margin-top: 6px; }

.thanks { max-width: 620px; }
.thanks__icon { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--blue); color: var(--white); margin-bottom: 20px; }
.thanks__ref { display: inline-block; padding: 6px 12px; background: var(--grey); border-radius: 4px; font-weight: 600; }
.thanks .hero__actions { margin-top: 24px; }

/* ---------- Banner (subpages) ---------- */

.banner {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: 440px; background: var(--navy); color: var(--white);
}
.banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 16, 48, 0.9) 0%, rgba(11, 16, 48, 0.65) 50%, rgba(11, 16, 48, 0.3) 100%);
}
.banner__content { padding: 96px 0 64px; max-width: 760px; }
.banner h1 { color: var(--white); }
.banner p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.85); max-width: 600px; }

/* ---------- Leistungen page ---------- */

.jump { position: sticky; top: var(--header-h, 84px); transition: top 0.35s var(--ease-out); z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.jump__inner { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jump__inner::-webkit-scrollbar { display: none; }
.jump a {
  flex: none; padding: 18px 16px; color: var(--ink); text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; border-bottom: 3px solid transparent;
}
.jump a:hover { color: var(--blue); border-bottom-color: var(--blue); }

.service__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.service--flip .service__photo { order: 2; }
.service__photo { margin: 0; }
.service__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.service h2::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 22px; background: var(--blue); }
.service__lead { font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.service .btn { margin-top: 8px; }

.checklist { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink); }
.checklist .tick { color: var(--blue); margin-top: 2px; }

/* ---------- Über uns ---------- */

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.about h2::before { content: ""; display: block; width: 56px; height: 5px; margin-bottom: 22px; background: var(--blue); }
.about .btn { margin-top: 12px; }
.about__photos { display: grid; gap: 20px; }
.about__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }
.about__photos img:last-child { width: 78%; margin-left: auto; margin-top: -60px; position: relative; border: 6px solid var(--white); }

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

.legal { max-width: 760px; }
.legal h2 { margin-top: 1.6em; font-size: 1.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.notice { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--blue); background: var(--grey); border-radius: 0 var(--r) var(--r) 0; }

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

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 1rem; }
.footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding: 72px 0 56px; }
.footer__brand img { width: 170px; margin-bottom: 20px; }
.footer__brand p { max-width: 320px; }
.footer__col h2 {
  margin-bottom: 16px; color: var(--white);
  font-family: var(--body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer__col a:hover { color: var(--white); text-decoration: underline; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 0.92rem; }
.footer__bar p { margin: 0; }
.footer__bar a { color: rgba(255, 255, 255, 0.72); margin-left: 20px; }
.footer__bar a:hover { color: var(--white); }

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

@media (max-width: 1100px) {
  .header { gap: 24px; }
  .header__phone { display: none; }
}

@media (max-width: 960px) {
  .trust, .contact, .service__grid, .about { grid-template-columns: 1fr; gap: 48px; }
  .service--flip .service__photo { order: 0; }
  .trust__photo::before { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile--large { grid-column: auto; aspect-ratio: 4 / 3; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts li:nth-child(2) { border-right: 0; }
  .hero__facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 800px) {
  .nav, .header__actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .header { height: 72px; }
  .nav-panel { inset: var(--header-h, 72px) 0 0 0; }
  .jump { top: var(--header-h, 72px); }
  html { scroll-padding-top: 88px; }
  .section, .block { padding: 72px 0; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 16, 48, 0.78) 0%, rgba(11, 16, 48, 0.82) 100%); }
  .hero__img { object-position: 78% center; }
  .hero__content { padding: 72px 0 44px; }
  .hero p { font-size: 1.15rem; }
  .banner { min-height: 320px; }
  .banner__content { padding: 72px 0 40px; }
  .contact__form { padding: 28px 22px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .brand__text small { display: none; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .hero__facts li:last-child { border-bottom: 0; }
  .tiles, .compare-grid, .steps, .trust__list, .checklist, .form-row, .footer { grid-template-columns: 1fr; }
  .tile__body { padding: 20px; }
  .tile__body strong { font-size: 1.4rem; }
  .about__photos img:last-child { width: 100%; margin-top: 0; border: 0; }
  .footer__bar-inner { flex-direction: column; }
  .footer__bar a { margin: 0 20px 0 0; }
}

/* ---------- Motion ---------- */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* Header compacts after scrolling */
.site-header { transition: box-shadow 0.3s; }
.header { transition: height 0.35s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(11, 16, 48, 0.08); }
.site-header.is-scrolled .header { height: 68px; }
.brand img { transition: transform 0.35s var(--ease-out); }
.site-header.is-scrolled .brand img { transform: scale(0.85); }

/* Buttons: lift on hover, settle on press */
.btn { box-shadow: 0 0 0 rgba(14, 28, 189, 0); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 28, 189, 0.22); }
.btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(14, 28, 189, 0.2); transition-duration: 0.08s; }
.btn--ghost:hover, .btn--outline:hover { box-shadow: 0 10px 24px rgba(11, 16, 48, 0.18); }
.btn.is-sending { opacity: 0.75; pointer-events: none; }

/* Hero entrance */
.hero { overflow: hidden; }
.hero__img { transform: scale(1.06); will-change: transform; }
html.js .hero__img { animation: hero-zoom 1.8s var(--ease-out) backwards; }
@keyframes hero-zoom { from { transform: scale(1.14); opacity: 0.6; } to { transform: scale(1.06); opacity: 1; } }

html.js .hero h1,
html.js .hero__content > p,
html.js .hero__actions { animation: rise-in 1s var(--ease-out) both; }
html.js .hero h1 { animation-delay: 0.25s; }
html.js .hero__content > p { animation-delay: 0.42s; }
html.js .hero__actions { animation-delay: 0.58s; }
html.js .hero__facts { animation: rise-in 1s var(--ease-out) 0.7s both; }
html.js .hero__facts li { opacity: 0; animation: fade-in 0.6s var(--ease-out) both; animation-delay: calc(0.9s + var(--i, 0) * 0.1s); }

@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Banner (subpages) */
.banner { overflow: hidden; }
.banner__img { transform: scale(1.06); will-change: transform; }
html.js .banner__img { animation: hero-zoom 1.6s var(--ease-out) backwards; }
html.js .banner h1 { animation: rise-in 0.9s var(--ease-out) 0.2s both; }
html.js .banner p { animation: rise-in 0.9s var(--ease-out) 0.35s both; }

/* Scroll reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  will-change: opacity, transform;
}
html.js [data-reveal][data-reveal-from="right"] { transform: translateX(40px); }
html.js [data-reveal][data-reveal-from="scale"] { transform: scale(0.94); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Staggered children inside a revealed group */
html.js [data-reveal][data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
html.js [data-reveal][data-stagger].is-in > * { opacity: 1; transform: none; }
html.js [data-reveal][data-stagger] { transform: none; }

/* Stagger for groups nested inside a revealed parent */
html.js [data-reveal] [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(0.25s + var(--i, 0) * 0.08s);
}
html.js [data-reveal].is-in [data-stagger] > * { opacity: 1; transform: none; }

/* Accent bar draws in */
.section-head h2::before,
.trust__text h2::before,
.contact__intro h2::before,
.service h2::before,
.about h2::before {
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.2s;
}
html.js [data-reveal]:not(.is-in) h2::before { transform: scaleX(0); }

/* Tiles and photos */
.tile { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 16, 48, 0.22); }
.tile img { transition: transform 0.9s var(--ease-out); }
.tile:hover img { transform: scale(1.06); }
.tile__body strong { transition: transform 0.4s var(--ease-out); }
.tile:hover .tile__body strong { transform: translateY(-2px); }

.service__photo img, .about__photos img, .trust__photo img {
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
}
.service__photo:hover img, .about__photos img:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(11, 16, 48, 0.18); }

/* Steps */
.steps li { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s; }
.steps li:hover { transform: translateY(-4px); background: var(--white); box-shadow: var(--shadow); }

/* Compare slider handle */
.compare input[type="range"]::-webkit-slider-thumb { transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.compare input[type="range"]:hover::-webkit-slider-thumb,
.compare input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.compare__frame { transition: box-shadow 0.4s var(--ease-out); }
.compare__frame:hover { box-shadow: 0 20px 50px rgba(11, 16, 48, 0.2); }

/* Links in nav and footer */
.footer__col a { transition: color 0.2s, padding-left 0.25s var(--ease-out); }
.footer__col a:hover { padding-left: 6px; text-decoration: none; color: var(--white); }
.jump a { transition: color 0.2s, border-color 0.2s; }

/* Mobile panel */
.nav-panel.is-open nav a { animation: rise-in 0.5s var(--ease-out) both; }
.nav-panel.is-open nav a:nth-child(1) { animation-delay: 0.05s; }
.nav-panel.is-open nav a:nth-child(2) { animation-delay: 0.1s; }
.nav-panel.is-open nav a:nth-child(3) { animation-delay: 0.15s; }
.nav-panel.is-open nav a:nth-child(4) { animation-delay: 0.2s; }
.nav-panel.is-open .nav-panel__foot { animation: rise-in 0.5s var(--ease-out) 0.28s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js [data-reveal], html.js [data-reveal][data-stagger] > *, html.js [data-reveal] [data-stagger] > *, html.js .hero__facts li { opacity: 1 !important; transform: none !important; }
  .hero__img, .banner__img { transform: none !important; }
}
