/* ============================================
DARK MODE - WCAG AA COMPLIANT
============================================ */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
/* Dark theme variables */
--med-bg: var(--med-dark-bg);
--med-bg-light: var(--med-dark-bg-light);
--med-bg-gray: #1a1a2e;
--med-text: var(--med-dark-text);
--med-text-light: #d0d0e0;
--med-text-muted: var(--med-dark-text-muted);
--med-border: var(--med-dark-border);
--med-shadow: 0 2px 12px rgba(0,0,0,0.5);
--med-shadow-hover: 0 12px 24px rgba(0,0,0,0.7);
--med-shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.8);
--toast-success: #81c784;
--toast-error: #e57373;
--toast-warning: #ffb74d;
--toast-info: #64b5f6;
/* Светлее для контраста на тёмном фоне */
--med-primary: #7986cb;
--med-focus: #8ab4f8;
--med-focus-ring: rgba(138, 180, 248, 0.3);
}
body {
background: var(--med-bg);
color: var(--med-text);
}
.med-card,
.doctor-card,
.review-card,
.quick-service-card,
details,
.service-item,
.license-image {
	background: var(--med-bg-light);
	border-color: var(--med-border);
}
.glass-panel {
	background: rgba(21, 21, 37, 0.9);
	border-color: rgba(255, 255, 255, 0.15);
}
.med-h1,
.med-h2,
h1, h2, h3, h4, h5, h6,
.med-subtitle,
.review-text,
.modal-content,
.acc-content {
color: var(--med-text);
}
.doctor-position,
.doctor-specialty,
.quick-service-desc,
.result-meta,
.service-item-meta,
.review-footer,
.med-breadcrumbs li:not(:last-child)::after {
color: var(--med-text-light);
}
.result-type,
.service-item-price {
color: var(--med-text-muted);
}
a {
color: #8ab4f8;
}
a:hover {
color: #aecbfa;
}
.astra-child-search-input {
background: var(--med-bg);
color: var(--med-text);
border-color: var(--med-border);
}
.astra-child-search-input::placeholder {
color: var(--med-text-muted);
}
.astra-child-search-results {
background: var(--med-bg-light);
border-color: var(--med-border);
}
.astra-child-search-result {
color: var(--med-text);
border-bottom-color: var(--med-border);
}
.astra-child-search-result:hover,
.astra-child-search-result.is-active {
background: var(--med-bg);
}
.result-icon {
background: var(--med-bg);
color: var(--med-primary);
}
.astra-child-toast {
background: var(--med-bg-light);
color: var(--med-text);
border-color: var(--med-border);
}
.toast-close {
color: var(--med-text-muted);
}
.toast-close:hover {
color: var(--med-text);
background: var(--med-bg);
}
input,
textarea,
select,
.astra-child-form input,
.astra-child-form textarea,
.astra-child-form select {
background: var(--med-bg);
color: var(--med-text);
border-color: var(--med-border);
}
.filter-tab {
color: var(--med-text);
background: var(--med-bg);
border-color: var(--med-border);
}
.filter-tab.is-active {
background: var(--med-primary);
color: #ffffff;
}
.med-btn:focus-visible,
.filter-tab:focus-visible,
.pagination .page-numbers:focus-visible,
.med-messenger-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline-color: var(--med-focus);
box-shadow: 0 0 0 4px var(--med-focus-ring);
}
.pagination .page-numbers {
color: var(--med-text);
background: var(--med-bg);
border-color: var(--med-border);
}
.site-header.is-scrolled {
background: rgba(10, 10, 20, 0.95);
}
.med-section {
background: var(--med-bg);
}
.reviews-section {
background: linear-gradient(135deg, var(--med-bg-gray) 0%, var(--med-bg) 100%);
}
.faq-section summary {
border-left-color: var(--med-primary);
}
.modal-container,
.modal-header,
.modal-footer {
background: var(--med-bg-light);
border-color: var(--med-border);
}
.modal-close {
color: var(--med-text-muted);
}
.modal-close:hover {
color: var(--med-text);
background: var(--med-bg);
}
.skeleton-icon,
.skeleton-text {
background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
}
.medical-hero {
background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}
.medical-hero .hero-badge {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.medical-hero .med-btn {
color: #ffffff;
}
@media (max-width: 768px) {
.medical-hero {
min-height: auto;
padding: 4rem 0;
}
.medical-hero h1,
.medical-hero .med-h1 {
color: #ffffff;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.medical-hero a:not(.med-btn) {
color: #ffffff;
text-decoration: underline;
}
}
/* ✅ ИСПРАВЛЕНО: Текст на страницах и постах в тёмной теме */
.entry-content,
.ast-single-post .entry-content,
.ast-single-page .entry-content,
.single-doctors .entry-content,
.single-services .entry-content {
color: var(--med-text);
background: var(--med-bg);
}
.entry-content :is(h1, h2, h3, h4, h5, h6, p, li, td, th, figcaption, blockquote),
.ast-single-post .entry-content :is(h1, h2, h3, h4, h5, h6, p, li, td, th, figcaption, blockquote),
.ast-single-page .entry-content :is(h1, h2, h3, h4, h5, h6, p, li, td, th, figcaption, blockquote) {
color: inherit;
}
/* Заголовки */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.ast-single-post .entry-content h1,
.ast-single-post .entry-content h2,
.ast-single-post .entry-content h3,
.ast-single-page .entry-content h1,
.ast-single-page .entry-content h2,
.ast-single-page .entry-content h3 {
color: var(--med-text);
}
/* Параграфы */
.entry-content p,
.ast-single-post .entry-content p,
.ast-single-page .entry-content p {
color: var(--med-text);
}
/* Ссылки */
.entry-content a,
.ast-single-post .entry-content a,
.ast-single-page .entry-content a {
color: var(--med-primary);
}
.entry-content a:hover,
.ast-single-post .entry-content a:hover,
.ast-single-page .entry-content a:hover {
color: var(--med-accent);
}
/* Списки */
.entry-content li,
.ast-single-post .entry-content li,
.ast-single-page .entry-content li {
color: var(--med-text);
}
/* Таблицы */
.entry-content table,
.ast-single-post .entry-content table,
.ast-single-page .entry-content table {
background: var(--med-bg-light);
}
.entry-content th,
.entry-content td,
.ast-single-post .entry-content th,
.ast-single-post .entry-content td,
.ast-single-page .entry-content th,
.ast-single-page .entry-content td {
color: var(--med-text);
border-color: var(--med-border);
}
/* Цитаты */
.entry-content blockquote,
.ast-single-post .entry-content blockquote,
.ast-single-page .entry-content blockquote {
background: var(--med-bg-light);
color: var(--med-text-light);
border-left-color: var(--med-primary);
}
/* Код */
.entry-content code,
.entry-content pre,
.ast-single-post .entry-content code,
.ast-single-post .entry-content pre,
.ast-single-page .entry-content code,
.ast-single-page .entry-content pre {
background: var(--med-bg-light);
color: var(--med-text);
}
/* Gutenberg блоки */
.wp-block-group,
.wp-block-columns,
.wp-block-media-text {
background: transparent;
}
.wp-block-group *,
.wp-block-columns *,
.wp-block-media-text * {
color: inherit;
}
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--med-bg);
}
::-webkit-scrollbar-thumb {
background: var(--med-border);
border-radius: 5px;
border: 2px solid var(--med-bg);
}
::-webkit-scrollbar-thumb:hover {
background: #4a4a6a;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--med-border) var(--med-bg);
}
@media (prefers-contrast: high) {
:root {
--med-border: #ffffff;
--med-text-muted: #c0c0d8;
--med-focus: #ffffff;
}
.med-card,
details,
.service-item,
input,
textarea {
border-width: 2px;
}
}
}


