/*
 * psyho_new — qoder-style redesign of the StopZavisimost theme.
 *
 * Light sage canvas, near-black ink, one accent for actions, weight-500 headings,
 * pill controls, soft cards, lots of air. The accent is the brand orange of the logo,
 * darkened to #c24812 so white text on it passes WCAG AA (4.9:1); the brighter
 * logo orange is used only for the one decorative band per page.
 *
 * Loaded after Bootstrap 3 (kept for the .row/.col-* grid inside post content), so
 * several rules below exist to neutralise Bootstrap defaults (.btn, .badge, .lead,
 * .breadcrumb, clearfix pseudo-elements on flex/grid containers).
 */

/* ======================================================================= */
/* Font: Onest, self-hosted (fonts/onest, SIL OFL 1.1)                      */
/* Variable font: one file per subset covers weights 400–600. Unicode       */
/* ranges match Google Fonts, so a page only downloads the subsets it uses. */
/* ======================================================================= */
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/onest/onest-cyrillic-ext.woff2') format('woff2');
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/onest/onest-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/onest/onest-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('../fonts/onest/onest-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ======================================================================= */
/* Tokens                                                                   */
/* ======================================================================= */
:root {
	--font-sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--bg: #f3f5f2;
	--bg-elev: #fbfcfa;
	--bg-soft: #eceeea;
	--surface: #ffffff;
	--border: #e0e5dd;
	--border-strong: #c8cfc4;

	--text: #12140f;
	--text-muted: #6b7068;
	--text-faint: #8e938b;

	/* Brand: the orange of the logo sun. */
	--accent: #c24812;
	--accent-hover: #a83c0c;
	--on-accent: #fdfdfd;
	--accent-soft: #fbe8dc;
	--growth: #f2925c;
	--growth-ink: #8f330a;

	--danger: #d4453f;
	--danger-soft: #fdf1f0;

	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--shadow-soft: 0 1px 2px rgba(18, 20, 15, 0.04), 0 8px 24px rgba(18, 20, 15, 0.05);
	--shadow-pop: 0 2px 4px rgba(18, 20, 15, 0.05), 0 20px 48px rgba(18, 20, 15, 0.12);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	--container: 1200px;
	--gutter: 24px;
	--section-gap: 96px;
	--header-h: 72px;
}

@media (max-width: 860px) {
	:root { --section-gap: 72px; --gutter: 16px; }
}

/* ======================================================================= */
/* Base                                                                     */
/* ======================================================================= */
* { box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	background: var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body.overflow_body { overflow: hidden; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: inherit;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.25;
	margin: 0 0 0.6em;
}
h1, .h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
h3, .h3 { font-size: 21px; }
h4, .h4 { font-size: 19px; }
h5, .h5 { font-size: 17px; }
h6, .h6 { font-size: 16px; }
h1 span, h2 span, h3 span, h4 span { color: inherit; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover, a:focus { color: var(--accent-hover); text-decoration: none; }
a:active { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
small, .small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
strong, b { font-weight: 600; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea, button { font-family: inherit; }

.title-hero { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.title-page { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); font-weight: 400; margin: 0 0 1em; }

.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-dark { color: var(--text) !important; }
.text-decoration-none { text-decoration: none !important; }

.visually-hidden, .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;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px;
	border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent);
	font-weight: 500; transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

/* Bootstrap 3 container → qoder container. */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.site-main { flex: 1 0 auto; padding-bottom: var(--section-gap); }

/* Small utility shim for the Bootstrap-4-style classes used in templates. */
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 4px !important; } .mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; } .mb-5 { margin-bottom: 48px !important; }
.mt-4 { margin-top: 24px !important; } .mt-5 { margin-top: 48px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }
.my-4 { margin-top: 24px; margin-bottom: 24px; }
.list-unstyled { list-style: none; padding-left: 0; }
.rounded { border-radius: var(--radius) !important; }
.bg-light { background: var(--bg-soft) !important; }
.img-fluid { max-width: 100%; height: auto; }
.col-12 { width: 100%; }
@media (min-width: 768px) { .my-md-5 { margin-top: 48px; margin-bottom: 48px; } .mb-md-5 { margin-bottom: 48px !important; } }

/* ======================================================================= */
/* Buttons (pills)                                                          */
/* ======================================================================= */
.btn, .my_btn, .nav-cta, .div_price__toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 40px; padding: 0 22px; margin: 0;
	border-radius: var(--radius-pill); border: 1px solid transparent;
	font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1;
	white-space: nowrap; cursor: pointer; text-decoration: none; text-transform: none;
	background-image: none; box-shadow: none; -webkit-appearance: none; appearance: none;
	transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:focus, .btn:active, .btn.active { outline: none; box-shadow: none; }
.btn:focus-visible, .my_btn:focus-visible, .nav-cta:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.btn:active:not(:disabled), .my_btn:active:not(:disabled) { transform: translateY(1px); }

.btn-primary, .my_btn, .nav-cta,
.btn-primary:focus, .btn-primary.focus { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover, .my_btn:hover, .nav-cta:hover,
.btn-primary:active, .btn-primary:active:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

.btn-ghost, .btn-ghost:focus, .div_price__toggle { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover, .div_price__toggle:hover { border-color: var(--text); color: var(--text); background: transparent; }

.btn-light, .btn-light:focus { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-hover); }

.btn-outline-light, .btn-outline-light:focus { background: transparent; color: var(--on-accent); border-color: rgba(253, 253, 253, 0.55); }
.btn-outline-light:hover { background: rgba(253, 253, 253, 0.12); border-color: var(--on-accent); color: var(--on-accent); }

.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-wrap { white-space: normal; height: auto; min-height: 40px; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; text-align: center; }
.btn:disabled, .my_btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ======================================================================= */
/* Chips & badges                                                           */
/* ======================================================================= */
.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 14px;
	border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
	color: var(--text-muted); font-size: 14px; line-height: 1.3;
}
a.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 500; }

.badge {
	display: inline-flex; align-items: center; gap: 10px; min-width: 0;
	padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius-pill);
	background: var(--bg-elev); font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--text-muted);
	white-space: normal; text-align: left; vertical-align: baseline;
}
.badge b { flex: none; font-weight: 500; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); }
a.badge:hover, a.badge:focus { border-color: var(--border-strong); color: var(--text); }

