@import url('./sections/description.css');
@import url('./sections/photo-row.css');
@import url('./sections/frame26.css');
@import url('./sections/story-bands.css');
@import url('./sections/impact-band.css');
@import url('./sections/footer.css');

/*
 * Tehlička base styles. Tokens come from theme.json (CSS custom properties
 * --wp--preset--*). Page/component CSS is added during the theme-build phase.
 */

/* Accessibility (WCAG AA) text shades of the warm brand colours, used ONLY
   where a brand colour is *text on a light surface*. The Figma design paints
   the bright hues (#f49123 / #dc5731) as text, which fail AA contrast
   (~2.3–3.8:1); these darker shades pass. Bright tokens stay for fills,
   icons, and focus outlines. See handoff 2026-06-08 — update Figma to match. */
:root {
	--c-orange-ink: #a8560b; /* 5.2:1 on cream  (was brand-orange text) */
	--c-coral-ink:  #c44a26; /* 4.78:1 on cream (was brand-coral text)  */
	--c-coral-deep: #c84a26; /* surface: cream text reaches 4.66:1      */
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--off-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

a { color: var(--wp--preset--color--brand-red); }
img { max-width: 100%; height: auto; }

.container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 24px;
}

.section { padding-block: 64px; }

/* --- Button — the site's one button. -----------------------------------
   Figma "Tehlička/Button" masters: Small set 33:301 (43px, pad 8/16,
   Raleway 600 18/27) and Large set 174:1927 (58px, pad 16/40, Raleway 600
   20/26), radius 4 throughout. Primary = brand-red fill / cream text;
   Secondary = cream fill / brand-red text + brand-red inside border (1px
   small, 2px large); Disabled = same fill at 30% opacity. Every button on
   the site is rendered by tehlicka_button() — there are no per-section
   button variants. Icons inherit colour (currentColor); secondary tints
   them coral per Figma. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	border: 0;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

/* Size — Small (43px tall) / Large (58px tall). */
.btn--sm { padding: 8px 16px; font-size: 18px; line-height: 27px; min-height: 43px; }
.btn--lg { padding: 16px 40px; font-size: 20px; line-height: 26px; min-height: 58px; }

/* Variant — Primary (red/cream) / Secondary (cream/red + red border). */
.btn--primary { background: var(--wp--preset--color--brand-red); color: var(--wp--preset--color--cream); }
.btn--primary:hover { background: #7d080b; color: var(--wp--preset--color--cream); }
.btn--secondary {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--brand-red);
	border: 1px solid var(--wp--preset--color--brand-red);
}
.btn--lg.btn--secondary { border-width: 2px; }
.btn--secondary:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--brand-red); }

/* Icon — 16×16 inline SVG; secondary uses the coral accent (Figma). */
.btn__icon { flex: 0 0 16px; width: 16px; height: 16px; display: block; }
.btn--secondary .btn__icon { color: var(--wp--preset--color--brand-coral); }

/* Disabled — same fill at 30% opacity, non-interactive (Figma Large/Disabled). */
.btn--disabled,
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .3; pointer-events: none; cursor: default; }

/* Keyboard focus — red ring offset onto the page so it shows on red fills too. */
.btn:focus-visible { outline: 2px solid var(--wp--preset--color--brand-red); outline-offset: 2px; }

/* Header — Figma "Tehlička/Navbar" (1440x88, padding 8/80/8/80).
   Off-white bg #FCFCFC, container max 1280px, 32px gap, Raleway 600 16px uppercase. */
