/* 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-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  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);
}
.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;
}
.tl-nav {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}
.tl-nav a {
  text-decoration: none;
  color: var(--tl-primary);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tl-nav a:hover { color: var(--tl-accent); }
.tl-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tl-lang { display: flex; gap: 0.45rem; align-items: center; font-size: 0.8rem; font-weight: 600; }
.tl-lang a { color: var(--tl-steel); text-decoration: none; }
.tl-lang a[aria-current="true"], .tl-lang a:hover { color: var(--tl-primary); }

.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__bar {
  display: block;
  width: 18px; height: 2px;
  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: inherit; font-weight: 500; font-size: 18px;
  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;
}
.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 {
  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, .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__progress { height: 4px; background: #d5dbe8; margin-bottom: 1rem; }
.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-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-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-white);
  color: var(--tl-primary);
  margin-top: 0;
  padding: 48px 0 64px;
  border-top: 1px solid rgba(13, 18, 52, 0.08);
}
.tl-footer__inner {
  width: min(100% - 2 * var(--tl-gutter, 140px), var(--tl-max));
  margin: 0 auto;
  display: grid;
  gap: 48px;
}
.tl-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.tl-footer__logo { height: 80px; width: auto; object-fit: contain; }
.tl-footer__year {
  margin: 20px 0 0;
  font-family: var(--tl-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--tl-primary);
}
.tl-footer__social { display: flex; flex-direction: column; gap: 20px; }
.tl-footer__social-btn {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--tl-muted-bg);
  display: grid; place-items: center;
  color: var(--tl-primary);
  text-decoration: none;
}
.tl-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.tl-footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tl-footer__heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tl-primary);
}
.tl-footer__col a {
  color: var(--tl-ink);
  text-decoration: none;
  font-size: 16px;
}
.tl-footer__col a:hover { color: var(--tl-accent); }
.tl-footer__note {
  margin: 0;
  color: var(--tl-ink);
  font-size: 15px;
  line-height: 1.4;
}
.tl-newsletter {
  display: flex;
  align-items: center;
  background: var(--tl-muted-bg);
  border-radius: 56px;
  padding: 4px;
  gap: 4px;
  margin-top: 8px;
}
.tl-newsletter input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 16px 20px;
  font: inherit;
  outline: 0;
  min-width: 0;
}
.tl-newsletter button {
  width: 60px; height: 60px;
  border: 0;
  border-radius: 46px;
  background: var(--tl-primary);
  color: var(--tl-white);
  display: grid; place-items: center;
  cursor: pointer;
}
.tl-newsletter button img { filter: brightness(0) invert(1); }

@media (max-width: 1100px) {
  :root { --tl-gutter: 40px; --tl-header-h: 96px; }
  .tl-brand__logo { height: 56px; }
  .tl-nav { gap: 28px; }
  .tl-header__end { gap: 28px; }
  .tl-btn { padding: 12px 22px; font-size: 15px; }
  .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; }
  .tl-nav-toggle { display: inline-flex; }
  .tl-header__end {
    display: none;
    position: absolute;
    left: 16px; right: 16px; top: calc(100% + 4px);
    background: var(--tl-white);
    border: 1px solid rgba(13,18,52,.08);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    box-shadow: 0 16px 40px rgba(13,18,52,.12);
  }
  .tl-header__end.is-open { display: flex; }
  .tl-header { position: sticky; }
  .tl-header__inner { position: relative; }
  .tl-nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-header__actions { flex-wrap: wrap; }
  .tl-footer__cols { grid-template-columns: 1fr 1fr; }
  .tl-footer__col--newsletter { grid-column: 1 / -1; }
  .tl-footer__social { flex-direction: row; }
  .tl-catalog, .tl-catalog--map, .tl-panel, .tl-profile__grid {
    grid-template-columns: 1fr;
  }
  .tl-map, .tl-map-shell { min-height: 45vh; }
}
