/* AV motors, versija 3 "Kravas": tumšs, industriāls, tērauds un sarkans akcents */
:root {
  --bg: #15171a;
  --bg-2: #1c1f23;
  --surface: #23272c;
  --surface-2: #2b3036;
  --line: #3a4149;
  --line-2: #4a525b;
  --text: #f2f3f4;
  --muted: #b7bec6;
  --dim: #8f99a3;
  --red: #f04249;
  --red-deep: #c9333a;
  --steel: #d7dce2;
  --radius: 4px;
  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --head: "Archivo", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--head);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-stretch: 78%;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(38px, 9.8vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel);
}
.label::before { content: ""; width: 22px; height: 3px; background: var(--red); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--red); color: #15171a; padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 8px; }

/* Pogas */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-stretch: 85%; font-weight: 800; font-size: 20px; letter-spacing: 0.01em;
  text-decoration: none; text-transform: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-steel { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.btn-steel:hover { background: #343a41; border-color: var(--steel); }
.btn-light { background: var(--steel); color: #15171a; border-color: var(--steel); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn .badge {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 999px; background: var(--red); color: #15171a; font-size: 16px; font-stretch: 100%;
}

/* Galvene */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 23, 26, .96);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px; min-height: 72px;
}
.logo { display: block; flex: none; }
.logo img { width: 132px; height: 48px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  text-decoration: none; font-weight: 600; color: var(--muted); border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang button {
  min-width: 48px; min-height: 48px; padding: 0 10px; border: 0; background: transparent;
  font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: .04em;
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--steel); color: #15171a; }
.head-phone { display: none; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.status.open { color: #9ee0a8; }
.status.open::before { background: #4ccb5f; }
.status.closed { color: var(--muted); }
.status.closed::before { background: var(--red); }

/* Hero */
.hero { background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-photo { position: relative; height: 168px; overflow: hidden; background: var(--surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,23,26,0) 55%, var(--bg) 100%);
}
.hero-body { padding: 22px var(--pad) 28px; }
.hero-body .label { margin-bottom: 14px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 46ch; margin-bottom: 24px; }
.hero-cta { display: grid; gap: 12px; }
.hero-cta .btn { min-height: 68px; font-size: 22px; }
.hero-cta .btn small { font-stretch: 100%; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.85); }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.hero-meta strong { color: var(--text); font-weight: 700; }

/* Vienīgā brīdinājuma svītra */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--red) 0 16px, var(--bg) 16px 32px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Sekcijas */
section { padding: clamp(56px, 8vw, 104px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 32px; margin-bottom: 32px; }
.sec-head h2 { max-width: 16ch; margin-top: 12px; }
.sec-head .label { display: inline-flex; }

/* Pārslēgs Vieglie / Kravas */
.toggle {
  display: inline-flex; border: 2px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.toggle button {
  min-height: 52px; padding: 0 22px; border: 0; background: transparent;
  font-stretch: 85%; font-weight: 800; font-size: 19px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.toggle button + button { border-left: 2px solid var(--line-2); }
.toggle button[aria-pressed="true"] { background: var(--red); color: #fff; }
.toggle svg { width: 26px; height: 26px; }
.toggle-note { font-size: 15px; color: var(--muted); margin-top: 10px; min-height: 1.5em; }

/* Virzienu kartes */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--line-2); overflow: hidden;
  transition: border-color .2s, background .2s;
}
.card-photo { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-num { font-stretch: 78%; font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--dim); }
.card h3 { max-width: 20ch; }
.card p { color: var(--muted); font-size: 16px; }
.card-tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 3px;
  background: var(--red); color: #15171a; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; opacity: 0; transition: opacity .2s;
}
.card-link {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; font-weight: 700; text-decoration: none; color: var(--text);
}
.card-link svg { width: 20px; height: 20px; transition: transform .15s; }
.card-link:hover svg { transform: translateX(4px); }
.card-link:hover { color: var(--red); }
.card.on { border-top-color: var(--red); }
.card.on .card-tag { opacity: 1; }
.card.off { background: var(--bg-2); }
.card.off .card-photo img { filter: grayscale(1) brightness(.55); }
.card.off h3 { color: var(--muted); }

/* Pilns saraksts */
.list-sec { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: svc; }
.svc-list li {
  counter-increment: svc; display: grid; grid-template-columns: 10px 1fr; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600;
}
.svc-list li::before {
  content: ""; width: 10px; height: 10px; background: var(--red);
}
.svc-list li { position: relative; transition: padding-left .3s ease, color .2s; }
.svc-list .peek { position: absolute; right: 10%; top: 50%; width: 240px; aspect-ratio: 4 / 3; z-index: 3; opacity: 0; pointer-events: none; overflow: hidden; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: translateY(-50%) scale(.9) rotate(2deg); transition: opacity .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.svc-list .peek img { width: 100%; height: 100%; object-fit: cover; }
.svc-list .peek { display: none; }
@media (hover: hover) and (min-width: 1100px) {
  .svc-list .peek { display: block; }
  .svc-list li:hover { padding-left: 10px; color: #fff; }
  .svc-list li:hover .peek { opacity: 1; transform: translateY(-50%) scale(1) rotate(-2deg); }
}
.svc-list .more { display: none; }
.svc-list.expanded .more { display: grid; }
.list-foot { margin-top: 22px; }
#toggleList { min-height: 60px; }

/* Par mums */
.about-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.about-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about p { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 58ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.fact b { display: block; font-stretch: 78%; font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1; color: var(--text); }
.fact span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.3; }

/* Darba laiks un kontakti */
.info-sec { background: var(--bg-2); border-top: 1px solid var(--line); }
.info-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.hours { list-style: none; padding: 0; margin: 22px 0 0; max-width: 460px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.hours li b { font-weight: 700; }
.hours li.today { color: var(--text); }
.hours li.today b::after { content: " \2022"; color: var(--red); }
.hours li .closed { color: var(--muted); }
.status-big { margin-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); font-size: 17px; max-width: 460px; }
.status-big .status { font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 24px; height: 24px; color: var(--red); margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 700; font-size: 19px; display: inline-flex; min-height: 48px; align-items: center; }
.contact-list a:hover { color: var(--red); }
.contact-list small { display: block; color: var(--muted); font-size: 14px; }
.map-btns { display: grid; gap: 12px; margin-top: 22px; }
.requisites { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.requisites b { color: var(--text); font-weight: 700; }

/* Kājene */
footer { padding: 28px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Mobilā apakšjosla */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 23, 26, .97); border-top: 1px solid var(--line);
}
.sticky-bar .btn { min-height: 56px; font-size: 19px; }

/* Kartes izvēle */
.map-pick {
  position: fixed; inset: 0; z-index: 80; display: none; align-items: end; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 16px;
}
.map-pick.open { display: flex; }
.map-pick-box {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; padding: 20px;
  display: grid; gap: 10px;
}
.map-pick-box h3 { font-size: 22px; margin-bottom: 4px; }
.map-pick-box .addr { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.map-pick-box .btn { min-height: 60px; }
.map-pick-box .close { min-height: 48px; background: transparent; border: 0; color: var(--muted); font-weight: 600; }

/* Sīkdatņu josla */
.cookie {
  position: fixed; left: 10px; right: 10px; top: 80px; z-index: 70;
  display: none; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px;
  font-size: 14px; color: var(--muted);
}
.cookie.show { display: flex; }
.cookie p { flex: 1 1 240px; }
.cookie .btn { min-height: 48px; font-size: 16px; padding: 0 18px; }

/* Pakalpojumu lapa */
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 60ch; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.sub-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; border: 1px solid var(--line-2);
  border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted);
}
.sub-nav a:hover { color: var(--text); border-color: var(--steel); }
.dir { padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.dir-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.dir-photo { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.dir-photo img { width: 100%; height: 100%; object-fit: cover; }
.dir h2 { margin-top: 12px; max-width: 18ch; }
.dir .intro { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 56ch; }
.dir ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.dir li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: baseline; }
.dir li::before { content: ""; width: 10px; height: 10px; background: var(--red); transform: translateY(-1px); }
.dir .btn { margin-top: 24px; }
.cta-sec { background: var(--bg-2); border-top: 1px solid var(--line); }
.cta-sec .btns { display: grid; gap: 12px; margin-top: 24px; }

/* Platāki ekrāni */
@media (min-width: 640px) {
  .hero-cta { grid-template-columns: 1fr 1fr; }
  .map-btns, .cta-sec .btns { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cookie { left: auto; right: 16px; max-width: 420px; }
}
@media (min-width: 768px) {
  .nav { display: flex; }
  .sticky-bar { display: none; }
  .cookie { top: auto; bottom: 16px; }
  footer { padding-bottom: 36px; }
  .map-pick { align-items: center; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .dir-grid { grid-template-columns: 5fr 7fr; align-items: start; }
}
@media (min-width: 1024px) {
  .head-phone {
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px;
    text-decoration: none; font-weight: 800; font-stretch: 85%; font-size: 18px; border-radius: var(--radius);
  }
  .head-phone:hover { color: var(--red); }
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 640px; }
  .hero-photo { height: auto; order: 2; }
  .hero-photo::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(21,23,26,0) 30%); }
  .hero-body { order: 1; padding: 72px 40px 72px var(--pad); display: flex; flex-direction: column; justify-content: center; }
  .hero-cta .btn { min-height: 64px; font-size: 20px; }
  .hero .lead { font-size: 18px; }
  .hero h1 { max-width: 12ch; }
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card:nth-child(-n + 2) { grid-column: span 3; }
  .card:nth-child(n + 3) { grid-column: span 2; }
  .card:nth-child(n + 3) .card-photo { aspect-ratio: 16 / 8; }
}
@media (min-width: 1440px) {
  .hero-body { padding-left: max(var(--pad), calc((100vw - var(--maxw)) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 900px) { #statusHead { font-size: 0; gap: 0; } #statusHead::before { width: 12px; height: 12px; } }
@media (max-width: 400px) { .toggle { max-width: 100%; } .toggle button { padding-left: 12px; padding-right: 12px; font-size: 16px; min-width: 0; } .toggle svg { width: 22px; height: 22px; } }