.site-header {
	background: var(--wp--preset--color--off-white);
	position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
	width: 100%;
	max-width: none;
	margin-inline: auto;
	padding-inline: clamp(16px, 5.55vw, 80px);
	padding-block: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 88px;
}
.site-header__brand { display: flex; align-items: center; flex: 0 0 auto; }
.site-logo { display: block; width: clamp(140px, 18vw, 202px); height: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav__list { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li { position: relative; }
.site-nav__list a,
.site-nav__savio {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--wp--preset--color--black);
	text-decoration: none;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.site-nav__list a:hover,
.site-nav__savio:hover { color: var(--wp--preset--color--brand-coral); }
.site-nav__list .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 9px; height: 9px;
	margin-left: 6px;
	border-right: 2px solid var(--wp--preset--color--brand-coral);
	border-bottom: 2px solid var(--wp--preset--color--brand-coral);
	transform: rotate(45deg) translateY(-3px);
	transition: transform .15s ease;
}
.site-nav__list .menu-item-has-children:hover > a,
.site-nav__list .menu-item-has-children:focus-within > a,
.site-nav__list .menu-item-has-children.is-open > a { color: var(--wp--preset--color--brand-coral); }
.site-nav__list .menu-item-has-children:hover > a::after,
.site-nav__list .menu-item-has-children:focus-within > a::after,
.site-nav__list .menu-item-has-children.is-open > a::after {
	transform: rotate(-135deg) translateY(-2px);
}

/* Submenu card — Figma "Menu/Aktivity" 225x145, white card with shadow */
.site-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 240px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0,0,0,.12);
	border-radius: 12px;
	padding: 8px 0;
	list-style: none;
	margin: 0;
	display: none;
}
.site-nav__list .menu-item-has-children:hover .sub-menu,
.site-nav__list .menu-item-has-children:focus-within .sub-menu,
.site-nav__list .menu-item-has-children.is-open .sub-menu { display: block; }
.site-nav__list .sub-menu li { padding: 0; }
.site-nav__list .sub-menu a {
	display: block;
	padding: 8px 16px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	font-size: 18px;
	line-height: 27px;
	text-transform: none;
	color: var(--wp--preset--color--ink);
}
.site-nav__list .sub-menu a:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--brand-coral); }

/* DARUJME nav button: chrome comes from .btn .btn--sm .btn--primary; the
   .site-nav__cta hook only positions it (full-width stretch on mobile, below). */

/* Hamburger toggle — hidden until mobile breakpoint */
.site-header__toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	width: 44px; height: 44px;
	position: relative;
}
.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
	content: '';
	display: block;
	position: absolute;
	left: 10px; right: 10px;
	height: 2px;
	background: var(--wp--preset--color--ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.site-header__toggle-icon { top: 50%; transform: translateY(-50%); }
.site-header__toggle-icon::before { top: -8px; left: 0; right: 0; }
.site-header__toggle-icon::after { top: 8px; left: 0; right: 0; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon { background: transparent; }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::before { top: 0; transform: rotate(45deg); }
.site-header__toggle[aria-expanded="true"] .site-header__toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* Footer — see assets/css/sections/footer.css for the Figma-driven rebuild. */

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 16px; z-index: 1000; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 980px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1024px) {
	.site-header__inner { gap: 16px; padding-inline: clamp(16px, 4vw, 32px); }
	.site-nav { gap: 20px; }
	.site-nav__list { gap: 20px; }
}
@media (max-width: 860px) {
	.site-header__inner { padding-inline: 16px; min-height: 72px; padding-block: 8px; }
	.site-logo { width: clamp(120px, 32vw, 160px); }
	.site-header__toggle { display: block; order: 3; }

	.site-nav {
		position: absolute;
		inset: 72px 0 auto 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 16px;
		display: none;
		box-shadow: 0 12px 24px rgba(0,0,0,.1);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}
	.site-nav__list > li { width: 100%; }
	.site-nav__list a { padding: 12px 8px; }
	.site-nav__list .menu-item-has-children > a::after { margin-left: auto; }

	.site-nav__list .sub-menu {
		position: static;
		transform: none;
		display: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0 0 8px 16px;
		min-width: 0;
	}
	.site-nav__list .menu-item-has-children.is-open .sub-menu { display: block; }
	.site-nav__list .menu-item-has-children:hover .sub-menu,
	.site-nav__list .menu-item-has-children:focus-within .sub-menu { display: none; }
	.site-nav__list .menu-item-has-children.is-open .sub-menu { display: block; }

	.site-nav__cta { align-self: stretch; margin-top: 8px; }
	.site-nav__savio { padding: 12px 8px; }
}

/* --- Hero — Figma "Dashboard / týždne" (Frame 9, 1440x630): brick photo
   left, text-right on off-white. Autolayout HORIZONTAL with primary=MAX
   and counter=MAX → flex with justify/align flex-end. Padding lives on
   .hero__inner so the inner element is the Figma frame 1:1; the outer
   .hero is just background + overflow. --- */
.hero {
	background: var(--wp--preset--color--off-white);
	overflow: hidden;
}
.hero__inner {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-end;
	gap: 60px;
	padding: 40px 80px;
	min-height: 550px;
}
.hero__text { display: flex; flex-direction: column; align-items: stretch; width: 612px; flex-shrink: 1; }
.hero__eyebrow { display: none; }
.hero__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(2.25rem, 3.9vw, 3.5rem);
	line-height: 1.2;
	margin: 0;
	color: var(--c-orange-ink);
}
.hero__lead {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.25rem, 2.225vw, 2rem);
	line-height: 1.3;
	margin: 0;
	color: var(--c-orange-ink);
}
/* Hero CTA: chrome comes from .btn .btn--lg .btn--primary; this hook only
   positions it — full-width below the lead, with hero spacing above. */
