/* =====================================================================
   TOMEX TRANS 99-BG
   1. Tokens      4. Header        7. Contact
   2. Reset       5. Hero          8. Footer
   3. Layout      6. Components    9. Responsive
   ===================================================================== */

/* ------------------------------ 1. Tokens ------------------------------ */
:root {
  /* Brand */
  --navy-950: #05101d;
  --navy-900: #0a1d33;
  --navy-800: #0f2c4c;
  --navy-700: #17406b;
  --blue-700: #0f4fa8;
  --blue-600: #1668d4;
  --blue-500: #2b86f0;
  --blue-400: #63a8f7;
  --blue-100: #e6f0fd;
  --red-600:  #b8161c;
  --red-500:  #e01f26;

  /* Neutrals */
  --ink:      #0b1622;
  --ink-mid:  #35485c;
  --ink-soft: #64768a;
  --line:     #e4eaf1;
  --line-soft:#eef2f7;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fb;

  /* Type */
  --font-display: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --container: 1240px;
  --gutter: 24px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(10, 29, 51, .05);
  --shadow-sm: 0 2px 4px rgba(10, 29, 51, .04), 0 6px 16px rgba(10, 29, 51, .06);
  --shadow-md: 0 8px 20px rgba(10, 29, 51, .08), 0 20px 48px rgba(10, 29, 51, .09);
  --shadow-lg: 0 24px 64px rgba(10, 29, 51, .18);

  --header-h: 80px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------ 2. Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  color: var(--ink-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* Manrope ships Bulgarian localised Cyrillic (и→u, д→g, т→m), which the browser
     applies automatically because <html lang="bg">. Those forms are traditional but
     read as informal for a corporate site, so we use the standard shapes.
     Delete this line if the client prefers the Bulgarian forms. */
  font-feature-settings: "locl" 0;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--red-500); }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.028em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.032em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: -.022em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--blue-600); color: #fff; }

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

/* ------------------------------ 3. Layout ------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.section { padding: clamp(64px, 8.5vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: rgba(255,255,255,.76); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--flush-top { padding-top: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 14px 22px;
  font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Section heading ------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 12px;
  border-radius: 100px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-500); flex: none;
}
.kicker--light { background: rgba(255,255,255,.11); color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(38px, 4.5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head > p { font-size: 1.1rem; color: var(--ink-soft); }
.section-head h2 { margin-bottom: .4em; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .96rem; font-weight: 700; letter-spacing: -.01em;
  padding: 16px 28px;
  border: 1.5px solid transparent; border-radius: 100px;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn--primary {
  background: var(--red-500); color: #fff;
  box-shadow: 0 4px 14px rgba(224, 31, 38, .3);
}
.btn--primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 10px 26px rgba(224, 31, 38, .38); }

.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); }

.btn--glass {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: #fff; border-color: #fff; color: var(--navy-900); }

.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy-900); color: var(--navy-900); box-shadow: var(--shadow-sm); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* Text link with arrow -------------------------------------------------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; color: var(--blue-600);
}
.link-arrow svg { width: 16px; height: 16px; fill: currentColor; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------ 4. Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-xs); }

.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { flex: none; display: block; padding: 12px 0; }
.brand img { width: auto; height: 44px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative; display: block;
  padding: 9px 16px; border-radius: 100px;
  font-size: .95rem; font-weight: 600; letter-spacing: -.012em;
  color: var(--ink-mid);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-active { color: var(--navy-900); background: var(--blue-100); font-weight: 700; }

.nav__aside { display: flex; align-items: center; gap: 14px; }

.nav__phone {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px; border-radius: 100px;
  background: var(--bg-soft);
  font-size: .92rem; font-weight: 700; color: var(--navy-900); white-space: nowrap;
  transition: background-color .18s var(--ease);
}
.nav__phone svg { width: 16px; height: 16px; fill: var(--red-500); flex: none; }
.nav__phone:hover { background: var(--blue-100); color: var(--navy-900); }

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 100px; background: var(--bg-soft);
}
.lang-switch__item {
  display: block; padding: 6px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.lang-switch__item:hover { color: var(--ink); }
.lang-switch__item.is-active { background: var(--navy-900); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: var(--navy-900); border-radius: 2px;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------- 5. Hero ------------------------------- */
.hero { position: relative; isolation: isolate; background: var(--navy-900); color: #fff; }

.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(5,16,29,.94) 0%, rgba(10,29,51,.86) 42%, rgba(15,44,76,.55) 70%, rgba(22,104,212,.32) 100%);
}

