/* =========================================================================
   KSAmet · layout.css — container, header, footer, sections
   ========================================================================= */

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

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section--dark {
	background: var(--navy);
	color: #cdd8ec;
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* Group-of-companies strip — the very top line, above the topbar */
.group-strip { background: var(--navy-deep); }
.group-strip__inner {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 30px; padding-block: 5px;
}
.group-strip__text {
	font-size: 12px; letter-spacing: .02em; color: #8b9dbd; text-align: center;
}
.group-strip__logos { display: inline-flex; align-items: center; gap: 14px; }
.group-strip__divider { width: 1px; height: 16px; background: rgba(255, 255, 255, .16); }
.group-strip__avp { height: 18px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
/* Reclaim vertical space once the header sticks */
.site-header.is-stuck .topbar { display: none; }

/* Slim top bar */
.topbar {
	background: var(--navy);
	color: #b9c6df;
	font-size: 13.5px;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.topbar__meta { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item .icon { color: var(--blue-500); font-size: 15px; }
.topbar a { color: #cdd8ec; }
.topbar a:hover { color: #fff; }
.topbar__socials { display: inline-flex; gap: 10px; }
.topbar__socials a {
	width: 26px; height: 26px;
	display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	font-size: 13px;
}
.topbar__socials a:hover { background: var(--blue); border-color: var(--blue); }

/* Main header row: brand (left) + phone/CTA (right) */
.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand img, .brand svg { height: 52px; width: auto; }
.brand__img { height: 50px; width: auto; }
.brand__text { line-height: 1.08; }
.brand__name {
	display: block;
	font-family: var(--font-display);
	font-weight: 700; font-size: 27px;
	color: var(--navy); text-transform: uppercase; letter-spacing: .02em;
}
.brand__tag {
	display: block; margin-top: 3px;
	font-size: 11px; color: var(--muted);
	letter-spacing: .14em; text-transform: uppercase;
}

/* Dedicated nav bar on its own row — long RU labels never crowd the header */
.primary-nav { border-top: 1px solid var(--line); }
.nav-bar__inner {
	max-width: var(--container); margin-inline: auto;
	padding-inline: var(--gutter);
	display: flex; align-items: center;
}
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; flex-wrap: nowrap; }
.nav__list a {
	display: block;
	padding: 15px 18px;
	color: var(--ink);
	font-weight: 600;
	font-size: 15.5px;
	white-space: nowrap;
	position: relative;
}
.nav__list a::after {
	content: "";
	position: absolute; left: 18px; right: 18px; bottom: 6px;
	height: 2px; background: var(--blue);
	transform: scaleX(0); transform-origin: left;
	transition: transform .25s var(--ease);
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--blue); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { text-align: right; line-height: 1.15; }
.header__phone a { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--navy); }
.header__phone span { display: block; font-size: 12px; color: var(--muted); }

/* Mobile-only extras inside the drawer */
.nav__mobile-extra { display: none; }

.burger {
	display: none;
	width: 46px; height: 46px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: #fff;
	position: relative;
}
.burger span, .burger span::before, .burger span::after {
	content: ""; position: absolute; height: 2px;
	background: var(--navy); border-radius: 2px; transition: .25s var(--ease);
}
.burger span { left: 11px; right: 11px; top: 50%; transform: translateY(-50%); }
/* pseudo bars span the full width of the (already inset) middle bar */
.burger span::before, .burger span::after { left: 0; right: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================================
   Mobile drawer
   ========================================================================= */
.nav-overlay {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(10, 27, 58, .5);
	opacity: 0; visibility: hidden; transition: .3s var(--ease);
}
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--navy-deep); color: #9fb0cd; }
.footer__top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-block: clamp(48px, 6vw, 72px);
}
.footer__col h4 {
	color: #fff; font-family: var(--font-display); text-transform: uppercase;
	font-size: 16px; letter-spacing: .04em; margin-bottom: 18px;
}
.footer__brand .brand__img { height: 48px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #7c8dad; }
.footer__about { margin-top: 16px; font-size: 15px; line-height: 1.7; color: #91a3c2; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { color: #a9b8d3; font-size: 15px; }
.footer__list a:hover { color: #fff; padding-left: 4px; }
.footer__contact-item { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; line-height: 1.5; }
.footer__contact-item .icon { color: var(--blue-500); font-size: 20px; margin-top: 2px; }
.footer__contact-item a { color: #cdd8ec; }
.footer__socials { display: flex; gap: 10px; margin-top: 8px; }
.footer__socials a {
	width: 40px; height: 40px; display: grid; place-items: center;
	border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%;
	color: #cdd8ec; font-size: 18px;
}
.footer__socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding-block: 22px;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: 13.5px; color: #b6c4da;
}
.footer__bottom a { color: #c7d4e7; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	:root { --header-h: 76px; }
	.header__inner { min-height: 68px; }

	/* Off-canvas drawer: a full-viewport fixed LAYER that clips the sliding
	   panel, so the off-screen transform never widens the page. */
	.primary-nav {
		position: fixed; top: 0; right: 0; left: 0;
		height: 100vh; height: 100dvh;
		z-index: 110;
		margin: 0; padding: 0; border-top: 0;
		overflow: hidden;
		visibility: hidden; pointer-events: none;
		transition: visibility 0s .34s;
	}
	body.nav-open .primary-nav { visibility: visible; transition-delay: 0s; }

	.nav-bar__inner {
		position: absolute; top: 0; right: 0;
		height: 100vh; height: 100dvh;
		width: min(360px, 86vw);
		display: block; max-width: none; margin: 0;
		background: #fff;
		padding: 84px 24px 32px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .34s var(--ease);
		box-shadow: -20px 0 60px rgba(10, 27, 58, .18);
		pointer-events: auto;
	}
	body.nav-open .nav-bar__inner { transform: translateX(0); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); white-space: normal; }
	.nav__list a::after { display: none; }
	.burger { display: block; margin-left: auto; }
	.header__phone { display: none; }
	.header__actions .btn { display: none; }

	.nav__mobile-extra {
		display: block; margin-top: 26px; padding-top: 22px;
		border-top: 1px solid var(--line);
	}
	.nav__mobile-phone {
		display: flex; align-items: center; gap: 10px;
		font-family: var(--font-display); font-size: 22px; font-weight: 600;
		color: var(--navy); margin-bottom: 16px;
	}
	.nav__mobile-phone .icon { color: var(--blue); font-size: 22px; }
	.nav__mobile-socials { display: flex; gap: 12px; margin-top: 18px; }
	.nav__mobile-socials a {
		width: 44px; height: 44px; display: grid; place-items: center;
		border: 1px solid var(--line-strong); border-radius: 50%;
		color: var(--navy); font-size: 20px;
	}
	.nav__mobile-socials a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
}

@media (max-width: 900px) {
	.topbar__meta .topbar__item--hours { display: none; }
	.footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.topbar { display: none; }
	.brand__name { font-size: 21px; }
	.brand img, .brand svg { height: 42px; }
	.footer__top { grid-template-columns: 1fr; }
	.footer__bottom { flex-direction: column; }
}
