/* ==========================================================================
   KomTrans Asia — main stylesheet
   Pixel-perfect markup based on Figma design
   ========================================================================== */

/* Fonts: Formular family (as in Figma).
   Fallback chain uses Inter (close geometric) and system sans.
   To enable Formular natively, drop Formular .woff2 files into /fonts and
   the @font-face rules below will pick them up. */
@font-face {
  font-family: "Formular";
  src:
    local("Formular Regular"),
    local("Formular-Regular"),
    url("../fonts/Formular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Formular";
  src:
    local("Formular Medium"),
    local("Formular-Medium"),
    url("../fonts/Formular-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Inter from Google Fonts as visual fallback (close to Formular) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Scroll-reveal animation — applied via JS by IntersectionObserver */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-only reveal — for elements with overflow:hidden where translateY would clip */
.reveal--fade {
  opacity: 0;
  transform: none;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}
.reveal--fade.is-inview {
  opacity: 1;
}

/* ---- Hero entry animations (fire on page load, not scroll) ---- */
.hero-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.hero-anim.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header fades + slides in on page load (top → down). */
.hero-anim--header {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.hero-anim--header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Sticky header ---- */
/* Visible sticky state — fixed, dark, fully opaque. */
.site-header.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(25, 30, 36, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  z-index: 100;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Pre-entry: positioned off-screen with no transition so the next frame can animate in. */
.site-header.is-sticky.is-sticky-entering {
  opacity: 0;
  transform: translateY(-100%);
  transition: none;
}
/* Leaving: animate back off-screen with the same easing. */
.site-header.is-sticky.is-sticky-leaving {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
/* When sticky — keep logo/nav white (dark bg) */
.site-header.is-sticky .site-header__nav a,
.site-header.is-sticky .phone-num,
.site-header.is-sticky .phone-msg a {
  color: #fff;
}
/* Dropdown links must stay dark even inside sticky header */
.site-header.is-sticky .dd-menu a {
  color: var(--c-text);
}
.site-header.is-sticky .dd-menu a:hover {
  color: var(--c-red);
}
/* Placeholder to avoid layout jump when header becomes fixed */
.site-header-placeholder {
  display: none;
  height: 84px;
}
.site-header-placeholder.is-active {
  display: block;
}


html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:root {
  /* Brand palette */
  --c-red: #FA4332;
  --c-red-hover: #e8392a;
  --c-bg-light: #f8f7f6;
  --c-bg-grey: #f4f3f2;
  --c-bg-white: #ffffff;
  --c-bg-dark: #191E24;
  --c-text: #191E24;
  --c-text-secondary: #444444;
  --c-text-muted: #7a7c7f;
  --c-text-light: #939598;
  --c-border: #e0dfde;
  --c-border-light: #e8e9ea;
  --c-divider: #d9d9d9;

  /* Layout */
  --container: 1344px;
  --gutter: 32px;

  /* Type */
  --font-base:
    "Formular", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-bg-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Container & utility ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-red);
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
.section-tag::before {
  content: "";
  display: inline-block; /* важно для корректного отображения */
  width: 0;
  height: 0;
  border-left: 9px solid var(--c-red);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  /* Поможет выровнять по центру текста по вертикали */
  vertical-align: middle;
}

.section-title {
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  color: var(--c-text);
}

.section-subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text-muted);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  background: var(--c-red);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  border-radius: 0;
  position: relative;
  transition: background 0.18s ease;
  cursor: pointer;
  width: auto;
  border: 0;
}
.btn:hover {
  background: var(--c-red-hover);
}
.btn::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../assets/icons/arrow-up-right.svg") center/contain no-repeat;
  margin-left: auto;
  transition: transform 0.25s ease;
}
.btn:hover::after {
  transform: rotate(45deg);
}
.btn--block {
  display: flex;
  width: 100%;
  padding: 28px 32px;
}
.btn--block::after {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
}
.btn--block:hover::after {
  transform: translateY(-50%) rotate(45deg);
}
.btn--ghost {
  background: transparent;
  color: var(--c-red);
  padding: 0;
  font-weight: 500;
  border-bottom: 2px dashed var(--c-red);
  padding-bottom: 4px;
}
.btn--ghost::after {
  display: none;
}
.btn--ghost:hover {
  background: transparent;
  opacity: 0.8;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: transparent;
}
.site-header.is-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.site-header__row {
  display: grid;
  grid-template-columns: 177px 1fr auto auto;
  gap: 40px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  align-self: end;
  padding-bottom: 16px;
}
.site-header__logo img {
  height: 40px;
  width: auto;
}
.site-header__nav {
  display: flex;
  gap: 28px;
  align-items: center;
  align-self: end;
  padding-bottom: 24px;
}
.site-header__nav a {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.site-header__nav a:hover {
  opacity: 0.75;
}
.site-header__nav .has-dd::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--c-bg-white);
  vertical-align: middle;
  transition: transform 0.2s ease;
}

/* Dropdown wrapper */
.has-dd-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Panel */
.dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 18px; /* Invisible bridge to catch mouse */
  transform: translate(-50%, -8px);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.32s;
  z-index: 200;
}

/* Visible card inside the padding wrapper */
.dd-menu__inner {
  background: #fff;
  color: var(--c-text);
  padding: 10px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform-origin: top center;
  transform: scaleY(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.dd-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 400;
  color: var(--c-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.15s, background-color 0.15s;
}
.dd-menu a:hover {
  color: var(--c-red);
  background: #f8f7f6;
  opacity: 1;
}

/* Show on hover or when explicitly opened */
.has-dd-wrap:hover .dd-menu,
.has-dd-wrap.is-open .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
.has-dd-wrap:hover .dd-menu .dd-menu__inner,
.has-dd-wrap.is-open .dd-menu .dd-menu__inner {
  transform: scaleY(1);
}
.has-dd-wrap:hover .has-dd::after,
.has-dd-wrap.is-open .has-dd::after {
  transform: rotate(180deg);
}

/* Arrow chevron transition */
.site-header__nav .has-dd::after {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #fff;
  align-self: end;
  padding-bottom: 12px;
}
.site-header__phone .phone-num {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-header__phone .phone-num::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../assets/icons/phone.svg") center/contain no-repeat;
  filter: brightness(0) saturate(100%) invert(38%) sepia(98%) saturate(2300%)
    hue-rotate(345deg) brightness(95%) contrast(98%);
}
.site-header__phone .phone-msg {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.site-header__phone .phone-msg a {
  text-decoration: underline;
  font-size: 14px;
  text-underline-offset: 2px;
}
.site-header__cta {
  display: inline-flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  background: var(--c-red);
  color: #fff;
  padding: 28px 16px 12px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  position: relative;
  min-width: 224px;
  height: 84px;
  border: 0;
}
.site-header__cta::after {
  content: "";
  width: 22px;
  align-self: start;
  height: 22px;
  background: url("../assets/icons/arrow-up-right.svg") center/contain no-repeat;
  transition: transform 0.25s ease;
}
.site-header__cta:hover {
  background: var(--c-red-hover);
}
.site-header__cta:hover::after {
  transform: rotate(45deg);
}

/* Header on light backgrounds (404, privacy) */
.site-header--light .site-header__nav a,
.site-header--light .site-header__phone .phone-num,
.site-header--light .site-header__phone .phone-msg a {
  color: var(--c-text);
}
.site-header--light .site-header__phone .phone-msg {
  color: var(--c-text-muted);
}
.site-header--light .site-header__phone .phone-msg a {
  color: var(--c-text-muted);
}
/* Arrow chevron dark on light header */
.site-header--light .site-header__nav .has-dd::after {
  border-top-color: var(--c-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: #fff;
  padding: 80px 0 40px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 80px;
}
.site-footer__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.site-footer__logo img {
  filter: brightness(0) invert(1);
}
.site-footer__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 32px;
}
.site-footer__title {
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.site-footer__title .row2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.site-footer__title .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--c-red);
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(4px);
}
.site-footer__title .ico img {
  width: 22px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.site-footer__col .row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__col h3 {
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.site-footer__col p,
.site-footer__col a {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  display: block;
}
.site-footer__col a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.15s;
}
.site-footer__col a[href^="tel:"],
.site-footer__col a.address-link {
  text-decoration: none;
}
.site-footer__col a:hover {
  opacity: 0.8;
}
.site-footer__col .messengers {
  display: flex;
  gap: 28px;
}

.site-footer__cta {
  grid-column: 1 / -1;
  display: flex;
  margin-top: 24px;
}
.site-footer__cta .btn {
  padding: 39px 16px 16px;
  font-size: 18px;
  justify-content: start;
  position: relative;
}
.btn--footer {
  position: relative;
}
.btn--footer::after {
  width: 22px;
  height: 22px;
  position: absolute;
  right: 16px;
  top: 16px;
  transform: translateY(0);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
}
.site-footer__made .ruso {
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: #2a2d31;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  transform: translateY(0);
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: -1;
}
.hero__content {
  padding: 188px 0 60px;
  max-width: 1008px;
}
.hero__title {
  font-weight: 500;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: #fff;
}
.hero__title .flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -10px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  margin-right: -20px;
}
.hero__title .flag img {
  width: 64px;
  height: 64px;
}
.hero__title .flag img:nth-child(2) {
  transform: translateX(-20px);
}
.hero__lead {
  max-width: 672px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
  margin: 0;
}

.hero__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  margin-top: auto; /* push to bottom of section */
  position: relative;
  z-index: 5;
}
.hero__calc {
  background: var(--c-red);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  /* shape points UP — top-left corner cut at 45deg */
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
}
.hero__calc-icon {
  width: 44px;
  height: 44px;
  background: #191e24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero__calc-icon img {
  width: 22px;
  height: 22px;
  filter: none;
}
.hero__calc-link {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  border-bottom: 2px dashed white;
  align-self: flex-start;
}
.hero__metric {
  padding: 40px 48px 24px;
  border-left: 1px solid #e0dfde33;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.hero__metric:nth-child(2) {
  border-left: none;
}
.hero__metric:last-child {
  border-right: 1px solid #e0dfde33;
}
.hero__metric-num {
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.hero__metric-num .unit {
  align-self: self-start;
  padding-top: 4px;
  font-weight: 400;
  font-size: 18px;
  color: rgba(255, 255, 255);
  letter-spacing: -0.01em;
  margin-left: 2px;
}
.hero__metric-label {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-top: auto;
}

/* ---------- Section: Cargo types ---------- */
.types {
  background: var(--c-bg-grey);
  padding: 80px 0 120px;
}
.types .section-tag {
  padding-top: 40px;
}
.types__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.types__media {
  width: 100%;
  height: 433px;
  background: url("../assets/img/truck-types.jpg") center/contain no-repeat;
  background-color: transparent;
}
.types__heading {
  padding-bottom: 60px;
}
.types__heading h2 {
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -5%;
  margin: 0 0 40px;
}
.types__heading p {
  font-size: 18px;
  color: var(--c-text-muted);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}
.types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.type-card {
  padding: 32px 28px;
  border-right: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 302px;
  justify-content: space-between;
}
.type-card:nth-child(4n) {
  border-right: 0;
}
.type-card__icon {
  width: 57px;
  height: 42px;
  display: flex;
  align-items: center;
}
.type-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.type-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.type-card h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0;
  justify-self: end;
  justify-content: end;
}
.type-card p {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-text-muted);
  margin: 0;
}

.type-card--cta {
  background: var(--c-red);
  color: #fff;
  padding: 28px 32px;
  border-right: 0;
  position: relative;
  /* bottom-right corner cut (shape "stepped" at bottom-right) */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 36px),
    calc(100% - 36px) 100%,
    0 100%
  );
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.type-card--empty {
  min-height: 302px;
  padding: 0;
  background: transparent;
  border-right: 1px solid var(--c-border);
  border-bottom: none;
}
.type-card--empty:nth-child(4n) {
  border-right: 0;
}
.type-card--cta h3 {
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.type-card--cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.4;
}
.type-card--cta .btn--ghost {
  color: #fff;
  border-bottom: 2px dashed #fff;
  margin-top: auto;
  font-size: 18px;
  font-weight: 500;
  align-self: start;
}

