/*
Theme Name: Стелс — медицинский центр
Author: Codex
Description: Современная классическая тема-лендинг для медицинского центра «Стелс». Ключевые блоки редактируются через нативный Customizer WordPress.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: stels-medcenter
Tags: custom-logo, custom-menu, featured-images, one-column, accessibility-ready, translation-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--stels-primary: #123f3a;
	--stels-dark: #0a302d;
	--stels-accent: #e16b4f;
	--stels-ink: #142522;
	--stels-muted: #64736f;
	--stels-line: #dce5e1;
	--stels-canvas: #f3f6f4;
	--stels-white: #ffffff;
	--stels-radius-sm: 12px;
	--stels-radius: 22px;
	--stels-radius-lg: 34px;
	--stels-shadow: 0 24px 70px rgba(9, 43, 39, 0.12);
	--stels-container: 1220px;
	--stels-header-height: 88px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--stels-header-height) + 20px);
}

body {
	margin: 0;
	background: var(--stels-white);
	color: var(--stels-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.nav-open {
	overflow: hidden;
}

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

button,
input,
textarea,
select {
	font: inherit;
}

a {
	color: var(--stels-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--stels-dark);
}

:focus-visible {
	outline: 3px solid var(--stels-accent);
	outline-offset: 4px;
}

::selection {
	background: var(--stels-accent);
	color: var(--stels-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.55em;
	color: inherit;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

h1 {
	font-size: clamp(3rem, 6vw, 6.4rem);
}

h2 {
	font-size: clamp(2.35rem, 4.3vw, 4.65rem);
}

h3 {
	font-size: clamp(1.35rem, 2vw, 1.75rem);
}

p {
	margin: 0 0 1.2em;
}

.container {
	width: min(calc(100% - 48px), var(--stels-container));
	margin-inline: auto;
}

.section {
	padding: clamp(88px, 10vw, 150px) 0;
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 12px;
	left: 12px;
	display: block;
	width: auto;
	height: auto;
	padding: 14px 18px;
	clip: auto;
	background: var(--stels-white);
	color: var(--stels-dark);
	font-weight: 700;
	white-space: normal;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0 0 22px;
	color: var(--stels-primary);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.17em;
	line-height: 1.25;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 30px;
	height: 1px;
	background: currentColor;
	content: "";
}

.eyebrow--light {
	color: #b9d9d1;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 25px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--stels-primary);
	color: var(--stels-white);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.045em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
	background: var(--stels-dark);
	color: var(--stels-white);
	transform: translateY(-2px);
}

.button span {
	margin-left: 10px;
	font-size: 1.15em;
}

.button--small {
	min-height: 45px;
	padding-inline: 20px;
	font-size: 0.72rem;
}

.button--large {
	min-height: 62px;
	padding-inline: 32px;
}

.button--accent {
	background: var(--stels-accent);
	color: var(--stels-dark);
}

.button--accent:hover {
	background: #efc379;
	color: var(--stels-dark);
}

.button--ghost {
	border-color: rgba(255, 255, 255, 0.42);
	background: transparent;
	color: var(--stels-white);
}

.button--ghost:hover {
	border-color: var(--stels-white);
	background: var(--stels-white);
	color: var(--stels-dark);
}

/* Header */
.site-header {
	position: sticky;
	z-index: 900;
	top: 0;
	min-height: var(--stels-header-height);
	border-bottom: 1px solid rgba(16, 45, 42, 0.08);
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
}

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

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	min-height: var(--stels-header-height);
	gap: 28px;
}

.site-branding__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--stels-dark);
	text-decoration: none;
}

.site-branding__link:hover {
	color: var(--stels-primary);
}

.site-branding__mark {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--stels-primary);
	color: var(--stels-white);
}

.site-branding__mark svg {
	width: 23px;
	height: 23px;
}

.site-branding__mark path {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 3;
}

.site-branding__words {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
}

.site-branding__words strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	font-weight: 600;
	letter-spacing: -0.04em;
}

.site-branding__words small {
	margin-top: 5px;
	color: var(--stels-muted);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 60px;
}