.hero h1 { color: #fff; margin-bottom: 24px; }
.hero p { color: rgba(255,255,255,.82); font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 560px; }

.hero--home { padding: clamp(88px, 12vw, 150px) 0 clamp(120px, 13vw, 170px); }
.hero--home .hero__inner { max-width: 720px; }
.hero--home .btn-row { margin-top: 38px; }

.hero--page { padding: clamp(72px, 9vw, 118px) 0 clamp(72px, 9vw, 112px); }
.hero--page .hero__inner { max-width: 720px; }
.hero--page h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }

/* Trust strip inside the hero ------------------------------------------- */
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  margin-top: 42px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__trust li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.8);
}
.hero__trust svg { width: 17px; height: 17px; fill: var(--blue-400); flex: none; }

/* Floating stats -------------------------------------------------------- */
.stats { margin-top: clamp(-90px, -8vw, -64px); position: relative; z-index: 3; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.stat { padding: 34px 26px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800;
  letter-spacing: -.035em; color: var(--navy-900);
  line-height: 1; margin-bottom: 10px;
}
.stat__label { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }

/* --------------------------- 6. Components ----------------------------- */

/* Split: text + image --------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5.5vw, 84px); align-items: center;
}
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--reverse .split__text { order: 2; }

.split__figure {
  position: relative;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.split__figure img { width: 100%; height: 100%; object-fit: cover; }
.split__figure--portrait { aspect-ratio: 4 / 5; }
.split__figure--landscape { aspect-ratio: 4 / 3; }

/* Badge floating over an image */
.figure-badge {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.figure-badge__num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  letter-spacing: -.04em; color: var(--navy-900); line-height: 1;
}
.figure-badge__text { font-size: .88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }

/* Cards ----------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Service card with photo */
.s-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.s-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.s-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.s-card:hover .s-card__media img { transform: scale(1.06); }

.s-card__badge {
  position: absolute; top: 16px; left: 16px;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--navy-900);
}
.s-card__badge svg { width: 21px; height: 21px; fill: currentColor; }

.s-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.s-card__body h3 { margin-bottom: 10px; }
.s-card__body > p { font-size: .96rem; color: var(--ink-soft); margin-bottom: 20px; }

/* margin-top:auto bottom-aligns the list so all cards in a row line up,
   whatever the length of the description above it. */
