:root {
  --bg: #071a3a;
  --surface: #0d2a59;
  --surface-soft: #12346d;
  --text: #f1f6ff;
  --muted: #c5d4ef;
  --primary: #4a8cff;
  --primary-dark: #2f72ea;
  --border: #2a4f8f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 8, 20, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background-image: radial-gradient(circle at 10% 0%, #123a7c 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, #0c2f66 0%, transparent 40%);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 26, 58, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #0b2552;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: #d7e6ff;
}

.btn-small {
  padding: 8px 12px;
}

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: center;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.14;
}

h2 {
  margin: 0 0 10px;
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  line-height: 1.26;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card,
.info-card,
.detail-section,
.order-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(19, 52, 109, 0.94), rgba(13, 42, 89, 0.94));
}

.hero-card,
.info-card,
.detail-section {
  padding: 18px;
}

.hero-card ul,
.detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}


.section {
  padding: 52px 0;
}

.section-alt {
  background: #0a2450;
}

.campaign-highlight {
  background: linear-gradient(180deg, rgba(10, 36, 80, 0.95), rgba(7, 26, 58, 0.98));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.campaign-highlight .info-card {
  background: linear-gradient(180deg, rgba(23, 63, 130, 0.95), rgba(13, 42, 89, 0.95));
}

.campaign-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.section-head {
  margin-bottom: 18px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.section-head.left {
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.spec-table th {
  color: #e9f2ff;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

.order-form {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.order-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  margin: 0;
  min-height: 1.35em;
  font-size: 0.95rem;
}

.form-status--success {
  color: #7dd3a0;
}

.form-status--error {
  color: #fca5a5;
}

.form-note__sep {
  margin: 0 0.35em;
  color: var(--muted);
}

.form-note--dim {
  font-size: 0.75rem;
  color: #4a6a9a;
  line-height: 1.5;
}

.form-note--dim a {
  color: #4a6a9a;
  text-decoration: underline;
}

.form-consent-notice {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-consent-notice a {
  color: var(--primary);
  text-decoration: underline;
}

.turnstile-slot {
  margin: 6px 0 4px;
  min-height: 0;
}

.turnstile-slot:not([hidden]) {
  min-height: 65px;
}

/* Suletud <dialog> peab jääma nähtamatuks; display:grid ilma [open] rikuks brauseri vaikimisi peidu. */
.privacy-modal:not([open]) {
  display: none;
}

.privacy-modal[open] {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  margin: 0;
  padding: 20px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.privacy-modal::backdrop {
  background: rgba(3, 12, 28, 0.78);
  backdrop-filter: blur(4px);
}

.privacy-modal__panel {
  position: relative;
  width: min(640px, calc(100vw - 40px));
  max-height: min(85vh, 880px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(19, 52, 109, 0.98), rgba(13, 42, 89, 0.98));
  color: var(--text);
  overflow: hidden;
}

.privacy-modal__header {
  position: relative;
  padding: 20px 48px 12px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.privacy-modal__header .eyebrow {
  margin: 0 0 6px;
}

.privacy-modal__header h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  line-height: 1.3;
  padding-right: 8px;
}

.privacy-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__close:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.privacy-modal__body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-modal__body p {
  margin: 0 0 1rem;
}

.privacy-modal__body p:last-child {
  margin-bottom: 0;
}

.privacy-modal__body a {
  color: var(--primary);
}

.thanks-section {
  scroll-margin-top: 88px;
}

.thanks-actions {
  margin: 1rem 0 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 24, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-box h2 {
  margin: 0 0 28px;
  font-size: 1.4rem;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-soft);
}

@media (max-width: 600px) {
  .modal-box {
    padding: 24px 20px;
  }
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.privacy-grid h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 6px;
}

.privacy-grid h4:first-child {
  margin-top: 0;
}

.privacy-grid p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}

.privacy-grid a {
  color: var(--primary);
}

@media (max-width: 680px) {
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #061733;
}

.footer-grid {
  padding: 52px 0 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-legal {
  margin-top: 10px !important;
  font-size: 0.78rem !important;
  opacity: 0.6;
}

.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-bottom span {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Seadmekaardid ── */
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.device-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(19, 52, 109, 0.94), rgba(13, 42, 89, 0.94));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.device-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.device-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b2250;
  border-bottom: 1px solid var(--border);
}

.device-card__img--logo {
  object-fit: contain;
  background: #f0f4ff;
  padding: 28px 36px;
}

.device-card__img--logo-dark {
  object-fit: contain;
  background: #0b2250;
  padding: 28px 36px;
}

.device-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0d2455 0%, #071a3a 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.device-card__placeholder svg {
  opacity: 0.45;
}

.device-card__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(74, 140, 255, 0.12);
  border: 1px solid rgba(74, 140, 255, 0.3);
  border-radius: 6px;
  padding: 3px 9px;
  width: fit-content;
}

.device-badge--grade {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.device-badge--partner {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.device-card__body h3 {
  color: var(--text);
  font-size: 1.05rem;
}

.device-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.device-tag {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
}

/* ── Accordion ── */
.device-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.device-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.device-details summary::-webkit-details-marker { display: none; }

.device-details summary::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.18s;
  display: inline-block;
}

.device-details[open] summary::before {
  transform: rotate(90deg);
}

.device-details__content {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.device-details__content ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  display: grid;
  gap: 4px;
}

.device-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.device-spec-table td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  color: var(--muted);
  vertical-align: top;
}

.device-spec-table td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  width: 38%;
}

@media (max-width: 980px) {
  .hero-grid,
  .order-layout,
  .feature-grid,
  .footer-grid,
  .device-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 56px 0 30px;
  }

  .section {
    padding: 38px 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 4vw;
    left: 4vw;
    background: #0a2450;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .spec-table {
    display: block;
    overflow-x: auto;
  }

  .spec-table th,
  .spec-table td {
    white-space: normal;
    min-width: 120px;
    font-size: 0.82rem;
  }
}