.primary-navigation {
	justify-self: center;
}

.primary-navigation .menu,
.menu--fallback {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.primary-navigation .menu > li {
	position: relative;
}

.primary-navigation .sub-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	left: -20px;
	width: max-content;
	min-width: 230px;
	padding: 12px;
	margin: 0;
	border: 1px solid var(--stels-line);
	border-radius: var(--stels-radius-sm);
	background: var(--stels-white);
	box-shadow: 0 18px 46px rgba(9, 43, 39, 0.14);
	list-style: none;
	opacity: 0;
	transform: translateY(8px);
	visibility: hidden;
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.primary-navigation .sub-menu a {
	padding: 10px 12px;
}

.primary-navigation .sub-menu a::after {
	display: none;
}

.primary-navigation a {
	display: block;
	padding: 10px 0;
	color: var(--stels-ink);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-decoration: none;
}

.primary-navigation a::after {
	position: absolute;
	right: 50%;
	bottom: 4px;
	left: 50%;
	height: 1px;
	background: var(--stels-primary);
	content: "";
	transition: left 180ms ease, right 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after {
	right: 0;
	left: 0;
}

.site-header__action {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-phone {
	display: flex;
	flex-direction: column;
	color: var(--stels-ink);
	line-height: 1.2;
	text-decoration: none;
}

.header-phone small {
	margin-bottom: 3px;
	color: var(--stels-muted);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.header-phone strong {
	font-size: 0.95rem;
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 11px;
	border: 0;
	border-radius: 50%;
	background: var(--stels-canvas);
	color: var(--stels-dark);
	cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px auto;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: calc(100svh - var(--stels-header-height));
	padding: clamp(90px, 10vw, 150px) 0 clamp(80px, 9vw, 130px);
	background:
		radial-gradient(circle at 12% 16%, rgba(63, 141, 128, 0.42), transparent 31%),
		linear-gradient(135deg, var(--stels-dark) 0%, #164f48 58%, #123a35 100%);
	color: var(--stels-white);
}

.hero::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	background-image: linear-gradient(90deg, rgba(9, 41, 37, 0.95) 0%, rgba(9, 41, 37, 0.74) 52%, rgba(9, 41, 37, 0.45) 100%), var(--hero-image, none);
	background-position: center;
	background-size: cover;
	content: "";
	opacity: 0;
}

.hero--with-image::before {
	opacity: 1;
}

.hero::after {
	position: absolute;
	z-index: -1;
	right: -7vw;
	bottom: -19vw;
	width: 48vw;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	content: "";
}

.hero__orb {
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 50%;
	pointer-events: none;
}

.hero__orb--one {
	top: 10%;
	right: 8%;
	width: 240px;
	height: 240px;
}

.hero__orb--two {
	top: 19%;
	right: 14%;
	width: 96px;
	height: 96px;
	background: rgba(217, 168, 92, 0.13);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
	align-items: center;
	gap: clamp(50px, 8vw, 120px);
}

.hero__content {
	max-width: 820px;
}

.hero h1 {
	max-width: 850px;
	margin-bottom: 28px;
	color: var(--stels-white);
}

.hero__lead {
	max-width: 660px;
	margin-bottom: 38px;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1.05rem, 1.55vw, 1.28rem);
	line-height: 1.65;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 13px 26px;
	padding: 0;
	margin: 46px 0 0;
	color: rgba(255, 255, 255, 0.64);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.045em;
	list-style: none;
}

.hero__facts span {
	margin-right: 7px;
	color: var(--stels-accent);
	font-size: 0.52rem;
	vertical-align: middle;
}

.hero-card {
	padding: 31px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--stels-radius-lg);
	background: rgba(255, 255, 255, 0.095);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(18px);
}

.hero-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 34px;
}

.hero-card__label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.status-dot {
	display: flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.67rem;
}

.status-dot span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--stels-accent);
	box-shadow: 0 0 0 5px rgba(217, 168, 92, 0.15);
}

.hero-card__hours {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 15px;
}

.hero-card__hours span {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.82rem;
	font-weight: 700;
}

