:root {
  --bg: #ffffff;
  --bg-soft: #faf7f2;
  --section: #f3f4f6;
  --text: #172033;
  --muted: #596579;
  --line: #d9dee7;
  --accent: #e9692c;
  --accent-dark: #bf4d1e;
  --secondary: #12355b;
  --secondary-dark: #0f2a43;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(18, 53, 91, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Bez šī mobilais Chrome patvaļīgi palielina dažu teksta bloku izmēru
     ("font boosting") atkarībā no konteinera platuma — vienāda CSS vērtība
     var izrenderēties dažādi lielos pikseļos dažādās vietās lapā. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(233, 105, 44, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(250, 247, 242, 0.34), rgba(255, 255, 255, 0.26));
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 20px;
}

/* Fons un izplūdums dzīvo pseidoelementā, nevis uz paša header. `backdrop-filter`
   uz vecākelementa izveido containing block, un tad .primary-nav ar
   position: fixed tiktu ierobežota header augstumā, nevis logā.

   Pseidoelements sniedzas 28px zem galvenes un tiek nomaskēts uz leju, tāpēc
   izgaist gan fons, gan izplūdums — apakšējā mala pāriet lapā bez līnijas. */
.site-header::before {
  position: absolute;
  inset: 0 0 -16px 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.8) 52%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0) 100%);
  content: "";
}

.logo-link {
  position: relative;
  z-index: 16;
  display: inline-flex;
  align-items: center;
  width: 92px;
  height: 48px;
}

.site-logo {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  position: relative;
  z-index: 16;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

/* Nesaukt šo par .call-button — tāda klase jau eksistē vecajam pilnplatuma
   "Zvanīt" pogas stilam ar width: 100%. */
.header-call {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--secondary);
  border-radius: var(--radius);
  transition: background 180ms ease;
}

.header-call:hover,
.header-call:focus-visible {
  background: var(--secondary-dark);
}

.header-call svg {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  position: relative;
  z-index: 16;
  display: inline-flex;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--secondary);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 96px 24px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 300ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 400ms cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 400ms;
}

.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.primary-nav a {
  padding: 18px 4px;
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(217, 222, 231, 0.9);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
}

.primary-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.primary-nav.is-open a:nth-child(1) {
  transition-delay: 60ms;
}

.primary-nav.is-open a:nth-child(2) {
  transition-delay: 110ms;
}

.primary-nav.is-open a:nth-child(3) {
  transition-delay: 160ms;
}

.primary-nav.is-open a:nth-child(4) {
  transition-delay: 210ms;
}

.primary-nav.is-open a:nth-child(5) {
  transition-delay: 260ms;
}

.primary-nav.is-open a:nth-child(6) {
  transition-delay: 310ms;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-dark);
}

/* Aktīvās lapas atzīme — izmanto vairāklapu navigācija (variant-b-*.html). */
.primary-nav a[aria-current="page"] {
  color: var(--accent-dark);
}

.primary-nav .nav-call {
  color: var(--accent-dark);
}

.primary-nav .nav-call:hover,
.primary-nav .nav-call:focus-visible {
  color: var(--secondary);
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav,
  .primary-nav a {
    transform: none;
    transition-duration: 120ms;
  }

  .primary-nav.is-open a {
    transition-delay: 0s;
  }
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 20px;
  /* Lipīgā galvene ir 72px, tās izgaišanas aste vēl 16px. Enkura mērķis jāliek
     zem tām abām, citādi sadaļas uzraksts nonāk aiz galvenes. */
  scroll-margin-top: 100px;
  --pcb-grid-line-x: rgba(18, 53, 91, 0.04);
  --pcb-grid-line-y: rgba(18, 53, 91, 0.035);
  --pcb-node: rgba(18, 53, 91, 0.09);
  --pcb-glow-main: rgba(233, 105, 44, 0.16);
  --pcb-glow-soft: rgba(18, 53, 91, 0.08);
  --pcb-glow-extra: rgba(233, 105, 44, 0.1);
  --pcb-glow-shadow: rgba(233, 105, 44, 0.1);
}

/* Īsām sadaļām (mazāk satura par vienu ekrānu): aizpilda skatu līdz apakšai,
   lai pēc navigācijas nākamā sadaļa nav redzama zem tās. 100px atbilst
   .section scroll-margin-top vērtībai — sadaļas augšmala tur nonāk pēc
   pārlēkšanas, tāpēc tikai tas, kas paliek līdz ekrāna apakšai, ir svarīgs. */