/* ======================================================================= */
/* Cards & grid                                                             */
/* ======================================================================= */
.card {
	position: relative;
	display: flex; flex-direction: column; gap: 10px; padding: 24px;
	background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.card { color: var(--text); }
a.card:hover, .card.is-link:hover {
	transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-soft); color: var(--text);
}
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* "Whole card is a link" without nesting links. */
.stretched { color: inherit; }
.stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.stretched:hover { color: inherit; }
.stretched:focus-visible { outline: none; }
.card:has(.stretched:focus-visible) { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }

/* ======================================================================= */
/* Header                                                                   */
/* ======================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(243, 245, 242, 0.84);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(18, 20, 15, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.header-inner::before, .header-inner::after,
.footer-inner::before, .footer-inner::after,
.footer-bottom::before, .footer-bottom::after,
.lp-body::before, .lp-body::after { display: none; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: auto; height: 46px; }

.header-phone { display: flex; flex-direction: column; line-height: 1.15; color: var(--text); margin-left: 8px; }
.header-phone b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.header-phone small { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.header-phone:hover b { color: var(--accent); }
.header-phone:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }
.site-nav .goroda { display: contents; }
.nav-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
	border: 0; border-radius: var(--radius-pill); background: transparent;
	color: var(--text-muted); font-size: 14px; white-space: nowrap; cursor: pointer;
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-pill:hover, .nav-pill:focus-visible { background: rgba(18, 20, 15, 0.05); color: var(--text); }
.nav-pill::before { content: ''; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.nav-city { color: var(--text); border: 1px solid var(--border); background: var(--bg-elev); }
.nav-city::after { content: ''; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.nav-city { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.nav-wa { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.5 1.9 1 .9 1.9 1.2 2.2 1.3.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E"); }
.nav-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.nav-cta { margin-left: 8px; height: 40px; padding: 0 20px; }

@media (max-width: 1180px) {
	.nav-mail { display: none; }
}
@media (max-width: 860px) {
	:root { --header-h: 60px; }
	.header-inner { flex-wrap: wrap; gap: 4px 12px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
	.brand-logo { height: 36px; }
	.header-phone { margin-left: auto; text-align: right; align-items: flex-end; }
	.header-phone b { font-size: 16px; }
	/* Nav becomes a horizontally scrollable row under the logo; CTA first. */
	.site-nav {
		width: calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter);
		overflow-x: auto; scrollbar-width: none; gap: 6px;
	}
	.site-nav::-webkit-scrollbar { display: none; }
	.nav-cta { order: -1; margin-left: 0; height: 36px; padding: 0 16px; }
	.nav-mail { display: inline-flex; }
	.nav-pill { height: 36px; border: 1px solid var(--border); background: var(--bg-elev); }
}
@media (max-width: 380px) {
	.header-phone small { display: none; }
	.brand-logo { height: 32px; }
}

/* City hint bar (inserted by js/custom.js on first visit). */
.city_hint {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
	padding: 10px 16px; background: var(--accent-soft); color: var(--text); font-size: 14px; text-align: center;
}
.city_hint a { color: var(--accent); font-weight: 500; }
.city_hint__close {
	border: 0; background: transparent; color: var(--text-muted); font-size: 14px; cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px; padding: 4px 6px; border-radius: var(--radius-pill);
}
.city_hint__close:hover { color: var(--text); }

