/* Клиника доктора Маршенина — оформление темы (шапка, меню, подвал, окно, кнопки, замены виджетов Hub). */
:root {
	--mk-zel: #016A68;
	--mk-zel-t: #014f4d;
	--mk-zel-sv: #e6f2f1;
	--mk-zel-yark: #00914F;
	--mk-tekst: #252525;
	--mk-seryy: #5c6166;
	--mk-fon: #ffffff;
	--mk-fon-2: #f4f8f7;
	--mk-liniya: #dfe7e6;
	--mk-spec: linear-gradient(90deg, #fbf7d6 0%, #e9f6e4 100%);
	--mk-radius: 16px;
	--mk-shrift: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mk-shrift-2: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--e-global-color-primary: #016A68;
	--e-global-color-text: #252525;
}
html { scroll-behavior: smooth; }
body {
	font-family: var(--mk-shrift);
	color: var(--mk-tekst);
	background: var(--mk-fon);
	-webkit-font-smoothing: antialiased;
}
body.mk-bez-prokrutki { overflow: hidden; }
a { color: var(--mk-zel); }
a:hover { color: var(--mk-zel-t); }
img { max-width: 100%; height: auto; }
.mk-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.mk-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.mk-skip:focus { left: 8px; }
.mk-ik { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* Кнопки */
.mk-btn,
.elementor-widget-button.mk-btn .elementor-button,
.mk-btn-vidzhet .elementor-button,
.mk-forma .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--mk-zel); color: #fff !important; border: 2px solid var(--mk-zel);
	border-radius: 999px; padding: 14px 28px; font: 600 16px/1.2 var(--mk-shrift);
	text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.mk-btn:hover, .mk-forma .wpcf7-submit:hover,
.elementor-widget-button.mk-btn .elementor-button:hover,
.mk-btn-vidzhet .elementor-button:hover { background: var(--mk-zel-t); border-color: var(--mk-zel-t); color: #fff; }
.mk-btn-vidzhet .elementor-button .elementor-button-text { color: inherit; }
.mk-btn:focus-visible, .mk-btn-vidzhet .elementor-button:focus-visible { outline: 3px solid #f5c84c; outline-offset: 2px; }
.mk-btn-mal { padding: 9px 18px; font-size: 14px; }
.mk-btn-kontur { background: transparent; color: var(--mk-zel) !important; }
.mk-btn-kontur:hover { background: var(--mk-zel-sv); color: var(--mk-zel) !important; }

/* Спецпредложение */
.mk-spec { background: var(--mk-spec); font-size: 15px; }
.mk-spec-in { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; text-align: center; }
.mk-spec-metka { background: rgba(1, 106, 104, .12); color: var(--mk-zel); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.mk-spec-tekst { font-weight: 600; }

/* Шапка */
.mk-shapka { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--mk-liniya); backdrop-filter: blur(6px); }
.mk-shapka-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.mk-logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.mk-logo img { width: 210px; height: auto; display: block; }
.mk-logo-tekst { display: flex; flex-direction: column; color: var(--mk-zel); font: 700 24px/1 var(--mk-shrift); text-transform: uppercase; letter-spacing: .02em; }
.mk-logo-tekst small { font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--mk-seryy); margin-bottom: 3px; }
.mk-menu { flex: 1; min-width: 0; }
.mk-ul, .mk-sub { list-style: none; margin: 0; padding: 0; }
.mk-ul { display: flex; gap: 2px; justify-content: safe center; }
.mk-li { position: relative; }
.mk-li-0 > a { display: block; white-space: nowrap; padding: 26px 10px; color: var(--mk-tekst); font-weight: 600; font-size: 16px; text-decoration: none; }
.mk-li-0 > a:hover, .mk-li-0 > a[aria-current] { color: var(--mk-zel); }
.mk-raskryt { display: none; }
.mk-menu-kontakty { display: none; }
.mk-shapka-pravo { display: flex; align-items: center; gap: 18px; flex: none; }
.mk-metro { display: flex; align-items: center; gap: 6px; color: var(--mk-seryy); font-size: 14px; }
.mk-tel { color: var(--mk-tekst); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.mk-burger { display: none; }

@media (max-width: 1500px) {
	.mk-shapka-pravo .mk-metro { display: none; }
	.mk-li-0 > a { padding-left: 8px; padding-right: 8px; font-size: 15px; }
}

@media (min-width: 1101px) {
	/* Мега-меню «Услуги»: второй уровень — колонки, третий — ссылки */
	.mk-li-0.mk-est-deti > .mk-sub-0 {
		position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px);
		width: min(1100px, 92vw); background: #fff; border-radius: var(--mk-radius);
		box-shadow: 0 24px 60px rgba(0, 0, 0, .12); padding: 28px 32px;
		display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px;
		opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
	}
	.mk-li-0.mk-est-deti:hover > .mk-sub-0,
	.mk-li-0.mk-est-deti:focus-within > .mk-sub-0 { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.mk-li-1 > a { display: block; font-weight: 700; color: var(--mk-zel); text-decoration: none; margin-bottom: 8px; line-height: 1.3; }
	.mk-sub-1 li a { display: block; padding: 5px 0; color: var(--mk-tekst); text-decoration: none; font-size: 15px; line-height: 1.35; }
	.mk-sub-1 li a:hover { color: var(--mk-zel); }
}

@media (max-width: 1100px) {
	.mk-shapka-in { min-height: 64px; justify-content: space-between; }
	.mk-shapka-pravo .mk-metro, .mk-shapka-pravo .mk-btn { display: none; }
	.mk-shapka-pravo { margin-left: auto; }
	.mk-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mk-zel-sv); padding: 0 12px; cursor: pointer; }
	.mk-burger span { display: block; height: 2px; background: var(--mk-zel); border-radius: 2px; transition: transform .2s, opacity .2s; }
	.mk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.mk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.mk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.mk-menu { position: fixed; inset: 64px 0 0 0; background: #fff; overflow-y: auto; padding: 8px 20px 120px; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .25s, visibility 0s .25s; }
	/* clip-path, а не translateX: сдвинутое за край меню расширяло страницу на телефоне до 780 px */
	.mk-menu.mk-otkryto { clip-path: inset(0); visibility: visible; transition: clip-path .25s; }
	.mk-ul { flex-direction: column; gap: 0; }
	.mk-li { border-bottom: 1px solid var(--mk-liniya); display: flex; flex-wrap: wrap; align-items: center; }
	.mk-li > a { flex: 1; padding: 14px 0; color: var(--mk-tekst); text-decoration: none; font-weight: 600; }
	.mk-li-1 > a, .mk-li-2 > a { font-weight: 500; }
	.mk-raskryt { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
	.mk-raskryt::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--mk-zel); border-bottom: 2px solid var(--mk-zel); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
	.mk-raskryt[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(-135deg); }
	.mk-sub { display: none; width: 100%; padding-left: 14px; }
	.mk-sub.mk-otkryto { display: block; }
	.mk-sub .mk-li:last-child { border-bottom: 0; }
	.mk-menu-kontakty { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; align-items: flex-start; }
}
@media (max-width: 600px) {
	.mk-shapka-pravo .mk-tel { display: none; }
	.mk-logo img { width: 170px; }
	.mk-spec-tekst { font-size: 14px; }
}

/* Подвал */
.mk-podval { background: var(--mk-fon-2); border-top: 1px solid var(--mk-liniya); margin-top: 60px; padding: 56px 0 90px; font-size: 15px; }
.mk-podval h2 { font-size: 22px; margin: 0 0 14px; color: var(--mk-tekst); }
.mk-podval-setka { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.mk-nadzag { color: var(--mk-zel); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin: 0 0 6px; }
.mk-spisok-ik { list-style: none; padding: 0; margin: 0 0 18px; }
.mk-spisok-ik li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.mk-spisok-ik .mk-ik { color: var(--mk-zel); margin-top: 3px; }
.mk-spisok-ik a { color: var(--mk-tekst); text-decoration: none; font-weight: 600; }
.mk-soc { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-soc a { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--mk-liniya); border-radius: 999px; padding: 8px 16px; color: var(--mk-zel); text-decoration: none; font-weight: 600; }
.mk-dok { list-style: none; padding: 0; margin: 0; }
.mk-dok li { margin-bottom: 6px; }
.mk-dok a, .mk-podval-org a { color: var(--mk-seryy); }
.mk-podval-niz { border-top: 1px solid var(--mk-liniya); margin-top: 36px; padding-top: 20px; color: var(--mk-seryy); font-size: 13px; }
.mk-preduprezhdenie { font-weight: 600; color: var(--mk-tekst); }
@media (max-width: 900px) { .mk-podval-setka { grid-template-columns: 1fr; gap: 32px; } }

/* Формы Contact Form 7 */
.mk-forma p { margin: 0 0 12px; }
.mk-forma input[type="text"], .mk-forma input[type="tel"], .mk-forma input[type="email"], .mk-forma textarea {
	width: 100%; border: 1px solid #cfd8d7; border-radius: 12px; padding: 14px 16px; font: 500 16px/1.3 var(--mk-shrift); background: #fff; color: var(--mk-tekst);
}
.mk-forma input:focus, .mk-forma textarea:focus { outline: 2px solid var(--mk-zel); border-color: var(--mk-zel); }
.mk-forma .wpcf7-list-item { margin: 0; }
.mk-forma .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--mk-seryy); }
.mk-forma .wpcf7-submit { width: 100%; }
.mk-forma .mk-lovushka { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 12px 0 0; }

/* Окно записи */
.mk-okno { border: 0; border-radius: 22px; padding: 32px; width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.mk-okno::backdrop { background: rgba(10, 30, 29, .55); }
.mk-okno h2 { margin: 0 0 8px; font-size: 24px; }
.mk-okno-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--mk-seryy); }
.mk-okno-ili { text-align: center; color: var(--mk-seryy); margin: 8px 0 0; }

