/* ==========================================================================
   KGL rebuild — main stylesheet
   Brand palette from logo: red #e4001b, blue #0084c9, amber #ffbe00.
   Font: self-hosted Poppins. Mobile-first, no framework.
   ========================================================================== */

/* ----- Fonts ----- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* ----- Tokens ----- */
:root {
  --red: #e4001b;
  --red-dark: #c00017;
  --blue: #0084c9;
  --amber: #ffbe00;

  --ink: #16181d;
  --ink-2: #0d0e12;
  --body: #2b2f37;
  --muted: #6b7280;
  --line: #e6e8ec;
  --tint: #f5f6f8;
  --white: #ffffff;

  --container: 1200px;
  --narrow: 820px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 10px 30px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.16);
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 84px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink-2); color: #d7dae0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section__title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
.section__title.center { text-align: center; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--red); margin-bottom: .75rem;
}
.section--dark .kicker { color: var(--amber); }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--red); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { --btn-bg: var(--red); }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid currentColor; box-shadow: none; }
.section--dark .btn--outline, .cta-band .btn--outline { color: #fff; }
.btn--outline:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow { color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.section--dark .link-arrow { color: var(--amber); }
.link-arrow--back { color: var(--muted); }

/* ----- Flash ----- */
.flash-wrap { margin-top: 1.5rem; display: grid; gap: .75rem; }
.flash { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; }
.flash--success { background: #e7f7ec; color: #12703a; border: 1px solid #bfe6cd; }
.flash--error { background: #fdecec; color: #a11020; border: 1px solid #f4c3c9; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.header__logo img { height: 46px; width: auto; }
.header__actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; border-radius: var(--radius-sm); font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link.is-active { color: var(--red); }
.nav__caret { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav__toggle { display: none; }
.nav__item--shop .nav__link { color: var(--red); font-weight: 600; }

.nav__dropdown {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.has-dropdown:hover .nav__dropdown, .has-dropdown:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a { display: block; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .92rem; color: var(--body); transition: background .15s, color .15s; }
.nav__dropdown a:hover, .nav__dropdown a.is-active { background: var(--tint); color: var(--red); }

.header__burger { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.header__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-switcher__current { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .7rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .85rem; border: 1px solid var(--line); }
.lang-switcher__caret { width: .4rem; height: .4rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-1px); }
.lang-switcher__menu {
  position: absolute; top: calc(100% + .4rem); right: 0; min-width: 150px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s var(--ease);
}
.lang-switcher.is-open .lang-switcher__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__menu a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); font-size: .9rem; }
.lang-switcher__menu a:hover { background: var(--tint); }
.lang-switcher__menu a.is-active { color: var(--red); font-weight: 600; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center;
  color: #fff; background: var(--ink-2) var(--hero-bg) center/cover no-repeat;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(9,10,13,.9) 0%, rgba(9,10,13,.6) 45%, rgba(9,10,13,.25) 100%); }
.hero__inner { position: relative; max-width: 780px; padding-block: 4rem; }
.hero__heading { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; }
.hero__sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d7dae0; max-width: 60ch; }
.hero .btn { margin-top: 2rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.5rem; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll::before { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ----- Intro ----- */
.intro__inner { max-width: var(--narrow); }
.intro__body { margin-top: 1rem; font-size: 1.1rem; color: var(--body); }

/* ==========================================================================
   Services grid
   ========================================================================== */
.services__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--ink); border-radius: var(--radius-sm); margin-bottom: 1.25rem; transition: background .25s var(--ease); }
.service-card:hover .service-card__icon { background: var(--red); }
.service-card__icon img { width: 36px; height: 36px; object-fit: contain; }
.service-card__title { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.service-card__body { margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.service-card__bullets { margin-top: 1rem; display: grid; gap: .4rem; }
.service-card__bullets li { position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--body); }
.service-card__bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.service-card__link { margin-top: auto; padding-top: 1.25rem; color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.services__cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================================================
   Carousel (product gallery)
   ========================================================================== */
.carousel { position: relative; margin-top: 2rem; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 1rem; transition: transform .5s var(--ease); will-change: transform; padding-inline: var(--gutter); }
.carousel__slide { flex: 0 0 auto; width: clamp(240px, 42vw, 380px); }
.carousel__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--tint); }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, color .2s, transform .2s;
}
.carousel__btn:hover { background: var(--red); color: #fff; }
.carousel__btn--prev { left: .5rem; }
.carousel__btn--next { right: .5rem; }
.carousel__btn[disabled] { opacity: .35; cursor: default; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.stat__value { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1; }
.stat__value::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); border-radius: 2px; margin: 1rem auto 0; }
.stat__label { margin-top: 1rem; color: #aab0ba; font-size: .98rem; max-width: 22ch; margin-inline: auto; }

/* ==========================================================================
   Why KGL
   ========================================================================== */
.why__body { max-width: var(--narrow); margin-top: 1rem; color: var(--body); font-size: 1.05rem; }
.why__grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why-card {
  position: relative; padding: 2rem 1.5rem 1.75rem; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s;
}
.why-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card:hover::before { transform: scaleY(1); }
.why-card__num { font-size: 1.1rem; font-weight: 800; color: var(--red); }
.why-card__title { margin-top: .5rem; font-size: 1.1rem; color: var(--ink); }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries__body { max-width: var(--narrow); margin-top: 1rem; color: var(--body); }
.industries__grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.industry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1rem; text-align: center; transition: transform .25s var(--ease), box-shadow .25s; }
.industry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.industry__icon { width: 68px; height: 68px; margin: 0 auto 1rem; display: grid; place-items: center; }
.industry__icon img { width: 100%; height: 100%; object-fit: contain; }
.industry__title { font-size: 1rem; color: var(--ink); }

/* ==========================================================================
   Video band
   ========================================================================== */
.video-band__inner { max-width: 960px; margin-inline: auto; text-align: center; }
.video-band__player, .video-band__poster img { width: 100%; border-radius: var(--radius); margin-top: 2rem; box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-band__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.cta-band__heading { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
.cta-band__body { color: rgba(255,255,255,.9); margin-top: 1rem; font-size: 1.08rem; }
.cta-band .btn { margin-top: 2rem; background: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   News
   ========================================================================== */
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__link { display: flex; flex-direction: column; height: 100%; }
.news-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__thumb--placeholder { display: grid; place-items: center; }
.news-card__thumb--placeholder img { width: 96px; height: auto; object-fit: contain; opacity: .55; }
.news-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card__title { font-size: 1.12rem; color: var(--ink); }
.news-card__teaser { color: var(--muted); font-size: .93rem; }
.news-card__body .link-arrow { margin-top: auto; padding-top: .5rem; font-size: .9rem; }

/* ----- Careers ----- */
.careers__inner { max-width: var(--narrow); }
.careers__body { margin-top: 1rem; color: var(--body); font-size: 1.05rem; }
.careers .btn { margin-top: 1.75rem; }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners__grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.partners__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1rem; }
.partners__item img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.partners__item:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   Generic page / sections
   ========================================================================== */
.page-hero { background: var(--ink-2); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero .kicker { color: var(--amber); }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; }
.page-hero__sub { color: #c4c9d2; margin-top: 1rem; font-size: 1.1rem; max-width: 60ch; }
.page-hero--service { background: linear-gradient(120deg, var(--ink) 0%, #1c2740 100%); }
.page-hero--article .link-arrow { color: #c4c9d2; margin-bottom: 1rem; }

.content-section { margin-bottom: 2.75rem; }
.content-section__heading { margin-bottom: .75rem; }
.content-section__heading.level-1, .content-section__heading.level-2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.content-section__heading.level-3 { font-size: 1.25rem; color: var(--red); }
.content-section__heading.level-4 { font-size: 1.1rem; }
.content-section p { margin-bottom: .9rem; color: var(--body); }
.content-section__lead-cta { font-weight: 700; color: var(--ink); }
.content-section__bullets { display: grid; gap: .5rem; margin: 1rem 0; }
.content-section__bullets li { position: relative; padding-left: 1.5rem; color: var(--body); }
.content-section__bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.content-section__figure { margin: 1.5rem 0; }
.content-section__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-section .btn { margin-top: .5rem; }
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 1.5rem 0; }
.media-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: var(--tint); }
.content-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; margin: 1.5rem 0; }
.content-video--missing { display: grid; place-items: center; background: var(--ink-2); }
.content-video--missing img { width: 120px; height: auto; opacity: .5; }

/* Service subnav */
.service-subnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: var(--header-h); z-index: 40; }
.service-subnav__inner { display: flex; gap: .5rem; overflow-x: auto; padding-block: .75rem; }
.service-subnav a { white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.service-subnav a:hover { color: var(--red); }
.service-subnav a.is-active { background: var(--red); color: #fff; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.contact__info h2, .contact__form-wrap h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact__details { display: grid; gap: 1rem; margin: 1.5rem 0; }
.contact__details li { display: flex; gap: .8rem; align-items: flex-start; }
.contact__ico { color: var(--red); font-size: 1.1rem; }
.contact__hours { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--red); padding-left: 1rem; }
.contact__note { color: var(--muted); margin-bottom: 1.5rem; }
.contact__location { margin-top: 3rem; }
.contact__location h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.contact__map { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 380px; border: 0; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form__field { display: grid; gap: .4rem; }
.form__field span { font-size: .88rem; font-weight: 600; color: var(--ink); }
.form input, .form textarea {
  font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,0,27,.12); }
.form textarea { resize: vertical; }
.form__required-note { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Error pages
   ========================================================================== */
.error-page { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.error-page__code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; color: var(--red); line-height: 1; }
.error-page__title { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-top: .5rem; }
.error-page__body { color: var(--muted); margin: 1rem auto 2rem; max-width: 46ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-2); color: #aab0ba; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 1rem; }
.footer__tagline { max-width: 34ch; font-size: .92rem; }
.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); color: #fff; transition: background .2s, border-color .2s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__heading { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { font-size: .92rem; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__contact address { font-style: normal; font-size: .92rem; line-height: 1.9; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-block: 1.5rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header__contact { display: none; }
  .header__burger { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(360px, 86vw);
    background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; padding: 1rem;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link { justify-content: space-between; padding: .85rem 1rem; font-size: 1rem; }
  .nav__caret { display: none; }
  .has-dropdown { display: flex; flex-direction: column; }
  .has-dropdown .nav__link { position: relative; }
  .nav__toggle { display: block; position: absolute; right: 0; top: 0; width: 52px; height: 52px; }
  .nav__toggle::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 .5rem 1rem;
    max-height: 0; overflow: hidden; padding: 0 .5rem; transition: max-height .3s var(--ease);
  }
  .nav__item.is-expanded .nav__dropdown { max-height: 500px; }
  .nav__item.is-expanded .nav__toggle::after { content: "–"; }
}

@media (max-width: 620px) {
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; }
  .carousel__btn { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .carousel__track { transition: none !important; }
}
