/* Medik header */
:root {
	--medik-accent: #47aaa5;
	--medik-accent-dark: #3da8a3;
	--medik-accent-light: #d8f2f1;
	--medik-accent-soft: #ecf9f8;
	--medik-on-accent: #fff;
	--medik-white: #ffffff;
	--medik-surface: #f9fbfb;
	--medik-gray-100: #f5faf9;
	--medik-gray-200: #e3eeed;
	--medik-gray-400: #8fa8a6;
	--medik-gray-600: #5c6e6c;
	--medik-text: #2e3d3c;
	--medik-radius: 8px;
	--medik-radius-lg: 12px;
	--medik-radius-xl: 16px;
	--medik-container: 1240px;
	--medik-brand: #5f2281;
	--medik-brand-hover: #4a1a66;
	--medik-brand-light: #f7f4f8;
	--medik-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--medik-shadow-sm: 0 2px 12px rgba(46, 61, 60, 0.06);
	--medik-shadow: 0 8px 28px rgba(71, 170, 165, 0.18);
	--medik-shadow-lg: 0 16px 48px rgba(46, 61, 60, 0.1);
	--medik-section-pad: clamp(40px, 5vw, 56px);
	--medik-row-top: 76px;
	--medik-row-bottom: 52px;
	--medik-header-panel: 54px;
	--medik-header-offset: calc(var(--medik-header-panel) + var(--medik-row-top) + var(--medik-row-bottom));
	--medik-icon: 20px;
	--medik-focus-ring: 0 0 0 3px rgba(71, 170, 165, 0.35);
}

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

body {
	margin: 0;
	font-family: var(--medik-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--medik-text);
	background: var(--medik-surface);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	color: var(--medik-on-accent);
	background: var(--medik-accent);
}

img,
svg {
	display: block;
	max-width: 100%;
}

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

