/* ==========================================================================
   Comepsa 2026 — main stylesheet
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
	--navy-900: #081430;
	--navy-800: #0b1b3f;
	--navy-700: #13285a;
	--navy-500: #1e4d80;   /* accent blue, close to the Comepsa logo navy */
	--logo-grey: #bebeb6;
	--navy-200: #c9d4ea;
	--gold: #d4af37;
	--gold-ink: #85671a;   /* gold readable on white (AA) */
	--ink: #17202f;
	--muted: #556079;
	--line: #e2e6ee;
	--tint: #f3f5f9;
	--white: #fff;

	--font-head: "Poppins", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .06);
	--shadow-hover: 0 2px 4px rgba(11, 27, 63, .08), 0 18px 40px rgba(11, 27, 63, .12);
	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.icon { flex: none; }

/* Buttons & links ------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: #e0bf55; color: var(--navy-900); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--navy-800); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: #fff; }

.eyebrow { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow--light { color: var(--gold); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }

/* Top bar & header ------------------------------------------------------ */
.topbar { background: var(--navy-900); color: var(--navy-200); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__contacts { display: flex; gap: 24px; }
.topbar a { color: var(--navy-200); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; color: var(--gold); }
.topbar__cc { font-weight: 600; color: #fff; margin-right: 2px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.custom-logo-link img { max-height: 58px; width: auto; }

.site-logo { display: inline-block; line-height: 0; }
.site-logo .logo-svg { display: block; height: 62px; width: auto; }
.site-logo--light { --logo-main: #fff; }
.site-logo--light .logo-svg { height: 64px; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 10px 14px; font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--navy-800); text-decoration: none; border-radius: var(--radius-sm); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a, .site-nav .current_page_ancestor > a { color: var(--navy-500); background: var(--tint); }
.site-nav .menu-item-has-children > a::after, .site-nav .page_item_has_children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.site-nav .sub-menu, .site-nav .children { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.site-nav .sub-menu::before, .site-nav .children::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li:hover > .children, .site-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a, .site-nav .children a { font-weight: 400; padding: 10px 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 20%, rgba(44, 74, 138, .55), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .6), transparent); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 48, .94) 0%, rgba(8, 20, 48, .78) 45%, rgba(8, 20, 48, .2) 100%); z-index: 1; }
.hero--image .hero__inner { min-height: min(78vh, 720px); }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-block: clamp(72px, 10vw, 128px); }
.hero__title { color: #fff; font-size: clamp(36px, 5.2vw, 60px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.hero__text { font-size: 19px; color: var(--navy-200); max-width: 34em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { justify-self: end; width: 100%; max-width: 520px; }
.hero-art__routes path { stroke-dasharray: 6 8; animation: comepsa-dash 30s linear infinite; }
.hero-art__nodes circle[r="16"] { transform-box: fill-box; transform-origin: center; animation: comepsa-pulse 3s ease-out infinite; }
@keyframes comepsa-dash { to { stroke-dashoffset: -400; } }
@keyframes comepsa-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* Sections -------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--navy-200); }
.section--navy .section__title { color: #fff; }
.section--navy .lead { color: var(--navy-200); }
.section__title { font-size: clamp(28px, 3.4vw, 40px); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section__head .section__title { margin: 0; }
.section__intro { max-width: 480px; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.split--center { align-items: center; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.stat { background: var(--tint); border-radius: var(--radius); padding: 24px; border-left: 3px solid var(--gold); }
.stat dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.stat dd { margin: 0; font-family: var(--font-head); font-size: 30px; font-weight: 600; color: var(--navy-800); }

/* Field cards ----------------------------------------------------------- */
.field-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.field-grid > li { grid-column: span 2; }
.field-grid > li:nth-child(3n+1):nth-last-child(2), .field-grid > li:nth-child(3n+2):last-child { grid-column: span 3; }
.field-grid > li:nth-child(3n+1):nth-last-child(2) .field-card__media img, .field-grid > li:nth-child(3n+2):last-child .field-card__media img { aspect-ratio: 2 / 1; }
.field-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.field-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; color: inherit; }
.field-card__media { position: relative; display: block; overflow: hidden; }
.field-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.field-card:hover .field-card__media img { transform: scale(1.04); }
.field-card__badge { position: absolute; left: 20px; bottom: -22px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); box-shadow: 0 6px 16px rgba(8, 20, 48, .25); z-index: 1; }
.field-card__media { overflow: visible; }
.field-card__media img { border-radius: var(--radius) var(--radius) 0 0; }
.field-card__media + .field-card__body { padding-top: 38px; }
.field-card__icon { margin: 28px 28px 0; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: var(--gold); }
.field-card__icon .icon { width: 28px; height: 28px; }
.field-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex: 1; }
.field-card__title { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy-800); line-height: 1.25; }
.field-card__text { color: var(--muted); font-size: 15.5px; flex: 1; }
.field-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--navy-500); margin-top: 6px; }
.field-card__more .icon { transition: transform .2s; }
.field-card:hover .field-card__more .icon { transform: translateX(4px); }

