
/* ===== Fondid (serveris endas, Google'i poole päringuid ei tehta) ===== */
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(fondid/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(fondid/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(fondid/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(fondid/inter-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(fondid/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(fondid/inter-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url(fondid/poppins-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Poppins;font-style:normal;font-weight:500;font-display:swap;src:url(fondid/poppins-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url(fondid/poppins-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Poppins;font-style:normal;font-weight:600;font-display:swap;src:url(fondid/poppins-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}

/* ===== Värvid ===== */
:root{
  --navy:#243c6a;      /* põhitaust (hero, kontakt) */
  --navy-dk:#1d3359;   /* faktiriba, jalus */
  --ink:#153c6b;       /* logo tumesinine, pealkirjad */
  --text:#2e4a6b;      /* sisutekst */
  --muted:#4a6785;
  --sky:#77bedc;       /* helesinine (teenused, nupud) */
  --cyan:#4fc0de;      /* logo helesinine */
  --accent:#2f7699;    /* väikesed pealkirjad valgel */
  --yellow:#fdd13a;    /* kaardi noolte kollane */
  --pale:#eef6fb;
  --line:#e3edf4;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:#fff;color:var(--ink);font:400 16px/1.6 Inter,"Inter Fallback",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}
h1,h2,h3{font-family:Poppins,"Poppins Fallback",system-ui,sans-serif;font-weight:600;margin:0;color:var(--ink)}
p{margin:0}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.sect{padding-top:104px;padding-bottom:104px}
.eyebrow{font:600 13px/1 Inter,"Inter Fallback",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}
.h2{font-size:38px;line-height:1.2}
.dash{width:28px;height:3px;background:var(--yellow);border-radius:2px;display:inline-block;flex:none}
.skip{position:absolute;left:-9999px}.skip:focus{left:16px;top:16px;z-index:100;background:#fff;padding:12px 16px;border-radius:8px}
:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* Nupud */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 26px;border-radius:8px;font:600 15px/1 Inter,"Inter Fallback",sans-serif;text-decoration:none;border:0;cursor:pointer;transition:background .15s,border-color .15s}
.btn-light{background:var(--sky);color:var(--ink)}.btn-light:hover{background:#8fcbe5}
.btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.5)}.btn-ghost:hover{border-color:#fff}
.btn-navy{background:var(--ink);color:#fff}.btn-navy:hover{background:#0d2a4d}

/* Päis */
.header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}
.header .bar{display:flex;align-items:center;justify-content:space-between;gap:24px;height:76px}
.logo img{height:44px;width:auto}
.nav{display:flex;align-items:center;gap:28px}
.nav a{color:var(--ink);text-decoration:none;font:500 15px/1 Inter,"Inter Fallback",sans-serif;padding:14px 4px}
.nav a:hover{color:var(--accent)}
.right{display:flex;align-items:center;gap:12px}
.lang{display:flex;gap:2px}
.lang a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border-bottom:2px solid transparent;font:600 13px/1 Inter,"Inter Fallback",sans-serif;color:#5a7894;padding:12px 8px;min-width:40px;min-height:44px}
.lang a:hover{color:var(--ink)}
.lang a[aria-current="true"]{color:var(--ink);border-bottom-color:var(--cyan)}
.lang img{width:21px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(21,60,107,.15)}
.burger{display:none;width:48px;height:48px;align-items:center;justify-content:center;background:#f4f8fb;border:0;border-radius:8px;cursor:pointer;color:var(--ink)}
.burger .x{display:none}
.burger[aria-expanded="true"] .x{display:block}.burger[aria-expanded="true"] .m{display:none}
.mnav{display:none;border-top:1px solid var(--line);padding:8px 24px 20px;flex-direction:column}
.mnav.open{display:flex}
.mnav > a{color:var(--ink);text-decoration:none;font:500 17px/1 Inter,"Inter Fallback",sans-serif;padding:16px 0;border-bottom:1px solid #eef3f7}

/* Hero */
.hero{background:var(--navy);color:#fff}
.hero .sect{padding-top:88px;padding-bottom:88px}
.hero-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
.hero-text{display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.hero .eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--sky)}
.hero h1{font-size:46px;line-height:1.15;color:#fff}
.hero .lead{font-size:18px;color:#d6e4f0;max-width:36ch}
.hero .btns{display:flex;flex-wrap:wrap;gap:12px;padding-top:8px}
.hero-img img{width:100%;height:auto;filter:drop-shadow(0 24px 30px rgba(0,0,0,.35))}

/* Ettevõttest */
.about-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:center}
.zil{margin:0;display:flex;flex-direction:column;align-items:center;gap:12px}
.zil img{width:100%;max-width:480px;height:auto}
.zil figcaption{font:500 13px/1.3 Inter,"Inter Fallback",sans-serif;color:var(--muted)}
.about-text{display:flex;flex-direction:column;gap:18px}
.about-text p{font-size:17px;line-height:1.7;color:var(--text)}
.about-text .slogan{margin-top:8px;font:600 22px/1.3 Poppins,"Poppins Fallback",sans-serif;color:var(--ink);display:flex;align-items:center;gap:12px}

/* Teenused */
.services{background:var(--sky)}
.services .eyebrow{color:var(--ink)}
.svc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.card{background:#fff;border-radius:16px;padding:32px;display:flex;flex-direction:column;gap:18px}
.icon{width:72px;height:72px;border-radius:50%;background:var(--pale);display:flex;align-items:center;justify-content:center}
.icon img{width:44px;height:44px}
.card h3{font-size:20px;line-height:1.3}
.card p{line-height:1.65;color:var(--text)}

/* Meeskond */
.team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,320px));gap:32px;justify-content:center}
.team-head{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center}
.person{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.person img{width:100%;aspect-ratio:4/5;object-fit:cover}
.person .info{padding:22px 22px 24px;display:flex;flex-direction:column;gap:6px}
.person h3{font-size:20px;line-height:1.3}
.person .role{font-weight:500;font-size:15px;color:var(--accent);margin-bottom:8px}
.person a{display:flex;align-items:center;gap:10px;min-height:40px;font-weight:500;font-size:15px;color:var(--ink);text-decoration:none}
.person a:hover{color:var(--accent)}
.person svg{stroke:var(--accent)}

/* Kontakt */
.contact{background:var(--navy);color:#fff}
.contact .eyebrow{color:var(--sky)}
.contact h2{color:#fff}
.contact .lead{font-size:17px;color:#d6e4f0}
.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px}
.cinfo{display:flex;flex-direction:column;gap:28px}
.citem{display:flex;gap:18px;align-items:center;color:#fff;text-decoration:none}
.citem.top{align-items:flex-start}
a.citem:hover span{color:var(--sky)}
.circle{flex:none;width:52px;height:52px;border-radius:50%;background:var(--sky);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.citem span{font:600 18px/1.3 Inter,"Inter Fallback",sans-serif}
.addr{color:#d6e4f0}.addr strong{color:#fff;display:block}
.map{max-width:440px;width:100%;height:auto;margin-top:8px}
.form{position:relative;background:#fff;color:var(--ink);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:18px}
.form h3{font-size:24px;line-height:1.3}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field label{display:block;font:500 14px/1.4 Inter,"Inter Fallback",sans-serif;color:var(--ink);margin-bottom:6px}
.field input,.field textarea{width:100%;font:400 16px/1.4 Inter,"Inter Fallback",sans-serif;color:var(--ink);background:#f4f8fb;border:1px solid #c9dbe8;border-radius:8px;padding:12px 14px;min-height:48px}
.field textarea{resize:vertical}
.field input:focus,.field textarea:focus{outline:2px solid var(--cyan);outline-offset:1px;background:#fff}
.consent{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:var(--text);cursor:pointer}
.consent input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--ink)}
.send{display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between}
.send small{font-size:14px;color:var(--muted)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Jalus */
.footer{background:var(--navy-dk);color:#b9cde0;border-top:4px solid var(--sky)}
.footer .wrap{padding-top:36px;padding-bottom:36px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.footer .badge{background:#fff;border-radius:10px;padding:10px 14px;display:inline-flex}
.footer .badge img{height:34px;width:auto}
.footer .meta{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:14px}

/* ===== Tahvel ===== */
@media (max-width:960px){
  .hero-grid,.about-grid,.contact-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .svc-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .header .nav{display:none}
  .burger{display:inline-flex}
}
/* ===== Telefon ===== */
@media (max-width:600px){
  .team-grid,.form-grid{grid-template-columns:minmax(0,1fr)}
  .hide-sm{display:none}
  .hero h1{font-size:32px}
  .h2{font-size:28px}
  .sect{padding-top:64px;padding-bottom:64px}
  .hero .sect{padding-top:56px;padding-bottom:48px}
  .form{padding:24px}
  .logo img{height:38px}
}

/* Varufondid, mille mõõdud on sobitatud, et fondi laadimisel tekst ei hüppaks */
@font-face{font-family:"Poppins Fallback";src:local("Arial");ascent-override:92.33%;descent-override:30.78%;line-gap-override:8.79%;size-adjust:113.73%}
@font-face{font-family:"Inter Fallback";src:local("Arial");ascent-override:90.49%;descent-override:22.56%;line-gap-override:0%;size-adjust:107.06%}
/* Päis kerimisel: poolläbipaistev, taust hägustatud */
.header{transition:background-color .3s,box-shadow .3s,border-color .3s}
.header.scrolled{background:rgba(255,255,255,.72);border-bottom-color:rgba(21,60,107,.08);box-shadow:0 4px 24px rgba(13,42,77,.08);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px)}
.header.scrolled .mnav.open{background:rgba(255,255,255,.96)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.header.scrolled{background:rgba(255,255,255,.95)}}

/* Animatsioonid */
@keyframes saabub{from{opacity:0;transform:translateX(60px)}to{opacity:1;transform:none}}
@keyframes tousebYles{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes liugleb{from{transform:translateY(48px)}to{transform:none}}
@keyframes ilmub{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
  /* Veokid sõidavad lehe avamisel sisse */
  .hero-img img{animation:saabub 1s cubic-bezier(.22,1,.36,1) both .15s}
  .hero-text{animation:tousebYles .8s cubic-bezier(.22,1,.36,1) both}
  /* Sisu tõuseb kerimisel nähtavale (moodsates brauserites ilma JavaScriptita) */
  @supports (animation-timeline:view()){
    .reveal{animation:liugleb linear both;animation-timeline:view();animation-range:entry 0% entry 100%}
    .reveal img{animation:ilmub linear both;animation-timeline:view();animation-range:entry 10% entry 100%}
  }
}
/* Kastide varjud */
.card{box-shadow:0 1px 2px rgba(13,42,77,.06),0 8px 24px rgba(13,42,77,.12);transition:transform .25s ease,box-shadow .25s ease}
.person{border-color:transparent;box-shadow:0 1px 2px rgba(13,42,77,.06),0 10px 30px rgba(13,42,77,.12);transition:transform .25s ease,box-shadow .25s ease}
.form{box-shadow:0 20px 50px rgba(0,0,0,.28)}
@media (hover:hover){
  .card:hover,.person:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(13,42,77,.08),0 18px 40px rgba(13,42,77,.18)}
}
/* Varjud ka väiksematel kastidel */
.icon{box-shadow:0 4px 12px rgba(13,42,77,.12)}
.circle{box-shadow:0 6px 16px rgba(0,0,0,.25)}
.footer .badge{box-shadow:0 8px 24px rgba(0,0,0,.25)}
.field input,.field textarea{box-shadow:inset 0 1px 2px rgba(13,42,77,.06),0 1px 3px rgba(13,42,77,.08)}
.field input:focus,.field textarea:focus{box-shadow:0 4px 14px rgba(47,118,153,.18)}
.btn-light,.btn-navy{box-shadow:0 6px 16px rgba(0,0,0,.18);transition:background .15s,box-shadow .2s,transform .2s}
.hero .btn-ghost{box-shadow:0 6px 16px rgba(0,0,0,.15)}
@media (hover:hover){.btn-light:hover,.btn-navy:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.22)}}
/* Kuupäevaväli sama laiaks kui teised (iPhone Safari) */
.field{min-width:0}
.field input[type=date]{-webkit-appearance:none;appearance:none;display:block;min-width:0;max-width:100%;height:48px;line-height:22px;text-align:left}
.field input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}
.field input[type=date]::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}
/* Lisaklassid (inline-stiilide asemel, et turvapoliitika saaks need keelata) */
.stack-48{display:flex;flex-direction:column;gap:48px}
.stack-56{display:flex;flex-direction:column;gap:56px}
.head{display:flex;flex-direction:column;gap:14px;max-width:640px}
.btn-wide{min-width:200px}
/* Üles-nupp */
.totop{position:fixed;right:20px;bottom:20px;z-index:30;width:52px;height:52px;border-radius:50%;background:var(--ink);color:#fff;border:2px solid #fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.3);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .2s,transform .2s,visibility .2s}
.totop.show{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--sky);color:var(--ink)}
.totop:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.totop{transition:none}}
@media (max-width:600px){
  .lang .lt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lang a{padding:12px 7px;min-width:36px;justify-content:center}
  .header .bar{gap:12px}
  .right{gap:6px}
}
@media (max-width:360px){ .logo img{height:32px} }
@media (max-width:600px){ .hero .btns{flex-direction:column;align-items:stretch;width:100%;max-width:360px} }
.addr{font-style:normal}
/* Andmekaitse aken */
.privlink{color:#fff;text-decoration:underline;text-underline-offset:3px}
.privlink:hover{color:var(--sky)}
.privacy-dlg{width:min(640px,calc(100vw - 32px));max-height:min(86vh,760px);padding:0;border:0;border-radius:20px;box-shadow:0 30px 80px rgba(13,42,77,.45);color:var(--ink);background:#fff;overflow:hidden}
.privacy-dlg[open]{display:flex;flex-direction:column;animation:dlgIn .25s cubic-bezier(.22,1,.36,1)}
.privacy-dlg::backdrop{background:rgba(21,40,72,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.dlg-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 20px 20px 28px;background:var(--navy);color:#fff}
.dlg-head h2{color:#fff;font-size:22px;line-height:1.3}
.dlg-close{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.dlg-close:hover{background:rgba(255,255,255,.22)}
.dlg-body{padding:24px 28px 32px;overflow-y:auto;overscroll-behavior:contain}
.dlg-body h3{font-size:16px;line-height:1.4;margin:22px 0 6px;padding-left:12px;border-left:3px solid var(--sky)}
.dlg-body p{font-size:15px;line-height:1.65;color:var(--text)}
.dlg-body .dlg-intro{font-size:16px;color:var(--ink)}
.dlg-body a{color:var(--accent)}
@keyframes dlgIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
@media (max-width:600px){.privacy-dlg{width:100vw;max-width:100vw;max-height:92vh;margin:auto 0 0;border-radius:20px 20px 0 0}.dlg-body{padding:20px 20px 28px}.dlg-head{padding:16px 16px 16px 20px}}
/* Vormi vastuse ja 404 leht */
.msg-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--navy)}
.msg-box{background:#fff;color:var(--ink);border-radius:16px;padding:32px;max-width:480px;text-align:center;display:flex;flex-direction:column;gap:20px;align-items:center}
.msg-box img{height:40px;width:auto}
.msg-box p{font-size:18px;line-height:1.5}
