/* ==========================================================================
   Bisan Tarabar theme — one stylesheet built on design tokens.

   Rules of the house:
   · Sizes come from the tokens below (type scale, spacing, radii). Components
     never invent their own font sizes; the scale is fluid (390px → 1440px),
     so media queries only change layout, not typography.
   · Logical properties (inline-start/end) everywhere: the same rules render
     right-to-left (fa) and left-to-right (en, ru).
   · EN/RU use Inter and one global --type-scale instead of per-element tweaks.
   Breakpoints: laptop ≤1366 · tablet ≤1024 · mobile ≤767
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "abar"; src: url("../fonts/Abar-VF.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-600.woff2") format("woff2"); font-weight: 600 900; font-style: normal; font-display: swap; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	/* Colour — brand blues */
	--blue-50: #E9E8FD;
	--blue-100: #CCDDFF;
	--blue-600: #134DBF;
	--blue-650: #023FB8;
	--blue: #0A4BCC;          /* primary */
	--blue-700: #0E388D;
	--blue-800: #001E59;
	--blue-900: #051433;
	/* Colour — brand yellow */
	--yellow: #FCCA00;        /* secondary */
	/* Colour — neutrals */
	--ink: #1A1A1A;
	--gray-800: #333333;
	--gray-700: #4D4D4D;
	--gray-600: #636363;
	--gray-500: #999999;
	--gray-300: #B3B3B3;
	--gray-200: #CCCCCC;
	--gray-100: #E6E6E6;
	--gray-50: #F2F2F2;
	--white: #FFFFFF;

	/* Type */
	--font: "abar", Tahoma, sans-serif;
	--font-latin: "Inter", Arial, sans-serif;
	--type-scale: 1;
	--fs-xs: 12px;
	--fs-sm: calc(var(--type-scale) * clamp(13px, 12.63px + .095vw, 14px));
	--fs-base: calc(var(--type-scale) * clamp(14px, 13.26px + .19vw, 16px));
	--fs-md: calc(var(--type-scale) * clamp(16px, 15.26px + .19vw, 18px));
	--fs-lg: calc(var(--type-scale) * clamp(16px, 14.51px + .381vw, 20px));
	--fs-xl: calc(var(--type-scale) * clamp(20px, 18.51px + .381vw, 24px));
	--fs-2xl: calc(var(--type-scale) * clamp(20px, 15.54px + 1.143vw, 32px));
	--fs-3xl: calc(var(--type-scale) * clamp(26px, 17.83px + 2.095vw, 48px));
	--fs-4xl: calc(var(--type-scale) * clamp(32px, 20.11px + 3.048vw, 64px));
	--fs-5xl: calc(var(--type-scale) * clamp(40px, 25.14px + 3.81vw, 80px));
	--fs-deco: clamp(56px, 32.97px + 5.905vw, 118px);   /* faded words behind section titles */
	--lh-tight: 1.2;
	--lh-snug: 1.5;
	--lh-base: 1.75;
	--lh-loose: 2;
	--text-align: justify;                                    /* long paragraphs (fa) */

	/* Space */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 20px;
	--sp-6: 24px;
	--sp-8: 32px;
	--sp-10: 40px;
	--sp-12: 48px;
	--sp-16: 64px;
	--sp-18: 72px;
	--gap: var(--sp-5);                                      /* default distance between siblings */
	--col-gap: clamp(24px, 12.86px + 2.857vw, 64px);         /* between side-by-side columns */
	--section-y: clamp(48px, 10.11px + 9.714vw, 150px);      /* vertical padding of big sections */
	--section-y-sm: clamp(40px, 17.71px + 5.714vw, 100px);   /* vertical padding of compact sections */
	--block-gap: clamp(88px, 76.11px + 3.048vw, 120px);      /* between blocks inside a band */
	--overlap: 32px;                                          /* rounded panels tuck under the previous one */
	--notch-band: 87px;                                       /* notch of the band that follows the counters */
	--notch-overlap: 110px;                                   /* how far that band climbs over the counters */

	/* Shape */
	--radius-sm: 16px;
	--radius: 24px;
	--radius-lg: 32px;
	--radius-pill: 100px;

	/* Layout */
	--container: 1448px;
	--content: 1348px;
	--gutter: 50px;
	--header-top: 48px;
	--header-h: 86px;
	--under-header: calc(-1 * (var(--header-top) + var(--header-h) + 1px));  /* pull a hero under the floating header */

	/* Buttons */
	--btn-py: 12px;
	--btn-px: 24px;

	--ease: cubic-bezier(.4, 0, .2, 1);
}
/* EN/RU: Inter, slightly tighter lines, ragged text instead of justified */
:lang(en), :lang(ru) { --font: var(--font-latin); --type-scale: 1; --lh-base: 1.6; --text-align: start; }