.hero-card__hours strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
	font-weight: 500;
}

.hero-card__divider {
	height: 1px;
	margin: 30px 0;
	background: rgba(255, 255, 255, 0.16);
}

.hero-card__address {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-bottom: 22px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	line-height: 1.6;
}

.hero-card__address span {
	flex: 0 0 27px;
	margin-top: 1px;
}

.hero-card__address svg {
	width: 24px;
	height: 24px;
}

.hero-card__address path,
.hero-card__address circle {
	fill: none;
	stroke: var(--stels-accent);
	stroke-width: 1.5;
}

.hero-card__phone {
	display: inline-block;
	color: var(--stels-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 2.3vw, 2rem);
	line-height: 1.1;
	text-decoration: none;
}

.hero-card__phone:hover {
	color: var(--stels-accent);
}

.placeholder-note {
	color: #8a5b18;
	font-size: 0.84rem;
	font-weight: 700;
}

.hero .placeholder-note {
	margin-bottom: 0;
	color: #f0c680;
}

/* Section headings */
.section-heading {
	max-width: 800px;
	margin-bottom: clamp(44px, 6vw, 76px);
}

.section-heading h2 {
	margin-bottom: 0;
}

.section-heading--split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.58fr);
	align-items: end;
	max-width: none;
	gap: clamp(38px, 8vw, 130px);
}

.section-heading--split p:last-child {
	margin-bottom: 0.55em;
	color: var(--stels-muted);
}

/* Services */
.services-section {
	background: var(--stels-canvas);
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--stels-line);
	border-left: 1px solid var(--stels-line);
}

