:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #edf0f5;
  --text: #11141c;
  --muted: #606773;
  --line: #d9dee7;
  --accent: #d71920;
  --accent-strong: #b90f16;
  --brand-green: #079447;
  --brand-green-strong: #067638;
  --brand-blue: #171aa5;
  --on-accent: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 50px rgba(24, 29, 45, 0.12);
  --radius: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --arrow-shift: -4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --surface: #15171f;
    --surface-soft: #1d202a;
    --text: #f5f6fa;
    --muted: #afb4c0;
    --line: #303440;
    --accent: #ff4b50;
    --accent-strong: #ff6368;
    --brand-green: #24ad60;
    --brand-green-strong: #36c973;
    --brand-blue: #6468ff;
    --on-accent: #ffffff;
    --header-bg: rgba(12, 13, 18, 0.92);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  }
}

html[dir="ltr"] {
  --arrow-shift: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

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

.hero :focus-visible,
.site-header:not(.is-scrolled) :focus-visible {
  outline-color: #c9fff9;
}

.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: #ffffff;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.brand-stripe {
  display: grid;
  height: 3px;
  grid-template-columns: repeat(3, 1fr);
}

.brand-stripe span:nth-child(1) { background: var(--accent); }
.brand-stripe span:nth-child(2) { background: var(--brand-blue); }
.brand-stripe span:nth-child(3) { background: var(--brand-green); }

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--text);
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}

.brand-logo-viewport {
  display: block;
  width: 176px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #000000;
}

