/* Stereo Meedia – prototüübi kujundussüsteem */
:root {
  --ink: #15171b;
  --ink-2: #43484f;
  --muted: #737983;
  --line: #e7e4df;
  --bg: #ffffff;
  --bg-soft: #f6f4f0;
  --bg-warm: #efebe4;
  --brand: #e3342a;
  --brand-ink: #b9241b;
  --brand-soft: #fdeceb;
  --dark: #121417;
  --ok: #1f8a4c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-lg: 0 24px 60px rgba(20, 22, 26, .16);
  --wrap: 1240px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { max-width: 560px; color: var(--ink-2); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nupud */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: .55em 1em; font-size: .85rem; }
.btn--block { width: 100%; }
.btn.is-added { background: var(--ok); color: #fff; border-color: var(--ok); }
.link { color: var(--brand); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Päis */
.topbar { background: var(--dark); color: #cfd2d6; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span + span::before { content: '·'; margin: 0 .6em; color: #666; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 44px; width: auto; display: block; }
.footer-logo { height: 48px; width: auto; display: block; margin-bottom: 4px; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav > a, .nav > button { white-space: nowrap; background: none; border: 0; font: inherit; font-weight: 600; font-size: .95rem; padding: .55em .9em; border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; }
.nav > a:hover, .nav > button:hover, .nav > .is-open { background: var(--bg-soft); }
.nav .caret { display: inline-block; transition: transform .2s; margin-left: 2px; font-size: .7em; }
.nav .is-open .caret { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.cart-btn { position: relative; }
.cart-btn .count { position: absolute; top: -6px; right: -6px; background: var(--ink); color: #fff; font-size: .72rem; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; border: 2px solid #fff; }
.cart-btn .count:empty { display: none; }
.burger { display: none; }

/* Megamenüü */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
.mega.is-open { display: block; animation: drop .18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega .wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; height: auto; padding-top: 32px; padding-bottom: 32px; align-items: start; }
.mega-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 24px; }
.mega-cats a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .93rem; }
.mega-cats a:hover { background: var(--bg-soft); }
.mega-cats img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.mega-cats small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.mega-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.mega-aside h4 { margin-bottom: .6em; }
.mega-aside a.sol { display: block; padding: 6px 0; text-decoration: none; font-weight: 600; }
.mega-aside a.sol:hover { color: var(--brand); }

/* Otsing */
.search-panel { position: fixed; inset: 0; background: rgba(18, 20, 23, .55); z-index: 100; display: none; padding: 10vh 16px; }
.search-panel.is-open { display: block; }
.search-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-box input { width: 100%; border: 0; font: inherit; font-size: 1.25rem; padding: 22px 24px; outline: none; border-bottom: 1px solid var(--line); }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-results a { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a.is-active { background: var(--bg-soft); }
.search-results img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.search-results small { color: var(--muted); display: block; }
.search-results .empty { padding: 20px; color: var(--muted); }

/* Avalehe hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: #c9ccd1; max-width: 520px; }
.hero-search { display: flex; background: #fff; border-radius: 999px; padding: 6px; margin: 28px 0 18px; max-width: 520px; }
.hero-search input { flex: 1; border: 0; font: inherit; padding: 0 18px; outline: none; min-width: 0; border-radius: 999px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a { font-size: .85rem; color: #e3e5e8; border: 1px solid #3a3e45; padding: .35em .9em; border-radius: 999px; text-decoration: none; }
.hero-tags a:hover { border-color: #fff; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px; gap: 12px; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-collage img:first-child { grid-row: span 2; }

/* Usaldusriba */
.trust { border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.trust b { display: block; color: var(--ink); }
.trust .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; }

/* Teekonna valik */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.path:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.path .num { font-size: .8rem; font-weight: 800; color: var(--brand); }
.path h3 { font-size: 1.3rem; margin: 0; }
.path p { color: var(--ink-2); margin: 0; flex: 1; }
.path .go { font-weight: 700; }

/* Lahenduste ruudustik */
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; min-height: 220px; color: #fff; text-decoration: none; display: flex; align-items: flex-end; background: var(--dark); }
.sol-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; opacity: .85; }
.sol-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82)); }
.sol-card:hover img { transform: scale(1.05); }
.sol-card div { position: relative; z-index: 1; padding: 22px; }
.sol-card h3 { font-size: 1.25rem; margin-bottom: .25em; }
.sol-card p { margin: 0; font-size: .9rem; color: #dcdfe3; }
.solutions .sol-card:first-child { grid-column: span 2; aspect-ratio: auto; }

/* Kategooriate ruudustik */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; background: var(--bg-soft); }
.cat-card div { padding: 14px 16px 16px; }
.cat-card h3 { margin: 0; font-size: 1rem; }
.cat-card small { color: var(--muted); }

/* Sammud */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.section:not(.section--dark) .step { background: #fff; border-color: var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: inherit; opacity: .78; font-size: .95rem; }

/* CTA-bänner */
.cta-band { border-radius: var(--radius-lg); background: var(--brand); color: #fff; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; opacity: .9; }

/* Leivapuru ja lehe päis */
.crumbs { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 .5em; }
.page-head { padding: 24px 0 36px; }
.page-head .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }

/* Kategooria */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: #fff; font: inherit; font-size: .9rem; font-weight: 600; padding: .45em 1em; border-radius: 999px; cursor: pointer; text-decoration: none; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: .6; font-weight: 500; margin-left: 4px; }
.cat-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s; }
.p-card:hover { box-shadow: var(--shadow); }
.p-card > a { text-decoration: none; display: block; }
.p-card .img { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; padding: .25em .6em; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.badge--brand { background: var(--brand); color: #fff; }
.p-card .body { padding: 16px 16px 0; flex: 1; }
.p-card h3 { margin-bottom: .3em; }
.p-card p { font-size: .9rem; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .price { font-size: .88rem; font-weight: 700; margin-top: 10px; }
.p-card .foot { display: flex; gap: 8px; padding: 16px; }
.p-card .foot .btn { flex: 1; }
.aside-box { position: sticky; top: 98px; border-radius: var(--radius-lg); background: var(--bg-soft); padding: 26px; }
.aside-box h3 { font-size: 1.1rem; }
.aside-box ol { padding-left: 1.2em; margin: 0 0 1.2em; color: var(--ink-2); font-size: .93rem; }
.aside-box ol li { margin-bottom: .5em; }
.aside-box .btn { width: 100%; }
.aside-box hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Tooteleht */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding-bottom: 56px; }
.gallery .main { aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: var(--bg-soft); }
.thumbs button.is-active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 98px; }
.buy h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .3em; }
.buy .tagline { font-size: 1.1rem; color: var(--ink-2); }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.price-line b { font-size: 1.6rem; }
.price-line small { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
.facts div { background: #fff; padding: 12px 14px; }
.facts small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts b { font-size: .95rem; font-weight: 700; }
.config { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.config label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.opts .chip { font-size: .85rem; }
.qty-row { display: flex; gap: 10px; align-items: center; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 56px; text-align: center; border: 0; font: inherit; font-weight: 700; }
.qty-row .btn { flex: 1; }
.assure { list-style: none; padding: 0; margin: 14px 0 0; font-size: .88rem; color: var(--ink-2); }
.assure li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.assure li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.tabs-nav { position: sticky; top: 74px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.tabs-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs-nav a { padding: 16px 14px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-nav a:hover, .tabs-nav a.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.p-section { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.p-section:last-child { border-bottom: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23e3342a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.uses { display: flex; flex-wrap: wrap; gap: 8px; }
.uses span { background: var(--bg-soft); padding: .5em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfaf8; }
.note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.info-card { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.info-card h3 { margin-bottom: .8em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }
.legacy { white-space: pre-line; color: var(--ink-2); }
.draft-note { border: 1.5px dashed #e8b4b0; background: #fff8f7; border-radius: var(--radius); padding: 14px 18px; font-size: .88rem; color: var(--ink-2); margin-top: 24px; }
.draft-note b { color: var(--brand-ink); }
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mobile-buy { display: none; }

/* Lahenduse leht */
.sol-hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.sol-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.sol-hero .wrap { position: relative; padding-top: 80px; padding-bottom: 80px; }
.sol-hero .lead { font-size: 1.15rem; max-width: 640px; color: #e4e6e9; }
.sol-hero .crumbs, .sol-hero .crumbs a { color: #c9ccd1; }
.sol-hero .kicker { color: #fff; background: var(--brand); padding: .25em .7em; border-radius: 6px; }
.sol-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,20,23,.85), rgba(18,20,23,.2)); }
.sol-hero .wrap { z-index: 1; }
.layer { margin-bottom: 48px; }
.layer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.layer-head h2 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.layer-head h2 i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; display: grid; place-items: center; }
.p-grid--4 { grid-template-columns: repeat(4, 1fr); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.checklist li::before { content: '!'; position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: .75rem; display: grid; place-items: center; }

/* Päringukorv (sahtel) */
.drawer-bg { position: fixed; inset: 0; background: rgba(18, 20, 23, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 91; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; }
.x { border: 0; background: var(--bg-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer footer { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer footer p { font-size: .85rem; color: var(--muted); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--bg-soft); }
.line-item b { display: block; font-size: .95rem; }
.line-item small { color: var(--muted); }
.line-item .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; }
.empty-cart { text-align: center; padding: 48px 12px; color: var(--muted); }

/* Päringuvorm */
.quote-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.form-card + .form-card { margin-top: 20px; }
.form-card h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; }
.form-card h2 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .88rem; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row input { position: absolute; opacity: 0; }
.choice-row label { border: 1px solid var(--line); padding: .6em 1.1em; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.choice-row input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice-row input:focus-visible + label { outline: 2px solid var(--brand); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.success { text-align: center; padding: 64px 24px; }
.success .ic { width: 72px; height: 72px; border-radius: 50%; background: #e6f5ec; color: var(--ok); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; }
.timeline { text-align: left; max-width: 520px; margin: 32px auto 0; }

/* Abiline (wizard) */
.wizard { max-width: 860px; margin: 0 auto; }
.wiz-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.wiz-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wiz-progress span.on { background: var(--brand); }
.wiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wiz-opt { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s; }
.wiz-opt:hover { border-color: var(--ink); }
.wiz-opt.is-active { border-color: var(--brand); background: var(--brand-soft); }
.wiz-opt b { display: block; margin-bottom: 4px; }
.wiz-opt small { color: var(--ink-2); }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* Jalus */
.footer { background: var(--dark); color: #a9adb3; font-size: .92rem; padding: 64px 0 28px; margin-top: 0; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.footer a { color: #d6d8db; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .legal { border-top: 1px solid #2a2d33; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* Teade */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 120; display: flex; gap: 14px; align-items: center; transition: transform .25s; font-size: .92rem; }
.toast.is-on { transform: translate(-50%, 0); }
.toast button { background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .45em .9em; font: inherit; font-weight: 700; cursor: pointer; }

/* Pildid, mis peavad raami tervikuna mahtuma (läbipaistvad PNG-kujundid) */
img.fit-contain { object-fit: contain !important; padding: 8%; background: #fff; }
.thumbs img.fit-contain { padding: 6%; }

img.img-missing { width: 100%; height: 100%; min-height: 80px; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5b9bf' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / 32px no-repeat; color: transparent; border-radius: 10px; }

/* Kontakt */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 20px 22px; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; }
.person img { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; background: var(--bg-soft); }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--brand); font-weight: 700; margin: 0; font-size: .92rem; }
.person .area { color: var(--muted); font-size: .88rem; margin: 2px 0 14px; }
.person-link { display: block; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 0; word-break: break-all; }
.person-link:hover { color: var(--brand); }
.company { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: .95rem; }
.company dt { color: var(--muted); font-weight: 600; }
.company dd { margin: 0; font-weight: 600; }
.contact-cta { background: var(--brand-soft); }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius-lg); }
.mini-person { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.mini-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mini-person b, .mini-person small { display: block; font-size: .9rem; }
.mini-person small { color: var(--muted); }
@media (max-width: 1080px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Mudelivalik */
.model-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.model-search label { font-weight: 800; }
.model-search input { flex: 1; min-width: 220px; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.model-search small { color: var(--muted); width: 100%; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.model { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.model:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.model-img { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.model-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.model b { font-size: .92rem; }
.model small { color: var(--muted); font-size: .8rem; }
.model-open { color: var(--brand); font-weight: 700; font-size: .8rem; margin-top: 6px; }

/* Märksõnad (vana märksõnapilv) */
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kw-chips .chip { font-size: .85rem; font-weight: 600; }
.kw-of { margin: -4px 0 10px; font-size: .95rem; color: var(--muted); }
.az { padding-bottom: 32px; }
.az-letters { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: 74px; background: #fff; padding: 10px 0; z-index: 5; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.az-letters a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.az-letters a:hover { background: var(--ink); color: #fff; }
.az-group { columns: 4 220px; column-gap: 32px; margin-bottom: 28px; scroll-margin-top: 140px; }
.az-group h3 { column-span: all; font-size: 1.4rem; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.az-group ul { list-style: none; margin: 0; padding: 0; }
.az-group li { break-inside: avoid; padding: 3px 0; font-size: .92rem; }
.az-group li a { text-decoration: none; font-weight: 600; }
.az-group li a:hover { color: var(--brand); text-decoration: underline; }
.az-group small { color: var(--muted); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gal-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); transition: transform .2s; }
.gal-grid a:hover img { transform: scale(1.02); }

/* Prototüübi märge */
.proto-flag { position: fixed; left: 12px; bottom: 12px; z-index: 80; background: #fff3cd; color: #6b5200; font-size: .75rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); }

/* Kohanduv */
@media (max-width: 1080px) {
  .mega-cats { grid-template-columns: repeat(3, 1fr); }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .sol-card { aspect-ratio: 4/3; }
  .solutions .sol-card:first-child { aspect-ratio: 21/9; }
  .cat-grid, .related, .p-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-layout, .quote-layout { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .header .wrap { gap: 16px; }
  .nav > a, .nav > button { padding: .5em .6em; font-size: .9rem; }
  .cart-btn .lbl { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .topbar .hide-m { display: none; }
  .nav { display: none; position: fixed; inset: 74px 0 0; background: #fff; flex-direction: column; padding: 16px; overflow: auto; }
  body.nav-open .nav { display: flex; }
  .nav > a, .nav > button { font-size: 1.1rem; padding: 14px; text-align: left; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega .wrap { grid-template-columns: 1fr; padding: 0; gap: 16px; }
  .mega-cats { grid-template-columns: 1fr; }
  .burger { display: grid; }
  .header .wrap { gap: 12px; justify-content: space-between; }
  .cart-btn .lbl { display: none; }
  .hero .wrap, .product, .two { grid-template-columns: 1fr; gap: 32px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 44px; }
  .hero-collage { grid-template-rows: 140px 140px; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .paths, .steps { grid-template-columns: 1fr; }
  .solutions .sol-card:first-child { grid-column: span 2; aspect-ratio: 16/10; }
  .cat-grid, .related, .p-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 28px; }
  .buy { position: static; }
  .wiz-opts, .grid-2 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; align-items: center; }
  .mobile-buy .btn { flex: 1; }
  body.has-mobile-buy { padding-bottom: 72px; }
  .form-card { padding: 22px; }
  .proto-flag { display: none; }
}
@media (max-width: 520px) {
  .p-grid, .cat-grid, .related, .p-grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .p-card .foot { flex-direction: column; padding: 10px; }
  .p-card .body { padding: 10px 10px 0; }
  .p-card p { display: none; }
  .solutions { grid-template-columns: 1fr; }
  .solutions .sol-card:first-child { grid-column: auto; }
  .sol-card { aspect-ratio: 16/10; }
  .facts { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
}