@media (max-width: 1366px) { :root { --header-h: 69px; } }
@media (max-width: 1024px) { :root { --gutter: 20px; --header-top: 32px; --header-h: 64px; } }
@media (max-width: 767px)  { :root { --notch-band: 49px; --header-top: 20px; --header-h: 51px; --btn-py: 10px; --btn-px: 16px; --radius: 20px; --radius-lg: 24px; } }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: normal;
	color: var(--ink);
	background: var(--white);
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: var(--lh-snug); }
ul, ol { margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.icon { width: 1em; height: 1em; flex: none; }
:lang(en) .icon--dir, :lang(ru) .icon--dir { transform: scaleX(-1); }
.latin { font-family: var(--font-latin); }

.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; inset-inline-start: var(--sp-4); top: var(--sp-4); z-index: 100; padding: var(--sp-2) var(--sp-4); border-radius: var(--sp-2); background: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ==========================================================================
   Text styles
   ========================================================================== */
/* Intro paragraph(s) next to a section head */
.lead { font-size: var(--fs-md); line-height: var(--lh-base); text-align: var(--text-align); }
.lead p { margin: 0; }
.lead p + p { margin-top: var(--gap); }

/* Editor content (lists and paragraphs from the WYSIWYG fields) */
.prose { font-size: var(--fs-base); font-weight: 500; line-height: var(--lh-base); color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose strong { font-weight: 700; }
.prose :is(h2, h3) { scroll-margin-top: calc(var(--header-top) + var(--header-h) + var(--sp-4)); color: var(--blue); }
.prose h2 { margin: 1.6em 0 .6em; font-size: var(--fs-xl); }
.prose h3 { margin: 1.4em 0 .5em; font-size: var(--fs-lg); }
.prose ol { margin-block: var(--sp-4); padding-inline-start: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Bulleted list — one look for every list on the site */
.list, .prose ul { list-style: none; }
.prose ul { margin-block: var(--sp-4); }
.list li, .prose li { position: relative; padding-inline-start: 1.2em; font-size: var(--fs-base); line-height: var(--lh-base); }
.list li::before, .prose ul li::before { content: ""; position: absolute; inset-inline-start: .25em; top: calc(var(--lh-base) * .5em - 3px); width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Primitives
   ========================================================================== */
/* Button — one size, three colours; the arrow slides away on hover */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 40px;
	padding: var(--btn-py) var(--btn-px);
	border-radius: var(--radius-pill);
	font-family: var(--font);
	font-size: var(--fs-base);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: gap .25s ease, background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover, .btn:focus-visible { gap: var(--sp-4); }
.btn__icon { width: var(--sp-4); height: var(--sp-4); }
:lang(en) .btn__icon, :lang(ru) .btn__icon { order: -1; }   /* LTR: icon first, as in the EN/RU design */
.btn--primary { background: var(--blue); color: var(--white); }
.btn--accent { background: var(--yellow); color: var(--blue-900); }
.btn--light { background: var(--white); color: var(--blue-900); }

/* Rule — a hairline with a dot at the end; --dots puts bigger dots at both ends.
   Colour follows --accent (blue by default). */
.rule { --dot: 3px; position: relative; display: block; width: 100%; height: 1px; margin: 0; border: 0; overflow: visible; background: currentColor; color: var(--accent, var(--blue)); }
.rule::before, .rule::after { content: ""; position: absolute; top: 50%; width: var(--dot); height: var(--dot); border-radius: 50%; background: currentColor; transform: translateY(-50%); }
.rule::before { inset-inline-end: 0; }
.rule::after { display: none; }
.rule--dots { --dot: 5px; }
.rule--dots::before { inset-inline-end: -2px; }
.rule--dots::after { display: block; inset-inline-start: -2px; }

/* Section head — title, optional faded word behind it, rule */
.section-head { --accent: var(--blue); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); width: 100%; }
.section-head__title { position: relative; z-index: 2; font-size: var(--fs-xl); font-weight: 600; line-height: var(--lh-tight); color: var(--accent); }
.section-head__word {
	position: absolute;
	top: calc(var(--fs-xl) * .6 - var(--fs-deco) / 2);
	inset-inline: 0;                /* clipped at the container edge on narrow screens */
	z-index: 1;
	overflow: hidden;
	font-size: var(--fs-deco);
	font-weight: 600;
	line-height: 1;
	color: var(--gray-50);
	white-space: nowrap;
	pointer-events: none;
}
.section-head .rule { z-index: 2; }
.section-head--center { align-items: center; text-align: center; }
.section-head--center .rule { width: 75%; }
.section-head--on-dark { --accent: var(--yellow); }
.section-head--on-dark .section-head__word { color: rgba(255, 255, 255, .06); }

/* Notched top edge (the "tab" a button sits in). Depth via --notch. */
.notch-top {
	--notch: 64px;
	clip-path: polygon(100% 100%, 0% 100%, 0% 0%, 29.973% 0px, 30.239% calc(var(--notch) * 0.0017), 30.503% calc(var(--notch) * 0.0068), 30.762% calc(var(--notch) * 0.0151), 31.018% calc(var(--notch) * 0.0268), 31.267% calc(var(--notch) * 0.0416), 31.511% calc(var(--notch) * 0.0595), 31.747% calc(var(--notch) * 0.0805), 31.975% calc(var(--notch) * 0.1046), 32.194% calc(var(--notch) * 0.1315), 32.402% calc(var(--notch) * 0.1613), 36.814% calc(var(--notch) * 0.8387), 37.023% calc(var(--notch) * 0.8685), 37.242% calc(var(--notch) * 0.8954), 37.47% calc(var(--notch) * 0.9194), 37.706% calc(var(--notch) * 0.9404), 37.949% calc(var(--notch) * 0.9584), 38.199% calc(var(--notch) * 0.9732), 38.454% calc(var(--notch) * 0.9848), 38.714% calc(var(--notch) * 0.9932), 38.977% calc(var(--notch) * 0.9982), 39.243% var(--notch), 60.754% var(--notch), 61.02% calc(var(--notch) * 0.9982), 61.284% calc(var(--notch) * 0.9932), 61.544% calc(var(--notch) * 0.9848), 61.8% calc(var(--notch) * 0.9731), 62.05% calc(var(--notch) * 0.9582), 62.294% calc(var(--notch) * 0.9402), 62.531% calc(var(--notch) * 0.9191), 62.759% calc(var(--notch) * 0.895), 62.978% calc(var(--notch) * 0.868), 63.187% calc(var(--notch) * 0.8381), 67.577% calc(var(--notch) * 0.1619), 67.786% calc(var(--notch) * 0.132), 68.005% calc(var(--notch) * 0.1049), 68.233% calc(var(--notch) * 0.0809), 68.47% calc(var(--notch) * 0.0598), 68.714% calc(var(--notch) * 0.0418), 68.964% calc(var(--notch) * 0.0269), 69.22% calc(var(--notch) * 0.0152), 69.48% calc(var(--notch) * 0.0068), 69.744% calc(var(--notch) * 0.0017), 70.01% 0px, 100% 0%);
}

/* Entrance animations (main.js adds .is-in when the element enters the viewport) */
[data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal="up"]:not(.is-in) { transform: translateY(40px); }
.js [data-reveal="from-start"]:not(.is-in) { transform: translateX(80px); }
.js [data-reveal="from-end"]:not(.is-in) { transform: translateX(-80px); }
.js:lang(en) [data-reveal="from-start"]:not(.is-in), .js:lang(ru) [data-reveal="from-start"]:not(.is-in) { transform: translateX(-80px); }
.js:lang(en) [data-reveal="from-end"]:not(.is-in), .js:lang(ru) [data-reveal="from-end"]:not(.is-in) { transform: translateX(80px); }
.js [data-reveal="card"] { transition: opacity .3s linear, transform .3s linear, flex-basis .8s, width .8s; }
.js [data-reveal="card"]:not(.is-in) { transform: translateY(60px); }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { transition: none !important; }
	.js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: var(--header-top);
	z-index: 20;
	width: 100%;
	max-width: var(--container);
	margin: var(--header-top) auto 0;
	padding-inline: var(--gutter);
	animation: header-in .8s var(--ease) both;
}
@keyframes header-in { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
.admin-bar .site-header { top: calc(var(--header-top) + 32px); }
.site-header__bar {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-4);
	border-radius: var(--radius-pill);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}
.site-header__bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--white) url("../img/ui/glass.png"); opacity: .8; }
.site-header__logo { flex: none; display: flex; }
.site-header__logo img { width: clamp(132px, 7.2vw + 52px, 217px); height: auto; }
.site-header__cta { flex: none; display: flex; }
.site-header__phone { padding-inline: var(--sp-4); font-weight: 400; }
.site-header__phone .btn__icon { width: var(--sp-6); height: var(--sp-6); }
.site-header__phone:hover { gap: var(--sp-2); }
.site-header__toggle { display: none; color: var(--blue); }
.site-header__toggle .icon { width: 26px; height: 26px; }
.site-header__toggle .toggle-close { display: none; }