/* Entities (navy band) -------------------------------------------------- */
.entities { display: grid; gap: 16px; }
.entity { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border: 1px solid rgba(201, 212, 234, .18); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.entity h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.entity p { margin: 0; font-size: 15px; }
.entity__flag { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy-900); background: var(--gold); }

/* Group ----------------------------------------------------------------- */
.group-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.group-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.group-card:hover { border-color: var(--gold); box-shadow: var(--shadow); color: inherit; }
.group-card strong { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-size: 18px; }
.group-card span { color: var(--muted); font-size: 15px; flex: 1; }
.group-card em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy-500); }
.group-card em .icon { width: 14px; height: 14px; }

/* CTA ------------------------------------------------------------------- */
.cta { background: var(--tint); padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta__title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; max-width: 36em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: var(--navy-800); border-color: var(--navy-800); }
.cta .btn--ghost:hover { background: var(--navy-800); color: #fff; }

/* Inner pages ----------------------------------------------------------- */
.page-banner { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 400px at 90% 0%, rgba(44, 74, 138, .55), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner--image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 20, 48, .9), rgba(8, 20, 48, .45)); }
.page-banner__inner { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }
.page-banner__parent { display: inline-block; font-family: var(--font-head); font-size: 14px; color: var(--gold); text-decoration: none; margin-bottom: 14px; }
.page-banner__parent:hover { color: #fff; }
.page-banner__title { color: #fff; font-size: clamp(34px, 4.6vw, 52px); margin: 0; max-width: 18em; }
.page-banner__text { color: var(--navy-200); font-size: 19px; max-width: 40em; margin: 18px 0 0; }

.layout-aside { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.aside { position: sticky; top: 110px; background: var(--tint); border-radius: var(--radius); padding: 24px; }
.aside__title { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); margin-bottom: 12px; }
.aside__list { list-style: none; margin: 0; padding: 0; }
.aside__list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 15px; }
.aside__list a:hover { background: #fff; }
.aside__list .icon { color: var(--navy-500); }
.aside__list .is-current a { background: var(--navy-800); color: #fff; }
.aside__list .is-current .icon { color: var(--gold); }

/* Entry content (block editor output) ----------------------------------- */
.entry { font-size: 17.5px; }
.entry > * + * { margin-top: 0; }
.entry h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.6em; }
.entry h3 { font-size: 21px; margin-top: 1.4em; }
.entry > :first-child { margin-top: 0; }
.entry .is-style-lead { font-size: 21px; line-height: 1.55; color: var(--navy-800); font-family: var(--font-head); font-weight: 400; }
.entry--intro { max-width: 760px; margin-bottom: 48px; }
.entry ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.entry ul:not(.is-style-checks) li { margin-bottom: .45em; }
.entry ul:not(.is-style-checks) li::marker { color: var(--gold-ink); }
.entry .is-style-checks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 1.4em; }
.entry .is-style-checks li { position: relative; padding: 14px 18px 14px 50px; background: var(--tint); border-radius: var(--radius-sm); }
.entry .is-style-checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.entry .partner-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 2em; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); }
.entry .partner-box span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-ink); font-weight: 600; }
.entry .partner-box strong { font-family: var(--font-head); color: var(--navy-800); }
.entry .partner-box a { margin-left: auto; }
.entry img { border-radius: var(--radius-sm); }
.entry blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }

