@charset "UTF-8";
/* ==========================================================================
   Amanat City — main.css
   Sections: tokens → reset → base → layout → header → footer → components
             → home sections → content → utilities → project page → responsive
   ========================================================================== */

/* ---------- Fonts ----------
   Headings: brand Grtsk Tera (local, upright weights 100–700; covers basic Cyrillic). Unbounded from
   Google Fonts (inc/enqueue.php) stays next in the stack for glyphs Grtsk lacks (Kyrgyz Ң Ө Ү).
   Body: Manrope from Google Fonts.
*/
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Thin.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Thin.woff') format('woff');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Extralight.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Extralight.woff') format('woff');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Light.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Regular.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Medium.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Medium.woff') format('woff');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Semibold.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Semibold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Grtsk Tera';
	src: url('../fonts/grtsk-tera/GrtskTera-Bold.woff2') format('woff2'),
		url('../fonts/grtsk-tera/GrtskTera-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Accent serif (italic headings on the corporate culture page). Heuristica, SIL OFL — assets/fonts/heuristica/LICENSE.txt. */
@font-face {
	font-family: 'Heuristica';
	src: url('../fonts/heuristica/Heuristica-Regular_0.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Heuristica';
	src: url('../fonts/heuristica/Heuristica-Italic_0.otf') format('opentype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Heuristica';
	src: url('../fonts/heuristica/Heuristica-Bold_0.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Heuristica';
	src: url('../fonts/heuristica/Heuristica-BoldItalic_0.otf') format('opentype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--color-primary: #409955;
	--color-primary-hover: #348046;
	--color-primary-soft: #cbe4cf;
	--color-dark: #0a0914;
	--color-dark-2: #1d1d25;
	--color-text: #14131c;
	--color-muted: #8a8a93;
	--color-border: #e3e3e6;
	--color-bg: #f5f5f5;
	--color-surface: #ffffff;
	--color-field: #f3f3f4;

	--font-base: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-heading: 'Grtsk Tera', 'Unbounded', var(--font-base);
	--font-accent: 'Heuristica', Georgia, 'Times New Roman', serif;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-xl: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
	--fs-h3: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
	--fs-h2: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
	--fs-h1: min(3em, 9vw); /* 3em; scales down on narrow screens so long words fit */

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2.5rem;
	--space-xl: clamp(3.5rem, 2.5rem + 3vw, 5rem);

	--container: 85rem;
	--container-narrow: 50rem;
	--gutter: clamp(1rem, 0.25rem + 2.5vw, 2.5rem);
	--gap: 1.25rem;
	--radius-sm: 0.5rem;
	--radius: 1rem;
	--radius-lg: 1.5rem;
	--radius-pill: 999px;
	--header-h: 5rem;
	--transition: 0.25s ease;
	--shadow: 0 10px 30px rgb(10 9 20 / 0.08);
}
/* Kyrgyz: Grtsk Tera has no ө ү ң (they fall back to another font mid-word) — headings are set in Montserrat
   (loaded only on the Kyrgyz version, see inc/enqueue.php). */
:root:lang(ky) { --font-heading: 'Montserrat', var(--font-base); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
/* Wide screens: the layout is designed at 1440px and sized in rem. Above it the root size grows
   ~1px per 480px of width (16px @1440 → 17px @1920 → ~18.3px @2560, capped at 19px), so type,
   spacing and containers scale together. Percentages keep the visitor's browser font setting. */
@media (min-width: 1441px) {
	html { font-size: clamp(100%, 81.25% + 0.2083vw, 118.75%); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, picture, video, svg, iframe { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
fieldset { border: 0; padding: 0; min-width: 0; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
body {
	font-family: var(--font-base);
	font-size: var(--fs-base);
	line-height: 1.5;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.is-menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.2;
	font-weight: 500;
	color: var(--color-text);
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ---------- Layout ---------- */
.ac-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.ac-container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.ac-main { flex: 1; overflow-x: clip; /* zooming / sliding-in elements must never add a sideways scroll */ }
.ac-section { padding-block: var(--space-xl) 0; }
.ac-section--top { padding-top: var(--space-lg); }
.ac-section--alt { background: var(--color-surface); }
.ac-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	margin-bottom: var(--space-lg);
}
.ac-section__head .ac-title { margin-bottom: 0; }
.ac-section__more { display: flex; justify-content: center; margin-top: var(--space-lg); }
.ac-section__more:not(:has(:not([hidden]))) { display: none; }

.ac-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: var(--space-md);
}
.ac-cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

.ac-title { font-size: var(--fs-h2); margin-bottom: var(--space-lg); }
.ac-title--sm { font-size: var(--fs-xl); margin-bottom: var(--space-md); }
.ac-meta { display: block; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-accent { color: var(--color-primary); }

/* Makes the whole positioned parent card clickable via its main link. */
.ac-stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* ---------- Header ---------- */
.ac-header {
	position: sticky;
	top: 0;
	z-index: 100;
	color: var(--color-text);
	background: var(--color-surface);
	transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.admin-bar .ac-header { top: var(--wp-admin--admin-bar--height, 0); }
.ac-header--overlay {
	position: fixed;
	inset-inline: 0;
	color: #fff;
	background: transparent;
}
.ac-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-height: var(--header-h);
}
.ac-header__actions { display: flex; align-items: center; gap: var(--space-md); margin-left: auto; }

.ac-logo { display: inline-flex; align-items: center; flex-shrink: 0; color: inherit; text-decoration: none; }
.ac-logo__img { width: auto; max-height: 2.25rem; }
/* The wordmark sits in the upper part of the logo image (tagline below), so the centred logo reads high:
   drop it until «AMANAT CITY» is on the line of the menu items (desktop, where the menu is in the row). */
@media (min-width: 1101px) {
	.ac-header .ac-logo { translate: 0 13%; }
}
.ac-logo__text { font-family: var(--font-heading); font-weight: 400; font-size: 1.125rem; text-transform: uppercase; }
.ac-logo__img--light { display: none; }
.ac-header--overlay .ac-logo:has(.ac-logo__img--light) .ac-logo__img--dark { display: none; }
.ac-header--overlay .ac-logo__img--light { display: block; }
.ac-header--overlay .ac-logo:not(:has(.ac-logo__img--light)) .ac-logo__img--dark { filter: brightness(0) invert(1); }

.ac-header__toggle {
	display: none;
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
}
.ac-header__toggle-bar,
.ac-header__toggle-bar::before,
.ac-header__toggle-bar::after {
	position: absolute;
	left: 0.625rem;
	width: 1.5rem;
	height: 2px;
	background: currentColor;
	transition: transform var(--transition), opacity var(--transition);
}
.ac-header__toggle-bar { top: 1.3125rem; }
.ac-header__toggle-bar::before,
.ac-header__toggle-bar::after { content: ''; left: 0; }
.ac-header__toggle-bar::before { top: -0.4375rem; }
.ac-header__toggle-bar::after { top: 0.4375rem; }
.ac-header__toggle[aria-expanded='true'] .ac-header__toggle-bar { background: transparent; }
.ac-header__toggle[aria-expanded='true'] .ac-header__toggle-bar::before { transform: translateY(0.4375rem) rotate(45deg); }
.ac-header__toggle[aria-expanded='true'] .ac-header__toggle-bar::after { transform: translateY(-0.4375rem) rotate(-45deg); }

/* ---------- Nav ---------- */
.ac-nav { margin-inline: auto; }
.ac-nav__list { display: flex; gap: var(--space-md); }
.ac-nav__list a { color: inherit; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.ac-nav__list a:hover,
.ac-nav__list .current-menu-item > a:not([href*='#']) { color: var(--color-primary); }
.ac-nav .ac-nav__pick { display: none; }
.ac-nav__list .menu-item-has-children { position: relative; }

/* Dropdowns: frosted panel that rises in; links stagger in after it. Hiding waits a moment (--dd-hide-delay),
   so the pointer can cross the gap / drift off the edge without the panel snapping shut. */
.ac-nav__list :is(.sub-menu, .ac-nav__mega) {
	--dd-hide-delay: 0.12s;
	position: absolute;
	top: calc(100% + 0.875rem);
	left: -1rem;
	z-index: 1;
	padding: 0.5rem;
	list-style: none;
	color: var(--color-text);
	background: rgb(255 255 255 / 0.94);
	-webkit-backdrop-filter: blur(20px) saturate(1.6);
	backdrop-filter: blur(20px) saturate(1.6);
	border: 1px solid rgb(10 9 20 / 0.06);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgb(10 9 20 / 0.04), 0 24px 60px -16px rgb(10 9 20 / 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem) scale(0.98);
	transform-origin: top left;
	transition: opacity 0.3s var(--ease-out) var(--dd-hide-delay), transform 0.4s var(--ease-out) var(--dd-hide-delay), visibility 0s linear calc(0.3s + var(--dd-hide-delay));
}
/* Invisible bridge over the gap between the menu item and the panel. */
.ac-nav__list :is(.sub-menu, .ac-nav__mega)::before { content: ''; position: absolute; inset: -0.875rem 0 100%; }
.ac-nav__list .menu-item-has-children:is(:hover, :focus-within) > :is(.sub-menu, .ac-nav__mega) {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.ac-nav__list .sub-menu { min-width: 16rem; }
.ac-nav__list .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: 0.75rem 1rem;
	font-weight: 500;
	border-radius: 0.625rem;
	transition: background var(--transition), color var(--transition);
}
/* Arrow that slides in on hover (chevron-right as a mask, so it takes the link colour). */
.ac-nav__list .sub-menu a::after {
	content: '';
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url('../images/icons/chevron-right.svg') center / contain no-repeat;
	mask: url('../images/icons/chevron-right.svg') center / contain no-repeat;
	opacity: 0;
	transform: translateX(-0.5rem);
	transition: opacity var(--transition), transform var(--transition);
}
.ac-nav__list .sub-menu a:is(:hover, :focus-visible) { background: var(--color-field); }
.ac-nav__list .sub-menu a:is(:hover, :focus-visible)::after { opacity: 1; transform: none; }
.ac-nav__list .sub-menu .current-menu-item > a { color: var(--color-primary); background: rgb(64 153 85 / 0.08); }
.ac-nav__list .sub-menu > li,
.ac-nav__projects > li { opacity: 0; transform: translateY(0.375rem); transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out); }
.ac-nav__list .menu-item-has-children:is(:hover, :focus-within) :is(.sub-menu, .ac-nav__projects) > li { opacity: 1; transform: none; }
.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li:nth-child(2) { transition-delay: 0.04s; }
.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li:nth-child(3) { transition-delay: 0.08s; }
.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li:nth-child(4) { transition-delay: 0.12s; }
.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li:nth-child(5) { transition-delay: 0.16s; }
.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li:nth-child(n + 6) { transition-delay: 0.2s; }

/* «Наши проекты»: two columns of projects with thumbnails + «Все проекты». */
.ac-nav__mega { width: min(42rem, calc(100vw - 2 * var(--gutter))); padding: 0.75rem; }
.ac-nav__projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; list-style: none; }
.ac-nav__projects > [aria-hidden='true'] { display: none; } /* drift copies, mobile only */
.ac-nav__list .ac-nav__project-link {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem;
	white-space: normal;
	border-radius: 0.75rem;
	transition: background var(--transition), color var(--transition);
}
.ac-nav__project-media {
	flex: none;
	width: 4rem;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-field);
	border-radius: 0.625rem;
}
.ac-nav__project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.ac-nav__project-body { display: grid; gap: 0.125rem; min-width: 0; }
.ac-nav__project-title { font-size: var(--fs-base); font-weight: 600; color: var(--color-text); transition: color var(--transition); }
.ac-nav__project-meta { font-size: var(--fs-xs); color: var(--color-muted); }
.ac-nav__list a.ac-nav__project-link:is(:hover, :focus-visible) { background: var(--color-field); }
.ac-nav__list a.ac-nav__project-link:is(:hover, :focus-visible) .ac-nav__project-title { color: var(--color-primary); }
.ac-nav__project-link:is(:hover, :focus-visible) .ac-nav__project-media img { transform: scale(1.08); }
.ac-nav__project.is-soon .ac-nav__project-media img { filter: blur(3px) grayscale(0.3); transform: scale(1.1); }
.ac-nav__project.is-soon .ac-nav__project-title { color: var(--color-muted); }
.ac-nav__list .ac-nav__mega-all {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.5rem;
	padding: 0.875rem 0.5rem 0.25rem;
	font-weight: 600;
	color: var(--color-primary);
	border-top: 1px solid var(--color-border);
}
.ac-nav__mega-all svg { width: 1.125rem; height: 1.125rem; transition: transform var(--transition); }
.ac-nav__mega-all:hover svg { transform: translateX(0.25rem); }

@media (prefers-reduced-motion: reduce) {
	.ac-nav__list :is(.sub-menu, .ac-nav__mega),
	.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li { transform: none; }
}
.ac-nav__list .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 0.25rem; }
.ac-nav__chevron { display: inline-flex; }
.ac-nav__chevron svg { width: 0.875rem; height: 0.875rem; transition: transform var(--transition); }
.ac-nav__list .menu-item-has-children:is(:hover, :focus-within) > a .ac-nav__chevron svg { transform: rotate(180deg); }

/* ---------- Language switcher ---------- */
.ac-lang { position: relative; font-size: var(--fs-sm); }
.ac-lang__current { display: flex; align-items: center; gap: 2px; padding: 0.25rem 0; }
.ac-lang__current svg { width: 1rem; height: 1rem; transition: transform var(--transition); }
.ac-lang[open] .ac-lang__current svg { transform: rotate(180deg); }
.ac-lang__list {
	position: absolute;
	top: 100%;
	right: 0;
	padding: 0.25rem;
	background: var(--color-surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.ac-lang__list a { display: block; padding: 0.25rem 0.75rem; color: var(--color-text); text-decoration: none; }
.ac-lang__list a:hover { color: var(--color-primary); }
.ac-lang__list a[aria-current] { color: var(--color-primary); }

/* City switcher reuses the language dropdown */
.ac-city .ac-lang__current { white-space: nowrap; }
.ac-city .ac-lang__list { min-width: 10rem; }
.ac-city .ac-lang__list a { white-space: nowrap; }

/* ---------- Buttons & links ---------- */
.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3.25rem;
	padding: 0.875rem 1.5rem;
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-align: center;
	color: var(--color-text);
	background: transparent;
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	text-decoration: none;
	transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.ac-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.ac-btn--primary { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.ac-btn--primary:hover { color: #fff; background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.ac-btn--outline { color: var(--color-text); border-color: var(--color-text); }
.ac-btn--outline:hover { color: #fff; background: var(--color-text); }
.ac-btn--block { width: 100%; }
.ac-btn:disabled { opacity: 0.6; cursor: progress; }

.ac-link {
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--color-primary);
	text-decoration: none;
}
.ac-link:hover { color: var(--color-primary-hover); }

/* ---------- Form controls ---------- */
.ac-field {
	width: 100%;
	height: 3.25rem;
	padding: 0 1rem;
	font-size: var(--fs-base);
	background: var(--color-field);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	appearance: none;
	transition: border-color var(--transition);
}
.ac-field::placeholder { color: var(--color-muted); }
.ac-field:focus { outline: none; border-color: var(--color-primary); }
.ac-field--white { background: var(--color-surface); }
.ac-field.is-invalid { border-color: #d14343; }

.ac-select { position: relative; }
.ac-select .ac-field { padding-right: 2.75rem; cursor: pointer; }
.ac-select select:invalid,
.ac-select select:has(option[value='']:checked) { color: var(--color-muted); }
.ac-select svg {
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--color-primary);
	transform: translateY(-50%);
	pointer-events: none;
}

.ac-check { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.35; color: var(--color-muted); cursor: pointer; }
.ac-check input { position: absolute; opacity: 0; width: 1.25rem; height: 1.25rem; }
.ac-check__box {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: transparent;
	background: var(--color-field);
	border-radius: 4px;
	transition: background var(--transition), color var(--transition);
}
.ac-check__box svg { width: 0.875rem; height: 0.875rem; stroke-width: 3; }
.ac-check input:checked + .ac-check__box { color: #fff; background: var(--color-primary); }
.ac-check input:focus-visible + .ac-check__box { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.ac-check input.is-invalid + .ac-check__box { box-shadow: 0 0 0 1px #d14343; }
.ac-check a { color: var(--color-primary); text-decoration: none; position: relative; z-index: 1; }
.ac-check--dark { color: rgb(255 255 255 / 0.6); }
.ac-check--dark .ac-check__box { background: rgb(255 255 255 / 0.12); }
.ac-check--dark input:checked + .ac-check__box { color: var(--color-dark); background: #fff; }
.ac-check--dark a,
.ac-check--dark b { color: #fff; font-weight: 500; }

.ac-form { display: grid; gap: 0.75rem; }
.ac-form .ac-btn { margin-top: 0.5rem; }
.ac-form .ac-btn--outline:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.ac-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Field + its validation message (.ac-form__control is one grid cell in .ac-form--grid). */
.ac-form__control { display: grid; gap: 0.375rem; }
.ac-form__error { padding-left: 1rem; font-size: var(--fs-xs); line-height: 1.3; color: #d14343; animation: ac-form-error 0.25s var(--ease-out); }
@keyframes ac-form-error { from { opacity: 0; transform: translateY(-0.25rem); } }
.ac-form__status { font-size: var(--fs-sm); }
.ac-form__status:empty { display: none; }
.ac-form__status.is-error { color: #d14343; }
.ac-form__status.is-success { color: var(--color-primary); }

/* ---------- Chips, tabs, tags ---------- */
.ac-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ac-chip {
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	font-size: var(--fs-sm);
	color: var(--color-muted);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.ac-chip:hover { color: var(--color-text); border-color: var(--color-text); }
.ac-chip.is-active { color: #fff; background: var(--color-dark-2); border-color: var(--color-dark-2); }

.ac-tabs { display: inline-flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--color-border); }
.ac-tabs__item { position: relative; padding-bottom: 0.5rem; font-size: var(--fs-lg); color: var(--color-muted); cursor: pointer; transition: color var(--transition); }
.ac-tabs__item input { position: absolute; opacity: 0; }
.ac-tabs__item::after { content: ''; position: absolute; inset: auto 0 -2px; height: 3px; background: var(--color-text); border-radius: 3px; transform: scaleX(0); transition: transform 0.35s ease; }
.ac-tabs__item:hover { color: var(--color-text); }
.ac-tabs__item:has(input:checked) { color: var(--color-text); }
.ac-tabs__item:has(input:checked)::after { transform: scaleX(1); }
.ac-filter__title { transition: opacity var(--transition); }
.ac-filter__title.is-switching { opacity: 0; }
.ac-tabs__item:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.ac-tags { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ac-tag {
	padding: 0.375rem 1rem;
	font-size: var(--fs-sm);
	color: var(--color-text);
	background: rgb(255 255 255 / 0.75);
	border-radius: var(--radius-pill);
	backdrop-filter: blur(8px);
}

/* ---------- Panels & dialog ---------- */
.ac-panel { padding: 1.25rem; background: var(--color-surface); border-radius: var(--radius); }
.ac-panel--dark { color: #fff; background: var(--color-dark); }

.ac-dialog {
	width: min(45rem, calc(100% - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: var(--space-md);
	margin: auto;
	color: var(--color-text);
	background: var(--color-surface);
	border: 0;
	border-radius: var(--radius-lg);
}
.ac-dialog::backdrop { background: rgb(10 9 20 / 0.6); }

/* Dialog open/close: the box rises from a soft blur, the backdrop dims and blurs the page,
   the content follows with a short stagger. Closing plays the same motion back, faster. */
.ac-dialog,
.ac-dialog::backdrop {
	transition-behavior: allow-discrete;
}
.ac-dialog {
	opacity: 0;
	translate: 0 2rem;
	scale: 0.96;
	filter: blur(8px);
	transition:
		opacity 0.3s ease,
		translate 0.35s cubic-bezier(0.4, 0, 1, 1),
		scale 0.35s cubic-bezier(0.4, 0, 1, 1),
		filter 0.3s ease,
		display 0.35s,
		overlay 0.35s;
}
.ac-dialog[open] {
	opacity: 1;
	translate: 0;
	scale: 1;
	filter: blur(0);
	transition:
		opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		scale 0.8s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
		display 0.8s,
		overlay 0.8s;
}
@starting-style {
	.ac-dialog[open] { opacity: 0; translate: 0 2rem; scale: 0.96; filter: blur(8px); }
}
.ac-dialog::backdrop {
	opacity: 0;
	backdrop-filter: blur(0);
	transition: opacity 0.35s ease, backdrop-filter 0.35s ease, display 0.35s, overlay 0.35s;
}
.ac-dialog[open]::backdrop {
	opacity: 1;
	backdrop-filter: blur(6px);
	transition: opacity 0.6s ease, backdrop-filter 0.6s ease, display 0.6s, overlay 0.6s;
}
@starting-style {
	.ac-dialog[open]::backdrop { opacity: 0; backdrop-filter: blur(0); }
}
.ac-dialog[open] > :not(.ac-dialog__close) { animation: ac-dialog-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ac-dialog[open] > :nth-child(2) { animation-delay: 0.12s; }
.ac-dialog[open] > :nth-child(3) { animation-delay: 0.18s; }
.ac-dialog[open] > :nth-child(4) { animation-delay: 0.24s; }
.ac-dialog[open] > :nth-child(n + 5) { animation-delay: 0.3s; }
@keyframes ac-dialog-in {
	from { opacity: 0; translate: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-dialog,
	.ac-dialog[open],
	.ac-dialog::backdrop,
	.ac-dialog[open]::backdrop { transition: none; }
	.ac-dialog[open] > * { animation: none; }
}
.ac-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; background: var(--color-surface); border-radius: 50%; }
.ac-dialog__video { margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-md); overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ac-dialog__video iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ac-dialog__title { margin-bottom: 0.25rem; font-size: var(--fs-xl); }
.ac-dialog .ac-prose { margin-top: var(--space-sm); }

/* Floating contact menu: a pulsing button; a click fans the contact buttons out above it */
.ac-fab {
	--fab-size: 4rem;
	position: fixed;
	right: var(--gutter);
	bottom: var(--gutter);
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.75rem;
}
.ac-fab__toggle {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--fab-size);
	height: var(--fab-size);
	color: #fff;
	background: var(--color-primary);
	border-radius: 50%;
	box-shadow: 0 0 0 0.5rem rgb(64 153 85 / 0.25);
	transition: transform var(--transition), background var(--transition), box-shadow 0.4s var(--ease-out);
}
.ac-fab__toggle:hover { transform: scale(1.06); }
.ac-fab__toggle::before,
.ac-fab__toggle::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: var(--color-primary);
	animation: ac-fab-pulse 2.4s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
	pointer-events: none;
}
.ac-fab__toggle::after { animation-delay: 1.2s; }
@keyframes ac-fab-pulse {
	0% { opacity: 0.45; scale: 1; }
	100% { opacity: 0; scale: var(--fab-pulse, 1.9); }
}
.ac-fab__glyph { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 0.3s ease, rotate 0.45s var(--ease-out), scale 0.45s var(--ease-out); }
.ac-fab__glyph svg { width: 1.75rem; height: 1.75rem; }
.ac-fab__glyph--close { opacity: 0; rotate: -90deg; scale: 0.5; }

.ac-fab.is-open .ac-fab__toggle { background: var(--color-dark); box-shadow: 0 0 0 0.5rem rgb(10 9 20 / 0.12); }
.ac-fab.is-open .ac-fab__toggle::before,
.ac-fab.is-open .ac-fab__toggle::after { animation: none; opacity: 0; }
.ac-fab.is-open .ac-fab__glyph--open { opacity: 0; rotate: 90deg; scale: 0.5; }
.ac-fab.is-open .ac-fab__glyph--close { opacity: 1; rotate: none; scale: 1; }

/* Contact buttons: the one nearest the toggle appears first */
.ac-fab__list { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 0.625rem; padding-right: calc((var(--fab-size) - 3.25rem) / 2); pointer-events: none; }
.ac-fab__entry {
	opacity: 0;
	translate: 0 1.5rem;
	scale: 0.4;
	transform-origin: right center;
	transition: opacity 0.25s ease calc((var(--n, 6) - var(--i)) * 25ms), translate 0.3s ease calc((var(--n, 6) - var(--i)) * 25ms), scale 0.3s ease calc((var(--n, 6) - var(--i)) * 25ms);
}
.ac-fab.is-open .ac-fab__list { pointer-events: auto; }
.ac-fab.is-open .ac-fab__entry {
	opacity: 1;
	translate: none;
	scale: 1;
	transition: opacity 0.3s ease calc(var(--i) * 60ms), translate 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 60ms), scale 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 60ms);
}
.ac-fab__item { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text); text-decoration: none; }
.ac-fab__icon {
	--fab-color: var(--color-primary);
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	color: #fff;
	background: var(--fab-color);
	border-radius: 50%;
	box-shadow: 0 0.5rem 1.25rem rgb(10 9 20 / 0.18);
	transition: transform var(--transition);
}
.ac-fab__icon svg { width: 1.375rem; height: 1.375rem; }
.ac-fab__item:hover .ac-fab__icon,
.ac-fab__item:focus-visible .ac-fab__icon { transform: scale(1.1); }
.ac-fab__label {
	padding: 0.375rem 0.875rem;
	font-size: var(--fs-sm);
	white-space: nowrap;
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	box-shadow: 0 0.25rem 1rem rgb(10 9 20 / 0.12);
}
.ac-fab__item--whatsapp .ac-fab__icon { --fab-color: #25d366; }
.ac-fab__item--telegram .ac-fab__icon { --fab-color: #229ed9; }
.ac-fab__item--facebook .ac-fab__icon { --fab-color: #1877f2; }
.ac-fab__item--youtube .ac-fab__icon { --fab-color: #ff0033; }
.ac-fab__item--linkedin .ac-fab__icon { --fab-color: #0a66c2; }
.ac-fab__item--instagram .ac-fab__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ac-fab__item--phone .ac-fab__icon,
.ac-fab__item--mail .ac-fab__icon { --fab-color: var(--color-dark); }

@media (prefers-reduced-motion: reduce) {
	.ac-fab__toggle::before,
	.ac-fab__toggle::after { animation: none; opacity: 0; }
	.ac-fab__entry,
	.ac-fab.is-open .ac-fab__entry { transition: opacity 0.2s ease; translate: none; scale: 1; }
}

/* ==========================================================================
   Home sections
   ========================================================================== */

/* ---------- Hero ---------- */
/* Image fills the viewport; feature tiles straddle its bottom edge, so half of them shows on first load. */
.ac-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: calc(100vh + 3.625rem); min-height: calc(100svh + 3.625rem); color: #fff; }
.ac-hero__bg { position: absolute; inset: 0 0 3.625rem; z-index: -1; overflow: hidden; background: var(--color-dark); }
.ac-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ac-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 9 20 / 0.55), rgb(10 9 20 / 0.15) 70%), linear-gradient(180deg, rgb(10 9 20 / 0.45), transparent 25%); }
.ac-hero__inner {
	display: grid;
	grid-template-columns: 1fr minmax(0, 25rem);
	align-items: center;
	flex: 1;
	gap: var(--space-lg);
	padding-top: calc(var(--header-h) + var(--space-md));
	padding-bottom: calc(3.625rem + var(--space-xl));
}
.ac-hero__title { margin-bottom: var(--space-lg); font-size: var(--fs-h1); color: inherit; }
.ac-hero__content .ac-btn { min-height: 3.25rem; }

.ac-lead {
	position: relative;
	align-self: center;
	padding: var(--space-md);
	color: var(--color-text);
	background: var(--color-surface);
	border-radius: var(--radius-lg);
}
.ac-lead__title { margin-bottom: 0.75rem; font-size: var(--fs-xl); }
.ac-lead__text { margin-bottom: var(--space-md); font-size: var(--fs-sm); color: var(--color-muted); }

.ac-features { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: -7.25rem; }
.ac-features__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 7.25rem;
	padding: var(--space-md) var(--space-sm);
	color: var(--color-text);
	text-align: center;
	background: var(--color-surface);
	border-radius: var(--radius);
}
.ac-features__icon { color: var(--color-primary); }
.ac-features__icon svg { width: 2rem; height: 2rem; }
.ac-features__text { font-size: var(--fs-lg); font-weight: 500; }

/* ---------- Flat filter ---------- */
.ac-filter__title { margin-bottom: var(--space-md); }
.ac-filter__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
	align-items: end;
	gap: var(--gap);
}
.ac-filter__label { display: block; margin-bottom: 0.75rem; padding: 0; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-filter__submit { min-height: 3.25rem; white-space: nowrap; }

.ac-rooms { display: flex; gap: 0.25rem; }
.ac-rooms__item { position: relative; cursor: pointer; }
.ac-rooms__item input { position: absolute; opacity: 0; }
.ac-rooms__item span {
	display: grid;
	place-items: center;
	min-width: 3.25rem;
	height: 3.25rem;
	padding: 0 1rem;
	font-size: var(--fs-sm);
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	transition: background var(--transition), color var(--transition);
}
.ac-rooms__item:hover span { color: var(--color-primary); }
.ac-rooms__item input:checked + span { color: #fff; background: var(--color-dark-2); }
.ac-rooms__item input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
[data-ac-filter-rooms] { transition: opacity var(--transition); }
.ac-filter.is-no-rooms [data-ac-filter-rooms] { opacity: 0.4; pointer-events: none; }

.ac-range { position: relative; background: var(--color-surface); border-radius: var(--radius-sm); }
.ac-range__values { display: grid; grid-template-columns: 1fr 1fr; height: 3.25rem; }
.ac-range__value { display: flex; align-items: center; gap: 0.375rem; padding: 0 1rem; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-range__value + .ac-range__value { border-left: 1px solid var(--color-border); margin-block: 0.75rem; }
.ac-range__value input { width: 100%; min-width: 0; padding: 0; color: var(--color-text); background: none; border: 0; appearance: textfield; }
.ac-range__value input::-webkit-inner-spin-button { appearance: none; }
.ac-range__value input:focus { outline: none; }
.ac-range__value:focus-within { box-shadow: inset 0 -2px var(--color-primary); }
.ac-range__track { position: absolute; inset: auto 0.875rem 0; height: 2px; }
.ac-range__fill { position: absolute; inset: 0 var(--to, 0%) 0 var(--from, 0%); background: var(--color-primary); }
.ac-range__track input {
	position: absolute;
	inset: -0.4375rem -0.4375rem auto;
	width: calc(100% + 0.875rem);
	height: 1rem;
	margin: 0;
	background: none;
	appearance: none;
	pointer-events: none;
}
.ac-range__track input::-webkit-slider-thumb { width: 14px; height: 14px; background: var(--color-primary); border: 0; border-radius: 50%; appearance: none; pointer-events: auto; cursor: grab; }
.ac-range__track input::-moz-range-thumb { width: 14px; height: 14px; background: var(--color-primary); border: 0; border-radius: 50%; pointer-events: auto; cursor: grab; }
.ac-range__track input::-moz-range-track { background: none; }

/* ---------- Projects ---------- */
.ac-projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.ac-projects__chips { margin-top: var(--space-lg); }
.ac-project { position: relative; display: flex; flex-direction: column; padding: 4px; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-project__visual {
	display: grid;
	grid-template-columns: 1fr 0fr;
	grid-template-rows: minmax(0, 1fr);
	aspect-ratio: 662 / 356;
	transition: grid-template-columns 0.4s ease, gap 0.4s ease;
}
.ac-project__media { position: relative; overflow: hidden; border-radius: 20px; background: var(--color-field); }
.ac-project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-project:hover .ac-project__media img { transform: scale(1.03); }
.ac-project__info { position: relative; min-width: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s ease; }
.ac-project__map { position: absolute; inset: 0; overflow: hidden; background: #e9ecef; border-radius: 20px; }
.ac-project__map::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.6) 50%, transparent 70%) 0 0 / 200% 100%;
	animation: ac-shimmer 1.2s linear infinite;
	transition: opacity 0.3s ease;
}
.ac-project__map.is-ready::after { opacity: 0; animation: none; }
@keyframes ac-shimmer { to { background-position: -200% 0; } }
/* Sized by main.js to the final panel width and pinned right: the growing panel uncovers it like a curtain,
   so the map is never resized mid-transition. Fades in (with a soft blur) once its tiles are drawn. */
.ac-project__mapgl {
	position: absolute;
	inset: 0 0 0 auto;
	width: 100%;
	pointer-events: none;
	opacity: 0;
	filter: blur(12px);
	transform: scale(1.04);
	transition: opacity 0.5s ease, filter 0.6s ease, transform 0.6s ease;
}
.ac-project__map.is-ready .ac-project__mapgl { opacity: 1; filter: none; transform: none; }
.ac-project__map-link {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	z-index: 2;
	padding: 0.5rem 1.25rem;
	font-size: var(--fs-sm);
	color: var(--color-text);
	text-decoration: none;
	background: var(--color-surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	transition: color var(--transition);
}
.ac-project__map-link:hover { color: var(--color-primary); }
.ac-project__body { padding: 1.25rem 1.25rem 1.5rem; }
.ac-project__title { font-family: var(--font-base); font-size: var(--fs-lg); font-weight: 500; }
.ac-project__title a { color: inherit; text-decoration: none; }
.ac-project__address { margin-top: 0.25rem; }
.ac-project__body--price { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-sm); align-items: baseline; }
.ac-project__body--price .ac-project__address { grid-column: 1 / -1; }
.ac-project__price { font-weight: 500; color: var(--color-primary); white-space: nowrap; }
.ac-project--soon .ac-project__media img { filter: blur(14px); transform: scale(1.1); }
.ac-project--soon:hover .ac-project__media img { transform: scale(1.1); }
.ac-project__soon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	text-transform: uppercase;
	color: #fff;
}
@media (hover: hover) and (min-width: 961px) {
	.ac-project--map:is(:hover, :focus-within) .ac-project__visual { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
	.ac-project--map:is(:hover, :focus-within) .ac-project__info { opacity: 1; }
}

/* ---------- Offers ---------- */
.ac-offers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.ac-offers__col { display: flex; flex-direction: column; }
.ac-offer {
	position: relative;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 9.5rem;
	overflow: hidden;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
}
.ac-offer__body { position: relative; z-index: 1; display: flex; max-width: 34ch; flex-direction: column; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md); }
.ac-offer__title { font-family: var(--font-base); font-size: var(--fs-lg); font-weight: 500; }
.ac-offer__media { position: relative; margin-left: -10%; clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%); }
.ac-offer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-offer:hover .ac-offer__media img { transform: scale(1.04); }

/* ---------- Purchase methods ---------- */
.ac-purchase { padding-bottom: var(--space-xl); }
.ac-purchase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ac-method {
	position: relative;
	min-height: 16.5rem;
	padding: var(--space-md) var(--space-md) 7rem;
	overflow: hidden;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	transition: transform var(--transition);
}
.ac-method:has(a):hover { transform: translateY(-0.25rem); }
.ac-method--green { background: var(--color-primary-soft); }
.ac-method--dark { color: #fff; background: var(--color-dark); }
.ac-method__title { position: relative; z-index: 1; margin-bottom: 0.75rem; font-size: var(--fs-xl); color: inherit; }
.ac-method__title a { color: inherit; text-decoration: none; }
.ac-method__text { position: relative; z-index: 1; max-width: 32ch; font-size: var(--fs-sm); }
.ac-method__img { position: absolute; right: 0; bottom: 0; width: auto; max-width: 60%; max-height: 60%; object-fit: contain; object-position: right bottom; }

/* ---------- About (stats + collage) ---------- */
.ac-about { padding-bottom: var(--space-xl); background: var(--color-surface); }
.ac-about__title { margin-bottom: var(--space-md); }
.ac-about__stage { position: relative; aspect-ratio: 1360 / 800; }
/* --c*: position in the collage, --s*: scattered end position for the desktop scroll animation */
.ac-about__photo { position: absolute; left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch); object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px rgb(10 9 20 / 0.12); }
.ac-about__photo:nth-child(1) { --cx: 41.4%; --cy: 13.2%; --cw: 23.2%; --ch: 32.9%; --sx: 78.4%; --sy: 6.2%; --sw: 17.5%; --sh: 35.8%; z-index: 1; }
.ac-about__photo:nth-child(2) { --cx: 27.9%; --cy: 29%; --cw: 21%; --ch: 40%; --sx: 4.1%; --sy: 55.2%; --sw: 18.6%; --sh: 37.8%; z-index: 2; }
.ac-about__photo:nth-child(3) { --cx: 38.3%; --cy: 34.8%; --cw: 29.4%; --ch: 30.8%; --sx: 4.1%; --sy: 6.2%; --sw: 26.6%; --sh: 29.6%; z-index: 4; }
.ac-about__photo:nth-child(4) { --cx: 48.9%; --cy: 43.8%; --cw: 30.6%; --ch: 32.2%; --sx: 69.1%; --sy: 63.4%; --sw: 26.8%; --sh: 29.6%; z-index: 3; }
.ac-stat { position: absolute; display: flex; align-items: center; gap: 1.25rem; }
.ac-stat__value { font-family: var(--font-heading); font-weight: 400; font-size: clamp(3.5rem, 1rem + 7vw, 8.5rem); line-height: 0.9; }
.ac-stat__label { font-family: var(--font-heading); font-size: clamp(0.875rem, 0.75rem + 0.3vw, 1.125rem); line-height: 1.3; }
.ac-stat--1 { left: 59%; top: 0; }
.ac-stat--2 { left: 7%; top: 52%; }
.ac-stat--3 { left: 55%; top: 80%; flex-direction: column; align-items: flex-start; }

/* ---------- Partners ---------- */
.ac-partners { padding-block: var(--space-lg) var(--space-xl); overflow: hidden; background: var(--color-surface); border-radius: 0 0 40px 40px; }
.ac-partners__title { margin-bottom: var(--space-lg); font-size: var(--fs-h3); text-align: center; }
/* Two identical lists, each wider than the screen, slide by their own width — the second takes the first one's
   place, so the loop has no seam. The trailing padding equals the gap (and is part of the shifted width), so the
   interval between the last and the first logo is the same as everywhere else. --marquee-duration (set per item
   count in partners.php) keeps the speed constant. .ac-marquee lifts the padding above the ul[class] reset. */
.ac-marquee { --marquee-gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); display: flex; width: max-content; }
.ac-marquee .ac-marquee__list {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--marquee-gap);
	padding-right: var(--marquee-gap);
	animation: ac-marquee var(--marquee-duration, 40s) linear infinite;
	will-change: transform;
}
.ac-marquee__item { flex: none; }
.ac-marquee__logo { display: block; width: auto; max-width: 13.75rem; height: 3.5rem; object-fit: contain; }
@keyframes ac-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
	.ac-marquee { width: auto; justify-content: center; }
	.ac-marquee .ac-marquee__list { flex-wrap: wrap; justify-content: center; padding-right: 0; animation: none; }
	.ac-marquee :is(.ac-marquee__list, .ac-marquee__item)[aria-hidden='true'] { display: none; }
}

/* ---------- Reviews ---------- */
.ac-review { position: relative; display: flex; flex-direction: column; padding: 4px; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-review__media { position: relative; aspect-ratio: 432 / 238; overflow: hidden; color: #fff; background: var(--color-field); border-radius: 20px; }
.ac-review__media img:not(.ac-review__play) { width: 100%; height: 100%; object-fit: cover; }
.ac-review__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 9 20 / 0.45), transparent 40%); }
.ac-review__author { position: absolute; top: 1rem; left: 1rem; z-index: 1; }
.ac-review__name { font-weight: 500; }
.ac-review__project { font-size: var(--fs-sm); opacity: 0.85; }
.ac-review__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 40px;
	height: 40px;
	max-width: 40px;
	max-height: 40px;
	transform: translate(-50%, -50%);
}
.ac-review__body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 1.25rem 1.25rem; }
.ac-review__text { font-size: var(--fs-base); }

/* ---------- News ---------- */
.ac-news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.ac-news-card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 4px 4px 1rem; background: var(--color-surface); border-radius: var(--radius); }
.ac-news-card__media { aspect-ratio: 317 / 250; overflow: hidden; background: var(--color-field); border-radius: 14px; }
.ac-news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-news-card:hover .ac-news-card__media img { transform: scale(1.04); }
.ac-news-card__title {
	display: -webkit-box;
	padding-inline: 0.75rem;
	overflow: hidden;
	font-family: var(--font-base);
	font-size: var(--fs-base);
	font-weight: 400;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.ac-news-card__title a { color: inherit; text-decoration: none; }
.ac-news-card:hover .ac-news-card__title a { color: var(--color-primary); }
.ac-news-card .ac-meta { margin-top: auto; padding-inline: 0.75rem; }
.ac-news__all { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius); }
.ac-news__all-title { font-family: var(--font-heading); font-size: var(--fs-sm); line-height: 1.4; }
.ac-news__all .ac-btn--outline:hover { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- FAQ ---------- */
.ac-faq { padding-bottom: var(--space-xl); }
.ac-faq__list { display: grid; gap: 0.75rem; }
.ac-faq__item { background: var(--color-surface); border-radius: var(--radius); }
.ac-faq__question {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: var(--space-md);
	font-size: var(--fs-xl);
	font-weight: 500;
	line-height: 1.3;
}
.ac-faq__icon { position: relative; flex-shrink: 0; width: 1rem; height: 1rem; }
.ac-faq__icon::before,
.ac-faq__icon::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--transition); }
.ac-faq__icon::after { transform: rotate(90deg); }
.ac-faq__item[open] .ac-faq__icon::after { transform: rotate(0); }
.ac-faq__item[open] .ac-faq__question { padding-bottom: 0.5rem; }
/* With JS (initFaq, [data-ac-faq-group]) the item stays [open] while it animates closed; .is-open is the real state. */
.ac-faq__item[data-ac-faq-group][open]:not(.is-open) .ac-faq__icon::after { transform: rotate(90deg); }
.ac-faq__item[data-ac-faq-group][open]:not(.is-open) .ac-faq__question { padding-bottom: var(--space-md); }
.ac-faq__answer { padding: 0 calc(var(--space-md) + 1rem + var(--space-md)) var(--space-md) var(--space-md); color: var(--color-muted); }
.ac-faq__answer > * + * { margin-top: 0.75em; }

/* ---------- Footer ---------- */
/* Sections have no bottom padding, so the gap above the footer is the same rhythm step that separates sections. */
.ac-footer { padding-block: var(--space-xl) var(--space-lg); }
.ac-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 22.625rem) minmax(0, 1fr);
	/* Left and right columns size independently: the logo keeps its own height, the dark block takes the rest. */
	grid-template-rows: auto 1fr auto auto;
	grid-template-areas:
		'brand projects'
		'subscribe projects'
		'subscribe links'
		'copy copy';
	gap: 0.75rem;
}
.ac-footer__brand { grid-area: brand; display: grid; place-items: center; min-height: 6.875rem; }
.ac-footer__brand .ac-logo { color: var(--color-text); }
.ac-footer__subscribe { grid-area: subscribe; }
.ac-footer__projects { grid-area: projects; }
.ac-footer__links { grid-area: links; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.ac-footer__copy { grid-area: copy; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem var(--space-md); padding-top: var(--space-sm); font-size: var(--fs-sm); color: var(--color-muted); }
.ac-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.ac-footer__legal a { color: inherit; text-decoration: none; transition: color var(--transition); }
.ac-footer__legal a:hover { color: var(--color-primary); }
.ac-footer__title { margin-bottom: 0.75rem; font-weight: 500; }
.ac-footer__menu > summary { display: block; list-style: none; pointer-events: none; }
.ac-footer__menu > summary::-webkit-details-marker { display: none; }
.ac-footer__project-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem var(--space-md); }
.ac-footer__project { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: var(--fs-xs); color: var(--color-text); text-decoration: none; }
.ac-footer__project:hover { color: var(--color-primary); }
.ac-footer__project img { flex-shrink: 0; width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.ac-footer__list { display: grid; gap: 0.375rem; }
.ac-footer__list a { font-size: var(--fs-sm); color: var(--color-muted); text-decoration: none; }
.ac-footer__list a:hover { color: var(--color-primary); }

.ac-socials { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ac-socials__link { display: grid; place-items: center; width: 40px; height: 40px; color: var(--color-primary); background: var(--color-bg); border-radius: 50%; transition: background var(--transition), color var(--transition); }
.ac-socials__link:hover { color: #fff; background: var(--color-primary); }
.ac-socials__link svg { width: 1.125rem; height: 1.125rem; }

.ac-subscribe { gap: 1rem; }
.ac-subscribe__text { font-size: var(--fs-sm); }
.ac-subscribe__row { display: flex; align-items: center; background: rgb(255 255 255 / 0.1); border-radius: var(--radius-sm); }
.ac-subscribe__input { flex: 1; min-width: 0; height: 52px; padding: 0 1.25rem; font-size: var(--fs-sm); color: #fff; background: none; border: 0; }
.ac-subscribe__input::placeholder { color: rgb(255 255 255 / 0.7); }
.ac-subscribe__input:focus { outline: none; }
.ac-subscribe__row:focus-within { box-shadow: inset 0 0 0 1px var(--color-primary); }
.ac-subscribe__submit { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; color: var(--color-primary); }
.ac-subscribe__submit svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Generic cards (archives) ---------- */
.ac-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--color-surface);
	border-radius: var(--radius);
	transition: box-shadow var(--transition), transform var(--transition);
}
.ac-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ac-card__body { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-md); }
.ac-card__title { font-size: var(--fs-h3); }
.ac-card__title a { color: inherit; text-decoration: none; }
.ac-card__title a:hover { color: var(--color-primary); }
.ac-card__excerpt { color: var(--color-muted); }

.ac-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
}
.ac-input:focus { outline: none; border-color: var(--color-primary); }
.ac-search { display: flex; gap: var(--space-xs); }

.ac-pagination { margin-top: var(--space-lg); }
.ac-pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; }
.ac-pagination .page-numbers {
	min-width: 2.75rem;
	padding: 0.625rem 0.875rem;
	text-align: center;
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	text-decoration: none;
	color: var(--color-text);
}
.ac-pagination .page-numbers.current,
.ac-pagination a.page-numbers:hover { color: #fff; background: var(--color-primary); }

.ac-widget + .ac-widget { margin-top: var(--space-md); }
.ac-widget__title { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }

/* ---------- Content ---------- */
.ac-page-header { margin-bottom: var(--space-lg); }
.ac-page-title { margin-bottom: var(--space-sm); }
.ac-entry__meta { font-size: var(--fs-sm); color: var(--color-muted); }
.ac-entry__media { margin-block: var(--space-md); }
.ac-entry__media img { border-radius: var(--radius); }

.ac-prose > * + * { margin-top: 1.25em; }
.ac-prose h2, .ac-prose h3 { margin-top: 2em; }
.ac-prose ul, .ac-prose ol { padding-left: 1.5em; }
.ac-prose blockquote { padding-left: var(--space-sm); border-left: 3px solid var(--color-primary); font-style: italic; }
.ac-prose img { border-radius: var(--radius); }
.ac-prose table { width: 100%; border-collapse: collapse; }
.ac-prose th, .ac-prose td { padding: 0.5rem; border: 1px solid var(--color-border); text-align: left; }

.ac-post-nav { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.ac-post-nav .nav-links { display: flex; justify-content: space-between; gap: var(--space-md); }

.ac-comments { margin-top: var(--space-lg); }
.ac-404 { text-align: center; }
.ac-404 .ac-btn { margin-top: var(--space-md); }

/* ---------- WordPress core ---------- */
.alignleft { float: left; margin: 0 var(--space-md) var(--space-sm) 0; }
.alignright { float: right; margin: 0 0 var(--space-sm) var(--space-md); }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-sm); color: var(--color-muted); margin-top: var(--space-xs); }

/* ---------- Utilities ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.ac-skip-link {
	position: absolute;
	top: -6.25rem;
	left: var(--space-sm);
	z-index: 1000;
	padding: var(--space-xs) var(--space-sm);
	background: var(--color-dark);
	color: #fff;
}
.ac-skip-link:focus { top: var(--space-sm); }

/* ==========================================================================
   Project page (single-project.php, template-parts/project/)
   ========================================================================== */

/* ---------- Shared: pills, badges, dots, arrows, media, sliders ---------- */
.ac-title--md { margin-bottom: var(--space-md); }

.ac-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.4375rem 0.875rem;
	font-size: var(--fs-sm);
	line-height: 1.2;
	color: var(--color-text);
	background: var(--color-surface);
	border-radius: var(--radius-pill);
}
.ac-pill svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.ac-pill--glass { background: rgb(255 255 255 / 0.6); backdrop-filter: blur(10px); }
.ac-pill--metro { background: rgb(255 255 255 / 0.6); backdrop-filter: blur(10px); }
.ac-pill--metro::before { content: ''; width: 0.4375rem; height: 0.4375rem; background: #e5397a; border-radius: 50%; }
.ac-pill--outline { background: none; border: 1px solid var(--color-border); }

.ac-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
	padding: 0.25rem 0.625rem;
	font-size: var(--fs-sm);
	line-height: 1.2;
	color: #fff;
	background: var(--color-dark-2);
	border-radius: var(--radius-pill);
}
.ac-badge svg { width: 1rem; height: 1rem; }
.ac-badge--promo { background: #5b7fd6; }

.ac-chip--sm { min-height: 2rem; padding: 0.25rem 0.75rem; text-align: left; }

.ac-dots { display: flex; justify-content: center; gap: 0.5rem; }
.ac-dots__dot { width: 0.4375rem; height: 0.4375rem; background: rgb(10 9 20 / 0.25); border-radius: 50%; transition: background var(--transition), width var(--transition); }
.ac-dots__dot[aria-current='true'] { background: var(--color-text); }
.ac-dots--line .ac-dots__dot { width: 1.75rem; height: 2px; border-radius: 1px; }

.ac-arrows { display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--color-surface); border-radius: var(--radius-pill); }
.ac-arrows__btn { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; transition: background var(--transition), opacity var(--transition); }
.ac-arrows__btn:hover:not(:disabled) { background: var(--color-bg); }
.ac-arrows__btn:disabled { opacity: 0.3; cursor: default; }
.ac-arrows__btn svg { width: 1.25rem; height: 1.25rem; }
[data-ac-slider].is-static .ac-arrows { visibility: hidden; }

.ac-media { position: relative; overflow: hidden; background: var(--color-field); border-radius: var(--radius-lg); }
.ac-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-media--embed { aspect-ratio: 16 / 9; }
/* Photo opening in the lightbox (project gallery, construction progress). */
.ac-media--zoom { display: block; cursor: zoom-in; }
.ac-media--zoom img { transition: transform 0.6s ease; }
.ac-media--zoom:hover img { transform: scale(1.03); }
.ac-media--embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 4.375rem;
	height: 4.375rem;
	color: var(--color-text);
	background: var(--color-surface);
	border-radius: 50%;
	translate: -50% -50%;
	transition: scale var(--transition);
}
.ac-play::after { content: ''; position: absolute; inset: -50vmax; }
.ac-play:hover { scale: 1.08; }
.ac-play svg { width: 1.25rem; height: 1.25rem; margin-left: 2px; }

.ac-slides { position: relative; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-slides::-webkit-scrollbar { display: none; }
.ac-slides__item { flex: 0 0 100%; scroll-snap-align: start; }
.ac-slides__item .ac-media { aspect-ratio: 1360 / 500; border: 4px solid var(--color-surface); }
.ac-slides--half .ac-slides__item { flex-basis: calc(50% - var(--gap) / 2); }
.ac-slides--half .ac-media { aspect-ratio: 670 / 510; border: 0; }
.ac-slides__caption { margin-top: 0.75rem; font-weight: 500; }

.ac-dialog--video { width: min(64rem, calc(100% - 2rem)); padding: 0; background: #000; }
.ac-dialog--video .ac-dialog__video { margin: 0; border-radius: 0; }
.ac-dialog--form { width: min(28rem, calc(100% - 2rem)); }
.ac-dialog__subtitle { margin-bottom: 0.5rem; padding-right: 2.5rem; }
.ac-dialog__text { margin-bottom: var(--space-md); font-size: var(--fs-sm); color: var(--color-muted); }

.ac-breadcrumbs { margin-bottom: var(--space-lg); font-size: var(--fs-xs); color: var(--color-muted); }
.ac-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0; list-style: none; }
.ac-breadcrumbs li + li::before { content: '\2022'; margin-right: 0.375rem; }
.ac-breadcrumbs a { color: inherit; text-decoration: none; }
.ac-breadcrumbs a:hover { color: var(--color-primary); }

/* ---------- Hero ---------- */
.ac-phero { display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(37.5rem, 100svh, 52rem); overflow: hidden; background: var(--color-dark); }
.ac-phero__track { position: absolute; inset: 0; z-index: -2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-phero__track::-webkit-scrollbar { display: none; }
/* Horizontal sliders keep their overscroll: at the first / last slide a swipe must not turn into the browser's
   back / forward navigation (Chrome) or scroll the page sideways. */
:is([data-ac-slider-track], .ac-phero__track, .ac-flat__track, .ac-flat-view__track, .ac-history-videos__track, .ac-history-photos__row, .ac-history-mosaic) { overscroll-behavior-x: contain; }
.ac-phero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.ac-phero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ac-phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(10 9 20 / 0.45), transparent 60%), linear-gradient(180deg, rgb(10 9 20 / 0.4), transparent 25%); pointer-events: none; }
/* The content layer lets swipes through to the slider; only its own controls catch the pointer. */
.ac-phero__inner {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr minmax(0, 15rem);
	align-items: center;
	gap: var(--space-lg);
	padding-top: calc(var(--header-h) + var(--space-lg));
	padding-bottom: var(--space-lg);
	pointer-events: none;
}
.ac-phero__inner > * { pointer-events: auto; }
.ac-phero__title { margin-bottom: var(--space-md); font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem); color: inherit; }
.ac-phero__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 34rem; }
.ac-phero__nav { position: relative; display: flex; align-items: center; justify-content: center; padding-bottom: 1.25rem; }
.ac-phero__nav .ac-dots { padding: 0.5rem 0.75rem; background: rgb(255 255 255 / 0.75); border-radius: var(--radius-pill); }
.ac-phero__nav .ac-arrows { position: absolute; right: var(--gutter); bottom: 1.25rem; color: var(--color-text); }

.ac-promo { display: grid; gap: 0.5rem; color: var(--color-text); }
.ac-promo__card { position: relative; padding: 1rem; background: rgb(255 255 255 / 0.75); border-radius: var(--radius); backdrop-filter: blur(12px); }
.ac-promo__title { font-family: var(--font-heading); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.04em; }
.ac-promo__link { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.75rem; font-size: var(--fs-xs); color: var(--color-text); text-transform: uppercase; text-decoration: none; }
.ac-promo__link svg { width: 1rem; height: 1rem; transition: translate var(--transition); }
.ac-promo__card:hover .ac-promo__link svg { translate: 0.25rem 0; }
.ac-promo__label { margin-bottom: 0.5rem; font-size: var(--fs-xs); color: var(--color-muted); }
.ac-countdown { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ac-countdown [aria-hidden] { color: var(--color-muted); }

/* ---------- Flats ---------- */
.ac-flats { padding-bottom: var(--space-xl); }
.ac-flats .ac-tabs { margin-bottom: var(--space-lg); }
.ac-flats__row { grid-template-columns: auto minmax(0, 21rem) auto; justify-content: space-between; }
.ac-flats__row .ac-filter__submit { justify-self: end; }
.ac-flats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--space-lg); transition: opacity var(--transition); }
.ac-flats.is-loading .ac-flats__grid { opacity: 0.5; }
.ac-flats__empty { margin-top: var(--space-lg); color: var(--color-muted); }

.ac-flat { display: flex; flex-direction: column; padding: 1.5rem; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-flat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ac-flat__title { font-size: var(--fs-lg); font-weight: 500; }
.ac-flat__link { color: inherit; text-decoration: none; }
.ac-flat__link:hover { color: var(--color-primary); }
.ac-flat__plans { margin-block: 1.25rem; }
.ac-flat__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-flat__track::-webkit-scrollbar { display: none; }
.ac-flat__plan { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
.ac-flat__plan img { width: 100%; height: 100%; object-fit: contain; }
.ac-flat__plans .ac-dots { margin-top: 0.75rem; }
.ac-flat__body { display: flex; flex: 1; flex-direction: column; }
.ac-flat__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.ac-flat__name { font-size: var(--fs-lg); }
.ac-flat__price { font-size: var(--fs-sm); color: var(--color-muted); }
.ac-flat__foot { display: grid; gap: 0.75rem; margin-top: auto; padding-top: 1.25rem; }
.ac-flat__meta { color: var(--color-muted); }
.ac-flat__consult { min-height: 3.25rem; }
@media (hover: hover) and (min-width: 961px) {
	/* Desktop: the button takes the place of the meta line on hover. */
	.ac-flat__foot { grid-template-areas: 'foot'; align-items: end; }
	.ac-flat__foot > * { grid-area: foot; transition: opacity var(--transition), translate var(--transition); }
	/* The faded meta line shares the cell with the button: keep the button on top and let clicks through. */
	.ac-flat__consult { position: relative; z-index: 1; opacity: 0; translate: 0 0.5rem; }
	.ac-flat:is(:hover, :focus-within) .ac-flat__consult { opacity: 1; translate: none; }
	.ac-flat:is(:hover, :focus-within) .ac-flat__meta { opacity: 0; pointer-events: none; }
}

/* ---------- Location ---------- */
.ac-location { padding-bottom: var(--space-xl); }
.ac-location__map { position: relative; }
.ac-location__chips { margin-bottom: var(--space-md); }
.ac-location__canvas { position: relative; aspect-ratio: 1360 / 640; overflow: hidden; background: #e9ecef; border-radius: var(--radius-lg); }
.ac-location:not(:has(.is-ready)) .ac-location__canvas::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.6) 50%, transparent 70%) 0 0 / 200% 100%;
	animation: ac-shimmer 1.2s linear infinite;
}
.ac-location__link { left: 1rem; bottom: 1rem; }

/* Leaflet (OpenStreetMap engine): keep its pane/control z-indexes inside the map box. */
.ac-project__mapgl,
.ac-location__canvas { isolation: isolate; }
.ac-project__mapgl.leaflet-container,
.ac-location__canvas.leaflet-container { font: inherit; background: #e9ecef; }
.ac-leaflet-marker { background: none; border: 0; }
.ac-leaflet-marker .ac-marker__label { color: var(--color-text); }
.leaflet-container .leaflet-control-attribution { font-size: 0.6875rem; }

.ac-marker { display: flex; align-items: center; gap: 0.375rem; color: var(--color-text); cursor: pointer; }
.ac-marker__icon { display: grid; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem; color: #fff; background: #55555d; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgb(10 9 20 / 0.2); transition: background var(--transition); }
.ac-marker__icon svg { width: 1.125rem; height: 1.125rem; }
.ac-marker__label { display: none; padding: 0.375rem 0.75rem; font-size: var(--fs-sm); white-space: nowrap; background: var(--color-surface); border-radius: var(--radius-pill); box-shadow: 0 2px 8px rgb(10 9 20 / 0.15); }
.ac-marker:hover .ac-marker__icon,
.ac-marker.is-active .ac-marker__icon,
.ac-marker--main .ac-marker__icon { background: var(--color-primary); }
.ac-marker.is-active .ac-marker__label,
.ac-marker--main .ac-marker__label { display: block; }

/* ---------- About & amenities ---------- */
.ac-pabout { padding-bottom: var(--space-xl); }
.ac-pabout__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.ac-pabout__text > * + * { margin-top: 1em; }
.ac-amenity { display: flex; flex-direction: column; padding: 4px; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-amenity__media { aspect-ratio: 432 / 214; overflow: hidden; background: var(--color-field); border-radius: 20px; }
.ac-amenity__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-amenity:hover .ac-amenity__media img { transform: scale(1.04); }
.ac-amenity__title { padding: 1.125rem 0.75rem 1rem; font-family: var(--font-heading); font-size: var(--fs-sm); }

/* ---------- Stats ---------- */
.ac-pstats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ac-pstat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.5rem; padding: 2rem; background: var(--color-bg); border-radius: var(--radius-lg); }
.ac-pstat:last-child:nth-child(3n + 2) { grid-column: span 2; }
.ac-pstat__value { font-family: var(--font-heading); font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); line-height: 1.1; }
.ac-pstat__label { font-size: var(--fs-sm); }

/* ---------- Infrastructure ---------- */
.ac-infra__stage { position: relative; aspect-ratio: 1360 / 498; overflow: hidden; background: var(--color-field); border-radius: var(--radius-lg); }
.ac-infra__photos { position: absolute; inset: 0; }
.ac-infra__photo { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.ac-infra__photo.is-active { opacity: 1; }
.ac-infra__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-infra__list { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; max-width: calc(100% - 2.5rem); max-height: calc(100% - 2.5rem); padding: 1rem; overflow-y: auto; background: var(--color-surface); border-radius: var(--radius); }
.ac-infra .ac-chip { white-space: nowrap; }
.ac-infra .ac-chip.is-active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }

/* ---------- Master plan ---------- */
.ac-plan { padding-bottom: var(--space-xl); }
.ac-plan__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-lg); }
/* Panorama frame: top and bottom edges curve inwards. */
.ac-plan__stage {
	--curve: 7%;
	position: relative;
	aspect-ratio: 1440 / 780;
	max-height: 90svh;
	margin-inline: auto;
	overflow: hidden;
	mask:
		radial-gradient(75% var(--curve) at 50% 0, #0000 98%, #000) top / 100% 51% no-repeat,
		radial-gradient(75% var(--curve) at 50% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ac-plan__view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.ac-plan__view.is-active { opacity: 1; visibility: visible; }
.ac-plan__view > img { width: 100%; height: 100%; object-fit: cover; }
.ac-plan__embed { position: absolute; inset: 0; display: grid; place-items: center; }
.ac-plan__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-plan__embed.is-open { background: var(--color-dark); }
.ac-plan__open {
	position: relative;
	display: grid;
	place-items: center;
	width: 6.25rem;
	height: 6.25rem;
	padding: 0.5rem;
	font-family: var(--font-heading);
	font-size: var(--fs-sm);
	text-align: center;
	background: var(--color-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 0.75rem rgb(255 255 255 / 0.35);
	transition: scale var(--transition), box-shadow var(--transition);
}
.ac-plan__open:hover { scale: 1.06; box-shadow: 0 0 0 1rem rgb(255 255 255 / 0.45); }

.ac-dropdown { position: relative; }
.ac-dropdown__toggle { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.25rem; font-family: var(--font-heading); font-size: var(--fs-sm); border: 1px solid var(--color-text); border-radius: var(--radius-pill); }
.ac-dropdown__toggle svg { width: 1rem; height: 1rem; transition: rotate var(--transition); }
.ac-dropdown[open] .ac-dropdown__toggle svg { rotate: 180deg; }
.ac-dropdown__list { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 5; display: grid; min-width: 14rem; padding: 0.375rem; background: var(--color-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ac-dropdown__item { padding: 0.5rem 0.75rem; text-align: left; border-radius: 0.375rem; }
.ac-dropdown__item:hover { background: var(--color-bg); }
.ac-dropdown__item.is-active { color: var(--color-primary); }

/* ---------- Catalog pages (flats, commercial, parking) ---------- */
.ac-catalog__title { margin-bottom: var(--space-md); }
.ac-catalog__tabs { margin-bottom: var(--space-xl); }
a.ac-tabs__item { text-decoration: none; }
.ac-tabs__item[aria-current='page'] { color: var(--color-text); }
.ac-tabs__item[aria-current='page']::after { transform: scaleX(1); }
.ac-catalog__row--commercial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.ac-catalog__row--parking { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.ac-catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); margin-top: var(--space-md); }
.ac-catalog__sort { width: min(100%, 17.5rem); }
.ac-catalog__sort .ac-field { height: 2.75rem; border-radius: var(--radius-pill); }
.ac-btn--white { color: var(--color-text); background: var(--color-surface); border-color: var(--color-surface); }
.ac-btn--white:hover { border-color: var(--color-text); }
.ac-catalog__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); margin-top: var(--space-lg); }
.ac-catalog__pages { margin: 0; }
.ac-catalog__pages .page-numbers { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 0.25rem; margin-right: 0.5rem; font-size: var(--fs-sm); color: var(--color-muted); text-decoration: none; border-radius: var(--radius-pill); }
.ac-catalog__pages a.page-numbers:hover { color: var(--color-text); }
.ac-catalog__pages .page-numbers.current { color: #fff; background: var(--color-dark-2); }

.ac-parking__project { margin-top: 0.25rem; color: var(--color-muted); }
.ac-parking__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--gap); margin-block: 1rem; padding-block: 1rem; border-block: 1px solid var(--color-border); }
.ac-parking__facts > :last-child { text-align: right; }
.ac-parking__facts dt { margin-bottom: 0.25rem; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-parking__facts dd { margin: 0; }
.ac-parking__label { margin-bottom: 0.5rem; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-parking__prices { width: 100%; font-size: var(--fs-sm); border: 1px solid var(--color-border); border-radius: var(--radius-sm); border-spacing: 0; overflow: hidden; }
.ac-parking__prices :is(th, td) { padding: 0.625rem 0.75rem; text-align: left; }
.ac-parking__prices :is(th, td):last-child { text-align: right; }
.ac-parking__prices th { font-size: var(--fs-xs); font-weight: 400; color: var(--color-muted); background: var(--color-field); }
.ac-parking__prices td { border-top: 1px solid var(--color-border); }

/* «Все фильтры»: a sheet from the right edge */
.ac-dialog--drawer {
	width: min(75rem, 100%);
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	padding: var(--space-lg);
	background: var(--color-bg);
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
	translate: 3rem 0;
	scale: 1;
}
.ac-dialog--drawer[open] { translate: 0; }
@starting-style {
	.ac-dialog--drawer[open] { translate: 3rem 0; scale: 1; }
}
.ac-allfilters form { display: flex; flex-direction: column; min-height: 100%; }
.ac-allfilters__head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.ac-allfilters__title { margin: 0; font-size: clamp(1.5rem, 1.25rem + 0.75vw, 1.75rem); }
.ac-allfilters__close,
.ac-allfilters__reset { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; background: var(--color-surface); border-radius: 50%; }
.ac-allfilters__reset { width: 2rem; height: 2rem; }
.ac-allfilters__close svg { width: 1.25rem; height: 1.25rem; }
.ac-allfilters__reset svg { width: 1rem; height: 1rem; }
.ac-allfilters__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-md); }
.ac-allfilters__chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; font-size: var(--fs-sm); color: #fff; background: #6b7180; border-radius: var(--radius-pill); }
.ac-allfilters__chip svg { width: 1rem; height: 1rem; }
.ac-allfilters__chip:hover { background: var(--color-dark-2); }
.ac-allfilters__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.ac-allfilters__heading { margin-bottom: var(--space-md); font-family: inherit; font-size: var(--fs-lg); font-weight: 500; }
.ac-allfilters__col > * + * { margin-top: var(--space-md); }
.ac-allfilters__col > .ac-allfilters__heading + * { margin-top: 0; }
.ac-allfilters__shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.ac-allfilters__finishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.ac-allfilters__foot { margin-top: auto; padding-top: var(--space-lg); }
.ac-allfilters .ac-rooms__item span { background: var(--color-surface); }

.ac-toggle-chip { position: relative; display: inline-flex; cursor: pointer; }
.ac-toggle-chip--wide { grid-column: 1 / -1; }
.ac-toggle-chip input { position: absolute; opacity: 0; }
.ac-toggle-chip > span,
.ac-toggle-chip__btn {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-height: 2rem;
	padding: 0.375rem 0.875rem;
	font-size: var(--fs-sm);
	line-height: 1.2;
	text-align: center;
	background: var(--color-surface);
	border-radius: var(--radius-pill);
	transition: background var(--transition), color var(--transition);
}
.ac-toggle-chip svg { width: 1rem; height: 1rem; }
.ac-allfilters__shortcuts .ac-toggle-chip__btn { flex: none; }
.ac-toggle-chip:hover > span,
.ac-toggle-chip__btn:hover { color: var(--color-primary); }
.ac-toggle-chip input:checked + span,
.ac-toggle-chip__btn.is-active { color: #fff; background: var(--color-dark-2); }
.ac-toggle-chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }

@media (max-width: 1100px) {
	.ac-allfilters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ac-dialog--drawer { padding: var(--space-md) var(--gutter); border-radius: 0; }
	.ac-allfilters__grid { grid-template-columns: 1fr; }
	.ac-allfilters__foot .ac-btn { width: 100%; }
	.ac-catalog__bar > * { flex: 1; }
	.ac-catalog__foot { flex-direction: column-reverse; }
	.ac-catalog__foot .ac-btn { width: 100%; }
}

/* ---------- Gallery & construction progress ---------- */
.ac-pgallery { padding-bottom: var(--space-xl); }
.ac-pgallery__chips { margin-bottom: var(--space-md); }
.ac-progress { padding-bottom: var(--space-xl); }
.ac-progress__panel:not(.is-active) { display: none; }
.ac-progress__bar { display: grid; grid-template-columns: repeat(2, minmax(0, 20.625rem)) 1fr; align-items: end; gap: 0.5rem; margin-bottom: var(--space-lg); }
.ac-progress__bar .ac-arrows { justify-self: end; }
.ac-progress__bar--end { grid-template-columns: 1fr; }

@media (max-width: 1280px) {
	.ac-flats__row .ac-filter__submit { grid-column: 1 / -1; justify-self: stretch; }
}

@media (max-width: 1100px) {
	.ac-phero__inner { grid-template-columns: 1fr; align-items: end; }
	.ac-promo { grid-template-columns: repeat(2, minmax(0, 15rem)); }
	.ac-flats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-pstats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-pstat:last-child:nth-child(3n + 2) { grid-column: auto; }
	.ac-pstat:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 960px) {
	.ac-pabout__head { grid-template-columns: 1fr; gap: var(--space-md); }
	.ac-location__canvas { aspect-ratio: 4 / 3; }
	.ac-progress__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-progress__bar .ac-arrows { display: none; }
	.ac-slides--half .ac-slides__item { flex-basis: 85%; }
}

@media (max-width: 640px) {
	.ac-phero__nav .ac-arrows { display: none; }
	.ac-promo { grid-template-columns: 1fr; }
	.ac-flats__grid,
	.ac-pstats__grid { grid-template-columns: 1fr; }
	.ac-pstat:last-child:nth-child(odd) { grid-column: auto; }
	.ac-pstat { padding: 1.5rem; }
	.ac-flat { padding: 1.25rem; }

	.ac-infra__stage { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
	.ac-infra__photos { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-field); border-radius: var(--radius-lg); }
	.ac-infra__list { position: static; flex-direction: row; flex-wrap: wrap; max-width: none; max-height: none; margin-top: 0.75rem; padding: 0; background: none; }

	.ac-plan__stage { --curve: 4%; aspect-ratio: 4 / 3; }
	.ac-plan__open { width: 5rem; height: 5rem; font-size: var(--fs-xs); }
	.ac-slides__item .ac-media { aspect-ratio: 4 / 3; }
	.ac-section__head .ac-arrows { display: none; }
}

/* ==========================================================================
   News: archive and single post
   ========================================================================== */
.ac-news--archive .ac-page-header { margin-bottom: var(--space-xl); }
.ac-news--archive .ac-section__more { margin-top: var(--space-xl); }

.ac-article__header { margin-bottom: var(--space-lg); }
.ac-article__title { font-size: var(--fs-h2); line-height: 1.15; }
.ac-article { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: var(--space-xl); align-items: start; }
.ac-article__main { display: flex; flex-direction: column; align-items: flex-start; }
.ac-article__media { width: 100%; overflow: hidden; border-radius: var(--radius); }
.ac-article__media img { width: 100%; }
.ac-article__content { width: 100%; font-size: var(--fs-lg); line-height: 1.35; }
.ac-article__media + .ac-article__content { margin-top: var(--space-xl); }
.ac-article__content.ac-prose > * + * { margin-top: 0.75em; }
.ac-article__lead { font-weight: 600; }
.ac-article__date { margin-top: 0.75rem; font-size: var(--fs-lg); color: var(--color-muted); }
.ac-article__back { margin-top: var(--space-xl); }
.ac-article__aside { position: sticky; top: calc(var(--header-h) + var(--space-sm)); }

.ac-subscribe-card { display: flex; flex-direction: column; gap: 1rem; padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius); }
.ac-subscribe-card__title { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.ac-subscribe-card__text { margin-top: 0.375rem; font-size: var(--fs-sm); color: var(--color-muted); }
.ac-subscribe-card .ac-check b { font-weight: 500; color: var(--color-primary); }
.ac-subscribe-card .ac-btn { margin-top: var(--space-xs); }

@media (max-width: 1100px) {
	.ac-article { grid-template-columns: 1fr; }
	.ac-article__aside { position: static; max-width: 32rem; }
}

@media (max-width: 640px) {
	.ac-article__content { font-size: var(--fs-base); }
	.ac-article__back { width: 100%; }
}

/* ==========================================================================
   Investors page (page-investors.php) — home sections plus «goals» and «pick»
   ========================================================================== */
/* Inner-page hero: shorter, no feature tiles, text at the bottom. */
.ac-hero--page { min-height: clamp(30rem, 55vw, 50rem); }
.ac-hero--page .ac-hero__bg { inset: 0; }
.ac-hero--page .ac-hero__inner { grid-template-columns: minmax(0, 1fr); align-items: end; padding-bottom: var(--space-xl); }
.ac-hero--page .ac-hero__title { margin-bottom: var(--space-sm); }
.ac-hero__text { margin-bottom: var(--space-lg); font-size: var(--fs-lg); }
.ac-page-crumbs.ac-section--top { padding-block: var(--space-md); }
.ac-hero__crumbs { display: none; }

.page-template-page-investors .ac-about__title { text-align: center; }

.ac-goals { padding-bottom: var(--space-xl); }
.ac-goals__head { max-width: 45rem; margin: 0 auto var(--space-xl); text-align: center; }
.ac-goals__text { font-size: var(--fs-sm); color: var(--color-muted); }
.ac-goals__body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-xl); align-items: center; }
.ac-goals__body--no-image { grid-template-columns: minmax(0, 1fr); max-width: 45rem; margin-inline: auto; }
.ac-goals__media { overflow: hidden; aspect-ratio: 510 / 630; border-radius: var(--radius); }
.ac-goals__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-goals__list { display: grid; padding-left: clamp(0rem, 6vw, 9rem); }
.ac-goals__item { display: grid; gap: 0.375rem; padding-block: 1.25rem; border-bottom: 1px solid var(--color-border); }
.ac-goals__item:last-child { border-bottom: 0; }
.ac-goals__num { font-size: var(--fs-sm); color: var(--color-primary); }
.ac-goals__label { font-size: var(--fs-lg); }

.ac-projects--3 .ac-projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ac-pick-lead { padding-bottom: var(--space-xl); }
.ac-pick-lead__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
.ac-pick-lead__inner--no-image { grid-template-columns: minmax(0, 45rem); justify-content: center; }
.ac-pick-lead__media { overflow: hidden; aspect-ratio: 560 / 495; border-radius: var(--radius); }
.ac-pick-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-pick-lead .ac-title { margin-bottom: var(--space-sm); }
.ac-pick-lead__text { margin-bottom: var(--space-md); font-size: var(--fs-sm); color: var(--color-muted); }
.ac-pick-lead .ac-field { background: var(--color-surface); border-color: var(--color-border); }

/* Lead form in two columns: fields pair up, checkboxes and the button take full rows. */
.ac-form--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-form--grid > :not(.ac-field, .ac-select, .ac-form__control) { grid-column: 1 / -1; }
.ac-form__submit { justify-self: start; }
.ac-form__submit svg { width: 1rem; height: 1rem; }

@media (max-width: 1100px) {
	.ac-projects--3 .ac-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.ac-projects--3 .ac-projects__grid { grid-template-columns: minmax(0, 1fr); }
	.ac-goals__body,
	.ac-pick-lead__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
	.ac-goals__media { aspect-ratio: 4 / 3; }
	.ac-goals__list { padding-left: 0; }
}

@media (max-width: 640px) {
	.ac-form--grid { grid-template-columns: minmax(0, 1fr); }
	.ac-form__submit { justify-self: stretch; padding-inline: 0.75rem; font-size: 0.8125rem; letter-spacing: 0; }

	/* Inner-page hero with crumbs (investors): a plain block under a solid header — crumbs, title, text, button,
	   then the photo as a rounded card. */
	body:has(.ac-hero--crumbs) .ac-header--overlay { position: sticky; color: var(--color-text); background: var(--color-surface); }
	body:not(.ac-theme-dark):has(.ac-hero--crumbs) .ac-header--overlay .ac-logo__img--light { display: none; }
	body:not(.ac-theme-dark):has(.ac-hero--crumbs) .ac-header--overlay .ac-logo:has(.ac-logo__img--light) .ac-logo__img--dark { display: block; }
	body:not(.ac-theme-dark):has(.ac-hero--crumbs) .ac-header--overlay .ac-logo:not(:has(.ac-logo__img--light)) .ac-logo__img--dark { filter: none; }
	.ac-hero--crumbs { min-height: 0; color: var(--color-text); }
	.ac-hero--crumbs .ac-hero__inner { padding-block: var(--space-sm) 0; }
	.ac-hero.ac-hero--crumbs { padding-bottom: var(--space-xl); }
	.ac-hero--crumbs .ac-hero__bg { position: relative; inset: auto; z-index: auto; order: 1; margin: var(--space-lg) var(--gutter) 0; aspect-ratio: 343 / 256; border-radius: var(--radius); }
	.ac-hero--crumbs .ac-hero__bg::after { display: none; }
	.ac-hero--crumbs .ac-hero__text { margin-bottom: var(--space-md); font-size: var(--fs-base); }
	.ac-hero__crumbs { display: block; margin-bottom: var(--space-md); }
	.ac-hero--crumbs + .ac-page-crumbs { display: none; }

	.page-template-page-investors .ac-about__title { text-align: left; }

	.ac-goals__head { margin-bottom: var(--space-lg); text-align: left; }
	.ac-goals__text,
	.ac-pick-lead__text { font-size: var(--fs-base); color: var(--color-text); }
	.ac-goals__media { aspect-ratio: 343 / 256; }
	.ac-pick-lead__media { order: 1; aspect-ratio: 343 / 256; }
	.ac-goals__item { gap: 0.75rem; }
	.ac-goals__num { font-family: var(--font-heading); }
	.ac-goals__label { font-size: var(--fs-base); }
}

/* ==========================================================================
   Flat page (single-flat.php, template-parts/flat/)
   ========================================================================== */
.ac-flat-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 26.25rem; gap: 0.5rem; align-items: start; }
.ac-flat-page__main { display: grid; justify-items: center; gap: 1rem; }
.ac-flat-page__card { width: 100%; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-flat-page__head { margin-bottom: var(--space-md); }
.ac-flat-page__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.75rem); }
.ac-flat-page__facts { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-top: 0.5rem; font-size: var(--fs-lg); color: var(--color-muted); }
.ac-flat-page__facts li + li::before { content: '\2022'; margin-right: 0.75rem; font-size: var(--fs-sm); }
.ac-flat-page__empty { padding-block: var(--space-xl); text-align: center; color: var(--color-muted); }

