:root {
  --ink: #172026;
  --ink-soft: #31414a;
  --muted: #6b7a82;
  --line: rgba(23, 32, 38, .12);
  --paper: #f7f8f6;
  --surface: #ffffff;
  --mist: #edf4f3;
  --blue: #315f73;
  --blue-deep: #1e4658;
  --green: #2da87f;
  --green-soft: #dff4ec;
  --gold: #b9975b;
  --shadow: 0 24px 70px rgba(23, 32, 38, .10);
  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--body); }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; z-index: 1000; top: 14px; left: 14px; transform: translateY(-170%); padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 32, 38, .08);
  background: rgba(247, 248, 246, .82);
  backdrop-filter: blur(18px);
  transition: height .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { height: 66px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 35px rgba(23, 32, 38, .08); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--ink); }
.brand-mark { width: 31px; height: 31px; border: 1px solid rgba(45, 168, 127, .55); border-radius: 50%; background: linear-gradient(135deg, #fff 40%, var(--green) 41% 50%, #fff 51%); box-shadow: inset 0 0 0 7px var(--green-soft); }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a, .header-link { color: var(--ink-soft); font-size: .76rem; font-weight: 750; text-decoration: none; }
.desktop-nav a:hover, .header-link:hover { color: var(--blue-deep); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.language-switcher { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.language-switcher button { min-width: 34px; min-height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .64rem; font-weight: 850; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-button, .mobile-menu { display: none; }
body.is-language-switching main { opacity: .58; transition: opacity .14s ease; }

.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(360px, 1.06fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(22px, 4.4vw, 70px);
  padding: 118px clamp(20px, 6vw, 88px) 54px;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, var(--paper) 46%, var(--mist) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: clamp(20px, 6vw, 88px); right: clamp(20px, 6vw, 88px); bottom: 0; height: 1px; background: var(--line); }
.hero-media { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; align-self: stretch; min-height: 520px; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); background: var(--ink); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04) brightness(1.08); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(23,32,38,.18)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; max-width: 710px; }
.eyebrow, .section-label { margin: 0; color: var(--blue-deep); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: .98; color: var(--ink); }
.hero h1 { max-width: 690px; margin-top: 20px; font-size: clamp(3rem, 5.7vw, 6.35rem); }
html[data-lang="uk"] .hero h1,
html[data-lang="ru"] .hero h1 { max-width: 660px; font-size: clamp(2.9rem, 5.2vw, 5.8rem); }
html[data-lang="es"] .hero h1 { max-width: 690px; font-size: clamp(2.9rem, 5.4vw, 6rem); }
.hero-text { max-width: 570px; margin: 26px 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font-size: .78rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 14px 36px rgba(45, 168, 127, .26); }
.button-primary:hover { background: #218e6b; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: rgba(49, 95, 115, .35); color: var(--blue-deep); }
.hero-panel { position: relative; z-index: 2; grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(710px, 100%); }
.hero-panel span { min-height: 86px; display: flex; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .86); color: var(--ink); font-weight: 800; line-height: 1.35; box-shadow: 0 14px 38px rgba(23, 32, 38, .06); }
.hero-panel span::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 7px var(--green-soft); }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px clamp(20px, 6vw, 88px); background: var(--line); }
.trust-strip div { min-height: 158px; padding: 34px clamp(20px, 4vw, 46px); background: #fff; }
.trust-strip b { display: block; margin-bottom: 10px; color: var(--ink); font-size: 1.04rem; }
.trust-strip span { color: var(--muted); line-height: 1.6; }

.section-pad { padding: clamp(74px, 9vw, 132px) clamp(20px, 6vw, 88px); }
.section-intro { display: grid; grid-template-columns: .48fr 1.52fr; gap: 7vw; align-items: start; margin-bottom: 48px; }
h2 { font-size: clamp(2.25rem, 4.7vw, 5.6rem); }
.service, .cars { background: #fff; color: var(--ink); }
.service .section-label, .cars .section-label, .process .section-label, .interior .section-label { color: var(--blue-deep); }
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scenario-grid article { min-height: 315px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff, #fbfcfb); box-shadow: 0 16px 42px rgba(23, 32, 38, .05); }
.scenario-grid span, .process-list span { color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.scenario-grid h3 { margin: auto 0 15px; font-size: 1.26rem; line-height: 1.24; }
.scenario-grid p, .process-list p, .car-grid p, .interior-copy p, .contact-copy p { color: var(--muted); line-height: 1.7; }

.route { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; background: var(--mist); color: var(--ink); }
.route-map { position: relative; min-height: 430px; overflow: hidden; border: 1px solid rgba(49, 95, 115, .18); border-radius: 8px; background: linear-gradient(135deg, #fff, #e4eeec); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.route-map::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(49, 95, 115, .22); transform: skew(-14deg); }
.route-map::after { content: ""; position: absolute; inset: 22% 14%; border-top: 2px solid rgba(45, 168, 127, .38); border-radius: 50%; transform: rotate(12deg); }
.route-map i { position: absolute; left: 17%; right: 15%; top: 53%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); transform: rotate(14deg); box-shadow: 0 0 20px rgba(45, 168, 127, .28); }
.pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(49, 95, 115, .28); border-radius: 50%; background: #fff; color: var(--blue-deep); font-weight: 900; box-shadow: 0 16px 38px rgba(23, 32, 38, .11); }
.pin-de { left: 15%; top: 37%; }
.pin-eu { left: 46%; top: 50%; }
.pin-dx { right: 13%; bottom: 27%; }

.process { background: var(--paper); color: var(--ink); }
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.process-list li { min-height: 250px; display: flex; flex-direction: column; padding: 24px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.process-list b { display: block; margin: auto 0 12px; }

.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.car-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 16px 42px rgba(23, 32, 38, .05); }
.car-grid span { color: var(--blue-deep); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.car-grid b { margin-top: auto; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.55rem); font-weight: 400; line-height: 1; color: var(--ink); }

.interior { display: grid; grid-template-columns: .92fr 1.08fr; gap: 7vw; align-items: center; background: #f1f4f0; color: var(--ink); }
.interior-copy p:last-child { max-width: 560px; }
.material-board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.material-board span { min-height: 142px; display: flex; align-items: end; padding: 22px; border-radius: 8px; color: #fff; font-weight: 850; box-shadow: 0 16px 42px rgba(23, 32, 38, .08); }
.material-board span:nth-child(1) { background: linear-gradient(135deg, #10171b, #38454b); }
.material-board span:nth-child(2) { background: linear-gradient(135deg, #526066, #9aa6a5); }
.material-board span:nth-child(3) { background: linear-gradient(135deg, #f7faf8, #c7e8de); color: var(--ink); }
.material-board span:nth-child(4) { background: linear-gradient(135deg, #071017, #245066); }

.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: 7vw; background: var(--blue-deep); color: #fff; }
.contact h2 { color: #fff; }
.contact .section-label { color: #bfe7dd; }
.contact-copy p { color: rgba(255,255,255,.74); }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); }
.contact-form label { display: grid; gap: 8px; }
.contact-form span { color: rgba(255,255,255,.82); font-size: .76rem; font-weight: 850; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); padding: 15px 14px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: #bfe7dd; box-shadow: 0 0 0 3px rgba(191, 231, 221, .24); }
.full { grid-column: 1 / -1; }
.website-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; min-height: 24px; margin: 0; color: rgba(255,255,255,.72); }
.form-note.is-success { color: #baf1d4; }
.form-note.is-error { color: #ffd0d0; }

.site-footer { display: flex; justify-content: space-between; gap: 28px; padding: 30px clamp(20px, 6vw, 88px); border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.site-footer p { margin: 0; color: var(--ink); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.site-footer a { text-decoration: none; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-deep); font-size: .68rem; font-weight: 900; letter-spacing: .08em; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.social-links a:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

.cookie-banner { position: fixed; z-index: 80; left: clamp(14px, 4vw, 40px); right: clamp(14px, 4vw, 40px); bottom: 18px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
.cookie-banner div { display: flex; align-items: center; gap: 14px; }
.cookie-banner a { color: var(--blue-deep); font-size: .8rem; font-weight: 850; }

@media (max-width: 1050px) {
  .desktop-nav, .header-actions .header-link { display: none; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .menu-button span { width: 18px; height: 2px; background: var(--ink); }
  .mobile-menu { position: fixed; inset: 78px 14px auto; display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); box-shadow: var(--shadow); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 18px; background: #fff; text-decoration: none; font-weight: 850; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 108px; }
  .hero-copy, .hero-media, .hero-panel { grid-column: 1; grid-row: auto; }
  .hero-media { min-height: 420px; }
  .hero-panel, .trust-strip, .scenario-grid, .car-grid { grid-template-columns: 1fr; }
  .route, .interior, .contact, .section-intro { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { min-height: 190px; }
}

@media (max-width: 640px) {
  .site-header { padding: 0 14px; }
  .brand span:last-child { max-width: 116px; line-height: 1.25; }
  .language-switcher button { min-width: 30px; }
  .hero { padding: 84px 16px 18px; gap: 14px; }
  .hero h1,
  html[data-lang="uk"] .hero h1,
  html[data-lang="ru"] .hero h1,
  html[data-lang="es"] .hero h1 { max-width: 100%; font-size: clamp(2.42rem, 10.4vw, 3.45rem); }
  html[data-lang="uk"] .hero h1,
  html[data-lang="ru"] .hero h1 { font-size: clamp(2.16rem, 9.2vw, 3.1rem); }
  .hero-text { margin-top: 16px; line-height: 1.5; }
  .hero-actions { margin-top: 22px; gap: 8px; }
  .hero-media { min-height: 170px; }
  .hero-actions, .cookie-banner, .site-footer { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .hero-panel { gap: 8px; }
  .hero-panel span { min-height: 48px; padding: 11px; font-size: .84rem; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 16px; }
  .legal-links { justify-content: flex-start; }
  .button { width: 100%; min-height: 46px; }
  .section-pad { padding: 66px 16px; }
  .contact-form { grid-template-columns: 1fr; padding: 16px; }
  .route-map { min-height: 310px; }
  .material-board { grid-template-columns: 1fr; }
}
