@import 'accordion.css';
@import 'footer.css';
@import 'about.css';
@import 'inputs.css';
@import 'captcha.css';

:root {
	--color-primary: #46beeb;
	--color-secondary: #2091BC;
	--color-text: #111111;
	--color-bg: #F5F5F5;
	--color-border: #d8d8d8;
	--color-card: #f8f8f8;
}

* {
	box-sizing: border-box;
	scroll-behavior: smooth;
}

button {
	cursor: pointer;
}

body {
	margin: 0;
	font-family: "Inter", Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.4;
}

.section-container {
	width: min(1320px, calc(100% - 32px));
	margin: 0 auto;
}

a {
	text-decoration: none;
}

.text-a {
	text-decoration: underline;
	color: inherit;
}

.shadow {
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.rounded-10 {
	border-radius: 10px;
}

.remark {
	font-size: 0.875rem;
	text-align: center;
	color: grey;
}
.site-header,
.site-footer {
	background: #efefef;
	border-top: 1px solid #000;
	border-bottom: 1px solid var(--color-border);
}

.site-footer {
	margin-top: 48px;
}

.site-header__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-header__logo {
	color: currentColor;
	font-size: 1.875rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: auto;
	max-width: 420px;
}

.site-header__contacts {
	display: flex;
	gap: 24px;
}

.site-header__contacts-phones {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	justify-content: space-between;
}

.site-header__contacts a {
	color: #111;
	text-decoration: none;
}

.site-nav {
	background: #fff;
	padding-bottom: 12px;
}

.site-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 38px;
	min-height: 42px;
	align-items: stretch;
	justify-content: space-between;
}

.site-nav__item {
	position: relative;
	padding: 0;
	display: flex;
	align-items: center;
}

.site-nav__item > a {
	display: inline-flex;
	align-items: center;
	padding: 16px 0;
}

.site-nav__item--has-children {
    position: relative;
}

.site-nav__item--has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 15;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    
    /* Анимация плавного появления */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Показываем подменю при наведении на родительский пункт */
.site-nav__item--has-children:hover .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Стили для пунктов подменю */
.site-nav__submenu li {
    margin: 0;
}

.site-nav__submenu li a {
    display: block;
    padding: 8px 16px;
    font-weight: normal;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-nav__submenu li a:hover {
    background: #f0f0f0;
}

/* Небольшая задержка перед скрытием, чтобы мышь не сбивалась */
.site-nav__submenu {
    pointer-events: none;
}

.site-nav__item--has-children:hover .site-nav__submenu,
.site-nav__item--has-children:focus-within .site-nav__submenu,
.site-nav__item--has-children.is-open .site-nav__submenu {
    pointer-events: auto;
}

.site-nav a {
	color: var(--color-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
}

.btn {
	display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    /* min-width: 350px; */
    min-height: 100px;
    max-height: fit-content;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.btn--small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	max-width: fit-content;
	min-height: 50px;
	max-height: fit-content;
	padding: 12px 36px;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 1.25rem;
	font-weight: 600;
}

.promotion-card__btn {
	max-width: fit-content;
	min-height: auto;
	min-width: auto;
	padding: 12px 40px;
}

@media (max-width: 640px) {
	.btn {
		min-width: 250px;
		min-height: 70px;
		font-size: 1.125rem;
		max-width: fit-content;
	}
}

.btn--primary {
	background: var(--color-primary);
	color: #fff;
}
.btn--primary:hover {
	background: var(--color-secondary);
}
.btn--primary:active {
	background: var(--color-secondary);
}
.btn--primary:focus {
	background: var(--color-secondary);
}
.btn--primary:focus-visible {
	background: var(--color-secondary);
}

.btn--outline-dark {
	background: transparent;
	color: #111;
	border-color: #111;
}

.btn--outline-light {
	background: transparent;
	color: #fff;
	border-color: #fff;
}

.btn-visual-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--color-primary);
	border: 0;
	padding: 0;
	cursor: pointer;
	width: 60px;
	height: 60px;
	border-radius: 10px;
	transition: background 0.2s ease, color 0.2s ease;
}

@media (max-width: 640px) {
	.btn-visual-toggle {
		width: 50px;
		height: 50px;
	}
	.btn-visual-toggle svg {
		scale: 0.8;
	}
}

.btn-visual-toggle__icons {
	display: grid;
	place-items: center;
	width: 47px;
	height: 30px;
}

.btn-visual-toggle__icons > .btn-visual-toggle__icon {
	grid-area: 1 / 1;
}

.btn-visual-toggle__icon {
	display: block;
}

.btn-visual-toggle__icon--on {
	display: none;
}

body.accessibility-mode .btn-visual-toggle__icon--off {
	display: none;
}

body.accessibility-mode .btn-visual-toggle__icon--on {
	display: block;
}

.hero {
	padding: 40px 0 20px;
}

.hero-title {
	font-size: 6rem;
	font-weight: 500;
	margin: 0;
	font-family: "Exo 2", "Inter", Arial, sans-serif;
}

.hero-content {
	display: flex;
	gap: 96px;
}

