/* ==========================================================================
   Trukar — header, mobile menu, footer
   ========================================================================== */

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: #fff; }

.topbar { background: var(--c-bg-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar__items { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar__item { font-weight: 400; font-size: 12px; line-height: 16.5px; letter-spacing: .275px; color: var(--c-blue); }
.topbar__dot { font-weight: 400; font-size: 16px; line-height: 16.5px; color: var(--c-orange); }

.lang { display: flex; align-items: center; gap: 6px; flex: none; }
.lang__item { font-weight: 400; font-size: 12px; line-height: 16.5px; letter-spacing: .55px; color: var(--c-blue); transition: color .2s; }
.lang__item:hover, .lang__item.is-current { color: var(--c-orange); }
.lang__sep { font-family: var(--ff-mono); font-size: 11px; line-height: 16.5px; letter-spacing: .55px; color: var(--c-blue); }
.lang--light .lang__item, .lang--light .lang__sep { color: #fff; }
.lang--light .lang__item.is-current, .lang--light .lang__item:hover { color: var(--c-orange); }

.mainbar { background: #fff; border-bottom: 1px solid var(--c-border); }
.mainbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }

.brand { display: block; flex: none; line-height: 0; }
.brand__img { width: 169px; height: auto; aspect-ratio: 169 / 49.34; }

.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__list a {
	position: relative; display: block;
	font-weight: 300; font-size: 14px; line-height: 19.5px; color: var(--c-blue); white-space: nowrap;
	transition: color .2s;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
	background: var(--c-orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--c-orange); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); }

.mainbar__actions { display: flex; align-items: center; gap: 20px; flex: none; }
.mainbar__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; white-space: nowrap; }
.mainbar__tel { font-weight: 300; font-size: 14px; line-height: 16.25px; color: var(--c-blue); transition: color .2s; }
.mainbar__tel:hover { color: var(--c-orange); }
.mainbar__note { font-weight: 400; font-size: 12px; line-height: 16px; color: var(--c-navy); }

.burger {
	display: none; position: relative; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; color: var(--c-blue);
}
.burger__lines { display: flex; flex-direction: column; gap: 5px; }
.burger__lines span { display: block; width: 20px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
.burger__close { position: absolute; inset: 9px; width: 26px; height: 26px; opacity: 0; transform: rotate(-45deg); transition: opacity .2s, transform .3s var(--ease-out); }
.burger[aria-expanded="true"] .burger__lines { opacity: 0; }
.burger[aria-expanded="true"] .burger__close { opacity: 1; transform: none; }

/* Mobile / tablet menu (dropdown under the header) */
.mobile-menu {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-top: 1px solid var(--c-border);
	border-radius: 0 0 16px 16px;
	box-shadow: 0 24px 40px -24px rgba(19, 15, 115, .25);
	max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; align-items: flex-start; gap: 28px; padding-block: 30px; }
.mobile-menu__nav { width: 396px; max-width: 100%; }
.mobile-menu__list a {
	display: flex; align-items: center; gap: 16px; height: 50px;
	border-bottom: 1px solid var(--c-border-3);
	font-weight: 300; font-size: 20px; line-height: 1.15; letter-spacing: -.5px; color: var(--c-blue);
}
.mobile-menu__list a > span { flex: 1; min-width: 0; }
.mobile-menu__arrow { width: 24px; height: 24px; flex: none; color: var(--c-orange); transition: transform .25s var(--ease-out); }
.mobile-menu__list a:hover .mobile-menu__arrow { transform: translateX(4px); }
.mobile-menu__contact {
	display: flex; flex-direction: column; gap: 18px; width: 280px; align-self: stretch; align-self: flex-start;
	padding: 20px; border-radius: 12px; background: var(--c-bg-soft);
}
.mobile-menu__phone { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.mobile-menu__phone a { font-size: 20px; line-height: 1.2; color: var(--c-blue); }
.mobile-menu__phone span { font-size: 12px; line-height: 17px; color: var(--c-muted); }
.mobile-menu__cta { display: none; }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(19, 15, 115, .25); opacity: 0; transition: opacity .3s; }
.menu-backdrop.is-open { opacity: 1; }
.menu-backdrop[hidden] { display: none; }

@media (max-width: 1199px) {
	.nav, .mainbar__phone { display: none; }
	.burger { display: inline-flex; }
	.mainbar__actions { gap: 12px; }
	.mainbar__inner { height: 72px; }
	.mainbar { border-bottom: .7px solid var(--c-border-2); }
	.brand__img { width: 143.65px; }
	.mainbar__cta { padding-inline: 20px; }
}
@media (min-width: 1200px) {
	.mobile-menu, .menu-backdrop { display: none !important; }
}
@media (min-width: 1200px) and (max-width: 1379px) {
	.mainbar__inner { gap: 16px; }
	.nav__list { gap: 18px; }
	.brand__img { width: 150px; }
	.mainbar__actions { gap: 14px; }
	.mainbar__cta { padding-inline: 22px; }
}
@media (max-width: 767px) {
	.topbar__item:not(:first-child), .topbar__dot { display: none; }
	.mainbar__inner { height: 64px; }
	.brand__img { width: 121.68px; }
	.mainbar__cta { display: none; }
	.mobile-menu { border-radius: 0; }
	.mobile-menu__inner { flex-direction: column; gap: 24px; padding: 22px var(--gutter) 20px; }
	.mobile-menu__nav, .mobile-menu__contact { width: 100%; }
	.mobile-menu__list a { height: 52px; line-height: 24px; }
	.mobile-menu__cta { display: inline-flex; padding-inline: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--c-blue); color: #fff; padding: 80px 0 32px; }
.site-footer .container { max-width: calc(1312px + 128px); padding-inline: 64px; }
.site-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; width: 360px; flex: none; }
.brand--footer .brand__img { width: 169px; }
.site-footer__about { max-width: 330px; font-family: var(--ff-text); font-weight: 400; font-size: 14px; line-height: 22px; color: var(--c-on-dark); }
.site-footer__contacts { display: flex; flex-direction: column; gap: 6px; }
.site-footer__contacts li { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 16px; line-height: 26px; color: #fff; }
.site-footer__contacts .tk-icon { width: 14px; height: 14px; flex: none; color: var(--c-orange); }
.site-footer__contacts a { transition: color .2s; }
.site-footer__contacts a:hover { color: var(--c-orange); }

.site-footer__col { display: flex; flex-direction: column; gap: 14px; }
.site-footer__title { font-weight: 500; font-size: 16px; line-height: 20px; letter-spacing: .5px; color: var(--c-orange); }
.site-footer__links { display: flex; flex-direction: column; gap: 14px; }
.site-footer__links a { display: block; font-weight: 300; font-size: 14px; line-height: 22px; color: #fff; transition: color .2s, transform .2s; }
.site-footer__links a:hover { color: var(--c-orange); }

.site-footer__bottom {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-top: 56px; padding-top: 28px; border-top: .5px solid rgba(255, 255, 255, .3);
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-family: var(--ff-text); font-weight: 300; font-size: 13px; line-height: 18px; color: var(--c-on-dark); }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer__legal-links a:hover { color: var(--c-orange); }

@media (max-width: 1199px) {
	.site-footer { padding: 64px 0 28px; }
	.site-footer .container { padding-inline: var(--gutter); }
	.site-footer__top { flex-wrap: wrap; gap: 40px 24px; }
	.site-footer__brand { width: 100%; }
	.site-footer__about { max-width: 520px; }
	.site-footer__col { flex: 1 1 150px; }
	.site-footer__bottom { margin-top: 48px; }
}
@media (max-width: 767px) {
	.site-footer { padding: 48px 0 24px; }
	.site-footer .container { padding-inline: 20px; }
	.site-footer__top { gap: 32px 24px; }
	.site-footer__about { max-width: none; }
	.site-footer__col { flex: 0 0 calc(50% - 12px); min-width: 0; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 40px; gap: 10px; }
	.site-footer__legal { gap: 10px 20px; }
	.site-footer__legal-links { gap: 10px 20px; }
}
