/* =========================================================================
   AGRO INTERNATIONAL CORPORATION — bold & photographic design
   Full-bleed imagery, warm cream surfaces, soft-shadowed rounded cards,
   green brand accent with an orange highlight.
   ========================================================================= */

/* ----- Mosvita brand typeface (self-hosted) ----- */
@font-face {
	font-family: 'Mosvita';
	src: url('../fonts/mosvita-regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mosvita';
	src: url('../fonts/mosvita-medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mosvita';
	src: url('../fonts/mosvita-semibold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mosvita';
	src: url('../fonts/mosvita-bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #FFFFFF;
	--surface: #FAF6EE;        /* warm cream */
	--surface-2: #F2ECDF;
	--ink: #18271C;            /* deep green-black */
	--muted: #5E6C60;          /* muted sage */
	--line: #EAE4D7;
	--line-strong: #DCD3C1;
	--accent: #1E7D34;         /* logo green */
	--accent-ink: #145C26;     /* darker green (hover) */
	--leaf: #6FBF4A;           /* light leaf green */
	--orange: #E2703A;         /* tagline orange (secondary accent) */
	--orange-ink: #C85A28;
	--overlay: rgba(11, 33, 18, .82);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow-sm: 0 8px 22px -12px rgba(20, 45, 26, .30);
	--shadow: 0 30px 64px -30px rgba(20, 45, 26, .42);
	--header-h: 78px;
	--maxw: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
	margin: 0;
	font-family: 'Mosvita', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Mosvita', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--ink);
	line-height: 1.1;
	margin: 0 0 .5em;
	font-weight: 600;
	letter-spacing: -0.03em;
	overflow-wrap: break-word;
	text-wrap: balance; /* even, intentional line breaks instead of orphan words */
}

p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.ytl-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.ytl-section { padding-block: clamp(4rem, 2rem + 7vw, 7.5rem); }
.ytl-section--surface { background: var(--surface); }

.ytl-section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 3.75rem); }
.ytl-section--center .ytl-section__head { margin-inline: auto; text-align: center; }
.ytl-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: 'Mosvita', sans-serif; font-size: .8rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .12em; color: var(--orange);
	margin-bottom: 1rem;
}
.ytl-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.ytl-section--center .ytl-eyebrow { justify-content: center; }
.ytl-section__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); margin-bottom: .7rem; }
.ytl-section__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--muted); margin: 0; max-width: 62ch; }
.ytl-section--center .ytl-section__lead { margin-inline: auto; }
.ytl-accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.ytl-btn {
	display: inline-flex; align-items: center; gap: .55rem;
	font-family: 'Mosvita', sans-serif; font-weight: 600; font-size: .95rem;
	padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
	line-height: 1;
}
.ytl-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 14px 26px -14px rgba(30,125,52,.7); }
.ytl-btn--primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); }
.ytl-btn--accent { background: var(--orange); color: #fff; box-shadow: 0 14px 26px -14px rgba(226,112,58,.75); }
.ytl-btn--accent:hover { background: var(--orange-ink); color: #fff; transform: translateY(-2px); }
.ytl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ytl-btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.ytl-btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.ytl-btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.ytl-btn i { font-size: 1.1em; transition: transform .2s ease; }
.ytl-btn:hover i.ph-arrow-right { transform: translateX(3px); }

/* =========================================================================
   STICKY HEADER
   ========================================================================= */
header.wp-block-template-part,
body > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.ytl-header {
	background: rgba(255, 255, 255, .9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.ytl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.ytl-brand { display: inline-flex; align-items: center; gap: .6rem; }
.ytl-logo {
	display: block;
	width: 70px; height: 58px;
	background: url('../images/logo.png') no-repeat center;
	background-size: contain;
}
.ytl-footer .ytl-logo { filter: brightness(0) invert(1); }

.ytl-nav { display: flex; align-items: center; gap: 1.75rem; }
.ytl-nav__list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.ytl-nav__link { font-weight: 500; font-size: .95rem; color: var(--muted); position: relative; padding-block: .35rem; }
.ytl-nav__link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--orange); transition: width .22s ease; }
.ytl-nav__link:hover, .ytl-nav__link.is-active { color: var(--ink); }
.ytl-nav__link:hover::after, .ytl-nav__link.is-active::after { width: 100%; }

.ytl-header__actions { display: flex; align-items: center; gap: 1rem; }
.ytl-header__cta { display: inline-flex; }

.ytl-lang { display: inline-flex; gap: .3rem; align-items: center; }
.ytl-lang__btn {
	font-family: 'Mosvita', sans-serif; font-weight: 600; font-size: .8rem;
	background: transparent; color: var(--muted); border: 0; padding: .3rem .35rem; cursor: pointer; line-height: 1; transition: color .2s;
}
.ytl-lang__btn.is-active { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

.ytl-burger { display: none; background: transparent; border: 0; cursor: pointer; font-size: 1.7rem; color: var(--ink); line-height: 1; padding: .25rem; }

/* =========================================================================
   HERO — full-bleed photo with overlay
   ========================================================================= */
.ytl-hero { position: relative; display: flex; align-items: center; min-height: clamp(560px, 82vh, 840px); overflow: hidden; }
.ytl-hero__bg { position: absolute; inset: 0; z-index: 0; }
.ytl-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ytl-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(102deg, var(--overlay) 0%, rgba(11,33,18,.74) 40%, rgba(11,33,18,.34) 72%, rgba(11,33,18,.12) 100%);
}
.ytl-hero__inner { position: relative; z-index: 2; color: #fff; padding-block: clamp(3rem, 6vw, 5rem); max-width: 760px; }
.ytl-hero__eyebrow {
	display: inline-flex; align-items: center; gap: .6rem; color: #fff;
	font-family: 'Mosvita', sans-serif; font-weight: 600; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.5rem;
}
.ytl-hero__eyebrow i { color: var(--leaf); font-size: 1.1rem; }
.ytl-hero h1 { color: #fff; font-size: clamp(2.4rem, 1rem + 5.2vw, 4.4rem); line-height: 1.05; margin-bottom: 1.2rem; }
.ytl-hero__lead { color: rgba(255,255,255,.9); font-size: clamp(1.08rem, 1rem + .55vw, 1.32rem); max-width: 52ch; margin-bottom: 2.2rem; }
.ytl-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 2.8rem; }
.ytl-hero__stats { display: flex; gap: clamp(1.5rem, 1rem + 2.5vw, 3.5rem); flex-wrap: wrap; }
.ytl-hero__stats > div { position: relative; padding-left: 1.25rem; }
.ytl-hero__stats > div::before { content: ""; position: absolute; left: 0; top: .1rem; bottom: .1rem; width: 3px; border-radius: 3px; background: var(--orange); }
.ytl-hero__stat-num { font-family: 'Mosvita', sans-serif; font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.ytl-hero__stat-label { font-size: .85rem; color: rgba(255,255,255,.78); margin-top: .45rem; }

/* =========================================================================
   ACTIVITIES — soft-shadowed rounded cards
   ========================================================================= */
.ytl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ytl-card {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 2.1rem 1.8rem; box-shadow: var(--shadow-sm);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ytl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ytl-card__icon {
	width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
	background: linear-gradient(135deg, rgba(30,125,52,.12), rgba(111,191,74,.20));
	color: var(--accent); font-size: 1.7rem; margin-bottom: 1.3rem;
}
.ytl-card h3 { font-size: 1.32rem; margin-bottom: .55rem; letter-spacing: -0.02em; }
.ytl-card p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1rem; }
.ytl-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ytl-card__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; color: var(--ink); }
.ytl-card__list i { color: var(--orange); font-size: 1.1rem; margin-top: .08rem; flex: none; }

/* =========================================================================
   SECTORS & PRODUCTS
   ========================================================================= */
.ytl-expertise__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
.ytl-skills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.ytl-chip {
	display: inline-flex; align-items: center; gap: .5rem;
	border: 1px solid var(--line-strong); border-radius: 999px;
	padding: .6rem 1.05rem; font-size: .92rem; color: var(--ink); background: var(--bg);
	box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.ytl-chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.ytl-chip i { color: var(--accent); font-size: 1.15rem; }
.ytl-expertise__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow); }

/* =========================================================================
   PROCESS — numbered cards
   ========================================================================= */
.ytl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.ytl-step {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm); position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}
.ytl-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ytl-step__num {
	position: absolute; top: 1.5rem; right: 1.6rem;
	font-family: 'Mosvita', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--orange);
}
.ytl-step i {
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
	background: linear-gradient(135deg, rgba(30,125,52,.12), rgba(111,191,74,.20));
	color: var(--accent); font-size: 1.55rem; margin-bottom: 1.1rem;
}
.ytl-step h3 { font-size: 1.2rem; margin-bottom: .45rem; letter-spacing: -0.02em; }
.ytl-step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.ytl-about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: center; }
.ytl-about__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/4.4; object-fit: cover; box-shadow: var(--shadow); }
.ytl-about__points { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.ytl-about__points li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.ytl-about__points i {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none;
	background: linear-gradient(135deg, rgba(226,112,58,.12), rgba(226,112,58,.20));
	color: var(--orange); font-size: 1.3rem;
}
.ytl-about__points b { font-family: 'Mosvita', sans-serif; color: var(--ink); display: block; font-weight: 600; margin-bottom: .15rem; }
.ytl-about__points span { color: var(--muted); font-size: .97rem; }

/* =========================================================================
   CTA BAND — full-bleed photo
   ========================================================================= */
.ytl-cta { position: relative; overflow: hidden; }
.ytl-cta__bg { position: absolute; inset: 0; z-index: 0; }
.ytl-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.ytl-cta::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(11,33,18,.86), rgba(11,33,18,.78));
}
.ytl-cta__inner { position: relative; z-index: 2; text-align: center; color: #fff; padding-block: clamp(4rem, 8vw, 7rem); max-width: 720px; margin-inline: auto; }
.ytl-cta__inner h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3rem); margin-bottom: 1rem; }
.ytl-cta__inner p { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); margin-bottom: 2rem; }

