/* wg.css — WERGRAUF: хедер + футер */

/* =====================
   Переменные
===================== */

:root {
	--base-color: #4a4f59e6;
	--base-color-400: #385081;
	--gray-color-600: #36393E;
	--white-color: #fff;
	--shadow-200: 2px 2px 12px 0 rgba(18, 46, 83, 0.1);
	--nav-bg: #36393E;
	--nav-radius: 12px;
	--header-top-bg: #fff;
	--container-max: 1280px;
	--container-pad: 0 24px;
}

/* =====================
   Сброс и база
===================== */

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--gray-color-600);
	-webkit-font-smoothing: antialiased;
}

a {
	text-decoration: none;
	color: inherit;
}

/* =====================
   Контейнер
===================== */

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

/* =====================
   Хедер
===================== */

.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 990;
	background: #fff;
}

/* Класс header-fixed вешает JS — оставляем для совместимости, но position уже задан выше */
.header.header-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

/* Отступ под фиксированный хедер */
.header__fixed-fill {
	display: none;
}

.header-wrapper {
	display: flex;
	flex-direction: column;
}

/* Верхняя полоска */
.header__top {
	background: var(--header-top-bg);
	box-shadow: none;
	transition: box-shadow 0.2s ease;
}

.header.header-fixed .header__top {
	box-shadow: var(--shadow-200);
}

.header__top .header__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	gap: 16px;
}

/* Телефон и режим работы */
.contact_top {
	display: flex;
	flex-direction: column;
	color: var(--gray-color-600);
	font-size: 14px;
	line-height: 1.4;
	min-width: 0;
}

/* Текстовый режим включается только там, где обе строки влезают целиком,
   поэтому переносы не нужны — на узких экранах работает иконка */
.contact_top__phone,
.contact_top__hours {
	white-space: nowrap;
}

/* Иконка-телефон — только для узких экранов, где не влезает текст */
.contact_top__icon {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: -11px; /* компенсируем тап-зону, чтобы иконка не уезжала от края */
	color: var(--gray-color-600);
}

@media (min-width: 768px) {
	.contact_top {
		font-size: 16px;
	}
}

/* Лого */
.header__logo-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.header__logo-link {
	display: flex;
	align-items: center;
}

.header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.header__logo img {
	display: block;
	height: 48px;
	width: auto;
}

/* Иконки справа */
.header__user-menu {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
}

.header__wishlist-wrapper,
.header__compare-wrapper,
.header__cart-wrapper {
	display: none;
}

@media (min-width: 1024px) {
	.header__wishlist-wrapper,
	.header__compare-wrapper,
	.header__cart-wrapper {
		display: flex;
	}
}

/* Иконка (wishlist, compare) */
.wishlist__icon,
.compare__icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	position: relative;
	color: var(--gray-color-600);
	cursor: pointer;
	width: 48px;
	height: 48px;
}

.wishlist__icon-icon,
.compare__icon-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wishlist__icon-caption,
.compare__icon-caption {
	display: none;
}

.cart__icon-caption {
	display: none;
}

/* Подписи показываем только на широких экранах */
@media (min-width: 1280px) {
	.wishlist__icon-caption,
	.compare__icon-caption,
	.cart__icon-caption {
		display: block;
		font-size: 11px;
		font-weight: 500;
		color: var(--gray-color-600);
		white-space: nowrap;
	}
}

.wishlist__icon-count {
	display: none; /* счётчик wishlist не используем */
}

/* Корзина */
.cart__icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	position: relative;
	color: var(--gray-color-600);
	cursor: pointer;
	width: 48px;
	height: 48px;
	text-decoration: none;
}

.cart__icon-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart__icon-caption {
	display: none;
}

@media (min-width: 1440px) {
	.cart__icon-caption {
		display: block;
		font-size: 11px;
		font-weight: 500;
	}
}

/* Счётчик корзины */
.cart__icon-count {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(35%, -55%);
	pointer-events: none;
	border-radius: 20px;
	min-width: 21px;
	height: 16px;
	text-align: center;
	background-color: #232528;
	color: #f5f7fc;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	padding: 0 5px;
	transition: opacity 0.25s ease;
	opacity: 0;
}

