/* doctor.ru, quiz-inspired editorial theme. Loaded after the existing layout. */
@font-face{font-family:'PT Sans';src:url('/quiz/assets/fonts/ptsans-regular-cyrillic.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'PT Sans';src:url('/quiz/assets/fonts/ptsans-regular-latin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}
@font-face{font-family:'PT Sans';src:url('/quiz/assets/fonts/ptsans-bold-cyrillic.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'PT Sans';src:url('/quiz/assets/fonts/ptsans-bold-latin.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF}
:root{--paper:#f8f6f1;--ink:#262621;--muted:#65635e;--line:#ddd9d0;--orange:#bf3e20;--peach:#f4dfd0;--blue:#dfe9ee;--yellow:#f3e8be;--sage:#e4e8da;--primary-color:var(--orange);--primary-dark:#96331d;--primary-light:#bf3e20;--secondary-color:#435f6c;--accent-color:var(--orange);--text-primary:var(--ink);--text-secondary:#56544e;--text-light:var(--muted);--bg-primary:#fffdf8;--bg-secondary:var(--paper);--bg-tertiary:#eeeae0;--border-color:var(--line);--border-color-dark:#c5c0b5;--shadow-sm:none;--shadow-md:none;--shadow-lg:none;--shadow-xl:none;--max-width:1208px;--radius-md:18px;--radius-lg:22px;--radius-xl:24px}
html{scroll-behavior:auto}body{font-family:'PT Sans',Arial,sans-serif;font-size:18px;line-height:1.5;font-synthesis:none;overflow-x:visible}h1,h2,h3{letter-spacing:-.025em;line-height:1.12;font-weight:700}a,button,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #315a92;outline-offset:5px}button,input{font:inherit}::selection{background:var(--peach)}
.header{position:relative;background:var(--paper);border:0;box-shadow:none}.header-container{padding-inline:24px}.header-top{min-height:100px;border-bottom:1px solid var(--line);gap:30px;padding-block:18px}.header.scrolled{box-shadow:none}.logo{font-size:34px;letter-spacing:-1.6px;gap:9px;color:var(--ink);font-weight:700;white-space:nowrap}.logo:hover{color:var(--orange)}.nav{gap:26px}.nav a{font-size:16px;color:var(--ink);padding:10px 0;font-weight:400}.nav a:hover{color:var(--orange);background:none}.search-bar{max-width:270px;flex:1}.search-input{background:transparent;border:1px solid #c5c0b5;border-radius:40px;min-height:46px;font-size:15px;padding:10px 46px 10px 18px}.search-input:focus{border-color:var(--orange);box-shadow:none}.search-btn{color:var(--ink);width:44px;height:44px}.mobile-menu-btn{color:var(--ink);width:44px;height:44px;align-items:center;justify-content:center}.mobile-nav{background:var(--paper);border-color:var(--line);box-shadow:none}
.hero{padding:0;background:var(--paper);color:var(--ink);margin:0;overflow:visible}.hero:before{display:none}.hero-content{padding:66px 24px 55px;text-align:left;min-height:456px;position:relative}.hero-copy{width:59%;position:relative;z-index:1}.hero h1{color:var(--ink);font-size:clamp(46px,5.2vw,68px);font-weight:700;line-height:1.03;letter-spacing:-.043em;margin:0 0 25px}.hero h1 span{color:var(--orange)}.hero-subtitle{font-size:19px;line-height:1.45;max-width:490px;margin:0;opacity:1;color:#56544e;display:block}.hero-art{position:absolute;width:41%;height:390px;object-fit:contain;right:15px;top:30px;mix-blend-mode:multiply}.hero-stats{justify-content:flex-start;gap:26px;margin-top:30px}.stat-item{display:grid;grid-template-columns:auto auto;column-gap:10px;row-gap:0;text-align:left;align-items:center}.stat-number{font-size:29px;letter-spacing:-.03em;line-height:1.1;grid-column:1}.stat-label{font-size:13px;opacity:1;color:var(--muted);grid-column:1;grid-row:2}.stat-new{font-size:11px;background:var(--sage);opacity:1;color:#4a5540;grid-column:2;grid-row:1;transform:rotate(-5deg);padding:4px 7px;border-radius:5px}
.container{padding-inline:24px}.content-wrapper{padding-top:30px;padding-bottom:40px}.hero+.content-wrapper{padding-top:0}.section{margin-bottom:54px}.section-header{border-top:1px solid var(--line);padding-top:24px;margin-bottom:24px;gap:20px;min-height:70px}.section-title{padding-left:0;font-size:31px;line-height:1.15;margin-bottom:0}.section-title:before{display:none}.section-link{font-size:15px;color:var(--ink);white-space:nowrap;gap:12px}.section-link svg{width:28px;height:28px;padding:5px;border:1px solid var(--line);border-radius:50%}.section-link:hover{color:var(--orange)}
.articles-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.article-card{background:var(--peach);border:1px solid transparent;border-radius:22px;box-shadow:none;overflow:hidden;transition:transform .18s,border-color .18s}.article-card:nth-of-type(3n+2){background:var(--blue)}.article-card:nth-of-type(3n){background:var(--yellow)}.article-card:nth-of-type(n+4){background:#efede5}.article-card:before{display:none}.article-card:hover{box-shadow:none;transform:translateY(-3px);border-color:#a89b87}.article-card>a{display:block;height:100%;color:var(--ink)}.article-content{padding:25px 26px 55px;min-height:225px;height:100%;position:relative}.article-content:after{content:'↗';position:absolute;right:22px;bottom:17px;font-size:24px;line-height:32px;text-align:center;width:34px;height:34px;border:1px solid #aaa393;border-radius:50%;color:var(--ink)}.article-author{gap:10px;margin-bottom:25px}.author-avatar{width:42px;height:42px;border:2px solid #fffdf8}.author-name{font-size:14px;font-weight:700;white-space:normal}.author-role{font-size:12px;white-space:normal;line-height:1.25}.article-title{font-size:24px;font-weight:700;line-height:1.16;display:block;overflow:visible;margin-bottom:0;letter-spacing:-.025em}.article-date-small{margin-top:15px}.questions-list{display:grid;grid-template-columns:1fr 1fr;gap:20px}.question-card{background:#eeece3;border-radius:22px;border:1px solid var(--line);padding:27px;transition:background .18s}.question-card:before{display:none}.question-card:hover{background:#e8e5da;transform:none;box-shadow:none;border-color:#c0b8a7}.question-text{font-size:25px;line-height:1.2;font-weight:700;margin:19px 0 25px;letter-spacing:-.02em}.question-category{background:var(--paper);color:var(--muted);font-size:12px;padding:4px 10px}.question-doctor{font-size:14px}.doctor-icon{background:var(--paper)}
.categories-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.category-tag{display:flex;align-items:center;gap:12px;text-align:left;font-size:15px;line-height:1.25;min-height:64px;background:transparent;border-color:var(--line);border-radius:14px;padding:12px 14px;overflow-wrap:anywhere}.category-tag:hover{background:var(--peach);border-color:#c9ae98;color:var(--ink);transform:none;box-shadow:none}.category-tag:before{content:'';width:34px;height:34px;flex:none;background:url('/design-r1/bag.webp') center/contain no-repeat;mix-blend-mode:multiply}.category-tag[href='/cat/18/']:before{background-image:url('/design-r1/cardiology.webp')}.category-tag[href='/cat/23/']:before{background-image:url('/design-r1/neurology.webp')}.category-tag[href='/cat/33/']:before{background-image:url('/design-r1/pediatrics.webp')}.category-tag[href='/cat/13/']:before{background-image:url('/design-r1/gynecology.webp')}.category-tag[href='/cat/26/']:before{background-image:url('/design-r1/oncology.webp')}.category-tag[href='/cat/31/']:before{background-image:url('/design-r1/ophthalmology.webp')}
/* Compact section illustrations; the headings and their source data stay intact. */
.page-header{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:176px;padding:28px 210px 28px 32px;text-align:left;background:#eeece3;border-radius:24px;margin:0 0 36px}.page-header:after{content:'';position:absolute;right:28px;top:50%;transform:translateY(-50%);width:152px;height:152px;background:url('/design-r1/bag.webp') center/contain no-repeat;mix-blend-mode:multiply;pointer-events:none}.page-title{font-size:46px;line-height:1.04;letter-spacing:-.035em;margin:0 0 10px;overflow-wrap:anywhere}.page-description{font-size:18px;line-height:1.4;margin:0;max-width:650px;color:#56544e}.page-title:only-child{margin-bottom:0}body[data-page-path^='/doctors'] .page-header{background:var(--blue)}body[data-page-path^='/doctors'] .page-header:after{background-image:url('/design-r1/hero.webp')}body[data-page-path^='/articles'] .page-header,body[data-page-path^='/pub'] .page-header{background:var(--yellow)}body[data-page-path^='/articles'] .page-header:after,body[data-page-path^='/pub'] .page-header:after,body[data-page-path^='/archive'] .page-header:after{background-image:url('/design-r1/reader.webp')}
body[data-page-path^='/cat/18/'] .page-header{background:var(--peach)}body[data-page-path^='/cat/18/'] .page-header:after{background-image:url('/design-r1/cardiology.webp')}
body[data-page-path^='/cat/23/'] .page-header{background:var(--blue)}body[data-page-path^='/cat/23/'] .page-header:after{background-image:url('/design-r1/neurology.webp')}
body[data-page-path^='/cat/33/'] .page-header{background:var(--yellow)}body[data-page-path^='/cat/33/'] .page-header:after{background-image:url('/design-r1/pediatrics.webp')}
body[data-page-path^='/cat/13/'] .page-header{background:var(--peach)}body[data-page-path^='/cat/13/'] .page-header:after{background-image:url('/design-r1/gynecology.webp')}
body[data-page-path^='/cat/26/'] .page-header{background:var(--sage)}body[data-page-path^='/cat/26/'] .page-header:after{background-image:url('/design-r1/oncology.webp')}
body[data-page-path^='/cat/31/'] .page-header{background:var(--blue)}body[data-page-path^='/cat/31/'] .page-header:after{background-image:url('/design-r1/ophthalmology.webp')}
.articles-list{gap:14px}.article-list-item,.doctor-card-compact{background:var(--bg-primary);border-radius:18px;box-shadow:none}.article-list-item:hover,.doctor-card-compact:hover{box-shadow:none;border-color:#b9b1a2;transform:none}.article-list-title{font-size:26px;line-height:1.18}.article-list-link{padding:25px 28px}.article-list-author{margin-bottom:15px}.article-list-author-name{font-size:15px}.doctors-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.doctor-card-link{padding:22px;gap:16px}.doctor-name-compact{font-size:21px;line-height:1.15}.doctor-about{line-height:1.4}.doctor-avatar-compact{border-color:var(--peach)}.doctor-stats{color:var(--muted)}.btn-primary{background:var(--ink)}.btn-primary:hover{background:#48463f;transform:none;box-shadow:none}.btn-secondary{color:var(--ink);border-color:#bcb8ae}.pagination-page,.pagination-btn{border-radius:10px}.pagination-page-active{background:var(--ink);border-color:var(--ink)}.breadcrumb{font-size:14px;flex-wrap:wrap;line-height:1.4}.question-title,.article-view-title{font-size:43px;line-height:1.13;letter-spacing:-.025em}.article-view,.question-page{max-width:860px}.article-author-card,.doctor-card,.doctor-profile{background:#eeece3;box-shadow:none;border-color:var(--line);border-radius:20px}.article-view-content,.answer-content{font-size:19px;line-height:1.65}.article-view-content h2,.answer-content h2{font-size:29px;line-height:1.2}.article-category-link,.question-category-badge{background:var(--peach);color:#91381f}.article-view-content p,.answer-content p{line-height:inherit}.article-view-content img{height:auto;max-width:100%}
.footer{background:var(--ink);border:0;padding:48px 0 25px;margin-top:24px;color:var(--paper)}.footer-content{max-width:1208px;padding-inline:24px}.footer-grid{gap:36px}.footer-section h3{font-size:20px;font-weight:700;color:var(--paper);letter-spacing:-.01em}.footer-description,.footer-links a,.footer-copyright,.footer-social a{color:#d6d2c8}.footer-description{font-size:15px;line-height:1.55}.footer-links a{font-size:14px}.footer-links a:hover{color:white;text-decoration:underline}.footer-bottom{border-top:1px solid #4c4b44;padding-top:24px;margin-top:32px;font-size:13px}.footer-age{background:transparent;color:var(--paper);border:1px solid #77766c;transform:rotate(-6deg);border-radius:8px}.footer-copyright a{color:#d6d2c8!important}.ad-slot{border-block:1px solid var(--line);background:transparent;border-radius:0;margin-block:40px}.ad-slot:empty{min-height:70px}.ad-slot.preview-ad{min-height:88px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase}
@media(min-width:969px){.mobile-menu-btn{display:none}}
@media(max-width:1050px){.header-top{gap:20px}.nav{gap:18px}.logo{font-size:30px}.search-bar{max-width:230px}.hero h1{font-size:58px}.hero-copy{width:61%}.hero-art{width:38%;right:20px}.categories-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.doctors-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-title{font-size:23px}.article-content{padding-inline:22px}}
@media(max-width:968px){.header-top{min-height:84px;flex-wrap:wrap;gap:12px}.nav{display:none}.mobile-menu-btn{display:flex;order:2}.search-bar{order:1;margin-left:auto;max-width:300px}.hero-content{padding-top:45px;padding-bottom:40px;min-height:390px}.hero h1{font-size:50px}.hero-subtitle{font-size:18px}.hero-art{height:300px;top:45px}.hero-stats{gap:24px}.articles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-card:nth-of-type(n){background:var(--peach)}.article-card:nth-of-type(3n+2){background:var(--blue)}.article-card:nth-of-type(3n){background:var(--yellow)}.page-title{font-size:40px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.header-container,.container,.hero-content,.footer-content{padding-inline:18px}.header-top{min-height:74px;padding-top:14px;padding-bottom:14px;gap:12px}.logo{font-size:30px}.mobile-menu-btn{margin-left:auto}.search-bar{order:3;max-width:none;flex-basis:100%;margin:0}.search-input{font-size:16px;min-height:44px;padding-block:9px}.hero-content{padding-top:30px;padding-bottom:30px;min-height:0;display:flex;flex-direction:column}.hero-copy{width:100%}.hero h1{font-size:clamp(39px,8.5vw,52px);line-height:1.04;margin-bottom:19px;max-width:520px}.hero-subtitle{display:block;font-size:18px;line-height:1.45;max-width:500px}.hero-art{position:static;width:100%;height:220px;object-fit:contain;margin-top:12px;order:2}.hero-stats{gap:32px;margin-top:24px}.stat-number{font-size:27px}.stat-label{font-size:12px}.stat-new{font-size:10px}.section{margin-bottom:34px}.section-header{padding-top:20px;gap:14px;align-items:flex-start;min-height:0;margin-bottom:20px}.section-title{font-size:27px;line-height:1.1}.section-link{font-size:12px;gap:5px;padding-top:4px;white-space:normal;text-align:right;max-width:95px;flex-shrink:0}.section-link svg{width:25px;height:25px;flex:none}.articles-grid{grid-template-columns:1fr;gap:14px}.article-content{min-height:210px;padding:23px 24px 52px}.article-title{font-size:26px;line-height:1.14}.article-author{margin-bottom:20px}.author-name{font-size:15px}.author-role{font-size:13px}.questions-list{grid-template-columns:1fr;gap:14px}.question-card{padding:24px}.question-text{font-size:25px}.categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-tag{font-size:13px;gap:7px;padding:10px 8px;min-height:66px;border-radius:12px}.category-tag:before{width:28px;height:28px}.content-wrapper{padding-top:24px}.page-header{min-height:145px;padding:25px 122px 25px 20px;border-radius:20px;margin-bottom:26px}.page-header:after{width:100px;height:100px;right:14px}.page-title{font-size:32px;line-height:1.05}.page-description{font-size:15px;line-height:1.35}.doctors-grid{grid-template-columns:1fr}.doctor-card-link{padding:20px}.article-list-link{padding:22px}.article-list-title{font-size:25px}.question-title,.article-view-title{font-size:33px;line-height:1.12}.article-view-content,.answer-content{font-size:18px;line-height:1.6}.answer-content{padding:22px 18px}.footer{padding-top:34px}.footer-grid{gap:26px 20px}.footer-section:first-child{grid-column:1/-1}.footer-section h3{font-size:19px}.footer-description{max-width:390px}.footer-links a{font-size:14px}.ad-slot{margin-block:28px}.ad-slot.preview-ad{min-height:70px}.pagination{gap:8px;flex-wrap:wrap}.pagination-pages{flex-wrap:wrap}}
@media(max-width:360px){.hero h1{font-size:37px}.hero-stats{gap:20px}.stat-item{column-gap:6px}.stat-number{font-size:25px}.section-title{font-size:24px}.page-header{padding-left:16px;padding-right:108px}.page-header:after{width:88px;height:88px;right:10px}.page-title{font-size:28px}.categories-grid{grid-template-columns:1fr}.category-tag{font-size:15px;min-height:54px;gap:12px}.footer-grid{grid-template-columns:1fr}.article-title{font-size:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.hero-art,.page-header:after,.category-tag:before{display:none}.page-header{padding:0;min-height:0}.footer{background:white;color:black}}
/* Neutralize the paper of the painted spots before multiplying onto tinted panels. */
.hero-art,.page-header:after,.category-tag:before{filter:brightness(1.06)}
.section>.section-title{margin-bottom:22px}
.article-list-item{padding:0}
/* This positioned element forms a stacking context. Paint its own backdrop so
   multiply can blend the illustration into the page rather than onto transparency. */
.hero-content{background:var(--paper)}
.nav a.quiz-nav-link{color:var(--orange);font-weight:700;white-space:nowrap}
@media(min-width:969px) and (max-width:1120px){.header-top{gap:18px}.nav{gap:16px}.nav a{font-size:15px}.search-bar{max-width:190px}.logo{font-size:29px}}

/* Exact wordmark typography from /quiz/, without the section-specific tests badge. */
.logo,.logo:hover{display:inline-flex;align-items:baseline;gap:0;white-space:nowrap;font-size:32px;font-weight:700;letter-spacing:-1.3px;line-height:1;color:var(--ink)}
.logo>span:first-child{color:var(--orange)}
@media(max-width:640px){.logo{font-size:27px}}
@media(max-width:360px){.logo{font-size:25px}}