@media (max-width: 640px) {
	.hero-content {
		gap: 20px;
		flex-direction: column;
	}
}

.hero-excerpt {
	font-size: 2rem;
	margin: 0;
}

@media (max-width: 1200px) {
	.hero-title {
		font-size: 4.5rem;
	}
	.hero-excerpt {
		font-size: 1.5rem;
	}
}

@media (max-width: 640px) {
	.hero-title {
		font-size: 2.25rem;
	}
	.hero-excerpt {
		font-size: 1rem;
	}
}

/* Header + top hero redesign */
.site-header {
	position: relative;
	z-index: 50;
	border: 0;
}

.site-header__logo-mark {
	display: block;
	height: 60px;
	width: auto;
	flex: 0 0 auto;
}

.site-header__logo-text {
	font-family: "Exo 2", "Inter", Arial, sans-serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.1;
	color: currentColor;
}

.site-header__contacts a {
	font-weight: 700;
}

.site-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
	color: inherit;
	border-radius: 8px;
	cursor: pointer;
}

.site-header__burger-line {
	display: block;
	width: 22px;
	height: 3px;
	background: currentColor;
	margin: 3px 0;
	border-radius: 2px;
}

.site-header__nav-backdrop {
	display: none;
}

.site-nav__close {
	display: none;
	position: absolute;
	top: 30px;
	right: 16px;
}

.site-nav__bottom {
	display: none;
}

.site-header--inner {
	background: #fff;
}

.site-header--inner .site-header__contacts a,
.site-header--inner .site-nav a,
.site-header--inner .site-header__logo-text {
	color: #111;
}

