/* Andzejevski theme. Fonts are self-hosted: Marcellus (Latin headlines), Forum (Cyrillic headlines), Montserrat (text). */
@font-face{font-family:'Forum';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/forum-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Forum';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/forum-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Forum';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/forum-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Marcellus';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/marcellus-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Marcellus';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/marcellus-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 500;font-display:swap;src:url('../fonts/montserrat-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 500;font-display:swap;src:url('../fonts/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 500;font-display:swap;src:url('../fonts/montserrat-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 500;font-display:swap;src:url('../fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
	--ink: #0D141C;
	--ink-deep: #080D13;
	--grey-bg: #F4F5F6;
	--white: #FFFFFF;
	--blue: #1A5BA9;
	--blue-dark: #123F77;
	--sky: #8DBBEA;
	--mist: #C5CED8;
	--slate: #36424F;
	--line: rgba(255, 255, 255, 0.18);

	--font-display: 'Marcellus', 'Optima', 'Palatino Linotype', serif;
	--font-text: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

	--pad-x: clamp(24px, 4.5vw, 64px);
	--pad-section: clamp(64px, 8vw, 128px);
	--header-h: 105px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[lang="ru"] {
	--font-display: 'Forum', 'Marcellus', 'Palatino Linotype', serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ink);
	color: var(--white);
	font-family: var(--font-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 400;
	padding: 12px 18px;
	background: var(--white);
	color: var(--ink);
	text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Shared type */
.label {
	margin: 0;
	font-family: var(--font-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--blue);
}
.label--light { color: var(--sky); }

.h2 {
	font-family: var(--font-display);
	font-size: clamp(34px, 4.2vw, 60px);
	line-height: 1.08;
}
.h3 {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1.2;
}

.section { padding: var(--pad-section) var(--pad-x); }
.section--grey { background: var(--grey-bg); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }

.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split__label { flex: 1 1 240px; min-width: 0; }
.split__body { flex: 3 1 640px; min-width: 0; }

/* Header */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 12px 48px;
	padding: 28px var(--pad-x);
	background: var(--ink);
	border-bottom: 1px solid var(--line);
	transition: padding 0.3s var(--ease);
}
.header.is-stuck { padding-top: 14px; padding-bottom: 14px; }
.header__logo { display: flex; align-items: center; padding: 4px 0; margin-right: auto; flex-shrink: 0; }
.header__logo-img { display: block; width: 240px; height: 48px; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
.header.is-stuck .header__logo-img { width: 200px; height: 40px; }

.nav {
	display: flex;
	gap: 4px 44px;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}
.nav__link, .header__phone {
	position: relative;
	padding: 12px 0;
	color: var(--white);
	text-decoration: none;
	white-space: nowrap;
}
.nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.32em;
	bottom: 6px;
	height: 1px;
	background: var(--sky);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.nav__link:hover, .header__phone:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 28px; }
.header__phone { font-size: 13px; letter-spacing: 0.08em; color: var(--sky); }

.langs { display: flex; gap: 2px; padding-left: 28px; border-left: 1px solid var(--line); }
.langs__link {
	display: block;
	padding: 12px 7px;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--mist);
	text-decoration: none;
	transition: color 0.2s;
}
.langs__link:hover { color: var(--white); }
.langs__link.is-current { color: var(--sky); }

.burger {
	display: none;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--white);
	font: inherit;
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	cursor: pointer;
}
.burger__icon { position: relative; width: 26px; height: 12px; }
.burger__icon i {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.burger__icon i:first-child { top: 0; }
.burger__icon i:last-child { top: 11px; }
.burger[aria-expanded="true"] .burger__icon i:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: calc(var(--header-h) + 32px) var(--pad-x) max(32px, env(safe-area-inset-bottom));
	background: var(--ink);
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}
.mmenu.is-open { opacity: 1; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__link {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-size: clamp(30px, 8vw, 44px);
	line-height: 1.15;
	color: var(--white);
	text-decoration: none;
}
.mmenu__link:hover { color: var(--sky); }
.mmenu__foot { display: flex; flex-direction: column; gap: 24px; }
.langs--menu { flex-wrap: wrap; gap: 4px 24px; padding: 0; border: 0; }
.langs--menu .langs__link { padding: 10px 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.mmenu__contact { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.mmenu__email, .mmenu__phone { font-family: var(--font-display); font-size: 22px; color: var(--sky); text-decoration: none; }
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 6vw, 96px);
	padding: clamp(56px, 7vw, 112px) var(--pad-x) clamp(40px, 4vw, 64px);
}
.hero__title {
	max-width: 1180px;
	font-family: var(--font-display);
	font-size: clamp(40px, 6.2vw, 92px);
	line-height: 1.06;
	text-wrap: balance;
	overflow-wrap: break-word;
}
.hero__accent { color: var(--sky); }
.hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 64px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.hero__intro { flex: 1 1 380px; min-width: 0; max-width: 520px; font-size: 20px; line-height: 1.45; color: var(--mist); }
.hero__cities { font-weight: 400; }

/* Cities */
.cities { display: flex; flex-direction: column; gap: 40px; padding: 0 var(--pad-x) clamp(64px, 7vw, 112px); }
.cities__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 40px 24px; }
.city { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.city__img { display: block; width: 100%; aspect-ratio: 0.8; object-fit: cover; background: #16202c; }
.city--wide .city__img { aspect-ratio: 2.2; }
.city__cap { display: flex; gap: 20px; font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; }
.city__num { color: var(--sky); }

/* About */
.about__body { display: flex; flex-direction: column; gap: 48px; }
.about__lead { max-width: 940px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 42px); line-height: 1.22; }
.about__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 24px 48px;
	padding-top: 32px;
	border-top: 1px solid var(--ink);
	color: var(--slate);
}

/* What we do */
.biz { display: flex; flex-direction: column; }
.biz__label { padding-bottom: 40px; }
.biz__row { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 40px 0; border-top: 1px solid var(--ink); scroll-margin-top: 84px; }
.biz__row:last-child { border-bottom: 1px solid var(--ink); }
.biz__num { flex: 1 1 240px; min-width: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.2; color: var(--blue); }
.biz__title { flex: 1.5 1 320px; min-width: 0; font-family: var(--font-display); font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; overflow-wrap: break-word; hyphens: auto; }
.biz__text { flex: 1.5 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; color: var(--slate); }

/* Story */
.story { display: flex; flex-direction: column; gap: 56px; }
.story__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 24px; }
.story__item { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--white); }
.story__item .label { font-weight: 400; }
.story__text { max-width: 380px; color: var(--mist); }