button {
	font: inherit;
	cursor: pointer;
	border: none;
	background: none;
	padding: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: min(100% - 32px, var(--medik-container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.site-main {
	min-height: 40vh;
	padding: 2rem 0;
}

.site-main--front {
	padding: 0;
}

/* Shared home section utilities */
.section_grey {
	background: var(--medik-gray-100, #f5faf9);
}

.title_section {
	position: relative;
	margin: 0 0 24px;
	padding-bottom: 12px;
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--medik-text, #2e3d3c);
}


.title_section--center {
	text-align: center;
}

.title_section--center::after {
	left: 50%;
	transform: translateX(-50%);
}

/* Icons in header */
.header svg {
	width: var(--medik-icon);
	height: var(--medik-icon);
	flex-shrink: 0;
}

/* ===== Top panel ===== */
.panel_header {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	height: 54px;
	background: var(--medik-accent, #47aaa5);
	color: var(--medik-on-accent);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.panel_header::before,
.panel_header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

/* Плавное движение градиента */
.panel_header::before {
	background: linear-gradient(
		115deg,
		var(--medik-accent, #47aaa5) 0%,
		#3db8b2 18%,
		#3d9590 36%,
		#6a4a9a 58%,
		var(--medik-brand, #5f2281) 78%,
		#47aaa5 100%
	);
	background-size: 320% 320%;
	animation: panel-header-gradient 14s ease-in-out infinite;
	will-change: background-position;
}

/* Лёгкий блик */
.panel_header::after {
	background: linear-gradient(
		105deg,
		transparent 0%,
		transparent 38%,
		rgba(255, 255, 255, 0.14) 50%,
		transparent 62%,
		transparent 100%
	);
	background-size: 220% 100%;
	animation: panel-header-shine 9s ease-in-out infinite;
}

@keyframes panel-header-gradient {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

@keyframes panel-header-shine {
	0% {
		background-position: 200% 0;
		opacity: 0.35;
	}

	45% {
		opacity: 0.65;
	}

	100% {
		background-position: -80% 0;
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.panel_header::before,
	.panel_header::after {
		animation: none;
	}

	.panel_header::before {
		background: linear-gradient(
			115deg,
			var(--medik-accent, #47aaa5) 0%,
			#3d9590 42%,
			var(--medik-brand, #5f2281) 100%
		);
		background-size: 100% 100%;
	}

	.panel_header::after {
		display: none;
	}
}

.panel_header__container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	min-height: 54px;
	padding: 0;
}

.panel_header__wa {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
}

.panel_header__wa p {
	margin: 0;
}

.panel_header .select_address__icon svg,
.panel_header .panel_header__tel-icon svg {
	width: 16px;
	height: 16px;
	color: var(--medik-on-accent);
}

.btn_social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Брендовые иконки мессенджеров — одинаковый размер, своя форма у каждой */
.btn_social--brand {
	width: 26px;
	height: 26px;
	padding: 0;
	background: transparent;
	overflow: hidden;
}

.btn_social--brand img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: cover;
}

.btn_social--telegram img {
	border-radius: 50%;
}

.btn_social--max img {
	border-radius: 6px;
}

.btn_social--brand:hover {
	background: transparent;
	opacity: 0.92;
}

.panel_header__address {
	justify-self: center;
}

.panel_header__address.select_address {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: min(520px, 42vw);
	color: inherit;
}

.select_address__icon,
.panel_header__tel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.select_address__text {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0;
	min-width: 0;
	text-transform: none;
	font-weight: 400;
	letter-spacing: 0;
}

.select_address__label {
	flex-shrink: 0;
}

.select_address__value {
	font-weight: 500;
}

.panel_header__tel {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: opacity 0.15s;
}

.panel_header__tel:hover {
	opacity: 0.9;
}

.panel_header__tel-text {
	line-height: 1;
}

/* ===== Middle row ===== */
.top_header {
	background: var(--medik-white);
	border-bottom: 1px solid var(--medik-gray-200);
}

.top_header__container {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--medik-row-top);
	padding: 10px 0;
}

.top_header__start {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.top_header__logo {
	display: inline-flex;
	align-items: center;
	max-width: clamp(110px, 13vw, 150px);
	transition: opacity 0.15s ease;
}

.top_header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.top_header__logo:hover {
	opacity: 0.88;
}

.top_header__location {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--medik-accent-dark);
	white-space: nowrap;
}

.top_header__location-icon {
	display: flex;
	color: var(--medik-accent);
}

.top_header__search {
	flex: 1;
	min-width: 0;
	max-width: 560px;
	margin-inline: auto;
}

.search_header__form {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}

.search_header__input {
	width: 100%;
	height: 44px;
	padding: 0 48px 0 14px;
	border: 1px solid var(--medik-gray-200);
	border-radius: var(--medik-radius);
	font-size: 15px;
	background: var(--medik-white);
}

.search_header__input:focus {
	outline: none;
	border-color: var(--medik-accent);
	box-shadow: 0 0 0 3px rgba(94, 199, 194, 0.25);
}

.search_header__submit {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--medik-gray-400);
	border-radius: var(--medik-radius);
}

.search_header__submit:hover {
	color: var(--medik-accent-dark);
}

.search_header__toggle {
	display: none;
}

.top_header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.top_header__mobile-bar {
	display: none;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 18px;
	background: linear-gradient(135deg, var(--medik-accent) 0%, var(--medik-accent-dark) 100%);
	color: var(--medik-on-accent);
	border-radius: var(--medik-radius);
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 16px rgba(61, 168, 163, 0.35);
}

.btn:hover {
	background: linear-gradient(135deg, var(--medik-accent-dark) 0%, #358f8a 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(61, 168, 163, 0.4);
}

.btn:active {
	transform: translateY(0);
}

.btn:focus-visible {
	outline: none;
	box-shadow: var(--medik-focus-ring), 0 4px 16px rgba(61, 168, 163, 0.35);
}

.btn_icon {
	position: relative;
	width: 44px;
	min-width: 44px;
	padding: 0;
}

.btn_icon svg {
	color: var(--medik-on-accent);
}

.btn__badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 10px;
	line-height: 18px;
	text-align: center;
	background: var(--medik-white);
	color: var(--medik-accent-dark);
	border-radius: 999px;
	font-weight: 800;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.btn__badge.is-hidden {
	display: none;
}

.btn_appointment {
	padding-inline: 20px;
}

.header-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--medik-accent-dark);
	border: 1px solid var(--medik-gray-200);
	border-radius: var(--medik-radius);
	background: var(--medik-white);
}

.header-icon-btn__badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	font-size: 9px;
	line-height: 16px;
	font-weight: 800;
	text-align: center;
	color: var(--medik-white);
	background: var(--medik-brand);
	border-radius: 999px;
}

.header-icon-btn__badge.is-hidden {
	display: none;
}

.header-icon-btn:hover {
	background: var(--medik-accent-soft);
	border-color: var(--medik-accent);
}

/* ===== Bottom row ===== */
.bottom_header {
	background: var(--medik-white);
	border-bottom: 1px solid var(--medik-gray-200);
}

.bottom_header__container {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--medik-row-bottom);
	padding: 6px 0;
}

.catalog_header {
	position: relative;
	flex-shrink: 0;
	z-index: 55;
}

.catalog_header__btn {
	min-width: 132px;
}

.catalog_header__btn[aria-expanded="true"] {
	background: var(--medik-accent-dark);
}

.catalog {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 300px;
	background: var(--medik-white);
	border: 1px solid var(--medik-gray-200);
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(46, 61, 60, 0.16);
	padding: 10px 0;
	z-index: 60;
}

.catalog[hidden] {
	display: none !important;
}

.catalog:not([hidden]) {
	display: block;
	animation: catalog-fade-in 0.2s ease;
}

@keyframes catalog-fade-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.catalog__list {
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 280px;
}

.catalog__list > .menu-item {
	position: relative;
}

.catalog__list > .menu-item > .item_menu__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 16px;
	cursor: default;
	transition: background 0.15s ease;
}

.catalog__list > .menu-item:hover > .item_menu__title,
.catalog__list > .menu-item.is-active > .item_menu__title {
	background: var(--medik-accent-soft);
}

.item_menu__title-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--medik-text);
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
}

a.item_menu__title-text:hover {
	color: var(--medik-brand, #5f2281);
}

.item_menu__title-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--medik-gray-400);
	transition: transform 0.2s ease, color 0.15s ease;
}

.menu-item:hover > .item_menu__title .item_menu__title-arrow,
.menu-item.is-active > .item_menu__title .item_menu__title-arrow {
	color: var(--medik-brand, #5f2281);
	transform: translateX(2px);
}

/* Flyout submenus */
.catalog .submenu {
	display: none;
	position: absolute;
	left: 100%;
	top: 0;
	min-width: 260px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--medik-white);
	border: 1px solid var(--medik-gray-200);
	border-radius: 10px;
	box-shadow: 0 12px 36px rgba(46, 61, 60, 0.12);
	z-index: 2;
}

.catalog__list > .menu-item > .submenu {
	margin-left: -4px;
	padding-left: 4px;
}

.catalog .menu-item:hover > .submenu,
.catalog .menu-item.is-active > .submenu {
	display: block;
}

.catalog .submenu .submenu {
	left: 100%;
	top: 0;
	margin-left: -2px;
}

.catalog .submenu .item_menu__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 14px;
}