.post-item { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.post-item__title a { text-decoration: none; color: var(--navy-800); }
.post-item__meta { color: var(--muted); font-size: 14px; }

/* Offices --------------------------------------------------------------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offices--count-1 { grid-template-columns: 1fr; }
.offices--count-2 { grid-template-columns: repeat(2, 1fr); }
.offices--count-4 { grid-template-columns: repeat(2, 1fr); }
.office__role { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.office__name { font-size: 19px; margin-bottom: 14px; }
.office__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.office__list li { display: flex; gap: 10px; align-items: flex-start; }
.office__list .icon { width: 16px; height: 16px; margin-top: 4px; }
.office__list a { text-decoration: none; }
.office__list small { opacity: .7; }

.offices--light .office { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.offices--light .office__role { color: var(--gold-ink); }
.offices--light .office__list .icon { color: var(--navy-500); }
.offices--light .office__list a { color: var(--ink); }
.offices--light .office__list a:hover { color: var(--navy-500); }

.offices--dark .office__role { color: var(--gold); }
.offices--dark .office__name { color: #fff; font-size: 17px; }
.offices--dark .office__list { font-size: 14.5px; }
.offices--dark .office__list .icon { color: var(--gold); }
.offices--dark .office__list a { color: var(--navy-200); }
.offices--dark .office__list a:hover { color: #fff; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--navy-200); padding-top: 72px; }
.site-footer__top { display: grid; grid-template-columns: 280px 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(201, 212, 234, .14); }
.site-footer__brand .site-logo { margin-bottom: 20px; }
.site-footer__brand p { font-size: 14.5px; }
.site-footer__legal { padding-top: 22px; font-size: 13px; color: rgba(201, 212, 234, .7); }
.site-footer__legal p { margin: 0 0 4px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 24px; font-size: 14px; }
.site-footer__bottom p { margin: 0; margin-right: auto; }
.footer-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.site-footer__bottom a { color: var(--navy-200); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

/* Privacy notice ------------------------------------------------------ */
.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(8, 20, 48, .97); color: var(--navy-200); border-top: 1px solid rgba(212, 175, 55, .4); box-shadow: 0 -8px 24px rgba(8, 20, 48, .2); }
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.cookie-notice p { margin: 0; font-size: 14.5px; }
.cookie-notice a { color: #fff; margin-left: 6px; }
.cookie-notice .btn { padding: 10px 26px; flex: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
	.field-grid { grid-template-columns: repeat(2, 1fr); }
	.field-grid > li, .field-grid > li:nth-child(3n+1):nth-last-child(2), .field-grid > li:nth-child(3n+2):last-child { grid-column: auto; }
	.group-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.hero--image::before { background: rgba(8, 20, 48, .8); }
	.hero--image .hero__inner { min-height: 0; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); max-height: calc(100vh - 80px); overflow-y: auto; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 20px; }
	.site-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
	.site-nav a:hover { background: none; }
	.site-nav .sub-menu, .site-nav .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.site-nav .menu-item-has-children > a::after, .site-nav .page_item_has_children > a::after { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { justify-self: center; max-width: 380px; order: -1; margin-bottom: -20px; }
	.split, .layout-aside { grid-template-columns: 1fr; }
	.aside { position: static; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.cta__inner { flex-direction: column; align-items: flex-start; }
	.offices, .offices--count-2, .offices--count-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.cookie-notice__inner { flex-direction: column; align-items: stretch; text-align: center; }
	.site-logo .logo-svg { height: 48px; }
	.topbar__claim { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__contacts { gap: 14px; flex-wrap: wrap; justify-content: center; padding-block: 6px; }
	.topbar__contacts a:last-child { display: none; }
	.field-grid, .group-grid, .offices, .offices--count-2, .offices--count-4 { grid-template-columns: 1fr; }
	.hero__visual { max-width: 280px; }
	.stat { padding: 18px; }
	.stat dd { font-size: 22px; }
	.site-footer__bottom p { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .cta, .site-footer, .aside { display: none; }
	.hero, .page-banner { background: none; color: #000; }
	.hero__title, .page-banner__title { color: #000; }
}
