/* DIDI AUTO
   Krāsas un izmēri no dizaina manuāļa. Mobilais vispirms. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2192, U+2212, U+2215;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --primary: #A61C6F;
  --primary-dark: #8D1B60;
  --primary-soft: #FBEDF5;
  --dark: #1F2430;
  --text: #23262F;
  --muted: #667085;
  --bg: #FFFFFF;
  --surface: #F7F7F9;
  --border: #E7E7EC;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 12px;

  --gap: 24px;
  --section: 96px;
  --container: 1280px;

  --shadow-card: 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-hover: 0 16px 40px rgba(16, 24, 40, .12);
  --shadow-header: 0 4px 16px rgba(16, 24, 40, .04);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 16px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 5.2vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 30px); }
h4 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-surface { background: var(--surface); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--primary);
  color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 0; }

.ico { width: 22px; height: 22px; flex: none; }

/* ---------- pogas ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 14px;
  font: 600 16px/1.2 inherit; text-align: center; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 16px 28px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 12px; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: #fff; color: var(--text); border-color: #D7D7DD; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; color: var(--text); }

.btn-block { width: 100%; }

/* ---------- galvene ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 46px; height: 46px; }
.logo-text {
  display: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1;
}
.logo-text b { color: var(--primary); }
.logo-text small {
  display: block; font-weight: 500; font-size: 9px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav { display: none; margin-left: auto; gap: 26px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: var(--text);
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--primary); text-decoration: none; }
.nav-link.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link-sm { display: none; }

.header-cta { display: none; align-items: center; gap: 16px; margin-left: auto; }
.header-phone { display: flex; align-items: center; gap: 10px; color: var(--text); }
.header-phone:hover { text-decoration: none; color: var(--primary); }
.header-phone .ico { color: var(--primary); }
.header-phone b { display: block; font-size: 16px; }
.header-phone small { display: block; font-size: 12px; color: var(--muted); }

.burger {
  margin-left: auto; width: 46px; height: 46px; display: grid; gap: 5px;
  align-content: center; justify-items: center;
  background: none; border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }
body.nav-open .nav {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; inset: 72px 0 0; background: #fff; padding: 8px 20px 100px;
  overflow-y: auto; z-index: 49;
}
body.nav-open .nav .nav-link {
  padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 18px;
}
body.nav-open .nav-link-sm { display: block; }

/* ---------- hero ---------- */

.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero-inner { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--primary); display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding-top: 24px; padding-bottom: 8px; border-top: 1px solid var(--border);
}
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .ico { color: var(--primary); margin-top: 2px; }
.fact b { display: block; font-size: 15px; }
.fact span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- sekciju virsraksti ---------- */

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-more .ico { width: 18px; height: 18px; transition: transform .15s; }
.link-more:hover .ico { transform: translateX(3px); }

/* ---------- pakalpojumu kartītes ---------- */

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #DCD8E0; }
/* Bilde ir absolūtā pozīcijā, citādi tā izstiepj kartīti pēc savas dabiskās
   augstuma proporcijas un rinda sanāk nelīdzena. */
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-icon {
  position: absolute; left: 16px; bottom: -22px;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; border-radius: 50%; color: var(--primary);
  box-shadow: var(--shadow-card);
}
.card-body { padding: 34px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
}
.card-link .ico { width: 18px; height: 18px; transition: transform .15s; }
.card:hover .card-link .ico { transform: translateX(4px); }
.card-full-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- kāpēc mēs ---------- */

.why { display: grid; gap: 28px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; }
.why-list .ico { color: var(--primary); margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-content: start; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center;
}
.stat .ico { color: var(--primary); margin: 0 auto 10px; width: 26px; height: 26px; }
.stat b { display: block; font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.stat span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); text-wrap: balance; }

/* ---------- josla ar aicinājumu ---------- */