.cart__icon.not-empty .cart__icon-count {
	opacity: 1;
}

.cart__popover {
	display: none;
}

/* Нижняя полоска — навигация, вплотную к топу */
.header__bottom {
	position: relative;
	z-index: 1;
	top: 0;
	background: #fff;
}

@media (min-width: 1024px) {
	.header__bottom {
		position: static;
	}
}

.header__bottom .header__inner {
	height: 100%;
}

.header__cat-navigation-wrapper {
	width: 100%;
	background-color: var(--nav-bg);
	border-radius: var(--nav-radius);
	display: flex;
	align-items: stretch;
	min-height: 64px;
}

@media (min-width: 1024px) {
	.header__bottom .container {
		padding-bottom: 12px;
	}
}

/* Навигация */
.navigation {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 6px 12px;
	width: 100%;
	gap: 2px;
}

.navigation__category {
	display: flex;
	align-items: stretch;
	flex: 1;
}

.navigation__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 6px;
	border-radius: 8px;
	color: #eaeaea;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.2s ease, color 0.2s ease;
	text-align: center;
	line-height: 1.3;
}

.navigation__link:hover,
.navigation__link.active {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.navigation__link .link-content .title {
	font-size: 14px;
	line-height: 1.3;
}

/* =====================
   Pre-footer (подписка)
===================== */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.pre-footer {
	background:
		radial-gradient(
			1200px 300px at center bottom,
			rgba(0, 0, 0, 0.06),
			transparent
		),
		#ffffff;
}

.pre-footer__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 50px 24px;
	display: grid;
	gap: 24px;
	text-align: center;
}

.pre-footer__title {
	margin: 0;
	font-size: 32px;
	font-weight: 500;
	color: #000;
}

.pre-footer__description {
	margin: 0;
	font-size: 18px;
	color: #4a4f59;
}

.pre-footer__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.pre-footer__field {
	width: 100%;
	max-width: 640px;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.1),
		0 10px 30px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.pre-footer__field input {
	flex: 1;
	padding: 16px 20px;
	font-size: 16px;
	font-family: inherit;
	line-height: 1.4;
	border: none;
	outline: none;
	background: transparent;
	color: #36393e;
}

.pre-footer__field input::placeholder {
	color: #9a9fa8;
}

.pre-footer__field button {
	padding: 16px 32px;
	border: none;
	border-radius: 999px;
	background-color: #3a3e45;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.4),
		0 6px 18px rgba(58, 62, 69, 0.3);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.pre-footer__field button:hover {
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.5),
		0 8px 22px rgba(58, 62, 69, 0.6);
}

.pre-footer__field button:active {
	transform: translateY(1px);
}

.pre-footer__field:focus-within {
	box-shadow:
		inset 0 0 0 2px #3a3e45,
		0 12px 32px rgba(123, 123, 123, 0.25);
}

.pre-footer__trust {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: #4a4f59;
}

.pre-footer__trust li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pre-footer__trust svg {
	color: #3f6fe0;
	flex-shrink: 0;
}

/* =====================
   Футер
===================== */

.footer {
	background: #36393e;
	padding: 40px 0 50px;
}

.footer__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 24px;
	background: rgba(70, 73, 79, 0.38);
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.14);
	display: grid;
	grid-template-columns:
		minmax(260px, 320px)
		1fr 1fr 1fr
		minmax(240px, 280px);
	gap: 48px;
}

/* Телефон в футере — кнопка (открывает выбор способа связи), а не ссылка */
.footer a,
.footer p,
.footer .js-phone-trigger {
	color: #dcdcdc;
	text-decoration: none;
}

/* Brand */
.footer__brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__brand-head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer__brand-head p {
	font-size: 18px;
}

.footer__brand-text {
	max-width: 180px;
	line-height: 1.4;
}

.footer__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer__contacts a,
.footer__contacts button {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer svg {
	flex-shrink: 0;
	color: currentColor;
}

.footer__social {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.2s ease;
}

.footer__social a:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* Nav колонки */
.footer__nav {
	position: relative;
	padding-left: 32px;
}

.footer__nav::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 100%;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(255, 255, 255, 0.15),
		transparent
	);
}