/* ============================================
MOBILE DARK MODE FIX
============================================ */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
.entry-content,
.ast-single-post .entry-content,
.ast-single-page .entry-content {
color: var(--med-text);
background: var(--med-bg);
}
.entry-content p,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content li {
color: var(--med-text);
}
}


/* ============================================
PRICE INFO BLOCK - WCAG AA + DARK MODE
============================================ */
.price-info-block {
border-radius: 20px;
overflow: hidden;
margin: 2rem 0;
font-size: 1rem;
line-height: 1.6;
}
.price-header {
background: linear-gradient(135deg, var(--med-primary) 0%, var(--med-secondary) 100%);
color: #ffffff;
padding: 20px 15px;
text-align: center;
}
.price-clinic-name {
margin: 0;
font-size: 1.125rem;
opacity: 0.95;
font-weight: 500;
}
.price-divider {
width: 80px;
height: 3px;
background: rgba(255,255,255,0.5);
margin: 15px auto 0;
border-radius: 2px;
}
.price-section {
background: var(--med-bg-light);
padding: 25px 20px;
border-left: 4px solid var(--med-primary);
}
.price-section--bordered {
border-bottom: 1px solid var(--med-border);
}
.price-section--info {
background: #e7f3ff;
border-left-color: #4dabf7;
text-align: center;
}
.price-section-title {
color: var(--med-primary);
margin: 0 0 1rem 0;
font-size: 1.25rem;
display: flex;
align-items: center;
gap: 0.5rem;
font-weight: 600;
}
.price-text {
margin: 0;
color: var(--med-text);
}
.price-text--centered {
text-align: center;
}
.price-link {
color: var(--med-primary);
text-decoration: none;
border-bottom: 1px dotted currentColor;
transition: color 0.2s;
}
.price-link:hover,
.price-link:focus {
color: var(--med-secondary);
text-decoration: none;
}
.price-link:focus-visible {
outline: 2px solid var(--med-focus);
outline-offset: 2px;
border-radius: 2px;
}
.price-badge {
display: inline-block;
background: #fff3cd;
color: #856404;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.95rem;
margin-left: 0.25rem;
}
.price-legal {
background: var(--med-bg);
padding: 20px 15px;
border-bottom: 1px solid var(--med-border);
text-align: center;
}
.price-legal-text {
margin: 0;
font-size: 0.875rem;
color: var(--med-text-muted);
font-style: italic;
}
.price-legal-warning {
color: var(--med-danger);
font-weight: 500;
font-style: normal;
}
.price-stationary {
background: linear-gradient(135deg, #a62a6a 0%, #8a1c3d 100%);
color: #ffffff;
padding: 30px 20px;
text-align: center;
}
.price-stationary-title {
margin: 0 0 1.25rem 0;
font-size: 1.5rem;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 700;
}
.price-stationary-card {
background: rgba(255,255,255,0.15);
border-radius: 15px;
padding: 20px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}
.price-stationary-note {
margin: 0 0 1rem 0;
font-size: 1.05rem;
font-weight: 500;
}
.price-underline {
text-decoration: underline;
text-decoration-style: wavy;
text-underline-offset: 2px;
}
.price-features {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
list-style: none;
padding: 0;
margin: 15px 0 0 0;
}
.price-feature {
background: rgba(255,255,255,0.25);
padding: 8px 16px;
border-radius: 25px;
font-size: 0.9rem;
white-space: nowrap;
}
.price-footnote {
margin: 15px 0 0 0;
font-size: 0.875rem;
opacity: 0.9;
}
.price-footer {
background: #212529;
color: #ffffff;
padding: 25px 20px;
text-align: center;
}
.price-footer-text {
margin: 0;
font-size: 1rem;
}
.price-footer-slogan {
color: #adb5bd;
font-size: 0.9rem;
display: block;
margin-top: 0.5rem;
}
.price-icon {
font-size: 1.25rem;
vertical-align: middle;
}
@media (max-width: 768px) {
.price-info-block {
border-radius: 16px;
margin: 1.5rem 0;
}
.price-header,
.price-section,
.price-legal,
.price-stationary,
.price-footer {
padding-left: 15px;
padding-right: 15px;
}
.price-stationary-title {
font-size: 1.25rem;
}
.price-features {
gap: 8px;
}
.price-feature {
font-size: 0.85rem;
padding: 6px 12px;
}
}
/* Dark Mode Support for Price Block */
@media (prefers-color-scheme: dark) {
.price-section {
background: var(--med-bg-light);
border-left-color: var(--med-primary);
}
.price-section--info {
background: #1a2a4a;
border-left-color: #64b5f6;
}
.price-text,
.price-section-title,
.price-link {
color: var(--med-text);
}
.price-legal-text {
color: var(--med-text-muted);
}
.price-badge {
background: #4a3a04;
color: #ffd54f;
}
.price-stationary {
background: linear-gradient(135deg, #a62a6a 0%, #8a1c3d 100%);
}
.price-stationary-card {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.15);
}
.price-feature {
background: rgba(255,255,255,0.2);
}
.price-footer {
background: #1a1a24;
border-top: 1px solid var(--med-border);
}
.price-footer-slogan {
color: #8a8a9a;
}
.price-link:focus-visible {
outline-color: var(--med-focus);
}
}


/* ============================================
DARK MODE SUPPORT
============================================ */
@media (prefers-color-scheme: dark) {
	.med-form-input,
	.med-form-select,
	.med-form-textarea {
		background: var(--med-bg-light);
		border-color: var(--med-border);
		color: var(--med-text);
	}
	
	.med-form-input:focus,
	.med-form-select:focus,
	.med-form-textarea:focus {
		border-color: var(--med-primary);
	}
	
	.med-faq-summary {
		background: var(--med-bg-light);
		color: var(--med-text);
	}
	
	.med-faq-content {
		color: var(--med-text-muted);
	}
	
	.med-card-warning {
		background: #3a3a04;
		border-color: #ffd54f;
	}
	
	.med-text-warning {
		color: #ffd54f;
	}
	
	.mobile-fab {
		background: var(--med-bg-light);
		box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
	}
}
