:root{
  --fil-50:#F9EEEF; --fil-100:#F5DEDF; --fil-300:#CFA6BB; --fil-400:#9E94BA; --fil-600:#6D5A8A; --fil-700:#4A3B6D; --fil-900:#401850;
  --ope-50:#F9F5F0; --ope-100:#ECE2DD; --ope-300:#E99667; --ope-600:#BE3657; --ope-700:#A62557; --ope-900:#492C5B;
  --ter-50:#F7F2EE; --ter-100:#E9E2E0; --ter-300:#BEE497; --ter-600:#1C896D; --ter-700:#0F615B; --ter-800:#255B60; --ter-900:#2B4454;
  --cha-900:#2D111B; --cha-600:#86495F; --cha-300:#CC9EA0; --cha-100:#EAE4DF; --cha-acc:#DF5F3F; --cha-200:#E7BFA6;
  --ink:#2D111B;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Bricolage Grotesque',sans-serif;color:var(--ink);background:#fff;line-height:1.65;font-size:17px}
h1,h2,h3,h4{line-height:1.12;font-weight:600;letter-spacing:-0.01em}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.wrap-narrow{max-width:860px;margin:0 auto;padding:0 24px}
.btn{display:inline-block;padding:14px 30px;border-radius:999px;font-weight:600;font-size:16px;text-decoration:none;transition:transform .15s ease;border:none;cursor:pointer;font-family:inherit}
.btn:hover{transform:translateY(-2px)}
.btn-dark{background:var(--fil-900);color:#fff}
.btn-coral{background:var(--ope-700);color:#fff}
.btn-green{background:var(--ter-700);color:#fff}
.btn-flame{background:var(--cha-acc);color:#fff}
.btn-ghost{background:transparent;border:1.5px solid currentColor}
.eyebrow{font-size:13px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;opacity:.75;margin-bottom:14px}

header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.93);backdrop-filter:blur(10px);border-bottom:1px solid var(--ope-100)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;height:84px}
.logo{display:block;text-decoration:none}
.logo-full{height:44px;width:auto;display:block}
.mark{width:1em;height:1em;display:block}
.site-navigation{margin-left:auto}
.language-switcher{display:flex;align-items:center;gap:4px;flex:none;padding:3px;border:1px solid var(--ope-100);border-radius:999px;background:#fff}
.language-switcher__link{display:flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 9px;border:0!important;border-radius:999px;color:var(--cha-600);font-size:12px;font-weight:700;letter-spacing:.08em;text-decoration:none}
.language-switcher__link:hover,.language-switcher__link.is-active{background:var(--fil-900);color:#fff}
nav>ul{display:flex;gap:24px;list-style:none}
nav a{text-decoration:none;font-size:15px;font-weight:500;color:var(--ink);padding:6px 0;border-bottom:2px solid transparent}
nav>ul>li{position:relative}
nav>ul>li>a:hover,nav a.active{border-bottom-color:var(--ope-600);color:var(--ope-700)}
.dd{position:absolute;top:100%;left:-14px;background:#fff;border-radius:14px;box-shadow:0 12px 36px rgba(45,17,27,.14);padding:12px 0;min-width:250px;list-style:none;display:none}
nav li:hover .dd,nav li:focus-within .dd{display:block}
.dd a{display:block;padding:9px 20px;font-size:14.5px;border-bottom:none}
.dd a:hover{background:var(--ope-50);color:var(--ope-700)}
.burger{display:none;background:none;border:none;font-size:39px;line-height:1;cursor:pointer;color:var(--fil-900)}

.page-hero{position:relative;overflow:hidden;padding:96px 0 72px;color:#fff}
.page-hero .eyebrow{opacity:.85;margin-bottom:10px}
.page-hero h1{font-size:clamp(38px,4.8vw,58px);font-weight:700;max-width:760px}
.page-hero p.lead{font-size:19px;max-width:640px;margin-top:20px;opacity:.92}
.ph-fil{background:linear-gradient(135deg,var(--fil-600),var(--fil-400) 55%,var(--fil-300))}
.ph-ope{background:linear-gradient(135deg,var(--ope-900),var(--ope-700) 55%,var(--ope-300))}
.ph-ter{background:linear-gradient(135deg,var(--ter-900),var(--ter-700) 55%,var(--ter-600))}
.ph-cha{background:linear-gradient(135deg,var(--cha-900),#5A2E42 55%,var(--cha-600))}
.hero-rings{position:absolute;right:-90px;top:-60px;width:420px;height:420px;opacity:.28;pointer-events:none}
.page-hero.has-hero-background-image{background-color:var(--fil-900);background-image:linear-gradient(90deg,rgba(45,17,27,.68),rgba(45,17,27,.28)),var(--joogaliit-hero-image);background-position:center;background-repeat:no-repeat;background-size:cover}
.page-hero>.wrap{position:relative;z-index:2}
.hero-graphic-image{object-fit:contain}

.subnav{background:#fff;border-bottom:1px solid var(--ope-100)}
.subnav ul{display:flex;gap:8px;list-style:none;padding:14px 0;flex-wrap:wrap}
.subnav a{display:inline-block;text-decoration:none;font-size:14.5px;font-weight:600;padding:8px 18px;border-radius:999px;color:var(--cha-600)}
.subnav a:hover{background:var(--ope-50);color:var(--ope-700)}
.subnav a.on{background:var(--fil-900);color:#fff}

section{padding:96px 0}
section.tight{padding:72px 0}
.sec-head{max-width:660px;margin-bottom:56px}
.sec-head h2{font-size:clamp(30px,3.6vw,42px);margin-bottom:16px}
h2.h-sec{font-size:clamp(30px,3.6vw,42px);margin-bottom:24px}
h3.h-sub{font-size:clamp(22px,2.4vw,28px);margin:40px 0 16px}
.prose p{margin-bottom:18px;max-width:720px}
.prose ul,.prose ol{margin:0 0 18px 22px;max-width:700px}
.prose li{margin-bottom:8px}
.muted{color:var(--cha-600)}

.grid2{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.tile{border-radius:24px;padding:38px;background:var(--ope-50)}
.tile h3{font-size:24px;margin-bottom:12px}
.tile p{font-size:15.5px;margin-bottom:14px;color:#4a3542}
.tile .meta{font-size:13.5px;font-weight:600;margin-bottom:18px;opacity:.8}
.tile a.more{font-weight:600;color:var(--ope-700);text-decoration:none}
.tile a.more:hover{text-decoration:underline}
.tile-ter{background:var(--ter-50)}
.tile-ter a.more{color:var(--ter-700)}
.tile-fil{background:var(--fil-50)}
.tile-fil a.more{color:var(--fil-600)}

table.tbl{width:100%;border-collapse:collapse;font-size:15.5px}
.tbl th{text-align:left;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--cha-600);padding:12px 14px;border-bottom:2px solid var(--ope-100)}
.tbl td{padding:16px 14px;border-bottom:1px solid var(--ope-100);vertical-align:top}
.tbl tr:hover td{background:var(--ope-50)}
.pill{display:inline-block;font-size:13px;font-weight:600;border-radius:999px;padding:4px 12px;background:var(--ter-300);color:var(--ter-900);white-space:nowrap}
.pill-fil{background:var(--fil-100);color:var(--fil-700)}
.pill-ope{background:var(--ope-100);color:var(--ope-700)}

.timeline{list-style:none;max-width:760px;position:relative;padding-left:34px}
.timeline:before{content:"";position:absolute;left:9px;top:6px;bottom:6px;width:2px;background:var(--fil-100)}
.timeline li{position:relative;margin-bottom:26px}
.timeline li:before{content:"";position:absolute;left:-31px;top:7px;width:12px;height:12px;border-radius:50%;background:var(--fil-400)}
.timeline .tdate{font-size:13.5px;font-weight:700;letter-spacing:.06em;color:var(--fil-600);text-transform:uppercase}
.timeline .tbody{font-size:16px}
.tyear{font-size:22px;font-weight:700;color:var(--fil-900);margin:38px 0 18px}

.person{border-radius:24px;background:var(--fil-50);padding:38px;display:flex;flex-direction:column}
.person .ph{width:110px;height:110px;border-radius:50%;background:linear-gradient(140deg,var(--fil-300),var(--fil-600));display:flex;align-items:center;justify-content:center;color:#fff;font-size:34px;font-weight:700;margin-bottom:22px;overflow:hidden;flex:none}
.person .ph-photo{background:var(--fil-100)}
.person .ph-photo img{width:100%;height:100%;object-fit:cover;display:block}
.person h3{font-size:24px;margin-bottom:4px}
.person .role{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--cha-600);margin-bottom:14px}
.person p{font-size:15.5px;color:#4a3542;margin-bottom:16px}
.person a.more{margin-top:auto;font-weight:600;color:var(--fil-600);text-decoration:none}
.person a.more:hover{text-decoration:underline}

.cta-band{background:var(--ter-800);color:#fff;border-radius:24px;padding:44px 52px;display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.cta-band h3{font-size:26px;margin-bottom:8px}
.cta-band p{opacity:.85;max-width:560px;font-size:15.5px}
.cta-band .btn{flex:none;background:var(--ter-300);color:var(--ter-900)}
.cta-band.band-fil{background:var(--fil-900)}
.cta-band.band-fil .btn{background:var(--fil-300);color:var(--fil-900)}
.cta-band.band-cha{background:var(--cha-900)}
.cta-band.band-cha .btn{background:var(--cha-acc);color:#fff}

.doc{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 24px;border:1.5px solid var(--ope-100);border-radius:16px;margin-bottom:14px;text-decoration:none}
.doc:hover{border-color:var(--ope-300);background:var(--ope-50)}
.doc .dname{font-weight:600;font-size:16px}
.doc .dsize{font-size:13.5px;color:var(--cha-600)}
.doc .darr{font-weight:700;color:var(--ope-700)}

.newsl{border-radius:24px;border:1.5px solid var(--fil-100);padding:34px 38px;margin-bottom:24px}
.newsl h3{font-size:22px;margin-bottom:10px}
.newsl .ndate{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--fil-600);margin-bottom:8px}
.newsl ul{margin:12px 0 0 20px;font-size:15.5px;color:#4a3542}
.newsl li{margin-bottom:6px}

footer{background:var(--fil-900);color:var(--fil-100);padding:96px 0 40px}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:56px;margin-bottom:64px}
.foot-logo .mark{width:56px;height:56px;margin-bottom:18px}
.foot-grid h5{font-size:17px;letter-spacing:.12em;text-transform:uppercase;color:var(--fil-300);margin-bottom:18px;font-weight:600}
.foot-grid ul{list-style:none}
.foot-grid li{margin-bottom:10px}
.foot-grid a{text-decoration:none;font-size:15px;opacity:.9}
.foot-grid a:hover{opacity:1;text-decoration:underline}
.foot-join p{font-size:15px;margin-bottom:18px;opacity:.85}
.foot-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:24px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13.5px;opacity:.7}

@media(max-width:960px){
  .burger{display:block}
  nav{position:fixed;top:84px;left:0;right:0;background:#fff;border-bottom:1px solid var(--ope-100);box-shadow:0 16px 36px rgba(45,17,27,.12);max-height:calc(100vh - 84px);overflow-y:auto;transform:translateY(-12px);opacity:0;visibility:hidden;transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:60}
  nav.open{transform:translateY(0);opacity:1;visibility:visible}
  nav>ul{display:flex;flex-direction:column;gap:0;padding:12px 24px 24px}
  nav>ul>li{position:static;border-bottom:1px solid var(--ope-100)}
  nav>ul>li:last-child{border-bottom:none}
  nav>ul>li>a{display:block;padding:15px 0;font-size:17px;border-bottom:none}
  nav>ul>li>a.active{border-bottom:none;color:var(--ope-700)}
  .dd{position:static;display:block;box-shadow:none;border-radius:0;padding:0 0 10px 14px;min-width:0}
  .dd a{padding:8px 0;font-size:15px;color:var(--cha-600)}
  .grid2,.grid3{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .page-hero{padding:72px 0 56px}
	.language-switcher{margin-left:auto}
}
@media(max-width:560px){
  .foot-grid{grid-template-columns:1fr}
  section{padding:72px 0}
  .logo-full{height:36px}
  .tbl{font-size:14px}
  .cta-band,.tile{padding:30px 26px}
}

/* Reusable layouts for imported English content. */
.ph-indigo{background:linear-gradient(135deg,var(--fil-600),var(--fil-400) 55%,var(--fil-300))}
.ph-sage{background:linear-gradient(135deg,var(--ter-900),var(--ter-700) 55%,var(--ter-600))}
.ph-flame{background:linear-gradient(135deg,var(--ope-900),var(--ope-700) 55%,var(--ope-300))}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:48px}
.section-head h2{font-size:clamp(30px,3.6vw,42px);margin-bottom:10px}
.bg-soft{background:var(--ope-50)}
.bg-dark{background:var(--fil-900);color:#fff}
.two-col{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:72px;align-items:start}
.cards-2,.cards-3,.teacher-grid{display:grid;gap:28px}
.cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards-2>.card,.cards-3>.card,.teacher-card{min-height:0;padding:34px;border-radius:22px;background:#fff;border:1px solid var(--ope-100);box-shadow:0 5px 20px rgba(45,17,27,.05)}
.bg-soft .card{background:#fff}
.bg-dark .card{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16);color:#fff}
.cards-2>.card h2,.cards-2>.card h3,.cards-3>.card h2,.cards-3>.card h3,.teacher-card h2{font-size:24px;margin-bottom:12px}
.cards-2>.card p,.cards-3>.card p,.teacher-card p{margin-bottom:14px}
.teacher-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:40px}
.teacher-card{display:flex;flex-direction:column}
.teacher-card .ph{width:110px;height:110px;margin-bottom:22px;border-radius:50%;overflow:hidden;background:var(--fil-100)}
.teacher-card .ph img{width:100%;height:100%;object-fit:cover}
.teacher-card .teacher-role{color:var(--cha-600);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.teacher-card>a{margin-top:auto;font-weight:600;color:var(--fil-600);text-decoration:none}
.profile-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:44px;align-items:start}
.profile-layout .profile-photo{float:none;margin:0;width:200px;height:200px}

@media(max-width:960px){
	.two-col{grid-template-columns:1fr;gap:32px}
	.cards-3,.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
	.section-head{display:block}
	.cards-2,.cards-3,.teacher-grid,.profile-layout{grid-template-columns:1fr}
	.profile-layout .profile-photo{width:150px;height:150px}
}
.profile-photo{width:200px;height:200px;border-radius:50%;object-fit:cover;float:right;margin:0 0 24px 32px;box-shadow:0 8px 30px rgba(73,44,91,.14)}
.profile-photo--placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,var(--fil-300),var(--fil-600));color:#fff;font-size:48px;font-weight:700}

/* Korduvkasutatav õpetaja/lõpetaja profiilirida. */
.teacher-profile-list{color:var(--ink)}
.teacher-profile-row{display:grid;grid-template-columns:200px minmax(0,1fr);align-items:start;gap:20px;padding:20px 0;border-top:1px solid currentColor;border-bottom:1px solid currentColor}
.teacher-profile-row+.teacher-profile-row{margin-top:20px}
.teacher-profile-photo,.teacher-profile-photo-block{width:200px;max-width:200px;margin:0!important;flex:none}
.teacher-profile-photo,.teacher-profile-photo-block img{display:block;width:200px!important;height:200px!important;border-radius:50%;object-fit:cover;box-shadow:0 8px 30px rgba(73,44,91,.14)}
.teacher-profile-content h2{font-size:clamp(28px,3.2vw,38px);margin:0 0 4px}
.teacher-profile-role{margin:0 0 18px!important;color:var(--cha-600);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.teacher-profile-content h3{font-size:21px;margin:26px 0 10px}
.teacher-profile-content p{max-width:620px}
.teacher-profile-contact{margin:0!important;padding:0;list-style:none}
.teacher-profile-contact li{margin:5px 0}

@media(max-width:640px){
  .profile-photo{float:none;margin:0 0 24px 0;width:150px;height:150px}
  .teacher-profile-row{grid-template-columns:1fr;gap:20px}
  .teacher-profile-photo,.teacher-profile-photo-block{width:150px;max-width:150px}
  .teacher-profile-photo,.teacher-profile-photo-block img{width:150px!important;height:150px!important}
  .teacher-profile-row+.teacher-profile-row{margin-top:20px}
}