/* Menu (desktop) */
.site-nav { flex: 0 1 auto; display: flex; justify-content: center; min-width: 0; }
.site-nav__list { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; list-style: none; padding-inline-end: var(--sp-2); }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav__list > li:not(:last-child)::after { content: ""; width: 1px; height: 18px; background: var(--gray-500); }
.site-nav__list > li > a { display: flex; align-items: center; gap: var(--sp-1); margin-inline: 2px; padding: var(--sp-4) 10px; font-size: var(--fs-base); line-height: 20px; color: var(--blue); transition: color .3s; }
:lang(en) .site-nav__list > li > a, :lang(ru) .site-nav__list > li > a { font-weight: 500; }
.site-nav__list > li > a:hover { color: var(--gray-700); }
.site-nav .menu-item-has-children > a::after { content: ""; width: 8px; height: 12px; background: currentColor; -webkit-mask: url("../img/icons/caret-down.svg") center / contain no-repeat; mask: url("../img/icons/caret-down.svg") center / contain no-repeat; }
.site-nav .sub-menu { position: absolute; top: 100%; inset-inline-start: 2px; z-index: 5; min-width: 156px; list-style: none; background: var(--blue-600); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu, .site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: flex; align-items: center; gap: .3em; padding: 13px var(--sp-5); font-size: var(--fs-sm); font-weight: 500; line-height: 20px; color: var(--white); white-space: nowrap; transition: background-color .2s; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu a:focus-visible { background: var(--blue); }
.site-nav .lang-item img, .site-nav .pll-parent-menu-item img { width: 16px; height: 11px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 550px;
	margin-top: calc(-1 * var(--overlap));
	overflow: hidden;
	background: var(--blue);
	color: var(--white);
	font-size: var(--fs-md);
}
.site-footer__bg { position: absolute; inset-inline: 0; bottom: 0; z-index: -1; mix-blend-mode: multiply; pointer-events: none; }
.site-footer__bg img { width: 100%; }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--gap); }
.site-footer__top, .site-footer__bottom { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 1px; }
.site-footer__top { margin-top: var(--sp-18); }
.site-footer__slogan { margin: 0; font-weight: 500; line-height: 1.7; color: var(--gray-50); }
.site-footer__logo { display: flex; justify-content: center; }
.site-footer__logo img { width: 325px; }
.site-footer__social { display: flex; justify-content: flex-end; gap: var(--sp-1); list-style: none; }
.site-footer__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; transition: transform .3s; }
.site-footer__social a:hover { transform: scale(.9); }
.site-footer__social .icon { width: 32px; height: 32px; color: var(--white); }
.site-footer__rule { --accent: var(--yellow); margin-block: 15px; }
.site-footer__middle { display: flex; justify-content: space-around; align-items: center; gap: var(--gap); min-height: 119px; }
.site-footer__links, .site-footer__offices { flex: 0 1 50%; display: flex; flex-direction: column; gap: var(--gap); }
.site-footer__links { align-items: flex-start; }
.site-footer__menu { display: flex; flex-wrap: wrap; list-style: none; margin-inline: calc(-1 * var(--sp-2)); }
.site-footer__menu a { display: block; padding-inline: var(--sp-2); line-height: 33px; letter-spacing: .2px; word-spacing: 4px; color: var(--white); }
.site-footer__menu a:hover { color: var(--yellow); }
.site-footer__hours { align-self: flex-end; margin: 0; line-height: 33px; }
.site-footer__offices p { margin: 0; line-height: 30px; }
.site-footer__bottom { margin-top: var(--sp-18); font-size: var(--fs-base); line-height: 30px; }
.site-footer__contact { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); }
.site-footer__contact span:first-child { font-size: var(--fs-md); }
.site-footer__email { font-weight: 600; color: var(--gray-50); }
.site-footer__credit { text-align: center; }
.site-footer__copy { text-align: end; }

/* ==========================================================================
   Page structure: bands and blocks
   ========================================================================== */
/* A band is a rounded white panel that wraps several blocks and paints a shared background. */
.band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background-color: var(--white); }
.band > * { position: relative; z-index: 1; }
.band > .block, .band > .vision { max-width: var(--content); margin-inline: auto; }
.band--showcase {
	--notch: var(--notch-band);
	z-index: 4;
	margin-top: calc(-1 * var(--notch-overlap));   /* the notch wraps the counters button */
	padding: calc(var(--notch) + var(--sp-18)) var(--gutter) calc(var(--section-y) + var(--gap));
	background: var(--white) url("../img/ui/image-65.webp") center / cover no-repeat;
}
.band--showcase::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../img/ui/perspective-up.webp") top center / min(100%, 1440px) auto no-repeat; pointer-events: none; }
.band__floor { position: absolute !important; inset-inline: 0; bottom: 0; z-index: 0 !important; height: 549px; background: url("../img/ui/perspective-up-2.webp") bottom center / max(100%, 1100px) auto no-repeat; pointer-events: none; }
.band--mask { z-index: 2; padding: var(--section-y) var(--gutter) 0; background: var(--white) url("../img/ui/mask-group.webp") bottom center no-repeat; }
.band--mask::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../img/ui/mask-group-1.webp") top center / min(100%, 1440px) auto no-repeat; pointer-events: none; }
.band--plain { z-index: 1; margin-top: calc(-1 * var(--overlap)); padding: var(--section-y) var(--gutter); }
.band--plain::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("../img/ui/perspective-up.webp") top center / min(100%, 1440px) auto no-repeat; pointer-events: none; }
.band > .block--faq { max-width: var(--content); margin-inline: auto; }

/* A block is one titled piece of content inside a band. */
.block { display: flex; flex-direction: column; gap: var(--gap); }
.block + .block { margin-top: var(--block-gap); }
.block__more { display: flex; justify-content: center; }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero-home {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 95vh;
	margin-top: var(--under-header);
	overflow: hidden;
	background: var(--blue-700) center / cover no-repeat;
}
.hero-home__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-home__overlay { position: absolute; inset: 0; background: var(--blue-700); opacity: .25; mix-blend-mode: multiply; }
.hero-home__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--gap); width: 100%; }
.hero-home__title { width: 1422px; max-width: 100%; margin-top: -8%; mix-blend-mode: multiply; }
.hero-home__title--mob { display: none; }
.hero-home__slogan-wrap { display: flex; flex-direction: column; align-items: flex-end; width: 85%; }
.hero-home__slogan { width: min(470px, 100%); font-size: var(--fs-3xl); font-weight: 600; line-height: 1.6; text-align: center; color: var(--white); }
.hero-home__cta { position: absolute; bottom: 4%; inset-inline: 0; z-index: 1; width: fit-content; margin-inline: auto; }

/* ==========================================================================
   About (image + text)
   ========================================================================== */
.about {
	position: relative;
	z-index: 6;
	margin-top: calc(-1 * var(--notch) - 4px);
	padding: calc(var(--notch) + var(--block-gap)) var(--gutter) 0;
	overflow: hidden;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background: var(--white) url("../img/ui/perspective-up.webp") top center / cover no-repeat;
}
.about__inner { display: flex; justify-content: center; gap: var(--sp-6); max-width: var(--container); margin-inline: auto; }
.about__media { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.about__img { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; width: 774px; margin-top: calc(-1 * var(--sp-6)); margin-inline: -97px calc(-1 * var(--sp-2)); }
.about__side { flex: 0 1 150px; min-width: 0; width: 150px; }
.about__body { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.about__text { margin-top: var(--sp-3); }
.about__body .btn { margin-top: var(--sp-3); }

/* ==========================================================================
   Services (expanding cards)
   ========================================================================== */
.services {
	position: relative;
	z-index: 1;
	margin: var(--section-y) 0 calc(-1 * var(--overlap));
	padding: 0 var(--gutter) var(--section-y);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: var(--white) url("../img/ui/perspective-up-2.webp") bottom center / cover no-repeat;
}
.services > * { max-width: var(--content); margin-inline: auto; }
.services--dark { --accent: var(--yellow); margin-top: 0; padding-top: var(--section-y); background: var(--blue-900); color: var(--white); }
.services--dark .section-head { --accent: var(--yellow); }
.services--dark .section-head__word { color: rgba(255, 255, 255, .06); }
.services__row { display: flex; gap: var(--gap); margin-top: var(--gap); }
.services__intro { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.services__text p:first-child { font-weight: 500; }
.services__intro .btn { align-self: flex-start; margin-top: var(--sp-3); }
.services__cards { flex: 0 1 958px; display: flex; gap: var(--gap); min-height: 460px; }

.service-card {
	--accent: var(--yellow);
	--box-top: 325px;                 /* resting position of the number/title */
	--box-top-open: 40px;             /* position once the card is opened */
	position: relative;
	isolation: isolate;
	flex: 0 1 25%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	min-width: 0;
	padding: var(--sp-4);
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--gray-100) center / cover no-repeat;
	transition: flex-basis .8s;
}
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue-650); opacity: 0; transition: opacity .4s; }
.service-card__box { position: absolute; top: var(--box-top); inset-inline: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); padding-inline: var(--sp-4); transition: top .8s; }
.service-card__num-wrap { padding-bottom: var(--sp-2); }
.service-card__num { display: block; overflow: hidden; height: 60px; padding-inline-end: var(--sp-4); border-bottom: 1px solid var(--gray-700); font-size: 96px; font-weight: 900; line-height: 96px; color: var(--blue); transition: color .8s, border-color .8s; }
.service-card__title { font-size: var(--fs-md); font-weight: 700; line-height: 1; color: var(--blue); }
.service-card__rule { width: 95%; }
.service-card__text { margin: 0; color: var(--white); }
.service-card__list { color: var(--yellow); }
.service-card__rule, .service-card__text, .service-card__list { opacity: 0; transition: opacity .8s; }
.service-card__box .btn { font-weight: 400; }