.catalog .submenu .menu-item:hover > .item_menu__title {
	background: var(--medik-accent-soft);
}

.catalog .submenu a.item_menu__title-text,
.catalog .submenu > .menu-item > a {
	display: block;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--medik-text);
	text-decoration: none;
}

.catalog .submenu > .menu-item > a:hover,
.catalog .submenu a.item_menu__title-text:hover {
	background: var(--medik-accent-soft);
	color: var(--medik-brand, #5f2281);
}

/* Leaf links inside nested submenu */
.catalog .submenu .menu-item:not(.has_submenu) > a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--medik-text);
	text-decoration: none;
}

.catalog .submenu .menu-item:not(.has_submenu) > a:hover {
	background: var(--medik-accent-soft);
	color: var(--medik-brand, #5f2281);
}

/* Tablet: stack submenus */
@media (max-width: 1023px) {
	.catalog {
		position: fixed;
		left: 16px;
		right: 16px;
		top: auto;
		max-height: min(70vh, 520px);
		overflow-y: auto;
		min-width: 0;
	}

	.catalog .submenu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0;
		padding: 0 0 4px 12px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.catalog .menu-item.is-active > .submenu {
		display: block;
	}

	.catalog .submenu .submenu {
		padding-left: 12px;
	}
}

.header__bottom,
.bottom_header__container {
	overflow: visible;
}

.bottom_header__nav {
	flex: 1;
	min-width: 0;
}

.bottom_header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.bottom_header__menu a {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--medik-accent-dark);
	white-space: nowrap;
	padding: 6px 2px;
}

