/* TruckLo - Figma tokens (#0d1234 / #ef4136 / Open Sans + Inter) */

:root {
  --tl-primary: #0d1234;
  --tl-accent: #ef4136;
  --tl-navy-950: #0d1234;
  --tl-navy-900: #141a3d;
  --tl-navy-800: #1a2740;
  --tl-navy-700: #243556;
  --tl-steel: #6b7280;
  --tl-fog: #f4f4f5;
  --tl-paper: #ffffff;
  --tl-orange: #ef4136;
  --tl-orange-hot: #f05a50;
  --tl-signal: #ef4136;
  --tl-ink: #292d32;
  --tl-white: #ffffff;
  --tl-muted-bg: #f4f4f5;
  --tl-radius: 16px;
  --tl-radius-btn: 0 16px 16px 16px;
  --tl-font: "Inter", system-ui, sans-serif;
  --tl-display: "Open Sans", system-ui, sans-serif;
  --tl-font-ui: var(--tl-font);
  --tl-font-display: var(--tl-display);
  --tl-max: 1640px;
  --tl-gutter: 140px;
  --tl-header-h: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tl-body {
  margin: 0;
  font-family: var(--tl-font);
  color: var(--tl-ink);
  background: var(--tl-paper);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

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

.tl-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  color: var(--tl-primary);
  border-bottom: 1px solid rgba(13, 18, 52, 0.06);
}
.tl-header__inner {
  width: min(100% - 2 * var(--tl-gutter, 140px), var(--tl-max));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--tl-header-h);
  flex-wrap: nowrap;
}
.tl-brand {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.tl-brand__logo {
  width: auto;
  height: 80px;
  object-fit: contain;
}
.tl-header__end {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.tl-nav {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  font-family: var(--tl-font);
}
.tl-nav a {
  text-decoration: none;
  color: var(--tl-primary);
  font-family: var(--tl-font);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.tl-nav a:hover { color: var(--tl-accent); }
.tl-nav a.is-active {
  color: var(--tl-primary);
}
.tl-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--tl-accent);
  border-radius: 1px;
}
.tl-drawer__top { display: none; }
.tl-nav-toggle__close { display: none; }
.tl-nav-backdrop { display: none; }
.tl-brand--drawer { display: none; }
.tl-header__actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
/* Language switcher - same height as adjacent header CTAs */
.tl-lang {
  --tl-lang-pad: 8px;
  --tl-lang-radius: 12px;
  --tl-lang-border: #0D1234;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  z-index: 40;
  user-select: none;
  line-height: 0;
  flex-shrink: 0;
}
.tl-lang__toggle,
.tl-lang__list,
.tl-lang__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-lang__toggle {
  display: flex;
  align-items: stretch;
}
.tl-lang__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--tl-lang-pad);
  border: 1px solid var(--tl-lang-border);
  background: #fff;
  text-decoration: none;
  line-height: 0;
  transition: background-color .15s ease;
}
.tl-header__actions .tl-lang__toggle .tl-lang__link {
  /* Match .tl-btn box: padding 14+14 + 18px/1.2 line + 2px border ≈ 52px */
  height: 100%;
  min-height: calc(28px + 1.2em + 2px);
  aspect-ratio: 1 / 1;
  width: auto;
  min-width: 52px;
  padding: 0;
  font-size: 18px;
}
.tl-header__actions .tl-lang__flag {
  width: 26px;
  height: calc(26px * 0.75);
}
.tl-lang__toggle .tl-lang__link {
  border-radius: 0 var(--tl-lang-radius) var(--tl-lang-radius) var(--tl-lang-radius);
  background: #fff;
}
.tl-lang__flag {
  display: inline-block;
  width: 22px;
  height: calc(22px * 0.75);
  overflow: hidden;
  line-height: 0;
}
.tl-lang__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
.tl-lang__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
}
.tl-lang__list .tl-lang__link {
  width: 100%;
  min-height: 44px;
  aspect-ratio: auto;
  border-top: none;
  border-radius: 0;
  background: #fff;
}
.tl-lang__list li:last-child .tl-lang__link {
  border-radius: 0 0 var(--tl-lang-radius) var(--tl-lang-radius);
}
.tl-lang:hover .tl-lang__toggle .tl-lang__link,
.tl-lang:focus-within .tl-lang__toggle .tl-lang__link {
  border-radius: 0 var(--tl-lang-radius) 0 0;
  background: var(--tl-accent, #EF4136);
}
.tl-lang:hover .tl-lang__list,
.tl-lang:focus-within .tl-lang__list {
  max-height: 220px;
  transition: max-height .4s ease-in;
}
.tl-lang__list .tl-lang__link:hover,
.tl-lang__list .tl-lang__link:focus-visible {
  background: var(--tl-accent, #EF4136);
  outline: none;
}
@media (hover: none) {
  .tl-lang.is-open .tl-lang__toggle .tl-lang__link {
    border-radius: 0 var(--tl-lang-radius) 0 0;
    background: var(--tl-accent, #EF4136);
  }
  .tl-lang.is-open .tl-lang__list { max-height: 220px; }
}

.tl-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--tl-primary);
  border-radius: 12px;
  background: var(--tl-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.tl-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tl-nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  flex-shrink: 0;
  background: var(--tl-primary);
}

.tl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid transparent;
  padding: 14px 40px;
  font-family: var(--tl-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border-radius: var(--tl-radius-btn);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.tl-btn[hidden] { display: none !important; }
.tl-btn:hover { transform: translateY(-1px); }
.tl-btn--primary,
.tl-btn--accent { background: var(--tl-accent); color: var(--tl-white); }
.tl-btn--primary:hover,
.tl-btn--accent:hover { background: var(--tl-orange-hot); }
.tl-btn--outline {
  background: transparent;
  border-color: var(--tl-primary);
  color: var(--tl-primary);
}
.tl-btn--outline:hover { background: var(--tl-primary); color: var(--tl-white); }
.tl-btn--ghost { background: transparent; border-color: rgba(13,18,52,.25); color: var(--tl-primary); }
.tl-btn--lg { padding: 16px 40px; }

.tl-main { min-height: calc(100vh - 180px); }
.tl-wrap { max-width: var(--tl-max); margin: 0 auto; padding: 2rem 1.25rem; }
.tl-wrap--narrow { max-width: 560px; }

.tl-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid; align-items: end;
  color: var(--tl-white);
  overflow: hidden;
  background: var(--tl-navy-950);
}
.tl-hero__plane {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(11,18,32,.92) 28%, rgba(11,18,32,.45) 62%, rgba(232,93,4,.28)),
    radial-gradient(ellipse at 70% 40%, rgba(244,140,6,.25), transparent 55%),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,.03) 48px, rgba(255,255,255,.03) 49px),
    linear-gradient(180deg, #15233a, #0b1220);
  animation: tl-plane 14s ease-in-out infinite alternate;
}
@keyframes tl-plane {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
.tl-hero__content {
  position: relative; z-index: 1;
  max-width: var(--tl-max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
}
.tl-brand-hero {
  font-family: var(--tl-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  line-height: 0.95;
  color: var(--tl-white);
  text-shadow: 0 8px 40px rgba(0,0,0,.35);
  animation: tl-rise .7s ease both;
}
.tl-brand-hero--sm { font-size: 2rem; margin-bottom: 0.75rem; }
.tl-hero h1, .tl-section h1, .tl-catalog__title, .tl-panel h1 {
  font-family: var(--tl-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.tl-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--tl-fog); font-weight: 600; animation: tl-rise .7s .08s ease both; }
.tl-lead { color: var(--tl-steel); max-width: 36rem; margin: 0 0 1.4rem; animation: tl-rise .7s .14s ease both; }
.tl-hero .tl-lead { color: rgba(215,222,234,.9); }
.tl-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: tl-rise .7s .2s ease both; }
@keyframes tl-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.tl-section { padding: 2.5rem 0 3.5rem; }
.tl-form, .tl-quiz { display: grid; gap: 0.9rem; }
.tl-form label, .tl-quiz label, .tl-filter-panel label:not(.tl-filter-check) {
  display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem;
}
.tl-form input, .tl-form textarea, .tl-form select,
.tl-quiz input, .tl-quiz textarea, .tl-quiz select,
.tl-filter-panel input:not([type="checkbox"]):not([type="radio"]),
.tl-filter-panel select,
.tl-catalog__toolbar select {
  font: inherit; padding: 0.65rem 0.75rem;
  border: 1px solid #c5cedo; border-radius: var(--tl-radius);
  background: var(--tl-white);
}
.tl-check { display: flex !important; align-items: center; gap: 0.5rem; font-weight: 500 !important; }
.tl-form__msg { color: var(--tl-signal); font-weight: 600; }
.tl-hr { border: 0; border-top: 1px solid #cfd6e4; margin: 2rem 0; }

.tl-catalog {
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 1.5rem;
}
.tl-catalog--map { grid-template-columns: minmax(260px, 340px) 1fr; min-height: 70vh; }
.tl-cat-grid { display: grid; gap: 0.4rem; margin: 1rem 0 1.25rem; }
.tl-cat-tile {
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  background: var(--tl-white);
  border-left: 3px solid transparent;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.tl-cat-tile:hover, .tl-cat-tile.is-active {
  border-left-color: var(--tl-orange);
  background: #fff7ef;
}
.tl-filter-panel { display: grid; gap: 0.75rem; }
.tl-catalog__toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; align-items: end; }
.tl-results { display: grid; gap: 0.85rem; }
.tl-results--compact { max-height: 40vh; overflow: auto; }
.tl-card-profile {
  background: var(--tl-white);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--tl-navy-800);
  transition: border-color .2s, transform .2s;
}
.tl-card-profile:hover { border-left-color: var(--tl-orange); transform: translateX(2px); }
.tl-card-profile h3 { margin: 0 0 0.25rem; font-family: var(--tl-display); text-transform: uppercase; }
.tl-card-profile a { text-decoration: none; }
.tl-meta { color: var(--tl-steel); font-size: 0.9rem; margin: 0.35rem 0 0; }
.tl-pagination { display: flex; gap: 0.5rem; margin-top: 1.25rem; }

.tl-map-shell { min-height: 70vh; background: var(--tl-navy-800); position: relative; }
.tl-map {
  width: 100%; height: 100%; min-height: 70vh;
  background:
    linear-gradient(180deg, rgba(26,39,64,.2), rgba(11,18,32,.55)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(139,155,180,.12) 39px, rgba(139,155,180,.12) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(139,155,180,.12) 39px, rgba(139,155,180,.12) 40px),
    #1a2740;
}
.tl-map--profile { min-height: 220px; margin-top: 1rem; }

.tl-profile__hero {
  position: relative; color: var(--tl-white); overflow: hidden;
  background: var(--tl-navy-950); padding: 3rem 0 2.5rem;
}
.tl-profile__hero-plane {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #0b1220 35%, rgba(232,93,4,.35));
}
.tl-profile__hero .tl-wrap { position: relative; z-index: 1; }
.tl-profile__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; }
.tl-badge {
  display: inline-block; margin-top: 0.75rem;
  background: var(--tl-orange); color: var(--tl-navy-950);
  font-weight: 700; padding: 0.25rem 0.55rem; text-transform: uppercase; font-size: 0.75rem;
}
.tl-tags, .tl-people, .tl-offers { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-tags li { background: var(--tl-navy-800); color: var(--tl-white); padding: 0.3rem 0.55rem; font-size: 0.85rem; }
.tl-people, .tl-offers { flex-direction: column; }
.tl-reveal { background: var(--tl-white); padding: 1.1rem; border-top: 3px solid var(--tl-orange); }

.tl-quiz__step { border: 0; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.tl-quiz__step-label {
  margin: 0;
  color: #595d68;
  font-size: 0.9rem;
  font-weight: 600;
}
.tl-quiz__progress {
  height: 4px;
  background: #d5dbe8;
  margin-bottom: 1rem;
  border-radius: var(--tl-radius, 16px);
  overflow: hidden;
}
.tl-quiz__progress span {
  display: block; height: 100%; width: 33%;
  background: var(--tl-orange);
  transition: width .25s ease;
}
.tl-quiz__nav { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.tl-quiz input.is-invalid,
.tl-quiz select.is-invalid,
.tl-quiz textarea.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.15);
}
.tl-quiz__error {
  margin: 0;
  color: #b42318;
  font-weight: 600;
}
.tl-quiz__result {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--tl-radius, 16px);
  background: #f4f5f8;
}
.tl-quiz__result.is-ok { border-left: 3px solid #0d1234; }
.tl-quiz__result.is-error { border-left: 3px solid #b42318; background: #fff8f7; }
.tl-quiz__result-lead { margin: 0 0 1rem; }
.tl-quiz__matches { display: grid; gap: 0.75rem; }
.tl-quiz__match {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: var(--tl-radius, 16px);
  background: #fff;
  border: 1px solid #d5dae6;
}
.tl-quiz__match-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--tl-radius, 16px);
  background: #0d1234;
  color: #fff;
  font-weight: 700;
}
.tl-quiz__match p { margin: 0.25rem 0 0.4rem; color: #595d68; font-size: 0.9rem; }
.tl-quiz__match-link { color: #ef4136; font-weight: 700; font-size: 0.9rem; text-decoration: none; }

.tl-panel {
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}
.tl-panel__nav {
  background: var(--tl-navy-900); color: var(--tl-white);
  padding: 1.25rem; min-height: 50vh;
}
.tl-panel__nav a {
  display: block; color: var(--tl-fog); text-decoration: none;
  padding: 0.55rem 0; border-left: 3px solid transparent; padding-left: 0.6rem;
}
.tl-panel__nav a.is-active, .tl-panel__nav a:hover {
  color: var(--tl-white); border-left-color: var(--tl-orange);
}
.tl-panel-list { display: grid; gap: 0.75rem; }
.tl-panel-item {
  background: var(--tl-white); padding: 1rem;
  border-left: 3px solid var(--tl-navy-700);
}
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.tl-page--panel .tl-stats { grid-template-columns: 1fr; gap: 10px; }
.tl-stat {
  background: var(--tl-white); padding: 1.1rem;
  border-top: 3px solid var(--tl-orange);
}
.tl-stat strong { display: block; font-size: 1.8rem; font-family: var(--tl-display); }

.tl-footer {
  background: var(--tl-navy-950);
  color: var(--tl-white);
  margin-top: 0;
  padding: 48px 0 64px;
  border-top: 0;
  overflow-x: clip;
}
.tl-footer__inner {
  width: min(100% - 2 * var(--tl-gutter, 140px), var(--tl-max));
  margin: 0 auto;
  display: grid;
  gap: 48px;
  min-width: 0;
}
.tl-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.tl-footer__brand-link { display: inline-flex; text-decoration: none; max-width: 100%; }
.tl-footer__logo {
  height: 72px;
  width: auto;
  max-width: min(235px, 100%);
  object-fit: contain;
}
.tl-footer__year {
  margin: 20px 0 0;
  font-family: var(--tl-display);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}
.tl-footer__social { display: flex; flex-direction: column; gap: 16px; }
.tl-footer__social-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--tl-white);
  display: grid; place-items: center;
  color: var(--tl-navy-950);
  text-decoration: none;
}
.tl-footer__social-btn[aria-disabled="true"] { opacity: 0.7; }
.tl-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.tl-footer__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tl-footer__heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tl-white);
}
.tl-footer__col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 16px;
}
.tl-footer__col a:hover { color: var(--tl-accent); }
.tl-footer__muted {
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
}
.tl-footer__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.4;
}
.tl-footer__flash {
  margin: 0;
  font-size: 14px;
}
.tl-footer__flash[data-ok="1"] { color: #7ddea8; }
.tl-footer__flash[data-ok="0"] { color: #ffb4a8; }
.tl-newsletter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.tl-newsletter__row {
  display: flex;
  align-items: center;
  background: var(--tl-white);
  border-radius: 56px;
  padding: 4px;
  gap: 4px;
}
.tl-newsletter__row input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 20px;
  font: inherit;
  outline: 0;
  min-width: 0;
  color: var(--tl-navy-950);
}
.tl-newsletter__row input[type="email"]::placeholder { color: rgba(13, 18, 52, 0.45); }
.tl-newsletter__row input[type="email"]:focus-visible {
  outline: var(--tl-focus-ring, 2px solid #ef4136);
  outline-offset: var(--tl-focus-offset, 2px);
}
.tl-newsletter__row button {
  width: 56px; height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--tl-navy-950);
  color: var(--tl-accent);
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.tl-newsletter__row button:hover { background: #161c42; }

/* Soft densify only while desktop nav still fits */
@media (max-width: 1600px) and (min-width: 1441px) {
  :root { --tl-gutter: 64px; --tl-header-h: 112px; }
  .tl-brand__logo { height: 64px; }
  .tl-nav { gap: 36px; }
  .tl-header__end { gap: 32px; }
  .tl-header__actions .tl-btn { padding: 12px 24px; font-size: 16px; }
  .tl-header__actions .tl-lang__toggle .tl-lang__link {
    min-width: 46px;
    font-size: 16px;
  }
  .tl-header__actions .tl-lang__flag {
    width: 24px;
    height: calc(24px * 0.75);
  }
}

/* Drawer earlier — desktop nav overlaps below ~1440 */
@media (max-width: 1440px) {
  :root { --tl-gutter: 24px; --tl-header-h: 84px; }
  .tl-header__inner { padding: 12px 0; gap: 1rem; }
  .tl-brand__logo { height: 48px; }
  .tl-nav-toggle {
    display: inline-flex;
    z-index: 60;
    position: relative;
  }
  .tl-header.is-nav-open .tl-nav-toggle {
    border-color: transparent;
    background: transparent;
    color: var(--tl-white);
  }
  .tl-header.is-nav-open .tl-nav-toggle__bars { display: none; }
  .tl-header.is-nav-open .tl-nav-toggle__close { display: grid; place-items: center; color: var(--tl-white); }
  .tl-header.is-nav-open .tl-brand { visibility: hidden; }
  .tl-header.is-nav-open {
    /* Keep header chrome above drawer content for the close control */
    z-index: 70;
    background: transparent;
    border-bottom-color: transparent;
  }
  .tl-header__end {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    z-index: 55;
    background: var(--tl-navy-950);
    color: var(--tl-white);
    padding: 24px 20px 40px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: nowrap;
  }
  .tl-header__end.is-open { display: flex; }
  .tl-drawer__top { display: block; padding-top: 8px; padding-right: 52px; }
  .tl-brand--drawer { display: inline-flex; }
  .tl-brand__logo--drawer { height: 56px; }
  .tl-header { position: sticky; }
  .tl-header__inner { position: relative; z-index: 71; }
  .tl-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-height: 0;
    margin-top: 12px;
  }
  .tl-nav a {
    color: var(--tl-white);
    font-size: 22px;
    font-weight: 600;
  }
  .tl-nav a.is-active::after { background: var(--tl-accent); }
  .tl-nav a:hover { color: var(--tl-accent); }
  .tl-header__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 8px;
  }
  .tl-header__actions .tl-btn {
    width: 100%;
    justify-content: center;
  }
  .tl-header__actions .tl-btn--outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--tl-white);
  }
  .tl-header__actions .tl-lang { align-self: flex-start; }
  .tl-nav-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(13, 18, 52, 0.35);
  }
  body.tl-nav-locked { overflow: hidden; }
  .tl-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --tl-gutter: 16px; --tl-header-h: 84px; }
  .tl-header__inner { padding: 12px 0; }
  .tl-brand__logo { height: 48px; }

  /* Compact mobile footer: brand+social row, 2-col links, FAB clearance */
  .tl-footer {
    padding: 36px 0 108px; /* space above cookie FAB */
  }
  .tl-footer__inner { gap: 32px; }
  .tl-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .tl-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .tl-footer__logo {
    height: 48px;
    width: auto;
    max-width: min(160px, 55vw);
    object-fit: contain;
    display: block;
  }
  .tl-footer__year {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
  }
  .tl-footer__social {
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
  }
  .tl-footer__social-btn {
    width: 44px;
    height: 44px;
  }
  .tl-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .tl-footer__col {
    gap: 12px;
  }
  .tl-footer__heading {
    margin-bottom: 4px;
    font-size: 12px;
  }
  .tl-footer__col a,
  .tl-footer__muted {
    font-size: 15px;
    line-height: 1.35;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  /* Drop redundant social text + duplicated legal (icons / Firma already cover them) */
  .tl-footer__dup-social,
  .tl-footer__dup-legal {
    display: none !important;
  }
  .tl-footer__col--newsletter {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .tl-footer__note { font-size: 14px; }
  .tl-newsletter__row input[type="email"] {
    padding: 14px 16px;
    font-size: 16px; /* avoid iOS zoom */
  }
  .tl-newsletter__row button {
    width: 48px;
    height: 48px;
  }

  .tl-catalog, .tl-catalog--map, .tl-panel, .tl-profile__grid {
    grid-template-columns: 1fr;
  }
  .tl-map, .tl-map-shell { min-height: 45vh; }
}

/* Skip link + keyboard focus (resting look unchanged) */
.tl-skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--tl-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.tl-skip-link:focus,
.tl-skip-link:focus-visible {
  position: fixed;
  top: 12px;
  left: 16px;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.tl-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 20px 24px 24px;
  background: var(--tl-primary, #0d1234);
  color: #fff;
  font-family: var(--tl-font, Inter, system-ui, sans-serif);
  box-shadow: 0 -16px 48px rgba(13, 18, 52, 0.35);
  border-top: 2px solid var(--tl-accent, #ef4136);
}
.tl-cookie-banner[hidden],
.tl-cookie-reopen[hidden] {
  display: none !important;
}
.tl-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.tl-cookie-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--tl-display, "Open Sans", system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.tl-cookie-banner__policy {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.tl-cookie-banner__policy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tl-cookie-banner__policy a:hover {
  color: var(--tl-accent, #ef4136);
}
.tl-cookie-toggles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.tl-cookie-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: #fff;
}
.tl-cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tl-cookie-switch {
  width: 2.6rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  transition: background 0.2s ease;
}
.tl-cookie-switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.tl-cookie-toggle input:checked + .tl-cookie-switch {
  background: var(--tl-accent, #ef4136);
}
.tl-cookie-toggle input:checked + .tl-cookie-switch::after {
  transform: translateX(1.2rem);
}
.tl-cookie-toggle input:disabled + .tl-cookie-switch {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.45);
}
.tl-cookie-toggle input:disabled ~ .tl-cookie-label {
  color: rgba(255, 255, 255, 0.72);
}
.tl-cookie-toggle:focus-within .tl-cookie-switch {
  outline: 2px solid var(--tl-accent, #ef4136);
  outline-offset: 3px;
}
.tl-cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}
.tl-cookie-banner__brand {
  align-self: flex-end;
  width: 160px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin-bottom: 0.25rem;
}
.tl-cookie-banner__btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.tl-cookie-banner .tl-btn {
  border-radius: var(--tl-radius-btn, 0 16px 16px 16px);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  min-height: 44px;
}
.tl-cookie-banner .tl-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.tl-cookie-banner .tl-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.tl-cookie-banner .tl-btn--accent {
  background: var(--tl-accent, #ef4136);
  color: #fff;
  border: 1px solid var(--tl-accent, #ef4136);
}
.tl-cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--tl-primary, #0d1234);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 18, 52, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tl-cookie-reopen:hover {
  background: var(--tl-accent, #ef4136);
}
@media (min-width: 800px) {
  .tl-cookie-banner__inner {
    grid-template-columns: 1.4fr 0.9fr;
    gap: 2rem;
    align-items: center;
  }
  .tl-cookie-banner__actions {
    align-self: stretch;
    justify-content: center;
  }
}

:root {
  --tl-focus-ring: 2px solid var(--tl-accent);
  --tl-focus-offset: 2px;
}

.tl-btn:focus { outline: 0; }
.tl-btn:focus-visible,
.tl-nav a:focus-visible,
.tl-text-link:focus-visible,
.tl-newsletter__row input[type="email"]:focus-visible,
.tl-newsletter__row button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: var(--tl-focus-ring);
  outline-offset: var(--tl-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-hero__plane,
  .tl-brand-hero,
  .tl-hero h1,
  .tl-lead,
  .tl-hero__cta {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* -- 404 -- */
.tl-404 {
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(100% - 40px, 720px);
  margin: 64px auto 96px;
  padding: 0 4px;
}
.tl-404__code {
  margin: 0;
  color: var(--tl-accent);
  font-family: var(--tl-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.tl-404 h1 {
  margin: 0;
  font-family: var(--tl-display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.tl-404__lead {
  margin: 0;
  max-width: 42ch;
  color: var(--tl-steel);
  font-size: 17px;
  line-height: 1.5;
}
.tl-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* -- Legal pages -- */
.tl-page--legal .tl-legal {
  width: min(100% - 40px, 880px);
  margin: 48px auto 80px;
}
.tl-page--legal .tl-legal__meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--tl-muted, #667);
}
.tl-page--legal .tl-legal h1 {
  margin: 0 0 12px;
  font-family: var(--tl-display);
  font-size: clamp(28px, 4vw, 36px);
}
.tl-page--legal .tl-legal h2 {
  margin: 28px 0 8px;
  font-family: var(--tl-display);
  font-size: 20px;
}
.tl-page--legal .tl-legal p,
.tl-page--legal .tl-legal li {
  margin: 0 0 12px;
  color: var(--tl-ink);
  line-height: 1.55;
}
.tl-page--legal .tl-legal ul,
.tl-page--legal .tl-legal ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}
.tl-page--legal .tl-legal li {
  margin-bottom: 6px;
}
.tl-page--legal .tl-legal__table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
}
.tl-page--legal .tl-legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tl-page--legal .tl-legal__table th,
.tl-page--legal .tl-legal__table td {
  border: 1px solid color-mix(in srgb, var(--tl-ink) 15%, transparent);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.tl-page--legal .tl-legal__table th {
  background: color-mix(in srgb, var(--tl-ink) 6%, transparent);
  font-weight: 600;
}
.tl-newsletter__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.tl-newsletter__consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  accent-color: var(--tl-accent);
}
.tl-newsletter__consent a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}
.tl-newsletter__consent a:hover { color: var(--tl-accent); }
.tl-blog-hero__news .tl-newsletter__consent {
  grid-column: 1 / -1;
  color: rgba(13, 18, 52, 0.72);
  margin-top: 4px;
}
.tl-blog-hero__news .tl-newsletter__consent a {
  color: inherit;
}
@media (max-width: 700px) {
  .tl-404 { margin: 40px auto 64px; }
}
