:root {
  --navy:   #0d1b2e;
  --navy2:  #142338;
  --navy3:  #1a2f47;
  --accent: #4a9eff;
  --accent2:#2979d4;
  --gray:   #b0bec5;
  --light:  #dce8f0;
  --white:  #ffffff;
  --dot:    rgba(74,158,255,0.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--navy);
  color: var(--light);
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,27,46,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,158,255,0.12);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* Search */
.search-wrap {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.search-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 8px;
  padding: 7px 36px 7px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--light);
  outline: none;
  transition: border-color 0.2s;
}
.search-wrap input::placeholder { color: rgba(176,190,197,0.5); }
.search-wrap input:focus { border-color: var(--accent); }
.search-icon {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--navy2);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
}
.search-results.visible { display: block; }
.search-result-item {
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(74,158,255,0.1); }
.search-result-item b { color: var(--accent); }
.no-results {
  padding: 12px 14px;
  font-size: 15px;
  color: var(--gray);
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 6px;
  color: var(--gray);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/906494/pexels-photo-906494.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--navy) 0%, transparent 30%, transparent 70%, var(--navy) 100%);
}
.hero-content {
  position: relative;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 20px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(176,190,197,0.35);
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ── MAP SECTION ── */
.map-section {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 19px;
  font-weight: 300;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.map-card {
  background: var(--navy2);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.map-wrap {
  width: 100%;
  aspect-ratio: 800 / 460;
  position: relative;
  overflow: hidden;
}
.map-wrap canvas, .map-wrap svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.map-wrap svg { pointer-events: all; }
.map-wrap::before, .map-wrap::after {
  content: ''; position: absolute;
  left: 0; right: 0; height: 18%; z-index: 2; pointer-events: none;
}
.map-wrap::before { top: 0; background: linear-gradient(to bottom, var(--navy2), transparent); }
.map-wrap::after  { bottom: 0; background: linear-gradient(to top, var(--navy2), transparent); }

/* ── ZOOM / CITY PANEL ── */
.map-wrap { cursor: default; }
.map-wrap.zoomed { cursor: default; }

#city-panel {
  position: absolute;
  top: 12px; right: 12px;
  width: min(300px, 90%);
  background: rgba(13,27,46,0.97);
  border: 1px solid rgba(74,158,255,0.28);
  border-radius: 14px;
  padding: 20px;
  z-index: 10;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  backdrop-filter: blur(16px);
}
#city-panel.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.cp-city-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.cp-close-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 8px;
  color: var(--gray);
  font-family: inherit;
  font-size: 13px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cp-close-btn:hover { background: rgba(74,158,255,0.22); color: #fff; }
.cp-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.cp-point {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cp-point:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cp-point-num {
  width: 24px; height: 24px;
  background: rgba(74,158,255,0.15);
  border: 1px solid rgba(74,158,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent);
  flex-shrink: 0; margin-top: 1px;
}
.cp-point-body { flex: 1; }
.cp-row {
  display: flex;
  gap: 6px;
  margin-bottom: 5px;
  align-items: baseline;
}
.cp-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(176,190,197,0.55);
  flex-shrink: 0;
  min-width: 60px;
}
.cp-value {
  font-size: 13px;
  font-weight: 400;
  color: var(--light);
  line-height: 1.4;
}
.cp-phone {
  color: var(--accent);
  text-decoration: none;
}
.cp-phone:hover { text-decoration: underline; }



/* City list */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.city-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.18);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 16px;
  color: var(--light);
}
.city-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.city-chip.capital {
  background: rgba(74,158,255,0.15);
  border-color: rgba(74,158,255,0.4);
  color: var(--white);
  font-weight: 600;
}
.city-chip.capital .city-chip-dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── SEND PAGE ── */
#send-page {
  display: none;
  min-height: 100vh;
  padding: 80px 24px 60px;
}
#send-page.visible { display: block; }
#main-page.hidden { display: none; }

.send-container {
  max-width: 800px;
  margin: 0 auto;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 40px;
  transition: color 0.15s;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}
.back-btn:hover { color: var(--accent); }

.send-hero {
  margin-bottom: 56px;
}
.send-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.send-hero p {
  font-size: 19px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.info-card {
  background: var(--navy2);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 16px;
  padding: 28px;
}
.info-card-icon {
  width: 44px; height: 44px;
  background: rgba(74,158,255,0.12);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.info-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.info-card p, .info-card li {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
}
.info-card ul {
  padding-left: 16px;
}
.info-card li { margin-bottom: 4px; }

.send-img-banner {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.7;
  margin-bottom: 32px;
  display: block;
}

.steps {
  counter-reset: step;
}
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.step:last-child { border-bottom: none; margin-bottom: 0; }
.step-num {
  counter-increment: step;
  width: 36px; height: 36px;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.step-num::before { content: counter(step); }
.step-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.step-body p {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}

/* ── TRANSLATIONS ── */
[data-lang] { display: none; }
[data-lang="lv"] { display: block; }
span[data-lang] { display: inline; }
span[data-lang]:not([data-lang="lv"]) { display: none; }

/* ── HIGHLIGHT ── */
.search-highlight {
  background: rgba(74,158,255,0.3);
  border-radius: 2px;
  padding: 0 2px;
}

/* ── FEATURES SECTION ── */
.features-section {
  padding: 80px 24px;
  background: var(--navy2);
  border-top: 1px solid rgba(74,158,255,0.08);
}
.features-container {
  max-width: 960px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--navy);
  border: 1px solid rgba(74,158,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(74,158,255,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(74,158,255,0.1);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 500px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.15s;
}
a.footer-link:hover { color: var(--accent); }
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: rgba(176,190,197,0.45);
}