/* ======================================================================= */
/* Footer                                                                   */
/* ======================================================================= */
.site-footer { flex: none; border-top: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
/* align-self: the column is a flex container and would stretch the logo's width while its height is fixed. */
.footer-brand .brand-logo { align-self: flex-start; width: auto; max-width: 100%; height: 42px; margin-bottom: 6px; object-fit: contain; }
.footer-disclaimer, .footer-disclaimer p { font-size: 13px; line-height: 1.6; color: var(--text-faint); margin: 0; }
.footer-disclaimer p + p { margin-top: 8px; }
.footer-disclaimer a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-links, .ul_contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links + .footer-links { margin-top: 0; }
.ul_contacts li { display: flex; flex-direction: column; gap: 2px; }
.ul_contacts li > span { font-size: 12px; color: var(--text-faint); }
.ul_contacts li.tel a { font-size: 17px; font-weight: 600; color: var(--text); }
.ul_contacts li.tel a:hover { color: var(--accent); }
.ul_contacts .stopzav-service-area, .ul_contacts .addr p { margin: 0; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
	border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 28px;
	font-size: 12px; line-height: 1.6; color: var(--text-faint);
}
.footer-bottom p { margin: 0; max-width: 820px; }
.age-mark { display: inline-block; padding: 0 7px; margin-right: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); font-weight: 600; color: var(--text-muted); }
@media (max-width: 900px) {
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.footer-inner > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.footer-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
}

/* ======================================================================= */
/* Forms, modals                                                            */
/* ======================================================================= */
input[type='text'], input[type='email'], input[type='tel'], input[type='search'], input[type='number'], textarea, select {
	min-height: 44px; padding: 10px 14px; font-size: 16px; line-height: 1.4;
	background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 16px; height: 16px; }

.modal_wrp { display: none; opacity: 0; transition: opacity 0.25s var(--ease); }
.modal_wrp.act {
	display: block; position: fixed; inset: 0; z-index: 1000; overflow: auto;
	padding: 16px; background: rgba(18, 20, 15, 0.42);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal_wrp.fadein { opacity: 1; }
.modal_block {
	position: relative; max-width: 440px; margin: min(12vh, 120px) auto 24px; padding: 32px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-pop);
	transform: translateY(8px); transition: transform 0.25s var(--ease);
}
.modal_wrp.fadein .modal_block { transform: none; }
#modal_2 .modal_block { max-width: 640px; }
.modal_close {
	position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: var(--bg); cursor: pointer;
	transition: background 0.15s var(--ease);
}
.modal_close:hover { background: var(--bg-soft); }
.modal_close span, .modal_close span::before { position: absolute; left: 11px; top: 17px; width: 14px; height: 1.5px; background: var(--text); transform: rotate(45deg); }
.modal_close span::before { content: ''; left: 0; top: 0; transform: rotate(90deg); }
.modal_head { margin: 0 40px 8px 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.modal_content > p, .modal_lead { color: var(--text-muted); font-size: 15px; margin: 0 0 20px; }
.modal_content hr { display: none; }
.modal_content ul { list-style: none; padding: 0; }
.modal_form { display: grid; gap: 12px; }
.modal_form input[type='text'] { width: 100%; height: 48px; }
.modal_form .my_btn { width: 100%; height: 48px; font-size: 15px; }
#modal_inp.err { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.rez { margin: 0; font-size: 14px; color: var(--accent); }
.rez.err { color: var(--danger); }
.sogl { margin: 4px 0 0; line-height: 1.45; }
.sogl small { font-size: 12px; color: var(--text-faint); }
.sogl a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
	.modal_block { padding: 24px 20px; margin-top: 8vh; }
}

/* City selector */
.goroda_search { margin: 0 0 12px; }
.goroda_search input { width: 100%; height: 48px; border-radius: var(--radius-pill); padding: 0 20px; }
.goroda_list { list-style: none; padding: 0; margin: 0 -6px; max-height: 50vh; overflow-y: auto; }
.goroda_list li { break-inside: avoid; }
.goroda_list a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); }
.goroda_list a:hover, .goroda_list a:focus { background: var(--bg); color: var(--accent); }
.goroda_list .is-popular a { font-weight: 500; }
.goroda_list .is-current a { color: var(--accent); pointer-events: none; }
.goroda_list .is-current a::after { content: ' — вы здесь'; font-weight: 400; font-size: 13px; color: var(--text-faint); }
.goroda_status { margin: 10px 0 0; font-size: 14px; color: var(--text-faint); min-height: 1em; }
.goroda_all { margin: 12px 0 0; font-size: 14px; }
@media (min-width: 768px) {
	.goroda_list { max-height: 360px; columns: 2; column-gap: 16px; }
}

/* ======================================================================= */
/* Page sections (shared)                                                   */
/* ======================================================================= */
.section-title { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-title h1, .section-title h2, .section-title h3, .section-title h4 {
	margin: 0 0 12px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.025em;
}
.section-title p { margin: 0; color: var(--text-muted); font-size: 16px; }
.section-more { display: flex; justify-content: center; margin-top: 32px; }
.lp-body > .section { margin-top: var(--section-gap); }

/* ======================================================================= */
/* Landing: hero                                                            */
/* ======================================================================= */
.lp-hero { padding-top: 72px; }
.lp-hero .badge { margin-bottom: 28px; }
.lp-hero h1 { max-width: 860px; margin: 0 0 24px; }
.lp-hero h1 span { white-space: nowrap; }
.hero-points {
	list-style: none; margin: 0; padding: 0; max-width: 760px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
	font-size: 17px; line-height: 1.5; color: var(--text-muted);
}
.hero-points li { position: relative; padding-left: 30px; }
.hero-points li::before {
	content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c24812' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.hero-points strong { font-weight: 500; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tool { margin-top: 40px; max-width: 520px; }
.hero-call {
	display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-soft);
	color: var(--text); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.hero-call:hover, .hero-call:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); color: var(--text); outline: none; }