.hero__cta { margin-top: 40px; align-self: stretch; }

/* Hero art — photo masked to the two-brick brand shape. Uploaded image
   (any aspect ratio) is cover-fitted, then the mask cuts it to the brick
   silhouette. Mask asset is fixed; only the photo behind it changes. */
.hero__art { position: relative; }
.hero__art--photo {
	aspect-ratio: 576 / 550;
	width: 576px;
	flex-shrink: 0;
	-webkit-mask-image: url('../img/hero-mask.svg');
	mask-image: url('../img/hero-mask.svg');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}
.hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
/* Placeholder when no user image is set: solid brand-orange brick. */
.hero__art--placeholder {
	aspect-ratio: 576 / 550;
	width: 576px;
	flex-shrink: 0;
	background: var(--wp--preset--color--brand-orange);
	-webkit-mask-image: url('../img/hero-mask.svg');
	mask-image: url('../img/hero-mask.svg');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}
.hero__art--placeholder .brick-cube { display: none; }

@media (max-width: 860px) {
	.hero__inner { flex-direction: column; gap: 32px; min-height: 0; align-items: stretch; padding: 24px 16px; }
	.hero__art--photo, .hero__art--placeholder { order: -1; margin-inline: auto; width: 100%; max-width: 360px; }
	.hero__text { width: 100%; }
}
.hero__counter { display: flex; flex-direction: column; margin: 24px 0; }
.hero__counter-num { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: clamp(2rem,4vw,3rem); }
.hero__counter-label { font-size: 1rem; }
.section--alt { background: var(--wp--preset--color--sand); }
.section__title { font-size: 2rem; margin: 0 0 24px; }
.page-title { font-size: 2.5rem; margin: 0 0 32px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; }
.card { background: var(--wp--preset--color--white); border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.card__media { margin: -24px -24px 16px; border-radius: 16px 16px 0 0; overflow: hidden; }
.card__img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card__pill { display: inline-block; background: var(--wp--preset--color--brand-coral); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; }
.card__title { font-size: 1.25rem; margin: 12px 0 8px; }
.card__title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.card__sub { font-weight: 600; margin: 0 0 4px; }
.card__meta { color: var(--wp--preset--color--grey-600); font-size: .875rem; }

.progress { background: var(--wp--preset--color--grey-100); border-radius: 999px; height: 10px; overflow: hidden; margin: 12px 0 6px; }
.progress__bar { display: block; height: 100%; background: var(--wp--preset--color--brand-orange); }

.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.material-list__item { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-radius: 12px; padding: 20px 24px; }
.material-list__title { margin: 0 0 4px; font-size: 1.125rem; }

.single { max-width: 800px; }
.single__title { font-size: clamp(2rem,4vw,2.5rem); }
.single__counter { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2.5rem; color: var(--wp--preset--color--brand-red); }
.single__media { margin: 24px 0; }
.single__img { width: 100%; border-radius: 16px; }
.single__pill { display: inline-block; background: var(--wp--preset--color--brand-coral); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; }

.year-summary { background: var(--wp--preset--color--sand); border-radius: 16px; padding: 32px; margin-bottom: 32px; }
.link-list { display: grid; gap: 8px; padding-left: 1.2em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 40px; margin-top: 32px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--wp--preset--color--grey-300); border-radius: 8px; font: inherit; }
.form-success { background: #e7f6e7; border: 1px solid #43a047; padding: 12px 16px; border-radius: 8px; }

/* --- Iteration 2: home sections (hero overrides removed; canonical hero
       rules live higher up). Keep the brick-cube helper for split bands. --- */
.brick-cube { width: min(360px, 80%); height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.15)); }

/* --- Week slider (Figma Frame 108) -------------------------------- */
.week-slider { padding-block: 80px 60px; }
.week-slider__inner { display: flex; align-items: center; gap: 24px; padding-inline: 20px; max-width: 1440px; }
/* overflow-x: clip lets us crop horizontal scroll while keeping shadows + hover lift + current-card scale visible vertically. */
/* min-width: 0 lets the flex viewport shrink past its rail's intrinsic width — clip alone doesn't establish a BFC like hidden does. */
.week-slider__viewport { flex: 1 1 auto; min-width: 0; overflow-x: clip; overflow-y: visible; }
/* Horizontal padding ≥ hover box-shadow blur (16px) so the first/last card's shadow isn't clipped by viewport's overflow-x: clip. */
/* Vertical padding 20px reserves layout space for the current card's transform: scale(1.06) — without it the rail's bbox stays at the unscaled 446px and the section measures 24px short of Figma (which represents the highlighted state as a 470px-tall sibling). */
.week-slider__rail { list-style: none; margin: 0; padding: 20px 24px; display: flex; gap: 24px; transition: transform .35s ease; will-change: transform; }
.week-slider__item { flex: 0 0 263px; display: flex; }
.week-slider__nav { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 10px; background: transparent; border: 0; border-radius: 999px; color: var(--wp--preset--color--brand-red); cursor: pointer; transition: opacity .2s, transform .2s; }
.week-slider__nav:hover { transform: scale(1.1); }
.week-slider__nav:disabled { opacity: .25; cursor: default; transform: none; }
.week-slider__nav svg { width: 10px; height: 20px; display: block; }