/* =========================================================================
   CONTACT — form card
   ========================================================================= */
.ytl-contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); align-items: start; }
.ytl-contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.ytl-contact__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); min-width: 0; }
.ytl-contact__list i {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
	background: linear-gradient(135deg, rgba(30,125,52,.12), rgba(111,191,74,.20)); color: var(--accent); font-size: 1.3rem;
}
.ytl-contact__list b { font-family: 'Mosvita', sans-serif; display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ytl-contact__list li > span { min-width: 0; }
.ytl-contact__list span span:last-child { color: var(--ink); overflow-wrap: anywhere; word-break: break-word; }

.ytl-form { display: grid; gap: 1.1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); }
.ytl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.ytl-field { display: grid; gap: .45rem; }
.ytl-field label { font-size: .82rem; font-weight: 600; color: var(--ink); font-family: 'Mosvita', sans-serif; }
.ytl-field input, .ytl-field select, .ytl-field textarea {
	width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 12px;
	font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.ytl-field input::placeholder, .ytl-field textarea::placeholder { color: #9AA39A; }
.ytl-field input:focus, .ytl-field select:focus, .ytl-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,125,52,.14); }
.ytl-field textarea { min-height: 120px; resize: vertical; }
.ytl-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.ytl-form .ytl-btn { justify-self: start; margin-top: .3rem; }
.ytl-form__note { font-size: .85rem; color: var(--muted); margin: 0; }
.ytl-form__alert { padding: .9rem 1.1rem; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.ytl-form__alert--ok { background: rgba(30,125,52,.08); color: var(--accent-ink); border: 1px solid rgba(30,125,52,.35); }
.ytl-form__alert--err { background: rgba(220,60,60,.07); color: #b42323; border: 1px solid rgba(220,60,60,.3); }
.ytl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.ytl-footer { background: #0F3A1E; color: rgba(255,255,255,.66); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.75rem; }
.ytl-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.ytl-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.2rem; font-weight: 600; }
.ytl-footer__about { font-size: .95rem; margin: 1.2rem 0 1.5rem; max-width: 36ch; line-height: 1.6; }
.ytl-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.ytl-footer__list a { color: rgba(255,255,255,.62); font-size: .95rem; }
.ytl-footer__list a:hover { color: #fff; }
.ytl-footer__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; min-width: 0; }
.ytl-footer__list li i { color: var(--leaf); margin-top: .15rem; flex: none; }
.ytl-footer__list span, .ytl-footer__list a { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.ytl-footer__social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.ytl-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); font-size: 1.25rem; transition: background .2s ease, color .2s ease; }
.ytl-footer__social a:hover { background: var(--orange); color: #fff; }
.ytl-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.5); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
	.ytl-cards { grid-template-columns: 1fr 1fr; }
	.ytl-expertise__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.ytl-expertise__media { order: -1; max-width: 620px; }
	.ytl-steps { grid-template-columns: 1fr 1fr; }
	.ytl-about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.ytl-about__media { max-width: 460px; }
	.ytl-contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.ytl-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.ytl-header__cta { display: none; }
}