/* Нижние кнопки на телефоне */
.mk-niz-knopki { display: none; }
@media (max-width: 767px) {
	.mk-niz-knopki { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--mk-liniya); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
	.mk-niz-knopki a { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 14px 8px; font-weight: 700; text-decoration: none; color: var(--mk-zel); }
	.mk-niz-knopki a + a { background: var(--mk-zel); color: #fff; }
}

/* Cookie */
.mk-kuki { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; border-radius: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, .18); padding: 18px 20px; font-size: 14px; }
.mk-kuki p { margin: 0 0 12px; }
.mk-kuki-knopki { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-kuki-knopki .mk-btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 767px) { .mk-kuki { bottom: 64px; left: 8px; right: 8px; } }

/* Хлебные крошки */
.mk-kroshki { font-size: 14px; color: var(--mk-seryy); margin: 0 0 16px; }
.mk-kroshki ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.mk-kroshki li + li::before { content: "›"; margin-right: 6px; color: #9aa3a2; }
.mk-kroshki a { color: var(--mk-seryy); text-decoration: none; }

/* Замены виджетов прежней темы */
.mk-shagi { list-style: none; counter-reset: sh; margin: 0; padding: 0; display: grid; gap: 14px; }
.mk-shagi li { counter-increment: sh; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.mk-shagi li::before { content: counter(sh); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mk-zel); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mk-banner { position: relative; border-radius: var(--mk-radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; background: var(--mk-zel-sv) center/cover no-repeat; }
.mk-banner-in { position: relative; padding: 28px; background: linear-gradient(0deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8)); width: 100%; }
.mk-banner-in h2, .mk-banner-in h3 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 34px); }
.mk-stati { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.mk-stati a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mk-liniya); border-radius: var(--mk-radius); overflow: hidden; color: var(--mk-tekst); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.mk-stati a:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.mk-stati img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mk-stati span { padding: 16px 18px 20px; font-weight: 600; line-height: 1.35; }
.mk-stati time { padding: 0 18px 16px; color: var(--mk-seryy); font-size: 13px; margin-top: -10px; }
.mk-galereya-podpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.mk-galereya-podpis figure { margin: 0; }
.mk-galereya-podpis img { border-radius: 12px; }
.mk-galereya-podpis figcaption { font-weight: 600; margin-top: 8px; }
.mk-karta iframe { width: 100%; height: 450px; border: 0; border-radius: var(--mk-radius); display: block; }
.mk-net-foto { display: none !important; }