.hero-call__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.hero-call__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hero-call__text small { font-size: 12px; color: var(--text-faint); }
.hero-call__text b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.hero-call__go { margin-left: auto; padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.hero-hint { margin: 10px 0 0 22px; font-size: 13px; color: var(--text-faint); }

@media (max-width: 720px) {
	.lp-hero { padding-top: 36px; }
	.lp-hero .badge { margin-bottom: 20px; }
	.hero-points { grid-template-columns: 1fr; font-size: 16px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-tool { margin-top: 28px; }
	.hero-call__go { display: none; }
	.hero-hint { margin-left: 0; text-align: center; }
}

/* ======================================================================= */
/* Landing: full-bleed accent band with the "how it starts" window          */
/* ======================================================================= */
.band {
	position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 64px;
	padding: 72px 0; background: var(--growth); overflow: hidden; isolation: isolate;
}
.lp > .band { margin-left: 0; width: 100%; }
.band-arcs, .cta-arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.band-arcs path { fill: none; stroke: var(--growth-ink); stroke-opacity: 0.28; stroke-linecap: round; }
.band-arcs path:nth-child(1) { stroke-width: 56; }
.band-arcs path:nth-child(2) { stroke-width: 34; }
.band-arcs path:nth-child(3) { stroke-width: 28; }
.band-head { max-width: 760px; margin: 0 0 32px; }
.band-title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.025em; color: var(--text); }
.band-lead { margin: 0; font-size: 17px; color: rgba(18, 20, 15, 0.78); }
.band-lead span:empty { display: none; }
.band-window { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; }
.band-window-bar {
	display: flex; align-items: center; gap: 8px; padding: 14px 18px;
	border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted);
}
.band-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex: none; }
.band-window-bar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 28px 24px; border-left: 1px solid var(--border); }
.step:first-child { border-left: 0; }
.step-num {
	display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
	border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px;
}
.step h4 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.step p a { color: var(--text); font-weight: 500; white-space: nowrap; }
.band-window-foot {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
	padding: 18px 24px; border-top: 1px solid var(--border); background: var(--bg-elev);
}
.band-window-foot p { margin: 0; color: var(--text-muted); font-size: 14px; }
@media (max-width: 1000px) {
	.steps { grid-template-columns: 1fr 1fr; }
	.step:nth-child(odd) { border-left: 0; }
	.step:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
	.band { padding: 48px 0; margin-top: 48px; }
	.steps { grid-template-columns: 1fr; }
	.step { border-left: 0; padding: 22px 20px; }
	.step + .step { border-top: 1px solid var(--border); }
	.band-window-foot .btn { width: 100%; }
}

/* ======================================================================= */
/* Landing: content sections                                                */
/* ======================================================================= */