.site-header--inner .site-header__divider { background: #000; }
.site-header--inner .site-nav { background: #fff; }

.site-header--home .site-header__contacts a,
.site-header--home .site-nav a,
.site-header--home .site-header__burger,
.site-header--home .site-header__logo-text {
	color: #fff;
}

.site-header--home .btn-visual-toggle {
	background: #fff;
	color: var(--color-primary);
}

.site-header--inner .btn-visual-toggle {
	background: var(--color-primary);
	color: #fff;
}

.site-header--inner .btn-visual-toggle:hover,
.site-header--inner .btn-visual-toggle:focus-visible {
	background: var(--color-secondary);
	color: #fff;
}

.site-header--home .site-header__divider { background: #fff; }
.site-header--home .site-nav { background: transparent; }

.site-header__divider {
	width: 100%;
	height: 2px;
}

.site-header__top-wrap {
	padding: 10px 0 16px;
}

.site-header__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-nav__item--has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.site-nav__item--has-children > a::after {
	content: none;
}

.site-nav__chevron {
	transition: transform 0.2s ease;
}

@media (min-width: 641px) {
	/* Подчёркивание через ::before — у пунктов с подменю ::after занят (content: none под SVG). */
	.site-nav__item > a {
		position: relative;
		padding-bottom: 6px;
	}

	.site-nav__item > a::before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 50%;
		right: 50%;
		height: 2px;
		background-color: currentColor;
		border-radius: 2px;
		pointer-events: none;
		transition: left 0.2s ease, right 0.2s ease;
	}

	.site-nav__item > a:hover::before,
	.site-nav__item > a:focus-visible::before {
		left: 0;
		right: 0;
	}

	.site-nav__item--has-children:hover .site-nav__chevron {
		transform: rotate(180deg);
	}
}

.site-nav__submenu {
	top: calc(100%);
}

.site-header--home .site-nav__submenu {
	background: rgba(255, 255, 255, 0.97);
}

.site-header--home .site-nav__submenu a {
	color: #111;
}

body.home {
	--home-top-bg-image: none;
}

.site-header__inner {
	display: flex;
	flex-direction: column;
}

.site-header--home {
	position: relative;
	background-image: var(--home-top-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.site-header--home::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.site-header--home .site-header__top-wrap,
.site-header--home .site-header__divider,
.site-header--home .site-header__hero-wrap {
	position: relative;
	z-index: 1;
}

.site-header__hero-wrap {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.site-header--home .site-header__nav-wrap {
	position: relative;
	z-index: 2;
}

body.home .hero--home {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-height: 0;
	padding-bottom: 80px;
	color: #fff;
}

@media (max-width: 1200px) {
	body.home .hero--home {
		padding-bottom: 50px;
	}
}

@media (max-width: 640px) {
	body.home .hero--home {
		padding-bottom: 20px;
	}
}

body.home .hero--home .breadcrumbs,
body.home .hero--home .breadcrumbs a,
body.home .hero--home .page-heading h1 {
	color: #fff;
}

body.home .hero--home .section-title::after {
	background: #fff;
}

.section-title--button {
	display: flex;
	justify-content: space-between;
}

@media (max-width: 640px) {
	.section-title--button {
		flex-direction: column;
		margin-bottom: 20px;
	}
}

.page-section {
	padding: 26px 0;
}
.page-section.about-clinic {
	padding: 50px 0;
}

.promo-section {
	background-color: #fff;
	padding-bottom: 48px;
}

.site-main {
	width: 100%;
}

.site-main > .page-section,
.site-main > article.page-section {
	width: 100%;
}

.site-main > .page-section > *,
.site-main > article.page-section > * {
	width: min(1320px, calc(100% - 32px));
	margin-left: auto;
	margin-right: auto;
}


h2 {
	font-size: 2.125rem;
	margin: 0 0 18px;
	font-weight: 500;
}

.section-title {
	margin: 0 0 50px;
	font-family: "Exo 2", "Inter", Arial, sans-serif;
	font-size: 3rem;
	font-weight: 500;
	position: relative;
	display: inline-block;
	padding-bottom: 12px;
}

@media (max-width: 640px) {
	.section-title {
		font-size: 2rem;
		margin-bottom: 20px;
	}
}

@media (max-width: 1024px) {
	.section-container,
	.site-main > .page-section > *,
	.site-main > article.page-section > * {
		width: min(1200px, calc(100% - 32px));
	}

	/* .site-header--home {
		min-height: 800px;
	} */
}

.section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	width: max(650px, calc(100% + 50px));
}

@media (max-width: 1200px) {
	.section-title::after {
		width: 100%;
	}
}

.breadcrumbs {
	display: flex;
	gap: 10px;
	font-size: 0.875rem;
	color: var(--color-text);
	font-size: 1.125rem;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

@media (max-width:640px) {
	.breadcrumbs {
		font-size: 1rem;
		margin-bottom: 30px;
	}
}


.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.denstar-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.denstar-card {
	background: var(--color-card);
	border-radius: 10px;
	border: 1px solid #ddd;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	padding: 28px 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.denstar-card__thumb img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.denstar-card__title {
	font-size: 1.5625rem;
	margin: 0;
}

@media (max-width: 640px) {
	.denstar-card__title  {
		font-size: 1.125rem;
	}
}

.denstar-card__title a {
	color: #111;
	text-decoration: none;
}

.denstar-card__excerpt {
	font-size: 1rem;
}

.denstar-card__excerpt p {
	font-weight: 600;
}

.denstar-card__meta {
	font-size: 0.875rem;
	color: #6b6b6b;
}

.denstar-card__stars {
	padding: 0 14px 8px;
	color: #f2b411;
	letter-spacing: 2px;
	line-height: 36px;
	font-size: 2.25rem;
}

.denstar-card__overlay {
	position: absolute;
	inset: auto 0 0;
	padding: 14px;
	color: #fff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.76));
}

.denstar-card--promotion {
	position: relative;
	min-height: 260px;
}

.denstar-card--promotion .denstar-card__thumb img {
	height: 100%;
	min-height: 260px;
}

.denstar-card--promotion .denstar-card__title {
	font-size: 1.75rem;
	margin: 0 0 6px;
}

.denstar-card--promotion .denstar-card__title a {
	color: #fff;
}

.denstar-list--reviews,
.denstar-list--qa {
	grid-template-columns: 1fr;
}

.denstar-card--review,
.denstar-card--qa {
	padding-bottom: 12px;
}

.denstar-card__top {
	display: flex;
	justify-content: space-between;
}

.denstar-card--review {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 48px;
}

@media (max-width: 640px) {
	.denstar-card--review {
		padding: 16px 20px;
	}
}

.denstar-card--review .denstar-card__review-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.denstar-card--review .denstar-card__review-name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	flex: 1 1 auto;
	min-width: 0;
}

.denstar-card--review .denstar-card__review-name a {
	color: #111;
	text-decoration: none;
}

.denstar-card--review .denstar-card__review-name a:hover {
	text-decoration: underline;
}

.denstar-card--review .denstar-card__review-date {
	margin: 0;
	font-size: 0.875rem;
	color: #6b6b6b;
	white-space: nowrap;
	flex-shrink: 0;
}

.denstar-card--review .denstar-card__stars {
	padding: 0;
	margin: 0;
}

.denstar-card--review .denstar-card__review-text {
	padding: 0;
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.denstar-card--review .denstar-card__review-text p {
	padding: 0;
	margin: 0;
}

.denstar-list--employees .denstar-card__title {
	font-size: 1.3125rem;
}

/* Employees grid */
.employees-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px;
}

.employee-card {
	/* Target sizes: desktop ~400x586, mobile ~320x500 */
	width: 100%;
	max-width: clamp(320px, 30vw, 400px);
	min-height: clamp(500px, 52vw, 586px);
	display: flex;
	flex-direction: column;
	border-radius: 0 0 10px 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
	background: #fff;
	color: inherit;
}

.employee-card__photo {
	flex: 1 1 auto;
	position: relative;
	overflow: hidden; /* Скрываем кнопку, которая выходит за пределы */

}

.employee-card__photo img {
    pointer-events: none; /* Запрещает клики и взаимодействие */
    user-select: none; /* Запрещает выделение */
    -webkit-user-drag: none; /* Запрещает перетаскивание в Chrome/Safari */
    -webkit-touch-callout: none; /* Запрещает меню на iOS */
}

.employee-card__button-area {
	position: absolute;
	bottom: -33%;
	left: 0;
	right: 0;
	height: 33%;
	display: flex;
	flex-direction: column;
	justify-content: end;
	padding: 20px;
	background: linear-gradient(360deg, 
        rgba(80, 80, 80, 0.95) 0%, 
        rgba(80, 80, 80, 0.7) 30%,
        rgba(182, 182, 182, 0.2) 70%,
        rgba(182, 182, 182, 0) 100%);
	transition: bottom 0.3s ease-in-out; /* Плавная анимация */
    z-index: 2
}

.employee-card__photo:hover .employee-card__button-area {
    bottom: 0; /* Показываем кнопку при наведении */
}

.employee-card__button-area a:hover {
	background-color: #fff;
	color: #000;
}

.employee-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.employee-card__body {
	background: #fff;
	padding: 14px 16px 18px;
	text-align: center;
}

.employee-card__name {
	font-weight: 600;
    font-size: clamp(0.8rem, 1.3vw, 1.125rem);
	margin-bottom: 6px;
}

.employee-card__position {
	color: #6b6b6b;
	font-size: 1.125rem;
}

/* Employee single */
.employee-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}

.employee-single__photo {
	border-radius: 10px 0 0 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.employee-single__photo img {
	width: 100%;
	height: 100%;
	min-height: 420px;
	object-fit: cover;
	display: block;
}

.employee-single__card {
	background: #fff;
	border-radius: 0 10px 10px 0;
	padding: 26px 28px;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.employee-single__name {
	font-family: "Exo 2", "Inter", Arial, sans-serif;
	font-size: 2.125rem;
	font-weight: 500;
	margin-bottom: 6px;
}

.employee-single__position {
	font-size: 1rem;
	color: #6b6b6b;
	margin-bottom: 18px;
}

.employee-single__education-title {
	font-weight: 600;
	margin-bottom: 10px;
}

.employee-single__education-text {
	white-space: normal;
	line-height: 1.6;
}

.denstar-list--promotions,
.denstar-list--useful {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 14px;
}



.denstar-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
}

.denstar-pagination__numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.denstar-pagination__number,
.denstar-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	border: 1px solid #d0d7dd;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
}

.denstar-pagination__number:hover,
.denstar-pagination__arrow:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.denstar-pagination__number.is-current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.denstar-pagination__arrow.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.home-services-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.4vw, 3.125rem);
	column-gap: clamp(1.25rem, 3vw, 3.75rem);
}


.home-services-list__item {
	display: grid;
	grid-template-columns: clamp(2.5rem, 4vw, 4.375rem) minmax(0, 1fr);
	gap: clamp(0.5rem, 1.2vw, 0.75rem);
	align-items: center;
	background: var(--color-primary);
	color: #fff;
	padding: clamp(1rem, 2.6vw, 2.5rem) clamp(1rem, 3vw, 3.125rem);
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0px 1px 20px 0px #00000040;
	transition: all 0.3s ease;
}

.home-services-list__item:hover {
	background: #fff;
	border-color: var(--color-primary);
	color: var(--color-primary);
	box-shadow: none;
}

.home-services-list__icon {
	width: clamp(2.5rem, 4vw, 4.375rem);
	height: clamp(2.5rem, 4vw, 4.375rem);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: currentColor;
}

.home-services-list__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-services-list__icon svg,
.home-services-list__svg {
	width: 100%;
	height: 100%;
	display: block;
}

.home-services-list__title {
	font-size: clamp(1rem, 0.5vw + 0.95rem, 1.25rem);
	line-height: 1.25;
	font-weight: 600;
	min-width: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
	.home-services-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Services page cards */
.services-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.services-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
	background: #fff;
	display: flex;
	flex-direction: column;
}

.services-card__top {
	display: block;
	position: relative;
	background: #cfd4d8;
	background-image: var(--services-card-bg);
	background-size: cover;
	background-position: center;
	min-height: 220px;
	text-decoration: none;
	color: #fff;
}

.services-card__top-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.services-card__top-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 18px;
	text-align: center;
}

