/*
Theme Name: Мой педиатр
Description: Адаптация проверенной медицинской темы для moipediatr.ru.
Version: 1.0.0
Text Domain: moipediatr
Requires at least: 6.0
Requires PHP: 7.4
*/
@font-face{font-family:Roboto;src:url(fonts/roboto.woff) format('woff');font-weight:400;font-display:swap}
@font-face{font-family:Roboto;src:url(fonts/roboto-bold.woff) format('woff');font-weight:700;font-display:swap}
@font-face{font-family:'Open Sans';src:url(fonts/open-sans-bold.woff) format('woff');font-weight:700;font-display:swap}
*{box-sizing:border-box}body{margin:0;color:#26343b;background:#fff;font-family:Roboto,Arial,sans-serif;line-height:1.65}a{color:#0c8a80;text-decoration:none}a:hover{color:#08776f}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #0c8a80;outline-offset:4px}img{max-width:100%;height:auto}button,input{font:inherit}.container{max-width:1170px;padding:0 15px;margin:0 auto}.site-header{background:#fff;border-bottom:1px solid #e3ebeb}.header-top{height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-logo{font-size:32px;font-family:Roboto,Arial,sans-serif;font-weight:700;line-height:1.15;color:#0c8a80}.site-logo span{display:block;font-size:12px;font-weight:400;color:#65777c;margin-top:7px}.site-search{display:flex;width:320px;max-width:100%;height:44px}.site-search input{width:100%;min-width:0;border:1px solid #ccd9db;border-right:0;border-radius:6px 0 0 6px;padding:9px 12px;font-size:14px;background:#fff}.site-search button{border:0;border-radius:0 6px 6px 0;padding:9px 18px;background:#0c8a80;color:#fff;font-size:14px;font-weight:700;cursor:pointer}.site-search button:hover{background:#08776f}.section-nav ul{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #e3ebeb;padding:0;margin:0;list-style:none}.section-nav a{display:flex;align-items:center;min-height:54px;padding:10px 0;color:#25383c;font:700 14px/1.45 'Open Sans',Arial,sans-serif}.section-nav a:hover,.section-nav a[aria-current]{color:#07877e;box-shadow:inset 0 -3px #07877e}.site-main{padding-top:34px;padding-bottom:44px;min-height:60vh}h1,h2,h3{font-family:Roboto,Arial,sans-serif;font-weight:700;line-height:1.3}h1{font-size:30px;margin:0 0 22px}h2{font-size:24px}h3{font-size:20px}.archive-note{padding:16px 20px;background:#f0f8f7;border-left:3px solid #0c8a80;font-size:15px;margin:0 0 28px}.content-layout{display:grid;grid-template-columns:minmax(0,780px) minmax(0,300px);gap:45px}.section-title{font-size:22px;margin:0 0 22px;border-bottom:3px solid #51e2cd;padding-bottom:12px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px}.article-card{min-width:0}.card-image{display:block;margin-bottom:12px}.article-card img{width:100%;aspect-ratio:360/261;object-fit:cover;display:block}.category-label{font-size:12px;color:#0c8a80}.article-card h2{font-size:19px;line-height:1.4;margin:6px 0 10px}.article-card h2 a{color:#26343b}.article-card h2 a:hover{color:#0c8a80}.article-card p{font-size:15px;line-height:1.6;margin:0 0 22px}.sidebar section{margin:0 0 32px}.sidebar-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;padding:13px 0;border-bottom:1px solid #e1e9ea}.sidebar-card:not(:has(img)){grid-template-columns:1fr}.sidebar-card .card-image{margin:0}.sidebar-card img{width:96px;height:76px;object-fit:cover;border-radius:4px}.sidebar-card h3{font-size:15px;line-height:1.45;margin:0}.sidebar-card h3 a{color:#26343b}.sidebar-card h3 a:hover{color:#0c8a80}.breadcrumbs{font-size:13px;color:#65777c;margin:0 0 22px}.article-meta{font-size:13px;color:#65777c;margin:0 0 18px}.article-cover{margin:0 0 28px;text-align:center}.article-cover img{max-height:500px;width:auto;object-fit:contain}.article-toc{padding:20px;border:1px solid #d8e6e4;background:#f4faf9;margin-bottom:28px;border-radius:6px}.article-toc h2{font-size:20px;margin:0 0 12px}.article-toc ul{list-style:none;padding:0;margin:0}.article-toc li{margin:6px 0}.article-toc .level-3{padding-left:18px}.article-toc a{font-size:16px;text-decoration:none}.article-body{font-size:17px;line-height:1.7;overflow-wrap:anywhere}.article-body h2,.article-body h3{scroll-margin-top:24px}.article-body h2{margin-top:32px}.article-body h3{margin-top:26px}.article-body img{height:auto}.article-body table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.article-body td,.article-body th{border:1px solid #d0dfe1;padding:10px}.article-body iframe{max-width:100%}.article-body ul,.article-body ol{padding-left:24px}.share{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}.share a,.button{border:1px solid #cfe1df;padding:7px 13px;border-radius:4px;display:inline-block}.related{margin:32px 0}.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.related-grid h2{font-size:15px}.related-grid .article-card p,.related-grid .category-label{display:none}.pagination{margin:32px 0}.pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;list-style:none;padding:0}.pagination .page-numbers a,.pagination .page-numbers span{display:block;min-width:44px;min-height:44px;padding:8px 13px;border:1px solid #d6e2e3;border-radius:6px;color:#31494d;font-size:14px;font-weight:700}.pagination .page-numbers .current{background:#0c8a80;border-color:#0c8a80;color:#fff}.pagination .page-numbers .dots{border-color:transparent}.service-page{max-width:900px}.site-footer{background:#30383b;padding:42px 0;color:#d4dedf}.footer-grid{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:38px}.site-footer .site-logo{color:#51e2cd}.site-footer h2{font-size:18px;color:#fff;margin:0 0 15px}.site-footer ul{list-style:none;margin:0;padding:0}.site-footer li{margin-bottom:9px}.site-footer a{color:#e6f1f2}.site-footer a:hover{color:#51e2cd}.footer-grid>section:nth-child(2) ul{columns:2}.footer-notice{border-top:1px solid #555;padding-top:24px;margin:28px 0 0;font-size:16px;line-height:1.65}.screen-reader-text,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link:focus{display:block;background:#fff;padding:12px;position:relative}
@media(max-width:991px){.content-layout{grid-template-columns:minmax(0,1fr);gap:32px}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.header-top{height:auto;min-height:145px;flex-direction:column;gap:14px;padding-top:18px;padding-bottom:18px}.site-search{width:100%;max-width:430px}.section-nav ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.section-nav a{justify-content:center;text-align:center;font-size:12px;min-height:48px;padding:9px 5px;border-bottom:1px solid #e1eceb}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div{grid-column:1/-1}}
@media(max-width:600px){.site-main{padding-top:24px}h1{font-size:26px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.article-card h2{font-size:17px}.article-card p{font-size:14px}.sidebar{grid-template-columns:1fr}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:1fr;gap:24px}.footer-grid>div{grid-column:auto}.site-footer{padding:30px 0}}
@media(max-width:380px){.cards-grid{grid-template-columns:1fr}.site-logo{font-size:29px}}

.home-popular{margin-top:32px}

.image-credit{font-size:12px;color:#65777c;margin-top:8px;line-height:1.5}

.site-logo-image{display:block;width:300px;max-width:100%;height:auto}.header-top{min-height:110px;height:auto;padding-top:12px;padding-bottom:12px}

.site-footer .site-logo-image{filter:brightness(0) invert(1);width:250px}

/* Homepage topic navigator */
.home-intro{max-width:780px;color:#65777c;margin:0 0 28px;font-size:16px;line-height:1.55}
.home-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.home-topic{border:1px solid #dce9e4;border-radius:5px;overflow:hidden;min-width:0;display:flex;flex-direction:column}
.home-topic-cover{display:block}
.home-topic-cover img{display:block;width:100%;height:155px;object-fit:cover}
.home-topic-copy{padding:20px;display:flex;flex-direction:column;flex:1}
.home-topic h2{font-size:24px;margin:0 0 12px}
.home-topic h2 a,.home-topic li a{color:#26343b}
.home-topic h2 a:hover,.home-topic li a:hover{color:#0c8a80;text-decoration:underline}
.home-topic ul{list-style:none;padding:0;margin:0 0 18px}
.home-topic li{padding:9px 0;border-bottom:1px solid #edf2ef;font-size:16px;line-height:1.4}
.home-topic-all{font-size:15px;font-weight:700;margin-top:auto}
.home-directory{margin:28px 0 0}
@media(max-width:600px){.home-topics{grid-template-columns:1fr;gap:22px}.home-topic h2{font-size:22px}}

.share{align-items:center}.share-label{font-size:16px}

.article-body ul,.article-body ol{padding:16px 24px 16px 44px;margin:24px 0;background:#f4faf9;border:1px solid #d8e6e4;border-radius:6px}
.article-body li{padding-left:5px;margin:10px 0}.article-body li::marker{color:#0c8a80;font-weight:700}
.article-body li>ul,.article-body li>ol{background:transparent;border:0;padding-top:0;padding-bottom:0;margin:10px 0}
.article-body blockquote.article-callout{margin:24px 0;padding:18px 22px;background:#f0f8f7;border-left:4px solid #0c8a80;border-radius:0 6px 6px 0;font-size:17px}
.article-body blockquote.article-callout p{margin:0}.article-body blockquote.article-callout p+p{margin-top:12px}
.article-body .article-notice{margin:24px 0;padding:18px 22px;background:#fff8eb;border-left:4px solid #c18a2f;border-radius:0 6px 6px 0}
.article-body blockquote.article-notice{background:#fff8eb;border-left-color:#c18a2f}
.article-notice-label{display:block;color:#825713;font-size:17px;margin:0 0 8px}
.article-video{margin:28px 0;max-width:100%;aspect-ratio:16/9;min-height:200px;background:#111;border-radius:6px;overflow:hidden}
.article-video iframe{display:block;width:100%;height:100%;border:0;min-height:200px}
@media(max-width:600px){.article-body ul,.article-body ol{padding:12px 16px 12px 34px}.article-body blockquote.article-callout,.article-body .article-notice{padding:16px 18px}}

.article-date{font-size:14px;color:#526568;margin:8px 0 20px}.article-body .table-scroll{overflow-x:auto;margin:24px 0}.article-body table{width:100%;border-collapse:collapse;min-width:520px}.article-body th,.article-body td{padding:11px 14px;border:1px solid #d8e6e4}.article-body tr:nth-child(even){background:#f4faf9}.article-body tr:first-child{background:#eaf3f1;font-weight:600}

.editorial-sources{margin:28px 0 18px;padding:20px;background:#f5faf9;border-left:3px solid #00bdaa}.editorial-sources h2{font-size:20px;margin:0 0 8px}.editorial-sources p{font-size:15px;line-height:1.6;margin:8px 0}