/* Bar under the card: views of the flat */
.ac-flat-page__bar { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; padding: 0.25rem; background: var(--color-surface); border-radius: var(--radius-pill); }
.ac-flat-page__bar .ac-chip { color: var(--color-text); border-color: transparent; }
.ac-flat-page__bar .ac-chip.is-active { color: #fff; }

.ac-flat-view { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.ac-flat-view:not(.is-active),
.ac-flat-view__mode:not(.is-active) { display: none; }
.ac-flat-view__modes { display: contents; }
.ac-flat-view__stage { width: 100%; }
.ac-flat-view__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-flat-view__track::-webkit-scrollbar { display: none; }
.ac-flat-view__slide { display: flex; align-items: center; justify-content: center; flex: 0 0 100%; height: clamp(16rem, 32vw, 23rem); scroll-snap-align: center; }
.ac-flat-view__slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.ac-flat-view__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.ac-flat-view__nav .ac-arrows { background: var(--color-bg); }
.ac-flat-view__zoom { display: inline-flex; align-items: center; gap: 0.625rem; font-size: var(--fs-sm); transition: color var(--transition); }
.ac-flat-view__zoom:hover { color: var(--color-primary); }
.ac-flat-view__zoom svg { width: 1.125rem; height: 1.125rem; padding: 0.125rem; color: #fff; background: var(--color-primary); border-radius: 50%; stroke-width: 2.5; }
.ac-flat-view__switch { margin: 0; }
.ac-flat-view__switch .ac-segment__item { min-width: 4rem; }

.ac-compass { position: absolute; top: 0; right: clamp(0rem, 12%, 10rem); display: grid; place-items: center; width: 3.75rem; height: 3.75rem; color: var(--color-muted); background: var(--color-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ac-compass svg { width: 100%; height: 100%; }
.ac-compass__dial { transform: rotate(var(--ac-compass, 0deg)); transform-origin: 32px 32px; }
.ac-compass__north { fill: var(--color-primary); }
.ac-compass text { font-size: 6px; fill: currentColor; }

/* Parameters card */
.ac-flat-page__aside { position: sticky; top: calc(var(--header-h) + var(--space-sm)); display: grid; gap: 1rem; }
.ac-flat-params { padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-flat-params__title { margin-bottom: var(--space-md); font-family: var(--font-base); font-size: var(--fs-lg); font-weight: 600; }
.ac-flat-params__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--space-md); }
.ac-flat-params__tags .ac-pill { border-color: #cfcfd4; }
.ac-flat-params__more { min-width: 2.5rem; justify-content: center; transition: border-color var(--transition); }
.ac-flat-params__more:hover { border-color: var(--color-text); }
.ac-pill--accent { color: var(--color-primary); border-color: var(--color-primary) !important; }
.ac-flat-params__list { display: grid; gap: 0.75rem; }
.ac-flat-params__row { display: flex; justify-content: space-between; gap: 1rem; }
.ac-flat-params__row dt { color: var(--color-muted); }
.ac-flat-params__row dd { margin: 0; text-align: right; }
.ac-flat-params__row a { color: inherit; text-decoration: none; }
.ac-flat-params__row a:hover { color: var(--color-primary); }
.ac-flat-params__all { display: flex; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; margin-top: var(--space-md); font-size: var(--fs-sm); font-weight: 500; }
.ac-flat-params__all svg { width: 1rem; height: 1rem; transition: rotate var(--transition); }
.ac-flat-params__all[aria-expanded='true'] svg { rotate: 180deg; }
.ac-flat-page__cta { min-height: 3.25rem; font-size: var(--fs-base); }

.ac-dialog--zoom { width: min(75rem, calc(100% - 2rem)); padding: var(--space-lg); }
.ac-dialog__zoom { width: 100%; max-height: calc(100dvh - 2rem - var(--space-lg) * 2); object-fit: contain; }

/* «Хотите узнать больше?» */
.ac-flat-lead__inner { position: relative; display: flex; justify-content: flex-end; min-height: 22rem; padding: 0.5rem; overflow: hidden; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-flat-lead__media { position: absolute; inset: 0; }
.ac-flat-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-flat-lead__card { position: relative; width: min(100%, 48rem); padding: var(--space-md); background: var(--color-surface); border-radius: var(--radius); }
.ac-flat-lead__inner--no-image .ac-flat-lead__card { width: 100%; }
.ac-flat-lead__title { margin-bottom: 0.5rem; }
.ac-flat-lead__text { margin-bottom: var(--space-md); font-size: var(--fs-lg); color: var(--color-muted); }
.ac-form--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.ac-flat-page__grid { grid-template-columns: minmax(0, 1fr) 22rem; }
}

@media (max-width: 960px) {
	.ac-flat-page__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.ac-flat-page__aside { position: static; }
	.ac-flat-lead__inner { flex-direction: column; padding: 0; }
	.ac-flat-lead__media { position: relative; aspect-ratio: 16 / 9; }
	.ac-flat-lead__card { width: 100%; border-radius: 0; }
	.ac-form--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ac-flat-page__facts { font-size: var(--fs-base); }
	.ac-compass { right: 0; width: 3rem; height: 3rem; }
	.ac-flat-page__bar { border-radius: var(--radius); }
	.ac-dialog--zoom { padding: var(--space-md); }
	.ac-form--row { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Dark colour scheme (body.ac-theme-dark, amanat_is_dark_page()) — the tokens are redefined,
   components follow them; below are only the places that hardcode light colours.
   ========================================================================== */
.ac-theme-dark {
	--color-bg: #1b1b1b;
	--color-surface: #0f0f0f;
	--color-text: #ffffff;
	--color-muted: rgb(255 255 255 / 0.55);
	--color-border: rgb(255 255 255 / 0.12);
	--color-field: #2a2a2a;
	--shadow: 0 10px 30px rgb(0 0 0 / 0.4);
	color-scheme: dark;
}
.ac-theme-dark .ac-logo:has(.ac-logo__img--light) .ac-logo__img--dark { display: none; }
.ac-theme-dark .ac-logo__img--light { display: block; }
.ac-theme-dark .ac-btn--outline:hover { color: var(--color-dark); }
.ac-theme-dark .ac-pick-lead .ac-field { background: var(--color-field); border-color: transparent; }
/* The footer newsletter card turns light (dark on light pages). */
.ac-theme-dark .ac-panel--dark { color: var(--color-dark); background: #fff; }
.ac-theme-dark .ac-subscribe__row { background: #f3f3f4; }
.ac-theme-dark .ac-subscribe__input { color: var(--color-dark); }
.ac-theme-dark .ac-subscribe__input::placeholder { color: rgb(10 9 20 / 0.6); }
.ac-theme-dark .ac-check--dark { color: rgb(10 9 20 / 0.6); }
.ac-theme-dark .ac-check--dark .ac-check__box { background: rgb(10 9 20 / 0.08); }
.ac-theme-dark .ac-check--dark input:checked + .ac-check__box { color: #fff; background: var(--color-dark); }
.ac-theme-dark .ac-check--dark :is(a, b) { color: var(--color-dark); }
/* Header dropdowns: dark frosted panel (desktop only — on mobile they are inline in the menu). */
@media (min-width: 1101px) {
	.ac-theme-dark .ac-nav__list :is(.sub-menu, .ac-nav__mega) {
		background: rgb(27 27 27 / 0.94);
		border-color: rgb(255 255 255 / 0.08);
		box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 24px 60px -16px rgb(0 0 0 / 0.6);
	}
	.ac-theme-dark .ac-nav__list .sub-menu .current-menu-item > a { background: rgb(64 153 85 / 0.16); }
}

/* ==========================================================================
   Corporate culture page (page-culture.php, template-parts/culture/)
   ========================================================================== */
.ac-title--serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* Height set directly: aspect-ratio + max-height would also cap the width on wide screens. */
.ac-culture-hero { width: 100%; height: min(50vw, 85vh); overflow: hidden; background: var(--color-surface); }
.ac-culture-hero img { width: 100%; height: 100%; object-fit: cover; }
.ac-culture-hero__crumbs { display: none; }
.ac-culture-hero__crumbs .ac-breadcrumbs :is(a, li) { color: var(--color-text); }

.ac-culture-intro__title { margin-bottom: 0.5rem; }
.ac-culture-intro__text { font-size: var(--fs-h3); line-height: 1.3; }

.ac-culture-blocks__list { display: grid; gap: var(--space-xl); }
.ac-culture-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: center; }
.ac-culture-block:nth-child(even) .ac-culture-block__media { order: 1; }
.ac-culture-block__media { overflow: hidden; aspect-ratio: 680 / 480; border-radius: var(--radius); }
.ac-culture-block__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-culture-block:nth-child(odd) .ac-culture-block__body { padding-left: clamp(0rem, 5vw, 7rem); }

.ac-bullets { display: grid; gap: 0.875rem; font-size: var(--fs-sm); }
.ac-bullets li { position: relative; padding-left: 1.25rem; }
.ac-bullets li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.375rem; height: 0.375rem; background: var(--color-primary); border-radius: 50%; }

/* Development cards: text on top, photo below; on hover/focus the photo slides up and the text panel turns light. */
.ac-growth__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ac-growth__card { position: relative; overflow: hidden; aspect-ratio: 330 / 432; background: var(--color-surface); border-radius: var(--radius); outline-offset: 3px; }
.ac-growth__body,
.ac-growth__media { position: absolute; inset-inline: 0; transition: top 0.5s var(--ease-out, ease), background var(--transition), color var(--transition); }
.ac-growth__body { top: 0; height: 45%; padding: 1.25rem; }
.ac-growth__media { top: 45%; height: 55%; overflow: hidden; border-radius: var(--radius); }
.ac-growth__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-growth__icon { display: block; width: 1.125rem; height: 1.125rem; margin-bottom: 1.25rem; color: var(--color-primary); }
.ac-growth__icon svg { width: 100%; height: 100%; }
.ac-growth__title { margin-bottom: 0.5rem; font-family: var(--font-base); font-size: var(--fs-sm); font-weight: 500; }
.ac-growth__text { font-size: var(--fs-xs); line-height: 1.4; color: var(--color-muted); }
.ac-growth__card:has(.ac-growth__media):is(:hover, :focus-visible) .ac-growth__media { top: 0; }
.ac-growth__card:has(.ac-growth__media):is(:hover, :focus-visible) .ac-growth__body { top: 55%; color: var(--color-dark); background: #fff; border-radius: var(--radius); }
.ac-growth__card:has(.ac-growth__media):is(:hover, :focus-visible) .ac-growth__title { color: inherit; }
.ac-growth__card:has(.ac-growth__media):is(:hover, :focus-visible) .ac-growth__text { color: rgb(10 9 20 / 0.6); }
.ac-growth__card:has(.ac-growth__media):is(:hover, :focus-visible) .ac-growth__icon { margin-bottom: 0.75rem; }

/* Groups of 7 on three repeating row tracks: [row] [step] [short]. The wide 2nd photo spans row + step,
   so it is taller than its neighbours; the two photos under it are shorter and the group ends level.
   dense lets the 7th photo fill column 4 next to them. */
.ac-mosaic__grid {
	--row: clamp(10rem, 21.5vw, 19.5rem);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: var(--row) calc(var(--row) * 0.23 - var(--gap)) calc(var(--row) * 0.77);
	grid-auto-flow: row dense;
	gap: var(--gap);
}
.ac-mosaic__item { overflow: hidden; border-radius: var(--radius); }
.ac-mosaic__item:nth-child(7n + 1) { grid-column: 1; }
.ac-mosaic__item:nth-child(7n + 2) { grid-column: 2 / span 2; grid-row: span 2; }
.ac-mosaic__item:nth-child(7n + 3) { grid-column: 4; }
.ac-mosaic__item:nth-child(7n + 4) { grid-column: 1; grid-row: span 2; }
.ac-mosaic__item:nth-child(7n + 5) { grid-column: 2; }
.ac-mosaic__item:nth-child(7n + 6) { grid-column: 3; }
.ac-mosaic__item:nth-child(7n + 7) { grid-column: 4; grid-row: span 2; }
.ac-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-mosaic__item:hover img { transform: scale(1.04); }
.ac-mosaic__item { cursor: zoom-in; }
.ac-mosaic__item:focus-visible { outline-offset: 3px; }

/* Photo lightbox (culture/gallery.php + initLightbox()): a full-screen dialog with a fixed stage, so the
   controls never move — arrows at the screen sides, the counter and close button in the top corners,
   the caption and the thumbnail strip at the bottom. The photo is fitted into the stage. */
.ac-dialog--lightbox { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; color: #fff; background: transparent; border-radius: 0; }
.ac-dialog--lightbox::backdrop { background: rgb(10 9 20 / 0.92); }
.ac-dialog--lightbox .ac-dialog__close { top: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; color: var(--color-dark); background: #fff; }
.ac-lightbox__figure { position: absolute; inset: 5rem 6.5rem 9rem; display: flex; align-items: center; justify-content: center; margin: 0; }
.ac-lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; touch-action: pan-y; transition: opacity 0.25s ease; }
.ac-lightbox__img.is-loading { opacity: 0.4; }
.ac-lightbox__bar { display: contents; }
.ac-lightbox__count { position: fixed; top: 2rem; left: 1.75rem; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.75); }
.ac-lightbox__caption { position: fixed; bottom: 6.5rem; left: 6.5rem; right: 6.5rem; font-size: var(--fs-sm); text-align: center; color: rgb(255 255 255 / 0.75); }
.ac-lightbox__thumbs { position: absolute; bottom: 1.25rem; left: 50%; display: flex; gap: 0.5rem; max-width: calc(100% - 3.5rem); padding: 0.25rem; overflow-x: auto; scrollbar-width: none; translate: -50% 0; }
.ac-lightbox__thumbs::-webkit-scrollbar { display: none; }
.ac-lightbox__thumb { flex: 0 0 auto; width: 5rem; height: 3.75rem; overflow: hidden; border-radius: var(--radius-sm); opacity: 0.45; outline: 2px solid transparent; outline-offset: 2px; transition: opacity var(--transition), outline-color var(--transition); }
.ac-lightbox__thumb:hover { opacity: 0.8; }
.ac-lightbox__thumb.is-active { opacity: 1; outline-color: var(--color-primary); }
.ac-lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-lightbox__nav { position: absolute; top: calc(50% - 2rem); display: grid; place-items: center; width: 3rem; height: 3rem; margin-top: -1.5rem; color: var(--color-dark); background: #fff; border-radius: 50%; transition: background var(--transition), color var(--transition); }
.ac-lightbox__nav:hover { color: #fff; background: var(--color-primary); }
.ac-lightbox__nav svg { width: 1.25rem; height: 1.25rem; }
.ac-lightbox__nav--prev { left: 1.75rem; }
.ac-lightbox__nav--next { right: 1.75rem; }
.ac-dialog--lightbox.is-single :is(.ac-lightbox__nav, .ac-lightbox__thumbs) { display: none; }
/* The dialog's staggered entrance (translate + fade of every child) would shift the controls and make the
   figure a containing block for the fixed counter; here only the dialog itself fades in. */
.ac-dialog.ac-dialog--lightbox[open] > :not(.ac-dialog__close) { animation: none; }
@media (max-width: 640px) {
	.ac-lightbox__figure { inset: 4.5rem 0.75rem 8rem; }
	.ac-lightbox__nav { width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; background: rgb(255 255 255 / 0.85); }
	.ac-lightbox__nav--prev { left: 0.5rem; }
	.ac-lightbox__nav--next { right: 0.5rem; }
	.ac-lightbox__count { top: 1.75rem; left: 1.25rem; }
	.ac-lightbox__caption { bottom: 5.75rem; left: 1rem; right: 1rem; }
	.ac-lightbox__thumbs { bottom: 1rem; max-width: calc(100% - 1.5rem); }
	.ac-lightbox__thumb { width: 4rem; height: 3rem; }
}

.ac-theme-dark .ac-pick-lead .ac-title { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.page-template-page-culture .ac-pick-lead__media { aspect-ratio: 560 / 400; }

@media (max-width: 1100px) {
	.ac-growth__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.ac-culture-block { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
	.ac-culture-block:nth-child(even) .ac-culture-block__media { order: 0; }
	.ac-culture-block:nth-child(odd) .ac-culture-block__body { padding-left: 0; }
	.ac-mosaic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; grid-auto-flow: row dense; }
	.ac-mosaic__item:nth-child(n) { grid-column: auto; grid-row: auto; }
	.ac-mosaic__item:nth-child(7n + 2) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	/* Mobile design: crumbs, then the photo as a rounded card; the intro title is kept for SEO / screen readers only. */
	.ac-culture-hero__crumbs { display: block; padding-block: var(--space-md); }
	.ac-culture-hero__crumbs .ac-breadcrumbs { margin-bottom: 0; }
	.ac-culture-hero { width: auto; height: auto; margin-inline: var(--gutter); aspect-ratio: 343 / 256; border-radius: var(--radius); }
	.page-template-page-culture .ac-culture-intro { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.page-template-page-culture .ac-title--serif { font-size: 2rem; }
	.ac-culture-block .ac-bullets { font-size: var(--fs-base); }

	/* Development cards and photo mosaics: sideways strips bleeding to the screen edge, the next one peeks in. */
	:is(.ac-growth .ac-growth__grid, .ac-mosaic__grid) { /* .ac-growth lifts the ul above the ul[class] padding reset */
		display: flex;
		gap: 0.5rem;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	:is(.ac-growth__grid, .ac-mosaic__grid)::-webkit-scrollbar { display: none; }
	.ac-growth__grid { gap: 1rem; }
	.ac-growth__card { flex: 0 0 calc(100% - 1.125rem); aspect-ratio: 325 / 440; scroll-snap-align: start; }
	.ac-mosaic__item:nth-child(n) { flex: 0 0 100%; aspect-ratio: 343 / 256; scroll-snap-align: start; }
}

/* ==========================================================================
   History page (page-history.php, template-parts/history/) — dark, like the culture page.
   Titles and texts use amanat_markup(): <em> — accent serif italic, <strong> — bold serif.
   ========================================================================== */
.ac-history__title { font-family: var(--font-base); font-weight: 400; line-height: 1.15; }
.ac-history__title :is(em, strong) { font-family: var(--font-accent); font-style: italic; letter-spacing: -0.01em; }
.ac-history__title em { font-weight: 400; }
.ac-history__title strong { font-weight: 700; }
.ac-history__text { display: grid; gap: 1rem; font-size: var(--fs-lg); line-height: 1.5; color: var(--color-muted); }
.ac-history__text :is(em, strong) { font-family: var(--font-accent); font-style: italic; color: var(--color-text); }
.ac-history__text em { font-size: 1.4em; line-height: 1; color: var(--color-primary); }
.ac-history__text strong { font-size: 1.35em; }

.ac-history-hero .ac-breadcrumbs a,
.ac-history-hero .ac-breadcrumbs li { color: var(--color-text); }
.ac-history-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--space-lg), 8vw, 7.5rem); align-items: start; }
.ac-history-hero__grid--no-image { grid-template-columns: minmax(0, 45rem); }
.ac-history-hero__media { overflow: hidden; aspect-ratio: 623 / 640; border-radius: var(--radius); }
.ac-history-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-history-hero__body { padding-top: var(--space-sm); }
.ac-history-hero__title { margin-bottom: 0.25em; font-size: clamp(2.75rem, 1.5rem + 4vw, 4.5rem); line-height: 1.1; }
.ac-history-hero__subtitle { margin-bottom: var(--space-lg); font-size: var(--fs-h2); line-height: 1.3; }
.ac-history-hero .ac-history__text { max-width: 32rem; font-size: var(--fs-base); }

.ac-history-photos__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ac-history-photos__item { overflow: hidden; aspect-ratio: 325 / 440; border-radius: var(--radius); }
.ac-history-photos__item img { width: 100%; height: 100%; object-fit: cover; }

.ac-history-split__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--space-lg) var(--space-xl); align-items: start; }
.ac-history-split__grid .ac-title { margin-bottom: 0; }
.ac-history-split__grid > :only-child { grid-column: 1 / -1; }
.ac-history-split__text { max-width: 45rem; }
.ac-history-world .ac-history__title { font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem); }

/* Mosaic in groups of 4: a wide photo and a tall one across both rows, two small ones stacked. */
.ac-history-mosaic {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-auto-rows: clamp(9rem, 23vw, 20.5rem);
	grid-auto-flow: row dense;
	gap: var(--gap);
	margin-top: var(--space-lg);
}
.ac-history-mosaic__item { overflow: hidden; border-radius: var(--radius); }
.ac-history-mosaic__item:nth-child(4n + 1) { grid-column: 1; grid-row: span 2; }
.ac-history-mosaic__item:nth-child(4n + 2) { grid-column: 2; grid-row: span 2; }
.ac-history-mosaic__item:nth-child(4n + 3),
.ac-history-mosaic__item:nth-child(4n + 4) { grid-column: 3; }
.ac-history-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-history-mosaic__item:hover img { transform: scale(1.04); }

.ac-history-videos { margin-top: var(--space-lg); }
.ac-history-videos__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-history-videos__track::-webkit-scrollbar { display: none; }
.ac-history-videos__item { flex: 0 0 calc((100% - var(--gap) * 2) / 3); scroll-snap-align: start; }
.ac-history-videos__media { aspect-ratio: 432 / 642; }
.ac-history-videos__media .ac-play { width: 3rem; height: 3rem; color: #fff; background: rgb(10 9 20 / 0.6); backdrop-filter: blur(6px); }
.ac-history-videos__nav { display: flex; justify-content: flex-end; margin-top: var(--space-sm); }

/* «4 принципа»: a light panel inside the dark page — the light tokens are restored here. */
.ac-history-principles__panel {
	--color-text: #14131c;
	--color-muted: #5f5f68;
	--color-border: #e3e3e6;
	padding-block: var(--space-xl);
	color: var(--color-text);
	background: #f5f5f5;
	border-radius: var(--radius-lg);
}
.ac-history-principles__title { font-weight: 700; }
.ac-history-principles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ac-principle { display: flex; flex-direction: column; min-height: 17.25rem; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius); outline-offset: 3px; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.ac-principle__icon { width: 1.5rem; height: 1.5rem; }
.ac-principle__icon svg { width: 100%; height: 100%; }
.ac-principle__title { margin: 4.5rem 0 0.75rem; font-family: var(--font-base); font-size: var(--fs-base); font-weight: 500; color: inherit; }
.ac-principle__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-muted); transition: color var(--transition); }
.ac-principle:is(:hover, :focus-visible) { color: #fff; background: #252630; border-color: #252630; }
.ac-principle:is(:hover, :focus-visible) .ac-principle__text { color: rgb(255 255 255 / 0.7); }

.ac-history-years__head { max-width: 60rem; margin: 0 auto var(--space-lg); text-align: center; }
.ac-history-years__title { margin-bottom: var(--space-sm); font-size: clamp(2rem, 1.25rem + 3vw, 3.5rem); line-height: 1.25; }
.ac-history-years__text { color: var(--color-muted); }
.ac-history-years__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: var(--space-xl); }
.ac-history-years__chip { min-width: 5.25rem; font-size: var(--fs-lg); }
.ac-history-years__chip.is-active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.ac-history-year { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-lg) var(--space-xl); align-items: start; }
.ac-history-year:not(.is-active) { display: none; }
.ac-history-year.is-active { animation: ac-dialog-in 0.6s var(--ease-out, ease) both; }
.ac-history-year--no-image { grid-template-columns: minmax(0, 45rem); }
.ac-history-year__num { font-family: var(--font-accent); font-size: clamp(3.5rem, 2rem + 4vw, 5rem); font-weight: 700; line-height: 1; color: var(--color-primary); }
.ac-history-year__title { margin: 0.5rem 0 var(--space-md); font-family: var(--font-base); font-size: var(--fs-xl); font-weight: 400; }
.ac-history-year__text { max-width: 32rem; font-size: var(--fs-base); color: var(--color-text); }
.ac-history-year__arrows { margin-top: var(--space-lg); background: var(--color-surface); }
.ac-history-year__media { overflow: hidden; aspect-ratio: 724 / 388; border-radius: var(--radius); }
.ac-history-year__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-history-year__gallery { display: flex; flex-direction: column; gap: var(--space-md); }

.ac-history-legacy__panel { padding-block: var(--space-xl); background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-history-legacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 37.5rem) minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.ac-history-legacy__body { grid-column: 2; grid-row: 1; }
.ac-history-legacy .ac-history__title { font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem); }
.ac-history-legacy .ac-history__text { font-size: var(--fs-base); color: var(--color-text); }
.ac-history-legacy__photo { grid-row: 1; overflow: hidden; aspect-ratio: 280 / 330; border-radius: var(--radius); }
.ac-history-legacy__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-history-legacy__photo--left { grid-column: 1; align-self: end; max-width: 18rem; rotate: -4deg; }
.ac-history-legacy__photo--right { grid-column: 3; justify-self: end; width: 100%; max-width: 18rem; rotate: 4deg; }

.ac-history-cert__grid { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 21.5rem); justify-content: center; gap: clamp(var(--space-lg), 10vw, 9rem); align-items: center; }
.ac-history-cert__text { color: var(--color-text); }
.ac-history-cert__frame { display: block; padding: 2.75rem; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 0.75rem #f3f3f4, var(--shadow); transition: translate var(--transition); }
.ac-history-cert__frame:hover { translate: 0 -0.25rem; }
.ac-history-cert__frame img { width: 100%; box-shadow: 0 2px 10px rgb(10 9 20 / 0.15); }

.page-template-page-history .ac-pick-lead__media { aspect-ratio: 560 / 400; }

@media (max-width: 1100px) {
	.ac-history-principles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-history-legacy__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ac-history-legacy__body { grid-column: 1 / -1; }
	.ac-history-legacy__photo { grid-row: 2; }
	.ac-history-legacy__photo--right { grid-column: 2; }
}

@media (max-width: 960px) {
	.ac-history-hero__grid,
	.ac-history-split__grid,
	.ac-history-year,
	.ac-history-cert__grid { grid-template-columns: minmax(0, 1fr); }
	.ac-history-hero__media { aspect-ratio: 4 / 3; }
	.ac-history-photos__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.ac-history-photos__item { flex: 0 0 60%; scroll-snap-align: start; }
	.ac-history-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 45vw; }
	.ac-history-mosaic__item:nth-child(n) { grid-column: auto; grid-row: auto; }
	.ac-history-mosaic__item:nth-child(4n + 1),
	.ac-history-mosaic__item:nth-child(4n + 4) { grid-column: 1 / -1; }
	.ac-history-videos__item { flex-basis: 45%; }
	.ac-history-year__gallery { order: -1; }
	.ac-history-cert__frame { max-width: 22rem; }
}

@media (max-width: 640px) {
	.ac-history__text { font-size: var(--fs-base); }
	.ac-history-photos__item { flex-basis: 75%; }
	.ac-history-principles__grid { grid-template-columns: minmax(0, 1fr); }
	.ac-principle { min-height: 0; }
	.ac-principle__title { margin-top: 2rem; }
	.ac-history-years__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.ac-history-years__chip { flex-shrink: 0; min-width: 4.5rem; font-size: var(--fs-base); }
	.ac-history-cert__frame { padding: 1.75rem; }

	/* Mobile design: «Доверие» right after the hero, then the photo row. */
	.page-template-page-history .ac-main { display: flex; flex-direction: column; }
	.ac-history-hero { order: -2; }
	.ac-history-trust { order: -1; }

	/* One title size, regular serif, a short step to the text; texts in the main colour. */
	/* Split titles: the plain part is a small lead-in («— это аманат», «Клиенты»), the serif accent is the title. */
	.ac-history__title { font-size: var(--fs-base); }
	.ac-history__title :is(em, strong),
	.page-template-page-history :is(.ac-history-principles__title, .ac-history-cert .ac-title, .ac-pick-lead .ac-title) { font-size: 2rem; }
	.ac-history-years__title,
	.ac-history-world .ac-history__title :is(em, strong) { font-size: 1.625rem; }
	.ac-history-trust .ac-history__title strong,
	.page-template-page-history :is(.ac-history-principles__title, .ac-pick-lead .ac-title) { font-weight: 400; }
	.ac-history-split__grid { gap: var(--space-sm); }
	.page-template-page-history :is(.ac-history-legacy, .ac-history-cert) .ac-title { margin-bottom: var(--space-sm); }
	.ac-history__text,
	.ac-history-years__text { color: var(--color-text); }

	.ac-history-hero__media { order: 1; aspect-ratio: 343 / 256; }
	.ac-history-hero__grid { gap: var(--space-lg); }
	.ac-history-hero__body { padding-top: 0; }
	.ac-history-hero__title { font-size: 2rem; }
	.ac-history-hero__subtitle { margin-bottom: var(--space-md); font-size: var(--fs-base); }

	/* Photo strips bleed to the screen edge so the next photo peeks in. */
	:is(.ac-history-photos__row, .ac-history-mosaic, .ac-history-videos__track) {
		gap: 0.5rem;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}
	.ac-history-photos__item { flex-basis: calc((100% - 0.5rem) / 2); aspect-ratio: 168 / 240; }
	.ac-history-mosaic { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; grid-auto-rows: auto; }
	.ac-history-mosaic::-webkit-scrollbar { display: none; }
	.ac-history-mosaic__item:nth-child(n) { flex: 0 0 100%; aspect-ratio: 343 / 256; scroll-snap-align: start; }
	.ac-history-videos__item { flex-basis: 100%; }
	.ac-history-videos__media { aspect-ratio: 343 / 480; }

	.ac-history-principles__grid { gap: 0.5rem; }
	.ac-principle { padding: 1rem; }
	.ac-principle__icon { width: 1.25rem; height: 1.25rem; }

	.ac-history-years__head { text-align: left; }
	.ac-history-years__chips { justify-content: flex-start; }

	.ac-history-legacy__grid { gap: var(--space-lg) 0.5rem; }
	.ac-history-legacy__photo:nth-child(n) { max-width: none; width: 100%; aspect-ratio: 168 / 256; rotate: none; align-self: start; }

	.ac-theme-dark .ac-form__submit { justify-self: start; }
	.ac-theme-dark .ac-pick-lead .ac-title { font-size: 2rem; }
}

/* ==========================================================================
   Management company page (page-management.php, template-parts/management/) — dark, header over the hero
   ========================================================================== */
:is(.page-template-page-management, .page-template-page-community) { --mc-card: #2a2a2a; --mc-card-border: rgb(255 255 255 / 0.08); }

.ac-hero__badge { margin-bottom: var(--space-md); padding: 0.625rem 1rem; color: var(--color-dark); background: #fff; }
.ac-hero--serif .ac-hero__title { font-family: var(--font-accent); font-style: italic; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.ac-hero--serif .ac-hero__text { max-width: 43rem; font-size: var(--fs-xl); }

.ac-mc__title { font-weight: 700; margin-bottom: 0; }
.ac-mc-about .ac-mc__title,
.ac-mc-trust .ac-mc__title { margin-bottom: var(--space-lg); }
.ac-mc-card { background: var(--mc-card); border: 1px solid var(--mc-card-border); border-radius: var(--radius); }
.ac-mc-card__icon { display: block; width: 1.5rem; height: 1.5rem; }
.ac-mc-card__icon svg { width: 100%; height: 100%; }

.ac-mc-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.ac-mc-about__text { font-size: var(--fs-lg); line-height: 1.5; color: var(--color-muted); }
.ac-mc-stats { display: flex; flex-wrap: wrap; gap: var(--space-md) clamp(var(--space-lg), 5vw, 4rem); margin-top: var(--space-lg); }
.ac-mc-stats__value { font-family: var(--font-accent); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1.1; white-space: nowrap; }
.ac-mc-stats__value small { font-size: 0.7em; }
.ac-mc-stats__label { margin: 0.5rem 0 0; font-size: var(--fs-sm); }

.ac-mc-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--space-xl); }
.ac-mc-photos__item { overflow: hidden; height: clamp(15rem, 30vw, 27.5rem); border-radius: var(--radius); }
.ac-mc-photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-mc-photos__item:hover img { transform: scale(1.04); }

.ac-mc-trust__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.ac-mc-trust__item { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
.ac-mc-trust__text { font-size: var(--fs-base); line-height: 1.5; }

/* Sliders: services 3 per view, projects 2 per view; white arrows as in the design. */
.ac-mc-services .ac-arrows,
.ac-mc-objects .ac-arrows { color: var(--color-dark); background: #fff; }
.ac-mc-services .ac-arrows__btn:hover:not(:disabled),
.ac-mc-objects .ac-arrows__btn:hover:not(:disabled) { background: #f0f0f0; }
.ac-mc-slider { --per-view: 3; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ac-mc-slider::-webkit-scrollbar { display: none; }
.ac-mc-slider > * { flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view)); scroll-snap-align: start; }
.ac-mc-slider--half { --per-view: 2; }

.ac-mc-service { display: flex; flex-direction: column; overflow: hidden; padding: 4px; }
.ac-mc-service__media { overflow: hidden; aspect-ratio: 432 / 320; border-radius: calc(var(--radius) - 2px); }
.ac-mc-service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ac-mc-service:hover .ac-mc-service__media img { transform: scale(1.04); }
.ac-mc-service__body { padding: 1.25rem 1.25rem 1.5rem; }
.ac-mc-service__title { margin-bottom: 0.5rem; font-family: var(--font-base); font-size: var(--fs-xl); font-weight: 400; }
.ac-mc-service__text { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-muted); }

.ac-mc-steps__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ac-mc-step { display: flex; flex-direction: column; align-items: center; min-height: 20.25rem; padding: 1.5rem; text-align: center; }
.ac-mc-step__num { align-self: flex-start; font-size: var(--fs-sm); color: var(--color-primary); }
.ac-mc-step__icon { margin-top: 1.75rem; }
.ac-mc-step__title { margin: 1.25rem 0 var(--space-lg); font-family: var(--font-base); font-size: var(--fs-xl); font-weight: 400; }
.ac-mc-step__text { margin-top: auto; align-self: stretch; font-size: var(--fs-xs); line-height: 1.5; text-align: left; color: var(--color-muted); }

.ac-mc-objects { padding-bottom: 0; }
.ac-mc-objects .ac-project { --color-surface: var(--mc-card); border: 1px solid var(--mc-card-border); }
.ac-mc-objects .ac-project__media { aspect-ratio: 662 / 356; }
.page-template-page-management .ac-faq__item { background: var(--mc-card); }
.page-template-page-management .ac-faq .ac-title { font-family: var(--font-accent); font-style: italic; font-weight: 700; }
.page-template-page-management .ac-pick-lead__media { aspect-ratio: 560 / 400; }

@media (max-width: 1100px) {
	.ac-mc-trust__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ac-mc-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-mc-slider { --per-view: 2; }
}

@media (max-width: 960px) {
	.ac-mc-about__grid { grid-template-columns: minmax(0, 1fr); }
	.ac-mc-about .ac-mc__title { margin-bottom: 0; }
	.ac-mc-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-mc-photos__item:first-child { grid-column: 1 / -1; }
	.ac-mc-photos__item { height: 45vw; }
	.ac-mc-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-mc-slider--half { --per-view: 1.15; }
}

@media (max-width: 640px) {
	.ac-mc-slider { --per-view: 1.15; }
	.ac-mc-steps__grid { grid-template-columns: minmax(0, 1fr); }
	.ac-mc-step { min-height: 0; }
	.ac-mc-trust__item { gap: 1rem; padding: 1.25rem; }
	.ac-mc-stats { gap: var(--space-md); }
	.ac-hero--serif .ac-hero__text { font-size: var(--fs-lg); }

	/* Management / community (mobile design): 32px titles, white text, stats in one column, card strips. */
	.ac-mc__title,
	.ac-hero--serif .ac-hero__title,
	.ac-partners--panel .ac-partners__title,
	:is(.page-template-page-management, .page-template-page-community) :is(.ac-faq .ac-title, .ac-pick-lead .ac-title, .ac-mosaic .ac-title, .ac-culture-block .ac-title) { font-size: 2rem; font-weight: 700; }
	.ac-mc__title br { display: none; } /* line breaks set for desktop leave orphans at this width */
	.ac-hero--serif .ac-btn { padding-inline: 1.25rem; font-size: 0.8125rem; letter-spacing: 0; white-space: nowrap; }
	.ac-mc-about__text { font-size: var(--fs-base); color: var(--color-text); }
	.ac-mc-stats { flex-direction: column; gap: var(--space-md); }
	.ac-mc-stats__value { font-size: 2.75rem; }

	:is(.ac-mc-photos, .ac-mc-steps .ac-mc-steps__grid, .ac-cm-values .ac-cm-values__grid, .ac-cm-stories .ac-cm-stories__grid) {
		display: flex;
		gap: 0.5rem;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	:is(.ac-mc-photos, .ac-mc-steps__grid, .ac-cm-values__grid, .ac-cm-stories__grid)::-webkit-scrollbar { display: none; }
	.ac-cm-stories .ac-cm-stories__grid { margin-inline: 0; } /* it is also the .ac-container */
	.ac-mc-photos__item:nth-child(n) { flex: 0 0 100%; height: auto; aspect-ratio: 343 / 240; scroll-snap-align: start; }
	:is(.ac-mc-steps__grid, .ac-cm-values__grid, .ac-cm-stories__grid) { gap: 1rem; }
	:is(.ac-mc-step, .ac-cm-value, .ac-cm-story) { flex: 0 0 calc(100% - 1.125rem); scroll-snap-align: start; }

	/* Trust: one column of short cards. */
	.ac-mc-trust .ac-mc-trust__grid { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
	.ac-mc-trust__item { gap: 1.25rem; padding: 1rem; }

	/* Steps: the CTA goes after the cards. */
	.ac-mc-steps > .ac-container { display: flex; flex-direction: column; }
	.ac-mc-steps .ac-section__head { display: contents; }
	.ac-mc-steps .ac-mc__title { margin-bottom: var(--space-lg); }
	.ac-mc-steps .ac-section__head .ac-btn { order: 1; align-self: flex-start; margin-top: var(--space-lg); }
}

/* ==========================================================================
   Community page (page-community.php, template-parts/community/) — dark, header over the hero.
   Cards share .ac-mc-card / .ac-mc-slider / .ac-mc-service with the management company page.
   ========================================================================== */
.ac-cm-about .ac-history__title,
.ac-cm-stories-head .ac-history__title,
.ac-cm-cta .ac-history__title { font-size: clamp(2rem, 1.25rem + 2.5vw, 3rem); }
.ac-cm-about,
.ac-cm-stories-head { padding-bottom: var(--space-lg); }

.ac-cm-values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ac-cm-value { padding: 1.5rem; }
.ac-cm-value__title { margin: 1.25rem 0 0.75rem; font-family: var(--font-base); font-size: var(--fs-xl); font-weight: 400; }
.ac-cm-value__text { font-size: var(--fs-base); line-height: 1.5; color: var(--color-muted); }

.ac-cm-stories__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ac-cm-story { display: flex; flex-direction: column; padding: 4px; }
.ac-cm-story__media { position: relative; }
.ac-cm-story__cover { aspect-ratio: 432 / 340; border-radius: calc(var(--radius) - 2px); }
.ac-cm-story__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 9 20 / 0.45), transparent 35%); pointer-events: none; }
.ac-cm-story__cover .ac-play { z-index: 2; width: 3rem; height: 3rem; color: #fff; background: rgb(10 9 20 / 0.6); backdrop-filter: blur(6px); }
.ac-cm-story__name { position: absolute; top: 1rem; left: 1rem; z-index: 3; font-size: var(--fs-sm); color: #fff; pointer-events: none; }
.ac-cm-story__body { display: grid; gap: 0.75rem; padding: 1.25rem 0.75rem 0.875rem; }
.ac-cm-story__quote { font-size: var(--fs-base); line-height: 1.35; }
.ac-cm-story__meta { display: grid; gap: 0.375rem; font-size: var(--fs-sm); }
.ac-cm-story__meta div { display: flex; align-items: center; gap: 0.375rem; }
.ac-cm-story__meta svg { width: 1rem; height: 1rem; color: var(--color-muted); }
.ac-cm-story__meta dt { color: var(--color-muted); }
.ac-cm-story__meta dd { margin: 0; }
.ac-cm-story__meta a { color: inherit; text-decoration: none; }
.ac-cm-story__meta a:hover { color: var(--color-primary); }

.ac-cm-cta__body { display: grid; justify-items: start; gap: var(--space-md); }
.ac-cm-cta__text { font-size: var(--fs-lg); }

.ac-cm-events__head { align-items: flex-end; }
.ac-cm-events__text { margin-top: var(--space-sm); font-size: var(--fs-lg); line-height: 1.5; }
.ac-cm-event { display: flex; flex-direction: column; }
.ac-cm-event .ac-mc-service__media { aspect-ratio: 432 / 280; }
.ac-cm-event__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 0.75rem 0.75rem; }
.ac-cm-event__when { display: flex; flex-wrap: wrap; gap: 1rem; margin: auto 0 1.25rem; padding-top: var(--space-md); font-size: var(--fs-sm); }
.ac-cm-event__when span { display: inline-flex; align-items: center; gap: 0.5rem; }
.ac-cm-event__when svg { width: 1.125rem; height: 1.125rem; color: var(--color-muted); }

.ac-cm-benefits { padding-bottom: var(--space-md); }
.ac-cm-benefits .ac-section__head { margin-bottom: 0; align-items: flex-end; }
.ac-cm-benefits + .ac-culture-blocks { padding-top: var(--space-md); }

/* Partners as a white panel with the title on the left and a button (sections/partners.php). */
.ac-partners__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-sm); }
.ac-partners--panel { --color-text: #14131c; margin-top: var(--space-xl); padding-block: var(--space-lg); color: var(--color-text); background: #fff; border-radius: var(--radius-lg); }
.ac-partners--panel .ac-partners__head { justify-content: space-between; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto var(--space-lg); padding-inline: var(--gutter); }
.ac-partners--panel .ac-partners__title { margin-bottom: 0; font-family: var(--font-accent); font-size: var(--fs-h2); font-style: italic; font-weight: 700; text-align: left; }
.ac-partners--panel .ac-partners__button:hover { color: #fff; background: var(--color-text); }

.page-template-page-community .ac-faq__item { background: var(--mc-card); }
.page-template-page-community .ac-faq .ac-title { font-family: var(--font-accent); font-style: italic; font-weight: 700; }
.page-template-page-community .ac-pick-lead__media { aspect-ratio: 560 / 400; }
.page-template-page-community .ac-culture-block .ac-title { font-weight: 700; }

@media (max-width: 1100px) {
	.ac-cm-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-cm-stories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.ac-cm-events__text { font-size: var(--fs-base); }

	/* Partners: logos, then the button. */
	.ac-partners--panel { display: flex; flex-direction: column; }
	.ac-partners--panel .ac-partners__head { display: contents; }
	.ac-partners--panel .ac-partners__title { margin: 0 var(--gutter) var(--space-lg); }
	.ac-partners--panel .ac-partners__button { order: 1; align-self: flex-start; margin: var(--space-lg) var(--gutter) 0; }
}

/* ==========================================================================
   Contacts page (page-contacts.php)
   ========================================================================== */
.ac-contacts { padding-bottom: var(--space-xl); }
.ac-contacts:has(+ .ac-faq) { padding-bottom: 0; }
.ac-contacts .ac-page-header { margin-bottom: var(--space-xl); }
.ac-contacts__panel { display: grid; gap: var(--gap); }
.ac-contacts__panel:not(.is-active) { display: none; }
.ac-contacts__content { margin-top: var(--space-lg); }

/* Segmented switch: white strip, active item filled with the brand colour. */
.ac-segment { display: inline-flex; flex-wrap: wrap; gap: 0.125rem; margin-bottom: var(--space-lg); padding: 0.1875rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.ac-segment__item { min-height: 2.25rem; padding: 0.375rem 1.25rem; font-size: var(--fs-sm); color: var(--color-text); border-radius: calc(var(--radius-sm) - 0.1875rem); transition: color var(--transition), background var(--transition); }
.ac-segment__item:hover { color: var(--color-primary); }
.ac-segment__item.is-active { color: #fff; background: var(--color-primary); }

.ac-office { padding: 0.1875rem; background: var(--color-surface); border-radius: var(--radius-lg); }
.ac-office__head { padding: var(--space-md); background: var(--color-bg); border-radius: calc(var(--radius-lg) - 0.1875rem); }
.ac-office__title { font-size: var(--fs-h3); }
.ac-office__address { margin-top: 0.5rem; font-size: var(--fs-lg); color: var(--color-muted); }
.ac-office__info { display: flex; flex-wrap: wrap; gap: var(--space-sm) clamp(var(--space-md), 5vw, 4.5rem); padding: var(--space-md); }
.ac-office__info dt { font-size: var(--fs-sm); color: var(--color-muted); }
.ac-office__info dd { margin: 0.25rem 0 0; font-size: var(--fs-lg); }
.ac-office__info dd a:not(.ac-office__socials a) { color: inherit; text-decoration: none; }
.ac-office__info dd a:not(.ac-office__socials a):hover { color: var(--color-primary); }
.ac-office__socials { display: flex; gap: 0.5rem; }
.ac-office__socials a { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; color: #fff; background: var(--color-primary); border-radius: 50%; transition: background var(--transition); }
.ac-office__socials a:hover { color: #fff; background: var(--color-primary-hover); }
.ac-office__socials svg { width: 0.875rem; height: 0.875rem; }

.ac-office__map { position: relative; }
.ac-office__canvas { position: relative; aspect-ratio: 1354 / 560; overflow: hidden; background: #e9ecef; border-radius: calc(var(--radius-lg) - 0.1875rem); }
.ac-office__map:not(.is-ready) .ac-office__canvas::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.6) 50%, transparent 70%) 0 0 / 200% 100%;
	animation: ac-shimmer 1.2s linear infinite;
}
.ac-office__map .ac-project__map-link { left: 1rem; bottom: 1rem; }
iframe.ac-office__canvas { width: 100%; height: auto; border: 0; }

/* Map pin: green dot with the label below (the HtmlMarker anchor is the dot centre). */
.ac-pin { position: relative; width: 2.5rem; height: 2.5rem; }
.ac-pin__dot { position: absolute; inset: 0; background: var(--color-primary); border-radius: 50%; box-shadow: 0 2px 8px rgb(10 9 20 / 0.2); }
.ac-pin__dot::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 0.625rem; height: 0.625rem; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.ac-pin__label { position: absolute; top: calc(100% + 0.5rem); left: 50%; padding: 0.75rem 1.25rem; font-size: var(--fs-lg); white-space: nowrap; color: var(--color-text); background: var(--color-surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); transform: translateX(-30%); }

@media (max-width: 960px) {
	.ac-office__canvas { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
	.ac-office__head, .ac-office__info { padding: 1.25rem; }
	.ac-office__address, .ac-office__info dd { font-size: var(--fs-base); }
	.ac-office__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-office__info dd { overflow-wrap: anywhere; }
	.ac-office__canvas { aspect-ratio: 1; }
	.ac-pin__label { padding: 0.5rem 0.875rem; font-size: var(--fs-sm); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
	.ac-nav__list { gap: 1rem; }
	.ac-filter__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-news__grid { grid-template-columns: repeat(2, 1fr); }
	.ac-footer__project-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
	:root { --header-h: 4.25rem; }

	.ac-header__toggle { display: block; }
	/* Mobile menu: grey sheet of white cards — projects strip, «О компании» accordion (initMobileMenu), links. */
	.ac-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		display: flex;
		flex-direction: column;
		gap: var(--space-md);
		padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom));
		overflow-y: auto;
		color: var(--color-text);
		background: var(--color-bg);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--transition), visibility var(--transition);
	}
	.admin-bar .ac-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); }
	.ac-nav.is-open { opacity: 1; visibility: visible; }
	.ac-nav__list { flex-direction: column; gap: 0.75rem; }
	.ac-nav__list > li { background: var(--color-surface); border-radius: var(--radius); }
	.ac-nav__list > li > a,
	.ac-nav__list .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-sm);
		padding: 1.25rem 1rem;
		font-size: var(--fs-base);
		font-weight: 500;
	}
	.ac-nav__list > li:not(.menu-item-has-children) > a::after {
		content: '';
		flex: none;
		width: 1.25rem;
		height: 1.25rem;
		background: var(--color-primary);
		-webkit-mask: url('../images/icons/chevron-right.svg') center / contain no-repeat;
		mask: url('../images/icons/chevron-right.svg') center / contain no-repeat;
	}
	.ac-nav__chevron { color: var(--color-primary); }
	.ac-nav__chevron svg { width: 1.25rem; height: 1.25rem; }
	.ac-nav__list .menu-item-has-children:not(.is-open) > a .ac-nav__chevron svg { transform: none; }
	.ac-nav__list .menu-item-has-children.is-open > a .ac-nav__chevron svg { transform: rotate(180deg); }
	.ac-nav__list :is(.sub-menu, .ac-nav__mega) {
		position: static;
		width: auto;
		min-width: 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.ac-nav__list :is(.sub-menu, .ac-nav__mega)::before,
	.ac-nav__list .sub-menu a::after { display: none; }
	.ac-nav__list :is(.sub-menu, .ac-nav__projects) > li { opacity: 1; transform: none; }
	.ac-nav__list .sub-menu { display: none; margin-top: -0.5rem; padding: 0 1rem 0.75rem; }
	.ac-nav__list .is-open > .sub-menu { display: block; }
	.ac-nav__list .sub-menu a { padding: 0.625rem 0; font-size: var(--fs-sm); color: var(--color-muted); }
	.ac-nav__list .sub-menu .current-menu-item > a { color: var(--color-primary); background: none; }

	/* «Наши проекты»: title + horizontally scrolling two-row strip of projects. */
	.ac-nav__item--projects > a { padding-bottom: 0.75rem; }
	.ac-nav__item--projects > a .ac-nav__chevron { display: none; }
	.ac-nav__list .ac-nav__mega { padding: 0 0 1rem; }
	.ac-nav__list .ac-nav__projects {
		grid-template-columns: none;
		grid-template-rows: repeat(2, auto);
		grid-auto-flow: column;
		grid-auto-columns: 62%;
		gap: 0.75rem 1rem;
		padding-inline: 1rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1rem;
		scrollbar-width: none;
	}
	.ac-nav__projects::-webkit-scrollbar { display: none; }
	.ac-nav__list .ac-nav__projects.is-drifting { scroll-snap-type: none; } /* snapping would fight the drift (initProjectsDrift) */
	.ac-nav__list .ac-nav__projects > [aria-hidden='true'] { display: block; }
	.ac-nav__project { scroll-snap-align: start; }
	.ac-nav__list .ac-nav__project-link { gap: 0.75rem; padding: 0; white-space: nowrap; }
	.ac-nav__list a.ac-nav__project-link:is(:hover, :focus-visible) { background: none; }
	.ac-nav__project-media { width: 2.75rem; border-radius: 0.5rem; }
	.ac-nav__project-title { overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 400; }
	.ac-nav__project-meta,
	.ac-nav__list .ac-nav__mega-all { display: none; }

	.ac-nav .ac-nav__pick { display: flex; position: sticky; bottom: 0; margin-top: auto; }
}

/* Phones: the header row keeps logo, phone, language and burger (city switcher hidden, as in the mobile design). */
@media (max-width: 640px) {
	.ac-header__actions { gap: var(--space-sm); }
	.ac-header__actions .ac-city { display: none; }
	.is-menu-open .ac-header { color: var(--color-text); background: var(--color-surface); }
	.is-menu-open .ac-header--overlay .ac-logo__img--light { display: none; }
	.is-menu-open .ac-header--overlay .ac-logo:has(.ac-logo__img--light) .ac-logo__img--dark { display: block; }
	.is-menu-open .ac-header--overlay .ac-logo:not(:has(.ac-logo__img--light)) .ac-logo__img--dark { filter: none; }

	.ac-hero__inner { grid-template-columns: 1fr; align-items: end; }
	.ac-lead { align-self: start; }
	.ac-features { grid-template-columns: repeat(2, 1fr); margin-top: -3.625rem; }
	.ac-hero__bg { bottom: 0; }
	.ac-hero { padding-bottom: 0; }
	.ac-hero__inner { padding-bottom: calc(3.625rem + var(--space-lg)); }
	.ac-features { margin-bottom: var(--space-md); }

	.ac-purchase__grid,
	.ac-cards-3 { grid-template-columns: repeat(2, 1fr); }

	.ac-footer__grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: 'brand' 'projects' 'links' 'subscribe' 'copy'; }
}

@media (max-width: 960px) {
	.ac-projects__grid,
	.ac-offers__grid { grid-template-columns: 1fr; }
	.ac-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ac-about__stage { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: var(--space-md); aspect-ratio: auto; }
	.ac-about__collage { position: relative; grid-column: 1 / -1; order: 1; aspect-ratio: 4 / 3; }
	.ac-about__photo:nth-child(1) { left: 20%; top: 0; width: 45%; height: 40%; }
	.ac-about__photo:nth-child(2) { left: 0; top: 25%; width: 40%; height: 50%; }
	.ac-about__photo:nth-child(3) { left: 20%; top: 35%; width: 55%; height: 38%; }
	.ac-about__photo:nth-child(4) { left: 40%; top: 50%; width: 60%; height: 45%; }
	.ac-about__stage > .ac-stat { position: static; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
	.ac-stat__label br { display: none; }
}

@media (max-width: 640px) {
	.ac-hero__inner { padding-top: calc(var(--header-h) + var(--space-xl)); }
	.ac-features__text { font-size: var(--fs-sm); }
	.ac-features__item { min-height: 6.25rem; padding: var(--space-sm); }
	.ac-lead { padding: 1.25rem; }

	.ac-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.ac-tabs__item { white-space: nowrap; font-size: var(--fs-sm); }
	.ac-filter__row { grid-template-columns: 1fr; }
	.ac-rooms { flex-wrap: wrap; }
	.ac-rooms__item { flex: 1; }

	.ac-purchase__grid,
	.ac-cards-3,
	.ac-news__grid { grid-template-columns: 1fr; }
	.ac-method { min-height: 13.75rem; }

	.ac-offer { grid-template-columns: 1.4fr 1fr; }
	.ac-faq__question { padding: 1.25rem; font-size: var(--fs-base); }
	.ac-faq__answer { padding: 0 1.25rem 1.25rem; }

	.ac-about__stage { grid-template-columns: 1fr; }
	.ac-about__stage { gap: var(--space-lg); }
	.ac-about__collage {
		order: -1;
		display: flex;
		gap: 0.5rem;
		aspect-ratio: auto;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.ac-about__collage::-webkit-scrollbar { display: none; }
	.ac-about__photo:nth-child(n) { position: static; flex: 0 0 calc(100vw - 2 * var(--gutter)); width: auto; height: auto; aspect-ratio: 343 / 256; box-shadow: none; scroll-snap-align: start; }
	.ac-about__stage > .ac-stat { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
	.ac-stat__value { font-size: 4rem; }

	/* Project cards: tall photo, tags close to the corner, compact caption. */
	.ac-projects__grid { gap: 1rem; }
	.ac-project__visual { aspect-ratio: 335 / 360; }
	.ac-project .ac-tags { top: 0.5rem; left: 0.5rem; }
	.ac-project__body { padding: 0.75rem 0.75rem 1.25rem; }
	.ac-project__title { font-size: var(--fs-base); }
	.ac-project__address { font-size: var(--fs-sm); }

	/* Footer: a two-row projects strip scrolling sideways, each menu folded in its
	   own card (accordion), socials card, then the subscription. */
	.ac-footer .ac-footer__project-list {
		grid-template-columns: none;
		grid-template-rows: repeat(2, auto);
		grid-auto-flow: column;
		grid-auto-columns: 62%;
		gap: 0.75rem 1rem;
		margin-inline: -1.25rem;
		padding-inline: 1.25rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 1.25rem;
		scrollbar-width: none;
	}
	.ac-footer__project-list::-webkit-scrollbar { display: none; }
	.ac-footer__project-list > li { scroll-snap-align: start; min-width: 0; }
	.ac-footer__project { font-size: 0.8125rem; white-space: nowrap; }
	.ac-footer__project span { overflow: hidden; text-overflow: ellipsis; }
	.ac-footer__links { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; padding: 0; background: none; }
	.ac-footer__col { padding: 1.25rem; background: var(--color-surface); border-radius: var(--radius); }
	.ac-footer__menu { padding: 0; }
	.ac-footer__menu > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 1.25rem;
		cursor: pointer;
		pointer-events: auto;
	}
	.ac-footer__menu > summary::after {
		content: '';
		flex: none;
		width: 1.25rem;
		height: 1.25rem;
		background: var(--color-primary);
		-webkit-mask: url('../images/icons/chevron-down.svg') center / contain no-repeat;
		mask: url('../images/icons/chevron-down.svg') center / contain no-repeat;
		transition: transform var(--transition);
	}
	.ac-footer__menu[open] > summary::after { transform: rotate(180deg); }
	.ac-footer__menu .ac-footer__list { gap: 0.625rem; padding: 0 1.25rem 1.25rem; }
	.ac-footer__links .ac-socials { gap: 1.5rem; }
	.ac-fab { --fab-size: 3.5rem; --fab-pulse: 1.5; } /* the ring stays within the 16px gutter */
}

/* ==========================================================================
   Motion — scroll reveals, parallax, smooth scroll
   Hidden states apply only under html.ac-motion (set in <head>, skipped for
   prefers-reduced-motion). JS adds .is-inview when an element enters the viewport.
   Reveals use the individual translate/scale properties so they never fight
   with `transform` (parallax, hover effects).
   ========================================================================== */
:root {
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--reveal-distance: 3rem;
	--reveal-duration: 1.1s;
}

/* Preloader: white overlay with the brand animation (main.js hides it, the CSS animation is a no-JS fallback) */
.ac-preloader {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: var(--gutter);
	background: var(--color-surface);
	transition: opacity 0.5s ease, visibility 0.5s;
	animation: ac-preloader-out 0.5s 9s forwards;
}
.ac-preloader__logo { width: min(26rem, 80vw); height: auto; }
.ac-preloader.is-done { opacity: 0; visibility: hidden; }
html:has(.ac-preloader:not(.is-done)) { overflow: hidden; }
@keyframes ac-preloader-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
	.ac-preloader { display: none; }
}

/* Lenis (lenis.css essentials) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Header is shown only at the top of the page; once scrolled it slides away (initHeaderScroll) */
.ac-header { transition: background var(--transition), color var(--transition), box-shadow var(--transition), translate 0.5s var(--ease-out); }
.ac-header.is-hidden { translate: 0 -100%; }

/* «Выбрать квартиру» takes the header's place as soon as the page is scrolled (not over the filter itself) */
.ac-pick {
	position: fixed;
	top: 1rem;
	left: 50%;
	z-index: 99;
	gap: 0.75rem;
	padding-inline: 1.75rem;
	font-size: var(--fs-base);
	letter-spacing: 0.02em;
	box-shadow: 0 0.75rem 2rem rgb(64 153 85 / 0.35);
	opacity: 0;
	visibility: hidden;
	translate: -50% -150%;
	transition:
		translate 0.6s var(--ease-out),
		opacity 0.4s var(--ease-out),
		visibility 0s linear 0.6s,
		background var(--transition);
}
.ac-pick svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 640px) {
	.ac-pick { min-height: 2.75rem; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: var(--fs-sm); letter-spacing: 0.01em; white-space: nowrap; }
	.ac-pick svg { width: 1.125rem; height: 1.125rem; }
}
.ac-header.is-hidden + .ac-pick:not(.is-away) {
	opacity: 1;
	visibility: visible;
	translate: -50% 0;
	transition: translate 0.7s var(--ease-out), opacity 0.4s var(--ease-out), visibility 0s, background var(--transition);
}
@media (prefers-reduced-motion: reduce) {
	.ac-pick { transition: none; }
}

/* Base reveal: [data-ac-reveal] and direct children of [data-ac-stagger] */
.ac-motion :is([data-ac-reveal]:not([data-ac-reveal='title']), [data-ac-stagger] > *) {
	opacity: 0;
	translate: 0 var(--reveal-distance);
	transition:
		opacity var(--reveal-duration) var(--ease-out) var(--ac-delay, 0ms),
		translate var(--reveal-duration) var(--ease-out) var(--ac-delay, 0ms),
		scale var(--reveal-duration) var(--ease-out) var(--ac-delay, 0ms);
}
.ac-motion [data-ac-reveal='fade'] { translate: none; }
.ac-motion [data-ac-reveal='right'] { translate: var(--reveal-distance) 0; }
.ac-motion [data-ac-reveal='left'] { translate: calc(var(--reveal-distance) * -1) 0; }
.ac-motion :is([data-ac-reveal], [data-ac-stagger] > *).is-inview { opacity: 1; translate: none; scale: none; }

/* Titles: words slide up from behind a mask */
.ac-word { display: inline-block; overflow: hidden; padding: 0 0.2em 0.12em; margin: 0 -0.2em -0.12em; vertical-align: top; } /* side padding keeps italic overhangs inside the mask */
.ac-word__inner { display: inline-block; }
.ac-motion [data-ac-reveal='title'] .ac-word__inner {
	translate: 0 110%;
	rotate: 4deg;
	transform-origin: left bottom;
	transition:
		translate 1.2s var(--ease-out) calc(var(--ac-delay, 0ms) + var(--i, 0) * 55ms),
		rotate 1.2s var(--ease-out) calc(var(--ac-delay, 0ms) + var(--i, 0) * 55ms);
}
.ac-motion [data-ac-reveal='title'].is-inview .ac-word__inner { translate: none; rotate: none; }

/* Card photos settle from a slight zoom as the card appears */
.ac-motion :is(.ac-project__media, .ac-review__media, .ac-news-card__media, .ac-offer__media) img:not(.ac-review__play) {
	scale: 1.18;
	transition: scale 1.6s var(--ease-out) var(--ac-delay, 0ms), transform 0.6s ease;
}
.ac-motion .is-inview :is(.ac-project__media, .ac-review__media, .ac-news-card__media, .ac-offer__media) img { scale: 1; }
.ac-motion .ac-project--soon .ac-project__media img { scale: 1.1; }

/* Purchase method 3D objects drift in from the corner */
.ac-method__img { transform-origin: right bottom; transition: scale 0.9s cubic-bezier(0.25, 0.1, 0.25, 1); will-change: scale; }
.ac-method:hover .ac-method__img { scale: 1.15; }
.ac-motion .ac-method__img { translate: 30% 30%; rotate: -12deg; transition: translate 1.4s var(--ease-out) calc(var(--ac-delay, 0ms) + 200ms), rotate 1.4s var(--ease-out) calc(var(--ac-delay, 0ms) + 200ms), scale 0.9s cubic-bezier(0.25, 0.1, 0.25, 1); }
.ac-motion .ac-method.is-inview .ac-method__img { translate: none; rotate: none; }

/* Special offers: asymmetric, mirrored entrance. The left card unveils from its left edge, the right one from
   its right edge 220ms later; then the photo wipes in along its diagonal and the text rises. Each step has its
   own delay and length, so the two cards never move in lockstep. */
.ac-motion .ac-offers__grid > .ac-offers__col { opacity: 1; translate: none; transition: none; }
.ac-motion .ac-offers__col .ac-offer {
	--d: 0ms;
	clip-path: inset(0 100% 0 0 round var(--radius-lg));
	translate: -1.5rem 0;
	transition: clip-path 1.3s var(--ease-out) var(--d), translate 1.3s var(--ease-out) var(--d);
}
.ac-motion .ac-offers__col:nth-child(even) .ac-offer { --d: 220ms; clip-path: inset(0 0 0 100% round var(--radius-lg)); translate: 1.5rem 0; }
.ac-motion .ac-offers__col .ac-offer__media { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path 1.4s var(--ease-out) calc(var(--d) + 280ms); }
.ac-motion .ac-offers__col .ac-offer__body > * { opacity: 0; translate: 0 1rem; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.ac-motion .ac-offers__col .ac-offer__body > :nth-child(1) { transition-delay: calc(var(--d) + 380ms); }
.ac-motion .ac-offers__col .ac-offer__body > :nth-child(2) { transition-delay: calc(var(--d) + 560ms); }
.ac-motion .ac-offers__col.is-inview .ac-offer { clip-path: inset(0 0 0 0 round var(--radius-lg)); translate: none; }
.ac-motion .ac-offers__col.is-inview .ac-offer__media { clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%); }
.ac-motion .ac-offers__col.is-inview .ac-offer__body > * { opacity: 1; translate: none; }

/* Purchase methods: each card arrives on its own path — the first from the lower left with a slight tilt, the
   second straight up from deeper and last, the third from the lower right tilted the other way — with
   different lengths; the background opens from the bottom, then the title and text follow. */
.ac-motion .ac-purchase__grid > .ac-method {
	--d: 0ms;
	--len: 1.2s;
	opacity: 0;
	translate: -2rem 3.5rem;
	rotate: -1.5deg;
	clip-path: inset(35% 0 0 0 round var(--radius-lg));
	transition:
		opacity var(--len) var(--ease-out) var(--d),
		translate var(--len) var(--ease-out) var(--d),
		rotate var(--len) var(--ease-out) var(--d),
		clip-path calc(var(--len) + 0.2s) var(--ease-out) var(--d),
		transform var(--transition);
}
.ac-motion .ac-purchase__grid > .ac-method:nth-child(3n + 2) { --d: 260ms; --len: 1.45s; translate: 0 5.5rem; rotate: none; }
.ac-motion .ac-purchase__grid > .ac-method:nth-child(3n + 3) { --d: 120ms; --len: 1.3s; translate: 2rem 3.5rem; rotate: 1.5deg; }
.ac-motion .ac-purchase__grid > .ac-method > :is(.ac-method__title, .ac-method__text) { opacity: 0; translate: 0 1.25rem; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.ac-motion .ac-purchase__grid > .ac-method > .ac-method__title { transition-delay: calc(var(--d) + 350ms); }
.ac-motion .ac-purchase__grid > .ac-method > .ac-method__text { transition-delay: calc(var(--d) + 520ms); }
.ac-motion .ac-purchase__grid > .ac-method.is-inview { opacity: 1; translate: none; rotate: none; clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.ac-motion .ac-purchase__grid > .ac-method.is-inview > :is(.ac-method__title, .ac-method__text) { opacity: 1; translate: none; }
/* The 3D object starts after its card has settled. */
.ac-motion .ac-purchase__grid > .ac-method .ac-method__img { transition-delay: calc(var(--d) + 450ms), calc(var(--d) + 450ms), 0s; }

/* Reviews and news: cards come out one after another (2.5× the regular stagger, also for cards added by
   «Показать ещё»): each rises while its background opens from the bottom, the photo settles from a zoom,
   then the inner parts follow in order — name, play button, date, text, link (reviews); title, date (news).
   Scoped to the two grids, whose cards get .is-inview from initReveal() / initLoadMore(). */
.ac-reviews .ac-cards-3 > .ac-review { --reveal-radius: var(--radius-lg); }
.ac-news__grid > .ac-news-card { --reveal-radius: var(--radius); }
.ac-motion :is(.ac-reviews .ac-cards-3 > .ac-review, .ac-news__grid > .ac-news-card) {
	--step: calc(var(--ac-delay, 0ms) * 2.5);
	opacity: 0;
	translate: 0 3rem;
	clip-path: inset(22% 0 0 0 round var(--reveal-radius));
	transition:
		opacity 1s var(--ease-out) var(--step),
		translate 1.2s var(--ease-out) var(--step),
		clip-path 1.3s var(--ease-out) var(--step);
}
.ac-motion :is(.ac-reviews .ac-cards-3 > .ac-review, .ac-news__grid > .ac-news-card).is-inview { opacity: 1; translate: none; clip-path: inset(0 0 0 0 round var(--reveal-radius)); }
.ac-motion :is(.ac-cards-3 > .ac-review .ac-review__media, .ac-news__grid > .ac-news-card .ac-news-card__media) img:not(.ac-review__play) { transition: scale 1.6s var(--ease-out) var(--step), transform 0.6s ease; }
.ac-motion :is(.ac-cards-3 > .ac-review :is(.ac-review__author, .ac-review__body > *), .ac-news__grid > .ac-news-card > :is(.ac-news-card__title, .ac-meta)) {
	opacity: 0;
	translate: 0 0.875rem;
	transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
}
.ac-motion .ac-cards-3 > .ac-review .ac-review__author { translate: -1rem 0; transition-delay: calc(var(--step) + 380ms); }
.ac-motion .ac-cards-3 > .ac-review .ac-review__body > :nth-child(1) { transition-delay: calc(var(--step) + 460ms); }
.ac-motion .ac-cards-3 > .ac-review .ac-review__body > :nth-child(2) { transition-delay: calc(var(--step) + 560ms); }
.ac-motion .ac-cards-3 > .ac-review .ac-review__body > :nth-child(3) { transition-delay: calc(var(--step) + 660ms); }
.ac-motion .ac-news__grid > .ac-news-card > .ac-news-card__title { transition-delay: calc(var(--step) + 420ms); }
.ac-motion .ac-news__grid > .ac-news-card > .ac-meta { transition-delay: calc(var(--step) + 540ms); }
.ac-motion :is(.ac-cards-3 > .ac-review.is-inview :is(.ac-review__author, .ac-review__body > *), .ac-news__grid > .ac-news-card.is-inview > :is(.ac-news-card__title, .ac-meta)) { opacity: 1; translate: none; }
.ac-motion .ac-cards-3 > .ac-review .ac-review__play { opacity: 0; scale: 0.5; transition: opacity 0.6s var(--ease-out) calc(var(--step) + 520ms), scale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--step) + 520ms); }
.ac-motion .ac-cards-3 > .ac-review.is-inview .ac-review__play { opacity: 1; scale: 1; }

/* ==========================================================================
   Project page motion: every block has its own asymmetric entrance.
   New reveal variants (set .is-inview by initReveal like the others):
   curtain — the content wipes open left → right and the photo settles from a zoom;
   curtain-right — the same from the right; iris — opens as a circle from the centre;
   split — slide rows: odd slides arrive from the left, even ones from the right, later.
   The clip-path goes on the children, never on the observed element itself: IntersectionObserver
   counts a fully clipped element as not visible, so it would never be revealed.
   ========================================================================== */
/* :not() lifts the specificity above the base reveal rule, so these only clip, never fade or shift. */
.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right'], [data-ac-reveal='iris'], [data-ac-reveal='split']):not([data-ac-reveal='title']) { opacity: 1; translate: none; }
.ac-motion [data-ac-reveal='curtain'] > :not(template, .ac-infra__list) { clip-path: inset(0 100% 0 0 round var(--radius-lg)); transition: clip-path 1.5s cubic-bezier(0.77, 0, 0.18, 1) var(--ac-delay, 0ms); }
.ac-motion [data-ac-reveal='curtain-right'] > :not(template) { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s cubic-bezier(0.77, 0, 0.18, 1) var(--ac-delay, 0ms); }
.ac-motion [data-ac-reveal='curtain'].is-inview > :not(template, .ac-infra__list) { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.ac-motion [data-ac-reveal='curtain-right'].is-inview > :not(template) { clip-path: inset(0 0 0 0); }
.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right']) img { scale: 1.15; transition: scale 2.2s var(--ease-out) calc(var(--ac-delay, 0ms) + 150ms), transform 0.6s ease; }
.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right']).is-inview img { scale: 1; }
.ac-motion [data-ac-reveal='iris'] > :not(template) { clip-path: circle(0% at 50% 50%); transition: clip-path 1.8s cubic-bezier(0.65, 0, 0.35, 1) var(--ac-delay, 0ms); }
.ac-motion [data-ac-reveal='iris'].is-inview > :not(template) { clip-path: circle(75% at 50% 50%); }
.ac-motion [data-ac-reveal='split'] > * { opacity: 0; translate: -4rem 0; transition: opacity 1.1s var(--ease-out), translate 1.3s var(--ease-out); }
.ac-motion [data-ac-reveal='split'] > :nth-child(even of :not([hidden])) { translate: 4rem 1.5rem; transition-delay: 220ms; }
.ac-motion [data-ac-reveal='split'].is-inview > * { opacity: 1; translate: none; }

/* Hero: the photo settles from a slow zoom, the dark veil lifts, the tags follow the title. */
.ac-motion .ac-phero__slide img { scale: 1.14; transition: scale 2.8s var(--ease-out); }
.ac-motion .ac-phero.is-loaded .ac-phero__slide img { scale: 1; }
.ac-motion .ac-phero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--color-dark); opacity: 0.55; transition: opacity 1.6s ease; pointer-events: none; }
.ac-motion .ac-phero.is-loaded::before { opacity: 0; }

/* Phones: light motion — every reveal is a short fade with a small rise. No clip-path wipes, tilts, photo zooms
   or word-by-word titles (main.js also skips parallax and the hero drift there). Final states stay as above. */
@media (max-width: 960px) {
	:root { --reveal-distance: 1.25rem; --reveal-duration: 0.6s; }
	.ac-motion [data-ac-reveal='title'] { opacity: 0; translate: 0 var(--reveal-distance); transition: opacity var(--reveal-duration) var(--ease-out), translate var(--reveal-duration) var(--ease-out); }
	.ac-motion [data-ac-reveal='title'].is-inview { opacity: 1; translate: none; }
	.ac-motion [data-ac-reveal='title'] .ac-word__inner { translate: none; rotate: none; transition: none; }

	.ac-motion :is(.ac-project__media, .ac-review__media, .ac-news-card__media, .ac-offer__media) img:not(.ac-review__play) { scale: 1; transition: transform 0.6s ease; }
	.ac-motion .ac-project--soon .ac-project__media img { scale: 1.1; }
	.ac-motion .ac-method__img { translate: none; rotate: none; transition: scale 0.9s cubic-bezier(0.25, 0.1, 0.25, 1); }

	.ac-motion .ac-offers__grid > .ac-offers__col { opacity: 0; translate: 0 var(--reveal-distance); transition: opacity var(--reveal-duration) var(--ease-out), translate var(--reveal-duration) var(--ease-out); }
	.ac-motion .ac-offers__grid > .ac-offers__col.is-inview { opacity: 1; translate: none; }
	.ac-motion .ac-offers__col:nth-child(n) .ac-offer { clip-path: none; translate: none; transition: none; }
	.ac-motion .ac-offers__col .ac-offer__media { clip-path: polygon(0 0, 100% 0, 100% 100%, 26% 100%); transition: none; }
	.ac-motion .ac-offers__col .ac-offer__body > * { opacity: 1; translate: none; transition: none; }

	.ac-motion .ac-purchase__grid > .ac-method:nth-child(n) {
		--d: 0ms;
		translate: 0 var(--reveal-distance);
		rotate: none;
		clip-path: none;
		transition: opacity var(--reveal-duration) var(--ease-out) var(--ac-delay, 0ms), translate var(--reveal-duration) var(--ease-out) var(--ac-delay, 0ms), transform var(--transition);
	}
	.ac-motion .ac-purchase__grid > .ac-method:nth-child(n).is-inview { opacity: 1; translate: none; }
	.ac-motion .ac-purchase__grid > .ac-method > :is(.ac-method__title, .ac-method__text) { opacity: 1; translate: none; transition: none; }

	.ac-motion :is(.ac-reviews .ac-cards-3 > .ac-review, .ac-news__grid > .ac-news-card) {
		--step: var(--ac-delay, 0ms);
		translate: 0 var(--reveal-distance);
		clip-path: none;
		transition: opacity var(--reveal-duration) var(--ease-out) var(--step), translate var(--reveal-duration) var(--ease-out) var(--step);
	}
	.ac-motion :is(.ac-cards-3 > .ac-review :is(.ac-review__author, .ac-review__body > *), .ac-news__grid > .ac-news-card > :is(.ac-news-card__title, .ac-meta)) { opacity: 1; translate: none; transition: none; }
	.ac-motion .ac-cards-3 > .ac-review .ac-review__play { opacity: 1; scale: 1; transition: none; }

	/* Project page curtains / iris / split: the block itself fades up instead. */
	.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right'], [data-ac-reveal='iris'], [data-ac-reveal='split']):not([data-ac-reveal='title']) { opacity: 0; translate: 0 var(--reveal-distance); }
	.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right'], [data-ac-reveal='iris'], [data-ac-reveal='split']):not([data-ac-reveal='title']).is-inview { opacity: 1; translate: none; }
	.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right'], [data-ac-reveal='iris']) > :not(template) { clip-path: none; transition: none; }
	.ac-motion :is([data-ac-reveal='curtain'], [data-ac-reveal='curtain-right']) img { scale: 1; transition: transform 0.6s ease; }
	.ac-motion [data-ac-reveal='split'] > *,
	.ac-motion [data-ac-reveal='split'] > :nth-child(even of :not([hidden])) { opacity: 1; translate: none; transition: none; }
}
.ac-motion .ac-phero__tags > * { --ac-delay: 0ms; transition-delay: calc(var(--ac-delay) + 500ms); }

/* About: title from the left (words), text drifts in from the right. Amenity cards: three columns on three
   paths — left column from the lower left with a slight tilt, middle one straight up from deeper and last,
   right one from the lower right tilted the other way; the photo opens from the bottom and settles. */
.ac-motion .ac-amenities > .ac-amenity {
	--d: calc(var(--ac-delay, 0ms) * 1.2);
	--len: 1.2s;
	opacity: 0;
	translate: -1.75rem 3rem;
	rotate: -1.2deg;
	transition: opacity var(--len) var(--ease-out) var(--d), translate var(--len) var(--ease-out) var(--d), rotate var(--len) var(--ease-out) var(--d);
}
.ac-motion .ac-amenities > .ac-amenity:nth-child(3n + 2) { --d: calc(var(--ac-delay, 0ms) * 1.2 + 160ms); --len: 1.45s; translate: 0 5rem; rotate: none; }
.ac-motion .ac-amenities > .ac-amenity:nth-child(3n + 3) { --d: calc(var(--ac-delay, 0ms) * 1.2 + 60ms); --len: 1.3s; translate: 1.75rem 3rem; rotate: 1.2deg; }
.ac-motion .ac-amenities > .ac-amenity.is-inview { opacity: 1; translate: none; rotate: none; }
.ac-motion .ac-amenity__media { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1) calc(var(--d) + 150ms); }
.ac-motion .ac-amenity.is-inview .ac-amenity__media { clip-path: inset(0 0 0 0 round 20px); }
.ac-motion .ac-amenity__media img { scale: 1.2; transition: scale 1.8s var(--ease-out) calc(var(--d) + 150ms), transform 0.6s ease; }
.ac-motion .ac-amenity.is-inview .ac-amenity__media img { scale: 1; }
.ac-motion .ac-amenity__title { opacity: 0; translate: 0 0.75rem; transition: opacity 0.8s var(--ease-out) calc(var(--d) + 550ms), translate 0.8s var(--ease-out) calc(var(--d) + 550ms); }
.ac-motion .ac-amenity.is-inview .ac-amenity__title { opacity: 1; translate: none; }