@media (max-width: 760px) {
	.ytl-nav { display: none; }
	.ytl-nav.is-open {
		display: block; position: fixed; inset: var(--header-h) 0 auto 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 34px -18px rgba(14,17,22,.18);
		padding: .25rem 0 .75rem; z-index: 99;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.ytl-nav.is-open .ytl-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.ytl-nav.is-open .ytl-nav__link { display: block; padding: 1.05rem 32px; font-size: 1.1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
	.ytl-nav.is-open .ytl-nav__list li:last-child .ytl-nav__link { border-bottom: 0; }
	.ytl-nav.is-open .ytl-nav__link::after { display: none; }
	.ytl-burger { display: block; }
	.ytl-cards { grid-template-columns: 1fr; }
	.ytl-steps { grid-template-columns: 1fr; }
	.ytl-form__row { grid-template-columns: 1fr; }
	.ytl-container { padding-inline: 24px; }
}

@media (max-width: 540px) {
	:root { --header-h: 70px; }
	.ytl-logo { width: 60px; height: 50px; }
	.ytl-hero__stats { gap: 1.25rem 1.75rem; }
	.ytl-container { padding-inline: 20px; }
	.ytl-header__inner { gap: .75rem; }
	.ytl-footer__grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.75rem 1.5rem; }
	.ytl-footer__brand { grid-column: 1 / -1; }
	.ytl-footer__bottom { flex-direction: column; gap: .5rem; }
	.ytl-nav.is-open .ytl-nav__link { padding-inline: 20px; }
}

@media (max-width: 380px) {
	.ytl-hero h1 { font-size: 2.15rem; }
	.ytl-hero__actions .ytl-btn { width: 100%; justify-content: center; }
	.ytl-container { padding-inline: 18px; }
}

@media (hover: none) {
	.ytl-nav__link, .ytl-btn, .ytl-lang__btn, .ytl-burger { -webkit-tap-highlight-color: transparent; }
}

/* =========================================================================
   404, LEGAL PAGE, COOKIE BANNER, FOOTER LEGAL LINKS
   ========================================================================= */
.ytl-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.ytl-404__inner { max-width: 560px; }
.ytl-404__code { font-family: 'Mosvita', sans-serif; font-weight: 700; font-size: clamp(5rem, 2rem + 16vw, 10rem); color: var(--accent); line-height: 1; letter-spacing: -0.04em; }
.ytl-404 h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: .25rem 0 1rem; }
.ytl-404 p { color: var(--muted); margin-bottom: 2rem; }