.services-card__icon {
	width: 74px;
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.services-card__icon img {
	width: 74px;
	height: 74px;
	object-fit: contain;
	display: block;
}

.services-card__icon-svg {
	width: 74px;
	height: 74px;
	display: block;
}

.services-card__title {
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.25;
}

.services-card__bottom {
	background: #fff;
	padding: 18px 20px 22px;
}

.services-card__subservices {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: #111;
	font-weight: 600;
}

.services-card__subservices li {
	position: relative;
	padding-left: 18px;
}

.services-card__empty {
	margin: 0;
	color: #6b6b6b;
}

.home-slider {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

.home-slider__track {
	display: flex;
	transition: transform 0.3s ease;
}

.home-slider__slide {
	min-width: 100%;
	min-height: 500px;
	position: relative;
	background: #cfd4d8;
}

/* Promotions (component-based) */
.promotions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	justify-items: center;
}

.promotion-card {
	width: 100%;
	max-width: min(100%, clamp(20rem, 48vw, 38.75rem));
	height: clamp(20rem, 40vw, 31.25rem);
	border-radius: 10px;
	overflow: hidden;
	background: #cfd4d8;
	background-image: var(--promotion-bg);
	background-size: cover;
	background-position: center;
	position: relative;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.promotion-card__link {
	display: block;
	width: 100%;
	height: 100%;
	color: #fff;
}

.promotion-card__overlay {
	position: absolute;
	inset: 0;
	padding: clamp(1rem, 2.2vw, 2rem) clamp(1rem, 5vw, 4.375rem);
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: clamp(0.75rem, 2vw, 2rem);
}

.promotion-card__content {
	display: flex;
	flex-direction: column;
	gap: clamp(0.5rem, 1.2vw, 1.25rem);
	min-width: 0;
}

@media (max-width: 640px) {
	.promotion-card__overlay {
		gap: 20px;
	}
}

.promotion-card__title {
	font-size: clamp(1.25rem, 0.9vw + 1rem, 2rem);
	font-weight: 600;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.promotion-card__title {
		font-size: 1.5rem;
	}
}

.promotion-card__excerpt {
	font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.125rem);
	max-width: 520px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.promotion-card--slider {
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: 500px;
}

/* Promotion single details grid */
.promo-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.promo-detail-grid__text {
	padding: 0 16px;
}

.promo-detail-grid__text--full {
	grid-column: 1 / -1;
}

.promo-detail-grid__text h2 {
	margin: 0 0 12px;
	font-size: 2.125rem;
}

.promo-detail-grid__image {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.promo-detail-grid__image img {
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
	display: block;
}

/* Service single details grid */
.service-detail-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 42px;
}

.service-detail-grid__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.service-detail-grid__text {
	padding: 0 16px;
}

.service-detail-grid__text--full {
	grid-column: 1 / -1;
}

.service-detail-grid__text h2 {
	margin: 0 0 12px;
	font-size: 2.125rem;
}

.service-detail-grid__image {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.service-detail-grid__image img {
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
	display: block;
}

.service-detail-grid__row--even .service-detail-grid__text {
	order: 2;
}

.service-detail-grid__row--even .service-detail-grid__image {
	order: 1;
}

.service-subservices {
	margin-top: 32px;
}

.service-subservices__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.subservice-card {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.subservice-card[hidden] {
	display: none !important;
}

.subservice-card__image {
	background: #d7dfe6;
}

.subservice-card__image img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.subservice-card__body {
	background: #fff;
	padding: 18px 20px;
}

.subservice-card__title {
	font-size: 1.375rem;
	font-weight: 500;
	margin: 0;
}

.works-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.work-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
}

.work-compare {
	position: relative;
	height: 300px;
	background: #d7dfe6;
	overflow: hidden;
	user-select: none;
}

.work-compare__before,
.work-compare__after {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.work-compare__after {
	z-index: 1;
}

.work-compare__before {
	width: 50%;
	z-index: 2;
}

.work-compare__divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 4px;
	background: #fff;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
}

.work-compare__handle {
	width: 70px;
	min-width: 70px;
	height: 70px;
	min-height: 70px;
	flex: 0 0 70px;
	padding: 0;
	line-height: 1;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #000;
	font-size: 1.5rem;
	font-weight: 700;
	cursor: ew-resize;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.work-card__body {
	background: #fff;
	padding: 18px 20px;
}

.work-card__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
}

.work-card__title a {
	color: #111;
	text-decoration: none;
}

.work-card__title a:hover {
	text-decoration: underline;
}

.work-card__link {
	display: block;
	color: inherit;
}

.work-card__link .work-compare__handle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 1.5rem;
	font-weight: 700;
	box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
}

/* Work single */
.work-single__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	margin-bottom: 26px;
	border-radius: 10px;
	overflow: hidden;
}

.work-compare--single {
	height: 420px;
}

.work-single__aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #fff;
    padding: 60px;
    height: 100%;
    justify-content: center;
}
@media (max-width: 1024px) {
	.work-single__top {
		grid-template-columns: 1fr;
	}
	.work-compare--single {
		height: 340px;
	}
	/* На планшетах (641-1024px) оставляем горизонтальное расположение */
	.work-single__photos {
		flex-direction: row;
	}
	.work-single__photo {
		flex: 1 1 0;
	}
	.work-single__img {
		min-height: 280px;
	}

	.services-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.work-single__aside {
		padding: 20px;
	}

	/* Ensure before/after photos remain visible on mobile */
	.work-single__photos {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.work-single__photo {
		width: 100%;
	}

	.work-single__img {
		height: auto;
		min-height: 220px;
	}

	.services-cards {
		grid-template-columns: 1fr;
	}
}

.work-single__aside_title {
	font-size: 2rem;
	font-weight: 600;
}

.work-single__aside .work-single__service-link {
	width: 100%;
}

.work-single__aside .work-single__service-link:hover {
	background-color: var(--color-primary);
	color: #fff;
}

.work-single__text {
	margin-bottom: 26px;
}

.work-single__photos {
	display: flex;
	gap: 24px;
}

.work-single__photo {
	flex: 1 1 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0px 1px 20px 0px rgba(0, 0, 0, 0.10);
	background: #fff;
}

.work-single__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
}


