/* ==========================================================================
   GuardSmart — stiil
   Värvipalett: süvamerine (usaldus) + teal-roheline aktsent (nutikas/turvaline)
   Font: Inter (self-hosted, SIL OFL) — public/assets/fonts/
   ========================================================================== */

/* --- Font (self-hosted, ei sõltu välisest CDN-ist / GDPR-sõbralik) ----- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("/assets/fonts/inter-800.woff2") format("woff2");
}

/* Chakra Petch — display/pealkirjad + wordmark (kandiline turva-tech) */
@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/chakra-500.woff2") format("woff2");
}
@font-face {
    font-family: "Chakra Petch";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/chakra-700.woff2") format("woff2");
}

:root {
    /* Värvid on võetud kujundusmakеtist (design/example.png):
       tume on peaaegu must sinaka aluspõhjaga, kuld pehme šampanja. */
    --ink:        #0a1520;   /* tume tekst / tume sektsioon */
    --ink-deep:   #050d16;   /* hero ja jalus — sügavaim toon */
    --ink-soft:   #33475b;   /* pehmem tekst */
    --muted:      #6b7c8f;   /* hall abitekst */
    --line:       #e6e8ec;   /* peened jooned */
    --bg:         #ffffff;
    --bg-alt:     #f8f8fa;   /* hele lehetaust maketist */
    --accent:      #e8cb8f;  /* kuldne täidis (nupp) */
    --accent-ink:  #16212c;  /* tekst kuldsel nupul */
    --accent-dk:   #a5771c;  /* sügavam kuld — tekst/hover valgel */
    --accent-line: #c8a86a;  /* kuldne ääris tumedal (ringnupud) */
    --accent-soft: #f6ecd6;  /* kullane õrn taust (ikoonid) */
    --gold-bright: #e8cb8f;  /* hele kuld — tekst tumedal */
    --dark-card:   rgba(255,255,255,.07);   /* teatekaart tumedal */
    --dark-line:   rgba(255,255,255,.12);
    --radius:     16px;
    --shadow:     0 10px 30px rgba(11, 27, 43, 0.08);
    --shadow-sm:  0 2px 10px rgba(11, 27, 43, 0.06);
    --wrap:       1120px;
    --font:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Chakra Petch", var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; margin-bottom: 8px; letter-spacing: -0.01em; }

p { margin: 0; margin-bottom: 8px;}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-dk);
    margin-bottom: 14px;
}

/* --- Nupud ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(180deg, #f0dba9 0%, var(--accent) 100%);
    color: var(--accent-ink); box-shadow: 0 10px 26px rgba(232,203,143,.24);
}
.btn-primary:hover { background: linear-gradient(180deg, #f6e6c2 0%, #edd49e 100%); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-dk); }
/* Tumedal taustal: läbipaistev nupp valge äärisega (makett). */
.hero-dark .btn-ghost, .dark-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-dark .btn-ghost:hover, .dark-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f3f6; }

/* --- Päis -------------------------------------------------------------- */
body { overflow-x: clip; }   /* väldib mobiilimenüü off-screen paneeli horisontaalset kerimist (ei riku sticky't) */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: none;              /* nimi ei tohi kokku suruda — muidu jookseb menüü peale */
}
.brand .logo { height: 40px; width: auto; }
/* Wordmark (GUARDSMART) — elav tekst logo kõrval */
.word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    line-height: 1;
}
.word .s { color: var(--accent-dk); }

/* --- Hero -------------------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(200,145,43,0.14), transparent 60%),
        linear-gradient(180deg, #fbf8f2 0%, #ffffff 100%);
    padding: 96px 0 80px;
    overflow: hidden;
}
.hero-inner { max-width: 760px; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
}
.hero p {
    margin-top: 22px;
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 640px;
}
.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Partnerid --------------------------------------------------------- */
.partners { padding: 42px 0; border-bottom: 1px solid var(--line); }
.partners-title {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 26px 50px;
}
.partner-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .2s ease, opacity .2s ease;
}
.partner-link { display: inline-flex; align-items: center; }
.partner-logo:hover { filter: none; opacity: 1; }

/* Toodete brändi-filter */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
    padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dk); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Sektsioonid ------------------------------------------------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h1, .section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }

/* --- Teenuste kaardid -------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dk);
    margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* --- Miks meie --------------------------------------------------------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.why-item { }
.why-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dk);
    margin-bottom: 10px;
}
.why-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: 0.95rem; }

/* --- CTA riba ---------------------------------------------------------- */
.cta {
    background:
        radial-gradient(800px 400px at 90% 10%, rgba(200,145,43,0.38), transparent 60%),
        var(--ink);
    color: #fff;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    margin: 0 auto;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { margin: 14px auto 30px; color: #b9c7d4; max-width: 520px; }

/* --- Jalus ------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #aebccb;
    padding: 56px 0 32px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display:flex; align-items:center; gap:11px; }
.footer-brand img { height: 38px; width: auto; }
.footer-brand .word { color: #fff; }
.footer-brand .word .s { color: var(--gold-bright); }
.footer-brand + p { margin-top: 14px; max-width: 320px; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin: 0 0 12px; }
.footer-col a { display: block; font-size: 0.95rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    padding-top: 24px;
    font-size: 0.88rem;
    color: #7d8ea0;
}

/* --- Responsiivsus ----------------------------------------------------- */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .grid, .why-grid { grid-template-columns: 1fr; }
    .cta { padding: 40px 24px; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 60px 0; }
}

/* ======================================================================
   POOD (tooted / ostukorv / kassa)
   ====================================================================== */