.service-card:is(:hover, :focus-within) { flex-basis: 50%; }
.service-card:is(:hover, :focus-within)::before { opacity: .7; }
.service-card:is(:hover, :focus-within) .service-card__box { top: var(--box-top-open); }
.service-card:is(:hover, :focus-within) .service-card__num { color: var(--blue-800); border-color: var(--blue-800); }
.service-card:is(:hover, :focus-within) :is(.service-card__rule, .service-card__text, .service-card__list) { opacity: 1; }

/* ==========================================================================
   Stats (numbers that count up) + counters band
   ========================================================================== */
.stats { --stat-color: var(--yellow); display: flex; justify-content: space-around; align-items: center; gap: var(--gap); width: 100%; max-width: var(--content); }
.stats--light { --stat-color: var(--blue); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--stat-color); }
.stat__num { display: flex; align-items: center; font-size: var(--fs-5xl); font-weight: 700; line-height: var(--lh-tight); }
.stat__label { font-size: var(--fs-lg); font-weight: 700; }

.counters {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 499px;
	padding: 0 var(--gutter) calc(var(--notch-overlap) - var(--notch-band) / 2 - 20px);   /* button centred in the next band's notch */
	overflow: hidden;
	background: var(--blue) center / auto no-repeat;
}
.counters__row { margin-top: var(--section-y); padding: 10px; }
.counters__cta { margin-top: auto; padding-top: var(--sp-10); }
.counters--compact { justify-content: center; min-height: 350px; margin-top: calc(-1 * var(--overlap)); padding-bottom: 0; }
.counters--compact .counters__row { margin-top: 0; }

/* ==========================================================================
   Carousel + cards
   ========================================================================== */
.carousel { --per: 4; --gap: 24px; position: relative; }
.carousel--posts { --gap: 10px; }
.carousel__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.carousel__arrow, .carousel__dots { display: none; }

/* Project card */
.project-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: var(--radius); background: var(--blue-50); }
.project-card__label, .project-card__title { display: block; padding: 10px var(--sp-2); border-radius: var(--radius); background: var(--white); font-size: var(--fs-md); text-align: center; }
.project-card__label span, .project-card__title span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.project-card__label { line-height: 1.1; color: var(--gray-700); }
.project-card__title { font-weight: 500; line-height: 1.3; color: var(--blue); }
.project-card__img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: var(--radius); }

/* Article card */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--gray-800); border-radius: var(--radius); }
.post-card__img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; border-radius: var(--radius); }
.post-card__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap); padding: var(--sp-6) 10px; }
.post-card__title { font-size: var(--fs-base); font-weight: 500; line-height: 1.8; color: var(--blue); }
.post-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 300; color: var(--gray-600); }
.post-card__meta i { width: 5px; height: 5px; background: var(--gray-500); }

/* ==========================================================================
   Why Bisan
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.why-card { display: flex; justify-content: space-around; align-items: center; gap: var(--gap); padding: var(--gap) var(--sp-6); padding-inline-start: var(--sp-12); border-radius: var(--radius); background: var(--gray-200) center / cover no-repeat; }
.why-card__body { flex: 0 1 80%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); min-width: 0; }
.why-card__title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.7; color: var(--blue); }
.why-card__subtitle { margin: 0; font-weight: 700; color: var(--gray-800); }
.why-card__list { color: var(--gray-800); }
.why-card__icon { flex: 0 1 auto; min-width: 0; width: clamp(100px, 11.3vw, 163px); aspect-ratio: 1; object-fit: contain; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; align-items: flex-start; gap: var(--col-gap); }
.faq__intro { flex: 1 1 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-6); min-width: 0; }
.faq__intro-title { font-size: var(--fs-md); font-weight: 500; }
.faq__intro-text { margin: 0; font-size: var(--fs-md); line-height: var(--lh-base); text-align: var(--text-align); }
.faq__list { flex: 2 1 0; min-width: 0; }
.faq__more--list { display: none; justify-content: center; margin-top: var(--sp-3); }
.faq-item { margin-bottom: var(--sp-3); }
.faq-item__q { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-4); border-bottom: 1px solid var(--blue); font-size: var(--fs-base); color: var(--ink); cursor: pointer; list-style: none; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__icon { flex: none; display: grid; place-items: center; width: var(--sp-6); height: var(--sp-6); border: 1px solid var(--blue); border-radius: 50%; }
.faq-item__icon::before { content: ""; width: var(--sp-4); height: var(--sp-4); background: var(--blue); -webkit-mask: url("../img/icons/plus.svg") center / contain no-repeat; mask: url("../img/icons/plus.svg") center / contain no-repeat; }
[open] > summary .faq-item__icon::before { -webkit-mask-image: url("../img/icons/minus.svg"); mask-image: url("../img/icons/minus.svg"); }
.faq-item__a { padding: 10px; line-height: var(--lh-base); }

/* ==========================================================================
   Banner (photo band with a centred title) — cta (dark) · yellow · blue
   ========================================================================== */
.banner {
	position: relative;
	isolation: isolate;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(400px, 23.57vw + 215px, 555px);
	margin-top: calc(-1 * var(--overlap));
	padding: 10px var(--gutter);
	overflow: hidden;
	background: var(--gray-50) center / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.banner__inner { display: flex; flex-direction: column; align-items: center; gap: var(--gap); width: 100%; max-width: var(--container); text-align: center; }
.banner__title { font-size: var(--fs-3xl); font-weight: 800; line-height: 1.6; }
.banner__text { max-width: 70ch; margin: 0; font-size: var(--fs-lg); font-weight: 500; }
.banner--dark { margin-bottom: calc(-1 * var(--overlap)); background-color: var(--blue-900); }
.banner--dark .banner__title { color: var(--yellow); }
.banner--dark .banner__text { color: var(--gray-50); }
.banner--yellow, .banner--blue { border-radius: var(--radius-lg) var(--radius-lg) 0 0; background-position: right center; }
.banner--yellow::before { background: rgba(252, 202, 0, .64); }
.banner--yellow .banner__title { color: var(--blue); }
.banner--yellow .banner__text { color: var(--gray-800); }
.banner--blue::before { background: rgba(31, 18, 212, .48); }
.banner--blue .banner__title { color: var(--yellow); }
.banner--blue .banner__text { color: var(--white); }

/* Vision statement */
.vision { margin: var(--section-y) auto; }
.vision__text { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-loose); text-align: center; color: var(--blue); }
.vision--band { position: relative; z-index: 1; margin: calc(-1 * var(--overlap)) 0 0; padding: var(--section-y) var(--gutter) calc(var(--section-y) + var(--overlap)); border-radius: var(--radius-lg); background: var(--white) bottom center / cover no-repeat; }
.vision--band .vision__text { max-width: var(--content); margin-inline: auto; }