/* ---------- Section: Routes ---------- */
.routes {
  position: relative;
  color: var(--c-bg-grey);
  padding: 100px 0 120px;
  overflow: hidden;
  isolation: isolate;
}
.routes__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 720px; /* photo doesn't extend to bottom */
  z-index: -2;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 25%),
    calc(100% - 50%) 100%,
    0 100%
  );
  overflow: hidden;
}
.routes__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.routes__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #08090a99;
  z-index: 1;
}
.routes::after {
  /* light area at the bottom (where the list extends past the photo) */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--c-bg-grey);
  z-index: -2;
}
.routes .section-tag {
  color: #fff;
  margin-bottom: 42px;
}
.routes .section-tag::before {
  border-left-color: var(--c-bg-white);
}
.routes__title {
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 60px;
  max-width: 880px;
  color: #fff;
}
.routes__title .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-red);
  vertical-align: 8px;
  margin: 0 4px;
  flex-shrink: 0;
}
.routes__title .pill img {
  width: 18px;
  height: 18px;
}
.routes__list {
  background: #fff;
  color: var(--c-text);
  padding: 16px 40px;
  margin: 0;
  position: relative;
  z-index: 1;
  /* bottom-right cut (stepped shape) */
}
.routes__row {
  display: grid;
  grid-template-columns: 56px 1fr auto 42px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}
