/**
 * Thaicon Theme — Хедер (clamp + rem подход)
 *
 * Все значения в rem. 1rem = 16px на ширине 1440px (дизайн-точка).
 * Формула: Tilda_px / 16 = rem
 *
 * @package Thaicon
 */

/* ================================================================
   ОБЁРТКА ХЕДЕРА
   Tilda: height 80px, bg #fff, shadow bottom
   ================================================================ */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 5rem;                          /* 80px */
	background: var(--t-white);
	box-shadow: 0 1px 0 0 rgba(196, 211, 221, 1);
	z-index: 990;
}

body.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 639px) {
	.site-header {
		height: 60px;
	}
}

.site-header__inner {
	position: relative;
	max-width: 90rem;                      /* 1440px */
	height: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;                     /* 24px */
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;                          /* 20px min */
}


/* ================================================================
   ЛОГОТИП
   Tilda: width 169px, height auto
   ================================================================ */

.site-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: 10.5625rem;                     /* 169px */
	height: 4.5rem;                        /* 72px */
}

.site-header__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media (max-width: 639px) {
	.site-header__logo {
		width: 140px;
		height: 40px;
	}
}


/* ================================================================
   ГЛАВНОЕ МЕНЮ (desktop)
   Tilda: gap 50px, font 14px, uppercase, weight 700
   ================================================================ */

.site-header__menu {
	display: flex;
	align-items: center;
	column-gap: 3.125rem;                  /* 50px */
	flex-wrap: nowrap;
}

.site-header__menu-item {
	font-size: 0.875rem;                   /* 14px */
	font-weight: 700;
	line-height: 1.55;
	color: var(--t-dark);
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--t-speed-normal);
}

.site-header__menu-item:hover,
.site-header__menu-item.is-active {
	color: var(--t-blue-medium);
}

/* На узком десктопе меню плотнее */
@media (max-width: 1200px) and (min-width: 960px) {
	.site-header__menu {
		column-gap: 1.875rem;               /* 30px */
	}
}

/* Скрываем на tablet и ниже */
@media (max-width: 959px) {
	.site-header__menu {
		display: none;
	}
}


/* ================================================================
   КОНТАКТЫ + КНОПКА (desktop)
   Tilda: gap 20px, phone 14px, button padding 15/30
   ================================================================ */

.site-header__contacts {
	display: flex;
	align-items: center;
	column-gap: 1.25rem;                   /* 20px */
	flex-shrink: 0;
}

.site-header__phone {
	font-size: 0.875rem;                   /* 14px */
	font-weight: 700;
	line-height: 1.55;
	color: var(--t-dark);
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--t-speed-normal);
}

.site-header__phone:hover {
	color: var(--t-blue-medium);
}

.site-header__partner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9375rem 1.875rem;           /* 15px 30px */
	background: var(--t-dark);
	color: var(--t-white);
	font-size: 0.875rem;                   /* 14px */
	font-weight: 700;
	line-height: 1.55;
	text-transform: uppercase;
	border-radius: 1.0625rem;              /* 17px */
	transition: background-color var(--t-speed-normal) ease-in-out;
	white-space: nowrap;
}

.site-header__partner-btn:hover {
	background: var(--t-blue);
	color: var(--t-white);
}

@media (max-width: 959px) {
	.site-header__contacts {
		display: none;
	}
}


/* ================================================================
   BURGER (mobile)
   ================================================================ */

.site-header__burger {
	display: none;
	width: 2.25rem;                        /* 36px */
	height: 2.25rem;
	padding: 0.375rem;                     /* 6px */
	background: transparent;
	flex-shrink: 0;
}

.site-header__burger img,
.site-header__burger svg {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

@media (max-width: 959px) {
	.site-header__burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}


/* ================================================================
   МОБИЛЬНОЕ МЕНЮ (slide-in справа)
   На мобиле размеры в px — дизайн-точка другая
   ================================================================ */

.mobile-menu {
	position: fixed;
	top: 0; right: 0; bottom: 0;
	width: 100%;
	max-width: 366px;
	background: var(--t-white);
	z-index: 1000;
	transform: translateX(100%);
	transition: transform var(--t-speed-slow) cubic-bezier(0.76, 0, 0.24, 1);
	display: flex;
	flex-direction: column;
	padding: 60px 30px 40px;
	overflow-y: auto;
}

.mobile-menu.is-open {
	transform: translateX(0);
}

.mobile-menu__overlay {
	position: fixed;
	inset: 0;
	background: rgba(29, 39, 46, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--t-speed-slow);
	z-index: 999;
}

.mobile-menu__overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mobile-menu__close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 37px;
	height: 36px;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.mobile-menu__close::before {
	content: "✕";
	color: var(--t-dark);
	line-height: 1;
}

.mobile-menu__logo {
	display: block;
	width: 160px;
	margin-bottom: 40px;
}

.mobile-menu__logo img {
	max-width: 100%;
	height: auto;
}

.mobile-menu__nav {
	display: flex;
	flex-direction: column;
	margin-bottom: 40px;
}

.mobile-menu__nav a {
	display: block;
	padding: 10px 10px 10px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--t-dark);
	text-transform: uppercase;
	transition: color var(--t-speed-fast);
}

.mobile-menu__nav a:hover {
	color: var(--t-blue-medium);
}

.mobile-menu__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	font-size: 15px;
	font-weight: 400;
	color: var(--t-dark);
}

.mobile-menu__phone-icon {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.mobile-menu__partner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	background: var(--t-dark);
	color: var(--t-white);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 17px;
	transition: background-color var(--t-speed-normal);
	text-align: center;
	margin-bottom: 40px;
}

.mobile-menu__partner-btn:hover {
	background: var(--t-blue);
}

.mobile-menu__socials {
	margin-top: auto;
}

.mobile-menu__socials-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--t-dark);
	margin-bottom: 10px;
}

.mobile-menu__socials-list {
	display: flex;
	gap: 10px;
}

.mobile-menu__social-link {
	width: 36px;
	height: 36px;
	background: var(--t-dark);
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--t-speed-normal);
}

.mobile-menu__social-link:hover {
	background: var(--t-blue);
}

.mobile-menu__social-link img {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}