/* ==========================================================================
   Page hero (dark header of inner pages)
   ========================================================================== */
.page-hero {
	--accent: var(--white);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 578px;
	margin-top: var(--under-header);
	/* Top padding clears the floating header, so long titles/texts never slide under it. */
	padding: calc(var(--header-top) + var(--header-h) + var(--sp-12)) var(--gutter) calc(var(--sp-16) + var(--overlap));
	background: var(--blue-900);
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/ui/perspective-dn-2.webp"); mix-blend-mode: overlay; pointer-events: none; }
.page-hero__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: var(--sp-10); width: 100%; max-width: var(--content); margin-inline: auto; }
.page-hero__head { flex: 0 0 48%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap); overflow: hidden; }
.page-hero__eyebrow { font-size: var(--fs-lg); line-height: 1; color: var(--yellow); }
.page-hero__title { font-size: var(--fs-3xl); font-weight: 700; line-height: var(--lh-tight); color: var(--gray-300); }
.page-hero__text { flex: 0 0 40%; font-size: var(--fs-base); font-weight: 300; line-height: var(--lh-loose); color: var(--white); }
.page-hero__text p { margin: 0; }
.page-hero__text strong { font-weight: 400; }
.page-hero__rule { flex: 1 0 100%; }
.page-band { position: relative; z-index: 1; height: clamp(300px, 24.29vw + 205px, 555px); margin-top: calc(-1 * var(--overlap)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: center / cover no-repeat; }

/* ==========================================================================
   Features (service types: image cards, lists around an image)
   ========================================================================== */
.features {
	position: relative;
	isolation: isolate;
	z-index: 1;
	margin-top: calc(-1 * var(--overlap));
	padding: var(--sp-18) var(--gutter) var(--section-y);
	border-radius: var(--radius-lg);
	background: var(--white) url("../img/ui/map.webp") top left / cover no-repeat;
}
.features::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: url("../img/ui/perspective-dn.webp") bottom center no-repeat; opacity: .5; pointer-events: none; }
.features > * { max-width: var(--content); margin-inline: auto; }
.features__cards { display: flex; justify-content: center; align-items: stretch; gap: var(--sp-4); margin-top: var(--gap); }
.feature-card { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.feature-card__img { width: 100%; height: 220px; object-fit: cover; }
.feature-card__body { flex: 1; position: relative; display: flex; flex-direction: column; gap: var(--sp-2); margin-top: -60px; padding: var(--gap); border-radius: var(--radius) var(--radius) 0 0; background: var(--gray-50); }
.feature-card__title { font-size: var(--fs-lg); font-weight: 500; color: var(--blue); }
.feature-card__body .rule { margin-block: var(--sp-1); }
.feature-card__subtitle { margin: 0; font-weight: 500; }
.feature-card__text { margin: 0; color: var(--gray-800); }
.features__lists { display: flex; justify-content: space-around; align-items: center; gap: var(--gap); margin-top: var(--sp-18); }
.features__lists > * { flex: 1 1 0; min-width: 0; }
.features__list-title { font-size: var(--fs-base); font-weight: 500; color: var(--blue); }
.features__image img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-sm); }
.features__extras { display: flex; justify-content: center; align-items: flex-start; gap: var(--gap); margin-top: var(--gap); }
.features__extras > * { flex: 1 1 0; }

/* ==========================================================================
   Icon features (row of small icons with a title)
   ========================================================================== */
.icon-features { padding: var(--section-y) var(--gutter) var(--sp-16); background: url("../img/ui/perspective-up.webp") top center / cover no-repeat; }
.icon-features__row { display: flex; justify-content: space-evenly; gap: var(--gap); max-width: 1090px; margin-inline: auto; }
.icon-feature { display: flex; flex-direction: column; align-items: center; gap: var(--gap); }
.icon-feature__icon { width: var(--sp-12); height: var(--sp-12); }
.icon-feature__title { font-size: var(--fs-lg); font-weight: 500; line-height: 1; text-align: center; color: var(--blue); }

/* Card style: bordered tiles on a rounded white panel */
.icon-features--cards { position: relative; z-index: 2; margin: calc(-1 * var(--overlap)) 0 calc(-1 * var(--overlap)); padding: var(--section-y-sm) var(--gutter); border-radius: var(--radius-lg); background: var(--white); }
.icon-features--cards .icon-features__row { justify-content: center; gap: var(--col-gap); max-width: 960px; }
.icon-features--cards .icon-feature { flex: 0 1 206px; justify-content: center; gap: var(--sp-6); padding: var(--sp-8) var(--sp-4); border: 1px solid var(--gray-500); border-radius: var(--radius); }
.icon-features--cards .icon-feature__icon { width: auto; height: clamp(60px, 45.14px + 3.81vw, 100px); object-fit: contain; }
.icon-features--cards .icon-feature__title { font-weight: 700; line-height: 1.7; }

/* ==========================================================================
   Intro (title beside text, stats, button)
   ========================================================================== */
.intro { position: relative; isolation: isolate; z-index: 1; margin-top: calc(-1 * var(--overlap)); padding: var(--section-y-sm) var(--gutter) calc(var(--section-y-sm) + var(--overlap)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--white) url("../img/ui/map.webp") center / min(100%, 1440px) auto no-repeat; }
.intro::before { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 549px; background: url("../img/ui/perspective-up-2.webp") bottom center / max(100%, 1100px) auto no-repeat; pointer-events: none; }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-10); max-width: var(--content); margin-inline: auto; }
.intro__row { display: flex; align-items: flex-start; gap: var(--col-gap); width: 100%; }
.intro__title { flex: 0 0 auto; width: clamp(200px, 17.5%, 260px); font-size: var(--fs-2xl); font-weight: 600; line-height: var(--lh-tight); text-align: center; color: var(--blue); }
.intro__text { flex: 1 1 0; min-width: 0; font-size: var(--fs-lg); font-weight: 500; }

/* ==========================================================================
   Gallery (licences, certificates, project photos)
   ========================================================================== */
.gallery-block { position: relative; z-index: 2; margin-top: calc(-1 * var(--overlap)); padding: var(--sp-12) var(--gutter) var(--section-y-sm); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--white) url("../img/ui/perspective-dn-2.webp") bottom center / cover no-repeat; }
.gallery-block__inner { display: flex; flex-direction: column; gap: var(--sp-10); max-width: var(--content); margin-inline: auto; }
.gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--col-gap); }
.gallery__item { position: relative; display: flex; flex-direction: column; justify-content: flex-end; flex: 0 1 344px; aspect-ratio: 344 / 477; overflow: hidden; border-radius: var(--radius); transition: transform .3s ease-in-out; }
.gallery__item:hover, .gallery__item:focus-visible { transform: scale(.8); }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery--photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.gallery--photos .gallery__item { flex: none; aspect-ratio: 4 / 3; border-radius: var(--sp-3); }
.gallery--photos .gallery__item:hover, .gallery--photos .gallery__item:focus-visible { transform: none; }
.gallery--photos .gallery__img { transition: transform .4s var(--ease); }
.gallery--photos .gallery__item:hover .gallery__img { transform: scale(1.08); }
.gallery__item { cursor: zoom-in; }
.gallery__caption { position: relative; padding: var(--sp-6) var(--sp-3); border: 1px solid var(--blue-50); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: rgba(77, 77, 77, .28); backdrop-filter: blur(2px); font-family: var(--font-latin); font-size: var(--fs-lg); font-weight: 700; line-height: var(--lh-tight); text-align: center; color: var(--gray-800); }