.card--week { position: relative; box-sizing: border-box; width: 263px; min-height: 446px; background: var(--wp--preset--color--cream); border-radius: 16px; padding: 16px; box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.card--week:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28); }
/* Pill: tinted bg (rgba 30-40%) + same-hue full-opacity text — not solid bg / white text. */
.card--week .card__pill { display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; padding: 4px 8px; border-radius: 16px; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: 12px; line-height: 16.8px; }
.card--week .card__pill--past     { background: rgba(158, 11, 15, 0.4);  color: var(--wp--preset--color--ink); }
.card--week .card__pill--current  { background: rgba(244, 145, 35, 0.3); color: var(--wp--preset--color--ink); }
.card--week .card__pill--upcoming { background: rgba(247, 181, 25, 0.3); color: var(--wp--preset--color--ink); }
.card--week .card__heading { display: flex; flex-direction: column; gap: 4px; align-self: stretch; }
.card--week .card__num { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 40px; line-height: 48px; color: var(--c-orange-ink); }
.card--week .card__dates { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: 18px; line-height: 27px; color: var(--wp--preset--color--black); }
.card--week .card__media { position: relative; width: 231px; max-width: 100%; aspect-ratio: 231 / 222; margin: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; overflow: visible; }
/* Brick silhouette is 199×190 centered inside a 231×222 frame (16px on every side) per Figma node 379:3766. */
.card--week .card__media img, .card--week .card__img { position: absolute; top: 50%; left: 50%; width: 86.1%; height: auto; aspect-ratio: 199 / 190; transform: translate(-50%, -50%); object-fit: cover; display: block; -webkit-mask-image: url('../img/card-brick-mask.svg'); mask-image: url('../img/card-brick-mask.svg'); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.card--week .card__theme { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--c-orange-ink); align-self: stretch; }
.card--week .card__theme a { color: inherit; text-decoration: none; }
.card--week .card__theme a:hover { text-decoration: underline; }
/* Stretched-link: the article title is the canonical accessible label, but the click target is the whole card. */
.card--week .card__theme a::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card--week .card__theme a:focus-visible { outline: none; }
.card--week .card__theme a:focus-visible::before { outline: 2px solid var(--wp--preset--color--brand-orange); outline-offset: 4px; border-radius: 16px; }

/* Past — Figma treats finished weeks as a muted/done state. Desaturate + dim the photo (not the chrome). */
.card--week--past .card__img { filter: grayscale(0.55) brightness(0.82) saturate(0.7); }

/* Current week — Figma Frame 115 is 295x470 (≈1.12x the 263-wide siblings)
   with an orange-noise overlay; treat as scale+overlay. Same drop-shadow as
   the base card so the active state reads as "highlighted", not "lifted". */
