/* ==========================================================================
   Kodukad.ee redesign v2 (Oscar Pertelson, 12.11.2026)
   Allikas: kodukad-redesign/reference/home-static.html + CHANGES.md.
   Päis ja jalus kõigil lehtedel, ülejäänu esilehel.
   ========================================================================== */

:root {
	--lime:      #9CE069;
	--ink:       #050505;
	--light-1:   #EFEFEF;
	--light-2:   #E4E4E4;
	--grey-txt:  #595959;
	--grey-txt2: #3f3f3f;
	--wrap:      1376px;
	--ease-out:  cubic-bezier(.2, .8, .2, 1);
	--ease-io:   cubic-bezier(.65, 0, .35, 1);
}

body { background: var(--ink); font-family: "Inter Tight", system-ui, sans-serif; }

.mono {
	font-family: "Chivo Mono", ui-monospace, monospace;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.disp { font-weight: 500; letter-spacing: -0.045em; }
.nowrap { white-space: nowrap; }

.v2wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
	box-sizing: border-box;
}

/* ---------- Nupud ---------- */
.btn-pill {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-radius: 999px;
	padding: 16px 26px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	min-height: 44px;
	box-sizing: border-box;
	transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-pill--lime  { background: var(--lime); color: #000; }
.btn-pill--lime:hover { background: #fff; color: #000; }
.btn-pill--glass {
	border: 1px solid rgba(255,255,255,.28);
	color: #fff;
	background: rgba(255,255,255,.05);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.btn-pill--glass:hover { border-color: #fff; color: #fff; }
.btn-pill--black { background: #000; color: var(--lime); }
.btn-pill--black:hover { background: #1a1a1a; color: #fff; }
.btn-pill--line  { border: 1px solid #000; color: #000; }
.btn-pill--line:hover { background: #000; color: var(--lime); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   PÄIS
   ========================================================================== */
.v2h {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 32px;
	height: 80px;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	box-sizing: border-box;
	pointer-events: none;
}
.v2h > * { pointer-events: auto; }
/* Esilehel jookseb hero päise alt läbi. */
.home .v2h { margin-bottom: -80px; }
/* Teistel lehtedel on päise taga sama tume taust kui lehel. */
/* box-shadow + clip-path venitab tausta üle kogu laiuse ilma külgsuunalise kerimiseta. */
body:not(.home) .v2h::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(5,5,5,.92);
	box-shadow: 0 0 0 100vmax rgba(5,5,5,.92);
	clip-path: inset(0 -100vmax);
	z-index: -1;
	pointer-events: none;
}

/* Logo: lahti kaherealine, kerides "k." klaasruut */
.klink {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 54px;
	padding: 0 14px;
	margin-left: -15px;
	box-sizing: border-box;
	border-radius: 18px;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background .5s, border-color .5s, padding .7s var(--ease-io), margin .7s var(--ease-io);
}
.klink.sc {
	padding: 0 12px;
	margin-left: 0;
	background: linear-gradient(180deg, rgba(48,48,48,.62), rgba(22,22,22,.70));
	-webkit-backdrop-filter: blur(30px);
	backdrop-filter: blur(30px);
	border-color: rgba(255,255,255,.16);
}
.kl1 { display: flex; align-items: flex-start; }
.kclip { display: block; width: 91px; overflow: hidden; flex-shrink: 0; transition: width .7s var(--ease-io); }
.kclip img { height: 17.3px; width: auto; max-width: none; display: block; transition: height .7s var(--ease-io); }
.kdot {
	width: 2.4px; height: 2.4px; border-radius: 50%;
	background: var(--lime);
	margin: 14px 0 0 3px;
	flex-shrink: 0;
	transition: width .7s, height .7s, margin .7s var(--ease-io);
}
.kl2 {
	display: block; overflow: hidden;
	width: 46px; height: 15px; margin-top: 6px; opacity: 1;
	transition: width .6s var(--ease-io), height .6s var(--ease-io), margin .6s var(--ease-io), opacity .3s;
}
.kl2 img { height: 14.3px; width: auto; display: block; max-width: none; }
.klink.sc .kclip { width: 19px; }
.klink.sc .kclip img { height: 30px; }
.klink.sc .kdot { width: 4.2px; height: 4.2px; margin: 24px 0 0 4px; }
.klink.sc .kl2 { width: 0; height: 0; margin-top: 0; opacity: 0; }
.klink:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Menüüpaneel */
.navpanel {
	position: absolute;
	left: 50%;
	top: 12px;
	transform: translateX(-50%);
	width: 720px;
	max-width: calc(100vw - 48px);
	background: linear-gradient(180deg, rgba(48,48,48,.62), rgba(22,22,22,.70));
	-webkit-backdrop-filter: blur(30px) saturate(140%);
	backdrop-filter: blur(30px) saturate(140%);
	border: 1px solid rgba(255,255,255,.16);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 20px 60px rgba(0,0,0,.25);
	border-radius: 22px;
	padding: 6px;
	box-sizing: border-box;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.3;
}
.navpanel::before {
	content: "";
	position: absolute;
	left: 20%; top: -30%;
	width: 520px; height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,0) 65%);
	pointer-events: none;
}
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; }
.tab {
	font: inherit;
	font-size: 16px;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 14px;
	padding: 10px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	min-height: 42px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, color .2s;
}
.tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.tab.on { background: rgba(255,255,255,.92); color: #000; }
.tab[aria-current="page"]:not(.on) { color: var(--lime); }
.tab:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }

.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; position: relative; }
.mcol { display: flex; flex-direction: column; gap: 8px; height: 420px; }
.tile {
	position: relative;
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 18px;
	box-sizing: border-box;
	border-radius: 14px;
	background: rgba(0,0,0,.22);
	border: 1px solid rgba(255,255,255,.09);
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	transition: flex-grow .5s var(--ease-out), background .3s;
}
.tile:hover { color: #fff; }
.tile.on { flex-grow: 2.1; background: rgba(255,255,255,.10); }
.tile:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.timg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity .45s, transform .7s;
}
.tscrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.62) 100%);
	opacity: 0;
	transition: opacity .45s;
}
.tile.on .timg { opacity: 1; transform: scale(1); }
.tile.on .tscrim { opacity: 1; }
.tglow {
	position: absolute; right: -70px; bottom: -110px;
	width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle, rgba(156,224,105,.5), rgba(156,224,105,0) 65%);
	opacity: 0;
	transition: opacity .45s;
}
.tile.on .tglow { opacity: 1; }
.trow { position: relative; display: flex; align-items: center; gap: 10px; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.ttitle { font-size: 19px; flex: 1; }
.tnum { font-size: 12px; color: #BDBDBD; }
.tsub { position: relative; font-size: 13px; color: #D6D6D6; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.tile.on .tsub { color: #fff; }
.mfoot {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 10px 6px;
	font-size: 13px; color: #C9C9C9;
	position: relative;
}
.mfoot a { color: var(--lime); text-decoration: none; font-weight: 600; }
.mfoot a.mq {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(156,224,105,.8);
	text-underline-offset: 4px;
	margin-left: 8px;
}
.mfoot a.mq:hover { color: var(--lime); }
.mbtn, .mlinks { display: none; }

/* Päise CTA */
.hcta {
	background: var(--lime);
	color: #000;
	padding: 7px 7px 7px 22px;
	font-size: 15px;
	margin-top: 2px;
}
.hcta:hover { background: #fff; color: #000; }
.hcta__ico {
	width: 38px; height: 38px; border-radius: 50%;
	background: #000; color: var(--lime);
	display: flex; align-items: center; justify-content: center;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.v2hero {
	position: relative;
	overflow: hidden;
	min-height: 900px;
	background: var(--ink);
	display: flex;
	flex-direction: column;
	color: #fff;
}
.v2field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rib { position: absolute; transition: transform 1.8s cubic-bezier(.16, .84, .24, 1); will-change: transform; }
.ribin { width: 100%; height: 100%; border-radius: 50%; }
.rA { animation: kkFlowA linear infinite; }
.rB { animation: kkFlowB ease-in-out infinite; }
.v2field.is-paused .ribin { animation-play-state: paused; }
@keyframes kkFlowA {
	0%   { transform: translate(0, 0) rotate(0deg) scaleY(1); }
	25%  { transform: translate(60px, -70px) rotate(3deg) scaleY(1.25); }
	50%  { transform: translate(-30px, -20px) rotate(-2deg) scaleY(.85); }
	75%  { transform: translate(-70px, 50px) rotate(2deg) scaleY(1.15); }
	100% { transform: translate(0, 0) rotate(0deg) scaleY(1); }
}
@keyframes kkFlowB {
	0%   { transform: translate(0, 0) rotate(0deg) scaleX(1); }
	30%  { transform: translate(-80px, 40px) rotate(-4deg) scaleX(1.1); }
	60%  { transform: translate(50px, 60px) rotate(3deg) scaleX(.92); }
	100% { transform: translate(0, 0) rotate(0deg) scaleX(1); }
}
.glowc {
	position: absolute; left: 68%; top: 42%;
	width: 300px; height: 300px; border-radius: 50%;
	background: radial-gradient(circle, rgba(220,245,200,.32), rgba(220,245,200,0) 70%);
	filter: blur(20px);
	transition: left 1.2s cubic-bezier(.16, .84, .24, 1), top 1.2s cubic-bezier(.16, .84, .24, 1);
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(5,5,5,.72) 0%, rgba(5,5,5,.25) 42%, rgba(5,5,5,0) 65%),
		linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 18%);
	pointer-events: none;
}
.noise { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: overlay; opacity: .5; pointer-events: none; }

.herogrid {
	position: relative;
	z-index: 1;
	flex: 1;
	padding-top: 40px;
	padding-bottom: 88px;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 48px;
	align-items: end;
}
.hero-main { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 36px; }
.hero-main h1 {
	margin: 0;
	font-size: clamp(46px, 6.2vw, 88px);
	line-height: 1;
	letter-spacing: -0.02em;
	max-width: 680px;
	font-weight: 500;
}
.hero-main h1 .dot { color: var(--lime); }
.hero-side { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 56px; padding-left: 12px; }
.hero-label {
	font-size: 13px;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0,0,0,.25);
	margin-bottom: 10px;
	display: flex; align-items: center; gap: 8px;
}
.srow {
	display: flex; align-items: center; gap: 14px;
	padding: 11px 0;
	text-decoration: none;
	font-size: 14px;
	color: #fff;
}
.srow .ln { flex: 1; height: 1px; background: rgba(255,255,255,.22); transition: background .3s; }
.srow:hover, .srow:focus-visible { color: var(--lime); }
.srow:hover .ln, .srow:focus-visible .ln { background: var(--lime); }
.hero-lead { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
.hero-lead .soft { color: #AAAAAA; }

/* ==========================================================================
   HELEDAD SEKTSIOONID
   ========================================================================== */
.v2sec { color: #000; }
.v2sec--l1 { background: var(--light-1); }
.v2sec--l2 { background: var(--light-2); }
.v2sec > .v2wrap { padding-top: 110px; padding-bottom: 110px; }
.v2sec a:hover { color: #000; }
.seclabel { font-size: 13px; color: var(--grey-txt); margin-bottom: 40px; }
.sechead {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 32px; margin-bottom: 48px;
}
.sechead h2 {
	margin: 0;
	font-size: clamp(44px, 6.2vw, 88px);
	line-height: .95;
	max-width: 720px;
	color: #000;
	font-weight: 500;
	letter-spacing: -0.045em;
}
.sechead__side { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.sechead__side p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--grey-txt2); }
.more { font-weight: 600; text-decoration: none; padding: 6px 0; color: #000; }
.more:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* /01 Meist */
.v2wrap--meist { padding-top: 140px !important; padding-bottom: 96px !important; }
.about {
	margin: 0;
	max-width: 1140px;
	font-size: clamp(32px, 4.6vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.025em;
	transition: color .4s;
}
.about .soft { color: #9a9a9a; transition: color .4s; }
.about.dim, .about.dim .soft { color: rgba(0,0,0,.12); }
.hw {
	position: relative;
	display: inline;
	font: inherit;
	letter-spacing: inherit;
	background: none;
	border: 0;
	padding: 0;
	color: #000;
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: var(--lime);
	text-decoration-thickness: .09em;
	text-underline-offset: .14em;
	transition: color .4s;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.hw:focus-visible { outline: 2px solid #000; outline-offset: 4px; border-radius: 4px; }
.about.dim .hw { color: rgba(0,0,0,.12); text-decoration-color: rgba(156,224,105,.35); }
.about.dim .hw.on { color: #000; text-decoration-color: var(--lime); }
.marq {
	margin-top: 40px;
	min-height: 84px;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	transform: translateY(10px);
	visibility: hidden;
	transition: opacity .45s, transform .6s var(--ease-out), visibility 0s linear .6s;
}
.marq.on { opacity: 1; transform: translateY(0); visibility: visible; transition: opacity .45s, transform .6s var(--ease-out), visibility 0s; }
.mtrack {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 24px 64px;
	list-style: none; margin: 0; padding: 0;
}
.mtrack a { display: block; border-radius: 6px; }
.mtrack a:focus-visible { outline: 2px solid #000; outline-offset: 6px; }
.mtrack img {
	filter: brightness(0);
	width: auto; max-width: none;
	display: block;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s, transform .5s var(--ease-out);
}
.marq.on .mtrack img { opacity: 1; transform: none; }
.mtrack li:nth-child(2) img { transition-delay: .04s; }
.mtrack li:nth-child(3) img { transition-delay: .08s; }
.mtrack li:nth-child(4) img { transition-delay: .12s; }
.mtrack li:nth-child(5) img { transition-delay: .16s; }
.mtrack li:nth-child(6) img { transition-delay: .2s; }
.mtrack li:nth-child(7) img { transition-delay: .24s; }
.mtrack a:hover img { opacity: .6; }

.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats { margin-top: 48px; }
.stat { border-top: 1px solid #000; padding-top: 18px; }
.stat__num { font-size: clamp(52px, 6vw, 84px); line-height: 1; }
.stat__label { font-size: 12px; color: var(--grey-txt); margin-top: 12px; }

/* /02 Teenused */
.scard {
	background: #fff;
	border-radius: 22px;
	padding: 28px;
	display: flex; flex-direction: column; gap: 18px;
	min-height: 340px;
	box-sizing: border-box;
}
.scard__ico {
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--lime); color: #000;
	display: flex; align-items: center; justify-content: center;
}
.scard h3 { margin: auto 0 0; font-size: 40px; line-height: 1; color: #000; font-weight: 500; letter-spacing: -0.045em; }
.scard p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--grey-txt); }
.scard .more { font-size: 15px; }

/* /03 Tehtud tööd */
.pcard {
	display: block;
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	text-decoration: none;
	color: #000;
	background: #D6D6D6;
}
.pcard:hover { color: #000; }
.pimg {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	transform: scale(1);
	transition: transform .9s var(--ease-out);
}
.pcard:hover .pimg, .pcard:focus-visible .pimg { transform: scale(1.045); }
.pcard:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.glass {
	position: absolute; left: 16px; right: 16px; bottom: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.14));
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	backdrop-filter: blur(22px) saturate(170%);
	border: 1px solid rgba(255,255,255,.55);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(255,255,255,.15), 0 10px 30px rgba(0,0,0,.08);
	border-radius: 18px;
	padding: 16px 16px 16px 20px;
	display: flex; align-items: center; gap: 20px;
	color: #000;
}
.glass__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.glass__type { font-size: 11px; color: var(--grey-txt2); }
.glass__title { margin-top: 4px; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; word-spacing: .04em; }
.arrow {
	width: 44px; height: 44px; border-radius: 12px;
	background: #000; color: var(--lime);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
	transition: background .3s, color .3s;
}
.pcard:hover .arrow, .pcard:focus-visible .arrow { background: var(--lime); color: #000; }

/* /04 Kontakt */
.v2cta {
	color: #000;
	border-radius: 0 0 64px 0;
	background-color: var(--lime);
	background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1.2px);
	background-size: 12px 12px;
}
.v2cta__inner {
	padding-top: 120px; padding-bottom: 120px;
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 40px;
}
.v2cta__text { max-width: 800px; display: flex; flex-direction: column; gap: 22px; }
.v2cta__text .mono { font-size: 13px; }
.v2cta h2 { margin: 0; font-size: clamp(34px, 6vw, 84px); line-height: .98; color: #000; font-weight: 500; letter-spacing: -0.045em; }
.v2cta p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 560px; }

/* ==========================================================================
   JALUS
   ========================================================================== */
.v2f { background: var(--ink); color: #fff; }
.v2f__grid {
	padding-top: 72px; padding-bottom: 40px;
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}
.v2f__brand img { height: 48px; width: auto; display: block; }
.v2f__brand p { margin: 18px 0 0; max-width: 34ch; color: #AAAAAA; font-size: 15px; line-height: 1.55; }
.v2f__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.v2f__col a { text-decoration: none; color: #fff; width: fit-content; }
.v2f__col a:hover { color: var(--lime); }
.v2f__bottom {
	padding-bottom: 32px;
	font-size: 12px;
	color: #AAAAAA;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.v2f__bottom a, .v2f__bottom .site-footer__cookies { color: #AAAAAA; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.v2f__bottom a:hover, .v2f__bottom .site-footer__cookies:hover { color: #fff; }

/* Kompaktvormi plokk (sisulehtedel) uues värvis */
.footer-cta { border-top: 1px solid var(--color-border); }

/* ==========================================================================
   MOBIIL (≤ 1000 px)
   ========================================================================== */
@media (max-width: 1000px) {
	.v2wrap { padding-left: 20px; padding-right: 20px; }
	.v2h { padding: 12px 20px; }
	.klink { margin-left: -14px; }
	.tabs .tab { display: none; }
	.tabs { grid-template-columns: minmax(0, 1fr); }
	.tabs .mbtn { display: flex !important; padding: 10px 20px; }
	.navpanel { left: auto; right: 20px; top: 12px; width: auto; transform: none; max-width: none; }
	.navpanel.open { left: 16px; right: 16px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
	.mgrid { grid-template-columns: minmax(0, 1fr); }
	.mcol { display: contents; }
	.tile { min-height: 92px; flex: none; }
	.tile.on { flex-grow: 0; }
	.mfoot { flex-wrap: wrap; gap: 10px; }
	.mlinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 0 4px; position: relative; }
	.mlinks a {
		color: #fff; text-decoration: none; text-align: center;
		padding: 14px 8px; border-radius: 12px;
		background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.09);
		font-size: 15px;
	}
	.mlinks a.mcta { grid-column: 1 / -1; background: var(--lime); color: #000; font-weight: 600; border: 0; }
	.hidesm { display: none !important; }

	.v2hero { min-height: 0; }
	.herogrid { grid-template-columns: minmax(0, 1fr); padding-top: 120px; padding-bottom: 56px; }
	.hero-main, .hero-side { grid-column: 1 / -1; padding-left: 0; }
	.srow { font-size: 12px; }
	.hero-lead { font-size: 20px; }

	.v2sec > .v2wrap { padding-top: 80px; padding-bottom: 80px; }
	.v2wrap--meist { padding-top: 96px !important; padding-bottom: 72px !important; }
	.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g3, .g2 { grid-template-columns: minmax(0, 1fr); }
	.g2 .pwork--lastm { order: 1; }
	.mtrack { gap: 20px 36px; }
	.mtrack img { transform: none; }

	.pimg { aspect-ratio: 1 / 1; }
	.glass { left: 10px; right: 10px; bottom: 10px; padding: 12px 12px 12px 16px; gap: 12px; }
	.glass__title { font-size: 22px; }
	.glass .arrow { width: 40px; height: 40px; }
	.v2cta__inner { padding-top: 80px; padding-bottom: 80px; }
	.v2f__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.v2f__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
	.g4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
	.stat__num { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.rA, .rB { animation: none; }
	.rib, .glowc, .klink, .kclip, .kclip img, .kdot, .kl2, .tile, .timg, .pimg { transition: none !important; }
}

/* ==========================================================================
   SISULEHED (teenused, blogi, artikkel): tume hero + hele sisu
   ========================================================================== */
.kk-overlay .v2h { margin-bottom: -80px; }
body.kk-overlay .v2h::before { content: none; }

.v2phero {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: #fff;
}
.v2phero__glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v2phero__glow i { position: absolute; display: block; border-radius: 50%; }
.v2phero__glow i:nth-child(1) { right: -18%; top: -55%; width: 1500px; height: 460px; background: #2F5A1F; opacity: .85; filter: blur(85px); transform: rotate(-28deg); }
.v2phero__glow i:nth-child(2) { right: -6%;  top: -20%; width: 1100px; height: 220px; background: #9CE069; opacity: .55; filter: blur(60px); transform: rotate(-32deg); }
.v2phero__glow i:nth-child(3) { right: 8%;   top: 12%;  width: 700px;  height: 46px;  background: #EEFBE3; opacity: .45; filter: blur(20px); transform: rotate(-35deg); }
.v2phero .shade { background: linear-gradient(90deg, rgba(5,5,5,.85) 0%, rgba(5,5,5,.4) 45%, rgba(5,5,5,0) 75%); }
.v2phero__inner {
	position: relative;
	z-index: 1;
	padding-top: 168px;
	padding-bottom: 88px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.v2crumbs {
	display: flex; flex-wrap: wrap; gap: 10px;
	font-size: 12px;
	color: #AAAAAA;
}
.v2crumbs a { color: #fff; text-decoration: none; }
.v2crumbs a:hover { color: var(--lime); }
.v2crumbs [aria-current] { color: #AAAAAA; }
.v2phero__title {
	margin: 0;
	font-size: clamp(44px, 6.2vw, 88px);
	line-height: 1;
	max-width: 15em;
	color: #fff;
}
.v2phero__lead {
	margin: 0;
	max-width: 34em;
	font-size: 22px;
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #CFCFCF;
}
.v2phero__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #AAAAAA; }
.v2phero__actions { margin-top: 8px; }

/* Hele sisuala: komponendid (proosa, vormid, kaardid) kasutavad main.css tokeneid, siin vahetame need heledaks. */
.v2light {
	--color-bg:           #EFEFEF;
	--color-surface:      #FFFFFF;
	--color-surface-2:    #F4F4F4;
	--color-border:       #D9D9D9;
	--color-text:         #000000;
	--color-text-muted:   #595959;
	--color-prose:        #1C1C1C;
	--color-accent-text:  #2F5A1F;
	--color-placeholder:  #8A8A8A;
	--color-btn-hover:    #000000;
	--color-btn-hover-text: #9CE069;
	--color-error:        #C5221F;
	--color-error-text:   #B3261E;
	background: var(--color-bg);
	color: var(--color-text);
}
.v2light--2 { --color-bg: #E4E4E4; }
.v2light__inner { padding-top: 96px; padding-bottom: 110px; }
.v2light h1, .v2light h2, .v2light h3, .v2light h4 { color: #000; font-weight: 500; letter-spacing: -0.035em; }
.v2light a:hover { color: #000; }
.v2light .seclabel { margin-bottom: 32px; }

/* Proosa heledal */
.v2light .prose { font-size: 1.1rem; }
.v2light .prose h2 { letter-spacing: -0.04em; }
.v2light .prose a { color: #000; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.v2light .prose a:hover { color: var(--color-accent-text); }
.v2light .prose strong { color: #000; }
.v2light .prose ul li::before { background: var(--lime); }
.v2light .prose blockquote { border-left-color: var(--lime); }
.v2light .prose table { background: #fff; border-radius: 14px; }
.v2light .prose th { background: #F7F7F7; }
.v2light .prose details { background: #fff; border-color: #fff; border-radius: 14px; }
.v2light .prose details[open] { border-color: var(--color-border); }

/* Teenuselehe külgplokid valgeteks kaartideks */
.v2light .service-form,
.v2light .service-cta {
	background: #fff;
	border: 0;
	border-radius: 22px;
	box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.06);
}
.v2light .service-cta .btn-pill { width: 100%; justify-content: center; }
.v2light .service-aside { top: 104px; }
.v2light .btn--primary { background: #000; color: var(--lime); }
.v2light .btn--primary:hover { background: var(--lime); color: #000; }
.v2light .field input[type="text"],
.v2light .field input[type="email"],
.v2light .field input[type="tel"],
.v2light .field textarea { background: #F4F4F4; border-color: #E2E2E2; color: #000; }
.v2light .field input:focus, .v2light .field textarea:focus { border-color: #000; background: #fff; }

/* Teised teenused */
.v2related { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .v2related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .v2related { grid-template-columns: minmax(0, 1fr); } .v2related__card { min-height: 0; } }
.v2related__card {
	position: relative;
	display: flex; flex-direction: column; gap: 10px;
	min-height: 168px;
	padding: 24px 24px 76px;
	background: #fff;
	border-radius: 22px;
	text-decoration: none;
	color: #000;
	transition: transform .4s var(--ease-out), box-shadow .4s;
}
.v2related__card:hover { color: #000; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.v2related__card:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.v2related__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2related__title { font-size: 24px; line-height: 1.08; }
.v2related__num { font-size: 12px; color: var(--grey-txt); }
.v2related__sub { font-size: 15px; color: var(--grey-txt); line-height: 1.45; }
.v2related__card .arrow { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; }
.v2related__card:hover .arrow { background: var(--lime); color: #000; }

/* Teenuste kaardid emalehel */
.scard--link { text-decoration: none; color: #000; transition: transform .4s var(--ease-out), box-shadow .4s; }
.scard--link:hover { color: #000; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.scard--link:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.scard--link h2 { margin: auto 0 0; font-size: 40px; line-height: 1; }
.scard__num { font-size: 12px; color: var(--grey-txt); }

/* Blogi: kategooriafilter */
.v2chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.v2chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	text-decoration: none;
	font-size: 15px;
	transition: background .2s, color .2s;
}
.v2chip:hover { background: #000; color: #fff; }
.v2chip.is-on { background: #000; color: var(--lime); }
.v2chip__n { font-family: "Chivo Mono", ui-monospace, monospace; font-size: 11px; opacity: .6; }

/* Blogi: kaardid */
.v2light .post-grid { gap: 16px; }
.v2light .post-card {
	background: #fff;
	border: 0;
	border-radius: 22px;
}
.v2light .post-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.post-card__media img { transition: transform .9s var(--ease-out); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; }
.post-card__link { display: flex; flex-direction: column; color: inherit; }
.post-card__link:hover { color: inherit; }
.post-card__cat { font-size: 11px; font-weight: 400; letter-spacing: .04em; color: var(--grey-txt); }
.post-card__title { font-size: 24px; line-height: 1.12; margin: 10px 0 10px; font-weight: 500; letter-spacing: -0.035em; }
.post-card__excerpt { font-size: 15px; line-height: 1.5; }
.post-card__meta { font-size: 11px; margin-top: 18px; }
.post-card__arrow {
	margin-left: auto;
	width: 34px; height: 34px; border-radius: 10px;
	background: #000; color: var(--lime);
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .3s, color .3s;
}
.post-card:hover .post-card__arrow { background: var(--lime); color: #000; }
.v2light .pagination .page-numbers { background: #fff; border: 0; border-radius: 12px; color: #000; }
.v2light .pagination .page-numbers.current { background: #000; color: var(--lime); }

/* Artikkel */
.v2article { display: flex; flex-direction: column; align-items: center; }
.v2article > * { width: 100%; max-width: 46rem; }
.v2article .article__cover {
	max-width: 64rem;
	margin: -150px 0 64px;
	position: relative;
	z-index: 2;
}
.v2article .article__cover img { border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.single-post .v2phero__inner { padding-bottom: 200px; }
.v2article .article__nav { margin-top: 72px; max-width: 46rem; }
.v2article .article__nav-link { background: #fff; border: 0; border-radius: 18px; padding: 22px 24px; color: #000; text-decoration: none; }
.v2article .article__nav-link:hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.v2article .article__nav-link .mono { font-size: 11px; color: var(--grey-txt); }
.v2article .article__nav-link strong { font-family: inherit; font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }

@media (max-width: 1000px) {
	.v2phero__inner { padding-top: 128px; padding-bottom: 64px; gap: 22px; }
	.v2phero__lead { font-size: 19px; }
	.v2light__inner { padding-top: 64px; padding-bottom: 80px; }
	.single-post .v2phero__inner { padding-bottom: 120px; }
	.v2article .article__cover { margin: -96px 0 40px; }
	.v2light .post-grid { grid-template-columns: minmax(0, 1fr); }
	.scard--link h2 { font-size: 32px; }
}

/* ==========================================================================
   PORTFOOLIO, PORTFOOLIOLOOD, KONTAKT, 404, OTSING
   ========================================================================== */
.v2card {
	background: #fff;
	border: 0;
	border-radius: 22px;
	box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px rgba(0,0,0,.06);
}

/* Tehtud töö kaart + lühitekst */
.pwork { display: flex; flex-direction: column; gap: 16px; }
.pwork__txt { margin: 0 4px; font-size: 16px; line-height: 1.55; color: var(--grey-txt); max-width: 46ch; }
.v2pf__grid { row-gap: 40px; }
.v2pf__intro { display: block; margin-bottom: 48px; }
.v2pf__intro .prose { max-width: 46rem; }
h2.glass__title, h3.glass__title { margin: 4px 0 0; color: #000; }
.g3 .glass__title { font-size: 22px; }
.g3 .glass { left: 10px; right: 10px; bottom: 10px; padding: 12px 12px 12px 16px; gap: 12px; }
.g3 .glass .arrow { width: 40px; height: 40px; }

/* Portfooliolugu */
.v2phero__type { font-size: 13px; color: #fff; display: flex; gap: 8px; align-items: center; }
.v2phero__type span { color: var(--lime); }
.v2phero--case .v2phero__inner { padding-bottom: 220px; }
.v2case { display: flex; flex-direction: column; }
.v2case__shot {
	margin: -230px auto 72px;
	width: 100%;
	max-width: 980px;
	border-radius: 22px;
	overflow: hidden;
	background: #D6D6D6;
	position: relative;
	z-index: 2;
	box-shadow: 0 30px 60px rgba(0,0,0,.22);
}
.v2case__shot img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.v2case__h2 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; }
.v2light--2 .sechead { align-items: flex-end; }

/* Kontakt */
.v2light .contact__form.v2card { padding: 36px; }
.v2light .contact__aside h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.045em; }
.v2light .contact__label { font-size: 11px; letter-spacing: .04em; color: var(--grey-txt); }
.v2light .contact__list a { font-family: inherit; font-weight: 500; font-size: 26px; letter-spacing: -0.03em; color: #000; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.v2light .contact__list a:hover { color: var(--color-accent-text); }
.v2light .contact__promise.v2card { padding: 28px; }
.v2light .contact__promise h3 { font-size: 22px; letter-spacing: -0.03em; }

/* 404 */
.v2phero--404 { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.v2phero--404 .v2phero__inner { width: 100%; }
.v2phero__title .dot { color: var(--lime); }

/* Otsing */
.v2search { margin: 0 0 40px; max-width: 520px; }

@media (max-width: 1000px) {
	.v2phero--case .v2phero__inner { padding-bottom: 140px; }
	.v2case__shot { margin: -140px auto 48px; }
	.v2light .contact__form.v2card { padding: 22px; }
	.v2pf__grid { row-gap: 32px; }
	.g3 .pimg { aspect-ratio: 5 / 4; }
}

/* ==========================================================================
   MOBIILI PARANDUSED (12.11.2026)
   ========================================================================== */
/* Laiad plokid (koodinäited, tabelid) ei tohi lehte laiemaks venitada. */
.service-layout > *, .v2article > *, .contact > * { min-width: 0; }
.prose pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Väikesed mono-sildid loetavaks */
.glass__type, .post-card__cat, .post-card__meta, .contact__label, .v2article .article__nav-link .mono { font-size: 12px; }

@media (max-width: 1000px) {
	/* Puutealad vähemalt ~40 px */
	.v2crumbs { gap: 4px 8px; }
	.v2crumbs a { display: inline-block; padding: 10px 0; }
	.v2crumbs { margin-bottom: -10px; margin-top: -10px; }
	.v2f__col { gap: 0; }
	.v2f__col a { padding: 9px 0; }
	.v2f__bottom .site-footer__cookies { padding: 10px 0; }
	.service-form__direct a, .service-cta__contact a { display: inline-block; padding: 8px 0; }
	.mfoot a.mq, .mfoot > a { display: inline-block; padding: 8px 0; }

	/* Meist: suletud logoriba ei jäta tühja auku */
	.marq { min-height: 0; max-height: 0; margin-top: 0; overflow: hidden; transition: opacity .45s, transform .6s var(--ease-out), max-height .5s var(--ease-out), margin .5s var(--ease-out), visibility 0s linear .6s; }
	.marq.on { max-height: 420px; margin-top: 32px; transition: opacity .45s, transform .6s var(--ease-out), max-height .5s var(--ease-out), margin .5s var(--ease-out), visibility 0s; }
	.stats { margin-top: 40px; }

	.prose pre { font-size: 13px; }
}

/* Tabelid mobiilis kaartidena (sildid lisab main.js data-label atribuudina) */
@media (max-width: 700px) {
	.prose table.kk-stack, .prose table.kk-stack tbody, .prose table.kk-stack tr, .prose table.kk-stack td { display: block; width: 100%; }
	.prose table.kk-stack { background: none; border-radius: 0; overflow: visible; }
	.prose table.kk-stack thead { display: none; }
	.prose table.kk-stack tr {
		background: #fff;
		border-radius: 14px;
		padding: 6px 16px;
		margin-bottom: 10px;
	}
	.prose table.kk-stack td {
		border-bottom: 1px solid var(--color-border);
		padding: 10px 0;
		font-size: 16px;
	}
	.prose table.kk-stack td:last-child { border-bottom: 0; }
	.prose table.kk-stack td::before {
		content: attr(data-label);
		display: block;
		font-family: "Chivo Mono", ui-monospace, monospace;
		text-transform: uppercase;
		letter-spacing: .04em;
		font-size: 11px;
		color: var(--grey-txt);
		margin-bottom: 2px;
	}
	.prose table.kk-stack td:first-child { font-weight: 600; }
}
@media (max-width: 700px) { .prose table.kk-stack tr.kk-headrow { display: none; } }

/* ==========================================================================
   MOBIILIMENÜÜ v2 (Oscar 13.11.2026): hamburger, ühe rea teenused, kinnitatud CTA, tume taust
   ========================================================================== */
.mlabel { display: none; }
.navscrim {
	position: fixed; inset: 0; z-index: 40;
	background: rgba(0,0,0,.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0; visibility: hidden;
	transition: opacity .3s, visibility 0s linear .3s;
}
@media (max-width: 1000px) {
	body.kk-menu-open { overflow: hidden; }
	body.kk-menu-open .navscrim { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }

	.navpanel { padding: 6px; border-radius: 20px; }
	.tabs { display: flex; align-items: center; justify-content: space-between; }
	.tabs .mbtn {
		display: flex !important;
		width: 46px; height: 46px; min-height: 46px;
		padding: 0;
		border-radius: 14px;
		align-items: center; justify-content: center;
		background: transparent;
	}
	.tabs .mbtn.on { background: rgba(255,255,255,.12); color: #fff; }
	.mbtn__lines { position: relative; display: block; width: 22px; height: 12px; }
	.mbtn__lines i {
		position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: #fff;
		transition: transform .35s var(--ease-io), top .35s var(--ease-io);
	}
	.mbtn__lines i:nth-child(1) { top: 0; }
	.mbtn__lines i:nth-child(2) { top: 10.5px; }
	.mbtn.on .mbtn__lines i:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
	.mbtn.on .mbtn__lines i:nth-child(2) { top: 5.25px; transform: rotate(-45deg); }
	.navpanel.open .mlabel { display: block; padding-left: 14px; font-size: 13px; color: #CFCFCF; }

	.navpanel.open { display: flex; flex-direction: column; }
	.navpanel.open .mdrop { display: flex; flex-direction: column; min-height: 0; }
	.mgrid { gap: 6px; margin-top: 6px; }
	.tile {
		min-height: 56px;
		flex-direction: row;
		align-items: center;
		padding: 0 18px;
	}
	.tile .timg, .tile .tscrim, .tile .tglow, .tile .tsub { display: none; }
	.tile .trow { width: 100%; text-shadow: none; }
	.tile .ttitle { font-size: 18px; }
	.tile.on { background: rgba(0,0,0,.22); }
	.tile:active { background: rgba(255,255,255,.10); }

	.mfoot { justify-content: flex-end; padding: 12px 6px 4px; }
	.mfoot__help { display: none; }
	.mlinks { padding: 6px 0 0; }
	.mlinks a.mcta {
		position: sticky;
		bottom: 0;
		display: flex; align-items: center; justify-content: center; gap: 10px;
		padding: 16px 8px;
		font-size: 16px;
		margin-top: 2px;
		box-shadow: 0 -12px 18px rgba(20,20,20,.55);
	}
}

/* Kontaktivorm mobiilis (Oscar 13.11): tihedam, nupp üle laiuse, otsekontakt enne vormi */
@media (max-width: 1000px) {
	.v2light .contact { display: flex; flex-direction: column; gap: 32px; }
	.v2light .contact__aside { display: contents; }
	.v2light .contact__aside > h2,
	.v2light .contact__aside > .text-muted,
	.v2light .contact__aside > .contact__list { order: -1; }
	.v2light .contact__aside > h2 { margin: 0 0 -20px; font-size: 30px; }
	.v2light .contact__aside > .text-muted { margin: 0 0 -12px; }
	.v2light .contact__list { margin: 0; grid-template-columns: 1fr 1fr; gap: 12px; }
	.v2light .contact__list li { background: #fff; border-radius: 16px; padding: 14px 16px; }
	.v2light .contact__list a { font-size: 17px; text-decoration: none; word-break: break-word; }
	.v2light .contact__form.v2card { padding: 20px 18px; }
	.v2light .contact-form .field { margin-bottom: 16px; }
	.v2light .contact-form .field label { margin-bottom: 6px; }
	.v2light .contact-form .contact-form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.v2light .contact-form > button[type="submit"], .v2light .contact-form .btn--primary { align-self: stretch; width: 100%; justify-content: center; min-height: 52px; }
	.v2light .contact__promise.v2card { padding: 22px; }
}
@media (max-width: 380px) { .v2light .contact__list { grid-template-columns: minmax(0, 1fr); } }