.bottom_header__menu a:hover {
	color: var(--medik-accent);
}

.bottom_header__basket {
	flex-shrink: 0;
}

.btn_basket .btn__icon {
	display: flex;
}

.btn_basket .btn__icon svg {
	width: 16px;
	height: 16px;
	color: var(--medik-on-accent);
}

/* Search overlay (mobile) */
.search_header__overlay {
	position: fixed;
	inset: 0;
	z-index: 180;
	background: rgba(255, 255, 255, 0.97);
	display: none;
	align-items: flex-start;
	padding-top: 20px;
}

.search_header__overlay:not([hidden]) {
	display: flex;
}

.search_header__overlay-inner {
	display: flex;
	gap: 10px;
	width: 100%;
	align-items: center;
}

.search_header__overlay-inner input {
	flex: 1;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--medik-gray-200);
	border-radius: var(--medik-radius);
	font-size: 16px;
}

.search_header__overlay-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--medik-accent-dark);
}

/* Mobile drawer */
.header__mobile {
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
}

.header__mobile:not([hidden]) {
	pointer-events: auto;
}

.header__mobile[hidden] {
	display: none;
}

.mobile_header {
	width: min(300px, 86vw);
	height: 100%;
	background: var(--medik-white);
	box-shadow: var(--medik-shadow);
	transform: translateX(-100%);
	transition: transform 0.22s ease;
	z-index: 2;
	position: relative;
	overflow-y: auto;
}

.header__mobile.is-open .mobile_header {
	transform: translateX(0);
}

.mobile_header__inner {
	padding: 20px 18px;
}

.mobile_header__logo {
	display: inline-flex;
	max-width: 130px;
	margin-bottom: 18px;
}

.mobile_header__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.mobile_header__menu a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--medik-accent-dark);
	border-bottom: 1px solid var(--medik-gray-200);
}

.mobile_header__quick {
	margin-top: 14px;
	border-top: 1px solid var(--medik-gray-200);
	border-bottom: 1px solid var(--medik-gray-200);
}

.mobile_header__quick-link {
	position: relative;
	display: block;
	padding: 12px 22px 12px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--medik-accent-dark);
	border-bottom: 1px solid var(--medik-gray-200);
}

.mobile_header__quick-link:last-child {
	border-bottom: none;
}

.mobile_header__quick-link::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 4px;
	width: 7px;
	height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
	opacity: 0.65;
}

.mobile_header__quick-link:hover {
	color: var(--medik-brand);
	background: var(--medik-brand-light);
	padding-left: 8px;
	padding-right: 14px;
}

.mobile_header__contact {
	margin-top: 16px;
	padding: 14px 12px;
	background: var(--medik-gray-100);
	border: 1px solid var(--medik-gray-200);
	border-radius: var(--medik-radius);
	font-size: 14px;
}

.mobile_header__contact p {
	margin: 0;
}

.mobile_header__contact p + p {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--medik-gray-200);
}

.mobile_header__contact p:first-child a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 16px;
	color: var(--medik-accent-dark);
}

.mobile_header__contact p:first-child a::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--medik-brand);
	flex-shrink: 0;
}

.mobile_header__contact p:last-child {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	color: var(--medik-gray-500);
}

.mobile_header__contact p:last-child a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--medik-accent-dark);
	background: var(--medik-white);
	border: 1px solid var(--medik-gray-200);
	border-radius: 999px;
}

.mobile_header__contact p:last-child a:hover {
	color: var(--medik-brand);
	border-color: var(--medik-brand);
	background: var(--medik-brand-light);
}