/* ==========================================================================
   Blog: featured post, archive grid, chips, pagination
   ========================================================================== */
.site-main > .block { max-width: var(--container); margin-inline: auto; padding: var(--section-y-sm) var(--gutter); }
.post-hero { max-width: var(--container); margin: var(--sp-10) auto 0; padding-inline: var(--gutter); }
.post-hero__link { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(320px, 219.43px + 21.9vw, 550px); padding: var(--sp-8) var(--sp-16); overflow: hidden; border-radius: var(--radius-lg); background: var(--blue-700) center / cover no-repeat; }
.post-hero__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); opacity: .35; mix-blend-mode: multiply; transition: opacity .4s; }
.post-hero__link:hover::before { opacity: .55; }
.post-hero__box { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 520px; padding: var(--sp-12) var(--sp-16) var(--sp-12) var(--sp-12); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); color: var(--white); }
.post-hero__title { font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-snug); }
.post-hero__meta { font-size: var(--fs-sm); opacity: .85; }

.intro--half { margin-top: 0; padding-block: var(--section-y-sm) 0; background: none; }
.intro--half::before { display: none; }
.intro--half .intro__title { flex: 1 1 0; width: auto; font-size: var(--fs-xl); font-weight: 700; line-height: var(--lh-snug); text-align: start; }

.post-archive { position: relative; z-index: 1; margin-top: calc(-1 * var(--overlap)); padding: var(--section-y-sm) var(--gutter) calc(var(--section-y-sm) + var(--overlap)); border-radius: var(--radius-lg); background: var(--white) url("../img/ui/perspective-dn-2.webp") bottom center / cover no-repeat; }
.post-archive__inner { display: flex; flex-direction: column; gap: var(--sp-8); max-width: var(--content); margin-inline: auto; }
.post-archive__empty { padding-block: var(--sp-10); text-align: center; color: var(--gray-600); }
.page-content { position: relative; z-index: 1; margin-top: calc(-1 * var(--overlap)); padding: var(--section-y-sm) var(--gutter) calc(var(--section-y-sm) + var(--overlap)); border-radius: var(--radius-lg); background: var(--white); }
.page-content__inner { max-width: 960px; margin-inline: auto; }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--gray-800); transition: color .2s, border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { border-color: var(--blue); background: var(--blue); color: var(--white); }
.chip__count { min-width: 1.6em; padding: 0 .4em; border-radius: var(--radius-pill); background: var(--gray-100); font-size: var(--fs-xs); line-height: 1.6; text-align: center; color: var(--gray-700); }
.chip.is-active .chip__count { background: rgba(255, 255, 255, .2); color: var(--white); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: var(--sp-3); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--gray-800); transition: color .2s, border-color .2s, background-color .2s; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .page-numbers.current { border-color: var(--blue); background: var(--blue); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; }
.pagination .icon { width: var(--sp-4); height: var(--sp-4); }

/* Lightbox (gallery viewer) */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: var(--sp-16) calc(var(--sp-16) + var(--sp-8)); overflow: hidden; border: 0; background: rgba(3, 10, 26, .94); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lb-in .25s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); max-width: 100%; max-height: 100%; margin: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); object-fit: contain; border-radius: var(--radius-sm); user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lightbox.is-loading .lightbox__img { opacity: .25; }
.lightbox__caption { font-size: var(--fs-md); text-align: center; }
.lightbox__caption:empty { display: none; }
.lightbox__count { position: absolute; top: var(--sp-6); inset-inline-start: var(--sp-6); font-size: var(--fs-sm); opacity: .75; }
.lightbox:focus { outline: none; }
.lightbox__close, .lightbox__arrow { position: absolute; display: grid; place-items: center; border-radius: 50%; transition: background-color .2s, color .2s, transform .2s; }
.lightbox__close { top: var(--sp-4); inset-inline-end: var(--sp-4); width: 44px; height: 44px; background: rgba(255, 255, 255, .12); color: var(--white); }
.lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close .icon { width: 16px; height: 16px; }
.lightbox__arrow { top: 50%; width: 52px; height: 52px; background: var(--blue); color: var(--white); transform: translateY(-50%); }
.lightbox__arrow:hover { background: var(--yellow); color: var(--blue-900); }
.lightbox__arrow .icon { width: 22px; height: 22px; }
.lightbox__arrow--prev { inset-inline-start: var(--sp-6); }
.lightbox__arrow--next { inset-inline-end: var(--sp-6); }
.lightbox.is-single :is(.lightbox__arrow, .lightbox__count) { display: none; }
html.has-lightbox { overflow: hidden; }

/* Project details (single project) */
.project-info { position: relative; z-index: 1; margin-top: calc(-1 * var(--overlap)); padding: var(--section-y-sm) var(--gutter) calc(var(--section-y-sm) + var(--overlap)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--white) url("../img/ui/map.webp") top center / cover no-repeat; }
.project-info__inner { display: flex; flex-direction: column; gap: var(--sp-8); max-width: var(--content); margin-inline: auto; }
.project-info__card { display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-8); border-radius: var(--radius); background: var(--gray-100); }
.project-info__title { font-size: var(--fs-xl); font-weight: 600; color: var(--blue); }
.project-info__part { font-weight: 400; color: var(--gray-800); }
.project-info__part strong { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-md); color: var(--ink); }
.project-info__part ul { margin: 0; }

/* ==========================================================================
   Single article
   ========================================================================== */
.article { max-width: var(--container); margin-inline: auto; padding: var(--sp-10) var(--gutter) var(--section-y-sm); }
.article__head { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); max-width: 960px; margin-inline: auto; text-align: center; }
.article__crumbs { font-size: var(--fs-sm); color: var(--gray-600); }
.article__crumbs a { color: var(--blue); }
.article__title { font-size: var(--fs-2xl); font-weight: 700; color: var(--blue); }
.article__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-3); margin: 0; font-size: var(--fs-sm); color: var(--gray-600); }
.article__meta i { width: 5px; height: 5px; background: var(--gray-500); }
.article__excerpt { text-align: var(--text-align); }
.article__image { margin: var(--sp-8) 0 0; }
.article__image img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); }
.article__body { display: flex; align-items: flex-start; gap: var(--col-gap); margin-top: var(--sp-10); }
.article__main { flex: 1 1 0; min-width: 0; }
.share { position: sticky; top: calc(var(--header-top) + var(--header-h) + var(--sp-6)); order: 2; flex: none; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.share__label { font-size: var(--fs-xs); color: var(--gray-600); }
.share__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-600); color: var(--white); transition: background-color .2s, transform .2s; }
.share__link:hover { background: var(--blue); transform: scale(.92); }
.share__link .icon { width: 20px; height: 20px; }
.toc { margin-bottom: var(--sp-8); padding: var(--sp-4) var(--sp-6); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.toc__head { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-xl); font-weight: 500; color: var(--blue); cursor: pointer; list-style: none; }
.toc__head::-webkit-details-marker { display: none; }
.toc__list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--gray-200); list-style: none; }
.toc__item a { color: var(--gray-800); transition: color .2s; }
.toc__item a:hover { color: var(--blue); }
.toc__item--3 { padding-inline-start: var(--sp-6); font-size: var(--fs-sm); }
.article__more { max-width: var(--container); margin-inline: auto; padding: 0 var(--gutter) calc(var(--section-y-sm) + var(--overlap)); }
.page-hero + .article__more { padding-top: var(--section-y-sm); }