.card--week--current { transform: scale(1.06); z-index: 1; position: relative; isolation: isolate; }
.card--week--current::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-color: rgba(244, 145, 35, 0.18); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.957 0 0 0 0 0.569 0 0 0 0 0.137 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); mix-blend-mode: multiply; opacity: .8; border-radius: 16px; clip-path: inset(0 round 16px); }
.card--week--current:hover { transform: scale(1.06) translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.split__art .brick-cube { width: min(260px, 70%); }
.split__body p { font-size: 1.05rem; }

.cta-band { background: var(--wp--preset--color--brand-yellow); color: var(--wp--preset--color--ink); text-align: center; padding-block: 56px; }
.cta-band h2 { font-size: 2rem; margin: 0 0 8px; }
.cta-band p { margin: 0 0 20px; }

.impact { background: var(--wp--preset--color--brand-coral); color: #fff; padding-block: 56px; }
.impact__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.impact__label { text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.impact__num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(2.5rem,6vw,4rem); margin: 4px 0 0; }
.impact__stats { display: flex; gap: 48px; }
.impact__stat { display: flex; flex-direction: column; }
.impact__stat-v { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2.5rem; }
.impact__stat-l { font-size: .9rem; opacity: .9; }

@media (max-width: 860px) {
	.split { grid-template-columns: 1fr; }
	.impact__inner { flex-direction: column; align-items: flex-start; }
	.impact__stats { gap: 28px; }
	.week-slider { padding-block: 40px 32px; }
	.week-slider__inner { gap: 12px; padding-inline: 12px; }
	.week-slider__nav { display: none; }
	.week-slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.week-slider__viewport::-webkit-scrollbar { display: none; }
	.week-slider__rail { transform: none !important; transition: none; }
	.week-slider__item { scroll-snap-align: start; }
}

/* --- Iteration 3: accordion (Aktivity) --- */
.accordion { display: grid; gap: 16px; }
.accordion__item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.06); border-left: 6px solid var(--wp--preset--color--brand-yellow); }
.accordion__item--1 { border-left-color: var(--wp--preset--color--brand-orange); }
.accordion__item--2 { border-left-color: var(--wp--preset--color--brand-coral); }
.accordion__item--3 { border-left-color: var(--wp--preset--color--brand-red); }
.accordion__head { margin: 0; }
.accordion__btn { width: 100%; display: flex; align-items: center; gap: 20px; padding: 16px 24px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
.accordion__thumb { flex: 0 0 96px; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--sand); }
.accordion__img { width: 100%; height: 100%; object-fit: cover; }
.accordion__thumb .brick-cube { width: 70%; }
.accordion__titles { flex: 1; display: flex; flex-direction: column; }
.accordion__eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--wp--preset--color--brand-red); font-weight: 700; }
.accordion__title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; color: var(--wp--preset--color--ink); }
.accordion__chevron { width: 14px; height: 14px; border-right: 3px solid var(--wp--preset--color--ink); border-bottom: 3px solid var(--wp--preset--color--ink); transform: rotate(45deg); transition: transform .2s; }
.accordion__btn[aria-expanded="true"] .accordion__chevron { transform: rotate(-135deg); }
.accordion__panel { padding: 0 24px 24px 140px; }
.accordion__panel[hidden] { display: none; }

/* --- Iteration 3: registration forms --- */
.reg-grid { display: grid; gap: 32px; }
.reg-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 28px rgba(0,0,0,.08); padding: 40px; }
.reg-card__title { font-size: 2rem; text-align: center; margin: 0 0 8px; }
.reg-card__lead { text-align: center; color: var(--wp--preset--color--grey-600); margin: 0 0 28px; }
.reg-form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reg-form__col { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.reg-form__col legend { font-weight: 700; font-family: var(--wp--preset--font-family--heading); margin-bottom: 8px; }
.reg-form label { display: grid; gap: 6px; font-size: .9rem; }
.reg-form input[type="text"], .reg-form input[type="email"] { padding: 12px 14px; border: 1px solid var(--wp--preset--color--grey-300); border-radius: 10px; font: inherit; }
.reg-form__consents { display: grid; gap: 12px; margin: 24px 0; }
.reg-form__check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .9rem; }
.reg-form__actions { display: flex; justify-content: flex-end; gap: 16px; border-top: 1px solid var(--wp--preset--color--grey-100); padding-top: 20px; }
.form-error { background: #fde7e7; border: 1px solid var(--wp--preset--color--brand-red); padding: 12px 16px; border-radius: 8px; }
.hero--compact { padding-block: 48px; }

@media (max-width: 760px) {
	.reg-form__cols { grid-template-columns: 1fr; }
	.reg-card { padding: 24px; }
	.accordion__panel { padding-left: 24px; }
	.accordion__thumb { flex-basis: 64px; width: 64px; height: 56px; }
}

/* --- Iteration 4: O tehličke + gallery + Darujme --- */
.band-yellow { background: var(--wp--preset--color--brand-yellow); padding-block: 56px; }
.card-grid--gallery .card { padding-top: 0; overflow: hidden; }
.card__media--cube { display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--sand); height: 160px; margin: 0 -24px 16px; }
.card__media--cube .brick-cube { width: 50%; }
.donate-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.donate-card .btn { margin-top: auto; }

/* --- Iteration 5: responsive polish --- */
.reg-form__check { line-height: 1.5; }
.reg-form__check a { word-break: keep-all; }
.hero__lead p { margin: 0; }
@media (max-width: 520px) {
  .reg-form__actions { flex-direction: column-reverse; align-items: stretch; }
  .reg-form__actions .btn { text-align: center; }
  .impact__num { font-size: 2.25rem; }
}