/* Stats: tiles unfold — the background widens from the left edge (every other one rises from the bottom a beat
   later), then the number rises (and counts up when it is a plain number) and the caption follows. The tile
   itself is never clipped (see the note above): its background is a ::before layer that is. */
.ac-motion .ac-pstats__grid > .ac-pstat { --d: calc(var(--ac-delay, 0ms) * 1.1); position: relative; isolation: isolate; opacity: 1; translate: none; background: none; transition: none; }
.ac-motion .ac-pstats__grid > .ac-pstat::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	clip-path: inset(0 100% 0 0 round var(--radius-lg));
	transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1) var(--d);
}
.ac-motion .ac-pstats__grid > .ac-pstat:nth-child(even) { --d: calc(var(--ac-delay, 0ms) * 1.1 + 140ms); }
.ac-motion .ac-pstats__grid > .ac-pstat:nth-child(even)::before { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
.ac-motion .ac-pstats__grid > .ac-pstat.is-inview::before { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.ac-motion .ac-pstat > * { opacity: 0; translate: 0 1.25rem; transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); }
.ac-motion .ac-pstat > .ac-pstat__value { transition-delay: calc(var(--d) + 380ms); }
.ac-motion .ac-pstat > .ac-pstat__label { transition-delay: calc(var(--d) + 540ms); }
.ac-motion .ac-pstat.is-inview > * { opacity: 1; translate: none; }

/* Infrastructure: the chips list slides in after the frame has opened. */
.ac-motion [data-ac-reveal='curtain'] .ac-infra__list { opacity: 0; translate: -1.5rem 0; transition: opacity 0.9s var(--ease-out) 900ms, translate 1s var(--ease-out) 900ms; }
.ac-motion [data-ac-reveal='curtain'].is-inview .ac-infra__list { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
	.ac-phero::before { display: none; }
}

/* Hero feature tiles: in place from the start, they only fade in one after another once the hero has loaded
   (.ac-hero.is-loaded, initHero). Then each outline icon draws itself (pathLength = 1, initFeatureIcons) on a
   timer; on hover the icon swings and draws again. */
.ac-motion .ac-features__item { --i: 0; opacity: 0; transition: opacity 1s ease calc(var(--i) * 120ms + 150ms); }
.ac-features__item:nth-child(2) { --i: 1; }
.ac-features__item:nth-child(3) { --i: 2; }
.ac-features__item:nth-child(4) { --i: 3; }
.ac-motion .ac-hero.is-loaded .ac-features__item { opacity: 1; }
.ac-motion .ac-features__icon svg :is(path, rect, circle, line, polyline, polygon) {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i) * 180ms + 500ms);
}
.ac-motion .ac-hero.is-loaded .ac-features__icon svg :is(path, rect, circle, line, polyline, polygon) { stroke-dashoffset: 0; }
@keyframes ac-icon-swing {
	30% { rotate: -10deg; scale: 1.08; }
	60% { rotate: 6deg; }
	100% { rotate: 0deg; scale: 1; }
}
@keyframes ac-icon-draw {
	from { stroke-dashoffset: 1; }
	to { stroke-dashoffset: 0; }
}
.ac-motion .ac-features__item:hover .ac-features__icon svg { animation: ac-icon-swing 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ac-motion .ac-features__item:hover .ac-features__icon svg :is(path, rect, circle, line, polyline, polygon) { animation: ac-icon-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1); }

