@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f6f9;
  --ink: #111827;
  --muted: #475569;
  --accent: #e4edf5;
  --accent-text: var(--ink);
  --blue: #80a1c1;
  --blue-soft: #e5eef7;
  --white: #ffffff;
  --line: #d9e2ec;
  --dark: #182539;
  --focus: #24579b;
  --radius: 28px;
  font-family: Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.58; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; background: var(--white); padding: 12px 16px; }
.panel { border-radius: var(--radius); }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 10px 17px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.button-dark { background: var(--dark); color: #fff; }
.button-dark:hover { background: #283e5d; }
.button:active { transform: scale(.97); }
.button:disabled { cursor: wait; opacity: .7; }
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #334e70;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.04em; min-width: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { overflow-wrap: anywhere; }
#site-navigation { display: flex; align-items: center; gap: clamp(12px, 3vw, 38px); }
#site-navigation a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 550; }
#site-navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
.demo-banner { padding: 16px 0 12px; color: var(--muted); font-size: 12px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(240px, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero {
  grid-row: span 2;
  min-width: 0;
  position: relative;
  overflow: clip;
  background: radial-gradient(ellipse at 57% 73%, #f6fbff 1%, #dce9f4 58%, #cbdceb 100%);
  isolation: isolate;
  padding: 30px 32px 20px;
}
.hero-copy { position: relative; z-index: 1; pointer-events: none; }
.hero h1 { max-width: 14ch; font-size: clamp(35px, 4.5vw, 68px); line-height: .99; letter-spacing: -.072em; font-weight: 780; white-space: pre-line; }
.hero-copy p { margin-top: 13px; max-width: 35ch; font-size: 14px; color: #334155; }
.hero-photo { display: grid; place-items: center; position: relative; margin: -6px -21px -8px; min-width: 0; height: clamp(245px, 27vw, 365px); }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 8% 16% 6%;
  border: 1px solid #f6fbff;
  border-radius: 50%;
  transform: rotate(-11deg);
  pointer-events: none;
}
.car-motion { position: absolute; inset: 4%; transform-origin: 50% 68%; }
.hero-photo.is-arriving .car-motion { animation: car-arrival 1250ms cubic-bezier(.18, .67, .24, 1) both; }
@keyframes car-arrival {
  0% { transform: translate3d(41%, -8%, 0) scale(.68); }
  72% { transform: translate3d(-1%, 0, 0) scale(1.012); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}
.hero-photo img, .hero-photo model-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 260ms ease;
}
.hero-photo img { object-fit: contain; padding-inline: 10%; filter: drop-shadow(0 14px 11px #1e344b25); }
.hero-photo model-viewer { opacity: 0; pointer-events: none; --poster-color: transparent; }
.hero-photo[data-view="model"] model-viewer { opacity: 1; pointer-events: auto; }
.hero-photo model-viewer::part(default-progress-bar) { display: none; }
.hero-photo[data-view="model"] img { opacity: 0; }
.car-name { font-size: 13px; font-weight: 650; color: #354d65; }
.hero-tile { min-height: 205px; position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; text-decoration: none; isolation: isolate; }
.hero-tile > div { position: relative; z-index: 1; }
.hero-tile h2 { font-size: clamp(24px, 3vw, 35px); line-height: 1.08; letter-spacing: -.05em; }
.hero-tile p { max-width: 20ch; font-size: 14px; margin-top: 8px; }
.services-tile { background: var(--accent); color: var(--accent-text); }
.booking-tile { background: var(--blue); }
.tile-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #1a293d40; background: #fff5; font-size: 23px; align-self: end; transition: transform 180ms ease, background-color 180ms ease; }
.hero-tile:hover .tile-arrow { transform: translate(2px, -2px); background: #fffc; }
.tile-art { position: absolute; z-index: -1; border: 1px solid #fff9; border-radius: 44%; width: 260px; height: 260px; top: -105px; right: -94px; box-shadow: 0 0 0 24px #fff2, 0 0 0 49px #fff2; transform: rotate(-16deg); }
.booking-tile .tile-art { width: 280px; height: 190px; top: -40px; right: -125px; transform: rotate(32deg); }

.section { margin-block: clamp(55px, 7vw, 98px); }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-intro h2, .contacts-layout h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.055em; }
.section-intro p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { border-color: #bdb7af; background: var(--white); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--dark); color: #fff; border-color: var(--dark); }
.filter[aria-pressed="false"]:hover { background: var(--blue-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.service-item { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.service-category { align-self: start; font-size: 12px; font-weight: 650; padding: 6px 9px; border-radius: 100px; background: var(--blue-soft); color: #284865; }
.service-copy { min-width: 0; }
.service-copy h3 { font-size: 20px; letter-spacing: -.033em; line-height: 1.2; overflow-wrap: anywhere; }
.service-copy p { margin-top: 7px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.service-price { display: block; font-size: 16px; font-weight: 700; }
.service-price-unknown { font-size: 13px; }
.service-price-note { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.service-choose { border-color: #a9b9c9; background: var(--blue-soft); flex-shrink: 0; }
.service-choose:hover { background: #caddee; }
.section-note, .empty-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.request-fields, .message-panel { padding: clamp(20px, 3vw, 32px); }
.request-fields { background: var(--white); border: 1px solid var(--line); }
.message-panel { background: var(--blue-soft); }
.request-layout h3, .process-steps h3 { font-size: 20px; letter-spacing: -.035em; }
.message-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #8494a4; border-radius: 12px; color: var(--ink); background: var(--white); }
textarea { resize: vertical; }
#message-output { margin-top: 8px; line-height: 1.55; }
.message-actions, .channel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.message-actions { margin-top: 12px; }
.channel-link { border-color: #8799ac; background: var(--white); color: var(--ink); }
.channel-link:hover { background: #fff; box-shadow: 0 3px 12px #152c481c; }
.copy-status { margin-top: 10px; color: #334e70; font-size: 13px; }
.copy-status.is-success { color: #166534; }
.copy-status.is-error { color: #991b1b; }
.process-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.process-steps li { padding: 22px; background: var(--white); border: 1px solid var(--line); }
.process-steps p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.contacts-layout { background: var(--accent); color: var(--accent-text); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contacts-layout p { font-size: 14px; margin-top: 10px; }
.contacts-layout .channel-actions { margin-top: 16px; }
.contact-fact { margin-bottom: 13px; overflow-wrap: anywhere; }
.contact-fact dt { font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-block: 24px; font-size: 13px; }
.footer-inner p { color: var(--muted); }
dialog { width: min(440px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); }
dialog p { margin: 12px 0 18px; }
dialog::backdrop { background: #111827a0; }

@media (max-width: 930px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 24px 24px 16px; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); }
  .hero-tile { min-height: 175px; padding: 18px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { scroll-padding-top: calc(72px + env(safe-area-inset-top)); --radius: 22px; }
  .wrap { width: calc(100% - max(14px, env(safe-area-inset-left)) - max(14px, env(safe-area-inset-right))); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner { min-height: 58px; justify-content: flex-start; gap: 8px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: 30px; height: 30px; flex: 0 0 30px; }
  .header-cta { margin-left: auto; padding-inline: 11px; flex-shrink: 0; font-size: 13px; }
  .header-cta span { display: none; }
  .menu-toggle { display: inline-flex; order: 2; flex: 0 0 44px; padding: 0; background: var(--white); border-color: #bdb7af; color: var(--ink); }
  .menu-icon { width: 18px; height: 12px; border-block: 2px solid; position: relative; }
  .menu-icon::after { content: ''; position: absolute; top: 3px; left: 0; width: 100%; border-top: 2px solid; }
  #site-navigation { display: none; position: absolute; inset: 100% 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .site-header.is-open #site-navigation { display: grid; gap: 2px; }
  .service-grid, .request-layout, .contacts-layout, .process-steps { grid-template-columns: minmax(0, 1fr); }
  .demo-banner { padding: 10px 0; }
  .hero-grid { grid-template: auto / repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero { grid-column: 1 / -1; grid-row: auto; padding: 18px 16px 13px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 49px); }
  .hero-copy p { font-size: 14px; margin-top: 9px; }
  .hero-photo { height: clamp(155px, 47vw, 280px); margin: 2px -10px 0; }
  .car-name { font-size: 12px; }
  .hero-tile { min-height: 88px; padding: 12px 14px; gap: 4px; justify-content: space-between; }
  .hero-tile h2 { font-size: clamp(17px, 4.4vw, 24px); letter-spacing: -.04em; }
  .hero-tile p { display: none; }
  .tile-arrow { width: 28px; height: 28px; font-size: 17px; }
  .section { margin-block: 40px; }
  .section-intro { margin-bottom: 16px; }
  .section-intro h2, .contacts-layout h2 { font-size: clamp(26px, 7.3vw, 36px); }
  .filters { gap: 6px; }
  .filter { padding-inline: 12px; }
  .service-item { padding: 16px; gap: 12px; }
  .service-copy h3 { font-size: 18px; }
  input, select, textarea { font-size: 16px; }
  .message-actions .button { min-height: 48px; }
  .footer-inner { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