/* Записи */
.mk-zapis { max-width: 860px; margin: 0 auto; padding: 32px 20px; font-size: 18px; line-height: 1.65; }
.mk-zapis h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.mk-zapis-meta { color: var(--mk-seryy); font-size: 15px; }

/* Широкие таблицы старых страниц: на телефоне листаются внутри себя, страница не расширяется */
@media (max-width: 767px) {
	.site-main table, .mk-zapis table { display: block; max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch; } /* !important: CSS старых страниц ставил таблице overflow:hidden */
}

/* 03.11: рисунок в карточке услуги на главной (вместо утраченного фото) */
.mk-kartochka-ris{margin:0 0 14px!important}
.mk-kartochka-ris img{width:100%!important;height:180px!important;object-fit:cover;border-radius:12px;display:block}
@media (max-width:767px){.mk-kartochka-ris img{height:150px!important}}

/* 04.11: фон взамен утраченных картинок — белый текст был на белом (герой 3 страниц, блок «Стоит записаться») */
main.post-3344 .elementor-element-c6c1e17,main.post-2765 .elementor-element-c6c1e17,main.post-3817 .elementor-element-f437cdd,
.elementor-element-0723b68,.elementor-element-378aed5{background:linear-gradient(135deg,#016A68 0%,#208F7A 100%)!important;border-radius:20px}
/* 04.11: разделы, файлы которых ещё не перенесены со старого хостинга; придут фото — убрать */
.elementor-element-ad36f46,
.elementor-element-50f8cda,
.elementor-element-fb23704,.elementor-element-6369744,.elementor-element-4a27b92,
.elementor-element-57711d3{display:none!important}
.um-hero .um-img:not(:has(img)){display:none}
.um-hero:has(.um-img:not(:has(img))){grid-template-columns:1fr!important}
.um-boxed:has(> .um-gallery):not(:has(img)){display:none}
/* Фото клиники: галерея «Интерьер» и контакты (04.11.2026, снимки из карточки клиники на Яндекс Картах) */
.mk-galereya{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;width:100%}
.mk-galereya a{display:block;aspect-ratio:3/2;border-radius:14px;overflow:hidden}
.mk-galereya img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.mk-galereya a:hover img{transform:scale(1.03)}
.mk-foto{display:block;width:100%;height:auto;border-radius:14px}
@media(max-width:900px){.mk-galereya{grid-template-columns:repeat(2,1fr);gap:10px}}
.mk-po-teme{max-width:1200px;margin:40px auto;padding:22px 24px;background:#F2F8F6;border-radius:16px;display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center}
.mk-po-teme__z{font-weight:600;margin-right:6px}
.mk-po-teme a{padding:8px 14px;background:#fff;border:1px solid #BFDDD5;border-radius:999px;color:#016A68;text-decoration:none;font-size:15px}
.mk-po-teme a:hover{background:#016A68;color:#fff}
@media(max-width:900px){.mk-po-teme{margin:24px 16px}}