/* About collage photos pop in with a soft scale */
.ac-motion .ac-about__collage > * { scale: 0.88; }

/* About (desktop): the section is pinned for a while; GSAP fades the stats out and scrubs the photos from the
   collage to the scattered layout, revealing the logo in the centre — starting on the approach and holding the
   final layout before the pin releases (initAbout in main.js). */
.ac-about__brand { display: none; }
@media (min-width: 961px) {
	/* Keep the whole stage within the viewport while pinned. */
	.ac-motion .ac-about__stage:not(.is-static) { max-width: calc((100svh - 13rem) * 1360 / 800); margin-inline: auto; cursor: pointer; }
	/* Soft pin (initAbout): the section is a screen + 15% tall (15% = the JS «glide») with the content centred
	   in its first screen, so while pinned the white section fills the screen; the content eases in/out inside it. */
	.ac-motion .ac-about:has(.ac-about__stage:not(.is-static)) { display: flex; align-items: center; min-height: 115svh; padding-block: var(--space-lg) 15svh; overflow: clip; }
	.ac-motion .ac-about:has(.ac-about__stage:not(.is-static)) > .ac-container { width: 100%; }
	.ac-motion .ac-about__stage:not(.is-static) .ac-about__brand {
		position: absolute;
		left: 50%;
		top: 50%;
		z-index: 5;
		display: block;
		width: 28.6%;
		translate: -50% -50%;
		text-align: center;
		opacity: 0;
		visibility: hidden;
	}
	.ac-about__brand-img { width: 100%; height: auto; }
	.ac-about__brand-text { font-family: var(--font-heading); font-size: var(--fs-xl); }

	.ac-motion .ac-about .ac-about__stage:not(.is-static) > .ac-stat { opacity: 1; translate: none; transition: none; }
}

