:root {
  color-scheme: dark;
  --canvas: #08151c;
  --deep: #050e12;
  --panel: #101f28;
  --panel-fill: linear-gradient(150deg, #152630, #0b1921);
  --line: #344b58;
  --text: #f5f5f7;
  --muted: #b7c4cc;
  --red: #d81034;
  --bright: #ff637a;
}

html body {
  max-width: none;
  background: var(--canvas);
  color: var(--text);
}

body > header,
body > footer,
.section-nav,
.legal-footer {
  background: var(--deep);
  color: var(--text);
  border-color: var(--line);
}

body > header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

body > header nav a {
  color: var(--muted);
  font-size: .875rem;
}

body > header nav a:is(:hover, :focus-visible) {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

body > footer p,
body :is(small, .breadcrumbs, .section-intro, .company-copy, .source-note),
body .reasons p,
body details p {
  color: var(--muted);
}

body .hero {
  display: grid;
  align-items: center;
  min-height: clamp(500px, 46vw, 720px);
  padding-block: clamp(56px, 8vw, 118px);
  background-image:
    linear-gradient(90deg, #050e12fa 0%, #050e12d9 38%, #050e123d 78%),
    linear-gradient(0deg, #050e12b3, transparent 42%),
    url('/NISMA-clean-assets/photos/01-hero.png');
  background-size: cover;
  background-position: center, center, 58% center;
}

.hero .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 385px);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  width: 100%;
}

.hero .hero-copy h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero-copy h1 em { color: var(--bright); }

.hero .hero-copy p {
  max-width: 39ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.hero .hero-copy .brands {
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .hero-actions :is(.hero-mobile-book, .hero-services-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.hero .hero-actions .hero-services-link {
  background: #0b1921b8;
  border-color: #6c8492;
}

.hero .hero-actions .hero-services-link:hover { background: var(--panel); }

.hero .hero-layout .booking {
  width: 100%;
  padding: 20px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.hero .hero-layout .booking h3 { grid-column: 1; }

body .advantages {
  background: var(--deep);
  border-block: 1px solid var(--line);
}

body .advantages .advantage { padding-block: 18px; }
body .advantage .ui-icon { color: var(--bright); }
body .advantages small { color: var(--muted); }

body main > section:not(.hero):not(.cta) { padding-block: clamp(30px, 5vw, 72px); }
body .inner-page { padding-block: clamp(30px, 5vw, 72px); }
body main :is(h1, h2) { letter-spacing: -.03em; }
body main h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
body .why .photo { min-height: 255px; }

body :is(.problem, .route-card, .contact-card, .branch, .review, .booking, .booking-card,
    .booking-summary, .vehicle-specs, .service-menu, dialog, main details) {
  background: var(--panel-fill);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
}

body :is(.route-card, .problem):is(:hover, :focus-visible) {
  background: #192d39;
  color: var(--text);
  border-color: var(--bright);
}

body :is(.maintenance, .catalog-extension) {
  background: var(--deep);
  border-block: 1px solid var(--line);
}

body .service { border: 1px solid var(--line); border-radius: 12px; }
body .service .caption { background: linear-gradient(transparent, #050e12f5); }
body .service small { color: #fff; }
body :is(.reasons b, .branch-address, .branch-phone, .route-card b, .contact-card h2) { color: var(--text); }
body :is(.problem-icon, .reasons .ui-icon, .review strong, .route-card span, .back, dialog a) { color: var(--bright); }

body .route-card > span,
body .route-card:is(:hover, :focus-visible) > span {
  background: #2b202b;
  color: #ffc7d2;
}

body :is(.company-copy .company-block, .vehicle-specs > div, dialog .service-checks label) {
  background: var(--panel);
  border-color: var(--line);
}

body .vehicle-specs dt { color: var(--muted); }

body :is(.more, .contact-actions a, .branch-actions .branch-details, .branch-actions .branch-route,
    .content-source, .service-source, .inner-page a[target="_blank"]:not(.route-card)) {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

body :is(.more, .contact-actions a, .branch-actions .branch-details, .branch-actions .branch-route,
    .content-source, .service-source, .inner-page a[target="_blank"]:not(.route-card)):hover {
  background: #192d39;
  border-color: var(--bright);
  color: var(--text);
}

body :is(button[data-book], button[data-full-book], button[data-continue], .booking > button,
    .maintenance form > button, .hero .hero-mobile-book, .booking-card button[type="submit"]) {
  background-color: var(--red);
  color: #fff;
}

body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea,
    .select-trigger, .select-options, .select-option) {
  background-color: var(--deep);
  border-color: #59717f;
  color: var(--text);
}

body :is(input, textarea)::placeholder { color: var(--muted); }
body :is(.select-trigger[aria-expanded="true"], .select-option:is(:hover, :focus-visible, [aria-selected="true"])) {
  background: #203541;
  border-color: var(--bright);
  color: var(--text);
}
body .select-trigger::after { border-color: var(--muted); }
body input:is([type="checkbox"], [type="radio"]) { accent-color: var(--red); }

body .maintenance-items label:has(:checked),
body dialog .service-checks label:has(input[name="plan_to_dop"]:checked),
body .booking-card .remove-vin,
body .booking-card input[type="file"]::file-selector-button {
  background: #2b202b;
  border-color: #865064;
  color: #ffc7d2;
}

body .booking-card input[type="file"]:hover::file-selector-button { background: #422635; }
body .booking-card small { color: var(--muted); }
body:has(.booking-card) { max-width: 680px; padding-inline: 16px; }
body:has(.booking-card) a { color: var(--bright); }
html:has(body > main > .booking-card) {
  color-scheme: dark;
  min-height: 100%;
  background:
    radial-gradient(ellipse at 12% 100%, #48121c 0%, transparent 48%),
    radial-gradient(ellipse at 90% 0%, #28292c 0%, transparent 48%),
    #111213;
}
body:has(> main > .booking-card) {
  --bright: #ff8997;
  background: transparent;
  color: #f5f2ed;
  font-family: "TT Travels", system-ui, sans-serif;
}
@font-face {
  font-family: "TT Travels";
  src: url("/TTTravels-DemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
body > main > .booking-card {
  background: linear-gradient(145deg, #1d1e21, #151618);
  border-color: #3d3d42;
  box-shadow: 0 18px 60px #0005;
}
body > main > .booking-card :is(input:not([type=hidden]):not([type=checkbox]),select,.select-trigger,.select-options,.select-option,.maintenance-select),
body > main > .booking-summary {
  background: #111213;
  color: #f5f2ed;
  border-color: #45464b;
}
body > main > .booking-card :is(.select-option:is(:hover,:focus-visible,[aria-selected=true]), .maintenance-items label:has(:checked)) {
  background: #3d1921;
  color: #fff;
}
body > main > .booking-card small { color: #c8c1c2; }
.select-control .select-error:not([hidden]) { display:block; margin:6px 0 0; color:#ff9aa9; }
.select-control .select-trigger[aria-invalid="true"] { border-color:#ff647d; }
body > main > .booking-card input[type=checkbox] { accent-color: #e40521; }
.booking-visit {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  margin:20px 0 0; padding:14px 16px; gap:12px 22px;
  border:1px solid #3d3d42; border-left:3px solid #e40521;
  border-radius:8px; background:#191a1d; color:#f5f2ed;
}
.booking-visit dt { color:#c8c1c2; font-size:.8rem; }
.booking-visit dd { margin:4px 0 0; overflow-wrap:anywhere; }
@media(max-width:420px) {
  .booking-visit { grid-template-columns:1fr; }
}
body .booking-summary strong { min-width: 0; }
body :is(a, button, select, input, summary):focus-visible { outline: 2px solid #ff92a4; outline-offset: 3px; }

@media (max-width: 960px) {
  .hero .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero .hero-layout .booking { display: none; }
}

@media (max-width: 600px) {
  body .hero {
    min-height: 460px;
    align-items: end;
    padding-block: 50px;
    background-image:
      linear-gradient(0deg, #050e12 0%, #050e12dc 43%, #050e1238 100%),
      url('/NISMA-clean-assets/photos/01-hero.png');
    background-position: center, 62% center;
  }
  .hero .hero-copy h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); text-wrap: initial; }
  .hero .hero-copy p br { display: none; }
  .hero .hero-actions a { flex: 1 0 auto; }
  body .advantages .advantage { padding-block: 9px; }
  body .why .photo { min-height: 200px; }
}