.wrap-narrow { max-width: 860px; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.muted-note, .vat-note { color: var(--muted); font-size: 0.92rem; margin-top: 22px; }

/* Korvi ikoon päises */
.cart-link { position: relative; display: flex; align-items: center; color: var(--ink-soft); }
.cart-link:hover { color: var(--accent-dk); }
.cart-badge {
    position: absolute; top: -8px; right: -9px;
    background: var(--accent); color: var(--ink);
    font-size: 0.7rem; font-weight: 800;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; display: grid; place-items: center;
}

/* Tootekaardid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb {
    aspect-ratio: 4 / 3; background: var(--bg-alt);
    display: grid; place-items: center; position: relative;
}
/* Kaardipildid on normaliseeritud 4:3 peale (bin/normalize_images.php): toode on
   juba oma taustaga õigesse kaadrisse asetatud, seega pilt katab plaadi servast
   servani ja plaadi tausta ei paista kusagilt välja. */
.product-thumb img { height: 100%; width: 100%; object-fit: cover; }
.product-thumb.is-placeholder { background: linear-gradient(135deg, #fbf3e0, #f1e1bd); }
.product-thumb .thumb-mark { height: 56px; width: auto; opacity: .55; }
.product-thumb .thumb-brand {
    position: absolute; bottom: 12px;E
    font-family: var(--font-display); font-weight: 700;M
    letter-spacing: .03em; font-size: 0.85rePanem; color: var(--accent-dk);
}
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1; }
.product-brand { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.product-name { font-size: 1.05rem; }
.product-desc { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; }

/* Ostukorv */
.cart-table { border-top: 1px solid var(--line); margin-bottom: 22px; }
.cart-row {
    display: grid; grid-template-columns: 1fr auto auto auto;
    align-items: center; gap: 16px;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-thumb {
    width: 64px; height: 48px; border-radius: 10px; overflow: hidden;
    background: var(--bg-alt); display: grid; place-items: center; flex: none;
    border: 1px solid var(--line); transition: border-color .2s ease;
}
.cart-thumb:hover { border-color: var(--accent); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-thumb.is-placeholder { border-style: dashed; }
.cart-thumb .cart-thumb-mark { width: auto; height: 26px; object-fit: contain; opacity: .45; }
.cart-name { font-weight: 600; }
.cart-name a { color: inherit; }
.cart-name a:hover { color: var(--accent-dk); }
.cart-unit { font-size: 0.85rem; color: var(--muted); }
.qty-input { width: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: center; }
.cart-line { font-family: var(--font-display); font-weight: 700; min-width: 90px; text-align: right; }
.link-remove { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.link-remove:hover { color: #c0392b; }
.cart-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cart-total { display: flex; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; }
.cart-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* Kassa */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
    padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
/* Valikuväli: sama raam kui teistel väljadel + oma nool (native nool peidus) */
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23a5771c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,145,43,.15);
}
.err { color: #c0392b; font-size: 0.82rem; font-style: normal; }

/* Robotitõrje: „libista kinnitamiseks" (asendab varasema arvutusülesande) */
.human-field { gap: 10px; }
.human-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.human-label svg { color: var(--accent-dk); flex: none; }
.human {
    position: relative; height: 52px; border-radius: 12px; overflow: hidden;
    background: var(--bg-alt); border: 1px solid var(--line);
}
/* Nähtav osa: täitumisriba + tekst. Liugur ise on selle peal, läbipaistev. */
.human-track {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.human-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, rgba(200,145,43,.16), rgba(200,145,43,.32));
    transition: width .12s linear;
}
.human-text {
    position: relative; font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding-left: 44px;
}
.human-range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    appearance: none; -webkit-appearance: none; background: transparent; cursor: grab;
}
.human-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.human-range:active { cursor: grabbing; }
.human-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 44px; height: 44px; border-radius: 10px;
    background: var(--ink) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e6bf6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat;
    box-shadow: 0 4px 12px rgba(11,27,43,.28); cursor: grab;
}
.human-range::-moz-range-thumb {
    width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: var(--ink) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e6bf6a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat;
    box-shadow: 0 4px 12px rgba(11,27,43,.28); cursor: grab;
}
.human.is-done { border-color: var(--accent); background: rgba(200,145,43,.10); }
.human.is-done .human-fill { width: 100%; background: rgba(200,145,43,.20); }
.human.is-done .human-text { color: var(--accent-dk); padding-left: 0; }
.human.is-done .human-range { cursor: default; }
.human.is-done .human-range::-webkit-slider-thumb { opacity: 0; }
.human.is-done .human-range::-moz-range-thumb { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .human-fill { transition: none; } }

.form-hint { font-size: 0.85rem; color: var(--muted); }
.order-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.order-summary h3 { font-size: 1.05rem; margin-bottom: 14px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.summary-total strong { font-family: var(--font-display); font-size: 1.35rem; }

/* Kinnitus */
.confirm-box { max-width: 560px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 44px 34px; box-shadow: var(--shadow-sm); }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; }
.confirm-order { margin: 10px 0 8px; color: var(--ink-soft); }
.confirm-box .summary-list { text-align: left; margin-top: 22px; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
    /* Toode üle rea, selle all ühel real kogus · summa · eemalda. */
    .cart-row { grid-template-columns: auto 1fr auto; row-gap: 10px; }
    .cart-product { grid-column: 1 / -1; }
    .cart-line { min-width: 0; }
}

/* ======================================================================
   AVALEHT v2 — müügikeskne (ainult uued klassid; vana esileht kasutab
   endisi reegleid, seega home.v1.php taastub muutmata)
   ====================================================================== */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-lead { max-width: 600px; }
.hero-benefits { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.hero-benefits li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.hero-benefits svg { color: var(--accent-dk); flex: none; margin-top: 2px; }

.hero-media { display: flex; justify-content: center; }
.hero-panel {
    position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1;
    display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(200,145,43,.22), transparent 70%),
        linear-gradient(160deg, #17324c 0%, #0b1b2b 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(11,27,43,.28);
}
/* Õrn helendus seadme taga, et see esile tõuseks */
.hero-panel::after {
    content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
}
.hero-panel img {
    position: relative; z-index: 1; max-width: 62%; height: auto;
    filter: drop-shadow(0 22px 40px rgba(0,0,0,.5));
}
.hero-badge {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px;
    background: #fff; border-radius: 14px; padding: 11px 14px;
    font-size: .85rem; font-weight: 600; color: var(--ink);
    box-shadow: 0 14px 30px rgba(0,0,0,.28);
}
.hero-badge svg { color: var(--accent-dk); flex: none; }
.hero-badge-tl { top: 22px; left: 22px; }
.hero-badge-br { bottom: 22px; right: 22px; }

.home-trust { margin-top: 60px; }
.home-trust .partners-title { margin-bottom: 20px; }

.section-tight { padding: 60px 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.section-head-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-top: 6px; }
.link-arrow { color: var(--accent-dk); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); }

.service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-strip-item {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; background: #fff;
    border: 1px solid var(--line); border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-strip-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-strip-item .card-icon {
    margin: 0; flex: none; width: 50px; height: 50px;
    background: linear-gradient(135deg, #f7e8c6, #ebd196);
    color: var(--accent-dk);
}
.service-strip-item span { font-size: .96rem; font-weight: 600; line-height: 1.25; }

/* Teenuste plokk — tume premium-paneel hõõguvate ikoonidega */
.onestop {
    display: grid; grid-template-columns: .9fr 1.4fr; gap: 44px; align-items: center;
    padding: 48px; border-radius: 26px; color: #fff;
    background:
        radial-gradient(720px 380px at 88% -12%, rgba(200,145,43,.28), transparent 62%),
        linear-gradient(160deg, #14304a 0%, #0b1b2b 72%);
    box-shadow: 0 30px 60px rgba(11,27,43,.22);
}
.onestop-lead .eyebrow { color: var(--gold-bright); }
.onestop-lead h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.onestop-lead p { color: #b7c5d4; margin: 14px 0 26px; font-size: 1.05rem; }
.onestop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.onestop-item {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
    padding: 20px 12px; border-radius: 16px;
    transition: background .2s ease, transform .2s ease;
}
.onestop-item:hover { background: rgba(255,255,255,.06); transform: translateY(-3px); }
.onestop-icon {
    display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%;
    background: rgba(230,191,106,.12); border: 1px solid rgba(230,191,106,.42); color: var(--gold-bright);
    transition: transform .2s ease, box-shadow .2s ease;
}
.onestop-icon svg { width: 24px; height: 24px; }
.onestop-item:hover .onestop-icon { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(230,191,106,.10); }
.onestop-name { font-size: .92rem; font-weight: 700; color: #eef3f8; line-height: 1.25; }
.onestop-sub { font-size: .78rem; color: #93a6b8; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .onestop-item, .onestop-icon { transition: none; } }
@media (max-width: 860px) { .onestop { grid-template-columns: 1fr; gap: 28px; padding: 34px 22px; } }
@media (max-width: 460px) { .onestop-grid { grid-template-columns: repeat(2, 1fr); } }

/* Mängulised teenuskaardid */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 28px 26px; position: relative; overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold-bright));
    transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,27,43,.12); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, #f7e8c6, #ebd196); color: var(--accent-dk);
    margin-bottom: 16px; transition: transform .28s ease, background .28s ease, color .28s ease;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card:hover .svc-icon { transform: rotate(-8deg) scale(1.12); background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: #fff; }
.svc-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.svc-card p { color: var(--ink-soft); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .svc-card, .svc-card::before, .svc-icon { transition: none; } }
@media (max-width: 860px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .service-cards { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .service-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .service-strip { grid-template-columns: 1fr; }
    .hero-badge-tl { left: 0; }
    .hero-badge-br { right: 0; }
}

/* Miks Fibra — eristaja sektsioon */
.fibra {
    background: var(--accent-soft);
    border: 1px solid #ecdcb8;
    border-radius: 24px;
    padding: 48px;
}
.fibra-head { max-width: 640px; margin-bottom: 34px; }
.fibra-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-top: 6px; }
.fibra-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }
.fibra-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fibra-point .card-icon { margin-bottom: 14px; background: #fff; }
.fibra-point h3 { font-size: 1.08rem; margin-bottom: 6px; }
.fibra-point p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 800px) {
    .fibra { padding: 32px 24px; }
    .fibra-points { grid-template-columns: 1fr; gap: 22px; }
}

/* Meist / Miks usaldada */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.about-lead h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-top: 6px; }
.about-lead p { margin: 14px 0 26px; color: var(--ink-soft); font-size: 1.05rem; }
.about-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-point {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.about-point:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.about-point .card-icon { margin-bottom: 12px; }
.about-point h3 { font-size: 1.02rem; margin-bottom: 6px; }
.about-point p { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 460px) {
    .about-points { grid-template-columns: 1fr; }
}

/* Hero ökosüsteem — Hub keskel, seadmed orbiidil */
/* Hero ökosüsteem — ühendatud skeem (läbipaistvad seadmed + jooned) */
.hero-ecosystem {
    position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; margin: 0 auto;
}
.hero-ecosystem::after {
    content: ""; position: absolute; inset: 24%; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, rgba(200,145,43,.18), transparent 68%);
}
.eco-net {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible;
    transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px));
    transition: transform .3s ease-out;
}
.eco-trace { stroke: rgba(230,191,106,.28); stroke-width: .45; }
.eco-flow  {
    stroke: var(--gold-bright); stroke-width: .8; stroke-linecap: round;
    stroke-dasharray: 3 57;
    filter: drop-shadow(0 0 1.1px rgba(230,191,106,.9));
    animation: eco-flow 3s ease-in-out infinite alternate;
}
/* Pakett liigub Hub'ist seadmeni ja tagasi (edasi-tagasi mööda kaablit) */
@keyframes eco-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -40; } }
.eco-via   { fill: #0b1b2b; stroke: var(--gold-bright); stroke-width: .55; }
.eco-core  { fill: var(--gold-bright); filter: drop-shadow(0 0 2px rgba(230,191,106,.8)); }
@media (prefers-reduced-motion: reduce) { .eco-flow { animation: none; } }
.hero-ecosystem .hero-hub {
    position: absolute; top: 53%; left: 50%;
    transform: translate(-50%, -50%) translate(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * 8px));
    width: 25%; height: auto; z-index: 2;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.6));
    transition: transform .3s ease-out;
}
.eco-dev {
    position: absolute; z-index: 3;
    transform: translate(-50%, -50%) translate(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 18px));
    width: 100px; height: 100px; display: flex; align-items: center; justify-content: center;
    transition: transform .3s ease-out;
}
/* Õrn kuma seadme taga, et tumedad (nt väravad) tumedal taustal eristuksid */
.eco-dev::before {
    content: ""; position: absolute; inset: 4%; border-radius: 50%; z-index: -1;
    background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%);
}
.eco-dev img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.eco-dev:hover { transform: translate(-50%, -50%) scale(1.12); }
/* Seadmete suurused (px) — igal oma mõõt */
.eco-dev--80  { width: 80px;  height: 80px; }
.eco-dev--90  { width: 80px;  height: 80px; }
.eco-dev--100 { width: 100px; height: 100px; }
.eco-dev--110 { width: 130px; height: 130px; }
@media (max-width: 900px) {
    .hero-ecosystem { max-width: 440px; }
    .eco-dev--80  { width: 66px; height: 66px; }
    .eco-dev--90  { width: 66px; height: 66px; }
    .eco-dev--100 { width: 84px; height: 84px; }
    .eco-dev--110 { width: 108px; height: 108px; }
}
@media (max-width: 560px) {
    .eco-dev--80  { width: 54px; height: 54px; }
    .eco-dev--90  { width: 54px; height: 54px; }
    .eco-dev--100 { width: 68px; height: 68px; }
    .eco-dev--110 { width: 86px; height: 86px; }
}
/* (vana orbit-stiil allpool on kasutusest väljas) */
.orbit-chip {
    position: absolute; z-index: 3; width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center; padding: 10px; overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #ffffff 58%, #e8ecf1 100%);
    box-shadow: 0 8px 22px rgba(0,0,0,.30);
    transform: translate(-50%, -50%); transition: transform .18s ease;
}
.orbit-chip img { width: 100%; height: 100%; object-fit: contain; }
.orbit-chip:hover { transform: translate(-50%, -50%) scale(1.1); }
.orbit-1 { top: 9%;  left: 50%; }
.orbit-2 { top: 23%; left: 83%; }
.orbit-3 { top: 50%; left: 92%; }
.orbit-4 { top: 77%; left: 83%; }
.orbit-5 { top: 91%; left: 50%; }
.orbit-6 { top: 77%; left: 17%; }
.orbit-7 { top: 50%; left: 8%;  }
.orbit-8 { top: 23%; left: 17%; }
@media (max-width: 560px) {
    .orbit-chip { width: 50px; height: 50px; padding: 7px; }
}

/* ======================================================================
   TUME HERO (professionaalne) — ökosüsteem sulandub taustaga, ilma kastita.
   Ainult .hero-dark all; vana esileht (home.v1.php) kasutab heledat .hero.
   ====================================================================== */