.s-card__list { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }
.s-card__list li {
  position: relative; padding-left: 26px;
  font-size: .91rem; color: var(--ink-soft); line-height: 1.5;
}
.s-card__list li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-100);
}
.s-card__list li::after {
  content: ""; position: absolute; left: 5px; top: .62em;
  width: 6px; height: 3.5px;
  border-left: 1.8px solid var(--blue-600); border-bottom: 1.8px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* Plain feature card */
.f-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.f-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.f-card__icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.f-card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.f-card:hover .f-card__icon { background: var(--navy-900); color: #fff; }
.f-card h3 { margin-bottom: 9px; }
.f-card p { font-size: .95rem; color: var(--ink-soft); }

/* Feature row (dark sections) */
.feature { display: flex; gap: 18px; }
.feature__icon {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.09); color: var(--blue-400);
}
.feature__icon svg { width: 22px; height: 22px; fill: currentColor; }
.feature h3 { font-size: 1.1rem; margin-bottom: 7px; }
.feature p { font-size: .95rem; }
.section--dark .feature p { color: rgba(255,255,255,.66); }

/* Timeline -------------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.timeline__item { position: relative; padding: 0 0 34px 40px; }
.timeline__item::before {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100);
}
.timeline__item::after {
  content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px;
  background: var(--line);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:last-child::after { display: none; }
.timeline__item:last-child::before { background: var(--red-500); box-shadow: 0 0 0 4px rgba(224,31,38,.14); }

.timeline__year {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--blue-700); margin-bottom: 5px;
}
.timeline__text { color: var(--ink-soft); font-size: .97rem; }

/* Check list ------------------------------------------------------------ */
.check-list { display: grid; gap: 15px; margin-top: 28px; }
.check-list li {
  position: relative; padding-left: 34px;
  font-weight: 600; color: var(--ink); font-size: .98rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 7px; background: var(--blue-100);
}
.check-list li::after {
  content: ""; position: absolute; left: 7px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--blue-700); border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

/* Steps ----------------------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--line);
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 2px;
  background: var(--red-500);
}
.step__num {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; color: var(--blue-600); margin-bottom: 12px;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .96rem; color: var(--ink-soft); }

/* Feature band with image (US Army) ------------------------------------- */
.band { position: relative; isolation: isolate; background: var(--navy-950); color: rgba(255,255,255,.76); overflow: hidden; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(5,16,29,.96) 30%, rgba(5,16,29,.62) 100%);
}
.band h2 { color: #fff; }
.band__inner { max-width: 700px; }
.band__seal {
  width: 62px; height: 62px; border-radius: 18px; margin-bottom: 26px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}
.band__seal svg { width: 28px; height: 28px; fill: #fff; }

/* CTA ------------------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 76px);
  color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,29,51,.95) 20%, rgba(15,79,168,.86) 100%);
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.82); max-width: 520px; }

/* Logo/quote panel ------------------------------------------------------ */
.panel {
  background: var(--navy-900); color: rgba(255,255,255,.76);
  border-radius: var(--r-xl); padding: clamp(32px, 4vw, 48px);
}
.panel h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 14px; }

/* ----------------------------- 7. Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 64px); align-items: start; }

.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px 28px;
}
.contact-item {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700);
}
.contact-item__icon svg { width: 21px; height: 21px; fill: currentColor; }
.contact-item__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}
.contact-item__value {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 600; letter-spacing: -.018em;
  color: var(--ink); line-height: 1.5;
}
.contact-item__value a { color: var(--ink); }
.contact-item__value a:hover { color: var(--red-500); }

.note {
  border-radius: var(--r-lg);
  background: var(--blue-100);
  padding: 26px 28px;
}
.note h3 { font-size: 1.08rem; margin-bottom: 8px; }
.note p { font-size: .95rem; color: var(--navy-800); }

/* Map ------------------------------------------------------------------- */
.map-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
#map { width: 100%; height: clamp(380px, 52vh, 560px); z-index: 0; }
.map-fallback { padding: 48px 24px; text-align: center; color: var(--ink-soft); }
.map-note { margin-top: 16px; font-size: .92rem; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper { border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.leaflet-popup-content { font-size: .92rem; line-height: 1.55; margin: 15px 18px; color: var(--ink-mid); }
.leaflet-popup-content strong { font-family: var(--font-display); color: var(--ink); }
.leaflet-control-zoom a { border-radius: 8px !important; color: var(--navy-900) !important; }

/* ------------------------------ 8. Footer ------------------------------ */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,.62);
  padding: clamp(56px, 7vw, 88px) 0 30px;
  font-size: .94rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1.4fr; gap: clamp(32px, 4.5vw, 64px);
  padding-bottom: 48px;
}
.footer-logo {
  height: 46px; width: auto; margin-bottom: 22px;
  background: #fff; padding: 9px 13px; border-radius: 12px;
}
.footer-text { max-width: 360px; }
.footer-title {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 20px;
}
.footer-list { display: grid; gap: 12px; }
.footer-list a { color: rgba(255,255,255,.62); }
.footer-list a:hover { color: #fff; }
.footer-list--contact li { line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.42);
}
.footer-bottom p { margin: 0; }
.footer-legal span { padding: 0 5px; }

/* Back to top ----------------------------------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background-color .2s var(--ease);
}
.to-top svg { width: 19px; height: 19px; fill: currentColor; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-500); color: #fff; }

/* Utilities ------------------------------------------------------------- */
.mt-lg { margin-top: clamp(30px, 4vw, 48px); }
.text-center { text-align: center; }

/* Scoped to .js (set by the inline script in <head>) so that content is never
   hidden when JavaScript is unavailable or fails — without this, every .reveal
   block would stay at opacity 0 forever. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* --------------------------- 9. Responsive ----------------------------- */
@media (max-width: 1120px) {
  .nav { gap: 16px; }
  .nav__phone span { display: none; }
  .nav__phone { padding: 9px 12px; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 14px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 16px; border-radius: 12px; font-size: 1.02rem; }

  .nav__aside { justify-content: space-between; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); }
  .nav__phone span { display: inline; }
  .nav__phone { padding: 9px 16px 9px 12px; }

  .stats { margin-top: -48px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }

  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .split__figure--portrait { aspect-ratio: 16 / 11; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; --r-xl: 24px; --r-lg: 20px; }

  .brand img { height: 36px; }

  .hero--home { padding-bottom: clamp(96px, 22vw, 130px); }
  .hero__trust { gap: 10px 20px; margin-top: 32px; padding-top: 24px; }

  .stats { margin-top: -40px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row { width: 100%; }

  .figure-badge { left: 16px; right: 16px; bottom: 16px; padding: 15px 18px; gap: 13px; }
  .figure-badge__num { font-size: 1.6rem; }

  .contact-card { padding: 4px 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .to-top { right: 14px; bottom: 14px; }
}

@media print {
  .site-header, .to-top, .site-footer, .hero__bg, .cta__bg, .band__bg { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding: 12pt 0; }
}