.brand-logo-viewport img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a,
.header-phone {
  transition: color 160ms ease, opacity 160ms ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-picker {
  position: relative;
  display: grid;
  min-width: 78px;
  height: 42px;
  grid-template-columns: 20px 1fr 14px;
  align-items: center;
  gap: 4px;
  padding-inline: 10px 7px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: currentColor;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.language-picker > i:first-child {
  font-size: 18px;
}

.language-picker select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-picker option {
  background: var(--surface);
  color: var(--text);
}

.picker-caret {
  font-size: 12px;
  pointer-events: none;
}

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

.header-phone {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 24px;
  transition: transform 150ms var(--ease-out), background-color 150ms ease;
}

.menu-button:active,
.button:active,
.floating-whatsapp:active {
  transform: scale(0.97);
}

.mobile-menu {
  padding: 8px 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--header-bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-menu .mobile-call {
  margin-top: 14px;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand-green);
  color: var(--on-accent);
}

.header-sentinel {
  position: absolute;
  inset: 1px 0 auto;
  height: 1px;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 42px);
  max-height: 920px;
  overflow: hidden;
  background: #111218;
  color: #ffffff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.86) 0%, rgba(10, 10, 15, 0.5) 40%, rgba(10, 10, 15, 0.05) 77%);
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: calc(100dvh - 42px);
  max-height: 920px;
  align-items: center;
  justify-content: flex-start;
  padding-block: 112px 72px;
  direction: ltr;
}

.hero-copy {
  width: min(520px, 48%);
  margin: 0;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .hero-copy {
  direction: ltr;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lead {
  max-width: 460px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  transition: transform 150ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button i {
  font-size: 21px;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 10, 15, 0.28);
  color: #ffffff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-outline.whatsapp-link {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.route-bar {
  position: relative;
  z-index: 3;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-bar-inner {
  display: grid;
  min-height: 112px;
  grid-template-columns: 1fr minmax(160px, 1.4fr) 1fr;
  align-items: center;
  gap: 28px;
}

.route-place {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-place > i {
  color: var(--brand-blue);
  font-size: 26px;
}

.route-place div {
  display: grid;
}

.route-place span {
  color: var(--muted);
  font-size: 12px;
}

.route-place strong {
  font-size: 19px;
}

.route-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
}

.route-track span {
  height: 1px;
  background: var(--line);
}

.route-track i {
  font-size: 28px;
}

.section {
  padding-block: 104px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 48px;
}

.section h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.journey-copy > p,
.why-intro > p:last-child,
.contact-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.service-card {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card-main {
  grid-row: span 2;
  min-height: 476px;
  align-content: end;
  background: var(--accent);
  color: var(--on-accent);
}

.service-card-wide {
  grid-column: span 2;
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 26px;
}

.service-card-main .service-icon {
  color: var(--on-accent);
}

.service-card:nth-child(2) .service-icon {
  color: var(--brand-blue);
}

.service-card:nth-child(3) .service-icon {
  color: var(--brand-green);
}

.service-card h3,
.why-item h3 {
  margin: 0;
  font-size: 22px;
}

.service-card p,
.why-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.service-card-main p {
  color: color-mix(in srgb, var(--on-accent) 78%, transparent);
}

.journey {
  background: var(--surface-soft);
}

.journey-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 72px;
}

.journey-image {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.journey-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 68% center;
}

.journey-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.journey-points div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.journey-points i {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--brand-blue);
  font-size: 21px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--accent);
  font-weight: 800;
}

.text-link i {
  transition: transform 160ms var(--ease-out);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
}

.why-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.why-list {
  display: grid;
  gap: 0;
}

.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.why-item:first-child {
  padding-top: 0;
}

.why-item > span {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.contact {
  padding-block: 88px;
  background: var(--surface-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: start;
  gap: 80px;
}

.contact-details {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-style: normal;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-row > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 22px;
}

.contact-row:nth-child(2) > i {
  color: var(--brand-blue);
}

.contact-row:nth-child(3) > i {
  color: var(--brand-green);
}

.contact-row div {
  display: grid;
  align-content: center;
}

.contact-row span {
  color: var(--muted);
  font-size: 12px;
}

.contact-row a,
.contact-row strong {
  font-size: 16px;
  font-weight: 800;
}

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: #08090d;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.floating-whatsapp {
  position: fixed;
  inset-inline-end: max(18px, env(safe-area-inset-right));
  inset-block-end: max(18px, env(safe-area-inset-bottom));
  z-index: 15;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  border-radius: var(--radius);
  background: var(--brand-green);
  box-shadow: var(--shadow);
  color: var(--on-accent);
  font-size: 27px;
  transition: transform 150ms var(--ease-out), background-color 180ms ease;
}

.floating-whatsapp::before {
  content: attr(data-tooltip);
  position: absolute;
  inset-inline-end: calc(100% + 10px);
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.lang-switching main,
body.lang-switching .desktop-nav,
body.lang-switching .mobile-menu {
  opacity: 0.72;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 700ms var(--ease-out) forwards;
}

.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover,
  .header-phone:hover {
    color: var(--accent);
  }

  .button-primary:hover {
    background: var(--accent-strong);
  }

  .floating-whatsapp:hover,
  .mobile-menu .mobile-call:hover {
    background: var(--brand-green-strong);
  }

  .button-ghost:hover {
    background: rgba(10, 10, 15, 0.55);
  }

  .button-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .button-outline.whatsapp-link:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
  }

  .text-link:hover i {
    transform: translateX(var(--arrow-shift));
  }

  .floating-whatsapp:hover::before {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-phone {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-copy {
    width: min(500px, 58%);
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card-main {
    grid-row: auto;
    min-height: 280px;
  }

  .service-card-wide {
    grid-column: span 2;
  }

  .journey-grid,
  .why-grid,
  .contact-grid {
    gap: 48px;
  }

  .journey-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, 1200px);
  }

  .nav-wrap {
    min-height: 70px;
    gap: 10px;
  }

  .brand-logo-viewport {
    width: 144px;
    height: 42px;
  }

  .nav-actions {
    gap: 7px;
  }

  .language-picker {
    min-width: 65px;
    height: 42px;
    grid-template-columns: 16px 1fr;
    padding-inline: 8px;
  }

  .language-picker > i:first-child {
    font-size: 16px;
  }

  .picker-caret {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: calc(100dvh - 30px);
    max-height: none;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.58) 48%, rgba(10, 10, 15, 0.12) 84%);
  }

  .hero-inner {
    align-items: flex-end;
    padding-block: 104px 52px;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    max-width: 390px;
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .route-bar-inner {
    min-height: 98px;
    grid-template-columns: 1fr 70px 1fr;
    gap: 8px;
  }

  .route-place {
    gap: 8px;
  }

  .route-place > i {
    display: none;
  }

  .route-place strong {
    font-size: 16px;
  }

  .route-track {
    gap: 5px;
  }

  .route-track i {
    font-size: 22px;
  }

  .section {
    padding-block: 76px;
  }

  .section h2 {
    font-size: 34px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .service-grid,
  .journey-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card,
  .service-card-main {
    min-height: 210px;
  }

  .service-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .journey-grid {
    gap: 38px;
  }

  .journey-image,
  .journey-image img {
    min-height: 390px;
  }

  .journey-image img {
    object-position: 70% center;
  }

  .why-grid,
  .contact-grid {
    gap: 44px;
  }

  .why-intro {
    position: static;
  }

  .contact-details {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .brand-logo-viewport {
    width: 132px;
    height: 39px;
  }

  .language-picker {
    min-width: 60px;
    padding-inline: 7px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .route-place span {
    font-size: 10px;
  }

  .section h2 {
    font-size: 30px;
  }

  .service-card {
    padding: 24px;
  }

  .journey-image,
  .journey-image img {
    min-height: 320px;
  }

  .contact-row {
    grid-template-columns: 38px 1fr;
  }

  .contact-row > i {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-copy > * {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .site-header.menu-active,
  .mobile-menu,
  .button-ghost {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