.cta-strip { background: var(--dark); color: #fff; }
.cta-strip-inner { display: grid; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.cta-strip h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-strip p { color: rgba(255, 255, 255, .72); margin: 0; }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.banner {
  display: grid; gap: 20px; align-items: center;
  background: var(--primary); color: #fff;
  border-radius: var(--radius-lg); padding: 28px 24px;
}
.banner h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.banner p { color: rgba(255, 255, 255, .82); margin: 0; }
.banner .btn-ghost { border-color: #fff; }

/* ---------- galerija ---------- */

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- saturs ---------- */

.layout { display: grid; gap: 32px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; font-size: 22px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 0 0 24px; }
.prose ul li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul li .ico { color: var(--primary); margin-top: 3px; }
.prose img { border-radius: var(--radius); }

.aside-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.aside-card h3 { font-size: 20px; }
.aside-card + .aside-card { margin-top: 16px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-list a { color: var(--text); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.aside-list a:hover { color: var(--primary); text-decoration: none; }
.aside-list .ico { width: 18px; height: 18px; color: var(--primary); }

.page-head { padding-top: 32px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { max-width: 70ch; }

/* ---------- biežāk uzdotie jautājumi ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primary); font-size: 22px; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- soļi ---------- */

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px;
}
.steps-num {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 50%; font-weight: 700; font-size: 15px;
}

/* ---------- kontakti un formas ---------- */

.contact-grid { display: grid; gap: 24px; }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { color: var(--primary); margin-top: 3px; }
.info-list b { display: block; font-size: 15px; }
.info-list a, .info-list span { color: var(--text); }
.info-list small { color: var(--muted); }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: 400 16px/1.4 inherit; color: var(--text);
  background: #fff; border: 1px solid #D7D7DD; border-radius: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(166, 28, 111, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #98A2B3; }
.field-error input, .field-error textarea, .field-error select { border-color: #D92D20; }
.field .err { font-size: 13px; color: #D92D20; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }

.form-note { font-size: 13px; color: var(--muted); }
.alert { padding: 16px 18px; border-radius: var(--radius); font-size: 15px; }
.alert-ok { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }
.alert-bad { background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; }

/* pretspama lauks, cilvēks to neredz */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- partneri ---------- */

.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: center; }
.partners a { display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.partners img { max-height: 56px; width: auto; object-fit: contain; }

/* ---------- kājene ---------- */

.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 8px; }

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 48px 0 24px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-brand img { background: #fff; border-radius: 14px; padding: 6px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links, .footer-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contacts a, .footer-contacts span { color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-links a:hover, .footer-contacts a:hover { color: #fff; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .ico { width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px; display: grid; place-items: center; color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255, 255, 255, .72); }

/* zvanīšanas poga telefonos */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 10px 24px rgba(166, 28, 111, .35);
}
.call-fab:hover { text-decoration: none; background: var(--primary-dark); }

/* ---------- bilžu skatītājs ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 40px 16px;
  background: rgba(16, 18, 24, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 12px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 40px; line-height: 1; cursor: pointer; padding: 12px;
}
.lightbox-close { top: 8px; right: 12px; font-size: 34px; }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }

/* ---------- sīkdatņu josla ---------- */

.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-hover); font-size: 14px;
}
.cookiebar p { margin: 0; max-width: 70ch; }

/* ---------- planšete ---------- */

@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip-inner { grid-template-columns: 1.4fr auto; align-items: center; padding-top: 48px; padding-bottom: 48px; }
  .banner { grid-template-columns: 1.6fr auto; padding: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .logo-text { display: block; }
}

/* ---------- dators ---------- */

@media (min-width: 1024px) {
  .section { padding-top: var(--section); padding-bottom: var(--section); }
  .hero-inner {
    grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px;
    padding-top: 56px; padding-bottom: 64px;
  }
  .hero-media { height: 460px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  /* Blakus tekstam ir tikai puse platuma, tāpēc divas kolonnas, nevis četras. */
  .why .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .layout aside { position: sticky; top: 100px; }
  .header-inner { min-height: 88px; }
  .nav { display: flex; }
  .header-cta { display: flex; margin-left: 0; }
  .burger { display: none; }
  .call-fab { display: none; }
  .logo img { width: 52px; height: 52px; }
  .page-head { padding-top: 48px; padding-bottom: 16px; }
}

@media (min-width: 1200px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