/* Values */
.values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 40px 24px;
	padding: clamp(56px, 6vw, 96px) var(--pad-x);
	background: var(--blue);
}
.values__item { display: flex; flex-direction: column; gap: 12px; }
.values__item p { max-width: 360px; }

/* Contact and footer */
.footer {
	display: flex;
	flex-direction: column;
	gap: 72px;
	padding: clamp(64px, 7vw, 112px) var(--pad-x) 32px;
	background: var(--ink-deep);
}
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact__text { font-size: 20px; color: var(--mist); }
.contact__email { min-height: calc(clamp(28px, 4.6vw, 68px) * 1.1 + 15px); max-width: 100%; }
.contact__link {
	display: inline-block;
	max-width: 100%;
	padding: 4px 0 10px;
	border-bottom: 1px solid var(--white);
	font-family: 'Marcellus', 'Optima', 'Palatino Linotype', serif;
	font-size: clamp(28px, 4.6vw, 68px);
	line-height: 1.1;
	color: var(--white);
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.25s, border-color 0.25s;
}
.contact__link:hover { color: var(--sky); border-color: var(--sky); }
.contact__noscript { font-size: 16px; color: var(--mist); }
.contact__phone { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); color: var(--sky); text-decoration: none; }
.contact__phone:hover { color: var(--white); }

.email.is-ready, .copy.is-ready, .fab__btn.is-ready { animation: andz-fade 0.5s var(--ease) both; }
@keyframes andz-fade { from { opacity: 0; } to { opacity: 1; } }

.copy {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mist);
	font: inherit;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s;
}
.copy:hover, .copy.is-done { color: var(--sky); }

.footer__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--mist);
}
.footer__note { flex: 1 1 480px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer__links a { display: inline-block; padding: 6px 0; color: var(--mist); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.footer__links a:hover { color: var(--white); text-decoration-color: var(--white); }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__logo { display: block; width: 150px; height: 30px; }

/* Floating buttons (phones and small tablets only) */
.fab {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 80;
	display: none;
	flex-direction: column;
	gap: 12px;
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.fab.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
body.nav-open .fab { display: none; }
.fab__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.fab__btn:hover, .fab__btn:active { background: var(--blue-dark); color: var(--white); }
.fab__btn--call { background: var(--white); color: var(--ink); }
.fab__btn--call:hover, .fab__btn--call:active { background: var(--mist); color: var(--ink); }

/* Legal pages and 404 */
.doc { background: var(--grey-bg); color: var(--ink); padding: clamp(56px, 7vw, 112px) var(--pad-x) var(--pad-section); }
.doc__inner { max-width: 820px; }
.doc__title { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); line-height: 1.08; margin-bottom: 40px; overflow-wrap: break-word; }
.doc--404 { background: var(--ink); color: var(--white); min-height: 60vh; }
.doc--404 .doc__title { margin: 16px 0 24px; }
.doc__lead { font-size: 20px; color: var(--mist); margin-bottom: 40px; }
.btn {
	display: inline-block;
	padding: 16px 28px;
	border: 1px solid var(--white);
	color: var(--white);
	font-size: 12px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--white); color: var(--ink); }
.prose { color: var(--slate); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-family: var(--font-display); font-size: 28px; line-height: 1.2; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font-family: var(--font-display); font-size: 22px; line-height: 1.25; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: 0.4em; }
.prose a { text-underline-offset: 3px; }

/* Scroll reveal: content is always visible without JavaScript */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Tablet and phone */
@media (max-width: 1180px) {
	.nav, .header .langs, .header__phone { display: none; }
	.burger { display: inline-flex; }
	.header { padding-top: 20px; padding-bottom: 20px; }
	:root { --header-h: 89px; }
}
@media (min-width: 1181px) {
	.mmenu { display: none !important; }
}
@media (max-width: 960px) {
	.fab { display: flex; }
	.footer { padding-bottom: 104px; }
}
@media (max-width: 600px) {
	.header__logo-img, .header.is-stuck .header__logo-img { width: 190px; height: 38px; }
	.header { padding-top: 16px; padding-bottom: 16px; }
	:root { --header-h: 75px; }
	.burger__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.hero__intro, .contact__text { font-size: 18px; }
	.footer { gap: 56px; }
	.footer__bar { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.header { position: static; }
	.fab, .burger, .mmenu, .copy { display: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* Logged-in toolbar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