.section-fill {
  display: flex;
  align-items: center;
  /* -4px rezerve virs precīzās scroll-margin-top starpības, lai fontu
     renderēšanas noapaļošana nekad neatstāj nākamo sadaļu redzamu par
     daļēju pikseli ekrāna apakšā. */
  min-height: calc(100vh - 96px);
}

.section::before,
.section::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.section::before {
  opacity: 0.72;
  background-image:
    linear-gradient(90deg, var(--pcb-grid-line-x) 1px, transparent 1px),
    linear-gradient(0deg, var(--pcb-grid-line-y) 1px, transparent 1px),
    radial-gradient(circle, var(--pcb-node) 1px, transparent 2px);
  background-position: 0 0, 0 0, 14px 14px;
  background-size: 56px 56px, 56px 56px, 56px 56px;
}

.section::after {
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, transparent 0 18%, var(--pcb-glow-main) 18% 19%, transparent 19% 100%),
    linear-gradient(0deg, transparent 0 34%, var(--pcb-glow-soft) 34% 35%, transparent 35% 100%),
    linear-gradient(90deg, transparent 0 68%, var(--pcb-glow-extra) 68% 69%, transparent 69% 100%);
  background-size: 260px 180px, 210px 260px, 320px 220px;
  filter: drop-shadow(0 0 8px var(--pcb-glow-shadow));
  animation: pcbGlow 8s ease-in-out infinite alternate;
}

.section::before,
.section::after {
  display: none;
}

.section-muted {
  background: rgba(243, 244, 246, 0.86);
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  margin: 0 auto;
}