.header__mobile-close {
	position: absolute;
	top: 14px;
	left: min(300px, 86vw);
	margin-left: 10px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--medik-brand);
	color: var(--medik-on-accent);
	border-radius: var(--medik-radius);
	z-index: 3;
	opacity: 0;
}

.header__mobile.is-open .header__mobile-close {
	opacity: 1;
}

.header__mobile-close svg {
	color: var(--medik-on-accent);
}

.header__mobile-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.22s;
	z-index: 1;
}

.header__mobile.is-open .header__mobile-bg {
	opacity: 1;
}

body.is-menu-open,
body.is-search-open {
	overflow: hidden;
}

/* Desktop */
@media (min-width: 1024px) {
	.top_header__mobile-bar {
		display: none !important;
	}

	.search_header__toggle {
		display: none !important;
	}

	.search_header__form {
		display: flex !important;
	}

	.search_header__overlay {
		display: none !important;
	}

	.header.is-sticky .panel_header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 41;
	}

	.header.is-sticky .header__top {
		position: sticky;
		top: var(--medik-header-panel);
		z-index: 40;
		box-shadow: 0 1px 0 var(--medik-gray-200);
	}

	.header.is-sticky .header__bottom {
		position: sticky;
		top: calc(var(--medik-header-panel) + var(--medik-row-top));
		z-index: 39;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	}
}

/* Tablet & mobile */
@media (max-width: 1023px) {
	.panel_header {
		height: auto;
		min-height: var(--medik-header-panel);
	}

	.panel_header__container {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: clamp(6px, 2vw, 12px);
		min-height: var(--medik-header-panel);
		padding-block: 7px;
	}

	.panel_header__wa {
		flex: 0 0 auto;
		gap: clamp(4px, 1.5vw, 8px);
		min-width: 0;
	}

	.panel_header__wa p {
		display: none;
	}

	.panel_header__address {
		display: flex;
		flex: 1 1 auto;
		justify-self: center;
		min-width: 0;
		max-width: none;
	}

	.panel_header__address.select_address {
		justify-content: center;
		max-width: 100%;
		gap: 4px;
	}

	.select_address__label {
		display: none;
	}

	.select_address__text {
		flex-wrap: nowrap;
		justify-content: center;
		min-width: 0;
	}

	.select_address__value {
		font-size: clamp(10px, 2.85vw, 12px);
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.panel_header__tel {
		flex: 0 0 auto;
		justify-self: end;
		gap: 4px;
		max-width: 44%;
		min-width: 0;
		font-size: clamp(11px, 3.1vw, 13px);
	}

	.panel_header__tel-text {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-variant-numeric: tabular-nums;
	}

	.top_header__container {
		flex-wrap: wrap;
		gap: 10px 12px;
		min-height: auto;
		padding: 12px 0;
	}

	.top_header__start {
		flex: 1;
		min-width: 0;
	}

	.top_header__location {
		display: none;
	}

	.top_header__search {
		order: 10;
		flex: 1 1 100%;
		max-width: none;
		margin: 0;
	}

	.search_header__form {
		display: flex;
	}

	.search_header__toggle {
		display: none;
	}

	.top_header__actions {
		display: none;
	}

	.top_header__mobile-bar {
		display: flex;
	}

	.bottom_header {
		display: none;
	}
}

@media (min-width: 480px) and (max-width: 1023px) {
	.select_address__label {
		display: inline;
	}
}

@media (max-width: 479px) {
	.panel_header__container {
		gap: 6px;
		padding-block: 8px;
	}

	.btn_social--brand {
		width: 24px;
		height: 24px;
	}

	.btn_social--brand img {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 420px) {
	.panel_header__tel {
		max-width: none;
		padding: 6px 8px;
		border-radius: var(--medik-radius);
		background: rgba(255, 255, 255, 0.12);
	}

	.panel_header__tel-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.panel_header__tel-icon svg {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 374px) {
	.select_address__icon {
		display: none;
	}

	.select_address__value {
		font-size: 10px;
	}
}

@media (max-width: 640px) {
	.top_header__actions .btn_appointment {
		padding-inline: 12px;
		font-size: 11px;
	}
}

/* Sticky footer layout */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}
