/*
Theme Name: Kiivi 2026
Description: Kiivi Autokool redesign (2026). Standalone theme, no parent.
Version: 1.0.0
Text Domain: kiivi2026
*/

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/manrope-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(assets/fonts/manrope-latin.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;
}

:root {
	--green: #007936;
	--green-dark: #00602b;
	--green-line: #3f9f66;
	--mint: #e3f3e9;
	--yellow: #ffe600;
	--yellow-soft: #fff8b3;
	--yellow-text: #fff59b;
	--ink: #111827;
	--muted: #4b5563;
	--sand: #f6f6f3;
	--sand-dark: #e8e8e2;
	--line: #e3e3dd;
	--line-strong: #d6d6cf;
	--foot-muted: #b7bfcf;
	--foot-line: #2a3344;

	--body: 17px;
	--lead: 19px;
	--h1: 48px;
	--h2: 32px;
	--h3: 24px;
	--gutter: 24px;
	--head-pad: 64px var(--gutter) 32px;
	--section-pad: 64px var(--gutter);
	--card-pad: 40px;
}
@media (max-width: 760px) {
	:root {
		--body: 16px;
		--lead: 17px;
		--h1: 32px;
		--h2: 26px;
		--h3: 22px;
		--gutter: 16px;
		--head-pad: 32px var(--gutter) 20px;
		--section-pad: 36px var(--gutter);
		--card-pad: 22px 18px;
	}
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
	margin: 0;
	font-family: 'Manrope', system-ui, sans-serif;
	font-size: var(--body);
	line-height: 1.55;
	color: var(--ink);
	background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.kv-green :focus-visible, .kv-footer :focus-visible, .kv-menu :focus-visible { outline-color: var(--yellow); }
.screen-reader-text, .kv-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.kv-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.kv-skip:focus { top: 8px; }
.kv-icon { width: 20px; height: 20px; flex: none; }

.kv-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kv-section { padding-top: 64px; padding-bottom: 64px; }
.kv-bg-sand { background: var(--sand); }
.kv-muted { color: var(--muted); }
.kv-small { font-size: 14px; color: var(--muted); }
.kv-stack > * + * { margin-top: 12px; }

.kv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr)); }
.kv-split { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.kv-split__main { flex: 999 1 540px; min-width: 0; }
.kv-split__side { flex: 1 1 320px; min-width: 0; }

/* ---------- type helpers ---------- */
.kv-eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--green); }
.kv-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.kv-green .kv-label, .kv-label--yellow { color: var(--yellow-text); }
.kv-h1 { font-size: var(--h1); line-height: 1; letter-spacing: -1.5px; }
.kv-h2 { font-size: var(--h2); line-height: 1.05; letter-spacing: -1px; }
.kv-h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.3px; }
.kv-lead { margin-top: 16px; max-width: 640px; font-size: var(--lead); color: var(--muted); }
.kv-pagehead { padding: var(--head-pad); max-width: 1200px; margin: 0 auto; }

/* Yellow key-word chip used in headings: [B]-kategooria */
.kv-chiphead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.kv-chip { display: inline-flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--yellow); color: var(--ink); }
.kv-chip--sm { min-height: 46px; padding: 0 14px; border-radius: 12px; }