.hero-dark {
    background-color: #0a1826;
    background-image:
        radial-gradient(1150px 640px at 84% 4%, rgba(200,145,43,.16), transparent 58%),
        linear-gradient(158deg, rgba(9,20,34,.85) 0%, rgba(8,17,29,.95) 62%),
        url('/assets/img/hero-bg.jpg');
    background-size: auto, auto, cover;
    background-position: center, center, center 32%;
    background-repeat: no-repeat;
}
.hero-dark .eyebrow { color: var(--gold-bright); }
.hero-dark h1 { color: #ffffff; }
.hero-dark h1 .hl { color: var(--gold-bright); }
.hero-dark p { color: #b7c5d4; }
.hero-dark .hero-benefits li { color: #e9eef4; }
.hero-dark .hero-benefits svg { color: var(--gold-bright); }
.hero-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero-dark .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.hero-dark .partners-title { color: rgba(255,255,255,.5); }
.hero-dark .partner-logo { filter: brightness(0) invert(1); opacity: .55; }
.hero-dark .partner-logo:hover { opacity: 1; }

/* Ökosüsteem ilma kastita — sulandub tumeda hero'ga */
.hero-dark .hero-ecosystem { background: none; border: none; box-shadow: none; overflow: visible; }
.hero-dark .hero-orbit { border-color: rgba(255,255,255,.12); }
.hero-dark .hero-orbit-inner { border-color: rgba(230,191,106,.28); }

/* ---- Hero premium täiendused ---- */
/* Signaalilained keskusest */
.eco-pulse {
    fill: none; stroke: rgba(230,191,106,.40); stroke-width: .35;
    transform-box: fill-box; transform-origin: center;
    animation: eco-pulse 3.9s ease-out infinite;
}
@keyframes eco-pulse {
    0%   { transform: scale(.16); opacity: .55; }
    70%  { opacity: .12; }
    100% { transform: scale(1); opacity: 0; }
}
/* Seadmete õrn hõljumine */
.eco-dev img { animation: eco-float 6s ease-in-out infinite; }
@keyframes eco-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Usaldus-pillid hero's */
.hero-trust-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tpill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; color: #eaf0f6;
    background: rgba(255,255,255,.05); border: 1px solid rgba(230,191,106,.32);
}
.tpill svg { color: var(--gold-bright); flex: none; }

@media (prefers-reduced-motion: reduce) {
    .eco-pulse, .eco-dev img { animation: none; }
}

/* Hero statistikariba */
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.hstat { display: flex; flex-direction: column; }
.hstat + .hstat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.hstat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--gold-bright); line-height: 1; }
.hstat-lbl { font-size: .8rem; color: #b7c5d4; margin-top: 6px; }

/* ======================================================================
   HELE HERO (mustad seadmed) — alternatiiv .hero-dark'ile.
   ====================================================================== */
.hero-light {
    background:
        radial-gradient(1100px 620px at 84% 2%, rgba(200,145,43,.14), transparent 56%),
        linear-gradient(160deg, #f3f6fa 0%, #ffffff 62%);
}
.hero-light h1 { color: var(--ink); }
.hero-light h1 .hl { color: var(--accent-dk); }
/* trust-pillid heledal */
.hero-light .tpill {
    background: rgba(200,145,43,.08);
    border-color: rgba(200,145,43,.35);
    color: var(--ink);
}
.hero-light .tpill svg { color: var(--accent-dk); }
/* statistika heledal */
.hero-light .hstat-num { color: var(--accent-dk); }
.hero-light .hstat-lbl { color: var(--muted); }
.hero-light .hstat + .hstat { border-left-color: rgba(11,27,43,.12); }
/* ökosüsteemi jooned/pulsid heledal (tumedam kuld kontrastiks) */
.hero-light .eco-trace { stroke: rgba(165,119,28,.32); }
.hero-light .eco-flow  { stroke: var(--accent); filter: drop-shadow(0 0 1px rgba(200,145,43,.7)); }
.hero-light .eco-pulse { stroke: rgba(200,145,43,.32); }
.hero-light .eco-via   { fill: #ffffff; stroke: var(--accent-dk); }
.hero-light .eco-core  { fill: var(--accent); }
/* heledal ei ole seadmete taga heledat kuma vaja */
.hero-light .eco-dev::before { background: radial-gradient(circle, rgba(11,27,43,.06), transparent 70%); }

/* ======================================================================
   HERO SÜNDMUSTE VOOG — olekupill ämbliku peal + elav logi selle all.
   Sisu genereerib assets/js/hero.js (tekstid tulevad lang/ failist).
   ====================================================================== */
.hero-live {
    display: flex; flex-direction: column; gap: 14px;
    width: 100%; max-width: 500px;
}

/* Olekupill — ämbliku vasakus ülanurgas */
.live-state {
    position: absolute; top: 0; left: 0; z-index: 4;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 13px; border-radius: 999px; font-size: .78rem; line-height: 1.4;
    color: #e9eef4; background: rgba(8,17,28,.72); border: 1px solid rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.live-state b { font-weight: 700; color: var(--gold-bright); }
.live-state i { font-style: normal; color: #8ea3b8; }
.live-state[data-state="off"] b { color: #3ddc84; }
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; flex: none;
    background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(230,191,106,.18);
}
.live-state[data-state="off"] .live-dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }

/* Sündmuste read */
.hero-feed { position: relative; display: flex; flex-direction: column; gap: 7px; min-height: 150px; }
.ev {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 12px;
    background: rgba(12,24,38,.72); border: 1px solid rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(0,0,0,.32);
    animation: ev-in .5s cubic-bezier(.2,.7,.3,1) backwards;
}
/* Uus sündmus tuleb ülevalt ette; vanad libisevad JS-i FLIP-iga alla.
   Täitmisreegel on `backwards`, MITTE `both`: `both` jätaks lõppkaadri
   (`transform: none`) igaveseks kehtima ja CSS-animatsioon võidab kaskaadis
   inline-stiili, nii et hero.js-i FLIP-transform ei mõjuks üldse — vanad read
   hüppaksid kohe alla. `backwards` hoiab algseisu enne animatsiooni (vajalik
   laadimisel astmelise viite jaoks) ja annab lõpus stiili JS-ile tagasi. */
@keyframes ev-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
/* Alumine rida võetakse voost välja ja hajub kohapeal ära — JS kinnitab ta
   `top`-iga sinna pessa, kus ta enne uue rea lisamist oli. Voos olev rida
   libiseb sellest üle (z-index), et kaks blur-kaarti ei kattuks mudaseks. */
.ev--out {
    position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0;
    animation: none; opacity: 0; transform: translateY(10px) scale(.985);
    transition: opacity .34s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.ev-ico {
    width: 26px; height: 26px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    background: rgba(230,191,106,.14); color: var(--gold-bright);
}
.ev--green .ev-ico { background: rgba(61,220,132,.14); color: #3ddc84; }
.ev--alert .ev-ico { background: rgba(224,90,70,.16); color: #ff8f7a; }
.ev-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.32; }
.ev-copy b { color: #fff; font-weight: 600; font-size: .84rem; }
.ev-copy i { font-style: normal; color: #8ea3b8; font-size: .75rem; }
.ev-time {
    color: #8ea3b8; font-size: .75rem; font-variant-numeric: tabular-nums;
    align-self: flex-start; padding-top: 2px;
}

/* Sündmuse hetkel süttib just see seade, mis selle tekitas */
.eco-dev.is-active::before {
    inset: -8%; background: radial-gradient(circle, rgba(230,191,106,.34), transparent 70%);
}
.eco-dev.is-active img {
    animation: none;
    filter: drop-shadow(0 0 18px rgba(230,191,106,.75)) drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.eco-trace { transition: stroke .4s ease, stroke-width .4s ease; }
.eco-trace.is-active { stroke: rgba(230,191,106,.95); stroke-width: .7; }

/* Hele hero — pill ja read heledal taustal */
.hero-light .live-state {
    color: var(--ink-soft); background: rgba(255,255,255,.9);
    border-color: rgba(11,27,43,.12); box-shadow: var(--shadow-sm);
}
.hero-light .live-state b { color: var(--accent-dk); }
.hero-light .live-state i { color: var(--muted); }
.hero-light .live-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(200,145,43,.18); }
.hero-light .live-state[data-state="off"] b { color: #1f8f55; }
.hero-light .live-state[data-state="off"] .live-dot { background: #1f8f55; box-shadow: 0 0 0 4px rgba(31,143,85,.16); }
.hero-light .ev {
    background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: var(--shadow-sm);
}
.hero-light .ev-copy b { color: var(--ink); }
.hero-light .ev-copy i, .hero-light .ev-time { color: var(--muted); }
.hero-light .ev-ico { background: rgba(200,145,43,.12); color: var(--accent-dk); }
.hero-light .ev--green .ev-ico { background: rgba(31,143,85,.12); color: #1f8f55; }
.hero-light .ev--alert .ev-ico { background: rgba(198,60,40,.10); color: #c63c28; }
.hero-light .eco-dev.is-active::before { background: radial-gradient(circle, rgba(200,145,43,.32), transparent 70%); }
.hero-light .eco-dev.is-active img {
    filter: drop-shadow(0 0 14px rgba(200,145,43,.55)) drop-shadow(0 6px 14px rgba(11,27,43,.18));
}
.hero-light .eco-trace.is-active { stroke: rgba(165,119,28,.9); }

@media (max-width: 900px) {
    .hero-live { max-width: 440px; }
    .hero-feed { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ev { animation: none; }
}

/* ======================================================================
   TÄIENDUSED: menüü, kontakt, tooteleht, juriidika, 404, arvustused,
   referentsid, jalus, küpsiseriba
   ====================================================================== */

/* Skip-link (ligipääsetavus) */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Hamburger-nupp */

/* Mobiilimenüü — moodne paremalt sisse libisev paneel */
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
}

/* Statistikariba mobiilis (kolm veergu ühele reale) */
@media (max-width: 560px) {
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hstat + .hstat { padding-left: 12px; }
    .hstat-num { font-size: 1.4rem; }
}

/* Leivapuru */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--accent-dk); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* Tootekaardi lingid */
.product-name a { color: inherit; }
.product-name a:hover { color: var(--accent-dk); }

/* ---- Tooteleht (PDP) ---- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.pdp-media {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
    aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 8%;
}
.pdp-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pdp-media--photo { padding: 0; overflow: hidden; background: #0d1a26; }
.pdp-media--photo img { height: 100%; width: 100%; object-fit: cover; }
.pdp-media.is-placeholder { background: linear-gradient(135deg, #fbf3e0, #f1e1bd); }
.pdp-media .thumb-mark { height: 90px; opacity: .5; }
.pdp-info .product-brand { display: block; margin-bottom: 8px; }
.pdp-name { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
.pdp-price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-top: 14px; }
.pdp-vat { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.pdp-desc { color: var(--ink-soft); font-size: 1.05rem; margin-top: 18px; }
.pdp-buy { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.pdp-note { color: var(--ink-soft); font-size: .92rem; margin-top: 18px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pdp-info .link-arrow { display: inline-block; margin-top: 16px; }
.pdp-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
.pdp-links .link-arrow { margin-top: 8px; }
.pdp-specs { margin-top: 48px; max-width: 720px; }
.pdp-specs h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-soft); font-weight: 600; }
.spec-table td { color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) { background: var(--bg-alt); }
.pdp-related { margin-top: 72px; }
.pdp-related h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; margin-bottom: 26px; }
@media (max-width: 760px) {
    .pdp { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Kontaktileht ---- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.contact-form-title { font-size: 1.3rem; margin-bottom: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-info h2 { font-size: 1.2rem; margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list-lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-list a { color: var(--accent-dk); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-legalname { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.contact-success { text-align: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 30px; }
.contact-success h2 { font-size: 1.4rem; margin-bottom: 10px; }
.contact-success p { color: var(--ink-soft); margin-bottom: 22px; }
@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Juriidilised lehed ---- */
.legal-updated { color: var(--muted); font-size: .9rem; margin-top: 10px; }
/* Võrdlustabel (nutika jõusaali võrdlusleht). Kitsal ekraanil keritav, sest
   viis veergu ei mahu telefoni — .table-scroll hoiab lehe enda kerimata. */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .94rem; }
.cmp-table th, .cmp-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { background: var(--bg-alt); color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.cmp-table tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
/* Võrdlustabel elab .wrap-narrow sees (860 px), aga seitsme veeruga vajab
   rohkem. Laual laseme ploki sümmeetriliselt lehe täislaiusesse välja, nii
   et külgkerimist jääks võimalikult vähe. Kitsamal ekraanil jääb .table-scroll
   omaette kerima, nagu varem — leht ise ei keri kunagi külgsuunas. */
@media (min-width: 1240px) {
    .legal-body .table-scroll { width: 1120px; margin-inline: calc((100% - 1120px) / 2); }
    /* Seitsme veeruga ei mahu nowrap-päised ära. Murduv päis hoiab
       tabeli laiuse konteineri sees, ilma kirja vähendamata. */
    .legal-body .cmp-table thead th { white-space: normal; }
}
.cmp-na { color: var(--muted); }
.cmp-note { margin-top: 6px; color: var(--muted); font-size: .86rem; }
.cmp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.legal-body { max-width: 720px; color: var(--ink-soft); font-size: 1.02rem; }
.legal-body h2 { font-size: 1.25rem; color: var(--ink); margin: 32px 0 10px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-dk); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 14vw, 8rem); color: var(--accent); line-height: 1; letter-spacing: .04em; }
.notfound h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 6px 0 12px; }
.notfound p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 26px; }
.notfound .hero-actions { justify-content: center; }

/* ---- Arvustused ---- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.testi-stars { color: var(--accent); display: flex; gap: 2px; }
.testi-card blockquote { margin: 0; font-size: 1rem; color: var(--ink); line-height: 1.6; }
.testi-card figcaption { margin-top: auto; display: flex; flex-direction: column; }
.testi-name { font-weight: 700; }
.testi-role { font-size: .85rem; color: var(--muted); }
.demo-note { text-align: center; color: var(--muted); font-size: .82rem; font-style: italic; margin-top: 22px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---- Referentsid ---- */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ref-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.ref-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ref-media { position: relative; aspect-ratio: 3 / 2; display: flex; align-items: flex-end; padding: 14px; }
.ref-media--1 { background: linear-gradient(150deg, #17324c, #0b1b2b); }
.ref-media--2 { background: linear-gradient(150deg, #2b2419, #4a3c1e); }
.ref-media--3 { background: linear-gradient(150deg, #14324a, #123f3a); }
.ref-place { background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.ref-body { padding: 20px 22px 24px; }
.ref-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.ref-body p { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 860px) { .ref-grid { grid-template-columns: 1fr; } }

/* ---- Jalus (laiendatud veerud) ---- */
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.footer-about { max-width: 320px; }
.footer-legalname { margin-top: 14px; font-size: .82rem; color: #7d8ea0; }
.footer-addr { display: block; }
@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
}

/* ---- KM-lüliti + hinnamärgend ---- */
.products-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.products-toolbar .filter-bar { margin-bottom: 0; }
.shop-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.shop-search input[type=search] {
    flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line);
    border-radius: 999px; font: inherit; background: #fff; color: var(--ink);
}
.shop-search input[type=search]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,145,43,.15); }
.shop-search-clear { font-size: 1.4rem; line-height: 1; color: var(--muted); padding: 0 6px; }
.shop-search-clear:hover { color: var(--accent-dk); }
.shop-quote {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: var(--accent-soft); border: 1px solid #ecdcb8; border-radius: 14px;
    padding: 16px 20px; margin-bottom: 24px;
}
.shop-quote strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.shop-quote span { color: var(--ink-soft); font-size: .93rem; }
.shop-quote .btn { flex: none; }
.filter-bar--cat { margin-bottom: 12px; }
.filter-bar--brand { margin-bottom: 30px; }
.chip-sm { padding: 6px 13px; font-size: 0.85rem; }
.vat-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.vat-toggle-lbl { color: var(--muted); }
.vat-opt { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--ink-soft); }
.vat-opt:hover { border-color: var(--accent); color: var(--accent-dk); }
.vat-opt.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-vat { font-family: var(--font); font-weight: 600; font-size: .68rem; color: var(--muted); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.pdp-vatline { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.pdp-info .vat-toggle { margin-top: 16px; }
.summary-vatrows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 10px; }

/* ---- Tooteseeria värvivalik ---- */
.products-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.series-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.series-lbl { color: var(--muted); }
.series-opt {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
    font-weight: 600; color: var(--ink-soft);
}
.series-opt:hover { border-color: var(--accent); color: var(--accent-dk); }
.series-opt.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.series-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.series-opt--dark .series-dot { background: #1b1b1f; border: 1px solid #444; }
.series-opt--light .series-dot { background: #fff; border: 1px solid #c7ced6; }
/* Kompaktne (päises): ainult värvinupud */
.series-toggle--compact { gap: 6px; }
.series-toggle--compact .series-lbl,
.series-toggle--compact .series-txt { display: none; }
.series-toggle--compact .series-opt { padding: 6px; border-radius: 999px; }
/* Telefonis peida tooteseeria valik päisest (mahuks muidu logo peale) —
   valik on poe-lehel niikuinii olemas. */
@media (max-width: 560px) {
}

/* Värvipunktid tootekaardil */
.swatches { display: flex; gap: 8px; margin: 2px 0 4px; }
.swatch {
    width: 18px; height: 18px; border-radius: 50%; padding: 0; cursor: pointer;
    border: 1px solid var(--line); background: #fff; display: inline-block;
}
.swatch--black { background: #1b1b1f; border-color: #333; }
.swatch--white { background: #fff; border-color: #c7ced6; }
/* Kataloogis on peale musta ja valge veel neli värvi — vt product_colors(). */
.swatch--graphite { background: #3b4046; border-color: #565c63; }
.swatch--grey     { background: #9aa2aa; border-color: #7d858d; }
.swatch--silver   { background: linear-gradient(135deg, #e8ebee 0%, #b9c0c7 55%, #dfe3e7 100%); border-color: #adb5bd; }
.swatch--gold     { background: linear-gradient(135deg, #e8cf95 0%, #c8912b 55%, #e3c583 100%); border-color: #b8842a; }
.swatch--nickel   { background: linear-gradient(135deg, #d9dde0 0%, #a8b0b6 55%, #cfd4d8 100%); border-color: #9aa2a8; }
/* Ajaxi lülitikatete toonid. Ilma nendeta jäid mummud värvituks — CSS-is olid
   ainult must, valge ja neli metallitooni, aga kataloogis on ka need neli. */
.swatch--fog      { background: #c8c4bb; border-color: #aaa69d; }
.swatch--ivory    { background: #ece4d3; border-color: #cbc3b2; }
.swatch--oyster   { background: #d6ccbd; border-color: #b6ad9f; }
.swatch--olive    { background: #6f7357; border-color: #585c45; }
.swatch.is-active { box-shadow: 0 0 0 2px var(--accent); }

/* Tootelehe värvivalik */
.pdp-colors { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; }
.pdp-colors-lbl { font-size: .9rem; color: var(--muted); }
.pdp-swatches { display: flex; align-items: center; gap: 10px; }
.pdp-swatches .swatch { width: 26px; height: 26px; }
.pdp-color-name { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }

/* ---- Leheküljestus ---- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager-link {
    min-width: 40px; padding: 9px 12px; text-align: center;
    border: 1px solid var(--line); border-radius: 10px;
    font-weight: 600; color: var(--ink-soft);
}
.pager-link:hover { border-color: var(--accent); color: var(--accent-dk); }
.pager-link.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Küpsiseriba ---- */
.cookie-bar[hidden] { display: none; }
.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--ink); color: #dce5ee;
    padding: 14px 18px; border-radius: 14px;
    box-shadow: 0 16px 40px rgba(11,27,43,.35);
}
.cookie-bar p { font-size: .9rem; }
.cookie-bar a { color: var(--gold-bright); font-weight: 600; text-decoration: underline; }
.cookie-bar .btn { flex: none; }
@media (max-width: 560px) {
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---- Telefon päises ---- */

/* ---- Laoseis ---- */
.stock-line {
    display: flex; width: fit-content; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.9rem; font-weight: 600; margin: 10px 0 2px;
}
.product-card .stock-line { display: inline-flex; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.stock-in  { color: #1d7a4c; }
.stock-in .stock-dot  { background: #22a35f; box-shadow: 0 0 0 3px rgba(34,163,95,.16); }
.stock-out { color: #9a6a12; }
.stock-out .stock-dot { background: #d9a13b; box-shadow: 0 0 0 3px rgba(217,161,59,.18); }
.stock-note { font-weight: 500; color: var(--muted); }
.product-card .stock-line { margin: 4px 0 0; font-size: 0.84rem; }

/* ---- Kampaaniahind ---- */
.price-old {
    margin-left: 8px; font-family: var(--font); font-size: 0.85rem; font-weight: 600;
    color: var(--muted); text-decoration: line-through;
}
.sale-badge {
    display: inline-block; margin-left: 8px; padding: 3px 9px;
    background: #c0392b; color: #fff; border-radius: 999px;
    font-family: var(--font); font-size: 0.75rem; font-weight: 800; letter-spacing: .02em;
}
.sale-badge[hidden], .price-old[hidden] { display: none; }
.card-sale {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: #c0392b; color: #fff; border-radius: 999px;
    padding: 3px 10px; font-size: 0.75rem; font-weight: 800;
}

/* ---- Usaldusrida tootelehel ---- */
.pdp-trust {
    list-style: none; margin: 18px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px;
}
.pdp-trust li {
    position: relative; padding-left: 24px;
    font-size: 0.88rem; color: var(--ink-soft);
}
.pdp-trust li::before {
    content: ""; position: absolute; left: 0; top: 6px;
    width: 15px; height: 9px; border-left: 2px solid var(--accent-dk);
    border-bottom: 2px solid var(--accent-dk); transform: rotate(-45deg);
}
@media (max-width: 560px) { .pdp-trust { grid-template-columns: 1fr; } }

/* ---- "Osta koos" ---- */
.pdp-cross {
    margin-top: 46px; padding: 24px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
}
.pdp-cross h2 { margin: 0; }
.cross-intro { color: var(--muted); font-size: 0.92rem; margin: 4px 0 16px; }
.cross-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cross-item > label {
    display: grid; grid-template-columns: auto 56px 1fr auto; align-items: center; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
    cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.cross-item > label:hover { border-color: var(--accent); }
.cross-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-dk); }
.cross-thumb { width: 56px; height: 48px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 8px; }
.cross-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cross-thumb.is-placeholder img { opacity: .5; height: 26px; }
.cross-copy { min-width: 0; display: flex; flex-direction: column; }
.cross-name { font-weight: 600; color: var(--ink); }
.cross-name:hover { color: var(--accent-dk); }
.cross-sub { font-size: 0.82rem; color: var(--muted); }
.cross-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.cross-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.cross-total { font-weight: 700; }
@media (max-width: 560px) {
    .cross-item > label { grid-template-columns: auto 1fr auto; }
    .cross-thumb { display: none; }
}

/* ---- Kassa: äriklient ---- */
.b2b-block { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.check-inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check-inline input { width: 18px; height: 18px; accent-color: var(--accent-dk); }
.b2b-fields { margin-top: 14px; display: grid; gap: 14px; }
.b2b-fields[hidden] { display: none; }

/* Kassa: tarneaadress ja paigaldussoov */
.ship-block {
    border: 1px solid var(--line); border-radius: 14px;
    padding: 16px 18px 18px; margin: 4px 0 2px; display: grid; gap: 14px;
}
.ship-block legend {
    padding: 0 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.err-block { display: block; margin-bottom: 12px; }

/* ---- Tellimuse kinnitus: järgmised sammud ---- */
.confirm-next { text-align: left; margin: 26px 0 6px; padding: 20px 22px; background: var(--bg-alt); border-radius: 14px; }
.confirm-next h3 { margin: 0 0 10px; font-size: 1.05rem; }
.confirm-steps { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.94rem; }
.confirm-steps li { margin-bottom: 5px; }
.confirm-call { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); }
.confirm-phone, .confirm-mail { font-weight: 700; color: var(--accent-dk); margin-left: 8px; white-space: nowrap; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---- Korvi teavitus (toast) ---- */
.gs-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 200;
    transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 16px;
    max-width: min(92vw, 460px);
    background: var(--ink); color: #fff;
    padding: 13px 18px; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(11,27,43,.35);
    opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.gs-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* flex: 1 + min-width: 0 — muidu kahaneb tekst flex-kastis oma min-content
   laiuseni ja murdub sõnade kaupa, kuigi ribal endal on ruumi. */
.gs-toast-text { font-size: 0.93rem; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.gs-toast-link { color: var(--gold-bright); font-weight: 700; white-space: nowrap; text-decoration: underline; flex: none; }

/* Mobiilis üle ekraani laiuse: keskele tõstetud kitsas riba murdis teate
   nelja-viiele reale. left/right koos tähendab, et -50% nihet enam ei ole. */
@media (max-width: 560px) {
    .gs-toast {
        left: 12px; right: 12px; bottom: 14px; max-width: none;
        gap: 12px; padding: 12px 14px; transform: translateY(20px);
    }
    .gs-toast.is-on { transform: none; }
}
.btn.is-busy { opacity: .6; cursor: progress; }
.cart-badge[hidden] { display: none; }



.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn:disabled:hover { filter: none; transform: none; }

/* ======================================================================
   SMART GYM — menüülink, NEW badge ja korduvkasutatav promo-riba.
   Lehepõhised stiilid on assets/css/smart-gym.css (laetakse ainult /smart-gym).
   ====================================================================== */

/* Menüü: uue vertikaali silt */
.nav-sg { display: inline-flex; align-items: center; gap: 7px; }
.nav-badge {
    font-family: var(--font-display); font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-dk); background: rgba(200,145,43,.12);
    border: 1px solid rgba(200,145,43,.38); border-radius: 999px; padding: 2px 6px; line-height: 1.5;
}

/* Promo-riba (avaleht) — rahulik premium plokk, mitte kampaaniabänner */
.promo {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px;
    align-items: center; border-radius: 22px; padding: 40px 44px; overflow: hidden;
}
.promo--dark {
    background-color: #0a1826;
    background-image:
        radial-gradient(900px 520px at 88% 0%, rgba(200,145,43,.18), transparent 58%),
        linear-gradient(158deg, rgba(9,20,34,.92) 0%, rgba(8,17,29,.96) 62%);
    color: #e9eef4;
}
.promo--light { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); }
.promo-eyebrow {
    display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .13em;
    text-transform: uppercase; color: var(--gold-bright);
}
.promo--light .promo-eyebrow { color: var(--accent-dk); }
.promo-badge {
    font-size: .66rem; font-weight: 700; letter-spacing: .12em; color: #0b1b2b;
    background: var(--gold-bright); border-radius: 999px; padding: 3px 9px;
}
.promo--light .promo-badge { background: var(--accent); color: #fff; }
.promo-title {
    font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.14;
    margin: 0 0 14px; color: #fff; text-wrap: balance;
}
.promo--light .promo-title { color: var(--ink); }
.promo-text { margin: 0 0 22px; max-width: 52ch; color: #b7c5d4; }
.promo--light .promo-text { color: var(--ink-soft); }
.promo-points { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promo-points li {
    font-size: .82rem; color: #e9eef4; background: rgba(255,255,255,.06);
    border: 1px solid rgba(230,191,106,.3); border-radius: 999px; padding: 5px 12px;
}
.promo--light .promo-points li { color: var(--ink); background: rgba(200,145,43,.08); border-color: rgba(200,145,43,.32); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.promo--dark .promo-actions .link-arrow { color: var(--gold-bright); }

.promo-media { display: grid; gap: 16px; }
.promo-media--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promo-shot {
    margin: 0; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
}
.promo--light .promo-shot { background: #fff; border-color: var(--line); }
.promo-shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.promo-shot figcaption {
    font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; text-align: center;
    padding: 8px 10px; color: #8ea3b8;
}
.promo--light .promo-shot figcaption { color: var(--muted); }

@media (max-width: 900px) {
    .promo { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; }
    .promo-media { order: -1; }
}
@media (max-width: 560px) {
    .promo { padding: 26px 20px; border-radius: 18px; }
    .promo-media--pair { gap: 10px; }
    .promo-shot figcaption { font-size: .68rem; }
}


/* Tootelehe galerii — pisipildid põhipildi all */
.pdp-mediawrap { display: flex; flex-direction: column; gap: 12px; }
.pdp-thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb {
    display: block; width: 78px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line); background: var(--bg-alt);
    transition: border-color .2s ease, transform .2s ease;
}
.pdp-thumb img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; padding: 4px; }
.pdp-thumb:hover, .pdp-thumb:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.pdp-thumb.is-active { border-color: var(--accent-dk); box-shadow: 0 0 0 2px rgba(200,145,43,.22); }
@media (prefers-reduced-motion: reduce) { .pdp-thumb { transition: none; } }

/* Tootelehe ühenduse valik (juhtmevaba / Fibra) */
.pdp-types { margin-bottom: 6px; }
.pdp-typerow { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-typerow .chip { text-decoration: none; }

/* Tootekaardi tüübirida — inimkeelne vaste tootjakeelsele nimele */
.product-type { font-size: .86rem; color: var(--muted); margin: -2px 0 2px; }
/* Mudelikaart: mitu tehnilist varianti ühe pildi all. */
.product-variants {
    display: inline-block; margin-left: 8px; padding: 1px 7px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: .74rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.price-from { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1; }
.filter-bar--group { margin-bottom: 8px; }

/* ======================================================================
   PANE SÜSTEEM KOKKU — juhendatud valik (/valvesusteem)
   ====================================================================== */
.bld-step { margin-top: 44px; }
.bld-step-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 22px; }
.bld-step-n {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    color: #fff; background: var(--ink);
}
.bld-step-head h2 { font-size: 1.3rem; margin: 0 0 6px; }
.bld-step-head p { color: var(--ink-soft); font-size: .95rem; max-width: 68ch; }
.bld-hint { color: var(--muted); margin-top: 18px; }

/* Keskseadme valik */
/* Värvivalik konfiguraatori alguses */
.bld-series {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-alt); padding: 16px 20px; margin-bottom: 30px;
}
.bld-series-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bld-series-copy strong { font-family: var(--font-display); font-size: 1rem; }
.bld-series-copy span { color: var(--muted); font-size: .88rem; max-width: 60ch; }
.bld-series .series-toggle { flex: none; }

/* Samm 1a: ühendustüübi valik enne mudelit */
.bld-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.bld-type {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
    background: var(--bg); color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.bld-type:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(11,27,43,.08); }
.bld-type.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bld-type strong { font-family: var(--font-display); font-size: 1.1rem; }
.bld-type-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.bld-type-price { margin-top: 4px; font-weight: 700; color: var(--accent-dk); }
.bld-type-price small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.bld-substep { margin-top: 26px; }
.bld-substep h3 { font-size: 1rem; margin: 0 0 14px; }

.bld-hubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.bld-hub {
    display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
.bld-hub:hover { border-color: var(--accent); }
.bld-hub.is-active { border-color: var(--accent-dk); box-shadow: 0 0 0 2px rgba(200,145,43,.25); }
.bld-hub-media { background: var(--bg-alt); aspect-ratio: 4 / 3; display: block; }
.bld-hub-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bld-hub-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.bld-hub-body strong { font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
.bld-hub-type { font-size: .82rem; color: var(--muted); }
.bld-hub-price { font-family: var(--font-display); font-weight: 700; margin-top: 4px; }

/* Vajaduste plokid */
.bld-need { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.bld-need-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bld-need-head h3 { font-size: 1.05rem; margin: 0; }
.bld-need-hint { color: var(--muted); font-size: .88rem; }
.bld-items { display: grid; gap: 10px; }
.bld-item {
    display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center;
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
    transition: border-color .15s ease, background .15s ease;
}
.bld-item.is-on { border-color: var(--accent); background: rgba(200,145,43,.05); }
.bld-item-media { width: 64px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.bld-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bld-item-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bld-item-copy strong { font-size: .96rem; font-weight: 600; }
.bld-item-type { font-size: .82rem; color: var(--muted); }
.bld-item-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.bld-item-range { color: var(--muted); font-weight: 600; }
/* Mudeli sisene variandivalik ("Heat/CO", "2-gang") */
.bld-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.bld-pick-lbl { color: var(--muted); font-size: .8rem; }
.bld-pick select {
    font: inherit; font-size: .85rem; padding: 5px 26px 5px 9px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink);
    max-width: 100%;
}
.bld-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bld-item.is-fixed .bld-qty-input { opacity: .7; }
.bld-hub-vars { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }

.bld-qty { display: inline-flex; align-items: center; gap: 4px; }
.bld-qty-btn {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
    font-size: 1rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.bld-qty-btn:hover { border-color: var(--accent); color: var(--accent-dk); }
.bld-qty-input {
    width: 52px; text-align: center; padding: 6px 4px; border: 1px solid var(--line);
    border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink);
}

/* Kokkuvõte */
.bld-summary { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.bld-sumlist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bld-sumlist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; font-size: .93rem; color: var(--ink-soft); }
.bld-sum-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.bld-sum-price { font-variant-numeric: tabular-nums; }
.bld-sum-empty { color: var(--muted); }
.bld-sumfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.bld-sumtotal { display: flex; align-items: baseline; gap: 8px; }
.bld-sumtotal-lbl { color: var(--muted); font-size: .9rem; }
.bld-sumtotal strong { font-family: var(--font-display); font-size: 1.6rem; }
.bld-note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

@media (max-width: 620px) {
    .bld-item { grid-template-columns: 52px 1fr; row-gap: 8px; }
    .bld-item-media { width: 52px; }
    .bld-item-price { grid-column: 1 / -1; }
    .bld-qty { grid-column: 1 / -1; justify-content: flex-start; }
    .bld-step-head { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bld-hub, .bld-item { transition: none; } }


/* ======================================================================
   PÄRINGUVORM KONTEKSTIGA (/kusi-pakkumist)
   ====================================================================== */
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 32px; } }

.lead-block { border: 0; padding: 0; margin: 0 0 22px; }
.lead-block legend {
    padding: 0; margin-bottom: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--ink);
}
.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip { position: relative; }
.lead-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.lead-chip span {
    display: inline-block; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
    font-size: .92rem; font-weight: 500; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.lead-chip span:hover { border-color: var(--accent); color: var(--accent-dk); }
.lead-chip input:checked + span {
    border-color: var(--accent); background: var(--accent); color: #16212c; font-weight: 600;
}
.lead-chip input:focus-visible + span { outline: 2px solid var(--accent-dk); outline-offset: 2px; }

.quote-side { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.quote-side h2 { font-size: 1.1rem; margin: 0 0 16px; }
.quote-steps { list-style: none; counter-reset: qs; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.quote-steps li { counter-increment: qs; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.quote-steps li::before {
    content: counter(qs); grid-row: span 2;
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-family: var(--font-display); font-size: .8rem; font-weight: 700;
}
.quote-steps strong { font-size: .95rem; }
.quote-steps span { color: var(--muted); font-size: .88rem; grid-column: 2; }
.quote-direct { border-top: 1px solid var(--line); padding-top: 18px; }
.quote-direct-lbl { color: var(--muted); font-size: .85rem; margin: 0 0 8px; }
.quote-phone { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.quote-phone:hover { color: var(--accent-dk); }
.quote-mail { display: block; font-size: .92rem; margin-top: 4px; }


/* ======================================================================
   AVALEHE MÜÜGITEEKOND — usaldusriba, segmendid, lahendused, sammud
   ====================================================================== */
.gtrust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 26px; }
.gtrust { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.gtrust svg { color: var(--gold-bright); margin-top: 3px; }
.gtrust strong { display: block; font-size: .93rem; font-weight: 600; line-height: 1.3; color: inherit; }
.gtrust span { display: block; font-size: .84rem; opacity: .72; margin-top: 1px; color: inherit; }
/* Riba on hero sees — värv tuleb hero teemast, mitte lehe põhitekstist. */
.hero-dark .gtrust { color: #fff; }
.hero-light .gtrust { color: var(--ink); }

.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.seg-card {
    display: flex; flex-direction: column; gap: 8px; color: inherit;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    padding: 24px 22px 20px;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.seg-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(11,27,43,.09); }
.seg-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(200,145,43,.12); color: var(--accent-dk); margin-bottom: 4px;
}
.seg-card strong { font-family: var(--font-display); font-size: 1.06rem; }
.seg-desc { color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.seg-go { font-weight: 600; font-size: .88rem; color: var(--accent-dk); margin-top: 4px; }

.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sol-card {
    display: grid; grid-template-columns: 42px 1fr; gap: 6px 16px; color: inherit;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    padding: 20px 22px;
    transition: border-color .16s ease, background .16s ease;
}
.sol-card:hover { border-color: var(--accent); background: rgba(200,145,43,.04); }
.sol-icon {
    grid-row: span 2; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(11,27,43,.06); color: var(--ink);
}
.sol-card:hover .sol-icon { background: rgba(200,145,43,.14); color: var(--accent-dk); }
.sol-card strong { font-family: var(--font-display); font-size: 1.02rem; align-self: center; }
.sol-desc { color: var(--muted); font-size: .89rem; line-height: 1.5; }

.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.how-step { display: flex; flex-direction: column; gap: 6px; }
.how-n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1; }
.how-step strong { font-size: 1rem; }
.how-step span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.how-cta { margin-top: 30px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
/* Mobiilis tõstab kasude loend CTA liiga alla — usaldusriba ütleb sama. */
@media (max-width: 620px) { .hero-benefits { display: none; } }
@media (max-width: 560px) { .cta-actions .btn { width: 100%; } }

/* ======================================================================
   NAVIGATSIOON — kujundusmaketi järgi (design/example.png)
   Riba on ALATI tume: maketis istub ta tumeda hero peal ja siselehtedel
   jääb samaks. Nii ei ole vaja läbipaistvuse/frosti vahetust ega selle
   backdrop-filter konteineri probleeme.
   ====================================================================== */
:root { --hdr-h: 72px; }
@media (max-width: 1180px) { :root { --hdr-h: 62px; } }

/* Tume hero algab lehe ülaservast, riba on selle peal. */
.hero-dark { margin-top: calc(-1 * var(--hdr-h)); padding-top: var(--hdr-h); }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-solid { background: var(--ink-deep); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.gsnav { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand .logo { height: 30px; width: auto; }
.word {
    font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
    letter-spacing: .08em; color: #fff; line-height: 1;
}
.word .s { color: #fff; }   /* maketis on kogu sõna ühte värvi */

.gsnav-main { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.gsnav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.78);
    border-radius: 8px; white-space: nowrap;
    transition: color .16s ease, background .16s ease;
}
.gsnav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.gsnav-caret { opacity: .55; transition: transform .22s ease; }
.gsnav-link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.1); }
.gsnav-link[aria-expanded="true"] .gsnav-caret { transform: rotate(180deg); opacity: 1; }

.gsnav-util { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gsnav-icon {
    position: relative; display: grid; place-items: center;
    width: 38px; height: 38px; border: 0; background: none; cursor: pointer;
    border-radius: 50%; color: rgba(255,255,255,.85);
    transition: background .16s ease, color .16s ease;
}
.gsnav-icon:hover { background: rgba(255,255,255,.1); color: #fff; }
.gsnav-cart .cart-badge {
    position: absolute; top: 3px; right: 2px;
    background: var(--accent); color: var(--accent-ink);
}
.gsnav-lang {
    padding: 8px 10px; border-radius: 8px; font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; color: rgba(255,255,255,.75);
}
.gsnav-lang:hover { background: rgba(255,255,255,.1); color: #fff; }
.gsnav-quote {
    margin-left: 10px; padding: 11px 22px; border-radius: 10px;
    background: linear-gradient(180deg, #f0dba9 0%, var(--accent) 100%);
    color: var(--accent-ink); font-size: .9rem; font-weight: 600; white-space: nowrap;
    transition: filter .18s ease;
}
.gsnav-quote:hover { filter: brightness(1.07); color: var(--accent-ink); }

/* --- burger --- */
.gsnav-burger {
    display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    position: relative; border-radius: 9px;
}
.gsnav-burger span {
    position: absolute; left: 11px; width: 18px; height: 1.8px; border-radius: 2px;
    background: #fff; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.gsnav-burger span:nth-child(1) { top: 17px; }
.gsnav-burger span:nth-child(2) { top: 22px; }
.gsnav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(2.5px) rotate(45deg); }
.gsnav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-2.5px) rotate(-45deg); }

/* --- otsinguriba --- */
.gsnav-search { background: var(--ink-deep); border-top: 1px solid rgba(255,255,255,.08); }
.gsnav-search[hidden] { display: none; }
.gsnav-search-in { display: flex; align-items: center; gap: 12px; height: 64px; color: rgba(255,255,255,.55); }
.gsnav-search-in input {
    flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem;
    color: #fff; padding: 8px 0;
}
.gsnav-search-in input::placeholder { color: rgba(255,255,255,.45); }
.gsnav-search-in input:focus { outline: none; }
.gsnav-search-x { border: 0; background: none; font-size: 1.7rem; line-height: 1; color: rgba(255,255,255,.6); cursor: pointer; padding: 0 4px; }

/* --- avanev paneel --- */
.gsp {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-deep);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
    animation: gsp-in .24s cubic-bezier(.2,.7,.3,1) both;
}
.gsp[hidden] { display: none; }
.gsp-mobile { display: none; }
@keyframes gsp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.gsp-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-block: 36px 40px; }
.gsp-h {
    font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.45); margin: 0 0 16px;
}
.gsp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gsp-list--two { grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.gsp-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; margin-left: -10px; border-radius: 9px;
    color: rgba(255,255,255,.86); font-size: .96rem; font-weight: 500;
    transition: background .14s ease, color .14s ease;
}
.gsp-list a:hover { background: rgba(255,255,255,.07); color: #fff; }
.gsp-ico {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
    background: rgba(255,255,255,.07); color: var(--accent); flex: none;
}
.gsp-list a:hover .gsp-ico { background: rgba(232,203,143,.16); }

.gsp-promo { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 24px; align-self: start; }
.gsp-promo-lbl { font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.gsp-promo-title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.4; margin: 0 0 16px; color: #fff; }
.gsp-promo-cta { font-weight: 600; font-size: .92rem; color: var(--accent); }
.gsp-promo-cta:hover { color: #fff; }
.gsp-phone {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1); width: 100%;
    color: rgba(255,255,255,.8); font-size: .92rem; font-weight: 600;
}
.gsp-phone:hover { color: var(--accent); }

.gsnav-scrim {
    position: fixed; inset: var(--hdr-h) 0 0; z-index: 90; background: rgba(3,8,14,.5);
    animation: gsp-fade .24s ease both;
}
.gsnav-scrim[hidden] { display: none; }
@keyframes gsp-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- mobiil ---------------- */
/*
 * Sülearvuti vahemik. Nav ei kahane (linkidel white-space: nowrap), nii et
 * 1181-1365 px juures ulatus "Küsi pakkumist" üle akna serva ja leht sai
 * horisontaalse kerimisriba. Siin võetakse vahed ja polsterdus kokku — see
 * annab ~100 px, mida on rohkem kui kitsaimal kohal (1181 px) vaja.
 * Allpool 1180 px ei aita ka tihendamine, seal läheb menüü burgeri alla.
 */
@media (max-width: 1365px) {
    .gsnav { gap: 16px; }
    .gsnav-main { margin-left: 0; }
    .gsnav-link { padding-inline: 9px; }
    .gsnav-quote { margin-left: 6px; padding-inline: 16px; }
}

/* NB: piir peab olema sama mis site.js-i `mobile()` funktsioonis. */
@media (max-width: 1180px) {
    .gsnav { gap: 12px; }
    .gsnav-main, .gsnav-quote { display: none; }
    .gsnav-burger { display: block; }
    .gsnav-util { gap: 0; }

    html[data-nav-open] { overflow: hidden; }
    html[data-nav-open] .site-header,
    html[data-nav-open] .site-header.is-solid { background: var(--ink-deep); }

    .gsp {
        position: fixed; inset: var(--hdr-h) 0 0; top: var(--hdr-h);
        box-shadow: none; border: 0; border-top: 1px solid rgba(255,255,255,.08);
        overflow-y: auto; overscroll-behavior: contain;
        animation: gsp-slide .28s cubic-bezier(.2,.7,.3,1) both;
    }
    @keyframes gsp-slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .gsp-inner { grid-template-columns: 1fr; gap: 26px; padding-block: 26px 40px; }
    .gsp-list--two { grid-template-columns: 1fr; }
    .gsp-list a { font-size: 1.06rem; padding: 13px 10px; }
    .gsnav-scrim { display: none !important; }
    .gsp-mobile:not([hidden]) { display: block; }

    .gsp-root { display: grid; gap: 2px; }
    .gsp-root a, .gsp-root button {
        display: flex; align-items: center; justify-content: space-between; width: 100%;
        padding: 16px 10px; margin-left: -10px; border: 0; background: none; cursor: pointer;
        font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: #fff;
        border-radius: 10px; text-align: left;
    }
    .gsp-root a:hover, .gsp-root button:hover { background: rgba(255,255,255,.06); }
    .gsp-root .gsnav-caret { transform: rotate(-90deg); opacity: .45; width: 13px; height: 13px; }
    .gsp-foot { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 14px; }
    .gsp-foot .gsnav-quote { display: block; text-align: center; padding: 15px; font-size: 1rem; margin: 0; }
    .gsp-foot .gsp-phone { border: 0; padding: 0; margin: 0; font-size: 1rem; }
}
@media (max-width: 560px) {
    .word { font-size: 1rem; letter-spacing: .06em; }
    .brand .logo { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .gsp, .gsnav-scrim { animation: none; }
    .gsnav-burger span, .gsnav-caret { transition: none; }
}


/* ======================================================================
   HERO — kujundusmaketi järgi (design/example.png)
   Täisformaadis foto, vasakul sõnum, paremal sündmuste virn, all usaldus.
   ====================================================================== */
/* Padding: ainult päise jagu üleval. Vana hele .hero annab 96/80px, mis
   jätaks usaldusriba alla tühja musta triibu — see tuleb nullida. Ülemist
   var(--hdr-h) EI tohi ära võtta: läbipaistev päis katab hero ülemist serva
   (.hero-dark margin-top), ilma selleta jookseb eyebrow mobiilis riba alla. */
.hero-shot { position: relative; overflow: hidden; padding: var(--hdr-h) 0 0; background: var(--ink-deep); }
/* Hero foto: klaasfassaadiga maja vihmasel hämaral, soe aknavalgus, märg
   asfalt peegeldab (Unsplash — vaba litsents). Kompositsioon on hero jaoks
   valitud: maja paremal pool kaadrit, vasak kolmandik tühi ja tume, nii et
   pealkiri istub pildil, mitte fassaadil. Kerge tumendus hoiab teksti
   loetavana; gradient allpool teeb ülejäänu. Vaheta pilti ainult siis, kui uus
   on sama meeleoluga ja sama kompositsiooniga. */
.hero-shot-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('/assets/img/hero-night.webp') 50% 48% / cover no-repeat;
    filter: brightness(.95) saturate(1.02);
}
/* Gradient vasakult: pealkirja all peaaegu läbipaistmatu, maja kohal hõre,
   et soe aknavalgus jääks alles (maketis on parem pool selgelt nähtav).
   Vertikaalne gradient tumendab riba all ja sulatab hero järgmisse sektsiooni. */
.hero-shot::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(97deg, var(--ink-deep) 0%, rgba(5,13,22,.90) 20%, rgba(5,13,22,.46) 46%,
                        rgba(5,13,22,.24) 66%, rgba(5,13,22,.38) 100%),
        linear-gradient(180deg, rgba(5,13,22,.62) 0%, transparent 24%, rgba(5,13,22,.55) 74%, rgba(5,13,22,.92) 100%);
}
.hero-shot > .wrap { position: relative; z-index: 2; }

.hero-shot .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .78fr);
    gap: 50px; align-items: center; padding-block: 46px 40px; min-height: 500px;
}
.hero-shot .eyebrow {
    display: block; color: rgba(255,255,255,.62); font-size: .76rem;
    letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px;
}
.hero-shot h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.07; letter-spacing: -.025em;
    color: #fff; margin: 0 0 20px; max-width: 17ch; text-wrap: balance;
}
.hero-shot h1 .hl { color: #fff; }   /* maketis on pealkiri ühte värvi */
.hero-sub {
    color: rgba(255,255,255,.72); font-size: 1.06rem; line-height: 1.6;
    max-width: 34ch; margin: 0 0 32px;
}
.hero-shot .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 0; }
/* Teisene nupp on maketis tumeda täidisega, mitte läbipaistev — fotol
   kaob läbipaistev ääris ära. */
.hero-shot .btn-ghost {
    background: rgba(9,18,29,.6); border-color: rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-shot .btn-ghost:hover { background: rgba(9,18,29,.8); border-color: rgba(255,255,255,.5); color: #fff; }

/* --- sündmuste virn --- */
.hero-shot .hero-live { display: block; width: 100%; }
/*
 * Voo kast on lõikav. Lahkuv rida on `position: absolute` ja saab oma `top`-i
 * JS-ist; kui mõõtmine satub sammu võrra mööda (kitsas kaader, kus pealkiri
 * murdub kahele reale, või taustavahekaardist naasmine), ilmub virna alla või
 * peale viies kaart. `overflow: hidden` teeb selle võimatuks. Vari vajab ruumi,
 * nii et lõikeala on paddinguga suurem ja negatiivne margin võtab selle
 * paigutusest tagasi — muidu nihkuks vertikaalselt tsentreeritud virn.
 */
.hero-shot .hero-feed {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    min-height: 0; max-width: 348px; margin: 0 -10px -26px auto;
    padding: 0 10px 26px; overflow: hidden;
}
.hero-shot .ev {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px;
    padding: 15px 17px; border-radius: 14px;
    background: rgba(12,20,30,.56); border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    animation: ev-in .5s cubic-bezier(.2,.7,.3,1) backwards;
}
/* Uusim rida on alati üleval ja veidi eredam — pilk läheb sinna. */
.hero-shot .ev:first-child { background: rgba(22,32,45,.72); border-color: rgba(255,255,255,.2); }
.hero-shot .ev-ico {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    color: #fff; display: grid; place-items: center;
}
.hero-shot .ev--alert { border-color: rgba(224,87,74,.5); background: rgba(50,17,15,.62); }
.hero-shot .ev--alert .ev-ico { border-color: #e0574a; color: #ff8f7a; background: rgba(224,87,74,.16); }
.hero-shot .ev--green .ev-ico { border-color: rgba(61,220,132,.5); color: #6ee7a8; background: rgba(61,220,132,.12); }
.hero-shot .ev-copy b { display: block; color: #fff; font-size: .93rem; font-weight: 600; line-height: 1.25; }
.hero-shot .ev-copy i {
    display: block; color: rgba(255,255,255,.5); font-size: .8rem; font-style: normal;
    margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Kellaaeg jääb nähtavale (JS kirjutab sinna päris kella) — maketis on aeg
   alamreal, aga seadme nimi on külastajale olulisem, nii et aeg läheb serva. */
.hero-shot .ev-time {
    display: block; align-self: start; margin-top: 1px;
    font-size: .72rem; color: rgba(255,255,255,.38); font-variant-numeric: tabular-nums;
}
.hero-shot .ev--out { position: absolute; left: 0; right: 0; z-index: 0; opacity: 0; transform: translateY(10px) scale(.985); }

/* --- usaldusriba hero jalas --- */
.hero-trust {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 40px;
    padding-block: 28px 40px; border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust-items {
    flex: 1 1 auto;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 30px;
}
/* Demoviide: maketis videonupp, meil sammude sektsioon (#kuidas). */
.hero-demo {
    flex: none; display: inline-flex; align-items: center; gap: 11px;
    color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 500; white-space: nowrap;
}
.hero-demo:hover { color: #fff; }
.hero-demo-ico {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); color: #fff;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
/* Inline-SVG istub vaikimisi tekstijoonel ja jääb ringis paar pikslit alla. */
.hero-demo-ico svg { display: block; }
.hero-demo:hover .hero-demo-ico { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* align-content: start — ühe veeru vaates (mobiil) venitaks grid auto-read
   madalama kaardi sees laiali ja selle pealkiri vajuks naabri omast allapoole. */
.htrust { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; align-content: start; }
/* Ikoon on ring, mitte ümar ruut: maketis on hero jalas ringid ja ruut lõi
   pealkirja kõrval liiga raske ploki. */
.htrust-ico {
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); color: var(--accent);
}
.htrust-ico svg { display: block; }
/* Kirjeldus on tekstiveeru span, ikoon on samuti span (.htrust-ico). Selektor
   peab jääma tekstikasti sisse: '.htrust span' on tugevam kui '.htrust-ico'
   ja viis ikoonilt tsentreerimise, kuldse värvi ning peitis ta 1180px all. */
/*
 * Nii pealkirjal kui kirjeldusel on kaks rida ette broneeritud. Väited on eri
 * pikkusega ("Kohalik tugi" vs "Sertifitseeritud paigaldus", "Aitame alati" vs
 * "Terviksüsteem, mitte üksikud seadmed"), nii et ilma broneeringuta algavad
 * kirjeldused neljas tulbas eri kõrguselt ja rea alumine serv on sakiline.
 * Suuruste vahe hoitakse väike (.82 vs .76rem) — varem luges paks valge
 * pealkiri kõrvuti kahvatu pisikese kirjeldusega ebaproportsionaalsena.
 */
.htrust strong {
    display: block; color: #fff; font-size: .82rem; font-weight: 600;
    line-height: 1.32; min-height: calc(1.32em * 2);
}
.htrust > div span {
    display: block; color: rgba(255,255,255,.55); font-size: .76rem;
    line-height: 1.38; margin-top: 4px; min-height: calc(1.38em * 2);
}

@media (max-width: 1180px) {
    .hero-trust { gap: 26px; }
    .hero-trust-items { gap: 14px 20px; }
    .htrust > div span { display: none; }   /* kitsal ekraanil jääb ainult väide */
    .htrust strong { min-height: 0; }       /* kirjelduseta pole rida vaja ette broneerida */
}
@media (max-width: 980px) {
    /* Kitsas kaader lõikab fotost vertikaalse riba — too valgustatud klaassein
       kaadrisse, muidu jääb ekraanile ainult tume sissesõidutee. */
    .hero-shot-bg { background-position: 42% 44%; }
    .hero-shot .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 30px 30px; min-height: 0; }
    .hero-shot .hero-feed { max-width: none; margin-left: 0; }
    .hero-trust { flex-wrap: wrap; gap: 20px; padding-block: 22px 34px; }
    .hero-trust-items { grid-template-columns: 1fr 1fr; gap: 18px; }
    .htrust > div span { display: block; }
    .htrust strong { min-height: calc(1.32em * 2); }  /* kirjeldus tagasi -> jälle ühine joon */
    .hero-demo { width: 100%; }
}
@media (max-width: 560px) {
    .hero-shot h1 { max-width: none; }
    .hero-sub { max-width: none; margin-bottom: 26px; }
    .hero-shot .hero-actions .btn { width: 100%; justify-content: center; }
    /* Neli väidet ühes veerus venitas hero mobiilis liiga pikaks. */
    .hero-trust-items { gap: 16px 14px; }
    .htrust { grid-template-columns: 1fr; gap: 6px; }
    .htrust > div span { font-size: .74rem; }
    .hero-shot .hero-feed .ev:nth-child(n+3) { display: none; }   /* mobiilis kaks rida */
}


/* ======================================================================
   PARTNERIRIBA + TOOTEKATEGOORIAD — kujundusmaketi järgi
   ====================================================================== */
.section-slim { padding-block: 30px; }
.partner-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.partner-row { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.partner-link { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .78; transition: opacity .18s ease; }
.partner-link:hover { opacity: 1; }
.partner-logo { height: 26px; width: auto; filter: grayscale(1) contrast(.8); }
.partner-link:hover .partner-logo { filter: none; }
.partner-role { font-size: .7rem; letter-spacing: .05em; color: var(--muted); }
/*
 * AEKE-l ei ole logofaili — sõnamärk kirjas, sama optilise kõrgusega kui logod.
 * Värv peab jääma logode omaga ühte: pildid käivad läbi grayscale-filtri ja
 * loevad heleda hallina, nii et täistumedas kirjas sõnamärk hüppas reast välja.
 */
.partner-word {
    display: block; height: 26px; line-height: 26px; font-family: var(--font-display);
    font-size: 1.32rem; font-weight: 600; letter-spacing: .1em; color: #b3b9c2;
    transition: color .18s ease;
}
.partner-link:hover .partner-word { color: var(--ink); }

.section-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; font-size: 1.78rem; letter-spacing: -.02em; }

.cat-grid { display: grid; grid-template-columns: repeat(var(--cat-cols, 6), minmax(0, 1fr)); gap: 14px; }
.cat-card {
    position: relative; display: block; overflow: hidden; color: #fff;
    aspect-ratio: 5 / 12; min-height: 380px; border-radius: 14px;
    background: linear-gradient(170deg, #1b1f26 0%, #0c1015 62%, #07090d 100%);
    padding: 24px 20px; isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(0,0,0,.34); }
/*
 * Foto katab kaardi alumised 76% ja selle ülemine serv hajub maski kaudu kaardi
 * taustaks — kõik kategooriafotod on peaaegu mustad, nii et üleminekut ei näe.
 * Ülemine viiendik jääb puhtaks pealkirja jaoks.
 *
 * Fotod on tootja lavastuskaadrid (bin/category_images.php): seade täidab kaadri
 * ja kannab oma valgust. Väljalõigatud seadet lameda gradiendi peal proovitud —
 * seade jäi väikeseks ja rida luges odavamana kui tootja enda materjal.
 */
.cat-shot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
    width: 100%; height: 76%; max-width: none; object-fit: cover; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 24%, #000 50%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 24%, #000 50%);
    transition: transform .4s ease;
}
.cat-card:hover .cat-shot { transform: scale(1.045); }
/*
 * Loor kannab teksti: pealkiri võib olla kahe-kolmerealine (ingliskeelsed on
 * pikemad), nii et ülaosa tumendus ulatub kolmanda reani ja alumine hoiab
 * noole loetavana.
 */
.cat-veil {
    position: absolute; inset: 0; z-index: 1; display: block; pointer-events: none;
    background: linear-gradient(180deg,
        rgba(5,9,14,.78) 0%, rgba(5,9,14,.62) 20%, rgba(5,9,14,.18) 36%, transparent 48%,
        transparent 64%, rgba(5,9,14,.55) 88%, rgba(5,9,14,.82) 100%);
}
.cat-copy { position: relative; z-index: 2; display: block; text-shadow: 0 1px 14px rgba(5,9,14,.7); }
.cat-copy strong { display: block; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; color: #fff; }
.cat-brand {
    display: block; margin-top: 8px; font-size: .78rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.66);
}
.cat-sub { display: block; margin-top: 10px; font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.6); }
.cat-go {
    position: absolute; left: 20px; bottom: 20px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--accent-line); color: var(--accent);
    transition: background .18s ease, color .18s ease;
}
.cat-card:hover .cat-go { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cat-card { min-height: 280px; padding: 18px 16px; }
    .cat-copy strong { font-size: .98rem; }
    .cat-sub { display: none; }
    .partner-row { gap: 28px; }
}


/* ======================================================================
   AVALEHE SEKTSIOONID KUJUNDUSMAKETI JÄRGI (design/webexample.png)
   Pood -> lahenduse valija -> "mida soovid lahendada" -> usaldusplokk.
   ====================================================================== */

/* --- Kõige populaarsemad tooted --------------------------------------- */
.pop-head { align-items: center; }
.pop-tabs { display: flex; gap: 22px; flex: 1 1 auto; }
/* Vahekaart on tekst allajoonega, mitte nupp — maketis kannab valikut ainult
   kuldne joon ja tekstivärv. */
.pop-tab {
    appearance: none; background: none; border: 0; padding: 0 0 6px; cursor: pointer;
    font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.pop-tab:hover { color: var(--ink); }
.pop-tab.is-on { color: var(--ink); border-bottom-color: var(--accent); }

.pop-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
/* `display: grid` võidab [hidden] omaduse üle — ilma selle reata on kõik kolm
   vahekaardi paneeli korraga lahti. */
.pop-grid[hidden] { display: none; }
.pop-card {
    display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line);
    border-radius: 12px; padding: 14px 14px 16px; transition: border-color .18s ease, box-shadow .18s ease;
}
.pop-card:hover { border-color: var(--accent-line); box-shadow: 0 14px 30px rgba(11,27,43,.08); }
.pop-thumb {
    position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
    margin-bottom: 12px; overflow: hidden;
}
.pop-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pop-thumb .thumb-mark { width: 44%; opacity: .16; }
.pop-badge {
    position: absolute; left: 0; top: 0; z-index: 1;
    padding: 3px 8px; border-radius: 5px; background: var(--ink-deep); color: #fff;
    font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.pop-badge--sale { background: #c6402c; }
.pop-name { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.3; }
.pop-name a { color: var(--ink); }
.pop-name a:hover { color: var(--accent-dk); }
.pop-type { display: block; margin-top: 3px; font-size: .76rem; color: var(--muted); }
/* margin-top: auto hoiab hinnarea kaardi põhjas ka siis, kui nimi on ühe- või
   kolmerealine — muidu hüppab ostunupp real üles-alla. */
.pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.pop-price { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.pop-price .price-old { display: block; font-size: .74rem; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.pop-add {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border: 0; border-radius: 9px; cursor: pointer;
    background: var(--ink-deep); color: #fff; transition: background .16s ease, color .16s ease;
}
.pop-add:hover { background: var(--accent); color: var(--accent-ink); }
.pop-add svg { display: block; }

@media (max-width: 1100px) { .pop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pop-tabs { order: 3; width: 100%; gap: 16px; overflow-x: auto; }
    /* Puutesihtmärk vähemalt ~40 px kõrge — tekstvahekaart oli 32 px. */
    .pop-tab { padding: 9px 0 7px; }
}

/* --- Leia oma ideaalne lahendus (tume riba) ---------------------------- */
.finder-band { position: relative; overflow: hidden; background: var(--ink-deep); color: #fff; padding-block: 0; }
/*
 * Taust on sama hero foto — uut varafaili see riba ei nõua. Gradient on
 * vasakult peaaegu läbipaistmatu, et pealkiri ja CTA istuksid pildil, mitte
 * fassaadil; paremal jääb foto nähtavaks kaardi taha.
 */
.finder-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('/assets/img/hero-night.webp') 58% 46% / cover no-repeat;
}
.finder-band::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(94deg, var(--ink-deep) 0%, rgba(5,13,22,.92) 26%,
                rgba(5,13,22,.55) 52%, rgba(5,13,22,.42) 100%);
}
.finder-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 48px; align-items: center; padding-block: 56px;
}
.finder-lead h2 { margin: 0 0 12px; color: #fff; font-size: 1.86rem; letter-spacing: -.02em; }
.finder-lead > p { margin: 0 0 26px; max-width: 34ch; color: rgba(255,255,255,.74); line-height: 1.6; }
.finder-notes { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; }
.finder-notes li { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.62); }
.finder-notes svg { display: block; flex: none; color: var(--accent); }

.finder-card {
    border-radius: 14px; padding: 24px; background: rgba(10,18,28,.72);
    border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.finder-card h3 { margin: 0 0 18px; font-size: 1rem; line-height: 1.35; color: #fff; }
.finder-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finder-opt {
    display: flex; align-items: center; gap: 10px; min-height: 52px;
    padding: 10px 13px; border-radius: 10px; font-size: .84rem; font-weight: 500;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88);
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.finder-opt svg { flex: none; color: var(--accent); transition: color .16s ease; }
.finder-opt:hover { background: #fff; border-color: #fff; color: var(--ink); }
.finder-opt:hover svg { color: var(--accent-dk); }

@media (max-width: 900px) {
    .finder-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; }
    .finder-lead > p { max-width: none; }
}
@media (max-width: 560px) {
    .finder-opts { grid-template-columns: 1fr; }
    .finder-lead .btn { width: 100%; justify-content: center; }
}

/* --- Mida soovid lahendada? (heledad plaadid) -------------------------- */
.need-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.need-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    min-height: 146px; padding: 20px 14px 16px; border-radius: 12px;
    background: var(--bg-alt); border: 1px solid transparent; color: var(--ink);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.need-card:hover { background: var(--bg); border-color: var(--accent-line); transform: translateY(-3px); }
.need-ico { display: block; color: var(--ink); }
.need-ico svg { display: block; }
.need-card strong { font-size: .84rem; font-weight: 600; line-height: 1.35; }
/* Nool on maketis plaadi põhjas omal real — margin-top: auto hoiab ta seal ka
   siis, kui pealkiri on ühe- või kaherealine. */
.need-go { margin-top: auto; color: var(--muted); transition: color .18s ease; }
.need-go svg { display: block; }
.need-card:hover .need-go { color: var(--accent-dk); }

@media (max-width: 1100px) { .need-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .need-card { min-height: 130px; padding: 16px 10px 14px; }
}

/* --- Miks valida GuardSmart? (usaldusplokk) ---------------------------- */
.whybuy-title { margin: 0 0 26px; font-size: 1.78rem; letter-spacing: -.02em; }
.whybuy-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 26px; }
.whybuy { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; align-content: start; }
.whybuy-ico {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--accent-line); color: var(--accent-dk); background: var(--bg);
}
.whybuy-ico svg { display: block; }
/* Sama põhimõte mis hero usaldusribal: mõlemale reale ruum ette, muidu on rea
   alumine serv sakiline. */
.whybuy strong { display: block; font-size: .84rem; font-weight: 600; line-height: 1.32; min-height: calc(1.32em * 2); }
.whybuy > div span { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 1100px) { .whybuy-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
    .whybuy-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .whybuy { grid-template-columns: 1fr; gap: 8px; }
    .whybuy strong { min-height: 0; }
}

/* --- Otsingusoovitused (päise otsingukasti all) ----------------------- */
/*
 * Paneel istub otsinguriba sees, sama .wrap laiuse peal kui sisendväli.
 * Ilma JS-ita jääb konteiner tühjaks ja `hidden` peidab ta ära — vorm
 * töötab siis tavalise otsinguna.
 */
.gss-wrap { position: relative; }
.gss {
    position: absolute; left: 0; right: 0; top: 0; z-index: 30;
    /* Kuus soovitust + "kõik tulemused" mahuvad ilma kerimata. */
    max-height: min(70vh, 480px); overflow-y: auto;
    background: var(--ink-deep); border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; box-shadow: 0 24px 50px rgba(0,0,0,.45);
    padding: 6px;
}
.gss[hidden] { display: none; }
.gss-item {
    display: grid; grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: 9px; color: #fff;
}
.gss-item:hover, .gss-item.is-on { background: rgba(255,255,255,.09); }
.gss-img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 7px; }
.gss-copy { min-width: 0; display: flex; flex-direction: column; }
.gss-copy b { font-size: .9rem; font-weight: 600; line-height: 1.3; }
/* Tüübirida jääb ühele reale — pikk nimi ei tohi paneeli kõrgust kasvatada. */
.gss-copy i {
    font-style: normal; font-size: .78rem; color: rgba(255,255,255,.55);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gss-price { font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--accent); }
.gss-none { margin: 0; padding: 14px 10px; font-size: .9rem; color: rgba(255,255,255,.6); }
.gss-all {
    display: block; margin-top: 4px; padding: 11px 10px; border-radius: 9px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .88rem; font-weight: 600; color: var(--accent);
}
.gss-all:hover, .gss-all.is-on { background: rgba(255,255,255,.09); color: var(--accent); }

@media (max-width: 560px) {
    .gss-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
    .gss-img { width: 34px; height: 34px; }
    .gss-copy b { font-size: .86rem; }
}

/* Menüüpaneeli "rikas" loend: nimi + lühikirjeldus (Smart Gymi seadmed). */
.gsp-list--rich a { display: block; }
.gsp-list--rich strong { display: block; color: #fff; font-weight: 600; }
.gsp-list--rich span { display: block; font-size: .86rem; color: rgba(255,255,255,.6); margin-top: 2px; }
