/* ============================================================
   Tech Welt — single-file stylesheet
   System fonts (zero web-font load), CSS Grid + flex,
   light theme with teal accent.
============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-dark: #0b1220;
  --text: #0b1220;
  --text-soft: #334155;
  --text-muted: #64748b;
  --accent: #0ea5a4;
  --accent-strong: #0d9488;
  --accent-soft: #ccfbf1;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, .12), 0 4px 8px -4px rgba(15, 23, 42, .08);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --container: 1180px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Inline icon links (e.g., phone/WhatsApp in contact/footer) */
.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.link-with-icon .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 1.25rem;
  margin: 0 auto;
}

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }

/* Skip offscreen rendering for below-fold sections (CWV: faster initial render). */
#services, #about, #process, #blog, #contact, .stats {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head .eyebrow { color: var(--accent-strong); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.section__head p { color: var(--text-muted); font-size: 1.05rem; }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--block { width: 100%; justify-content: center; }
.btn .icon { width: 18px; height: 18px; }

/* ----------------- Header ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.brand__text span { color: var(--accent-strong); }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: var(--text-soft);
  font-weight: 500;
  font-size: .95rem;
  padding: .25rem 0;
  position: relative;
}
.nav__link:hover { color: var(--accent-strong); text-decoration: none; }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-soft);
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent-strong); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; color: var(--text); }

@media (max-width: 880px) {
  .nav { gap: .75rem; }
  .nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav__list.is-open { transform: translateY(0); }
  .nav__list li { width: 100%; }
  .nav__link { display: block; padding: .85rem 1.25rem; }
  .menu-toggle { display: inline-flex; }
}

/* ----------------- Hero ----------------- */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__eyebrow {
  display: inline-block;
  padding: .35rem .8rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.hero__title { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin-bottom: 1rem; }
.hero__title-emph { color: var(--accent-strong); }
.hero__subtitle { font-size: 1.1rem; color: var(--text-soft); max-width: 36rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero__trust {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.hero__trust .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; }
.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: 1.25rem; left: 1.25rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .6rem;
}
.hero__badge svg { color: var(--accent); width: 22px; height: 22px; }

/* ----------------- Service cards ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  /* Each card claims its own natural height — expanded cards don't pull neighbours taller. */
  align-items: start;
  /* Reserve space before JS hydrates the cards — prevents CLS. */
  min-height: 1400px;
}
@media (min-width: 720px) { .services-grid { min-height: 1100px; } }
@media (min-width: 1024px) { .services-grid { min-height: 900px; } }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card__media {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.service-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__title { font-size: 1.15rem; margin-bottom: .35rem; }
.service-card__summary { color: var(--text-muted); font-size: .95rem; flex-grow: 1; margin-bottom: 1rem; }
.service-card__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  margin-top: auto;
  padding: .65rem .9rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.service-card__toggle:hover { background: var(--accent-soft); border-color: var(--accent); }
.service-card__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.service-card__chevron { display: inline-flex; }
.service-card__chevron svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service-card__toggle[aria-expanded="true"] .service-card__chevron svg { transform: rotate(180deg); }

.service-card__details {
  margin: .85rem 0 0;
  padding: .85rem 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.service-card__details[hidden] { display: none; }
.service-card__details li { color: var(--text-soft); font-size: .9rem; padding: .25rem 0 .25rem 1.5rem; position: relative; }
.service-card__details li::before {
  content: "";
  position: absolute;
  left: 0; top: .65rem;
  width: 14px; height: 14px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%230d9488' d='M6.6 11.2 3.4 8l1.1-1.1 2.1 2.1 4.9-4.9L12.6 5.2z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Fallback when an image fails to load — collapse the media area entirely */
.service-card__media--missing { display: none; }

/* ----------------- About ----------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__pillars { display: grid; gap: 1.25rem; min-height: 280px; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar__title { font-size: 1.1rem; margin-bottom: .25rem; }
.pillar__text { color: var(--text-muted); font-size: .95rem; margin: 0; }
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------- Process steps ----------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  min-height: 240px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover { border-color: var(--accent); transform: translateY(-2px); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
}
.step__title { font-size: 1.1rem; margin-bottom: .35rem; }
.step__text { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ----------------- Stats ----------------- */
.stats {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat__value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.stat__value em { color: var(--accent); font-style: normal; }
.stat__label { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ----------------- Blog ----------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  min-height: 360px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card__date { color: var(--text-muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.post-card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card__excerpt { color: var(--text-muted); font-size: .95rem; flex-grow: 1; margin-bottom: 1rem; }
.post-card__more { color: var(--accent-strong); font-weight: 600; font-size: .9rem; }

/* Blog modal (post viewer) */
.post-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
  background: rgba(11, 18, 32, .55);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.post-modal.is-open { display: flex; }
.post-modal__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  position: relative;
}
.post-modal__close {
  position: absolute;
  top: .8rem; right: .8rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-soft);
}
.post-modal__close:hover { color: var(--text); border-color: var(--text-muted); }
.post-modal__title { font-size: 1.6rem; margin-bottom: .25rem; }
.post-modal__date { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.post-modal__body { color: var(--text-soft); }
.post-modal__body h1, .post-modal__body h2, .post-modal__body h3 { margin: 1.5rem 0 .5rem; color: var(--text); }
.post-modal__body p { margin: 0 0 1em; }
.post-modal__body ul, .post-modal__body ol { padding-left: 1.4rem; margin-bottom: 1em; }
.post-modal__body code { background: var(--bg-alt); padding: 0 .3rem; border-radius: 4px; font-size: .92em; }

/* ----------------- Contact ----------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; } }

.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-info dl { margin: 0; display: grid; gap: 1rem; }
.contact-info dt { font-weight: 600; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.contact-info dd { margin: 0; color: var(--text); }
.contact-info dd a { color: var(--text); }
.contact-info dd a:hover { color: var(--accent-strong); }
.contact-info .hours-list { list-style: none; padding: 0; margin: .25rem 0 0; }
.contact-info .hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0; color: var(--text-soft); }
.contact-info .hours-list li span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.map-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  display: block;
  background: var(--bg-alt);
}

/* Form styling */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 600; font-size: .85rem; color: var(--text-soft); margin-bottom: .35rem; }
.contact-form .req { color: #dc2626; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, .15);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .contact-form .row-2 { grid-template-columns: 1fr; } }
.contact-form .hidden { position: absolute; left: -9999px; }
.contact-form .form-msg { display: none; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-top: 1rem; font-size: .9rem; }
.contact-form .form-msg--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.contact-form .form-msg--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-form.is-submitted .form-msg--success { display: block; }
.contact-form.is-error .form-msg--error { display: block; }
.contact-form label.error { color: #b91c1c; font-weight: 500; font-size: .8rem; margin-top: .25rem; display: block; }

/* ----------------- Footer ----------------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 720px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__brand { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; display: inline-flex; align-items: center; gap: .5rem; }
.site-footer__brand .brand__mark { background: var(--accent); }
.site-footer p { color: rgba(255,255,255,.65); font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; text-decoration: none; }

.site-footer__service-area {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin: 1.25rem 0 0;
  text-align: center;
}
.site-footer__legal-note {
  font-size: .68rem;
  color: rgba(255,255,255,.42);
  margin: .7rem auto 0;
  max-width: 900px;
  text-align: center;
  line-height: 1.4;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.socials { display: inline-flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  transition: background .2s ease;
}
.socials a:hover { background: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* ----------------- Cookie banner ----------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(20, 20, 22, .97);
  color: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
  padding: .8rem 1rem .95rem;
  text-align: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
  margin: 0 0 .25rem;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner__text {
  margin: 0 auto .55rem;
  max-width: 920px;
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .78);
}
.cookie-banner__text a {
  color: #9cc8ff;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}
.cookie-btn {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: .35rem .7rem;
  border-radius: 6px;
  font-size: .74rem;
  line-height: 1;
  cursor: pointer;
}
.cookie-btn:hover { background: rgba(255, 255, 255, .16); }
.cookie-btn--primary {
  background: #2d87ff;
  border-color: #2d87ff;
}
.cookie-btn--primary:hover { background: #1f75ea; }
.cookie-btn--ghost {
  background: transparent;
}

/* ----------------- Legal pages ----------------- */
.legal-page {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.legal-page__head {
  margin-bottom: 1.25rem;
}
.legal-page__meta {
  color: var(--text-muted);
  font-size: .92rem;
}
.legal-page__content {
  max-width: 860px;
}
.legal-page__content section {
  margin-top: 1.5rem;
}
.legal-page__content h2 {
  font-size: 1.2rem;
  margin-bottom: .45rem;
}

/* ----------------- 404 page ----------------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.error-page__code { font-size: 5rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.error-page__title { font-size: 1.5rem; margin: .5rem 0 .25rem; }
.error-page__text { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ----------------- Utilities ----------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: .5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