.service-card {
	position: relative;
	display: flex;
	min-height: 330px;
	padding: 34px;
	flex-direction: column;
	border-right: 1px solid var(--stels-line);
	border-bottom: 1px solid var(--stels-line);
	background: rgba(255, 255, 255, 0.63);
	transition: z-index 0ms 220ms, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.service-card:hover {
	z-index: 2;
	background: var(--stels-white);
	box-shadow: var(--stels-shadow);
	transform: translateY(-6px);
	transition-delay: 0ms;
}

.service-card__number {
	margin-bottom: auto;
	color: var(--stels-primary);
	font-size: 0.73rem;
	font-weight: 800;
	letter-spacing: 0.13em;
}

.service-card h3 {
	margin: 42px 0 15px;
	font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.service-card p {
	margin-bottom: 25px;
	color: var(--stels-muted);
	font-size: 0.91rem;
	line-height: 1.65;
}

.service-card a {
	align-self: flex-start;
	margin-top: auto;
	color: var(--stels-primary);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.service-card a span {
	display: inline-block;
	margin-left: 6px;
	transition: transform 180ms ease;
}

.service-card a:hover span {
	transform: translateX(4px);
}

/* About and benefits */
.about-section {
	position: relative;
	overflow: hidden;
	background: var(--stels-dark);
	color: var(--stels-white);
}

.about-section::after {
	position: absolute;
	right: -240px;
	bottom: -310px;
	width: 650px;
	height: 650px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	content: "";
}

.about-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
	gap: clamp(70px, 10vw, 150px);
}

.about-intro {
	position: relative;
}

.about-intro h2 {
	max-width: 560px;
}

.about-intro > p:last-of-type {
	max-width: 520px;
	color: rgba(255, 255, 255, 0.67);
}

.about-intro__seal {
	width: 100px;
	height: 100px;
	margin-top: 52px;
	color: var(--stels-accent);
	opacity: 0.8;
}

.about-intro__seal circle,
.about-intro__seal path {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}

.benefits-list {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-item {
	display: grid;
	grid-template-columns: 65px 1fr;
	gap: 18px;
	padding: 35px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.benefit-item > span {
	padding-top: 5px;
	color: var(--stels-accent);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.benefit-item h3 {
	margin-bottom: 10px;
	font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.benefit-item p {
	max-width: 600px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.92rem;
}

/* CTA */
.cta-section {
	padding-top: clamp(72px, 8vw, 112px);
	padding-bottom: clamp(72px, 8vw, 112px);
	background: var(--stels-white);
}

.cta-panel {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	overflow: hidden;
	padding: clamp(42px, 6vw, 74px);
	border-radius: var(--stels-radius-lg);
	background: var(--stels-primary);
	color: var(--stels-white);
	gap: 50px;
}

.cta-panel__content {
	position: relative;
	z-index: 1;
	max-width: 750px;
}

.cta-panel h2 {
	margin-bottom: 20px;
	font-size: clamp(2.25rem, 4.7vw, 4.35rem);
}

.cta-panel__content > p:last-child {
	max-width: 670px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.74);
}

.cta-panel .button {
	position: relative;
	z-index: 1;
}

.cta-panel__cross {
	position: absolute;
	right: 13%;
	bottom: -130px;
	width: 300px;
	height: 300px;
	opacity: 0.07;
	transform: rotate(16deg);
}

.cta-panel__cross::before,
.cta-panel__cross::after {
	position: absolute;
	top: 0;
	left: 50%;
	width: 82px;
	height: 100%;
	background: var(--stels-white);
	content: "";
	transform: translateX(-50%);
}

.cta-panel__cross::after {
	top: 50%;
	left: 0;
	width: 100%;
	height: 82px;
	transform: translateY(-50%);
}

/* Contacts */
.contacts-section {
	background: var(--stels-canvas);
}

.contacts-grid {
	display: grid;
	grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
	min-height: 590px;
	border-radius: var(--stels-radius-lg);
	background: var(--stels-white);
	box-shadow: var(--stels-shadow);
}

.contacts-card {
	display: flex;
	padding: clamp(34px, 5vw, 62px);
	flex-direction: column;
	justify-content: center;
}

.contact-block {
	padding: 25px 0;
	border-bottom: 1px solid var(--stels-line);
}

.contact-block:first-child {
	padding-top: 0;
}

.contact-block:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.contact-block > span {
	display: block;
	margin-bottom: 8px;
	color: var(--stels-muted);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.contact-block > strong {
	display: block;
	margin-bottom: 10px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.32rem;
	font-weight: 500;
	line-height: 1.4;
}

.contact-block > a:not(.contact-block__main) {
	display: inline-block;
	font-size: 0.79rem;
	font-weight: 800;
	letter-spacing: 0.045em;
	text-decoration: none;
}

.contact-block__main {
	display: block;
	margin-bottom: 8px;
	color: var(--stels-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	line-height: 1.1;
	text-decoration: none;
}

.contact-block__main:hover {
	color: var(--stels-primary);
}

.schedule-list {
	margin: 0;
}

.schedule-list > div {
	display: grid;
	grid-template-columns: minmax(85px, 0.7fr) 1fr;
	gap: 18px;
	padding: 5px 0;
}

.schedule-list dt {
	color: var(--stels-muted);
}

.schedule-list dd {
	margin: 0;
	font-weight: 700;
}

.map-card {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	border-radius: 0 var(--stels-radius-lg) var(--stels-radius-lg) 0;
	background: #dce5e1;
}

.map-card iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map-placeholder {
	display: grid;
	height: 100%;
	min-height: 520px;
	padding: 50px;
	place-content: center;
	text-align: center;
}

.map-placeholder strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	font-weight: 500;
}

.map-placeholder p {
	margin: 10px 0 0;
	color: var(--stels-muted);
}

/* Footer */
.site-footer {
	padding: 72px 0 28px;
	background: #0b211f;
	color: rgba(255, 255, 255, 0.68);
}

.site-footer__top {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: start;
	gap: clamp(45px, 8vw, 110px);
}

.site-branding__link--footer {
	color: var(--stels-white);
}

.site-branding__link--footer .site-branding__words small {
	color: rgba(255, 255, 255, 0.48);
}

.footer-brand p {
	max-width: 400px;
	margin: 20px 0 0;
	font-size: 0.88rem;
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(110px, 1fr));
	gap: 10px 34px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.86rem;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--stels-white);
}

.footer-contact {
	display: flex;
	min-width: 225px;
	flex-direction: column;
}

.footer-contact span {
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.42);
	font-size: 0.67rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.footer-contact a,
.footer-contact strong {
	color: var(--stels-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 500;
	text-decoration: none;
}

.site-footer__legal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	padding: 28px 0;
	margin-top: 55px;
	border-top: 1px solid rgba(255, 255, 255, 0.11);
	border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.site-footer__legal p {
	margin: 0;
	color: rgba(255, 255, 255, 0.48);
	font-size: 0.74rem;
	line-height: 1.6;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 27px;
	font-size: 0.72rem;
}

.site-footer__bottom a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

/* Default WordPress content */
.content-area {
	min-height: 55vh;
	padding: 90px 0 120px;
	background: var(--stels-canvas);
}

.content-layout {
	max-width: 960px;
}

.archive-heading {
	margin-bottom: 50px;
}

.archive-heading h1,
.no-results h1,
.page-entry__header h1 {
	font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.page-entry {
	padding: clamp(34px, 6vw, 70px);
	border-radius: var(--stels-radius-lg);
	background: var(--stels-white);
}

.page-entry__header {
	margin-bottom: 42px;
}

.page-entry__meta {
	margin-bottom: 13px;
	color: var(--stels-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.page-entry__featured {
	overflow: hidden;
	margin: 0 0 42px;
	border-radius: var(--stels-radius);
}

.page-entry__featured img {
	width: 100%;
	height: auto;
}

.entry-content {
	color: #334844;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.5em;
	color: var(--stels-dark);
}

.entry-content a {
	font-weight: 700;
}

.entry-content blockquote {
	padding: 20px 28px;
	margin: 32px 0;
	border-left: 3px solid var(--stels-accent);
	background: var(--stels-canvas);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border: 1px solid var(--stels-line);
	text-align: left;
}

.post-list {
	display: grid;
	gap: 28px;
}

.post-card {
	display: grid;
	grid-template-columns: minmax(220px, 0.4fr) minmax(0, 0.6fr);
	overflow: hidden;
	border-radius: var(--stels-radius);
	background: var(--stels-white);
}

.post-card:not(:has(.post-card__image)) {
	grid-template-columns: 1fr;
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 38px;
}

.post-card__meta {
	color: var(--stels-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-card h2 {
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.post-card h2 a {
	color: var(--stels-dark);
	text-decoration: none;
}

.post-card__excerpt {
	color: var(--stels-muted);
}

.navigation.pagination {
	margin-top: 42px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	place-items: center;
	border-radius: 50%;
	background: var(--stels-white);
	color: var(--stels-dark);
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--stels-primary);
	color: var(--stels-white);
}

.no-results {
	padding: 55px;
	border-radius: var(--stels-radius);
	background: var(--stels-white);
}

.no-results p {
	color: var(--stels-muted);
}

.alignwide {
	width: min(1200px, 100%);
	max-width: none;
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

/* Tablet */
@media (max-width: 1120px) {
	:root {
		--stels-header-height: 78px;
	}

	.site-header__inner {
		grid-template-columns: auto auto 1fr;
	}

	.menu-toggle {
		display: block;
		grid-column: 3;
		justify-self: end;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		bottom: auto;
		left: 0;
		display: none;
		height: calc(100dvh - var(--stels-header-height));
		padding: 34px 24px;
		background: var(--stels-white);
		box-shadow: 0 24px 40px rgba(7, 31, 29, 0.12);
		overflow-y: auto;
	}

	.admin-bar .primary-navigation {
		top: 100%;
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation .menu,
	.menu--fallback {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.primary-navigation a {
		padding: 17px 0;
		border-bottom: 1px solid var(--stels-line);
		font-family: Georgia, "Times New Roman", serif;
		font-size: 1.65rem;
		font-weight: 500;
		letter-spacing: -0.02em;
	}

	.primary-navigation a::after {
		display: none;
	}

	.primary-navigation .sub-menu {
		position: static;
		width: auto;
		min-width: 0;
		padding: 0 0 0 20px;
		border: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		transform: none;
		visibility: visible;
	}

	.primary-navigation .sub-menu a {
		padding: 13px 0;
		font-family: inherit;
		font-size: 1rem;
		font-weight: 700;
	}

	.site-header__action {
		grid-row: 1;
		grid-column: 2;
	}

	.header-phone {
		display: none;
	}

	.hero__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.62fr);
		gap: 50px;
	}

	.services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__top {
		grid-template-columns: 1fr auto;
	}

	.footer-contact {
		grid-row: 2;
	}
}

@media (max-width: 900px) {
	.hero {
		min-height: auto;
	}

	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__content {
		max-width: 760px;
	}

	.hero-card {
		max-width: 620px;
	}

	.section-heading--split,
	.about-grid,
	.contacts-grid {
		grid-template-columns: 1fr;
	}

	.section-heading--split {
		gap: 22px;
	}

	.section-heading--split p:last-child {
		max-width: 620px;
	}

	.about-grid {
		gap: 60px;
	}

	.about-intro__seal {
		display: none;
	}

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

	.cta-panel .button {
		justify-self: start;
	}

	.contacts-grid {
		min-height: auto;
	}

	.map-card {
		min-height: 430px;
		border-radius: 0 0 var(--stels-radius-lg) var(--stels-radius-lg);
	}

	.post-card {
		grid-template-columns: 1fr;
	}

	.post-card__image img {
		max-height: 400px;
	}
}

/* Mobile */
@media (max-width: 640px) {
	:root {
		--stels-header-height: 70px;
		--stels-radius-lg: 24px;
	}

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

	.admin-bar .primary-navigation {
		top: 100%;
	}

	body {
		font-size: 16px;
	}

	.container {
		width: min(calc(100% - 32px), var(--stels-container));
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
		gap: 14px;
	}

	.site-branding__mark {
		width: 39px;
		height: 39px;
	}

	.site-branding__words strong {
		font-size: 1.35rem;
	}

	.site-branding__words small {
		font-size: 0.5rem;
	}

	.site-header__action {
		display: none;
	}

	.menu-toggle {
		grid-column: 2;
	}

	.custom-logo {
		max-width: 165px;
		max-height: 50px;
	}

	.hero {
		padding: 74px 0 70px;
	}

	.hero h1 {
		font-size: clamp(2.75rem, 14vw, 4.2rem);
	}

	.hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.hero__actions .button {
		width: 100%;
	}

	.hero__facts {
		align-items: flex-start;
		flex-direction: column;
	}

	.hero-card {
		padding: 25px;
	}

	.hero-card__top {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
	}

	.section {
		padding: 76px 0;
	}

	.section-heading {
		margin-bottom: 42px;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.service-card {
		min-height: 290px;
		padding: 28px;
	}

	.benefit-item {
		grid-template-columns: 42px 1fr;
	}

	.cta-section {
		padding: 48px 0;
	}

	.cta-panel {
		padding: 34px 26px;
	}

	.cta-panel .button {
		width: 100%;
	}

	.contacts-card {
		padding: 34px 25px;
	}

	.map-card {
		min-height: 360px;
	}

	.site-footer {
		padding-top: 58px;
	}

	.site-footer__top,
	.site-footer__legal {
		grid-template-columns: 1fr;
	}

	.site-footer__top {
		gap: 38px;
	}

	.footer-contact {
		grid-row: auto;
	}

	.site-footer__legal {
		gap: 20px;
		margin-top: 44px;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.content-area {
		padding: 66px 0 90px;
	}

	.post-card__body,
	.no-results,
	.page-entry {
		padding: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.hero__actions,
	.cta-section,
	.site-footer,
	.map-card {
		display: none !important;
	}

	.hero,
	.about-section,
	.services-section,
	.contacts-section {
		padding: 32px 0;
		background: #fff !important;
		color: #000 !important;
	}

	.hero h1,
	.about-section h2,
	.about-section h3,
	.hero__lead,
	.about-section p {
		color: #000 !important;
	}

	.hero-card,
	.contacts-grid {
		border: 1px solid #aaa;
		box-shadow: none;
	}
}