/* ==========================================================================
   Inquiry band + forms
   ========================================================================== */
.inquiry { position: relative; isolation: isolate; padding: 0 var(--gutter); background: var(--blue); }
.inquiry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/ui/perspective-dn-2.webp") bottom center / cover no-repeat; mix-blend-mode: overlay; pointer-events: none; }
.inquiry__inner { display: flex; gap: var(--col-gap); max-width: var(--content); margin-inline: auto; }
.inquiry__media { flex: 0 0 calc((100% - var(--col-gap)) * .26); }
.inquiry__content { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; padding-block: var(--gap); }
.inquiry__head { display: flex; flex-direction: column; gap: var(--sp-3); }
.inquiry__text { margin: 0; text-align: var(--text-align); color: var(--blue-100); }

.inquiry--light { z-index: 1; margin-top: calc(-1 * var(--overlap)); padding-block: var(--overlap) calc(var(--overlap) + var(--gap)); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--white) url("../img/ui/perspective-dn-2.webp") bottom center / cover no-repeat; }
.inquiry--light::before { display: none; }
.inquiry--light .inquiry__text { color: var(--blue); }

/* Contact: form card beside the office maps, on a photo under the header */
.contact {
	position: relative;
	z-index: 2;
	margin-top: var(--under-header);
	padding: calc(var(--header-top) + var(--header-h) + var(--block-gap)) var(--gutter) calc(var(--section-y) + var(--block-gap));
	overflow: hidden;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: var(--white) bottom center / cover no-repeat;
}
.contact__inner { display: flex; align-items: stretch; gap: var(--gap); max-width: var(--content); margin-inline: auto; }
.contact__form, .contact__offices { flex: 1 1 0; min-width: 0; }
.contact__form { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-8) var(--sp-5); border-radius: var(--radius); background: var(--blue); }
.contact__head { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact__text { margin: 0; font-weight: 300; line-height: 1.8; color: var(--blue-100); }
.contact__offices { display: flex; flex-direction: column; gap: var(--sp-3); }
.office { flex: 1 1 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-500); border-radius: var(--radius); background: var(--gray-50); }
.office__map { flex: 1 1 auto; width: 100%; min-height: 170px; border: 0; }
.office__text { margin: 0; padding: var(--sp-3); line-height: 1.7; text-align: center; color: var(--gray-800); }