/* Для совсем маленьких экранов */
@media (max-width: 640px) {
	.work-single__aside {
		padding: 20px;
	}
	.work-single__photos {
		flex-direction: column;
		gap: 16px;
	}
	.work-single__photo {
		flex: none;
		width: 100%;
	}
	.work-single__img {
		min-height: 220px;
		height: auto;
	}
}

@media (max-width: 1024px) {
	.promotion-card {
		max-width: 100%;
		height: clamp(20rem, 52vw, 30rem);
	}

	.promotion-card--slider {
		max-width: 100%;
		height: 100%;
		min-height: clamp(22rem, 50vw, 31.25rem);
	}

	.service-subservices__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.works-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.home-slider__image {
	display: block;
	height: 500px;
}

.home-slider__image img {
	width: 100%;
	height: 500px;
	object-fit: cover;
	display: block;
}

.home-slider__image-fallback {
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: #3f3f3f;
	background: #cfd4d8;
}

.home-slider__overlay {
	position: absolute;
	inset: 0;
	padding: 32px 50px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	justify-content: end;
}

.home-slider__title {
	font-size: 2rem;
	font-weight: 600;
	margin: 0 0 10px;
}

.home-slider__excerpt {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.125rem;
}
.home-slider__overlay a {
	color: #fff;
}

.home-slider__controls {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	padding: 0 10px;
}

@media (max-width: 640px) {
	.home-slider__controls {
		position: static;
		transform: none;
		padding: 16px 0;
		justify-content: center;
		gap: 40px;
	}
}

.home-slider__prev,
.home-slider__next {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.06);
	width: 52px;
	height: 52px;
	border-radius: 999px;
	cursor: pointer;
	color: #111;
	box-shadow: 0 0px 20px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.home-slider__chevron {
	display: block;
	width: 22px;
	height: 14px;
}

.home-slider__prev .home-slider__chevron {
	transform:  translate(-3px, 0) rotate(90deg);
}

.home-slider__next .home-slider__chevron {
	transform: translate(3px, 0) rotate(-90deg);
}

.home-slider__prev:hover,
.home-slider__next:hover { 
	transform: translateY(-2px);
	background: var(--color-primary);
	border-color: rgba(0, 0, 0, 0.08);
	color: #fff;
	box-shadow: 0 0px 16px rgba(0, 0, 0, 0.22);
}

.home-slider__prev:active,
.home-slider__next:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.home-slider__prev:focus-visible,
.home-slider__next:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

.home-slider__prev,
.home-slider__next {
	-webkit-tap-highlight-color: transparent;
}


/* Contacts section (reusable component) */
.contacts-section {
	display: grid;
	overflow: hidden;
	border-radius: 10px;
}

.contacts-section__info {
	background: #fff;
	padding: 24px;
	display: grid;
	gap: 16px;
	height: 100%;
}

.contacts-section__item span {
	display: block;
	color: #6b6b6b;
	margin-bottom: 6px;
}

.contacts-section--home {
	grid-template-columns: 370px 1fr;
	align-items: start;
}

.contacts-section--contacts {
	grid-template-columns: 1fr;
}

.contacts-section--contacts .contacts-section__info {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

/* Адаптивная карта */
.contacts-map {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 (574/950 ≈ 0.6) */
    overflow: hidden;
}

.contacts-map iframe,
.contacts-map object,
.contacts-map embed,
.contacts-map > div,
.contacts-map > script + div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* Для виджета 2GIS */
.contacts-map .dg-widget-link {
    display: none; /* Скрываем ссылки, оставляем только карту */
}

/* Или показываем ссылки мелким текстом */
.contacts-map .dg-widget-link {
    font-size: 0.625rem;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(255,255,255,0.8);
    padding: 2px 5px;
}

.site-footer__columns {
	padding: 34px 0 22px;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
	gap: 30px;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-size: 1.25rem;
	font-weight: 600;
}

.site-footer__col a {
	font-size: 1.25rem;
}

.site-footer__contacts-phones {
	font-size: 1.5rem;
}

@media (max-width: 640px) {
	.site-footer__col {
		gap: 16px;
	}
	.site-footer__col a {
		font-size: 1rem;
	}
	.site-footer__contacts-phones {
		font-size: 1.25rem;
	}
	.site-footer__org-line--legal {
		margin-bottom: 16px;
	}
	.site-footer__links {
		gap: 16px;
	}
	.site-footer__org {
		gap: 16px;
	}
}

.site-footer__col p {
	margin: 0;
}

.site-footer__org {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-size: 0.9em;
	line-height: 1.4;
}

.site-footer__org-line--legal {
	font-size: 1.25rem;
	margin-bottom: 20px;
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 22px;
}

.site-footer__nav a {
	color: #111;
	text-decoration: none;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 20px;
	max-width: 266px;
}

.site-footer__links a {
	color: #111;
	text-decoration: none;
}

.site-footer__links a:hover {
	color: var(--color-secondary);
}



.single-layout {
	background: var(--color-card);
	border: 1px solid #ddd;
	border-radius: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
}

.single-layout__content {
	padding: 28px;
}

.single-layout__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.denstar-modal[hidden] {
	display: none;
}

.denstar-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
    align-items: center;
    justify-content: center;
	max-height: 100dvh;
}

.denstar-modal__close {
	background: transparent;
    border: none;
    padding: 4px;
	color: #111;
	position: absolute;
	top: 16px;
	right: 16px;
}

.denstar-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.denstar-modal__content {
	position: relative;
	background: #fff;
	width: min(700px, 92vw);
	margin: 50px auto 30px auto;
	padding: 48px 48px 30px 48px;
	border-radius: 10px;
	z-index: 2;
	max-height: 90vh;
	overflow-y: auto;
}

@media (max-width: 640px) {
	.denstar-modal__content {
		padding: 32px 16px 16px 16px;
	}
}

.denstar-modal__content .section-title::after {
	width: calc(100% + 50px);
}

.denstar-form {
	display: grid;
	gap: 20px;
	justify-items: center;
	margin-bottom: 30px;
}

.denstar-form > input,
.denstar-form > textarea {
	width: 100%;
    padding: 16px 24px;
    border: none;
    background-color: #ECECEC;
    border-radius: 8px;
    font-size: 1.125rem;
    height: 60px;
    max-width: 100%;
	min-height: 60px;
	max-height: 230px;
	resize: vertical;
	font-family: "Inter", Arial, sans-serif;
}

.denstar-form > textarea {
	min-height: fit-content;
}

@media (min-width: 1024px) {
	.denstar-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.denstar-form > input[name="name"],
	.denstar-form > textarea,
	.denstar-form > label,
	.denstar-form > button {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	.home-services-list {
		column-gap: 45px;
	}
}

@media (max-width: 1200px) and (min-width: 641px) {
	/* Header/nav: prevent overflow and keep proportions on medium widths. */
	.site-header__top-wrap {
		padding: clamp(0.5rem, 1.2vw, 0.75rem) 0 clamp(0.625rem, 1.8vw, 1rem);
	}

	.site-header__logo {
		gap: clamp(0.375rem, 0.8vw, 0.75rem);
		max-width: min(45vw, 22rem);
	}

	.site-header__logo-mark {
		height: clamp(2.5rem, 4.8vw, 3.75rem);
	}

	.site-header__logo-text {
		font-size: clamp(1rem, 0.7vw + 0.75rem, 1.5rem);
	}

	.site-header__contacts {
		gap: clamp(0.5rem, 1.4vw, 1.5rem);
	}

	.site-header__contacts-phones a {
		font-size: clamp(0.875rem, 0.35vw + 0.75rem, 1rem);
	}

	.site-header__contacts .btn-visual-toggle {
		width: clamp(2.75rem, 3.8vw, 3.75rem);
		height: clamp(2.75rem, 3.8vw, 3.75rem);
	}

	.site-nav {
		padding-bottom: clamp(0.375rem, 1vw, 0.75rem);
	}

	.site-nav__list {
		gap: clamp(0.625rem, 1.2vw, 1.5rem);
		flex-wrap: wrap;
	}

	.site-nav a {
		font-size: clamp(0.875rem, 0.25vw + 0.8rem, 1rem);
	}

	/* Footer: 2x2 layout on medium widths. */
	.site-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(1.5rem, 3vw, 2rem);
	}
	.employees-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.denstar-form {
		margin-bottom: 16px;
	}
	.site-header__top {
		padding: 12px 0 10px;
	}

	.site-header__logo {
		gap: 8px;
	}

	.site-header__logo-mark {
		height: 56px;
	}

	.site-header__logo-text {
		font-size: 1.125rem;
	}

	.site-header__contacts {
		display: none;
	}

	.site-header__burger {
		display: inline-flex;
		position: relative;
		z-index: 10;
	}

	.site-header__nav-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 8;
		background: rgba(0, 0, 0, 0.4);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
		pointer-events: none;
	}

	.site-header__nav-backdrop.is-visible {
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.site-nav-scroll-lock {
		overflow: hidden;
	}

	/* Поднять весь header над контентом страницы (fixed-панель внутри не наследует z-index выше соседей body). */
	body.site-nav-scroll-lock .site-header {
		z-index: 1200;
	}

	/*
	 * Backdrop — прямой ребёнок header; nav внутри nav-wrap с z-index:2 на главной.
	 * Слой wrap целиком должен быть ВЫШЕ backdrop, иначе затемнение перехватывает клики по меню.
	 */
	body.site-nav-scroll-lock .site-header__nav-wrap {
		position: relative;
		z-index: 99;
	}

	/* Верхняя полоса (бургер) над белой панелью, чтобы закрытие сработало. */
	body.site-nav-scroll-lock .site-header__top-wrap {
		position: relative;
		z-index: 10;
	}

	.site-nav__close {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		align-self: flex-end;
		width: 48px;
		height: 48px;
		margin: 8px 8px 0 0;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: #111;
		cursor: pointer;
	}

	.site-nav__close:focus-visible {
		outline: 2px solid var(--color-primary);
		outline-offset: 2px;
	}

	.site-nav__close-icon {
		display: block;
	}

	.site-nav {
		display: none;
		flex-direction: column;
		align-items: stretch;
		position: fixed;
		top: 0;
		right: 0;
		width: 85vw;
		max-width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
		z-index: 1190;
		padding: 0;
		margin: 0;
		pointer-events: auto;
		padding: 60px 40px 20px 40px;
	}

	.site-nav.site-nav--open {
		display: flex;
	}

	/* Сильнее .site-header--home .site-nav { background: transparent } — иначе панель «невидима» и кажется мёртвой. */
	.site-header--home .site-nav.site-nav--open {
		background: #fff;
	}

	.site-header--home .site-nav.site-nav--open a {
		color: #111;
	}

	.site-header--home .site-nav.site-nav--open .site-nav__submenu a {
		color: #333;
		font-weight: 500;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 20px;
		min-height: 0;
		flex: 1 1 auto;
		padding: 12px 20px 28px;
		overflow-y: auto;
	}

	.site-nav__item {
		width: 100%;
		padding: 0;
		border: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav__item > a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		width: auto;
		max-width: 100%;
		padding: 0;
		box-sizing: border-box;
	}

	/* Как на десктопе: стрелка вниз; раскрыто — разворот 180° */
	.site-nav__item--has-children .site-nav__chevron {
		flex-shrink: 0;
		transform: none;
	}

	.site-nav__item--has-children.is-open .site-nav__chevron {
		transform: rotate(180deg);
	}

	.site-nav__submenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 12px 0 0 10px;
		margin: 0;
		display: none;
		flex-direction: column;
		gap: 20px;
		width: 100%;
		pointer-events: auto;
		list-style: none;
	}

	.site-nav__item--has-children.is-open .site-nav__submenu {
		display: flex;
	}

	.site-nav__submenu li {
		margin: 0;
	}

	.site-nav__submenu li a {
		padding: 0;
		font-weight: 500;
	}

	.site-nav__bottom {
		display: flex;
		gap: 24px;
		align-items: center;
	}

	/* В панели меню всегда белый фон — кнопка a11y не наследует home/inner шапки. */
	.site-header--home .site-nav__bottom .btn-visual-toggle,
	.site-header--inner .site-nav__bottom .btn-visual-toggle,
	.site-nav__bottom .btn-visual-toggle {
		background: var(--color-primary);
		color: #fff;
		width: 50px;
		height: 50px;
	}

	.site-nav__bottom .btn-visual-toggle:hover,
	.site-nav__bottom .btn-visual-toggle:focus-visible {
		background: var(--color-secondary);
		color: #fff;
	}

	body.home .hero--home {
		min-height: 0;
		padding-top: 50px;
	}

	/* .site-header--home {
		min-height: 600px;
	} */

	.contacts-section--home {
		grid-template-columns: 1fr;
	}

	.contacts-section--contacts .contacts-section__info {
		grid-template-columns: 1fr;
	}

	.contacts-section__info {
		padding: 16px;
	}

	.site-header__logo {
		font-size: 1.5rem;
	}

	.denstar-list {
		grid-template-columns: 1fr;
	}

	.employees-grid {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.employee-single {
		grid-template-columns: 1fr;
	}

	.home-services-list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.denstar-list--promotions,
	.denstar-list--useful {
		grid-template-columns: 1fr;
	}

	.promotions-grid {
		grid-template-columns: 1fr;
	}

	.promotion-card {
		max-width: 100%;
		/* height: clamp(22rem, 74vw, 31.25rem); */
	}

	.promotion-card__overlay {
		padding: clamp(0.875rem, 3vw, 1.375rem) clamp(0.875rem, 4vw, 1.25rem);
	}

	.promo-detail-grid {
		grid-template-columns: 1fr;
	}

	.service-detail-grid__row {
		grid-template-columns: 1fr;
	}

	.service-detail-grid__row--even .service-detail-grid__text,
	.service-detail-grid__row--even .service-detail-grid__image {
		order: initial;
	}

	.service-subservices__grid {
		grid-template-columns: 1fr;
	}

	.works-grid {
		grid-template-columns: 1fr;
	}

	.contacts-grid,
	.site-footer__columns,
	.single-layout {
		grid-template-columns: 1fr;
	}
	.employee-single__name {
		font-size: 1.5rem;
	}
	.employee-card__button-area {
		bottom: 0;
	}
	.btn--small {
		min-width: 120px;
		min-height: fit-content;
	}
}

/* Специально для мобильных устройств */
@media (max-width: 768px) {
    .denstar-modal__content {
        width: 95%;
        max-height: 85vh;
        padding: 16px;
        margin: 10px auto;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .denstar-modal__content {
        width: 98%;
        max-height: 80vh;
        padding: 12px;
    }
}