/*
Theme Name: DIGIQAL 2026
Theme URI: https://digiqal.gr
Author: DIGIQAL
Author URI: https://digiqal.gr
Description: Προσβάσιμο theme της Accessibility Support Academy.
Version: 1.0.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: digiqal-2026
*/

/* ===== 1. Tokens ===== */
:root {
	--deep: #074a46;
	--deep-2: #0a5a55;
	--teal: #0a6661;
	--amber: #e6a740;
	--ink: #10211f;
	--text: #2c3f3d;
	--paper: #fff;
	--mist: #fcf5e8;
	--line: #eadcbd;
	--field-line: #5c7774;
	--danger: #a3152f;
	--focus: #074a46;

	--r-media: 24px;
	--r-card: 16px;
	--r-field: 10px;

	--space: clamp(56px, 7vw, 104px);
	--wrap: 1400px;
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1.125rem;
	line-height: 1.65;
	overflow-wrap: break-word;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.2;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1.15rem; }
p, ul, ol, dl, figure, table, blockquote { margin: 0 0 1.1em; }
a { color: var(--teal); text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
button, input, textarea, select { font: inherit; }

.sr-only, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: 14px 22px;
	background: var(--amber);
	color: var(--ink);
	font-weight: 800;
	border-radius: var(--r-field);
}
.skip-link:focus { top: 12px; outline-color: #fff; }

/* Dark areas use an amber focus ring */
.drawer, .hero, .page-head, .footer, .panel--deep { --focus: var(--amber); }

/* ===== 3. Layout ===== */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 900px); }
.section { padding-block: var(--space); }
.section--tight { padding-block: calc(var(--space) * .7); }
.section--mist { background: var(--mist); }
.section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split__media img { display: block; width: 100%; border-radius: var(--r-media); }
.split__media--below { margin-top: 32px; }

