:root {
  --bg: #ffffff;
  --soft: #f3f9ff;
  --soft-2: #eaf6ff;
  --text: #14314d;
  --muted: #5f7890;
  --brand: #0f7bc2;
  --brand-dark: #075f99;
  --accent: #33a6df;
  --border: #dbeaf5;
  --shadow: 0 20px 60px rgba(20, 49, 77, .11);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,234,245,.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-right: auto;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a {
  color: #2e4a63;
}

.language-switch {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--brand);
  color: white;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--soft);
  color: var(--text);
  font-size: 24px;
  border-radius: 12px;
  padding: 8px 12px;
}

.section,
.hero {
  padding: 92px 0;
}

.section-soft {
  background:
    radial-gradient(circle at 10% 10%, rgba(51,166,223,.17), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f2f9ff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -.045em;
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 74px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-lead,
.section-head p,
.tech-grid p,
.field p,
.core-message p {
  color: var(--muted);
  font-size: 18px;
}

.hero-tagline {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 14px 32px rgba(15,123,194,.25);
}

.btn.secondary {
  background: white;
  color: var(--brand);
  border-color: var(--border);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.visual-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}

.visual-card.big {
  grid-column: span 2;
}

.visual-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
}

.visual-card.big img {
  height: 270px;
}

.visual-card figcaption {
  padding: 14px 18px 18px;
  font-weight: 850;
  color: var(--text);
}

.core-message {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.message-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 48px);
}

.message-icon {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: white;
  font-size: 70px;
  font-weight: 900;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.solution-card,
.service-card,
.stat-card,
.contact-form,
.image-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(20, 49, 77, .08);
}

.solution-card {
  padding: 28px;
}

.solution-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--soft-2);
  color: var(--brand);
  font-weight: 950;
  margin-bottom: 20px;
}

.solution-card p,
.service-card p,
.stat-card span,
.form-note {
  color: var(--muted);
}

.tech-grid,
.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 48px;
  align-items: center;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 750;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 950;
}

.image-panel {
  overflow: hidden;
  padding: 12px;
}

.image-panel img {
  border-radius: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 26px;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--soft-2);
  border-radius: 18px;
  margin-bottom: 18px;
  font-size: 25px;
}

.stat-card {
  padding: 34px;
  background: linear-gradient(135deg, white, #eef8ff);
}

.stat-card strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -.03em;
}

.contact-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(51,166,223,.16), transparent 30%),
    #fff;
}

address {
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
  margin: 22px 0;
}

.contact-form {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fbfdff;
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}

textarea { resize: vertical; }

.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 13px;
  margin: 0;
}

.site-footer {
  padding: 28px 0;
  background: #0e2942;
  color: rgba(255,255,255,.82);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 20px;
  }
  .main-nav.open { display: flex; }
  .hero-grid,
  .tech-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .solution-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .message-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section, .hero { padding: 64px 0; }
  .nav-wrap { min-height: 72px; }
  .brand span { font-size: 15px; }
  .brand img { width: 44px; height: 44px; }
  .language-switch { margin-left: auto; }
  .hero-visual,
  .solution-grid,
  .service-grid,
  .check-list,
  .contact-form {
    grid-template-columns: 1fr;
  }
  .visual-card.big { grid-column: auto; }
  .footer-wrap {
    flex-direction: column;
  }
}

/* ---- v2 additions ---- */

/* Heritage facts */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.fact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(20, 49, 77, .08);
  padding: 28px;
}
.fact-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  color: var(--text);
}
.fact-card span { color: var(--muted); }

/* Single-column check list variant */
.check-list.one-col { grid-template-columns: 1fr; }

/* goRAN / Ubiik partner card */
.partner-card {
  background: linear-gradient(135deg, white, #eef8ff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(20, 49, 77, .08);
  padding: 34px;
  text-align: center;
}
.partner-logo {
  max-width: 220px;
  margin: 8px auto 18px;
}
.partner-note { color: var(--muted); margin: 0; }

/* Honeypot hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form status message */
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}
.form-status.ok { color: #1a7f4b; }
.form-status.err { color: #c0392b; }

@media (max-width: 980px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fact-grid { grid-template-columns: 1fr; }
}
