/* ==========================================================================
   AVTOMOBILNI SYSTEMY TOV — coastal-light
   River-city daylight: pale sky, cardboard sand, Dnipro blue.
   Airy inset photo, dock-lane strip, not a beach palette.
   ========================================================================== */

:root {
  --bg: #f4f9fb;
  --bg-alt: #e7f1f4;
  --bg-sand: #f3eee4;
  --bg-deep: #1c3d4a;
  --ink: #1c3d4a;
  --ink-soft: #5a7380;
  --ink-invert: #f4f9fb;
  --accent: #3a8aa3;
  --accent-soft: #d4e8ef;
  --line: #d2e3e9;
  --foam: #ffffff;
  --sand: #f3eee4;
  --river: #2e7a90;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --tracking-display: -0.035em;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
  --shadow: 0 16px 40px rgba(28, 61, 74, 0.08);
}

/* --- HEADER --- */
.site-header {
  background: color-mix(in srgb, var(--foam) 82%, transparent);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--foam);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav a {
  font-weight: 500;
  font-size: 0.86rem;
}
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn--primary {
  background: var(--accent);
  color: var(--foam);
}
.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 82%, var(--ink));
}
.hero .btn--ghost {
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--ink);
  background: var(--foam);
}
.hero .btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent-soft);
}
.eyebrow {
  color: var(--river);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.section__head {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section__head h2 {
  margin-top: 0.4rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- HERO: airy inset shot, not full-bleed --- */
.hero {
  padding-top: clamp(4.5rem, 10vw, 7rem);
  padding-bottom: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--sand) 55%, var(--sand) 100%);
}
.hero__top {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  margin-top: 0.6rem;
  max-width: 14ch;
}
.hero .lede {
  margin-top: 1.1rem;
  max-width: 46ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.hero__shot {
  position: relative;
  z-index: 1;
}
.hero__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --- LANES: dock numbers overlapping the photo --- */
.lanes {
  background: var(--sand);
  padding-top: 0;
  margin-top: -2.25rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.lanes__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.lane {
  background: var(--foam);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.lane__no {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.lane h2 {
  font-size: var(--step-1);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.lane p {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .lanes {
    margin-top: -3.5rem;
  }
  .lanes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .lanes__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- ABOUT --- */
.about {
  background: var(--bg);
}
.about__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.about__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.about__facts {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.about__facts div {
  display: grid;
  gap: 0.15rem;
}
.about__facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.about__facts dd {
  font-weight: 600;
}
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .about__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- SERVICES: stacked rows, sand rules --- */
.services {
  background: var(--sand);
}
.services__list {
  display: grid;
  gap: 1rem;
}
.service {
  background: var(--foam);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.service__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service h3 {
  font-size: var(--step-1);
  margin-bottom: 0.7rem;
}
.service p {
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .services__list {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

/* --- DISPATCH: river path --- */
.dispatch {
  background: var(--bg);
}
.dispatch__path {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.dispatch__path li {
  position: relative;
  padding-left: 3.25rem;
}
.dispatch__step {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--river);
  font-size: 0.85rem;
  font-weight: 700;
}
.dispatch__path h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35rem;
}
.dispatch__path p {
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.dispatch__photo {
  margin: 0;
}
.dispatch__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.dispatch__photo figcaption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .dispatch__path {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 0.5rem;
  }
  .dispatch__path li {
    padding-left: 0;
    padding-top: 3.5rem;
  }
  .dispatch__path li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: 2.6rem;
    right: -1.5rem;
    height: 2px;
    background: var(--accent-soft);
  }
  .dispatch__step {
    top: 0;
  }
}

/* --- FLOOR: copy + stacked shots --- */
.floor {
  background: var(--sand);
}
.floor__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
.floor__copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.floor__copy .btn {
  margin-top: 0.5rem;
  align-self: start;
}
.floor__shots {
  display: grid;
  gap: 1rem;
}
.floor__shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) {
  .floor__grid {
    grid-template-columns: 1fr 1.05fr;
  }
  .floor__shots {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
  .floor__shots figure:last-child {
    margin-bottom: 12%;
  }
}

/* --- ROUTES: deep river band --- */
.routes {
  background: var(--bg-deep);
  color: var(--ink-invert);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.routes .eyebrow {
  color: var(--accent-soft);
}
.routes .lede {
  color: color-mix(in srgb, var(--ink-invert) 72%, transparent);
  margin-top: 1rem;
  max-width: 48ch;
}
.routes__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.routes__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.routes__chips li {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink-invert) 22%, transparent);
  font-size: var(--step--1);
  font-weight: 500;
}
@media (min-width: 900px) {
  .routes__inner {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

/* --- HOURS: dispatch timetable --- */
.hours {
  background: var(--bg);
}
.hours__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.hours h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
.hours__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--foam);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hours__table th,
.hours__table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.hours__table tr:last-child th,
.hours__table tr:last-child td {
  border-bottom: 0;
}
.hours__table th {
  font-weight: 500;
  color: var(--ink-soft);
}
.hours__table td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .hours__grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* --- FAQ --- */
.faq {
  background: var(--sand);
}
.faq__list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq__list article {
  background: var(--foam);
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
}
.faq__list h3 {
  font-size: var(--step-1);
  margin-bottom: 0.45rem;
}
.faq__list p {
  color: var(--ink-soft);
  font-size: var(--step--1);
}
@media (min-width: 900px) {
  .faq__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- CONTACT --- */
.contact {
  background: var(--bg);
}
.contact__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
.contact__card {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.contact__card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.contact__details {
  font-style: normal;
  margin-top: 0.5rem;
}
.contact__details a {
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact__details a:hover {
  color: var(--accent);
}
.contact__form {
  display: grid;
  gap: 1rem;
}
.field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--foam);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input,
.field textarea,
.field select {
  background: var(--foam);
}
.contact__form .btn {
  justify-self: start;
}
@media (min-width: 860px) {
  .contact__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

/* --- FOOTER --- */
.site-footer {
  background: var(--sand);
  border-top: 0;
}
.footer__grid {
  display: grid;
  gap: 1.5rem;
}
.footer__brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.footer__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.footer__grid a {
  overflow-wrap: anywhere;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer__nav a {
  font-size: var(--step--1);
  text-decoration: none;
  font-weight: 500;
}
.footer__nav a:hover {
  color: var(--accent);
}
@media (min-width: 1000px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1.2fr auto;
  }
}

@media (max-width: 374px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .lane {
    padding: 1.1rem;
  }
}