.hero {
  min-height: calc(88vh - 72px);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.72), rgba(255, 255, 255, 0.64));
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-greeting {
  font-size: clamp(1.625rem, 7vw, 3rem);
  letter-spacing: -0.03em;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-text,
.section-heading p:not(.eyebrow),
.call-inner p:not(.eyebrow) {
  /* :not(.eyebrow) — citādi šis "parasta teksta" izmērs uzvar pār .eyebrow
     specifiskumu (abi ir <p>) un padara sadaļu mazos uzrakstus lielākus. */
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(233, 105, 44, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--secondary);
  background: var(--white);
  border-color: var(--line);
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-panel div:nth-child(n + 3) {
  display: none;
}

.contact-panel div {
  display: grid;
  gap: 4px;
}

.contact-panel span,
.company-details dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-panel a,
.contact-panel p,
.company-details dd {
  color: var(--text);
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 14px;
}

.contact-section {
  background: rgba(255, 255, 255, 0.68);
  /* Kontakti nosaukumam jāparādās tieši aiz galvenes pēc izvēlnes klikšķa —
     sekcijas parastais 64px/96px augšas atkāpums šeit ir par lielu. */
  padding-top: 24px;
}

.contact-title {
  /* Bez šejienes font-size/color pārraksta — "Kontakti" ir eyebrow, kam
     jāizskatās tāpat kā "Par uzņēmumu", "Pakalpojumi", "Karjera". */
  max-width: 680px;
  margin-bottom: 28px;
}

.contact-layout {
  display: grid;
  gap: 34px;
}

.details-column,
.form-column {
  min-width: 0;
}

.details-column h3,
.form-column h3 {
  margin-bottom: 26px;
}

.details-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.details-title-row h3 {
  margin-bottom: 0;
}

.copy-details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--secondary);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.copy-details-button:hover,
.copy-details-button:focus-visible {
  color: var(--white);
  background: var(--secondary);
  border-color: var(--secondary);
}

.copy-details-button svg {
  width: 20px;
  height: 20px;
}

.copy-feedback {
  min-width: 72px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.company-details {
  display: grid;
  gap: 18px;
  margin: 0;
}

.company-details div {
  display: grid;
  gap: 4px;
}

.company-details dd {
  margin: 0;
}

.company-details a {
  color: var(--secondary);
}

.company-details-columns {
  gap: 10px;
}

.company-details-columns div {
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 18px;
}

.company-details-columns dt {
  overflow-wrap: anywhere;
}

.company-details-columns dd {
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  /* 120px ir šaurākais, kas vēl ietilpina garāko vārdu "Būvkomersanta" (116px).
     Atlikums vērtību kolonnai ļauj norēķinu kontam palikt vienā rindā. */
  .company-details-columns div {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 8px;
  }

  .company-details-columns dt,
  .company-details-columns dd {
    font-size: 0.94rem;
  }
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  color: var(--text);
  font-weight: 800;
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row > div {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  background: var(--white);
  border: 1px solid #aeb6c2;
  border-radius: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(233, 105, 44, 0.2);
  border-color: var(--accent);
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-weight: 700;
}

.submit-button {
  justify-self: stretch;
  min-width: 180px;
}

/* Divas klases, lai pārrakstītu .section polsterējumu arī platekrāna medijā. */
.section.section-map {
  padding: 0;
}

.map-canvas {
  height: 380px;
  background: var(--section);
  font: inherit;
}

/* Flīzes pieklusinātas, lai vienīgā krāsa kartē paliek BNC marķieris. */
.map-canvas .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.map-marker-pin {
  position: relative;
  display: block;
  width: 56px;
  height: 75px;
  color: var(--accent);
  filter: drop-shadow(0 8px 14px rgba(18, 53, 91, 0.32));
  transform-origin: 50% 100%;
  transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}

.map-marker-drop {
  display: block;
  width: 56px;
  height: 75px;
}

/* Galviņas centrs ir viewBox y=12 no 32, tātad 28px no augšas renderētajā izmērā.
   Logo ir fons, nevis <img>: Leaflet marķiera slānī attēliem tiek noņemts
   max-width, un tie izplešas dabiskajā izmērā. */
.map-marker-logo {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 34px;
  height: 27px;
  background: url("assets/LOGO_BNC_transparent.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
}

.map-marker:hover .map-marker-pin,
.map-marker:focus-visible .map-marker-pin {
  transform: scale(1.06);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  width: auto !important;
  margin: 12px 14px;
}

.map-popup {
  display: grid;
  gap: 2px;
}

/* Leaflet uzliek .leaflet-popup-content p { margin: 18px 0 }, kas ir specifiskāks
   par lapas globālo p { margin: 0 }. Atsaucam to atpakaļ. */
.map-popup p {
  margin: 0;
}

.map-popup-title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.map-popup-address {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.map-popup-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-popup-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.map-popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.map-popup-link:hover,
.map-popup-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(18, 53, 91, 0.14);
}

.map-popup-logo-waze,
.map-popup-logo-google {
  width: auto;
  height: 28px;
}

.section-call {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-margin-top: 100px;
  /* "Pieteikt bojājumu!" jāparādās tieši aiz galvenes pēc izvēlnes klikšķa —
     tāpat kā Kontakti (.contact-section), parastais 64px/96px ir par lielu.
     10px = par vienu teksta rindu (~13.5px) augstāk nekā Kontakti. */
  padding-top: 10px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 22%, rgba(233, 105, 44, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(15, 42, 67, 0.86) 0%, rgba(11, 34, 56, 0.86) 55%, rgba(16, 47, 77, 0.86) 100%);
}

.section-call::before,
.section-call::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.section-call::before {
  opacity: 0.52;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 2px);
  background-position: 0 0, 0 0, 14px 14px;
  background-size: 56px 56px, 56px 56px, 56px 56px;
}

.section-call::after {
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, transparent 0 18%, rgba(233, 105, 44, 0.7) 18% 19%, transparent 19% 100%),
    linear-gradient(0deg, transparent 0 34%, rgba(233, 105, 44, 0.42) 34% 35%, transparent 35% 100%),
    linear-gradient(90deg, transparent 0 68%, rgba(255, 178, 140, 0.5) 68% 69%, transparent 69% 100%);
  background-size: 260px 180px, 210px 260px, 320px 220px;
  filter: drop-shadow(0 0 8px rgba(233, 105, 44, 0.35));
  animation: pcbGlow 8s ease-in-out infinite alternate;
}

.section-call .section-inner {
  position: relative;
  z-index: 1;
}

.section-call .eyebrow {
  color: #ffb28c;
}

.section-call p {
  color: rgba(255, 255, 255, 0.78);
}

.call-inner {
  display: grid;
  gap: 24px;
}

.call-inner > div {
  display: grid;
  gap: 12px;
}

.call-button {
  width: 100%;
}

.call-form-layout {
  align-items: start;
}

.call-form {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

/* "Pieteikt bojājumu!" ir šīs sekcijas nosaukums — pēc formas jāsakrīt ar
   pārējo sekciju eyebrow uzrakstiem (PAR UZŅĒMUMU, PAKALPOJUMI, KARJERA). */
.call-form-title {
  color: var(--accent);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.call-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.call-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.call-form input,
.call-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: var(--white);
  border: 1px solid #aeb6c2;
  border-radius: 0;
}

.call-form textarea {
  resize: vertical;
}

.call-form input:focus,
.call-form textarea:focus {
  outline: 3px solid rgba(233, 105, 44, 0.22);
  border-color: var(--accent);
}

.call-form input::placeholder,
.call-form textarea::placeholder {
  color: #7f8a99;
  opacity: 1;
  font-weight: 600;
}

.call-form input:focus::placeholder,
.call-form textarea:focus::placeholder {
  color: transparent;
}

.client-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 12;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.client-suggestions.is-open {
  display: grid;
}

.client-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.client-suggestion:last-child {
  border-bottom: 0;
}

.client-suggestion:hover,
.client-suggestion:focus-visible {
  background: var(--section);
}

.client-suggestion strong {
  font: inherit;
  font-weight: 800;
}

.client-suggestion span,
.client-suggestions-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.client-suggestions-empty {
  padding: 12px;
}

.call-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-weight: 800;
}

.call-submit {
  width: 100%;
}

@media (max-width: 700px) {
  .particles-bg {
    background:
      radial-gradient(circle at 18% 18%, rgba(233, 105, 44, 0.03), transparent 30%),
      linear-gradient(180deg, rgba(250, 247, 242, 0.18), rgba(255, 255, 255, 0.12));
  }

  .section-muted {
    background: rgba(243, 244, 246, 0.66);
  }

  .hero {
    background: linear-gradient(180deg, rgba(250, 247, 242, 0.5), rgba(255, 255, 255, 0.42));
  }

  .contact-section {
    background: rgba(255, 255, 255, 0.48);
  }

  .section-call {
    background:
      radial-gradient(circle at 18% 22%, rgba(233, 105, 44, 0.16), transparent 28%),
      linear-gradient(135deg, rgba(15, 42, 67, 0.76) 0%, rgba(11, 34, 56, 0.76) 55%, rgba(16, 47, 77, 0.76) 100%);
  }

  .contact-panel,
  .call-form {
    background: rgba(255, 255, 255, 0.86);
  }
}

@keyframes pcbGlow {
  0% {
    opacity: 0.18;
    transform: translate3d(-18px, 0, 0);
  }

  45% {
    opacity: 0.56;
  }

  100% {
    opacity: 0.34;
    transform: translate3d(18px, 12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section::after {
    animation: none;
  }
}

.site-footer {
  padding: 28px 20px;
  background: var(--text);
  color: var(--white);
}

.footer-inner {
  display: grid;
  gap: 8px;
}

.footer-inner p {
  font-weight: 800;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 620px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .button-secondary,
  .button-primary {
    min-width: 164px;
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .call-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px;
  }

  .call-field-wide,
  .client-lookup-field,
  .call-form-title,
  .call-status,
  .call-submit {
    grid-column: 1 / -1;
  }

  .submit-button {
    justify-self: center;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 4.2rem;
  }

  .hero-greeting {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .site-header {
    min-height: 84px;
    padding: 16px 48px;
  }

  .logo-link,
  .site-logo {
    width: 120px;
    height: 56px;
  }

  .menu-toggle,
  .header-call {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .primary-nav a,
  .primary-nav.is-open a {
    padding: 10px 12px;
    font-size: 0.92rem;
    letter-spacing: 0;
    border-bottom: 0;
    border-radius: var(--radius);
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }

  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    color: var(--text);
    background: var(--section);
  }

  .primary-nav .nav-call {
    color: var(--accent-dark);
  }

  .primary-nav .nav-call:hover,
  .primary-nav .nav-call:focus-visible {
    color: var(--accent-dark);
    background: var(--section);
  }

  .section {
    padding: 96px 48px;
    /* Platekrānā galvene ir 84px augsta. */
    scroll-margin-top: 112px;
  }

  /* "padding: 96px 48px" iepriekš atiestata arī padding-top uz Kontakti un
     Pieteikt bojājumu — jāuzstāda vēlreiz, jo šis bloks nāk vēlāk avotā un
     citādi to pārraksta. */
  .contact-section {
    padding-top: 24px;
  }

  .section-call {
    padding-top: 10px;
  }

  .section-fill {
    min-height: calc(100vh - 108px);
  }

  .hero {
    min-height: calc(86vh - 84px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }

  .map-canvas {
    height: 460px;
  }

  .contact-panel {
    padding: 28px;
  }

  .contact-panel div:nth-child(n + 3) {
    display: grid;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
    gap: 70px;
    align-items: start;
  }

  .call-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .call-form-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    max-width: 920px;
  }

  .call-button {
    width: auto;
    min-width: 210px;
  }
}

@media (min-width: 1120px) {
  .primary-nav a {
    padding-inline: 14px;
  }
}