/* Services */
.service-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service-card { padding: 0; overflow: hidden; gap: 0; }
.service-card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.service-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.service-card.is-link:hover .service-card__media img { transform: scale(1.03); }
.service-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.service-card h3 { font-size: 18px; }
.service-card p {
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) {
	/* Eight tall cards are 3000px of scrolling on a phone: switch to compact rows. */
	.service-grid { grid-template-columns: 1fr; gap: 10px; }
	.service-card { flex-direction: row; align-items: stretch; }
	.service-card__media { flex: none; width: 96px; aspect-ratio: auto; }
	.service-card__body { padding: 14px 16px; gap: 4px; }
	.service-card h3 { font-size: 16px; }
	.service-card p { -webkit-line-clamp: 2; font-size: 13px; }
	.service-card .card-more { display: none; }
}
.chip-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Prices */
.price-card { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-head, .div_price > .row {
	display: grid; grid-template-columns: minmax(0, 1fr) 170px 120px; align-items: center; gap: 16px;
	margin: 0; padding: 14px 24px;
}
.price-head { font-size: 13px; color: var(--text-faint); background: var(--bg); border-bottom: 1px solid var(--border); }
.div_price { position: relative; }
.div_price > .row::before, .div_price > .row::after { display: none; }
.div_price > .row + .row { border-top: 1px solid var(--border); }
.div_price > .row:hover { background: var(--surface); }
.div_price > .row > [class*='col-'] { float: none; width: auto; min-height: 0; padding: 0; }
.div_price .col-sm-7 { font-size: 15px; color: var(--text); }
.div_price .col-sm-3 { font-size: 15px; font-weight: 500; white-space: nowrap; }
.div_price .col-sm-2 { text-align: right; }
.call_price {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px; cursor: pointer;
	border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
	font-size: 13px; font-weight: 500; color: var(--text); background: transparent;
	transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.call_price:hover { border-color: var(--accent); color: var(--accent); }
.div_price--collapsible { overflow: hidden; transition: max-height 0.4s var(--ease); }
.div_price--collapsible:not(.div_price--expanded)::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
	background: linear-gradient(rgba(251, 252, 250, 0), var(--bg-elev));
}
.div_price__toggle { display: flex; margin: 0 auto; position: relative; top: 0; }
.price-card .div_price__toggle { margin: 12px auto 20px; }
/* Price tools: search + category chips (js/prices.js); the table scrolls inside the card. */
.price-tools { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.price-search {
	position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0 8px 0 18px; height: 48px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-faint);
	font-weight: 400; cursor: text; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.price-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.price-search svg { flex: none; }
.price-search input {
	flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none !important;
	font-size: 15px; color: var(--text); -webkit-appearance: none; appearance: none;
}
.price-search input::-webkit-search-cancel-button { display: none; }
.price-search__clear {
	flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text-muted);
	font-size: 20px; line-height: 1; cursor: pointer;
}
.price-search__clear:hover { background: var(--bg-soft); color: var(--text); }
.price-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chip {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
	border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface);
	color: var(--text-muted); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
	transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.price-chip span { font-weight: 400; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.price-chip:hover { border-color: var(--border-strong); color: var(--text); }
.price-chip[aria-pressed='true'] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.price-chip[aria-pressed='true'] span { color: var(--accent); opacity: 0.7; }
.price-chip:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }

.price-card.is-enhanced .price-scroll {
	position: relative; max-height: 480px; overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.price-scroll::-webkit-scrollbar { width: 8px; }
.price-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg-elev); }
/* Fade at the bottom while there is more to scroll. */
.price-card.is-enhanced .price-scroll::after {
	content: ''; position: sticky; display: block; bottom: 0; height: 40px; margin-top: -40px; pointer-events: none;
	background: linear-gradient(rgba(251, 252, 250, 0), var(--bg-elev)); transition: opacity 0.2s var(--ease);
}
.price-scroll.is-end::after, .price-scroll.is-short::after { opacity: 0; }
.div_price > .row[hidden] { display: none; }
.div_price > .row:not([hidden]) ~ .row:not([hidden]) { border-top: 1px solid var(--border); }
.price-card.is-enhanced .div_price > .row + .row { border-top: 0; }
.price-card.is-enhanced .div_price > .row:not([hidden]) ~ .row:not([hidden]) { border-top: 1px solid var(--border); }
.price-empty { margin: 0; padding: 28px 24px; text-align: center; color: var(--text-muted); font-size: 15px; }
.price-count { margin: 0; padding: 10px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); background: var(--bg); }
.price-count:empty { display: none; }
@media (max-width: 640px) {
	.price-tools { padding: 12px 12px 10px; }
	.price-search { height: 44px; }
	/* Chips: one horizontally scrolling row instead of four wrapped lines. */
	.price-chips {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
		margin: 0 -12px; padding: 0 12px 2px; scroll-padding: 0 12px;
	}
	.price-chips::-webkit-scrollbar { display: none; }
	.price-card.is-enhanced .price-scroll { max-height: min(60vh, 460px); }
}
.price-note { margin: 16px auto 0; text-align: center; font-size: 14px; color: var(--text-muted); max-width: 640px; }
@media (max-width: 640px) {
	.price-head { display: none; }
	.div_price > .row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 18px; }
	.div_price .col-sm-7 { grid-column: 1 / -1; }
	.div_price .col-sm-3 { color: var(--text-muted); font-weight: 500; }
}

