/* Avalik avaleht "/" (tmpl/public/home.html). Iseseisev — rakenduse CSS-i ei lae.
   Bränd "mhmh": kivihall pind, peaaegu must nupp, lime #aeee30 aktsent, logo-h #6db31a, Manrope (kohalikud failid).
   Ikoonid: Lucide-kujud lehe sees (<symbol>), FontAwesome't ega välist CDN-i ei vaja. */
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* š, ž jms (latin-ext) */
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "ManropeL"; src: url("fonts/manrope/manrope-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --ink: #121314; --muted: #55564f; --faint: #7a7b76;
    --bg: #f4f3ef; --white: #fff; --line: #e3e1db; --line-soft: #ecebe6;
    --dark: #232428; --lime: #aeee30; --olive: #4f7a12; --tint: #eef6dc;
    --mhmh-h: #6db31a;   /* logo "h": sama roheline heledal ja tumedal taustal (modern.css --mhmh-h) */
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "ManropeL", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.li { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ln-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(5vw, 20px, env(safe-area-inset-left)); padding-right: max(5vw, 20px, env(safe-area-inset-right)); }

/* lime helk üleval paremal */
.ln-glow { position: absolute; inset: 0 0 auto 0; height: 980px; pointer-events: none; z-index: 0;
    background: radial-gradient(55% 50% at 86% 22%, rgba(174, 238, 48, .30), transparent 70%), radial-gradient(40% 40% at 0% 80%, rgba(109, 179, 26, .07), transparent 70%);
    -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
main, .ln-foot { position: relative; z-index: 1; }

/* nav */
.ln-nav { position: sticky; top: 0; z-index: 10; background: rgba(244, 243, 239, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(18, 19, 20, .07); }
.ln-nav-in { display: flex; align-items: center; gap: 36px; height: 74px; }
/* Päris logo (sama mis menüüs ja laadijal): maskid + brändivärvid, tumedad tähed + roheline "h". */
.ln-logo { position: relative; display: block; flex: none; width: 100px; aspect-ratio: 720 / 228; }
.ln-logo i { position: absolute; inset: 0; background: var(--dark);
    -webkit-mask: url(img/mhmh_mask_letters.png) center / contain no-repeat; mask: url(img/mhmh_mask_letters.png) center / contain no-repeat; }
.ln-logo i + i { background: var(--mhmh-h); -webkit-mask-image: url(img/mhmh_mask_h.png); mask-image: url(img/mhmh_mask_h.png); }
.ln-logo-sm { width: 68px; }
/* "Sära" nagu laadijal, üks kord lehe avamisel */
@media (prefers-reduced-motion: no-preference) {
    .ln-nav .ln-logo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
        -webkit-mask: url(img/mhmh_mask_letters.png) center / contain no-repeat, url(img/mhmh_mask_h.png) center / contain no-repeat;
                mask: url(img/mhmh_mask_letters.png) center / contain no-repeat, url(img/mhmh_mask_h.png) center / contain no-repeat;
        background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
        animation: ln-shine 1.4s .3s ease-in-out both; }
}
@keyframes ln-shine { 0% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.ln-links { display: flex; gap: 28px; }
.ln-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.ln-links a:hover { color: var(--ink); }
.ln-nav-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ln-lang { display: inline-flex; background: var(--white); border-radius: 999px; padding: 3px; box-shadow: 0 0 0 1px var(--line); }
.ln-lang a { text-decoration: none; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; color: var(--faint); }
.ln-lang a.on { background: var(--ink); color: var(--bg); }

/* nupud */
.ln-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 16px;
    padding: 14px 26px; border-radius: 999px; min-height: 48px; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.ln-btn:hover { background: #000; transform: translateY(-1px); }
.ln-btn-sm { padding: 9px 18px; min-height: 40px; font-size: 14px; }
.ln-btn-white { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.ln-btn-white:hover { background: var(--white); box-shadow: 0 0 0 1px #c9c7c0; }
.ln-btn-lime { background: var(--lime); color: var(--ink); }
.ln-btn-lime:hover { background: #c0f455; }

/* hero */
.ln-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center;
    padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(56px, 7vw, 110px); }
.ln-tag { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; background: var(--white); border-radius: 999px; padding: 6px 14px 6px 7px; box-shadow: 0 0 0 1px var(--line); }
.ln-tag i { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.ln-tag .li { width: 12px; height: 12px; stroke-width: 3; }
.ln-hero h1 { font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -.045em; line-height: 1.02; margin-top: 22px; font-weight: 800; }
.ln-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin-top: 22px; max-width: 30em; }
.ln-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.ln-ticks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--muted); font-weight: 600; }
.ln-ticks li { display: flex; gap: 8px; align-items: center; }
.ln-ticks .li { color: var(--mhmh-h); width: 16px; height: 16px; stroke-width: 2.5; }

/* tootepilt: rakenduse aken. Kõik mõõdud em-ides → kogu aken skaleerub konteineri laiusega (cqw). */
.ln-visual { position: relative; padding: 34px 0 40px; }
.ln-shot { container-type: inline-size; transform: perspective(1800px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.win { font-size: calc(100cqw / 89.2); border-radius: 1.4em; overflow: hidden; background: #fbfaf8; color: #17181b; line-height: 1.35;
    box-shadow: 0 0 0 1px rgba(18, 19, 20, .08), 0 40px 80px -40px rgba(18, 19, 20, .35), 0 12px 30px -18px rgba(18, 19, 20, .18); }
.win .li { width: 1.2em; height: 1.2em; }
.w-bar { display: flex; align-items: center; gap: .6em; padding: .9em 1.2em; border-bottom: 1px solid #e8e6e1; color: var(--faint); font-size: .92em; }
.w-bar i { width: .85em; height: .85em; border-radius: 50%; background: #e3e1db; }
.w-bar span { margin: 0 auto; padding-right: 4em; }
.w-body { display: grid; grid-template-columns: 15em minmax(0, 1fr) 25.4em; height: 47.7em; }
.w-side { margin: .8em; border-radius: 1.2em; background: var(--dark); color: #cfd0ca; padding: 1.2em .9em; display: flex; flex-direction: column; gap: .2em; }
.w-logo { width: 5.4em; margin: .2em .5em 1.2em; }
.w-logo i:first-child { background: #f1efea; }
.w-org { display: flex; gap: .6em; align-items: center; padding: .6em; border-radius: .8em; background: rgba(255, 255, 255, .05); margin-bottom: .9em; font-weight: 700; color: #efeee9; }
.w-org b { width: 1.85em; height: 1.85em; border-radius: .55em; background: #3d5ba8; display: grid; place-items: center; font-size: .85em; color: #fff; flex: none; }
.w-side a { display: flex; gap: .75em; align-items: center; padding: .6em .75em; border-radius: .7em; font-weight: 600; }
.w-side a.on { background: rgba(174, 238, 48, .12); color: var(--lime); }
.w-sp { margin-top: auto; font-size: .85em; color: #8b8c86; padding: .8em; border-top: 1px solid #33353a; }
.w-sp b { display: block; color: #efeee9; font-size: 1.08em; }
.w-cal { padding: 1.5em 1.4em; display: flex; flex-direction: column; gap: 1.1em; border-right: 1px solid #e8e6e1; }
.w-h { display: flex; align-items: center; gap: .9em; }
.w-h > b { font-size: 1.45em; letter-spacing: -.02em; }
.w-seg { display: inline-flex; background: #f3f2ee; border-radius: 999px; padding: .25em; font-size: .92em; font-weight: 700; color: var(--faint); }
.w-seg span { padding: .3em .85em; border-radius: 999px; }
.w-seg span.on { background: #fff; color: #17181b; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.w-new { margin-left: auto; display: inline-flex; gap: .45em; align-items: center; background: #17181b; color: #fbfaf8; border-radius: 999px; padding: .55em 1em; font-weight: 700; font-size: .92em; }
.w-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6em; }
.w-day { display: flex; flex-direction: column; gap: .45em; }
.w-day > b { font-size: .85em; color: var(--faint); padding: 0 .2em .3em; border-bottom: 1px solid #e8e6e1; }
.w-day > b.td { color: #17181b; }
.w-ev { border-radius: .7em; padding: .6em .6em .6em .8em; background: #fff; box-shadow: inset 0 0 0 1px #e8e6e1; position: relative; }
.w-ev::before { content: ""; position: absolute; left: 0; top: .6em; bottom: .6em; width: .23em; border-radius: 0 .2em .2em 0; background: #b9b8b2; }
.w-ev em { font-style: normal; font-weight: 800; font-size: .85em; }
.w-ev div { font-weight: 700; font-size: .92em; }
.w-ev small { display: block; color: var(--faint); font-size: .85em; }
.w-ev.tr { background: var(--tint); box-shadow: none; }
.w-ev.tr::before { background: var(--mhmh-h); }
.w-ev.vo { background: var(--dark); color: #efeee9; box-shadow: none; }
.w-ev.vo::before { background: var(--lime); }
.w-ev.vo small { color: #a5a69f; }
.w-ev.sel { box-shadow: 0 0 0 .15em #17181b; }
.w-det { padding: 1.5em; display: flex; flex-direction: column; gap: 1.05em; background: #fff; }
.w-type { align-self: flex-start; font-size: .85em; font-weight: 800; border-radius: 999px; padding: .25em .8em; background: var(--tint); color: var(--olive); }
.w-title { font-size: 1.6em; letter-spacing: -.02em; line-height: 1.15; }
.w-meta { display: grid; gap: .45em; color: var(--faint); font-size: .96em; }
.w-meta span { display: flex; gap: .6em; align-items: center; }
.w-cnt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45em; }
.w-cnt div { background: #f3f2ee; border-radius: .8em; padding: .6em .8em; font-size: .85em; color: var(--faint); }
.w-cnt b { display: block; font-size: 1.8em; color: #17181b; letter-spacing: -.02em; }
.w-sb { display: flex; height: .45em; border-radius: .45em; overflow: hidden; gap: .15em; }
.w-sb i:nth-child(1) { background: var(--mhmh-h); } .w-sb i:nth-child(2) { background: #c9c7c0; } .w-sb i:nth-child(3) { background: #e8e6e1; }
.w-p { display: grid; grid-template-columns: 2.15em minmax(0, 1fr) auto; gap: .75em; align-items: center; padding: .45em .3em; border-bottom: 1px solid #ecebe6; }
.w-p:last-child { border-bottom: 0; }
.w-p small { display: block; color: var(--faint); font-size: .85em; }
.av { width: 2.15em; height: 2.15em; border-radius: 50%; display: grid; place-items: center; font-size: .78em; font-weight: 800; color: #17181b; }
.w-p .av { font-size: .78em; width: 2.75em; height: 2.75em; }
.st { font-size: .85em; font-weight: 800; border-radius: 999px; padding: .25em .7em; white-space: nowrap; }
.st-y { background: var(--tint); color: var(--olive); }
.st-n { background: #f3f2ee; color: var(--faint); }
.st-q { box-shadow: inset 0 0 0 1px #e3e1db; color: var(--faint); }
.w-act { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.w-act span { display: flex; justify-content: center; gap: .45em; align-items: center; border-radius: 999px; padding: .7em; font-weight: 700; font-size: .92em; box-shadow: inset 0 0 0 1px #e3e1db; }
.w-act span.p { background: #17181b; color: #fbfaf8; box-shadow: none; }

/* ujuvad kaardid */
.ln-float { position: absolute; z-index: 2; display: flex; gap: 12px; align-items: center; background: var(--white); border-radius: 18px; padding: 12px 18px 12px 12px; font-size: 13px; white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(18, 19, 20, .06), 0 24px 40px -20px rgba(18, 19, 20, .35); }
.ln-float b { display: block; font-size: 15px; }
.ln-float small { color: var(--faint); }
.ln-float-a { right: -8px; top: 0; }
.ln-float-b { left: -28px; bottom: 0; }
.ln-ring { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--mhmh-h) calc(var(--p) * 1%), var(--line-soft) 0); display: grid; place-items: center; }
.ln-ring::after { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--white); }
.ln-av { width: 36px; height: 36px; border-radius: 50%; background: #f3c9a8; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
    .ln-float-a { animation: ln-in .6s .5s cubic-bezier(.2, .8, .2, 1) both; }
    .ln-float-b { animation: ln-in .6s .9s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes ln-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* sektsioonid */
.ln-sec { padding: clamp(56px, 7vw, 104px) 0; }
.ln-sec-alt { background: var(--white); }
.ln-sec h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; max-width: 16em; }
.ln-sub { color: var(--muted); font-size: 18px; margin-top: 12px; max-width: 34em; }
.ln-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(32px, 4vw, 48px); }
.ln-card { background: var(--white); border-radius: 24px; padding: 28px; box-shadow: 0 0 0 1px #e8e6e1; display: flex; flex-direction: column; gap: 12px; }
.ln-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--lime); display: grid; place-items: center; }
.ln-ic .li { width: 22px; height: 22px; }
.ln-card h3 { font-size: 22px; letter-spacing: -.025em; margin-top: 6px; }
.ln-card p { color: var(--muted); font-size: 15.5px; }
.ln-frag { margin-top: auto; background: #fbfaf8; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-soft); padding: 14px; font-size: 13.5px; display: grid; gap: 9px; }
.ln-fr { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ln-fr small { color: var(--faint); white-space: nowrap; }
.ln-bar { height: 6px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.ln-bar i { display: block; height: 100%; background: var(--ink); }
.ln-bar i.g { background: var(--mhmh-h); }

.ln-steps { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ln-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: 22px; background: var(--bg); }
.ln-steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.ln-steps h3 { font-size: 19px; margin: 9px 0 6px; }
.ln-steps p { color: var(--muted); font-size: 15px; }

.ln-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.ln-roles div { background: var(--white); border-radius: 20px; padding: 22px; box-shadow: 0 0 0 1px #e8e6e1; }
.ln-roles .li { width: 22px; height: 22px; color: var(--mhmh-h); }
.ln-roles b { display: block; font-size: 17px; margin: 12px 0 4px; }
.ln-roles span { color: var(--muted); font-size: 14.5px; }

.ln-final-w { padding-bottom: 8px; }
.ln-final { background: var(--ink); color: var(--bg); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.ln-final::after { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; height: 220%; background: radial-gradient(closest-side, rgba(174, 238, 48, .25), transparent); pointer-events: none; }
.ln-final > * { position: relative; z-index: 1; }
.ln-final h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; }
.ln-final p { color: #a5a69f; margin-top: 8px; }

.ln-foot { padding: 30px 0; }
.ln-foot-in { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); }
.ln-foot-r { margin-left: auto; }

@media (max-width: 980px) {
    .ln-hero { grid-template-columns: minmax(0, 1fr); }
    .ln-cards, .ln-steps { grid-template-columns: minmax(0, 1fr); }
    .ln-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ln-float-b { left: 0; } .ln-float-a { right: 0; }
}
@media (max-width: 760px) {
    .ln-links { display: none; }
    .ln-shot { transform: none; }
}
/* Kitsas ekraan: aken oleks loetamatult väike → näita ainult sündmuse detaili tavasuuruses. */
@container (max-width: 440px) {
    .win { font-size: 13px; }
    .w-body { grid-template-columns: minmax(0, 1fr); height: auto; }
    .w-side, .w-cal { display: none; }
}
@media (max-width: 560px) {
    .ln-roles { grid-template-columns: minmax(0, 1fr); }
    .ln-float-a { display: none; }
    .ln-float-b { left: 8px; bottom: -4px; }
    .ln-nav-in { gap: 16px; }
}