/* ---------- buttons ---------- */
.kv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	color: var(--ink); background: transparent; text-align: center;
}
.kv-btn--yellow { background: var(--yellow); color: var(--ink); }
.kv-btn--green { background: var(--green); color: #fff; }
.kv-btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.kv-btn--outline-light { border: 2px solid var(--green-line); color: #fff; }
.kv-btn--white { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.kv-btn--lg { min-height: 52px; font-size: 17px; font-weight: 800; }
.kv-btn--block { display: flex; width: 100%; }
.kv-btn:hover { filter: brightness(0.96); }
.kv-btn--outline:hover, .kv-btn--white:hover { border-color: var(--ink); filter: none; }
.kv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.kv-textlink { color: var(--green); font-weight: 700; text-decoration: none; }
.kv-textlink:hover { text-decoration: underline; }

/* ---------- header ---------- */
.kv-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.kv-header__in { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.kv-logo { display: block; line-height: 0; }
.kv-logo img { height: 46px; width: auto; display: block; }
.kv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-weight: 600; font-size: 15px; }
.kv-nav a { color: var(--ink); text-decoration: none; padding: 9px 12px; border-radius: 999px; }
.kv-nav a:hover { background: var(--sand); }
.kv-nav a[aria-current="page"] { background: var(--yellow-soft); }
.kv-nav .kv-nav__ekool { color: var(--green); margin-left: 6px; }
.kv-nav .kv-nav__cta { background: var(--yellow); padding: 11px 20px; margin-left: 4px; }
.kv-nav .kv-nav__cta:hover, .kv-nav .kv-nav__cta[aria-current="page"] { background: var(--yellow); filter: brightness(0.96); }
.kv-lang { display: inline-flex; gap: 2px; margin-left: 10px; font-size: 13px; }
.kv-nav .kv-lang a { padding: 8px 6px; color: var(--muted); }
.kv-nav .kv-lang a[aria-current="true"] { color: var(--ink); font-weight: 700; background: none; }
.kv-header__mob { display: none; gap: 6px; }
.kv-round {
	width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); background: #fff; cursor: pointer; padding: 0;
}
.kv-round--green { background: var(--green); border-color: var(--green); color: #fff; }
.kv-round--white { background: #fff; border-color: #fff; color: var(--ink); }

@media (max-width: 1080px) {
	.kv-header__in { padding: 10px 10px 10px 16px; flex-wrap: nowrap; }
	.kv-logo img { height: 36px; }
	.kv-nav { display: none; }
	.kv-header__mob { display: flex; }
}

/* ---------- mobile menu ---------- */
.kv-menu {
	position: fixed; inset: 0; z-index: 50; background: var(--ink); color: #fff;
	display: flex; flex-direction: column; overflow-y: auto;
}
.kv-menu[hidden] { display: none; }
.kv-menu__top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--foot-line); }
.kv-menu__top img { height: 36px; width: auto; display: block; }
.kv-menu__nav { flex-grow: 1; padding: 10px 18px 0; display: flex; flex-direction: column; }
.kv-menu__link {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0;
	border-bottom: 1px solid var(--foot-line); color: #fff; text-decoration: none;
	font-weight: 800; font-size: 28px; letter-spacing: -0.8px; line-height: 1.1;
}
.kv-menu__nav a[aria-current="page"] { color: var(--yellow); }
.kv-menu__nav small { font-size: 13px; font-weight: 600; color: var(--foot-muted); letter-spacing: 0; text-align: right; }
.kv-menu__foot { padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.kv-menu__phone { border-color: #3b4556; color: #fff; font-size: 20px; font-weight: 800; }
.kv-menu__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.kv-menu__row > a { color: var(--yellow); text-decoration: none; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.kv-menu__lang { display: flex; gap: 4px; }
.kv-menu__lang a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; color: var(--foot-muted); border-radius: 999px; }
.kv-menu__lang a[aria-current="true"] { color: var(--ink); background: #fff; }
body.kv-menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.kv-footer { background: var(--ink); color: #fff; font-size: 16px; line-height: 1.5; }
.kv-footer a { color: #fff; }
.kv-footer__grid { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kv-footer__logo { height: 48px; width: auto; display: block; }
.kv-footer__about { margin-top: 16px; color: var(--foot-muted); font-size: 15px; }
.kv-footer__title { font-size: 12px; color: var(--foot-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 600; }
.kv-footer__phone { display: block; text-decoration: none; font-weight: 800; font-size: 24px; line-height: 1.2; }
.kv-footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kv-footer__links a { min-height: 32px; display: inline-flex; align-items: center; }
.kv-footer__bottom { border-top: 1px solid var(--foot-line); }
.kv-footer__bottom > div { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: var(--foot-muted); }
.kv-footer__eakl { display: inline-flex; align-items: center; gap: 10px; }
.kv-footer__eakl img { height: 28px; width: auto; background: #fff; border-radius: 6px; padding: 2px; }
.kv-mobbar { display: none; }
@media (max-width: 760px) {
	.kv-footer__grid { padding: 36px 18px 28px; }
	.kv-mobbar {
		position: sticky; bottom: 0; z-index: 15; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
		padding: 10px; background: #fff; border-top: 1px solid var(--line);
	}
	.kv-mobbar .kv-btn { min-height: 48px; }
	.kv-mobbar .kv-btn--outline { border-color: var(--ink); }
}

/* ---------- home: hero ---------- */
.kv-hero { position: relative; background: var(--green); color: #fff; overflow: hidden; }
.kv-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; display: block; }
.kv-hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,96,43,.9) 0%, rgba(0,96,43,.81) 38%, rgba(0,96,43,.41) 62%, rgba(0,96,43,.11) 100%); }
.kv-hero__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 72px var(--gutter); display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.kv-hero__kicker { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow-text); }
.kv-hero__kicker::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--yellow); }
.kv-hero h1 { font-size: 40px; line-height: 1.02; letter-spacing: -1.5px; }
.kv-hero__lead { margin-top: 22px; max-width: 540px; font-size: var(--lead); color: var(--mint); }
.kv-hero .kv-btns { margin-top: 30px; gap: 10px; }
.kv-hero .kv-btn { font-size: 17px; padding: 0 24px; min-height: 52px; }
@media (max-width: 760px) {
	.kv-hero__img { object-position: 62% 55%; }
	.kv-hero__fade { background: linear-gradient(180deg, rgba(0,96,43,.9) 0%, rgba(0,96,43,.77) 55%, rgba(0,96,43,.32) 100%); }
	.kv-hero__in { padding: 32px var(--gutter) 28px; }
	.kv-hero h1 { font-size: 28px; }
}

/* course list (home hero card + registreeri page) */
.kv-coursecard { background: #fff; color: var(--ink); border-radius: 20px; padding: 24px 24px 14px; }
.kv-coursecard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kv-coursecard__head h2 { font-size: 20px; letter-spacing: -0.3px; }
.kv-coursecard__head a { font-size: 14px; }
.kv-crow {
	color: var(--ink); text-decoration: none; display: grid; grid-template-columns: 64px minmax(0, 1fr) 22px;
	align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 56px;
}
.kv-crow:last-of-type { border-bottom-color: transparent; }
.kv-crow:hover .kv-crow__name { text-decoration: underline; }
.kv-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 64px; height: 64px; border-radius: 14px; background: var(--yellow); line-height: 1; text-align: center;
}
.kv-date--sand { background: var(--sand); }
.kv-date--white { background: #fff; }
.kv-date b { font-size: 26px; font-weight: 800; }
.kv-date span { font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-top: 2px; }
.kv-crow__name { display: block; font-weight: 700; font-size: 17px; }
.kv-crow__meta { display: block; font-size: 14px; color: var(--muted); }
.kv-coursecard__note { margin: 12px 0 6px; font-size: 13px; color: var(--muted); }

/* service cards */
.kv-service { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; background: var(--sand); border-radius: 20px; min-height: 260px; }
.kv-service h2 { font-size: var(--h3); line-height: 1.05; letter-spacing: -0.8px; }
.kv-service p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.kv-service .kv-btns { margin-top: 6px; }
.kv-service .kv-btn { min-height: 46px; padding: 0 18px; font-size: 15px; }

/* photo + facts */
.kv-photofacts { display: grid; gap: 32px 56px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); padding-top: 24px; padding-bottom: 64px; }
.kv-photo { margin: 0; height: 400px; border-radius: 20px; overflow: hidden; background: var(--sand-dark); }
.kv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.kv-facts { display: grid; gap: 18px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 18px; }
.kv-fact { border-top: 2px solid var(--yellow); padding-top: 12px; }
.kv-fact b { display: block; font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -1px; }
.kv-fact p { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
	.kv-photofacts { padding-top: 12px; padding-bottom: 36px; }
	.kv-photo { height: 220px; }
	.kv-fact b { font-size: 30px; }
}

/* news */
.kv-newshead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.kv-news { background: #fff; border-radius: 16px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.kv-news time { font-size: 13px; font-weight: 600; color: var(--muted); }
.kv-news p { color: var(--muted); font-size: 15px; flex-grow: 1; }
.kv-news .kv-textlink { font-size: 15px; margin-top: 4px; }

/* ---------- koolitus ---------- */
.kv-jump { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.kv-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.kv-jump a:hover { background: var(--yellow-soft); }
.kv-block { padding-top: 16px; padding-bottom: 16px; }
.kv-panel { background: var(--sand); border-radius: 24px; padding: var(--card-pad); display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.kv-panel > div > p, .kv-panel ul { color: var(--muted); }
.kv-panel h2 + p { margin-top: 14px; }
.kv-panel p + p { margin-top: 12px; }
.kv-panel ul { margin: 12px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.kv-panel.kv-green { background: var(--green); color: #fff; }
.kv-panel.kv-green > div > p { color: var(--mint); }
.kv-pricelist { display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 6px 20px; align-self: start; overflow: hidden; }
.kv-pricelist__img { width: calc(100% + 40px); margin: -6px -20px 6px; height: 200px; object-fit: cover; display: block; max-width: none; }
.kv-prow { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv-prow:last-child { border-bottom: 0; }
.kv-prow__name { display: block; font-weight: 700; }
.kv-prow__meta { display: block; font-size: 14px; color: var(--muted); }
.kv-prow__price { font-weight: 800; white-space: nowrap; }
.kv-note { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 820px; }
.kv-info { background: var(--green-dark); border-radius: 16px; padding: 18px 20px; }
.kv-info p { margin-top: 6px; color: var(--mint); font-size: 15px; }
.kv-whiterow { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; color: var(--ink); border-radius: 16px; font-weight: 700; }
.kv-whiterow b { font-weight: 800; white-space: nowrap; }
.kv-col { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.kv-extra { padding: 22px; border: 1.5px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.kv-extra__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kv-extra__head b { font-weight: 800; font-size: 22px; white-space: nowrap; }
.kv-extra p { color: var(--muted); font-size: 15px; }

/* ---------- hinnakiri ---------- */
.kv-pgroup { margin-bottom: 28px; }
.kv-pgroup h2 { margin-bottom: 10px; font-size: 24px; letter-spacing: -0.6px; }
.kv-ptable { background: var(--sand); border-radius: 20px; padding: 4px 22px; }
.kv-ptable__head, .kv-ptable__row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px 120px; gap: 12px 16px; align-items: center; }
.kv-ptable__head { padding: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.kv-ptable__row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv-ptable__row:last-child { border-bottom: 0; }
.kv-ptable__row > span:first-child { font-weight: 500; }
.kv-ptable__row.is-main > span:first-child { font-weight: 700; }
.kv-ptable__num { text-align: center; color: var(--muted); font-size: 15px; hyphens: manual; }
.kv-ptable__hours { display: none; }
.kv-ptable__price { text-align: right; font-weight: 800; white-space: nowrap; }
@media (max-width: 760px) {
	.kv-ptable__head, .kv-ptable__row { grid-template-columns: minmax(0, 1fr) auto; }
	.kv-ptable__num, .kv-ptable__head .kv-ptable__num { display: none; }
	.kv-ptable__hours { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
	.kv-pgroup h2 { font-size: 22px; }
}
.kv-terms { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.kv-paybox { padding: 22px 24px; background: var(--green); color: #fff; border-radius: 20px; }
.kv-iban { font-weight: 800; font-size: 26px; letter-spacing: .5px; overflow-wrap: anywhere; margin-top: 4px; }
.kv-paybox p { margin-top: 8px; font-size: 15px; color: var(--mint); }
@media (max-width: 760px) { .kv-iban { font-size: 20px; } }

/* ---------- meeskond ---------- */
.kv-person { display: flex; flex-direction: column; background: var(--sand); border-radius: 20px; overflow: hidden; }
.kv-person__img { height: 300px; background: var(--sand-dark); overflow: hidden; }
.kv-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.kv-person__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.kv-person__role { font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.kv-person h2 { font-size: 24px; line-height: 1.1; letter-spacing: -0.5px; }
.kv-person__text { flex-grow: 1; margin: 2px 0 12px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.kv-person__text p { margin: 0 0 10px; }
.kv-person__more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.kv-person__more[open] summary { margin-bottom: 6px; }
.kv-people__title { margin-bottom: 8px; }
.kv-people__intro { max-width: 760px; margin: 0 0 24px; font-size: 19px; color: var(--muted); }
.kv-person .kv-btn { min-height: 46px; }
@media (max-width: 760px) { .kv-person__img { height: 260px; } }

/* ---------- forms ---------- */
.kv-form { border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.kv-form.kv-green { background: var(--green); color: #fff; }
.kv-form.kv-sand { background: var(--sand); }
.kv-form h2 { font-size: 26px; line-height: 1.1; letter-spacing: -0.5px; }
.kv-field { display: flex; flex-direction: column; gap: 6px; }
.kv-field label { font-size: 14px; font-weight: 700; }
.kv-field input, .kv-field textarea {
	font-size: 16px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong);
	border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
}
.kv-green .kv-field input { border-color: #fff; }
.kv-field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.kv-form__fine { font-size: 13px; }
.kv-green .kv-form__fine, .kv-green .kv-form__sub { color: var(--mint); }
.kv-form__sub { margin-top: 4px; font-size: 15px; color: var(--muted); }
.kv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.kv-alert { padding: 14px 18px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); font-weight: 600; }
.kv-alert--error { background: #fde8e8; color: #8a1c1c; }

/* ---------- registreeri ---------- */
.kv-filters { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.kv-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kv-filter__label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-right: 4px; min-width: 72px; }
.kv-pill {
	font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
}
.kv-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.kv-courses { display: flex; flex-direction: column; gap: 10px; }
.kv-course {
	text-align: left; cursor: pointer; color: var(--ink); background: var(--sand); border: 2px solid transparent;
	border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%;
}
.kv-course .kv-date { background: #fff; }
.kv-course .kv-date b { font-size: 24px; }
.kv-course[aria-pressed="true"] { background: var(--yellow-soft); border-color: var(--yellow); }
.kv-course:hover { border-color: var(--line-strong); }
.kv-course[aria-pressed="true"]:hover { border-color: var(--yellow); }
.kv-course:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.kv-course[aria-pressed="true"] .kv-date { background: var(--yellow); }
.kv-course[hidden] { display: none; }
.kv-course__name { display: block; font-weight: 800; font-size: 17px; }
.kv-course__meta { display: block; font-size: 14px; color: var(--muted); }
.kv-course__price { text-align: right; }
.kv-course__price b { display: block; font-weight: 800; font-size: 18px; white-space: nowrap; }
.kv-course__price span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.kv-empty { padding: 22px; background: var(--sand); border-radius: 18px; color: var(--muted); }
.kv-regform { position: sticky; top: 16px; }
.kv-sheet__close { display: none; }
@media (max-width: 760px) {
	.kv-course { grid-template-columns: 56px minmax(0, 1fr); padding: 14px; }
	.kv-course .kv-date { width: 56px; height: 56px; }
	.kv-course__price { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
	.kv-regform { position: static; }
	/* with JS the form becomes a bottom sheet that opens when a course is tapped */
	.kv-sheet.is-js { position: fixed; inset: 0; z-index: 40; background: rgba(17,24,39,.6); display: flex; align-items: flex-end; margin: 0; }
	.kv-sheet.is-js[data-open="false"] { display: none; }
	.kv-sheet.is-js .kv-regform { width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px 20px 24px; gap: 14px; }
	.kv-sheet.is-js .kv-form h2 { font-size: 22px; }
	.kv-sheet.is-js .kv-sheet__close { display: flex; flex: none; width: 44px; height: 44px; }
}
.kv-sheet__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ---------- kkk ---------- */
.kv-kkkbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.kv-linkbtn { font-size: 15px; font-weight: 700; color: var(--green); background: transparent; border: 0; padding: 6px 0; cursor: pointer; min-height: 40px; }
.kv-qas { display: flex; flex-direction: column; gap: 8px; }
.kv-qa { background: var(--sand); border-radius: 18px; overflow: hidden; }
.kv-qa[open] { background: var(--yellow-soft); }
.kv-qa__q {
	list-style: none; color: var(--ink); padding: 18px 20px;
	display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 16px; align-items: start; cursor: pointer;
}
.kv-qa__text { display: block; font-weight: 700; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.kv-qa__who { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.kv-qa__icon { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.kv-qa[open] .kv-qa__icon { background: var(--ink); color: #fff; }
.kv-qa[open] .kv-qa__vbar { display: none; }
.kv-qa__a { margin: 0 20px 20px; padding: 16px 18px; background: #fff; border-radius: 14px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.kv-qa__q::-webkit-details-marker { display: none; }
.kv-qa__q:hover .kv-qa__text { text-decoration: underline; }
.kv-qa { scroll-margin-top: 16px; }
.kv-qa__k { width: 36px; height: 36px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.kv-qa__a .kv-label { margin-bottom: 4px; letter-spacing: 1.5px; }
.kv-qa__a p { overflow-wrap: anywhere; }
.kv-qa__a p + p { margin-top: 8px; }
.kv-more { margin-top: 16px; }
@media (max-width: 760px) { .kv-qa__text { font-size: 17px; } }

/* ---------- koolist ---------- */
.kv-story { display: grid; gap: 32px 56px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.kv-story p { color: var(--muted); }
.kv-story p + p { margin-top: 14px; }
.kv-badge { background: var(--sand); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; align-self: stretch; font-weight: 700; }
.kv-badge img { height: 170px; width: auto; display: block; }
.kv-bigphoto { margin: 0; height: 440px; border-radius: 24px; overflow: hidden; background: var(--sand-dark); }
.kv-bigphoto img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.kv-links { display: flex; flex-direction: column; gap: 8px; }
.kv-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 18px; background: #fff; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.kv-links a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.kv-links small { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--green); text-align: right; }
.kv-2col { display: grid; gap: 32px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.kv-2col h2 { margin-bottom: 14px; font-size: 30px; letter-spacing: -0.8px; line-height: 1; }
.kv-2col h2 + p { margin-bottom: 14px; color: var(--muted); }
@media (max-width: 760px) {
	.kv-badge img { height: 120px; }
	.kv-bigphoto { height: 220px; }
	.kv-2col h2 { font-size: 24px; }
}

/* ---------- kontakt ---------- */
.kv-contact { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.kv-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; background: var(--sand); color: var(--ink); border-radius: 20px; text-decoration: none; }
a.kv-tile:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.kv-tile__big { display: block; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; margin-top: 4px; overflow-wrap: anywhere; }
.kv-tile .kv-icon { width: 28px; height: 28px; }
.kv-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kv-tiles > div { padding: 20px 22px; background: var(--sand); border-radius: 20px; }
.kv-tiles .kv-label { margin-bottom: 6px; }
.kv-map { margin: 0; position: relative; min-height: 460px; border-radius: 20px; overflow: hidden; background: var(--sand-dark); }
.kv-map img, .kv-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; border: 0; }
.kv-map figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 14px; background: #fff; padding: 8px 14px; border-radius: 999px; }
.kv-company { background: var(--green); color: #fff; border-radius: 24px; padding: 32px 36px; display: grid; gap: 20px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); font-weight: 700; }
.kv-company .kv-label { margin-bottom: 6px; }
@media (max-width: 760px) {
	.kv-map { min-height: 240px; }
	.kv-company { padding: 22px 20px; }
}

/* ---------- e-kool ---------- */
.kv-ekool { display: grid; gap: 40px 64px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); padding-top: 72px; padding-bottom: 96px; }
.kv-ekool__text > p { color: var(--muted); }
.kv-features { margin-top: 24px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.kv-features > div { padding: 16px 18px; background: var(--sand); border-radius: 16px; }
.kv-features b { font-weight: 800; }
.kv-features p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.kv-ekool .kv-form { align-self: stretch; padding: 32px; }
.kv-ekool .kv-field input { min-height: 50px; }
@media (max-width: 760px) {
	.kv-ekool { padding-top: 32px; padding-bottom: 44px; }
	.kv-ekool .kv-form { padding: 24px 20px; }
}

/* ---------- generic content (pages without a custom template, single posts) ---------- */
.kv-content { max-width: 820px; }
.kv-content > * + * { margin-top: 1em; }
.kv-content h2 { font-size: 28px; letter-spacing: -0.6px; line-height: 1.15; margin-top: 1.6em; }
.kv-content h3 { font-size: 21px; margin-top: 1.4em; }
.kv-content ul, .kv-content ol { padding-left: 22px; }
.kv-content img { border-radius: 16px; }
.kv-content table { border-collapse: collapse; width: 100%; }
.kv-content td, .kv-content th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.kv-content a { font-weight: 600; }
.kv-postnav { margin-top: 40px; }

@media (max-width: 760px) {
	.kv-section { padding-top: 36px; padding-bottom: 36px; }
	.kv-panel h2.kv-h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- section builder ---------- */
.kv-sec { padding-top: 16px; padding-bottom: 16px; }
.kv-sec--spaced { padding-top: 32px; padding-bottom: 32px; }
.kv-sec--tight { padding-top: 8px; padding-bottom: 8px; }
.kv-sec--tight .kv-pgroup { margin-bottom: 12px; }
.kv-sec--last { padding-bottom: 80px; }
.kv-band { padding-top: 48px; padding-bottom: 64px; margin-top: 32px; }
.kv-band.kv-sec--last { padding-bottom: 72px; margin-bottom: 0; }
.kv-pagehead--sections { padding-bottom: 24px; }
.kv-sec__title { margin-bottom: 18px; }
.kv-eyebrow a { color: inherit; text-decoration: none; }
.kv-eyebrow a:hover { text-decoration: underline; }
.kv-chip--head { min-height: 1.2em; padding: 0 .3em; border-radius: .25em; }
.kv-h1.kv-chiphead { gap: 8px; }

.kv-rich > * + * { margin-top: 12px; }
.kv-rich ul, .kv-rich ol { margin: 12px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.kv-rich h3, .kv-rich h4 { font-size: 19px; color: var(--ink); margin-top: 20px; }
.kv-rich a { font-weight: 600; }
.kv-panel .kv-rich { color: var(--muted); }
.kv-panel h2 + .kv-rich { margin-top: 14px; }
.kv-panel.kv-green .kv-rich { color: var(--mint); }
.kv-panel.kv-green .kv-rich a, .kv-panel.kv-green .kv-rich h3, .kv-panel.kv-green .kv-rich h4 { color: #fff; }
.kv-2col .kv-rich { color: var(--muted); }
.kv-2col .kv-rich ul { gap: 10px; }
.kv-2col .kv-rich + .kv-paybox { margin-top: 16px; }
.kv-rich--lead p { color: var(--muted); }
.kv-pricelist--image { padding: 0; }
.kv-pricelist--image .kv-pricelist__img { margin: 0; width: 100%; height: 100%; min-height: 240px; }
.kv-whiterow .kv-prow__meta { font-weight: 500; }
.kv-extra h3 a { color: inherit; text-decoration: none; }
.kv-extra h3 a:hover { text-decoration: underline; }
.kv-extra__more { font-size: 15px; margin-top: auto; padding-top: 4px; }
.kv-ptable--simple .kv-ptable__head, .kv-ptable--simple .kv-ptable__row { grid-template-columns: minmax(0, 1fr) auto; }
.kv-links--sand a { background: var(--sand); }
.kv-content--section { max-width: 820px; }

.kv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.kv-step { background: var(--sand); border-radius: 20px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.kv-step__num { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; margin-bottom: 4px; }
.kv-step__label { color: var(--green); }
.kv-step .kv-rich { color: var(--muted); font-size: 15px; }
.kv-step .kv-rich ul { gap: 4px; }

.kv-textmedia { display: grid; gap: 32px 56px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.kv-content--section > h2 { margin-top: 0; }

.kv-cta { border-radius: 24px; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--green); color: #fff; }
.kv-cta p { margin-top: 8px; color: var(--mint); max-width: 620px; }
.kv-cta .kv-cta__btns { margin-top: 0; }
@media (max-width: 760px) {
	.kv-band { padding-top: 32px; padding-bottom: 40px; }
	.kv-cta { padding: 22px 20px; }
	.kv-sec--last { padding-bottom: 44px; }
}
.kv-service .kv-chip { min-height: 46px; padding: 0 14px; border-radius: 12px; }

/* ---------- submenus ---------- */
.kv-nav__item { position: relative; display: inline-flex; align-items: center; }
.kv-nav__item > a { padding-right: 4px; }
.kv-nav__item.is-current > a { background: var(--yellow-soft); }
.kv-nav__toggle { width: 28px; height: 36px; margin-left: -2px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.kv-nav__toggle:hover { background: var(--sand); }
.kv-nav__chev { transform: rotate(90deg); transition: transform .15s; }
[data-kv-sub].is-open .kv-nav__chev, .kv-menu__toggle[aria-expanded="true"] .kv-nav__chev { transform: rotate(-90deg); }
.kv-sub { position: absolute; top: 100%; left: 0; z-index: 30; padding-top: 8px; display: none; }
.kv-nav__item:hover .kv-sub, .kv-nav__item.is-open .kv-sub { display: block; }
.kv-nav__item.is-closed .kv-sub { display: none; }
.kv-sub ul { list-style: none; margin: 0; padding: 8px; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(17, 24, 39, .12); }
.kv-nav .kv-sub a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.kv-nav .kv-sub a:hover { background: var(--sand); }
.kv-nav .kv-sub a[aria-current="page"] { background: var(--yellow-soft); }

.kv-menu__row2 { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--foot-line); }
.kv-menu__row2 .kv-menu__link { flex: 1; border-bottom: 0; }
.kv-menu__toggle { flex: none; background: transparent; border-color: #3b4556; color: #fff; }
.kv-menu__sub { list-style: none; margin: 0; padding: 6px 0 10px 14px; border-bottom: 1px solid var(--foot-line); }
.kv-menu__sub[hidden] { display: none; }
.kv-menu__sub a { display: flex; align-items: center; min-height: 44px; color: var(--foot-muted); text-decoration: none; font-weight: 700; font-size: 18px; }
.kv-menu__sub a[aria-current="page"] { color: var(--yellow); }
@media (max-width: 1180px) and (min-width: 1081px) { .kv-nav { font-size: 14px; } .kv-nav a { padding: 9px 9px; } }
