:root {
  --forest: #143d2d;
  --dark: #102d23;
  --ink: #142d24;
  --muted: #495e53;
  --lime: #b5dc78;
  --line: #d8e2d9;
  --paper: #f3f6f1;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #65a83d; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 12px; transform: translateY(-120%); background: white; color: var(--dark); padding: 12px; z-index: 5; }
.skip:focus { transform: none; }

.site-header { background: #fff; }
.header-inner { min-height: 106px; display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr); align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { display: block; width: 192px; height: auto; }
.navigation { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 42px); }
.navigation a { font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.navigation a:hover, footer a:hover { color: #317644; text-decoration: underline; text-underline-offset: 5px; }
.languages { display: flex; justify-self: end; border: 1px solid var(--line); }
.languages button { border: 0; background: #fff; color: var(--dark); min-width: 43px; min-height: 37px; font-size: .875rem; font-weight: 700; }
.languages button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.languages button[aria-pressed="false"]:hover { background: var(--paper); }

.hero { background: #153228; color: #fff; position: relative; isolation: isolate; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }

.hero::after { background: linear-gradient(90deg, rgba(8,31,22,.99) 0%, rgba(8,31,22,.9) 21%, rgba(8,31,22,.60) 43%, rgba(8,31,22,.10) 67%, transparent 100%); }
.hero-inner { min-height: clamp(490px, 43vw, 640px); display: flex; align-items: center; padding-block: 62px; }
.hero-copy { max-width: 780px; }
.hero h1 > span, .hero h1 > em { display: block; }
.hero h1 { text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 5.85vw, 6rem); line-height: .94; font-weight: 800; letter-spacing: -.075em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-description { color: #f2f5ee; margin-top: 25px; max-width: 380px; font-size: 1.0625rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }

.button { min-height: 47px; display: inline-flex; justify-content: center; align-items: center; padding: 11px 20px; text-align: center; text-decoration: none; font-size: .9375rem; font-weight: 700; border: 1px solid transparent; }
.button-lime { background: var(--lime); color: var(--dark); }
.button-lime:hover { background: #c8ea9a; }
.button-ghost { border-color: #a4b5a7; background: #102d235e; color: #fff; }
.button-ghost:hover { background: var(--dark); }
.button-outline { color: var(--forest); background: #fff; border-color: #8da496; }
.button-outline:hover { background: var(--paper); border-color: var(--forest); }
.button-solid { background: var(--forest); color: #fff; }
.button-solid:hover { background: #20503c; }

.section { padding-block: 75px 82px; }
.fleet { background: var(--paper); }
.section-heading { margin-bottom: 32px; }
h2 { font-size: clamp(2.15rem, 4.15vw, 3.75rem); line-height: 1.05; letter-spacing: -.055em; }
.section-heading p { margin-top: 10px; color: var(--muted); }
.fleet-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.vehicle { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.vehicle-media { display: grid; place-items: center; aspect-ratio: 1.8; border-bottom: 1px solid #e6ece6; padding: 20px 30px 15px; overflow: hidden; }
.vehicle-media img { display: block; width: 100%; height: 100%; max-height: 185px; object-fit: contain; }
.vehicle-content { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.vehicle-type { color: #3e684c; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .085em; }
.vehicle h3 { margin-top: 4px; font-size: 1.625rem; line-height: 1.2; letter-spacing: -.04em; }
.vehicle-specs { margin-top: 10px; color: var(--muted); padding-bottom: 20px; }
.vehicle .button { width: 100%; margin-top: auto; }

.branch { background: var(--dark); color: #fff; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.branch-grid:has(> :only-child) { grid-template-columns: minmax(0, 620px); }
.branch h2 { max-width: 605px; }
.branch-info { border: 1px solid #527461; padding: 23px 26px 26px; }
.branch-info dl { margin: 0 0 18px; }
.branch-info dl > div { display: grid; grid-template-columns: minmax(75px, .62fr) 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid #416351; }
.branch-info dt { font-weight: 700; }
.branch-info dd { color: #e1ebde; margin: 0; overflow-wrap: anywhere; }
.branch-info dd a { text-underline-offset: 3px; }
.about-grid { display: grid; grid-template-columns: .65fr 1fr; gap: 45px; align-items: start; }
.about-grid p { color: var(--muted); max-width: 630px; font-size: 1.0625rem; }
footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; }
.footer-inner .brand img { width: 109px; }
footer a { text-underline-offset: 4px; font-size: .9375rem; }

dialog { padding: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); color: var(--ink); }
dialog::backdrop { background: #0a231bcc; }
.dialog-content { padding: 30px; position: relative; }
.dialog-content h2 { margin-top: 6px; font-size: 2rem; }
.dialog-image { width: 100%; height: 185px; object-fit: contain; display: block; margin-bottom: 20px; }
.dialog-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; color: var(--dark); font-size: 1.75rem; line-height: 1; position: absolute; top: 10px; right: 10px; }
.dialog-close:hover { background: var(--paper); }

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 18px; }
  .fleet-grid { gap: 12px; }
  .vehicle-content { padding: 16px; }
  .vehicle h3 { font-size: 1.35rem; }
  .vehicle-media { padding-inline: 12px; }
  .branch-grid { gap: 30px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 0; padding-top: 10px; }
  .header-inner .brand img { width: clamp(110px, 32vw, 146px); }
  .navigation { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; margin-top: 7px; min-height: 44px; border-top: 1px solid var(--line); }
  .navigation a { font-size: .8125rem; }
  .hero-image { object-position: 70% center; }
  .hero::after { background: linear-gradient(90deg, #081f16f2, #081f168e 55%, #081f1638), linear-gradient(0deg, #081f16a8, transparent 60%); }
  .hero-inner { min-height: 465px; padding-block: 55px 70px; }
  h1 { font-size: clamp(2.75rem, 9.1vw, 4.4rem); }
  .hero-description { max-width: 305px; }
  .actions { gap: 8px; }
  .actions .button { padding-inline: 13px; }
  .section { padding-block: 49px 55px; }
  .section-heading { margin-bottom: 23px; }
  .fleet-grid { grid-template-columns: 1fr; gap: 16px; }
  .vehicle-media { aspect-ratio: 2.05; padding-inline: 30px; }
  .vehicle-content { padding: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .branch-info { padding: 16px; }
  .footer-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header-tools { display: flex; gap: 10px; justify-self: end; align-items: center; }
.theme-picker select {
  appearance: none;
  min-height: 39px;
  border: 1px solid var(--line);
  padding: 5px 23px 5px 9px;
  color: var(--dark);
  background: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.theme-picker { position: relative; }
.theme-picker::after {
  content: "";
  position: absolute;
  right: 10px;
  top: calc(50% - 4px);
  height: 6px;
  width: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.theme-picker select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.navigation [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

.hero-inner { position: relative; padding-bottom: 78px; }
.hero-images { position: absolute; inset: 0; z-index: -2; background: var(--dark); }
.hero-image { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.hero-image.is-active { opacity: 1; }
.slider { position: absolute; inset: auto auto 24px 0; display: flex; gap: 8px; align-items: center; }
.slider button { min-width: 34px; min-height: 35px; background: transparent; color: white; border: 1px solid transparent; font-weight: 700; }
.slider button[data-slide]::before { content: ""; display: block; height: 4px; width: 20px; background: #e4ebdf; }
.slider button[aria-pressed="true"]::before { background: var(--lime); }
.slider button:hover, .slider button:focus-visible { border-color: #a4b5a7; }
#slider-toggle { display: grid; place-items: center; border-color: #a4b5a7; background: #102d235e; }
#slider-toggle::before { content: ""; width: 9px; height: 12px; border-inline: 3px solid currentColor; }
#slider-toggle[data-paused="true"]::before { width: 0; height: 0; border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: currentColor; }
.branch-info h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 18px; margin-top: 34px; }
.about-values article { border: 1px solid var(--line); border-top: 4px solid var(--forest); background: var(--paper); padding: 24px; }
.about-values h3 { font-size: 1.35rem; margin-bottom: 10px; }
.about-values p, .about-values li { color: var(--muted); }
.about-values ul { margin: 0; padding-inline-start: 19px; }
.about-values li + li { margin-top: 4px; }

.footer-inner { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: start; padding-block: 32px; }
.footer-inner .brand img { width: 142px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; }
.footer-contact { display: grid; gap: 5px; justify-items: end; font-size: .9375rem; }

#map-dialog { width: min(830px, calc(100% - 32px)); }
.map-content h2 { max-width: calc(100% - 30px); }
.map-address { color: var(--muted); margin-block: 8px 16px; }
.map-tabs { display: flex; gap: 4px; }
.map-tabs button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-bottom: 0; background: #fff; color: var(--dark); font-weight: 700; }
.map-tabs button[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.map-tabs button[aria-selected="false"]:hover { background: var(--paper); }
.map-frame { display: block; width: 100%; height: clamp(240px, 46dvh, 410px); border: 1px solid var(--line); background: var(--paper); }
.map-links { display: flex; flex-wrap: wrap; margin-top: 15px; gap: 8px; }

.contact-page { background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(30px, 8vw, 95px); }
.contact-page h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 18px; }
.contact-page p { color: var(--muted); }
.contact-direct { display: grid; gap: 7px; margin-top: 22px; }
.contact-direct a { font-weight: 700; text-underline-offset: 3px; }
#contact-form { display: grid; gap: 16px; border: 1px solid var(--line); padding: clamp(18px, 4vw, 35px); background: white; }
#contact-form[hidden] { display: none; }
#contact-form label { display: grid; gap: 5px; font-weight: 700; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#contact-form input, #contact-form textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid #9eb2a4; padding: 11px; font: inherit; font-weight: 400; }
#contact-form textarea { resize: vertical; }
#contact-form .button { justify-self: start; }
#contact-note { font-size: .875rem; }

:root[data-theme="kiyi"] {
  --forest: #145e64; --dark: #153f44; --ink: #14373b; --muted: #3f6063;
  --lime: #bde8dc; --paper: #edf7f7; --line: #c9dddd;
}
[data-theme="kiyi"] .hero { background: var(--paper); color: var(--ink); }
[data-theme="kiyi"] .hero::after { content: none; }
[data-theme="kiyi"] .hero-images { left: 52%; }
[data-theme="kiyi"] .hero-image { object-position: 91% center; }
[data-theme="kiyi"] .hero-copy { max-width: 47%; }
[data-theme="kiyi"] .hero h1 { font-size: clamp(2.65rem, 4.4vw, 4.65rem); }
[data-theme="kiyi"] .hero h1 em, [data-theme="kiyi"] .hero-description { color: var(--forest); }
[data-theme="kiyi"] .hero .button-lime { background: var(--forest); color: white; }
[data-theme="kiyi"] .hero .button-ghost { background: transparent; color: var(--dark); border-color: var(--forest); }
[data-theme="kiyi"] .hero .button:hover { box-shadow: inset 0 0 0 2px var(--dark); }
[data-theme="kiyi"] .slider button[data-slide]::before { background: #9bbbbb; }
[data-theme="kiyi"] .slider button[data-slide][aria-pressed="true"]::before { background: var(--forest); }
[data-theme="kiyi"] #slider-toggle { background: var(--forest); }
[data-theme="kiyi"] .fleet { background: #fff; }
[data-theme="kiyi"] .vehicle { background: var(--paper); }
[data-theme="kiyi"] .vehicle-media { background: #fff; }

:root[data-theme="grafit"] {
  --forest: #393e3f; --dark: #242729; --ink: #282b2a; --muted: #535951;
  --lime: #f0cb80; --paper: #f3f1ec; --line: #ddd8cc;
}
[data-theme="grafit"] .site-header { background: #eeede7; }
[data-theme="grafit"] .hero { width: min(calc(100% - 48px), 1440px); margin-inline: auto; }
[data-theme="grafit"] .hero::after { background: linear-gradient(90deg, #1b1d1dfc 4%, #1b1d1dc4 43%, #1b1d1d20 83%); }
[data-theme="grafit"] .hero-image { filter: saturate(.66); }
[data-theme="grafit"] .hero-copy h1 { letter-spacing: -.055em; }
[data-theme="grafit"] .fleet { background: #fff; }
[data-theme="grafit"] .vehicle { border-top: 4px solid var(--dark); }
[data-theme="grafit"] .about { background: var(--paper); }
[data-theme="grafit"] .about-values article { background: white; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 0; padding-top: 9px; }
  .navigation { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; margin-top: 7px; min-height: 46px; border-top: 1px solid var(--line); }
  .header-inner .brand img { width: clamp(125px, 26vw, 172px); }
  .header-tools { grid-row: 1; grid-column: 2; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-values article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .header-inner .brand img { width: clamp(107px, 33vw, 145px); }
  .header-tools { gap: 6px; }
  .languages button { min-width: 31px; font-size: .8125rem; }
  .theme-picker select { font-size: .8125rem; padding-left: 6px; padding-right: 18px; }
  .theme-picker::after { right: 7px; }
  .navigation { justify-content: space-between; }
  .about-values { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
  .about-values article { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { justify-items: start; }
  .contact-layout, .form-row { grid-template-columns: 1fr; }
  .map-content { padding: 21px 16px; }
  [data-theme="kiyi"] .hero-inner { min-height: 0; padding-block: 240px 68px; align-items: end; }
  [data-theme="kiyi"] .hero-images { inset: 0 0 auto; height: 215px; }
  [data-theme="kiyi"] .hero-copy { max-width: 100%; }
  [data-theme="grafit"] .hero { width: calc(100% - 18px); }
}
@media (prefers-reduced-motion: reduce) { .hero-image { transition: none; } }
