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

@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/barlow-400-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: 'Barlow';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/barlow-400-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;
}
@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(assets/fonts/barlow-500-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: 'Barlow';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(assets/fonts/barlow-500-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;
}
@font-face {
	font-family: 'Barlow';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-600-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: 'Barlow';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-600-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;
}
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-condensed-600-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: 'Barlow Condensed';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(assets/fonts/barlow-condensed-600-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;
}
@font-face {
	font-family: 'Barlow Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/barlow-condensed-700-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: 'Barlow Condensed';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/barlow-condensed-700-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 {
	--ink: #14201a;
	--dark: #3b4540; /* dark backgrounds (topbar, footer, cards): softer than --ink */
	--text: #34443b;
	--muted: #4a5a51;
	--green: #009d57;
	--green-text: #007a43;
	--lime: #b4e674;
	--mint: #f2f9e9;
	--hl: #f5faf7;
	--map: #e3ece6;
	--line: #d5e2da;
	--line-strong: #c7d8cd;
	--foot-muted: #c3cec8;
	--foot-line: #34423a;
	--cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--dash: repeating-linear-gradient(90deg, var(--lime) 0 22px, transparent 22px 36px);

	--body: 17px;
	--lead: 19px;
	--h1: 48px;
	--h2: 39px;
	--h3: 32px;
	--gutter: 24px;
	--card-pad: 28px 26px;
}
@media (max-width: 760px) {
	:root {
		--body: 16px;
		--lead: 17px;
		--h1: 36px;
		--h2: 27px;
		--h3: 24px;
		--gutter: 16px;
		--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: 'Barlow', 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(--ink); }
h1, h2, h3 { margin: 0; font-family: var(--cond); font-weight: 700; line-height: 1.1; }
p { margin: 0; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.sg-dark :focus-visible, .sg-footer :focus-visible, .sg-menu :focus-visible, .sg-topbar :focus-visible { outline-color: var(--lime); }
.screen-reader-text, .sg-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;
}
.sg-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 3px; font-weight: 600; }
.sg-skip:focus { top: 8px; }
.sg-icon { width: 20px; height: 20px; flex: none; }
.sg-dash { height: 3px; background-image: var(--dash); }

.sg-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sg-section { padding-top: 64px; padding-bottom: 64px; }
.sg-bg-mint { background: var(--mint); }
.sg-muted { color: var(--muted); }
.sg-small { font-size: 14px; color: var(--muted); }

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

/* ---------- type helpers ---------- */
.sg-eyebrow { margin: 0 0 14px; font-family: var(--cond); font-weight: 600; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.sg-label { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.sg-dark .sg-label { color: var(--foot-muted); }
.sg-label--lime, .sg-dark .sg-label--lime { color: var(--lime); }
.sg-h1 { font-size: var(--h1); line-height: 1.05; }
.sg-h2 { font-size: var(--h2); line-height: 1.05; }
.sg-h3 { font-size: 22px; line-height: 1.15; }
.sg-lead { margin-top: 14px; max-width: 660px; font-size: var(--lead); color: var(--text); }

/* Lime key-word chip used in headings: [B]-kategooria */
.sg-chiphead { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.sg-chip { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 3px; background: var(--lime); color: var(--ink); line-height: 1.2; }
.sg-chip--head { padding: 0 12px; line-height: 1.15; }
.sg-h1.sg-chiphead { gap: 4px; }

/* ---------- buttons ---------- */
.sg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 20px; border-radius: 3px; border: 2px solid transparent;
	font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
	color: var(--ink); background: transparent; text-align: center;
}
.sg-btn--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.sg-btn--outline { border-color: var(--green); color: var(--ink); }
.sg-btn--outline-light { border: 1.5px solid var(--foot-muted); color: #fff; }
.sg-btn--white { background: #fff; border-color: #fff; color: var(--ink); }
.sg-btn--lg { min-height: 52px; font-size: 18px; }
.sg-btn--block { display: flex; width: 100%; }
.sg-btn--split { justify-content: space-between; }
.sg-btn:hover { filter: brightness(0.95); }
.sg-btn--outline:hover { background: var(--mint); filter: none; }
.sg-btn--outline-light:hover { border-color: #fff; filter: none; }
.sg-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sg-textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sg-textlink:hover { text-decoration-color: var(--green); }

/* ---------- header ---------- */
.sg-topbar { background: var(--dark); color: #fff; font-size: 14px; }
.sg-topbar__in { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.sg-topbar__links { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.sg-topbar a { color: #fff; text-decoration: none; }
.sg-topbar a:hover { text-decoration: underline; }
.sg-topbar__strong { font-weight: 600; }
.sg-lang { display: inline-flex; gap: 10px; }
.sg-lang a { color: var(--foot-muted); }
.sg-lang a[aria-current="true"] { color: #fff; font-weight: 600; }

.sg-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.sg-header__in { max-width: 1200px; margin: 0 auto; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.sg-logo { display: block; line-height: 0; }
.sg-logo img { height: 52px; width: auto; display: block; }
.sg-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 600; font-size: 16px; }
.sg-nav > a, .sg-nav__item > a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; }
.sg-nav > a:hover, .sg-nav__item > a:hover { border-bottom-color: var(--line-strong); }
.sg-nav > a[aria-current="page"], .sg-nav__item > a[aria-current="page"], .sg-nav__item.is-current > a { border-bottom-color: var(--green); }
.sg-nav .sg-nav__cta { background: var(--lime); padding: 11px 20px; border-radius: 3px; border-bottom: 0; margin-left: 8px; }
.sg-nav .sg-nav__cta:hover { filter: brightness(0.95); }
.sg-header__mob { display: none; gap: 6px; }
.sg-round {
	width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	border-radius: 3px; border: 1.5px solid var(--green); color: var(--ink); background: #fff; cursor: pointer; padding: 0;
}
.sg-round--lime { background: var(--lime); border-color: var(--lime); }
.sg-round--white { background: #fff; border-color: #fff; color: var(--ink); }
.sg-crumb { display: none; }

@media (max-width: 1080px) {
	.sg-topbar { display: none; }
	.sg-header__in { padding: 8px 8px 8px 16px; flex-wrap: nowrap; }
	.sg-logo img { height: 38px; }
	.sg-nav { display: none; }
	.sg-header__mob { display: flex; }
}

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

/* ---------- mobile menu ---------- */
.sg-menu {
	position: fixed; inset: 0; z-index: 50; background: var(--dark); color: #fff;
	display: flex; flex-direction: column; overflow-y: auto;
}
.sg-menu[hidden] { display: none; }
.sg-menu__top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--foot-line); }
.sg-menu__top img { height: 38px; width: auto; display: block; }
.sg-menu__nav { flex-grow: 1; padding: 8px 18px 0; display: flex; flex-direction: column; }
.sg-menu__link {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0;
	border-bottom: 1px solid var(--foot-line); color: #fff; text-decoration: none;
	font-family: var(--cond); font-weight: 600; font-size: 28px; line-height: 1.1;
}
.sg-menu__nav a[aria-current="page"] { color: var(--lime); }
.sg-menu__nav small { font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 500; color: var(--foot-muted); text-align: right; }
.sg-menu .sg-dash { margin: 0 18px; flex: none; }
.sg-menu__foot { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.sg-menu__phone { min-height: 52px; font-family: var(--cond); font-weight: 700; font-size: 26px; }
.sg-menu__row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--foot-muted); }
.sg-menu__lang { display: flex; gap: 4px; }
.sg-menu__lang a { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 600; text-decoration: none; color: var(--foot-muted); border-radius: 3px; border: 1px solid transparent; }
.sg-menu__lang a[aria-current="true"] { color: #fff; border-color: #fff; }
.sg-menu__row2 { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--foot-line); }
.sg-menu__row2 .sg-menu__link { flex: 1; border-bottom: 0; }
.sg-menu__toggle { flex: none; background: transparent; border-color: var(--foot-line); color: #fff; width: 44px; height: 44px; }
.sg-menu__sub { list-style: none; margin: 0; padding: 4px 0 10px 14px; border-bottom: 1px solid var(--foot-line); }
.sg-menu__sub[hidden] { display: none; }
.sg-menu__sub a { display: flex; align-items: center; min-height: 44px; color: var(--foot-muted); text-decoration: none; font-weight: 600; font-size: 18px; }
.sg-menu__sub a[aria-current="page"] { color: var(--lime); }
body.sg-menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.sg-footer { background: var(--dark); color: #fff; font-size: 16px; line-height: 1.5; }
.sg-footer a { color: #fff; }
.sg-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)); }
.sg-footer__logo { height: 44px; width: auto; display: block; }
.sg-footer__about { margin-top: 18px; color: var(--foot-muted); font-size: 15px; }
.sg-footer__title { font-size: 13px; color: var(--foot-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.sg-footer__phone { display: block; text-decoration: none; font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.2; }
.sg-footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.sg-footer__links a { min-height: 32px; display: inline-flex; align-items: center; }
.sg-footer__bottom { border-top: 1px solid var(--foot-line); }
.sg-footer__bottom > div { max-width: 1200px; margin: 0 auto; padding: 16px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; font-size: 13px; color: var(--foot-muted); }
.sg-footer__eakl { display: inline-flex; align-items: center; gap: 10px; }
.sg-footer__eakl img { height: 28px; width: auto; background: #fff; border-radius: 3px; padding: 2px; }
.sg-mobbar { display: none; }
@media (max-width: 760px) {
	.sg-footer__grid { padding: 36px 18px 28px; }
	.sg-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);
	}
	.sg-mobbar .sg-btn { min-height: 48px; font-size: 16px; }
}

/* ---------- page head ---------- */
.sg-pagehead { background: var(--mint); }
.sg-pagehead__in { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 48px; }
.sg-pagehead--crumb .sg-pagehead__in { padding-top: 28px; }
.sg-crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.sg-crumbs a { color: var(--ink); }
.sg-pagehead .sg-btns { margin-top: 24px; }
@media (max-width: 760px) {
	.sg-pagehead__in { padding: 28px var(--gutter); }
	.sg-pagehead--crumb .sg-pagehead__in { padding-top: 20px; }
}

/* ---------- home ---------- */
.sg-hero { max-width: 1200px; margin: 0 auto; padding: 64px var(--gutter) 56px; display: grid; gap: 40px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.sg-hero h1 { font-size: 66px; line-height: 1.05; letter-spacing: -0.5px; }
.sg-hero h1 .sg-chip { display: inline-block; line-height: 1; padding: 2px 8px 0; }
.sg-hero__lead { margin-top: 22px; max-width: 520px; font-size: var(--lead); color: var(--text); }
.sg-hero .sg-btns { margin-top: 28px; gap: 10px; }
.sg-hero .sg-btn { font-size: 18px; min-height: 54px; }
.sg-hero .sg-btn--lime { flex: 1 1 220px; max-width: 300px; justify-content: space-between; }
.sg-hero .sg-btn--outline { flex: 1 1 180px; max-width: 240px; }
@media (max-width: 760px) {
	.sg-hero { padding: 28px var(--gutter); gap: 28px; }
	.sg-hero h1 { font-size: 38px; }
}

/* course list card (home hero) */
.sg-coursecard { background: var(--dark); color: #fff; border-radius: 4px; padding: 24px 22px 12px; }
.sg-coursecard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sg-coursecard__head h2 { font-family: var(--cond); font-weight: 600; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.sg-coursecard__head span { font-size: 14px; color: var(--foot-muted); }
.sg-coursecard .sg-dash { margin: 16px 0 4px; }
.sg-crow {
	color: #fff; text-decoration: none; display: grid; grid-template-columns: 70px minmax(0, 1fr) 22px;
	align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--foot-line); min-height: 52px;
}
.sg-crow:last-of-type { border-bottom-color: transparent; }
.sg-crow:hover .sg-crow__name { text-decoration: underline; text-decoration-color: var(--lime); }
.sg-crow__date { font-family: var(--cond); line-height: 1; }
.sg-crow__date b { display: block; font-size: 32px; font-weight: 700; }
.sg-crow__date span { display: block; font-size: 14px; letter-spacing: 1px; color: var(--foot-muted); }
.sg-crow__name { display: block; font-weight: 600; font-size: 18px; }
.sg-crow__meta { display: block; font-size: 14px; color: var(--foot-muted); }
.sg-coursecard__note { margin: 12px 0 6px; font-size: 14px; color: var(--foot-muted); }
.sg-coursecard__note a { color: #fff; }
.sg-coursecard__all { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 600; font-size: 15px; }

/* journey */
.sg-journey { background: var(--mint); border-radius: 4px; padding: 32px 32px 28px; }
.sg-journey__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 22px; }
.sg-journey__head span { font-size: 15px; color: var(--muted); }
.sg-journey__road { position: relative; }
.sg-journey__road::before { content: ''; position: absolute; left: 22px; right: 22px; top: 20px; height: 4px; background-image: repeating-linear-gradient(90deg, var(--green) 0 22px, transparent 22px 36px); }
.sg-journey ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.sg-journey li b { display: block; margin-top: 12px; font-weight: 600; font-size: 18px; }
.sg-journey li span:not(.sg-num) { display: block; margin-top: 2px; font-size: 15px; color: var(--text); }
.sg-num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 3px; background: var(--dark); color: #fff; font-family: var(--cond); font-weight: 700; font-size: 22px; }
.sg-journey li:first-child .sg-num { background: var(--lime); color: var(--ink); }
@media (max-width: 760px) {
	.sg-journey { padding: 22px 18px; }
	.sg-journey__road::before { display: none; }
}

/* facts */
.sg-facts { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); border-top: 3px solid var(--green); }
.sg-fact { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sg-fact b { display: block; font-family: var(--cond); font-weight: 700; font-size: 33px; line-height: 1; color: var(--green-text); }
.sg-fact p { margin-top: 8px; color: var(--text); font-size: 15px; }
.sg-home-facts { padding-top: 48px; padding-bottom: 16px; }
@media (max-width: 760px) {
	.sg-home-facts { padding-top: 28px; padding-bottom: 8px; }
	.sg-fact b { font-size: 26px; }
}

/* service cards */
.sg-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.sg-service { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1.5px solid var(--line-strong); border-radius: 4px; }
a.sg-service:hover { border-color: var(--green); }
.sg-service__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sg-service__title { display: inline-flex; align-items: center; gap: 2px; font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.1; }
.sg-service__price { font-family: var(--cond); font-weight: 600; font-size: 22px; white-space: nowrap; }
.sg-service__text { color: var(--text); font-size: 15px; flex-grow: 1; }
.sg-service__meta { font-size: 14px; color: var(--muted); }
.sg-service__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }

/* notices */
.sg-notices { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sg-notices h3 { margin-bottom: 8px; font-size: 22px; }
.sg-notices p { color: var(--text); }

/* ---------- section builder ---------- */
.sg-sec { padding-top: 16px; padding-bottom: 16px; }
.sg-sec--spaced { padding-top: 40px; padding-bottom: 40px; }
.sg-sec--tight { padding-top: 8px; padding-bottom: 8px; }
.sg-sec--first { padding-top: 56px; }
.sg-sec--last { padding-bottom: 80px; }
.sg-band { padding-top: 56px; padding-bottom: 64px; margin-top: 24px; }
.sg-band.sg-sec--last { padding-bottom: 72px; }
.sg-sec__title { margin-bottom: 18px; }
.sg-sec__intro { margin: -12px 0 18px; color: var(--muted); }
@media (max-width: 760px) {
	.sg-sec--spaced { padding-top: 28px; padding-bottom: 28px; }
	.sg-sec--first { padding-top: 32px; }
	.sg-sec--last { padding-bottom: 44px; }
	.sg-band { padding-top: 32px; padding-bottom: 40px; }
}

/* rich text */
.sg-rich { color: var(--text); }
.sg-rich > * + * { margin-top: 14px; }
.sg-rich h2 { margin-top: 36px; margin-bottom: -2px; font-size: 33px; color: var(--ink); }
.sg-rich h3, .sg-rich h4 { margin-top: 24px; font-size: 22px; color: var(--ink); font-family: var(--cond); }
.sg-rich > h2:first-child, .sg-rich > h3:first-child { margin-top: 0; }
.sg-rich ul { padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.sg-rich li > p { margin: 0; }
.sg-rich a { color: var(--ink); font-weight: 600; text-decoration-color: var(--green); }
.sg-rich strong { color: var(--ink); font-weight: 600; }
.sg-rich blockquote { margin: 8px 0 14px; padding: 16px 18px; background: var(--mint); border-radius: 4px; }
.sg-rich blockquote p + p { margin-top: 8px; }
/* numbered steps: <ol><li><strong>Title</strong> text</li></ol> */
.sg-rich ol { list-style: none; margin-left: 0; padding: 0; border-top: 3px solid var(--green); counter-reset: sg-step; }
.sg-rich ol > li { counter-increment: sg-step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sg-rich ol > li::before { content: counter(sg-step, decimal-leading-zero); grid-row: span 2; font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1; color: var(--green-text); }
.sg-rich ol > li > strong:first-child { display: block; font-size: 18px; }
/* key–value rows: a two-column table */
.sg-rich table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.sg-rich td, .sg-rich th { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.sg-rich td:first-child, .sg-rich th:first-child { color: var(--muted); padding-right: 16px; }
.sg-rich td + td { color: var(--ink); font-weight: 600; text-align: right; }
.sg-rich tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
	.sg-rich h2 { font-size: 26px; margin-top: 28px; }
	.sg-rich ol > li { grid-template-columns: 40px minmax(0, 1fr); }
	.sg-rich ol > li::before { font-size: 24px; }
}

/* article: text + aside card */
.sg-article { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.sg-article__main { flex: 999 1 560px; min-width: 0; }
.sg-article__side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 28px; }
.sg-pricecard { background: var(--dark); color: #fff; border-radius: 4px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 14px; }
.sg-pricecard__big { font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1.05; }
.sg-pricecard__note { font-size: 14px; color: var(--foot-muted); }
.sg-pricecard .sg-btn { min-height: 48px; }
.sg-pricecard .sg-btn--lime { min-height: 52px; font-size: 18px; }
.sg-pricecard__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 15px; min-height: 40px; }
.sg-pricecard__tel:hover { text-decoration: underline; }
.sg-specs { display: flex; flex-direction: column; }
.sg-specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--foot-line); }
.sg-specs dt { color: var(--foot-muted); }
.sg-specs dd { margin: 0; font-weight: 600; text-align: right; }
.sg-seealso a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.sg-seealso a:hover { color: var(--green-text); }
.sg-stats { border-top: 3px solid var(--green); }
.sg-stats > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sg-stats b { display: block; font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: 1; color: var(--green-text); }
.sg-stats span { color: var(--text); font-size: 15px; }
.sg-stats p { padding: 16px 0; font-size: 14px; color: var(--muted); }

/* timetable of upcoming courses */
.sg-tt { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.sg-tt a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; background: var(--dark); color: #fff; border: 2px solid var(--dark); border-radius: 4px; text-decoration: none; }
.sg-tt a.is-other { background: #fff; color: var(--ink); }
.sg-tt a:hover b + span > span:first-child { text-decoration: underline; text-decoration-color: var(--lime); }
.sg-tt__date { font-family: var(--cond); line-height: 1; }
.sg-tt__date b { display: block; font-size: 34px; font-weight: 700; }
.sg-tt__date span { display: block; font-size: 14px; letter-spacing: 1px; color: var(--foot-muted); }
.sg-tt__name { display: block; font-weight: 600; font-size: 18px; }
.sg-tt__meta { display: block; font-size: 14px; color: var(--foot-muted); }
.sg-tt a.is-other .sg-tt__date span { color: var(--ink); }
.sg-tt a.is-other .sg-tt__meta { color: var(--muted); }

/* panel: course block (line) or dark card */
.sg-panel { border-top: 3px solid var(--green); padding-top: 22px; display: grid; gap: 20px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sg-panel h2.sg-h2 { font-size: var(--h3); }
.sg-panel .sg-btns { margin-top: 18px; }
.sg-panel .sg-btn { min-height: 48px; font-size: 16px; }
.sg-panel.sg-dark { background: var(--dark); color: #fff; border-top: 0; border-radius: 4px; padding: var(--card-pad); }
.sg-panel.sg-dark .sg-rich { color: var(--foot-muted); }
.sg-panel.sg-dark .sg-rich a, .sg-panel.sg-dark .sg-rich strong, .sg-panel.sg-dark .sg-rich h3 { color: #fff; }
.sg-panel h2 + .sg-rich { margin-top: 14px; }
.sg-pricelist { display: flex; flex-direction: column; align-self: start; }
.sg-pricelist__img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 4px; margin-bottom: 6px; }
.sg-pricelist--image .sg-pricelist__img { height: 100%; min-height: 240px; margin: 0; }
.sg-prow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sg-prow:last-child { border-bottom: 0; }
.sg-prow__name { display: block; font-weight: 600; }
.sg-prow__meta { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }
.sg-prow__price { font-weight: 600; white-space: nowrap; }
.sg-dark .sg-prow { border-bottom-color: var(--foot-line); }
.sg-dark .sg-prow__meta { color: var(--foot-muted); }
.sg-note { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 820px; }
.sg-info { padding: 14px 0; border-bottom: 1px solid var(--foot-line); }
.sg-info p { margin-top: 4px; color: var(--foot-muted); font-size: 15px; }
.sg-col { display: flex; flex-direction: column; align-self: start; }
.sg-whiterow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--foot-line); font-weight: 600; }

/* cards (e.g. extra courses, useful links) */
.sg-extra { padding: 20px; border: 1.5px solid var(--line-strong); border-radius: 4px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; color: var(--ink); text-decoration: none; position: relative; }
.sg-extra:has(a:hover) { border-color: var(--green); }
.sg-extra__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sg-extra h3 { font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.sg-extra h3 a { color: inherit; text-decoration: none; }
.sg-extra h3 a::after { content: ''; position: absolute; inset: 0; }
.sg-extra__head b { font-family: var(--cond); font-weight: 700; font-size: 24px; color: var(--green-text); white-space: nowrap; }
.sg-extra p { color: var(--text); font-size: 15px; }
.sg-extra .sg-small { margin-top: auto; }
.sg-extra__more { display: none; }
.sg-cards--big .sg-extra { min-height: 150px; padding: 22px; }
.sg-cards--big .sg-extra h3 { font-family: var(--cond); font-weight: 700; font-size: 26px; line-height: 1.1; }

/* ---------- hinnakiri ---------- */
.sg-pgroup { margin-bottom: 16px; }
.sg-pgroup h2 { margin-bottom: 14px; font-size: 33px; }
.sg-ptable { width: 100%; border-collapse: collapse; }
.sg-ptable th { padding: 0 16px 12px; text-align: center; font-family: var(--cond); font-size: 16px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.sg-ptable th:first-child { text-align: left; padding-left: 14px; }
.sg-ptable th:last-child { text-align: right; padding-right: 14px; width: 120px; }
.sg-ptable td { padding: 14px 16px; text-align: center; color: var(--text); border-top: 1px solid var(--line); }
.sg-ptable td:first-child { text-align: left; padding-left: 14px; color: var(--ink); }
.sg-ptable td:last-child { text-align: right; padding-right: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sg-ptable tbody tr:first-child td { border-top: 3px solid var(--green); }
.sg-ptable tr.is-main td { background: var(--hl); }
.sg-ptable tr.is-main td:first-child { font-weight: 600; }
.sg-ptable__num { width: 150px; hyphens: manual; }
.sg-ptable__hours { display: none; }
@media (max-width: 760px) {
	.sg-ptable thead { display: none; }
	.sg-ptable td { padding: 12px 0; }
	.sg-ptable td:first-child { padding-left: 0; }
	.sg-ptable td:last-child { padding-right: 0; vertical-align: top; }
	.sg-ptable .sg-ptable__num { display: none; }
	.sg-ptable tr.is-main td { background: none; }
	.sg-ptable__hours { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
}
.sg-kv { border-top: 2px solid var(--ink); }
.sg-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sg-kv > div:last-child { border-bottom: 0; }
.sg-kv b { font-weight: 600; white-space: nowrap; }
.sg-paybox { margin-top: 22px; padding: 18px 20px; background: var(--mint); border-radius: 4px; }
.sg-paybox__title { margin-top: 4px; font-weight: 600; }
.sg-iban { font-family: var(--cond); font-weight: 600; font-size: 24px; letter-spacing: .5px; overflow-wrap: anywhere; }
.sg-paybox p { margin-top: 4px; font-size: 15px; color: var(--text); }
.sg-2col { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.sg-2col h2 { margin-bottom: 14px; font-size: 33px; line-height: 1; }
.sg-2col .sg-rich ul { gap: 10px; }
.sg-2col .sg-rich + .sg-kv { margin-top: 14px; }
@media (max-width: 760px) { .sg-2col h2, .sg-pgroup h2 { font-size: 26px; } }

/* ---------- meeskond ---------- */
.sg-people { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.sg-person { display: flex; flex-direction: column; border: 1.5px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.sg-person__img { aspect-ratio: 5 / 4; background: var(--mint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sg-person__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.sg-person__img img.is-logo { width: 55%; height: auto; object-fit: contain; }
.sg-person__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.sg-person__role { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.sg-person h2 { font-size: 24px; }
.sg-person__text { flex-grow: 1; margin: 2px 0 12px; color: var(--text); font-size: 16px; line-height: 1.55; }
.sg-person__text p { margin: 0 0 10px; }
.sg-person__more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sg-person__more[open] summary { margin-bottom: 6px; }
.sg-people__title { margin-bottom: 8px; }
.sg-people__intro { max-width: 760px; margin: 0 0 24px; font-size: var(--lead); color: var(--text); }
@media (max-width: 760px) { .sg-people { gap: 14px; } }

/* ---------- forms ---------- */
.sg-form { border-radius: 4px; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.sg-form.sg-dark { background: var(--dark); color: #fff; }
.sg-form h2 { font-size: 28px; line-height: 1.1; }
.sg-field { display: flex; flex-direction: column; gap: 6px; }
.sg-field label { font-size: 14px; font-weight: 600; }
.sg-field input, .sg-field textarea {
	font-size: 16px; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong);
	border-radius: 3px; background: #fff; color: var(--ink); width: 100%;
}
.sg-dark .sg-field input, .sg-dark .sg-field textarea { border-color: #fff; }
.sg-field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.sg-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.sg-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--lime); }
.sg-form__fine { font-size: 13px; }
.sg-dark .sg-form__fine, .sg-dark .sg-form__sub { color: var(--foot-muted); }
.sg-form__sub { margin-top: 4px; font-size: 15px; color: var(--muted); }
.sg-form__help { color: #fff; font-size: 14px; text-align: center; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.sg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sg-alert { padding: 14px 18px; border-radius: 4px; background: var(--lime); color: var(--ink); font-weight: 600; }
.sg-alert--error { background: #fde8e8; color: #8a1c1c; }

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

/* ---------- kkk ---------- */
.sg-kkkbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.sg-linkbtn { font-size: 15px; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--lime); padding: 6px 0; cursor: pointer; min-height: 40px; }
.sg-qas { border-top: 3px solid var(--green); }
.sg-qa { border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.sg-qa__q {
	list-style: none; color: var(--ink); padding: 18px 0;
	display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: start; cursor: pointer;
}
.sg-qa__q::-webkit-details-marker { display: none; }
.sg-qa__text { display: block; font-weight: 600; font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.sg-qa__q:hover .sg-qa__text { text-decoration: underline; text-decoration-color: var(--lime); }
.sg-qa__who { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.sg-qa__icon { width: 32px; height: 32px; border-radius: 3px; background: var(--mint); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.sg-qa[open] .sg-qa__icon { background: var(--lime); }
.sg-qa[open] .sg-qa__vbar { display: none; }
.sg-qa__a { margin: 0 0 20px; padding: 16px 18px; background: var(--mint); border-radius: 4px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.sg-qa__a > img { width: 40px; height: auto; margin-top: 4px; }
.sg-qa__a .sg-label { margin-bottom: 4px; letter-spacing: 1.2px; }
.sg-qa__a p { overflow-wrap: anywhere; }
.sg-qa__a p + p { margin-top: 8px; }
.sg-more { margin-top: 16px; }
@media (max-width: 760px) { .sg-qa__text { font-size: 17px; } }

/* ---------- kontakt ---------- */
.sg-contact { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.sg-contact__list { display: flex; flex-direction: column; gap: 22px; }
.sg-contact__label { margin-bottom: 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }
.sg-contact__phone { display: inline-flex; align-items: center; min-height: 52px; padding: 2px 16px; background: var(--lime); color: var(--ink); border-radius: 3px; text-decoration: none; font-family: var(--cond); font-weight: 700; font-size: 30px; }
.sg-contact__email { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
.sg-contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; }
.sg-contact__grid span { font-weight: 400; }
.sg-notebox { padding: 16px 18px; background: var(--mint); border-radius: 4px; color: var(--text); }
.sg-map { margin: 0; position: relative; min-height: 420px; border-radius: 4px; overflow: hidden; background: var(--map); }
.sg-map img, .sg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.sg-map figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 14px; color: var(--muted); background: #fff; padding: 6px 10px; border-radius: 3px; }
.sg-about { border-top: 3px solid var(--green); }
.sg-about h2 { margin-bottom: 16px; font-size: var(--h2); line-height: 1; }
.sg-about .sg-rich > p:first-child { font-size: var(--lead); color: var(--ink); }
@media (max-width: 760px) {
	.sg-map { min-height: 240px; }
	.sg-contact__phone { font-size: 24px; }
}

/* ---------- e-kool ---------- */
.sg-ekool { display: grid; gap: 40px 64px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); padding-top: 48px; padding-bottom: 80px; }
.sg-features { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border-top: 3px solid var(--green); }
.sg-features > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sg-features b { font-weight: 600; font-size: 18px; }
.sg-features p { margin-top: 4px; font-size: 15px; color: var(--text); }
.sg-ekool__text .sg-rich { margin-top: 20px; }
.sg-ekool .sg-form h2 { font-size: 30px; line-height: 1; }
@media (max-width: 760px) { .sg-ekool { padding-top: 28px; padding-bottom: 44px; } }

/* ---------- generic content (pages without sections, single posts) ---------- */
.sg-content { max-width: 820px; }
.sg-content > * + * { margin-top: 1em; }
.sg-content h2 { font-size: 33px; margin-top: 1.4em; }
.sg-content h3 { font-size: 24px; margin-top: 1.3em; }
.sg-content ul, .sg-content ol { padding-left: 22px; }
.sg-content img { border-radius: 4px; }
.sg-content table { border-collapse: collapse; width: 100%; }
.sg-content td, .sg-content th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.sg-content a { font-weight: 600; text-decoration-color: var(--green); }
.sg-postnav { margin-top: 40px; }
.sg-news { border: 1.5px solid var(--line-strong); border-radius: 4px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.sg-news time { font-size: 14px; color: var(--muted); }
.sg-news p { color: var(--text); font-size: 15px; flex-grow: 1; }

/* steps, text, links, story, photo, cta */
.sg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sg-step { border-top: 3px solid var(--green); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.sg-step__num { width: 44px; height: 44px; border-radius: 3px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--cond); font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.sg-steps li:first-child .sg-step__num { background: var(--lime); color: var(--ink); }
.sg-step .sg-rich { font-size: 15px; }
.sg-textmedia { display: grid; gap: 32px 56px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.sg-content--section { max-width: 820px; }
.sg-photo { margin: 0; border-radius: 4px; overflow: hidden; background: var(--map); }
.sg-photo img { width: 100%; height: auto; display: block; }
.sg-bigphoto { margin: 0; height: 440px; border-radius: 4px; overflow: hidden; background: var(--map); }
.sg-bigphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-story { display: grid; gap: 32px 56px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.sg-badge { border-top: 3px solid var(--green); padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sg-badge img { height: 140px; width: auto; display: block; }
.sg-links { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.sg-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.sg-links a:hover span { text-decoration: underline; text-decoration-color: var(--lime); }
.sg-links small { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-text); text-align: right; }
.sg-cta { border-radius: 4px; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--dark); color: #fff; }
.sg-cta h2 { font-size: 33px; }
.sg-cta p { margin-top: 8px; color: var(--foot-muted); max-width: 620px; }
.sg-cta .sg-cta__btns { margin-top: 0; }
@media (max-width: 760px) {
	.sg-cta { padding: 22px 18px; }
	.sg-cta h2 { font-size: 26px; }
	.sg-bigphoto { height: 220px; }
	.sg-section { padding-top: 36px; padding-bottom: 36px; }
}
@media (max-width: 1180px) and (min-width: 1081px) { .sg-nav { gap: 4px 16px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sg-band.sg-sec--first { margin-top: 0; }
