/*
Theme Name: dcclinic.ru
Theme URI: https://dcclinic.ru/
Description: Восстановленный сайт dcclinic.ru: DC Clinic Тема сохраняет адреса страниц исходного сайта и импортирует его содержимое при активации.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Author: dcclinic.ru
Text Domain: dcclinic-ru
License: GPL-2.0-or-later
*/
:root {
	--primary: #1f6f8b;
	--primary-d: #144a5e;
	--accent: #f2a541;
	--bg: #f7f8fa;
	--soft: #e8f1f4;
	--ink: #1d2430;
	--muted: color-mix(in srgb, var(--ink) 62%, #fff);
	--line: color-mix(in srgb, var(--ink) 12%, #fff);
	--card: #fff;
	--r: 14px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px rgba(15, 23, 42, .07);
	--f-head: "Manrope", system-ui, sans-serif;
	--f-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.68 var(--f-body); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: .17em; }
a:hover { color: var(--primary-d); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.22; font-weight: 800; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 22px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .82em 1.45em; border: 2px solid var(--primary); border-radius: calc(var(--r) * .8); background: var(--primary); color: #fff; font: 700 16px/1.2 var(--f-head); text-decoration: none; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--primary-d); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.more-link { display: inline-flex; align-items: center; gap: .35em; font: 700 15px var(--f-head); text-decoration: none; }

/* Верхняя полоса и шапка */
.topbar { background: var(--primary-d); color: color-mix(in srgb, #fff 78%, var(--primary)); font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { margin: 0; display: flex; align-items: center; gap: .5em; }
.topbar__note .icon { color: var(--accent); }
.topbar__search { display: flex; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 2px 4px 2px 14px; }
.topbar__search input { background: none; border: 0; color: #fff; font: inherit; width: 190px; padding: 4px 0; }
.topbar__search input::placeholder { color: rgba(255, 255, 255, .6); }
.topbar__search input:focus { outline: none; }
.topbar__search button { background: none; border: 0; color: #fff; padding: 4px 8px; cursor: pointer; display: flex; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__mark { width: 46px; height: 46px; border-radius: calc(var(--r) * .85); display: grid; place-items: center; background: var(--primary); color: #fff; flex: none; }
.brand__mark .icon { width: 26px; height: 26px; }
.brand__logo { max-height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font: 800 21px var(--f-head); color: var(--ink); }
.brand__tag { font-size: 13px; color: var(--muted); }
.primary-nav .menu { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: 10px 12px; border-radius: calc(var(--r) * .7); color: var(--ink); text-decoration: none; font: 700 15px/1.2 var(--f-head); white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--soft); color: var(--primary-d); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { font-weight: 600; white-space: normal; }
.nav-toggle { display: none; background: var(--soft); color: var(--primary-d); border: 0; border-radius: calc(var(--r) * .7); padding: 10px; cursor: pointer; }
.nav-toggle__close { display: none; }

/* Тёмная шапка */
.header-dark .site-header { background: var(--primary-d); border-bottom-color: transparent; }
.header-dark .topbar { background: color-mix(in srgb, var(--primary-d) 80%, #000); }
.header-dark .brand, .header-dark .brand__name { color: #fff; }
.header-dark .brand__tag { color: rgba(255, 255, 255, .65); }
.header-dark .brand__mark { background: var(--accent); color: var(--primary-d); }
.header-dark .primary-nav a { color: rgba(255, 255, 255, .88); }
.header-dark .primary-nav a:hover, .header-dark .primary-nav .current-menu-item > a { background: rgba(255, 255, 255, .1); color: #fff; }
.header-dark .primary-nav .sub-menu a { color: var(--ink); }
.header-dark .primary-nav .sub-menu a:hover { background: var(--soft); color: var(--primary-d); }
.header-dark .nav-toggle { background: rgba(255, 255, 255, .12); color: #fff; }

/* Первый экран */
.hero { position: relative; overflow: hidden; color: #fff; padding: 68px 0 84px; background: radial-gradient(900px 420px at 88% 10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%), linear-gradient(135deg, var(--primary-d), var(--primary)); }
.hero__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; }
.hero__kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font: 700 13px var(--f-head); letter-spacing: .04em; text-transform: uppercase; }
.hero__title { margin: 0 0 18px; color: #fff; font-size: clamp(30px, 4.3vw, 50px); }
.hero__lead { margin: 0 0 28px; max-width: 640px; font-size: 19px; color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; height: 260px; display: grid; place-items: center; }
.hero__ring { position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.hero__ring--2 { width: 180px; height: 180px; background: rgba(255, 255, 255, .08); }
.hero__icon { position: relative; width: 108px; height: 108px; border-radius: 30px; background: var(--accent); color: var(--primary-d); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.hero__icon .icon { width: 56px; height: 56px; }

/* Секции главной */
.section { padding: 64px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.section__title { margin: 0; font-size: clamp(25px, 2.8vw, 34px); }
.section__lead { margin: -10px 0 26px; color: var(--muted); max-width: 760px; }
.section__text { max-width: 860px; }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.node-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.node { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border-radius: var(--r); text-decoration: none; color: var(--ink); border: 1px solid transparent; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.node:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--ink); }
.node__icon { width: 50px; height: 50px; border-radius: calc(var(--r) * .8); display: grid; place-items: center; background: var(--soft); color: var(--primary); }
.node__icon .icon { width: 26px; height: 26px; }
.node__title { font: 800 17px/1.3 var(--f-head); }
.node__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.cards-outline .node { box-shadow: none; border-color: var(--line); }
.cards-outline .node:hover { border-color: var(--primary); }
.cards-outline .node__icon { background: var(--primary); color: #fff; border-radius: 50%; }

.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: st; }
.steps-row li { counter-increment: st; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.steps-row li::before { content: counter(st); width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font: 800 17px var(--f-head); }
.steps-row strong { font: 800 17px var(--f-head); }
.steps-row span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 44px 18px 0; font: 700 18px var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Карточки записей */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.card__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.card__cat { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.card__time { display: inline-flex; align-items: center; gap: 4px; }
.card__title { margin: 0; font-size: 19px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.card__title a:hover { color: var(--primary); }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Внутренние страницы */
.page-head { padding: 24px 0 32px; background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head__row { display: flex; align-items: center; gap: 18px; }
.page-head__icon { flex: none; width: 64px; height: 64px; border-radius: calc(var(--r) * 1.2); display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.page-head__icon .icon { width: 32px; height: 32px; }
.page-head__title { margin: 0; font-size: clamp(26px, 3.4vw, 40px); }
.page-head__title span { color: var(--muted); font-size: .55em; font-weight: 600; }
.page-head__lead { margin: 8px 0 0; color: var(--muted); font-size: 18px; max-width: 780px; }
.page-head__meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--primary); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-top: 34px; padding-bottom: 68px; }
.layout-wide .layout { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 38px; min-width: 0; }
.list { min-width: 0; }
.node-grid--subs { margin-bottom: 28px; }
.block-title { font-size: 22px; margin: 36px 0 16px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 24px; margin: 1.7em 0 .55em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .32em 0; }
.prose ul li::marker { color: var(--primary); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-family: var(--f-head); }
.prose .note { padding: 16px 20px; border-radius: calc(var(--r) * .8); background: color-mix(in srgb, var(--accent) 14%, #fff); border-left: 4px solid var(--accent); }
.prose .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 1.4em 0; }
.prose .facts li { margin: 0; padding: 16px 18px; border-radius: calc(var(--r) * .8); background: var(--soft); font-size: 15.5px; line-height: 1.5; }
.prose .facts strong { display: block; font-family: var(--f-head); color: var(--primary-d); margin-bottom: 4px; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps li { counter-increment: s; position: relative; padding: 3px 0 12px 50px; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font: 800 16px var(--f-head); }
.entry__note { display: flex; gap: 10px; margin: 30px 0 0; padding: 14px 18px; border-radius: calc(var(--r) * .8); background: var(--soft); color: var(--muted); font-size: 15px; }
.entry__note .icon { color: var(--primary); margin-top: 3px; }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.sidebar { display: grid; gap: 18px; position: sticky; top: 100px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-box__title { margin: 0 0 10px; font-size: 16px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: calc(var(--r) * .6); color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.side-nav .icon { color: var(--primary); }
.side-nav a:hover, .side-nav .is-current a { background: var(--soft); color: var(--primary-d); }
.side-posts { list-style: none; margin: 0; padding: 0; }
.side-posts li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.side-posts a:hover { color: var(--primary); }
.widget ul { margin: 0; padding-left: 1.1em; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.contact-card { padding: 22px; border-radius: var(--r); background: var(--soft); }
.contact-card .icon { width: 30px; height: 30px; color: var(--primary); }
.contact-card--alert { background: #fff3f1; }
.contact-card--alert .icon { color: #c2412d; }
.contact-card__title { margin: 10px 0 6px; font: 800 18px var(--f-head); }
.contact-card p { margin: 0 0 8px; }
.contact-card__muted { font-size: 14px; color: var(--muted); }
.sitemap__list { margin: 0; padding-left: 1.2em; }
.sitemap__list li { margin: 5px 0; }
.sitemap > .sitemap__list > li > a { font-weight: 700; }

.pager ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 30px 0 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: calc(var(--r) * .7); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font: 700 15px var(--f-head); }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-form { display: flex; gap: 10px; margin: 0 0 24px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: calc(var(--r) * .8); font: inherit; background: #fff; }
.empty { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }

/* Подвал */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-top: 52px; padding-bottom: 32px; }
.site-footer__name { margin: 0 0 10px; color: #fff; font: 800 21px var(--f-head); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__mail { display: flex; align-items: center; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .icon { color: var(--accent); }

/* Адаптив */
@media (max-width: 1080px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 960px) {
	.nav-toggle { display: flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow-y: auto; }
	.header-dark .primary-nav { background: var(--primary-d); }
	.nav-open .primary-nav { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; min-width: 0; }
	.header-dark .primary-nav .sub-menu a { color: rgba(255, 255, 255, .8); }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__art { display: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
	.site-footer__bottom { flex-direction: column; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { position: relative; top: 0; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.topbar__note { display: none; }
	.topbar__inner { justify-content: flex-end; }
	.topbar__search input { width: 150px; }
	.site-header__inner { min-height: 66px; gap: 12px; }
	.brand__tag { display: none; }
	.brand__name { font-size: 18px; }
	.hero { padding: 42px 0 52px; }
	.section { padding: 46px 0; }
	.entry { padding: 22px 18px; }
	.page-head__icon { width: 48px; height: 48px; }
	.site-footer__grid { grid-template-columns: 1fr; }
}
.prose img { display: block; margin: 1.4em auto; border-radius: calc(var(--r) * .6); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--primary); color: var(--muted); }
.prose a { overflow-wrap: anywhere; }
.section--text .section__text { max-width: 900px; margin: 0 auto; }