/* Illustrations sit on white, with the same frame everywhere */
.split__media img.art, .figure img.art { padding: clamp(14px, 3vw, 32px); background: #fff; border: 1px solid var(--line); }
.intro { max-width: 760px; margin-bottom: 40px; }

/* ===== 4. Buttons ===== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.button--primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.button--primary:hover { background: #f2bd62; border-color: #f2bd62; color: var(--ink); }
.button--solid { background: var(--deep); border-color: var(--deep); color: #fff; }
.button--solid:hover { background: var(--deep-2); color: #fff; }
.button--line { border-color: var(--deep); color: var(--deep); }
.button--line:hover { background: var(--deep); color: #fff; }
.button--ghost { border-color: #fff; color: #fff; }
.button--ghost:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 0; }

/* ===== 5. Header and navigation ===== */
.header { position: sticky; top: 0; z-index: 40; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header.is-stuck { box-shadow: 0 6px 24px rgb(16 33 31 / .14); }
.header.is-stuck .header__row { min-height: 80px; }
.header.is-stuck .header__logo img { width: 236px; }
.header__row, .header__logo img { transition: min-height .2s, width .2s; }
.admin-bar .header { top: 32px; }
/* keeps focused elements and anchor targets clear of the header */
html { scroll-padding-top: 96px; }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; }
.header__logo { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.header__logo img { max-width: 100%; }
.header__end { flex: none; }
.header__logo img { width: 280px; height: auto; }
.header__end { display: flex; align-items: center; gap: 12px; }

.nav ul { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; }

.nav--bar > .nav__list { display: flex; align-items: center; gap: 4px; }
.nav--bar .nav__list > .nav__item { position: relative; display: flex; align-items: center; }
.nav--bar .nav__list > .nav__item > .nav__link,
.nav--bar .nav__list > .nav__item > .nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 48px;
	padding: 8px 14px;
	border: 0;
	border-radius: var(--r-field);
	background: none;
	color: var(--ink);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}
.nav--bar .nav__list > .nav__item > :is(.nav__link, .nav__toggle):hover { background: var(--mist); }
.nav--bar .nav__list > .nav__item.is-active > :is(.nav__link, .nav__toggle:not(.nav__toggle--icon)) { background: var(--deep); color: #fff; }
.nav--bar .nav__list > .nav__item > .nav__toggle--icon { padding-inline: 8px; min-width: 40px; justify-content: center; }
.nav__toggle .icon { transition: transform .15s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav--bar .nav__sub {
	position: absolute;
	top: 100%; left: 0;
	z-index: 50;
	min-width: 290px;
	padding: 8px;
	background: #fff;
	border-radius: var(--r-card);
	box-shadow: 0 18px 50px rgb(0 0 0 / .28);
	--focus: var(--deep);
}
/* bridge so that the menu does not close between the button and the list */
.nav--bar .nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.js .nav__toggle[aria-expanded="false"] + .nav__sub { display: none; }
.nav--bar .nav__sub .nav__link, .nav--bar .nav__heading {
	display: block;
	padding: 11px 14px;
	border-radius: var(--r-field);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}
.nav--bar .nav__heading { font-weight: 800; padding-bottom: 4px; }
.nav--bar .nav__sub .nav__link:hover { background: var(--mist); }
.nav--bar .nav__sub .nav__link[aria-current="page"] { background: var(--deep); color: #fff; }
.nav .nav__group { margin: 0 0 4px 16px; padding-left: 4px; border-left: 3px solid var(--amber); }

.lang { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--deep); border-radius: 999px; color: var(--deep); font-size: 1rem; font-weight: 700; text-decoration: none; }
.lang a:hover { background: var(--deep); color: #fff; }
.drawer .lang a { border-color: #fff; color: #fff; }
.drawer .lang a:hover { background: #fff; color: var(--ink); }

.menu-button { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border: 0; border-radius: var(--r-field); background: var(--deep); color: #fff; font-weight: 800; cursor: pointer; }
.menu-button__bars, .menu-button__bars::before, .menu-button__bars::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: currentColor; }
.menu-button__bars { position: relative; }
.menu-button__bars::before, .menu-button__bars::after { content: ''; position: absolute; left: 0; }
.menu-button__bars::before { top: -7px; }
.menu-button__bars::after { top: 7px; }

.drawer { width: min(100%, 440px); height: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 16px 20px 40px; border: 0; background: var(--deep); color: #fff; overflow-y: auto; }
.drawer::backdrop { background: rgb(0 0 0 / .6); }
.drawer__head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.drawer__close { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border: 2px solid #fff; border-radius: var(--r-field); background: none; color: #fff; font-weight: 800; cursor: pointer; }
.drawer__close span { font-size: 1.5rem; line-height: 1; }
.nav--drawer .nav__list > .nav__item { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgb(255 255 255 / .2); }
.nav--drawer .nav__link, .nav--drawer .nav__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1; min-height: 56px; padding: 12px 8px; border: 0; background: none; color: #fff; font-size: 1.15rem; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.nav--drawer .nav__toggle--icon { flex: 0 0 56px; justify-content: center; }
.nav--drawer .nav__sub { flex-basis: 100%; padding: 4px 0 12px 12px; }
.nav--drawer .nav__sub .nav__link { min-height: 48px; font-size: 1.05rem; font-weight: 500; }
.nav--drawer .nav__heading { display: block; padding: 12px 8px 4px; font-weight: 800; }
.nav--drawer .nav__link:hover, .nav--drawer .nav__toggle:hover { background: rgb(255 255 255 / .1); }
.nav--drawer .nav__link[aria-current="page"] { background: var(--amber); color: var(--ink); border-radius: var(--r-field); }
.drawer .lang { margin-top: 28px; }

/* smaller desktops: tighten the header so the wider logo and the full menu fit in one row */
@media (min-width: 1101px) and (max-width: 1300px) {
	.header__row { gap: 12px; }
	.header__logo img { width: 232px; }
	.header.is-stuck .header__logo img { width: 216px; }
	.nav--bar .nav__list > .nav__item > :is(.nav__link, .nav__toggle) { padding-inline: 10px; }
}

@media (max-width: 1100px) {
	.nav--bar, .header__end > .lang { display: none; }
	.menu-button { display: inline-flex; }
	.header__row { min-height: 88px; gap: 12px; }
	.header__logo img { width: 232px; }
	.header.is-stuck .header__row { min-height: 72px; }
	.header.is-stuck .header__logo img { width: 210px; }
}
.no-js .menu-button { display: none; }
.no-js .nav--bar { display: block; }
.no-js .header__row { flex-wrap: wrap; }

/* ===== 6. Tactile guide path (the signature element) ===== */
.path { --dot: 5px; --grid: 17px; --h: 68px; --w: 136px; --rib: 8px; --step: 20px; height: var(--h); overflow: hidden; }
.path > .wrap { height: 100%; }
.path__dots { position: relative; display: block; width: var(--w); height: 100%; background: radial-gradient(circle, var(--amber) 0 var(--dot), transparent calc(var(--dot) + .5px)) 0 0 / var(--grid) var(--grid); }
.path__dots::before, .path__dots::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100vw; background: repeating-linear-gradient(to bottom, var(--amber) 0 var(--rib), transparent var(--rib) var(--step)); }
.path__dots::before { right: calc(100% + 14px); -webkit-mask-image: repeating-linear-gradient(to left, #000 0 132px, transparent 132px 142px); mask-image: repeating-linear-gradient(to left, #000 0 132px, transparent 132px 142px); }
.path__dots::after { left: calc(100% + 14px); -webkit-mask-image: repeating-linear-gradient(to right, #000 0 132px, transparent 132px 142px); mask-image: repeating-linear-gradient(to right, #000 0 132px, transparent 132px 142px); }
.path--slim { --dot: 2.5px; --grid: 8px; --h: 24px; --w: 64px; --rib: 4px; --step: 10px; }
@media (max-width: 991px) {
	.path:not(.path--slim) { --dot: 3.5px; --grid: 11px; --h: 44px; --w: 66px; --rib: 6px; --step: 12.6px; }
}

/* ===== 7. Home hero ===== */
.hero { display: flex; flex-direction: column; gap: 40px; padding: clamp(40px, 6vw, 80px) 0 32px; background: var(--deep); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__title { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.8vw, 4.5rem); line-height: 1.08; }
.hero__lead { max-width: 30ch; margin: 24px 0 0; font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.55; }
.hero__art { padding: clamp(12px, 2vw, 28px); background: #fff; border-radius: var(--r-media); }
.hero__art img { display: block; width: 100%; max-height: 56vh; object-fit: contain; }

/* ===== 8. Inner page header ===== */
.page-head { padding-top: 28px; background: var(--deep); color: #fff; overflow: hidden; }
.page-head > .path { margin-bottom: 16px; }
.page-head h1 { margin: 0; color: #fff; max-width: 22ch; }
/* without an illustration beside it, the title uses the full width */
.page-head:not(.page-head--art) h1 { max-width: none; text-wrap: wrap; }
.page-head__grid { padding-block: 28px 44px; }
.page-head--art .page-head__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-head__lead { max-width: 56ch; margin: 18px 0 0; font-size: 1.25rem; }
.page-head__meta { margin: 18px 0 0; font-weight: 600; }
.page-head__art { padding: 12px; background: #fff; border-radius: var(--r-media); }
.page-head__art img { display: block; width: 100%; max-height: 280px; object-fit: contain; }
.page-head .actions { margin-top: 24px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.crumbs li { display: flex; align-items: baseline; min-width: 0; }
.crumbs li + li::before { content: '/' / ''; margin-right: 10px; opacity: .7; }
.crumbs a { display: inline-block; padding-block: 4px; color: #fff; font-weight: 500; opacity: .92; }
/* the current page is the title right below, so it is kept in the trail only for screen readers */
.crumbs { position: relative; }
.crumbs li:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border: 2px solid var(--deep); border-radius: 999px; background: #fff; color: var(--deep); font-size: 1rem; font-weight: 700; text-decoration: none; }
.chips a:hover { background: var(--deep); color: #fff; }
.chips--deep ul { margin: 20px 0 0; }
.chips--deep a { border-color: rgb(255 255 255 / .6); background: transparent; color: #fff; }
.chips--deep a:hover { background: #fff; color: var(--ink); }

/* ===== 9. Cards and lists ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.cards--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cards--four { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
/* home page news: four, two or one per row, never a single card left over */
.cards--news { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards--news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--news { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.card__media { position: relative; order: -1; aspect-ratio: 16 / 10; background: var(--mist); }
.card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media:has(img.art) { background: #fff; border-bottom: 1px solid var(--line); }
.card__media img.art { padding: 14px; object-fit: contain; }
.card__body { flex: 1; padding: 22px 24px 24px; }
.card__title { margin: 0 0 .5em; font-size: 1.2rem; line-height: 1.35; text-wrap: pretty; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:has(a:hover) { border-color: var(--deep); }
.card__title a:hover { color: var(--teal); }
.card__meta, .card__text { margin: 0; font-size: 1rem; }
@media (min-width: 900px) {
	.cards--featured > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
	.cards--featured > .card:first-child .card__media { order: 0; grid-column: 1; grid-row: 1; }
	.cards--featured > .card:first-child .card__body { grid-column: 2; grid-row: 1; padding: 40px; }
	.cards--featured > .card:first-child .card__title { font-size: 1.9rem; }
}

.rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--deep); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { position: relative; display: block; padding: 18px 44px 18px 4px; color: var(--ink); font-weight: 700; line-height: 1.45; text-decoration: none; }
.rows a::after { content: ''; position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: solid var(--teal); border-width: 3px 3px 0 0; transform: rotate(45deg); }
.rows a:hover { background: var(--mist); color: var(--teal); }
.rows--columns { columns: 2 380px; column-gap: 48px; border-top: 0; }
.rows--columns li { break-inside: avoid; }

.checks { padding: 0; list-style: none; }
.checks li { position: relative; margin-bottom: 12px; padding-left: 36px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: .35em; width: 8px; height: 15px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); font-size: 1.0625rem; }
.plan--featured { border: 4px solid var(--amber); padding: 29px 25px; }
.plan h3 { font-size: 1.4rem; }
.plan__lead { font-weight: 600; color: var(--ink); }
.plan__label { margin-bottom: .6em; font-weight: 800; color: var(--ink); }
.plan__action { margin: auto 0 0; padding-top: 16px; }
.plan__action .button { width: 100%; }

/* ===== 10. Panels, contact, FAQ ===== */
.panel { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-media); }
.panel--deep { background: var(--deep); border-color: var(--deep); color: #fff; }
.panel--deep h2 { color: #fff; }
.panel--deep a { color: #fff; }

.contact-list { margin: 0 0 1.5em; }
.contact-list > div { margin-bottom: 12px; }
.contact-list dt { font-size: .95rem; font-weight: 600; }
.contact-list dd { margin: 0; font-size: 1.25rem; font-weight: 800; }
.contact-list a { display: inline-block; padding-block: 4px; overflow-wrap: anywhere; }

.founder { margin: 32px 0 0; }
.founder:first-child { margin-top: 0; }
.founder img { display: block; width: 100%; border-radius: var(--r-media); }
.founder figcaption { padding-top: 14px; }
.founder figcaption strong { display: block; color: var(--ink); font-size: 1.2rem; }

.faq__item { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.faq__item h3 { margin: 0; font-size: 1.1rem; }
.faq__button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 16px 22px; border: 0; border-radius: var(--r-card); background: none; color: var(--ink); font-weight: 700; line-height: 1.4; text-align: left; cursor: pointer; }
.faq__button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 6px; }

/* ===== 11. Editor content ===== */
.prose { font-size: 1.125rem; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.5em; }
.prose > h2:first-child, .split .prose > h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-card); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--amber); color: var(--ink); }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose--large { font-size: 1.25rem; }
.prose .alignleft { float: left; margin: 0 24px 16px 0; }
.prose .alignright { float: right; margin: 0 0 16px 24px; }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose::after { content: ''; display: block; clear: both; }
/* Without underlines, weight is what sets text links apart (colour alone is not enough). */
.prose a:not(.button, .wp-block-button__link) { color: var(--teal) !important; font-weight: 800; border-radius: 4px; }
.prose a:not(.button, .wp-block-button__link):hover { background: #fbe4b3; color: var(--ink) !important; }
.prose a mark { color: inherit !important; }
.prose .wp-block-button__link { display: inline-flex; padding: 12px 28px; border-radius: 999px; background: var(--deep) !important; color: #fff !important; font-weight: 700; }
.figure { margin: 0 0 40px; }
.figure img { display: block; width: 100%; border-radius: var(--r-media); }

.tags a { font-weight: 700; }
.pager { margin-top: 56px; border-top: 2px solid var(--deep); }
.pager ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 32px; margin: 0; padding: 20px 0 0; list-style: none; }
.pager a { display: block; font-weight: 700; }
.pager__label { display: block; color: var(--text); font-size: .95rem; font-weight: 500; }
.pager__next { text-align: right; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 12px; border: 2px solid var(--deep); border-radius: var(--r-field); font-weight: 700; }
.pagination .current { background: var(--deep); color: #fff; }

.search-form { margin-bottom: 32px; }
.search-form label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--ink); }
.search-form div { display: flex; flex-wrap: wrap; gap: 12px; }
.search-form input { flex: 1 1 260px; min-height: 52px; padding: 10px 16px; border: 2px solid var(--field-line); border-radius: var(--r-field); }

/* ===== 12. Forms (Forminator) ===== */
.form .forminator-ui.forminator-custom-form { margin: 0; font-family: inherit; }
.form .forminator-row { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; }
.form .forminator-row > .forminator-col { flex: 1 1 220px; min-width: 0; margin: 0 0 20px; padding: 0; }
.form .forminator-row > .forminator-col-12 { flex-basis: 100%; }
.form .forminator-row-last { margin: 0; }
.form .forminator-hidden { display: none !important; }
.form .forminator-field { margin: 0; }
.form .forminator-label, .form .forminator-ui .forminator-group-label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.form .forminator-required { color: var(--danger); font-weight: 800; }
.form :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]), textarea, select).forminator-input,
.form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], textarea, select) {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 14px;
	border: 2px solid var(--field-line);
	border-radius: var(--r-field);
	background: #fff;
	color: var(--ink);
	font-size: 1.0625rem;
	line-height: 1.4;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input[readonly] { background: var(--mist); border-style: dashed; }
.form :is(input, textarea, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form ::placeholder { color: #55696a; opacity: 1; }
.form .iti { display: block; width: 100%; }
.form .forminator-checkbox, .form .forminator-radio { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 0; padding: 8px 0; cursor: pointer; font-size: 1rem; line-height: 1.5; }
.form .forminator-checkbox input[type="checkbox"], .form .forminator-radio input[type="radio"] { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--deep); opacity: 1; position: static; }
.form .forminator-checkbox-box, .form .forminator-radio-bullet { display: none; }
.form .forminator-input-with-icon, .form .forminator-input-with-prefix { position: relative; }
.form [class*="forminator-icon-"]:not(.forminator-icon-file) { display: none; }
.form .forminator-file-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form .forminator-file-upload input[type="file"] { display: block; width: 100%; padding: 10px; border: 2px dashed var(--field-line); border-radius: var(--r-field); }
.form .forminator-file-upload > :is(button, span) { display: none; }
.form .forminator-description { display: block; margin-top: 6px; font-size: .95rem; }
.form .form__policy { margin: 0; padding-left: 36px; font-size: 1rem; }
.form .form__policy a { display: inline-block; padding-block: 6px; font-weight: 800; }
.form .form__policy a:hover { background: #fbe4b3; color: var(--ink); }
.form .forminator-ui [aria-invalid="true"], .form .forminator-has_error :is(input, textarea, select) { border-color: var(--danger); border-width: 3px; }
.form .forminator-error-message { display: block; margin-top: 6px; color: var(--danger); font-size: 1rem; font-weight: 700; }
.form .forminator-response-message { display: none; margin: 0 0 20px; padding: 14px 18px; border: 3px solid var(--field-line); border-radius: var(--r-field); color: var(--ink); font-weight: 600; }
.form .forminator-response-message.forminator-show { display: block; }
.form .forminator-response-message.forminator-error { border-color: var(--danger); }
.form .forminator-response-message.forminator-success { border-color: var(--deep); background: var(--mist); }
.form .forminator-response-message :last-child { margin-bottom: 0; }
.form .forminator-button-submit { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 52px; padding: 12px 36px; border: 2px solid var(--deep); border-radius: 999px; background: var(--deep); color: #fff; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
.form .forminator-button-submit:hover { background: var(--deep-2); }
.form .forminator-button-submit:disabled { opacity: .7; cursor: wait; }

/* ===== 13. Article page ===== */
.crumbs--light a { color: var(--teal); opacity: 1; }
.crumbs--light a:hover { color: var(--ink); }

.article-head { padding: 24px 0 clamp(40px, 6vw, 72px); background: var(--mist); border-bottom: 4px solid var(--amber); }
.article-head__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 28px; }
.article-head__grid--text { grid-template-columns: minmax(0, 1fr); }
.article-head h1 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3rem); text-wrap: pretty; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 1rem; font-weight: 600; }
.article-meta li { padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.article-head__media { margin: 0; padding: clamp(12px, 2vw, 24px); background: #fff; border-radius: var(--r-media); }
.article-head__media img { display: block; width: 100%; max-height: 420px; object-fit: contain; }

.article-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.article-layout--single { grid-template-columns: minmax(0, 880px); justify-content: center; }
.article-body { max-width: 860px; }
.prose--article { font-size: 1.1875rem; line-height: 1.75; }
.prose--article > p:first-child { color: var(--ink); font-size: 1.3125rem; font-weight: 500; line-height: 1.65; }
.prose--article h2 { padding-top: .2em; }
.prose--article h2:focus-visible { outline-offset: 8px; }

.toc { position: sticky; top: 108px; max-height: calc(100vh - 132px); overflow-y: auto; padding: 4px; }
.toc h2 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 3px solid var(--deep); font-size: 1.15rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 10px 12px; border-radius: var(--r-field); color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.45; }
.toc a:hover { background: var(--mist); color: var(--teal); }

.turn { border-top: 1px solid var(--line); padding-block: 32px; }
.turn ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0; list-style: none; margin-block: 0; }
.turn__item a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px 28px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-card); color: var(--ink); }
.turn__item a:hover { border-color: var(--deep); background: var(--mist); }
.turn__item--next { grid-column: 2; text-align: right; }
.turn__item--prev { grid-column: 1; grid-row: 1; }
.turn__label { color: var(--teal); font-size: 1rem; font-weight: 800; }
.turn__title { font-size: 1.15rem; font-weight: 700; line-height: 1.4; }

.briefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.brief { position: relative; display: flex; align-items: center; gap: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.brief > div:first-child { flex: 1; min-width: 0; }
.brief h3 { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.4; text-wrap: pretty; }
.brief h3 a { color: var(--ink); }
.brief h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.brief h3 a:focus-visible { outline: none; }
.brief:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.brief:has(a:hover) { border-color: var(--deep); }
.brief h3 a:hover { color: var(--teal); }
.brief p { margin: 0; font-size: .95rem; }
.brief__media { flex: 0 0 150px; order: -1; aspect-ratio: 4 / 3; }
.brief__media img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: var(--r-field); }

/* ===== 14. Service page ===== */
.service-head { padding: 24px 0 var(--space); background: #fff; }
.service-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; margin-top: 32px; }
.service-head h1 { margin: 0 0 24px; font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.1; }
.service-head__lead { font-size: 1.25rem; }
.service-head__lead p { margin: 0; }
/* the illustration sits on an offset amber block */
.service-head__media { position: relative; isolation: isolate; padding: 0 24px 24px 0; }
.service-head__media::before { content: ''; position: absolute; inset: 24px 0 0 24px; z-index: -1; background: var(--deep); border-radius: var(--r-media); }
.service-head__media img { display: block; width: 100%; padding: clamp(14px, 2.5vw, 32px); background: #fff; border: 2px solid var(--deep); border-radius: var(--r-media); }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px; margin: 32px 0 0; padding: 0; list-style: none; }
.offer { padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--deep); border-radius: var(--r-card); }
.offer__dots { display: block; width: 34px; height: 51px; margin-bottom: 20px; background: radial-gradient(circle, var(--amber) 0 6px, transparent 6.5px) 0 0 / 17px 17px; }
.offer h3 { font-size: 1.3rem; text-wrap: pretty; }
.offer .prose { font-size: 1.0625rem; }

.talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding: clamp(28px, 5vw, 56px); background: var(--deep); border-radius: var(--r-media); color: #fff; --focus: var(--amber); }
.talk > div { flex: 1 1 420px; }
.talk h2 { margin-bottom: .4em; color: #fff; }
.talk p { margin: 0; }
.talk .talk__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.talk .button--primary { color: var(--ink); }
.talk .button--ghost { color: #fff; }
.talk .button--ghost:hover { color: var(--ink); }

.next-service { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 32px; margin-top: 32px; padding: 24px clamp(24px, 4vw, 48px); background: var(--mist); border: 2px solid var(--line); border-radius: var(--r-media); }
.next-service h2 { margin: 0; }
.next-service__label { display: block; margin-bottom: 10px; color: var(--teal); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.next-service a { color: var(--ink); }
.next-service a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.next-service a:focus-visible { outline: none; }
.next-service:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.next-service:has(a:hover) { border-color: var(--deep); }
.next-service__media img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #fff; border-radius: var(--r-card); padding: 12px; }

@media (max-width: 991px) {
	.article-head__grid, .service-head__grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
	.toc { position: static; max-height: none; padding: 20px; background: var(--mist); border-radius: var(--r-card); }
	.article-body { max-width: none; }
}
@media (max-width: 640px) {
	.turn ul, .next-service { grid-template-columns: minmax(0, 1fr); }
	.turn__item--next, .turn__item--prev { grid-column: 1; grid-row: auto; text-align: left; }
	.brief { flex-direction: column; align-items: stretch; }
	.brief__media { flex-basis: auto; }
	.service-head__media { padding: 0 12px 12px 0; }
	.service-head__media::before { inset: 12px 0 0 12px; }
	.talk .talk__actions, .talk .button { width: 100%; }
}
@media (max-height: 520px) {
	.toc { position: static; max-height: none; }
}

/* ===== 15. Footer ===== */
.footer { background: var(--deep); color: #fff; }
.footer a { color: #fff; }
.footer a:not(.button):hover, .crumbs a:hover, .panel--deep a:hover { color: var(--amber); }
.contact-list a:hover { color: var(--ink); }
.footer .contact-list a:hover, .panel--deep .contact-list a:hover { color: var(--amber); }
.footer__logo { display: inline-block; margin-bottom: 28px; padding: 16px 18px; background: #fff; border-radius: var(--r-card); line-height: 0; }
.footer__logo img { width: 260px; max-width: 100%; height: auto; }
.footer h2 { margin-bottom: 14px; color: #fff; font-size: 1.15rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 40px; padding-block: 56px 40px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer__block li a { display: inline-block; padding-block: 8px; }
.footer .button--primary { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / .25); font-size: 1rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { display: inline-block; padding-block: 8px; }

/* ===== 14. Responsive ===== */
@media (max-width: 991px) {
	.hero__grid, .page-head--art .page-head__grid, .split { grid-template-columns: minmax(0, 1fr); }
	.hero__art { max-width: 620px; }
	.hero__art img { max-height: none; }
	.page-head__art { display: none; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
	body { font-size: 1.0625rem; }
	.hero .actions, .page-head .actions { flex-direction: column; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.pager__next { text-align: left; }
}

/* phones: the menu button stacks its icon over the word, so the logo gets most of the row */
@media (max-width: 575px) {
	.header__row { gap: 10px; }
	.header__logo img { width: 264px; }
	.header.is-stuck .header__logo img { width: 232px; }
	.menu-button { flex-direction: column; justify-content: center; gap: 10px; min-width: 62px; min-height: 58px; padding: 6px 8px; font-size: .8125rem; line-height: 1.2; }
	.menu-button__bars { margin-top: 7px; }
	/* one-line breadcrumb: long names are shortened */
	.crumbs ol { flex-wrap: nowrap; }
	.crumbs li:first-child { flex: none; }
	.crumbs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* On short screens (landscape phones, strong zoom) the header scrolls away to free space. */
@media (max-height: 520px) {
	.header, .admin-bar .header { position: static; }
	html { scroll-padding-top: 0; }
}
@media (max-width: 782px) {
	.admin-bar .header { top: 46px; }
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
	.path__dots, .path__dots::before, .path__dots::after { display: none; }
	.button, .chips a, .lang a { border: 2px solid; }
}