.form__hp { position: absolute !important; inset-inline-start: -9999px; }
.form__fields { display: flex; flex-wrap: wrap; margin: 0 -10px -12px; }
.form__field { flex: 0 0 33.333%; margin-bottom: var(--sp-3); padding: 0 10px; }
.form__field--wide, .form--stack .form__field { flex-basis: 100%; }
.form__field :is(input, textarea) { display: block; width: 100%; height: 40px; padding: 5px 14px; border: 0; border-bottom: 1px solid var(--gray-50); border-radius: 0; background: transparent; line-height: 1.4; color: var(--gray-50); outline: none; }
.form__field textarea { height: auto; resize: vertical; }
.form__field ::placeholder { color: var(--gray-50); opacity: .6; }
.form__field .is-invalid { border-bottom-color: var(--yellow); }
.inquiry--light .form__field :is(input, textarea) { border-bottom-color: var(--gray-500); color: var(--ink); }
.inquiry--light .form__field ::placeholder { color: var(--gray-700); }
.inquiry--light .form__field .is-invalid { border-bottom-color: #d33; }
.inquiry--light .form__message { color: var(--blue); }
.form__actions { flex: 0 0 100%; margin-bottom: var(--sp-3); padding: 0 10px; }
.form.is-busy .form__submit { opacity: .6; }
.form__message { margin: var(--sp-3) 0 0; color: var(--white); }
.form__message:empty { display: none; }
.form__message.is-error { color: var(--yellow); }

/* ==========================================================================
   Laptop ≤ 1366
   ========================================================================== */
@media (max-width: 1366px) {
	.site-nav { flex: 1 1 auto; }
	.about { min-height: 475px; }
	.services__cards { gap: var(--sp-2); }
	.why-card { padding: var(--sp-4); padding-inline-start: var(--sp-6); }
	.features__cards { flex-wrap: wrap; }
	.feature-card { flex: 0 0 31%; }
	.intro__title { width: 24%; }
	.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.icon-features--cards .icon-features__row { gap: var(--sp-6); }
}

/* ==========================================================================
   Tablet ≤ 1024
   ========================================================================== */
@media (max-width: 1024px) {
	/* header: burger menu */
	.site-header__bar { padding: var(--sp-3); }
	.site-header__logo { order: 1; }
	.site-header__toggle { display: inline-flex; order: 0; margin-inline-start: var(--sp-1); padding: var(--sp-2); }   /* off the rounded edge, ~42px tap area */
	.site-header__cta { order: 2; }
	.site-header__phone { padding: var(--sp-2); }
	.site-header__phone .btn__label { display: none; }
	.site-header .site-nav { position: absolute; top: calc(100% + 9px); inset-inline: var(--gutter); display: none; border-radius: var(--radius-sm); background: var(--gray-100); box-shadow: 0 6px 12px rgba(0, 0, 0, .08); }
	.site-header.is-open .site-nav { display: block; }
	.site-header.is-open .toggle-open { display: none; }
	.site-header.is-open .toggle-close { display: block; }
	.site-nav__list { flex-direction: column; align-items: stretch; padding: 0; }
	.site-nav__list > li { flex-direction: column; align-items: stretch; }
	.site-nav__list > li:not(:last-child)::after { display: none; }
	.site-nav__list > li > a { justify-content: center; margin: 0; padding: 13px var(--sp-5); border-bottom: 1px solid var(--gray-200); font-size: var(--fs-sm); }
	.site-nav .sub-menu { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; }
	.site-nav li.is-open > .sub-menu { display: block; }
	.site-nav .sub-menu a { justify-content: center; }

	.about { background-size: contain; }
	.about__inner { flex-direction: column; }
	.about__img { margin-inline: -115px -10px; }
	.services { background-size: auto; }
	.services__row { flex-direction: column; }
	.services__cards { flex-basis: auto; }

	.carousel { --per: 2; }
	.carousel__arrow { position: absolute; top: calc(50% - 14px); z-index: 2; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 6px; border-radius: var(--radius-sm); background: var(--blue); color: var(--gray-50); }
	.carousel__arrow .icon { width: var(--sp-4); height: var(--sp-4); }
	.carousel__arrow--prev { inset-inline-start: calc(-1 * var(--sp-2)); }
	.carousel__arrow--next { inset-inline-end: calc(-1 * var(--sp-2)); }

	.why-grid { grid-template-columns: 1fr; }
	.faq { flex-direction: column; }
	.faq__intro, .faq__list { flex: none; width: 100%; }
	.faq__more--intro { display: none; }
	.faq__more--list { display: flex; }

	.page-hero__inner { flex-direction: column; align-items: stretch; row-gap: var(--sp-4); }
	.page-hero__head, .page-hero__text { flex-basis: auto; width: 100%; }
	.page-hero__rule { flex-basis: auto; margin-top: var(--sp-5); }
	.page-hero { min-height: 0; }

	.inquiry__inner { flex-direction: column; gap: var(--gap); }
	.contact__inner { flex-direction: column; }
	.contact__form, .contact__offices, .office { flex: none; }
	.office__map { height: 220px; }
	.post-grid, .gallery--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__body { flex-direction: column; align-items: stretch; }
	.share { position: static; order: 0; flex-direction: row; justify-content: center; }
	.post-hero__link { padding: var(--sp-6); }
	.post-hero__box { padding: var(--sp-8); }
	.intro__row { flex-direction: column; align-items: stretch; }
	.intro__title { width: auto; }
	.inquiry__media { flex-basis: auto; display: flex; justify-content: center; }
}

/* ==========================================================================
   Mobile ≤ 767
   ========================================================================== */
@media (max-width: 767px) {
	.site-header__bar { padding: var(--sp-1); }

	.site-footer { padding-bottom: var(--sp-12); }
	.site-footer__top { grid-template-columns: 1fr; gap: var(--sp-6); justify-items: center; text-align: center; }
	.site-footer__logo { order: -1; }
	.site-footer__social { justify-content: center; }
	.site-footer__middle { flex-direction: column; align-items: stretch; }
	.site-footer__links, .site-footer__offices { flex-basis: auto; align-items: center; text-align: center; }
	.site-footer__menu { justify-content: center; }
	.site-footer__hours { align-self: center; }
	.site-footer__offices p { line-height: var(--lh-snug); }
	.site-footer__bottom { grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--gap); text-align: center; }
	.site-footer__contact { justify-content: center; }
	.site-footer__credit, .site-footer__copy { text-align: center; }
	.site-footer__bg img { width: 1000px; max-width: none; height: 500px; object-fit: cover; }

	.notch-top {
		--notch: 49px;
		clip-path: polygon(100% 100%, 0% 100%, 0% 0%, 17.726% 0px, 18.162% calc(var(--notch) * 0.0012), 18.594% calc(var(--notch) * 0.0049), 19.02% calc(var(--notch) * 0.0111), 19.438% calc(var(--notch) * 0.0195), 19.847% calc(var(--notch) * 0.0305), 20.246% calc(var(--notch) * 0.0435), 20.633% calc(var(--notch) * 0.059), 21.007% calc(var(--notch) * 0.0766), 21.366% calc(var(--notch) * 0.0963), 21.708% calc(var(--notch) * 0.1182), 32.812% calc(var(--notch) * 0.8818), 33.154% calc(var(--notch) * 0.9036), 33.512% calc(var(--notch) * 0.9234), 33.885% calc(var(--notch) * 0.941), 34.271% calc(var(--notch) * 0.9564), 34.67% calc(var(--notch) * 0.9695), 35.078% calc(var(--notch) * 0.9803), 35.496% calc(var(--notch) * 0.9889), 35.921% calc(var(--notch) * 0.995), 36.352% calc(var(--notch) * 0.9987), 36.787% var(--notch), 63.709% var(--notch), 64.145% calc(var(--notch) * 0.9987), 64.577% calc(var(--notch) * 0.995), 65.003% calc(var(--notch) * 0.9888), 65.421% calc(var(--notch) * 0.9802), 65.831% calc(var(--notch) * 0.9694), 66.23% calc(var(--notch) * 0.9562), 66.617% calc(var(--notch) * 0.9407), 66.991% calc(var(--notch) * 0.9231), 67.349% calc(var(--notch) * 0.9033), 67.691% calc(var(--notch) * 0.8812), 78.727% calc(var(--notch) * 0.1201), 79.073% calc(var(--notch) * 0.0979), 79.437% calc(var(--notch) * 0.078), 79.816% calc(var(--notch) * 0.0601), 80.209% calc(var(--notch) * 0.0445), 80.613% calc(var(--notch) * 0.0314), 81.029% calc(var(--notch) * 0.0204), 81.453% calc(var(--notch) * 0.012), 81.885% calc(var(--notch) * 0.0059), 82.323% calc(var(--notch) * 0.0025), 82.765% calc(var(--notch) * 0.0015), 100% 0%);
	}

	.hero-home { justify-content: flex-end; padding-bottom: 100px; }
	.hero-home__title--desk { display: none; }
	.hero-home__title--mob { display: block; width: 320px; margin-top: 0; }
	.hero-home__slogan-wrap { width: 280px; }

	.about { background-size: 1000px auto; }
	.about__media { justify-content: center; }
	.about__img { height: 220px; margin: 0; margin-inline: -67px -7px; object-fit: cover; object-position: center left; }
	.about__side { flex-basis: 72px; width: 72px; }

	.services { background-size: 1000px auto; }
	.services__cards { flex-direction: column; align-items: center; gap: var(--sp-6); min-height: 0; }
	.service-card { --box-top: 250px; --box-top-open: var(--sp-4); flex: none; width: 100%; min-height: 375px; }
	.service-card__box { gap: var(--sp-2); }
	.service-card__num { height: 54px; font-size: 90px; line-height: 90px; }

	.band--showcase { padding-bottom: var(--sp-12); }
	.band--mask, .band--showcase { background-size: 1000px auto; }
	.band--mask::before { background-size: 1000px auto; }

	.counters { min-height: 400px; padding-inline: 0; }
	.stats { flex-wrap: wrap; row-gap: 37px; column-gap: 0; }
	.stat { flex: 0 0 48%; }
	.counters__row { margin-top: 81px; padding: 0; }
	.counters--compact { min-height: 0; padding-block: var(--section-y); }

	.carousel { --per: 1; }
	.post-card__body { padding: var(--sp-4) var(--sp-2); }

	.why-card { padding: var(--sp-4); }
	.why-card__body { flex-basis: 100%; }
	.why-card__icon { display: none; }
	.vision { margin: var(--sp-6) auto var(--sp-8); }

	.features { padding-top: var(--sp-12); }
	.features__lists, .features__extras { flex-direction: column; align-items: stretch; }
	.feature-card { flex-basis: 100%; }
	.features__lists { margin-top: var(--sp-12); }

	.icon-features { padding: var(--sp-10) var(--gutter); background-size: 1000px auto; }
	.icon-features__row { flex-wrap: wrap; row-gap: var(--sp-8); }
	.icon-feature { flex: 0 0 calc(50% - var(--gap) / 2); }

	.form__field { flex-basis: 100%; }
	.lightbox { padding: var(--sp-16) var(--sp-3) calc(var(--sp-16) + var(--sp-6)); }
	.lightbox__img { max-height: calc(100dvh - 220px); }
	.lightbox__arrow { top: auto; bottom: var(--sp-5); width: 48px; height: 48px; transform: none; }

	.icon-features--cards .icon-features__row { flex-wrap: wrap; gap: var(--sp-3); }
	.icon-features--cards .icon-feature { flex: 0 0 calc(50% - var(--sp-3) / 2); padding: var(--sp-4); }
	.services--dark { border-radius: 0; }
	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.project-info__card { padding: var(--sp-5); }
	.post-hero__link { align-items: flex-end; }
}