/* Stats: fixed-width digits so the counter doesn't jitter */
.ac-stat__value { font-variant-numeric: tabular-nums; }

/* Hero intro: background settles from a zoom; parallax image is taller than its frame */
.ac-motion .ac-hero__bg { scale: 1.12; transition: scale 2.4s var(--ease-out); }
.ac-motion .ac-hero.is-loaded .ac-hero__bg { scale: 1; }
.ac-motion .ac-hero__bg img { position: absolute; top: -20%; left: 0; height: 120%; }
[data-ac-parallax], [data-ac-hero-content] { will-change: transform; }

@media (max-width: 640px) {
	:root { --reveal-distance: 1.75rem; --reveal-duration: 0.9s; }
}

/* ==========================================================================
   Maintenance page (inc/maintenance.php)
   ========================================================================== */

.ac-maintenance { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: var(--space-lg) var(--gutter); background: var(--color-bg); }
.ac-maintenance__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); max-width: 40rem; text-align: center; }
.ac-maintenance .ac-logo { margin-bottom: var(--space-md); }
.ac-maintenance .ac-logo__img { max-height: 3rem; }
.ac-maintenance__title { margin-bottom: 0; }
.ac-maintenance__text { color: var(--color-muted); }
.ac-maintenance__phone { margin-top: var(--space-sm); }