.routes__row:last-child {
  border-bottom: 0;
}
.routes__cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #191e24;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.routes__path {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.routes__path-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.routes__path-line .arrow {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.routes__path-line .arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.routes__path-line .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-red);
  color: #fff;
  padding: 3px 8px 3px 6px;
  font-size: 12px;
  font-weight: 500;
}
.routes__path-line .badge img {
  width: 16px;
  height: 16px;
}
.routes__sub {
  font-size: 16px;
  color: var(--c-text-muted);
}
.routes__time {
  font-size: 16px;
  color: var(--c-text);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.routes__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 56px;
  padding: 0;
  background: var(--c-red);
  color: #fff;
  border: 1px solid var(--c-red);
  cursor: pointer;
  transition: background 0.15s;
}
.routes__go:hover {
  background: var(--c-red-hover);
}
.routes__go img {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
}
.routes__go:hover img {
  transform: rotate(45deg);
}

.routes__after {
  background: var(--c-bg-grey);
  color: var(--c-text);
  padding: 60px 0 0;
  text-align: center;
}
.routes__after p {
  font-size: 18px;
  color: var(--c-text-muted);
  margin: 0 auto 16px;
  max-width: 642px;
  line-height: 1.4;
}
.routes__after .btn--ghost {
  color: var(--c-red);
  font-size: 18px;
  margin: 0 auto;
}