.footer__nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* CTA карточки */
.footer__cta {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.footer__cta-card {
	min-height: 72px;
	padding: 16px 20px;
	background: #3f434b;
	color: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	gap: 14px;
	transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.footer__cta-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.footer__cta-text {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.footer__cta-icon,
.footer__cta-arrow {
	display: inline-flex;
	color: #fff;
}

.footer__cta-arrow {
	transition: transform 0.2s ease;
}

.footer__cta-card:hover .footer__cta-arrow {
	transform: translateX(4px);
}

/* Нижняя строка */
.footer__bottom {
	text-align: center;
	padding-top: 24px;
	color: #adadad;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.footer_dev_link {
	display: inline-flex;
	justify-content: center;
	font-size: 12px;
	color: #6b7280;
	cursor: pointer;
	transition: color 0.2s ease;
}

.footer_dev_link:hover {
	color: #adadad;
	text-decoration: underline;
}

/* Nav toggle (мобильный аккордеон) */
.footer__nav-toggle {
	all: unset;
	cursor: pointer;
	font-weight: 500;
	color: #adadad;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 5px 0 15px 0;
}

.footer__nav-arrow {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.footer__nav.open .footer__nav-arrow {
	transform: rotate(180deg);
}

@media (min-width: 768px) {
	.footer__nav-list {
		display: flex !important;
		flex-direction: column;
		gap: 10px;
	}

	.footer__nav-toggle {
		cursor: default;
	}

	.footer__nav-arrow {
		display: none;
	}
}

/* =====================
   Мобильное меню
===================== */

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.mobile-menu.popup-hidden {
	display: none;
}

.modal-overlay {
	position: absolute;
	inset: 0;
	background: #fff;
}

.modal-wrapper {
	position: absolute;
	top: 0 !important;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 16px 90px;
}

.modal-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 16px;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: var(--shadow-200);
}

.modal-item__header {
	gap: 16px;
	margin: 0 -16px;
	border-radius: unset;
	align-items: stretch;
	width: calc(100% + 32px);
}

.modal-item__header .row.logo-and-phone {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.modal-item__header-phone .website-phones--phone {
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	color: #232528;
	text-decoration: none;
}

.modal-item__static-pages {
	gap: 16px;
	padding: 12px;
	display: flex;
	flex-direction: column;
}

.modal-item__static-pages a {
	font-weight: 500;
	font-size: 14px;
	line-height: 18px;
	color: #232528;
}

.modal-item__region {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	color: #232528;
	padding: 12px;
}

.region__button {
	display: flex;
}

.region-name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

.mobile-menu .row {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.mobile-menu .fast-links {
	flex-wrap: wrap;
	flex-direction: column;
	width: 100%;
	align-self: stretch;
}

.mobile-menu .fast-links .button {
	min-width: unset;
	height: 48px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 12px;
	background: #f5f7fc;
	color: #232528;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

/* =====================
   Нижняя мобильная панель
===================== */

.nav-panel {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: 0 10px;
	background-color: #fff;
	box-shadow: 2px 2px 20px rgba(73, 96, 144, 0.16);
	width: 100%;
	z-index: 1100;
	border-radius: 12px 12px 0 0;
}

@media (min-width: 480px) {
	.nav-panel {
		width: auto;
		left: 50%;
		transform: translateX(-50%);
		bottom: 32px;
		border-radius: 12px;
	}
}

@media (min-width: 1024px) {
	.nav-panel {
		display: none;
	}
}

.nav-panel__wrapper {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

@media (min-width: 480px) {
	.nav-panel__wrapper {
		justify-content: center;
	}
}

.nav-panel__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	color: #232528;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	width: 68px;
	height: 66px;
}

@media (min-width: 480px) {
	.nav-panel__item {
		width: 80px;
	}
}

.nav-panel__item .nav-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

/* Кнопка меню: бургер/крест */
.nav-panel__item .js-toggle-popup:not(.active) .close-icon {
	display: none;
}

.nav-panel__item .js-toggle-popup.active .burger-icon {
	display: none;
}

/* Корзина в нижней панели — скрываем счётчик через отдельный спан */
.nav-panel .cart-qty {
	position: absolute;
	top: 2px;
	right: 2px;
	background: #232528;
	color: #fff;
	border-radius: 20px;
	min-width: 16px;
	height: 16px;
	font-size: 10px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	padding: 0 4px;
}

.nav-panel .cart__icon {
	position: relative;
}

/* =====================
   Responsive: хедер
===================== */

@media (max-width: 1023px) {
	.header__bottom {
		display: none;
	}

	.header__top .header__inner {
		padding: 12px 16px;
		gap: 10px;
	}

	/* Блок с телефоном ужимается, логотип — нет: иначе картинка обрезается */
	.header__top .header__inner > :first-child {
		min-width: 0;
		flex: 1 1 auto;
	}

	.header__logo-wrapper {
		flex: 0 0 auto;
	}

	.contact_top {
		font-size: 12px;
	}

	.header__logo img {
		height: 36px;
		width: auto;
	}
}

/* Узкие экраны: номер с графиком (135px) + логотип (180px) + зазоры не влезают
   в доступную ширину, поэтому телефон сворачиваем в иконку.
   Порог 480px — ниже него график начинает переноситься на две строки. */
@media (max-width: 479px) {
	.contact_top {
		display: none;
	}

	.contact_top__icon {
		display: inline-flex;
	}

	.js-phone-trigger .phone-caret {
		display: none;
	}

	.header__top .header__inner > :first-child {
		flex: 0 0 auto;
	}

	.header__logo-wrapper {
		margin-left: auto;
	}
}

@media (max-width: 360px) {
	.header__logo img {
		height: 32px;
	}
}

@media (min-width: 1024px) {
	.header__bottom {
		display: block;
	}

	.header__bottom .header__inner {
		padding: 20px 0;
	}
}

/* =====================
   Responsive: футер
===================== */

@media (max-width: 1199px) {
	.footer__container {
		grid-template-columns: 1fr 1fr;
	}

	.footer__cta {
		grid-column: 1 / -1;
		flex-direction: row;
	}
}

@media (max-width: 767px) {
	.footer {
		padding: 24px 16px 32px;
	}

	.footer__container {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.footer__cta {
		flex-direction: column;
	}

	.footer__nav {
		padding-left: 0;
	}

	.footer__nav::before {
		display: none;
	}

	.pre-footer__container {
		padding: 30px 20px;
	}

	.pre-footer__title {
		font-size: 26px;
	}

	.pre-footer__description {
		font-size: 16px;
	}

	.pre-footer__field {
		flex-direction: column;
		border-radius: 24px;
	}

	.pre-footer__field input {
		padding: 16px 20px;
	}

	.pre-footer__field button {
		width: 100%;
		border-radius: 0 0 24px 24px;
	}

	.pre-footer__trust {
		flex-direction: column;
		gap: 12px;
		align-items: center;
	}

	.footer__nav .footer__nav-list {
		display: none;
		margin-top: 12px;
	}

	.footer__nav.open .footer__nav-list {
		display: flex;
	}
}

/* =====================
   Каталог — базовые классы
   (используются в catalog_template.php)
===================== */

/* Обёртка страницы каталога */
.catalog {
	flex: 1;
	min-height: 0;
}

/* Сетка товаров — заполняется через catalog.js */
.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

@media (min-width: 1440px) {
	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 24px;
	}
}

/* =====================
   Отступ под фиксированным хедером
   main.js устанавливает --header-height-full автоматически
===================== */

body {
	padding-top: var(--header-height-full, 148px);
}

@media (max-width: 1023px) {
	body {
		padding-top: var(--header-height-full, 72px);
	}
}
/* =====================
   Мобильная панель — активные состояния
===================== */

/* Главная — всегда полноцветная */
.nav-panel__item-home,
.nav-panel__item-home svg {
	color: #232528;
	opacity: 1;
}

/* Корзина — всегда полноцветная, наличие товаров показывает счётчик */
.nav-panel .cart__icon {
	opacity: 1;
}

/* Подпись «Корзина» в нижней панели */
.nav-panel .cart__icon-caption {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #232528;
}

/* Телефон в шапке меню */
.modal-item__header .website-phones--phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #232528;
	text-decoration: none;
	margin-bottom: 2px;
}

/* Блокируем скролл страницы при открытом меню */
body.js-popup-active {
	overflow: hidden;
}


/* =====================
   Мобильный каталог
===================== */

.mobile-catalog {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.mobile-catalog.catalog-hidden {
	display: none;
}

.mobile-catalog__overlay {
	position: absolute;
	inset: 0;
	background: #fff;
}

.mobile-catalog__wrapper {
	position: absolute;
	top: 0 !important;
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	padding: 16px 16px 90px;
}

/* Список разделов */
.modal-item__catalog-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
}

.modal-item__catalog-list a {
	display: block;
	padding: 14px 16px;
	font-size: 15px;
	font-weight: 500;
	color: #232528;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
}

.modal-item__catalog-list a:last-child {
	border-bottom: none;
}

.modal-item__catalog-list a:active {
	background: #f5f7fc;
}

/* Блокируем скролл при открытом каталоге */
body.catalog-active {
	overflow: hidden;
}
/* =====================
   Телефон: выбор способа связи
===================== */

/* Кнопка-триггер (номер в шапке, в меню, в футере) */
.js-phone-trigger {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Стрелка-указатель, что откроется меню */
.js-phone-trigger .phone-caret {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	opacity: 0.5;
}

.js-phone-trigger[aria-expanded="true"] .phone-caret {
	transform: rotate(180deg);
}

/* Затемнение под шторкой */
.phone-sheet__overlay {
	position: fixed;
	inset: 0;
	background: rgba(35, 37, 40, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
	/* Выше мобильного меню (1000) и нижней нав-панели (1100) */
	z-index: 1200;
}

.phone-sheet.is-open .phone-sheet__overlay {
	opacity: 1;
}

/* Само меню */
.phone-sheet__menu {
	position: fixed;
	z-index: 1201;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	padding: 8px;
	min-width: 260px;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.phone-sheet.is-open .phone-sheet__menu {
	opacity: 1;
	transform: translateY(0);
}

.phone-sheet__title {
	display: none;
}

/* Пункт меню */
.phone-sheet__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	text-decoration: none;
	color: #232528;
	font-size: 15px;
	font-weight: 500;
	min-height: 52px;
	transition: background 0.15s ease;
}

.phone-sheet__item:hover,
.phone-sheet__item:focus-visible {
	background: #f5f7fc;
}

.phone-sheet__item:active {
	background: #eef0f4;
}

.phone-sheet__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
}

.phone-sheet__icon_max { background: #7c4dff; }
.phone-sheet__icon_tg  { background: #31abe0; }
.phone-sheet__icon_call { background: #26b04a; }

.phone-sheet__label {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.25;
}

.phone-sheet__label small {
	font-size: 12px;
	font-weight: 400;
	color: #8a8f9a;
}

/* График работы — подвал шторки */
.phone-sheet__hours {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 6px;
	padding: 11px 14px 5px;
	border-top: 1px solid #f0f1f3;
	color: #8a8f9a;
	font-size: 13px;
}

.phone-sheet__hours svg {
	flex-shrink: 0;
}

/* На узких экранах — шторка снизу, крупные тап-зоны */
@media (max-width: 767px) {
	.phone-sheet__menu {
		left: 0;
		right: 0;
		bottom: 0;
		top: auto !important;
		width: auto;
		min-width: 0;
		border-radius: 20px 20px 0 0;
		padding: 8px 12px calc(16px + env(safe-area-inset-bottom));
		transform: translateY(100%);
	}

	.phone-sheet.is-open .phone-sheet__menu {
		transform: translateY(0);
	}

	.phone-sheet__title {
		display: block;
		text-align: center;
		font-size: 13px;
		color: #8a8f9a;
		padding: 12px 0 8px;
	}

	.phone-sheet__title::before {
		content: "";
		display: block;
		width: 40px;
		height: 4px;
		border-radius: 2px;
		background: #e2e4e9;
		margin: 0 auto 12px;
	}

	.phone-sheet__item {
		min-height: 60px;
		font-size: 16px;
	}
}

/* Блокируем скролл при открытой шторке */
body.phone-sheet-active {
	overflow: hidden;
}