.ytl-legal { max-width: 760px; }
.ytl-legal h2 { font-size: 1.6rem; margin: 2.5rem 0 .75rem; letter-spacing: -0.02em; }
.ytl-legal h2:first-child { margin-top: 0; }
.ytl-legal p { color: var(--muted); margin-bottom: 1rem; }
.ytl-legal a { color: var(--accent); font-weight: 600; }

.ytl-footer__legal { display: inline-flex; gap: 1rem; flex-wrap: wrap; }
.ytl-footer__legal a { color: rgba(255,255,255,.65); }
.ytl-footer__legal a:hover { color: #fff; }

.ytl-cookie {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
	background: var(--bg); border-top: 1px solid var(--line-strong);
	box-shadow: 0 -10px 34px -16px rgba(14,17,22,.22);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 1.1rem 32px; flex-wrap: wrap;
}
.ytl-cookie[hidden] { display: none; }
.ytl-cookie__text { margin: 0; font-size: .92rem; color: var(--ink); max-width: 68ch; }
.ytl-cookie__actions { display: flex; align-items: center; gap: 1.5rem; }
.ytl-cookie__link { font-size: .9rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.ytl-cookie__accept { padding: .65rem 1.6rem; }
@media (max-width: 540px) {
	.ytl-cookie { padding: 1rem 20px; gap: 1rem; }
	.ytl-cookie__actions { width: 100%; justify-content: space-between; }
}