.site-header__cta,
.routes__go,
.calculator-widget .btn,
.carousel-nav button,
.modal--thx .btn,
.calc-nav .btn,
.modal-form .btn,
.modal--portfolio .pf-arrows button,
.site-footer__cta .btn{
  transition: all 0.3s ease;
  border: 1px solid var(--c-red);
}

/* Specific hover states requested by user */
.site-header__cta:hover,
.routes__go:hover,
.calculator-widget .btn:hover,
.carousel-nav button:hover,
.modal--thx .btn:hover,
.calc-nav .btn:hover,
.modal-form .btn:hover,
.modal--portfolio .pf-arrows button:hover,
.site-footer__cta .btn:hover {
  background: transparent !important;
  color: var(--c-red) !important;
}

.site-header__cta:hover::after,
.routes__go:hover img,
.calculator-widget .btn:hover::after,
.carousel-nav button:hover img,
.carousel-nav button:hover svg,
.modal--thx .btn:hover::after,
.calc-nav .btn:hover::after,
.modal-form .btn:hover::after,
.modal--portfolio .pf-arrows button:hover img,
.site-footer__cta .btn:hover::after {
  filter: brightness(0) saturate(100%) invert(38%) sepia(98%) saturate(2300%) hue-rotate(345deg) brightness(95%) contrast(98%) !important;
}
