/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #2563eb; --brand-light: #eff6ff; --brand-border: #bfdbfe;
  --dark: #0f172a; --gray: #64748b; --light: #f8fafc; --border: #e2e8f0;
  --radius: 12px; --shadow: 0 4px 20px rgba(0,0,0,.06);
}
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: #fff; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; }

/* ── Utilities ── */
.text-brand { color: var(--brand); }
.text-muted  { color: var(--gray); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s; border: none; font-family: inherit; text-decoration: none;
}
.btn-primary  { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.28); }
.btn-primary:hover  { background: #1d4ed8; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--dark); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: #94a3b8; background: var(--light); }
.btn-danger   { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Badge ── */
.badge-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: #1d4ed8;
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--brand-border);
}
.auto-hint {
  display: inline-flex; align-items: center;
  font-size: 10px; background: #dbeafe; color: #1d4ed8;
  padding: 2px 7px; border-radius: 999px; font-weight: 600;
  margin-left: 6px; vertical-align: middle;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
}
.nav-inner { max-width: 1100px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--dark); }
.logo-icon { width: 32px; height: 32px; background: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--gray); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--dark); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.nav-phone { font-size: 13px; color: var(--gray); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 80px 24px 60px; background: #fff; }
.hero-bg { display: none; }
.hero-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: #1d4ed8; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand-border); margin-bottom: 20px; }
h1 { font-size: 52px; font-weight: 800; line-height: 1.08; margin-bottom: 20px; letter-spacing: -2px; }
h1 .text-brand { color: var(--brand); }
.hero-desc { font-size: 18px; color: var(--gray); line-height: 1.7; margin-bottom: 32px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #1e293b; }
.feature-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

/* ── Hero kaardid (3-blokk mockup) ── */
.hero-mockup { display: flex; justify-content: center; align-items: center; }
.hero-mockup-img {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* ── Calculator ── */
.calc-section { background: var(--light); padding: 80px 32px 40px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.section-header p  { font-size: 16px; color: var(--gray); }
.calc-wrap { max-width: 900px; margin: 0 auto; }

/* Progress */
.progress-bar { display: flex; align-items: center; margin-bottom: 24px; }
.p-item { display: flex; align-items: center; gap: 8px; }
.p-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; transition: all .3s; }
.p-done   { background: var(--brand); color: #fff; border: 2px solid var(--brand); }
.p-active { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.p-todo   { background: #fff; color: var(--gray); border: 2px solid var(--border); }
.p-label  { font-size: 13px; font-weight: 500; }
.p-line   { flex: 1; height: 2px; background: var(--border); margin: 0 10px; border-radius: 1px; overflow: hidden; }
.p-fill   { height: 100%; background: var(--brand); transition: width .5s; border-radius: 1px; }

.card { background: #fff; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 32px; }
.step-nav { display: flex; justify-content: space-between; margin-top: 16px; }

/* Object step */
.obj-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 24px; }
.obj-btn { padding: 14px 10px; border-radius: 12px; border: 2px solid var(--border); background: #fff; cursor: pointer; text-align: left; transition: all .15s; font-family: inherit; }
.obj-btn.active { border-color: var(--brand); background: var(--brand-light); }
.obj-icon { font-size: 20px; margin-bottom: 6px; }
.obj-name { font-weight: 600; font-size: 13px; }
.obj-desc { font-size: 11px; color: var(--gray); }

/* Sliders */
.sliders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.slider-wrap label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.slider-wrap label .val { color: var(--brand); }
input[type=range] { width: 100%; accent-color: var(--brand); }
.slider-hints { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray); margin-top: 4px; }

/* Contract */
.contract-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.contract-btns  { display: flex; gap: 10px; }
.contract-btn   { flex: 1; padding: 12px 8px; border-radius: 12px; border: 2px solid var(--border); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; position: relative; transition: all .15s; font-family: inherit; }
.contract-btn.active { border-color: var(--brand); background: var(--brand-light); color: #1d4ed8; }
.c-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* Devices */
.devices-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.live-price { text-align: right; background: var(--brand-light); border-radius: 12px; padding: 10px 16px; border: 1px solid var(--brand-border); flex-shrink: 0; margin-left: 16px; }
.lp-lbl { font-size: 11px; color: var(--brand); font-weight: 600; }
.lp-val { font-size: 26px; font-weight: 800; color: #1d4ed8; }
.devices-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.device-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--border); background: #fff; transition: all .15s; }
.device-row.sel { border-color: #93c5fd; background: var(--brand-light); }
.d-name { font-weight: 500; font-size: 14px; }
.device-row.sel .d-name { color: #1d4ed8; }
.d-meta { font-size: 11px; color: var(--gray); margin-top: 2px; }
.qty-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.qty-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #93c5fd; background: #fff; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 700; font-family: inherit; }
.qty-add { border: none; background: var(--border); color: var(--gray); }
.qty-add.has { background: var(--brand); color: #fff; }
.qty-num { width: 20px; text-align: center; font-weight: 700; color: var(--brand); }

/* Price summary */
.price-summary { border-top: 1px solid var(--border); padding-top: 14px; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.price-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-top: 8px; }
.price-total .pt-val { color: var(--brand); }

/* Address */
.addr-input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--border); font-size: 15px; outline: none; transition: border .15s; font-family: inherit; }
.addr-input:focus { border-color: var(--brand); }
.info-box { margin-top: 16px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; font-size: 13px; color: #1e40af; }

/* Result */
.result-header { display: flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; margin-bottom: 20px; font-size: 15px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.rc { border-radius: 18px; padding: 20px; }
.rc.main { background: var(--brand-light); border: 1px solid var(--brand-border); }
.rc.sec  { background: var(--light); border: 1px solid var(--border); }
.rc-lbl  { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rc-val  { font-size: 36px; font-weight: 800; margin-bottom: 2px; }
.install-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); background: var(--light); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; }

/* How it works */
.how-section { background: #fff; padding: 80px 32px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1100px; margin: 0 auto; }
.how-card { background: #fff; border: 2px solid #2563eb; border-radius: 18px; padding: 24px; box-shadow: 0 4px 14px rgba(37,99,235,.10); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; will-change: transform; }
.how-card:hover { transform: translateY(-4px); border-color: #1e40af; box-shadow: 0 14px 30px rgba(37,99,235,.18); }
.how-card-inner { display: flex; gap: 16px; align-items: flex-start; }
.how-icon { width: 48px; height: 48px; background: var(--brand-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.how-step { font-size: 10px; font-weight: 700; color: var(--brand); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.how-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.how-desc { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* Footer */
.footer { background: #0f172a; color: #94a3b8; padding: 48px 32px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-logo-icon { width: 28px; height: 28px; background: var(--brand); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.footer h4 { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer p, .footer a { font-size: 13px; line-height: 1.8; color: #94a3b8; text-decoration: none; display: block; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 20px; font-size: 12px; text-align: center; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.modal-title { font-weight: 700; font-size: 17px; }
.modal-sub   { font-size: 13px; color: var(--gray); margin-top: 2px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray); padding: 4px; }
.modal-body  { flex: 1; overflow-y: auto; padding: 24px; }

/* Slot buttons */
.slot-btn { padding: 12px 14px; border-radius: 12px; border: 2px solid var(--border); background: #fff; text-align: left; cursor: pointer; transition: all .15s; font-family: inherit; width: 100%; }
.slot-btn.active { border-color: var(--brand); background: var(--brand-light); }
.slot-time { font-weight: 600; font-size: 14px; }
.slot-installer { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* Bank buttons */
.bank-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--border); background: #fff; cursor: pointer; font-weight: 500; font-size: 14px; margin-bottom: 8px; transition: all .15s; font-family: inherit; }
.bank-btn:hover { border-color: var(--brand); background: var(--brand-light); }

/* Form inputs (in modal) */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--border); font-size: 14px; outline: none; transition: border .15s; font-family: inherit; box-sizing: border-box; }
.form-group input:focus { border-color: var(--brand); }

.sliders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 24px; }
.counter-wrap { background: var(--light); border-radius: 14px; padding: 14px 16px; border: 1px solid var(--border); }
.counter-label { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 12px; }
.counter-ctrl { display: flex; align-items: center; gap: 0; }
.counter-btn {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 20px; font-weight: 400; line-height: 1;
  cursor: pointer; color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.counter-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.counter-btn:disabled { opacity: .35; cursor: not-allowed; }
.counter-val {
  flex: 1; text-align: center;
  font-size: 24px; font-weight: 800; color: var(--dark);
}

/* ── Maja illustratsioon ── */
.house-section { padding: 80px 32px; background: #f8f7f4; }
.house-map-wrap { position: relative; max-width: 900px; margin: 0 auto; }
.house-img { width: 100%; display: block; border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,.12); }

.house-hotspot {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 4px 16px rgba(22,163,74,.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform .18s, box-shadow .18s;
  z-index: 10;
}
.house-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 8px 28px rgba(22,163,74,.6);
}
.hotspot-img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.hotspot-icon { display: flex; align-items: center; justify-content: center; }
.hotspot-pulse {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid #2563eb; opacity: 0;
  animation: hpulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes hpulse { 0%{transform:scale(1);opacity:.65} 100%{transform:scale(1.7);opacity:0} }

.house-hotspot[data-pos="1"]  { top: 22%; left: 25%; }
.house-hotspot[data-pos="2"]  { top: 55%; left: 32%; }
.house-hotspot[data-pos="3"]  { top: 18%; left: 62%; }
.house-hotspot[data-pos="4"]  { top: 42%; left: 75%; }
.house-hotspot[data-pos="5"]  { top: 68%; left: 58%; }
.house-hotspot[data-pos="6"]  { top: 72%; left: 78%; }
.house-hotspot[data-pos="7"]  { top: 80%; left: 42%; }
.house-hotspot[data-pos="8"]  { top: 38%; left: 48%; }
.house-hotspot[data-pos="9"]  { top: 12%; left: 45%; }
.house-hotspot[data-pos="10"] { top: 58%; left: 18%; }



/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE – Hamburgeri menüü + kõik elemendid
   ══════════════════════════════════════════════════════════════ */

/* Hamburgeri nupp - peidetud lauaarvutil */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menüü overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 98;
}
.nav-mobile-overlay.open { display: block; }

/* ── Tablet (max 1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-phone { display: none; }
  h1 { font-size: 42px; }
  .hero-inner { gap: 32px; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (max 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

  /* Navbar */
  .navbar { padding: 0 16px; height: 56px; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-right { gap: 8px; }
  .nav-phone { display: none; }
  .lang-switcher { gap: 2px; }
  .lang-btn { padding: 3px 6px; font-size: 11px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 16px 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-mockup { order: -1; }
  .hero-mockup-img { max-width: 100%; max-height: 260px; object-fit: contain; }
  h1 { font-size: 32px; letter-spacing: -1px; margin-bottom: 14px; }
  .hero-desc { font-size: 15px; margin-bottom: 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature { font-size: 12px; }
  .feature-icon { width: 32px; height: 32px; font-size: 14px; }

  /* Kalkulaator */
  .calc-section { padding: 32px 12px 24px; }
  .section-header h2 { font-size: 26px; }
  .section-header p { font-size: 14px; }
  .card { padding: 16px; border-radius: 16px; }
  .obj-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .obj-btn { padding: 10px 8px; }
  .sliders-grid { grid-template-columns: 1fr; gap: 12px; }
  .contract-btns { flex-direction: column; gap: 8px; }
  .contract-btn { padding: 10px; }
  .devices-header { flex-direction: column; gap: 10px; }
  .live-price { width: 100%; margin-left: 0; text-align: center; }
  .result-grid { grid-template-columns: 1fr; }
  .rc-val { font-size: 28px; }

  /* Progress bar */
  .p-label { display: none; }
  .p-circle { width: 28px; height: 28px; font-size: 11px; }
  .p-line { margin: 0 4px; }

  /* Kalkulaatori sammud */
  .step-nav { flex-direction: column; gap: 8px; }
  .step-nav .btn { width: 100%; justify-content: center; }

  /* How it works */
  .how-section { padding: 40px 16px; }
  .how-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Footer */
  .footer { padding: 32px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Modal */
  .modal { max-height: 95vh; border-radius: 20px 20px 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }

  /* Hotspot */
  .house-hotspot { width: 40px; height: 40px; border-width: 2px; }
  .hotspot-img { width: 26px; height: 26px; }
  .house-section { padding: 40px 16px; }
}

/* ── Väike mobiil (max 400px) ────────────────────────────────── */
@media (max-width: 400px) {
  h1 { font-size: 26px; }
  .card { padding: 12px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .obj-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Keelevahetaja desktop/mobile ───────────────────────────────── */
.lang-mobile { display: none; position: relative; }
.lang-desktop { display: flex; gap: 4px; }
.lang-mobile-btn {
  background: var(--light); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; color: var(--dark);
}
.lang-mobile-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 80px; overflow: hidden;
  z-index: 200;
}
.lang-mobile.open .lang-mobile-dropdown { display: block; }
.lang-mobile-dropdown a {
  display: block; padding: 10px 16px; font-size: 13px; font-weight: 600;
  color: var(--dark); text-decoration: none;
}
.lang-mobile-dropdown a:hover { background: var(--light); }
.lang-mobile-dropdown a.active { color: var(--brand); background: var(--brand-light); }

@media (max-width: 768px) {
  .lang-desktop { display: none; }
  .lang-mobile { display: block; }
  .nav-calc-btn { display: none; }

  /* Seadmete rida ilma pildita - kompaktsem */
  .device-row { padding: 10px 12px; }
  .dr-name { font-size: 13px; }
  .d-meta { font-size: 10px; }
  .qty-btn { width: 32px; height: 32px; }
}

/* ── Desktop/Mobile show-hide ────────────────────────────────── */
.mobile-only { display: none !important; }
.desktop-only { display: block; }

/* ── Mobile device kaardid ───────────────────────────────────── */
.mobile-devices-grid {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  max-width: 480px;
  margin: 0 auto;
}
.mob-device-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: opacity .15s;
}
.mob-device-card:first-child { border-top: 1px solid #f1f5f9; }
.mob-device-card:active { opacity: .7; }
.mob-device-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mob-device-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mob-device-img--placeholder { font-size: 26px; }
.mob-device-info { flex: 1; padding: 0; }
.mob-device-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
  line-height: 1.3;
}
.mob-device-cta {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.mob-device-arrow {
  font-size: 20px;
  color: #cbd5e1;
  font-weight: 300;
}

/* Hero mobiilis - pilt alla teksti */
@media (max-width: 768px) {
  .mobile-only { display: block !important; }
  .desktop-only { display: none !important; }
  .mobile-devices-grid.mobile-only { display: flex !important; }
  .hero-mockup { order: 2; }
  .hero-text { order: 1; }
  .hero-inner { display: flex; flex-direction: column; }
  .house-section .section-header { padding: 0 16px; }
}