/* About / article */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.person-card {
	display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
	padding: 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
}
.person-card__photo img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.person-card__name { margin: 0 0 2px; font-weight: 500; font-size: 16px; color: var(--text); }
.person-card__role { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.person-card .btn { grid-column: 1 / -1; width: 100%; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.about-photo img { display: block; width: 100%; height: auto; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; }
.prose > h4, .prose > h3, .prose > h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.prose > * + h4, .prose > * + h3 { margin-top: 36px; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(194, 72, 18, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a[href^='tel:'] { white-space: nowrap; font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 6px; }
@media (max-width: 900px) {
	.about-grid { grid-template-columns: 1fr; gap: 24px; }
	.about-aside { position: static; }
	.prose { font-size: 16px; }
}

/* Numbers */
.stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-num { font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.stat-label { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 960px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stat { padding: 18px; } .stat-num { font-size: 34px; } .stat-label { font-size: 13px; } }
@media (max-width: 359px) { .stat-grid { grid-template-columns: 1fr; } }

/* What we give */
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.feature-card p { font-size: 15px; }

/* Doctors */
.doctor-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.doctor-tile { padding: 12px 12px 18px; gap: 6px; }
.doctor-tile__photo { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); margin-bottom: 8px; }
.doctor-tile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.doctor-tile h3 { font-size: 16px; padding: 0 6px; }
.doctor-tile p { font-size: 13px; padding: 0 6px; }
@media (max-width: 600px) {
	.doctor-grid {
		grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
	}
	.doctor-grid::-webkit-scrollbar { display: none; }
	.doctor-tile { scroll-snap-align: start; }
}

/* Licenses */
.split-card {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
	padding: 40px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 24px;
}
.split-card__title { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.025em; }
.split-card__text p { color: var(--text-muted); }
.split-card__text p:last-child { margin-bottom: 0; }
.split-card__media { min-width: 0; }
.owl-carousel .item img {
	display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}
@media (max-width: 860px) {
	.split-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}

/* Owl dots */
.owl-theme .owl-dots { margin-top: 16px; text-align: center; }
.owl-theme .owl-dots .owl-dot span { width: 8px; height: 8px; margin: 4px; background: var(--border-strong); border-radius: var(--radius-pill); transition: width 0.2s var(--ease), background 0.2s var(--ease); }
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { background: var(--accent); width: 20px; }
.owl-theme .owl-nav [class*='owl-'] { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-pill); }

/* Reviews (testimonial-slider-and-showcase plugin markup) */
.reviews-card { padding: 32px 32px 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 24px; }
.reviews-card .otzyvy { margin: 0; }
.reviews-card .tss-wrapper .single-item-wrapper {
	background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 8px !important; text-align: left !important;
}
.reviews-card .tss-wrapper .author-name {
	margin: 0 0 12px !important; font-family: var(--font-sans) !important; font-size: 18px !important; font-weight: 500 !important;
	color: var(--text) !important; letter-spacing: -0.01em; text-align: left !important;
}
.reviews-card .tss-wrapper .author-name::before {
	content: ''; display: inline-block; width: 28px; height: 28px; margin-right: 10px; vertical-align: -8px; border-radius: 50%;
	background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c24812'%3E%3Cpath d='M7 7h4v4c0 3-1.5 5-4 6l-.7-1.2C8 15 8.6 13.8 8.7 12H7zm8 0h4v4c0 3-1.5 5-4 6l-.7-1.2c1.7-.8 2.3-2 2.4-3.8H15z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.reviews-card .tss-wrapper .item-content,
.reviews-card .tss-wrapper .item-content p {
	font-family: var(--font-sans) !important; font-size: 15px !important; line-height: 1.65 !important; color: var(--text-muted) !important;
	text-align: left !important; font-style: normal !important;
}
.reviews-card .tss-wrapper .item-content p { margin: 0 0 10px !important; }
.reviews-card .tss-wrapper .item-content::before, .reviews-card .tss-wrapper .item-content::after,
.reviews-card .tss-wrapper .item-content-wrapper::before, .reviews-card .tss-wrapper .item-content-wrapper::after,
.reviews-card .tss-wrapper .single-item-wrapper::before, .reviews-card .tss-wrapper .single-item-wrapper::after { display: none !important; }
.reviews-card .tss-wrapper .item-content-wrapper { background: none !important; padding: 0 !important; border: 0 !important; }
.reviews-card .tss-wrapper .swiper-pagination { position: static !important; margin-top: 20px; }
.reviews-card .tss-wrapper .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--border-strong) !important; opacity: 1 !important; border-radius: var(--radius-pill); transition: width 0.2s var(--ease); }
.reviews-card .tss-wrapper .swiper-pagination-bullet-active { background: var(--accent) !important; width: 20px; }
@media (max-width: 600px) { .reviews-card { padding: 22px 16px 16px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.15s var(--ease); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { position: relative; padding: 20px 36px 20px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--text-muted); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: none; color: var(--accent); }
.faq details p { margin: 0 0 20px; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 600px) { .faq details { padding: 0 18px; } }

/* Unrecognised legacy blocks kept by the layout */
.lp-extra { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Closing call to action */
.cta-panel {
	position: relative; margin-top: var(--section-gap); padding: 56px 48px; border-radius: 24px;
	background: var(--accent); color: var(--on-accent); overflow: hidden; isolation: isolate;
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-arcs path { fill: none; stroke: #fff; stroke-opacity: 0.18; stroke-linecap: round; stroke-width: 40; }
.cta-arcs path:nth-child(2) { stroke-width: 24; }
.cta-panel h2 { margin: 0 0 10px; color: var(--on-accent); font-size: clamp(24px, 3vw, 34px); }
.cta-panel p { margin: 0; max-width: 540px; color: rgba(253, 253, 253, 0.82); }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
	.cta-panel { padding: 36px 24px; }
	.cta-panel__actions, .cta-panel__actions .btn { width: 100%; }
}

/* ======================================================================= */
/* Inner pages                                                              */
/* ======================================================================= */
.page-hero, .mypage, .headerBlock { padding: 64px 0 8px; }
.page-hero .container, .mypage .container, .headerBlock .container { max-width: var(--container); }
.page-hero h1, .mypage h1, .headerBlock h1 { max-width: 860px; margin: 0 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.mypage .section-title, .headerBlock .section-title { max-width: none; margin: 0; text-align: left; }
.mypage h1::after, .section-title--bottobLine::after { display: none !important; }
.headerBlock__smTxt { max-width: 680px; font-size: 18px; color: var(--text-muted); }
.picture-bg, img.img-bg { display: none; }
.page-body { padding-top: 32px; }
.content { padding-top: 32px; }

.entry-content { font-size: 16px; line-height: 1.7; }
.page-body .entry-content > p,
.page-body .entry-content > ul,
.page-body .entry-content > ol,
.page-body .entry-content > h2,
.page-body .entry-content > h3,
.page-body .entry-content > h4,
.page-body .entry-content > blockquote,
.page-body .entry-content > table { max-width: 780px; }
.entry-content h2 { margin: 40px 0 16px; font-size: 28px; }
.entry-content h3 { margin: 32px 0 12px; font-size: 22px; }
.entry-content h4 { margin: 28px 0 10px; font-size: 19px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin: 24px 0; padding: 16px 24px; border-left: 3px solid var(--accent); background: var(--bg-elev); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-muted); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content table, table.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.5em; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.entry-content th { font-weight: 500; color: var(--text-muted); background: var(--bg); }
.entry-footer { margin-top: 32px; font-size: 13px; }

/* Breadcrumbs */
.breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 24px; padding: 0;
	list-style: none; background: none; border-radius: 0; font-size: 13px; color: var(--text-faint);
}
.breadcrumb > li { display: inline-flex; align-items: center; padding: 0; }
.breadcrumb > li + li::before { content: '/' !important; display: inline !important; padding: 0 8px !important; color: var(--border-strong) !important; }
.breadcrumb > li::after { display: none !important; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb > .active { color: var(--text-faint); }

/* Single post */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.single_php { max-width: 760px; }
.single_php .entry-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 24px; }
.single-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.get_help { gap: 12px; }
.get_help h3 { font-size: 20px; }
.get_help .btn { width: 100%; }
.get_help .btn-primary { font-size: 17px; font-weight: 600; }
.right_box { padding: 20px 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.right_box h3 { font-size: 16px; color: var(--text-faint); margin-bottom: 12px; }
.right_box ul { display: grid; gap: 10px; margin: 0; max-height: 420px; overflow-y: auto; }
.right_box a { color: var(--text-muted); }
.right_box a:hover { color: var(--text); }
@media (max-width: 960px) {
	.single-layout { grid-template-columns: 1fr; }
	.single-aside { position: static; }
}
.post-grid { margin-top: 24px; }
.our_posts .card h3 { font-size: 17px; }

/* 404 / empty */
.empty-state { max-width: 640px; margin: 48px auto 0; text-align: center; }
.empty-state__code { font-size: 15px; font-weight: 500; color: var(--accent); margin: 0 0 8px; }
.empty-state .hero-actions { justify-content: center; }

/* Comments */
.comments-area { margin-top: 48px; max-width: 760px; }
.comment-list { list-style: none; padding: 0; }

/* How we work / editorial policy (sContent) */
.sContent { padding: 24px 0 0; }
.sContent__text { max-width: 780px; font-size: 17px; line-height: 1.7; }
.sContent__text h2 { margin: 48px 0 16px; font-size: 26px; }
.stopzav-section { margin-bottom: 8px; }
.stopzav-section ul { padding-left: 1.3em; }

/* Licenses page */
.licenses-hero { padding: 24px 0 0; }
.licenses-hero__lead { font-size: 18px; color: var(--text-muted); max-width: 640px; }
.licenses-hero__pdf a {
	display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: var(--radius-pill);
	background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 14px;
}
.licenses-hero__pdf a:hover { background: var(--accent-hover); color: var(--on-accent); }
.licenses-hero__carousel { margin-top: 8px; }
.licenses-page { padding-top: 16px; }
.licenses-page [class*='col-'] { float: none; }
.licenses-page .row { display: flex; flex-wrap: wrap; }
.licenses-page .row::before, .licenses-page .row::after { display: none; }
.licenses-page .col-12 { width: 100%; }
.licenses-section { margin-top: 48px; padding: 32px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; }
.licenses-page h2 { font-size: 24px; margin-bottom: 20px; }
.licenses-page h2::after { display: none; }
.licenses-dl { margin: 0; display: grid; gap: 4px; }
.licenses-dl dt { font-size: 12px; font-weight: 400; color: var(--text-faint); margin-top: 10px; }
.licenses-dl dt:first-child { margin-top: 0; }
.licenses-dl dd { margin: 0; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.licenses-activities-list { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-muted); }
.licenses-partners-intro { color: var(--text-muted); max-width: 760px; }
.licenses-partners { gap: 16px 0; }
.licenses-clinic { height: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.licenses-clinic__name { font-size: 17px; line-height: 1.4; margin-bottom: 14px; }
.licenses-clinic__activities { margin: 16px 0; }
.licenses-clinic__activities summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent); }
.licenses-clinic__activities ul { margin-top: 12px; }
.licenses-clinic__verify { font-size: 14px; }
.licenses-page .btn-outline-primary {
	display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: var(--radius-pill);
	border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 14px; font-weight: 500;
}
.licenses-page .btn-outline-primary:hover { border-color: var(--text); color: var(--text); background: transparent; }
.licenses-gallery img { border-radius: 10px; border: 1px solid var(--border); }
.licenses-page .col-6 { width: 50%; }
@media (min-width: 768px) {
	.licenses-page .col-md-4 { width: 33.3333%; }
	.licenses-page .col-md-6 { width: 50%; }
}
@media (min-width: 992px) {
	.licenses-partners__col { width: 50%; }
	.licenses-page .col-lg-3 { width: 25%; }
	.licenses-page .col-lg-6 { width: 50%; }
	.licenses-page .col-lg-8 { width: 66.6667%; }
}
@media (max-width: 600px) { .licenses-section { padding: 22px 18px; } }

/* Doctors archive */
.doctor-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0; }
.doctor-archive::before, .doctor-archive::after { display: none; }
.doctor-archive > .col { float: none; width: auto; padding: 0; }
.doctor-card { height: 100%; padding: 0; overflow: hidden; gap: 0; }
.doctor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--border-strong); }
.doctor-card__link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.doctor-card__link:hover { color: var(--text); }
.doctor-card__thumb, .doctor-card__thumb-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }
.doctor-card__thumb-placeholder { display: grid; place-items: center; background: var(--bg-soft); color: var(--text-faint); font-size: 13px; padding: 0 !important; }
.doctor-card .card-body { padding: 18px 20px 22px; }
.doctor-card .card-title { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.doctor-card .card-text { font-size: 14px; }

/* Doctor single */
.doctor-single { display: grid !important; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; margin: 0; }
.doctor-single::before, .doctor-single::after { display: none; }
.doctor-single > [class*='col-'] { float: none; width: auto; padding: 0; text-align: left; }
.doctor-single__photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.doctor-single__photo-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--radius); color: var(--text-faint); }
.doctor-single__name { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 8px; }
.doctor-single__job-title { margin-bottom: 28px !important; }
.doctor-single__section { padding: 20px 24px; margin-bottom: 12px !important; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.doctor-single__section h2 { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--text-faint); margin: 0 0 8px; }
.doctor-single__section p, .doctor-single__section li { font-size: 16px; }
.doctor-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doctor-documents__item { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.doctor-documents__image { display: block; width: 100%; height: auto; transition: transform 0.3s var(--ease); }
.doctor-documents__item:hover .doctor-documents__image { transform: scale(1.02); }
.doctor-single__back a { font-weight: 500; }
@media (min-width: 576px) { .doctor-documents { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
	.doctor-single { grid-template-columns: 1fr; gap: 24px; }
	.doctor-single__photo, .doctor-single__photo-placeholder { max-width: 320px; }
}

/* Cities hub */
.goroda_hub { list-style: none; padding: 0; margin: 0 0 40px; columns: 2; column-gap: 24px; }
.goroda_hub li { break-inside: avoid; padding: 6px 0; }
.goroda_hub a { color: var(--text); }
.goroda_hub a:hover { color: var(--accent); }
.goroda_hub .is-current a { color: var(--accent); font-weight: 500; }
.my_h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 20px; }
@media (min-width: 768px) { .goroda_hub { columns: 4; } }

/* Pagination */
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); background: var(--bg-elev); }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ======================================================================= */
/* Legacy theme blocks still possible inside old page content               */
/* ======================================================================= */
.my_intro { padding-top: 48px; }
.my_intro h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; max-width: 860px; }
.img_clinik { display: none; }
.section2, .section3, .section4, .section5 { padding: 48px 0; }
.us_row { margin-bottom: 24px; }
.ul_chavo { list-style: none; padding: 0; display: grid; gap: 10px; }
.ul_chavo > li { padding: 16px 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.ul_chavo h6 { font-size: 16px; margin: 0; }
.ul_chavo li > p { display: none; margin: 10px 0 0; color: var(--text-muted); }
.ul_chavo li.act > p { display: block; }
.osv_uslugi { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osv_uslugi li a, .osv_uslugi li span { display: inline-flex; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); font-size: 14px; }
.ul_vrachi { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ul_vrachi > li { padding: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.owl-vrachi .item { padding: 12px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.owl-vrachi .item small { color: var(--text-muted); }

/* ACF shortcode sections (inc/shortcode.php) */
section.section { padding: 48px 0; }
.sWeGive__item, .sUrgentServices__item, .sWhoApplying__item {
	height: 100%; padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
}
.sReviews__slide { padding: 24px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.sReviews__name { font-weight: 500; }
.imgWrap img, .sNeedKnow__imgWrap img, .sAbout__imgWrap img { border-radius: var(--radius); }
.callBock__tel a { font-size: 22px; font-weight: 600; color: var(--text); }
.form-wrap__btn, .callForm .form-wrap__btn {
	display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px;
	border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; cursor: pointer;
}
.form-wrap__btn:hover { background: var(--accent-hover); }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type='text'], .wpcf7 input[type='tel'], .wpcf7 input[type='email'], .wpcf7 textarea { width: 100%; }
.wpcf7-submit { height: 48px; padding: 0 28px; border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; cursor: pointer; }
.wpcf7-submit:hover { background: var(--accent-hover); }

/* ======================================================================= */
/* Motion                                                                   */
/* ======================================================================= */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
