body.dom-theme .dom-team .dom-section-heading{display:block;text-align:center;}
body.dom-theme .dom-team .dom-section-heading h2,body.dom-theme .dom-team .dom-section-intro{max-width:none;text-align:center;}
body.dom-theme .dom-team .dom-staff-card{border:0;box-shadow:none;background:transparent;}
body.dom-theme .dom-team .dom-staff-photo{height:auto;aspect-ratio:4/5;max-height:320px;}
body.dom-theme .dom-team .dom-staff-copy{padding:16px 0 0;text-align:left;}
body.dom-theme .dom-team .dom-staff-copy :is(p,dl,dt,dd){text-align:left;}
body.dom-theme .dom-team .dom-staff-name{font-size:18px!important;font-weight:500!important;line-height:1.45;}
body.dom-theme .dom-team .dom-staff-controls{position:static;transform:none;justify-content:center;gap:28px;margin:18px 0 0;}
body.dom-theme .dom-team .dom-staff-controls button,body.dom-theme .dom-diplomas-nav{border:0!important;border-radius:0!important;box-shadow:none;background:transparent;color:#5e303a;}
body.dom-theme .dom-diplomas-groups{background:#faf9f7;padding:32px 24px;}
body.dom-theme .dom-diplomas-title{text-align:center;font-size:30px!important;}
body.dom-theme .dom-document-tablist{justify-content:center;}
body.dom-theme .dom-document-tablist button{border:0!important;border-bottom:1px solid transparent!important;border-radius:0!important;background:transparent!important;color:#51474a!important;padding:10px 6px;font-size:13px!important;}
body.dom-theme .dom-document-tablist button[aria-selected=true]{border-bottom-color:#5e303a!important;color:#5e303a!important;}
body.dom-theme .dom-diplomas-row{max-width:1000px;margin:auto;grid-template-columns:1fr 1fr;gap:8px;}
body.dom-theme .dom-diplomas-track{grid-column:1/-1;grid-row:1;}
body.dom-theme .dom-diplomas-nav{grid-row:2;width:36px;height:36px;}
body.dom-theme .dom-diplomas-nav:first-child{justify-self:end;}
body.dom-theme .dom-diplomas-nav:last-child{justify-self:start;}
body.dom-theme .dom-diploma-card{padding:10px;box-shadow:none;}
body.dom-theme .dom-diploma-open{height:220px;aspect-ratio:auto;}
body.dom-theme .dom-diploma-open img{object-fit:contain;}
body.dom-theme .dom-diploma-caption{text-align:center;}
body.dom-theme .dom-diploma-name{font-size:12px;}
body.dom-theme .dom-diploma-category,body.dom-theme .dom-diploma-rule{display:none;}
body.dom-theme .dom-diplomas-pagination{justify-content:center;}
body.dom-theme .dom-courses-cover{background-position:center;background-size:cover;text-align:center;padding:40px 24px;margin-bottom:32px;}
body.dom-theme .dom-courses-cover h1{font-size:clamp(28px,3vw,44px);margin:8px 0 14px;}
body.dom-theme .dom-courses-cover .dom-courses-intro{max-width:none;margin:0;}
body.dom-theme .dom-course-menu-heading,body.dom-theme .dom-course-sidebar a[aria-current=page],body.dom-theme .dom-course-tabs a[aria-current=page]{background:#5e303a!important;color:white!important;padding:12px 16px;}
body.dom-theme .dom-course-help{margin-top:40px;background:#eee8df url('images/course-coffee.png') center/cover no-repeat;padding:40px;}
body.dom-theme .dom-course-help>div{max-width:58%;}
body.dom-theme .dom-course-help h2{font-size:28px;margin:0 0 14px;}
body.dom-theme .dom-course-help p{font-size:16px;line-height:1.6;margin:0 0 22px;}
@media(max-width:680px){body.dom-theme .dom-course-help{padding:26px 22px;background-image:linear-gradient(#ffffffc9,#ffffffc9),url('images/course-coffee.png');}body.dom-theme .dom-course-help>div{max-width:none;}body.dom-theme .dom-course-help h2{font-size:24px;}body.dom-theme .dom-diplomas-groups{padding:24px 12px;}body.dom-theme .dom-diploma-open{height:180px;}}
/* Compact carousels, lateral controls and approved brand lockup. */
body.dom-theme .dom-diplomas-row{max-width:none;grid-template-columns:36px minmax(0,1fr) 36px;gap:14px;}
body.dom-theme .dom-diplomas-track{grid-row:1;grid-column:2;--dp-cols:5;grid-auto-columns:calc((100% - 4 * var(--dp-gap,20px))/5);}
body.dom-theme .dom-diplomas-nav:first-child{grid-column:1;grid-row:1;justify-self:center;}
body.dom-theme .dom-diplomas-nav:last-child{grid-column:3;grid-row:1;justify-self:center;}
body.dom-theme .dom-diplomas-pagination{display:none!important;}
body.dom-theme .dom-diplomas-groups{padding-bottom:16px;}
body.dom-theme .dom-diploma-caption{padding:10px 0 0;}
body.dom-theme .dom-diploma-name{margin:0;}
body.dom-theme .dom-team{padding-bottom:24px!important;}
body.dom-theme .dom-team .dom-staff-panel{padding-inline:32px;}
body.dom-theme .dom-team .dom-staff-copy,body.dom-theme .dom-team .dom-staff-copy :is(h3,p,dl,dt,dd){text-align:center;}
body.dom-theme .dom-team .dom-staff-copy{padding:12px 0 0;}
body.dom-theme .dom-team .dom-staff-specialization{margin-bottom:8px;}
body.dom-theme .dom-team .dom-staff-meta{padding-top:8px;}
body.dom-theme .dom-team .dom-staff-meta>div+div{margin-top:6px;}
body.dom-theme .dom-team .dom-staff-body{margin-top:10px;}
body.dom-theme .dom-team .dom-staff-controls{position:absolute;inset:140px 0 auto;transform:none;justify-content:space-between;gap:0;margin:0;}
body.dom-theme .dom-team .dom-staff-controls button{width:28px;height:40px;color:#5e303a!important;background:transparent!important;}
body.dom-theme .dom-course-help .dom-button{background:#5e303a!important;color:#fff!important;border:1px solid #5e303a!important;transition:background .2s,color .2s;}
body.dom-theme .dom-course-help .dom-button:hover,body.dom-theme .dom-course-help .dom-button:focus-visible{background:#fff!important;color:#5e303a!important;}
body.dom-theme .dom-course-sidebar .dom-sidebar-care{font-size:16px!important;line-height:1.45!important;letter-spacing:0!important;word-spacing:normal!important;margin-top:20px;padding-top:14px;}
body.dom-theme .dom-course-sidebar .dom-sidebar-care em{letter-spacing:0!important;word-spacing:normal!important;}
body.dom-theme .dom-brand-moscow img,body.dom-theme .dom-reference-footer .dom-footer-logo img{width:240px!important;max-width:100%;height:auto!important;max-height:none!important;object-fit:contain;}
@media(max-width:1100px){body.dom-theme .dom-diplomas-track{grid-auto-columns:calc((100% - 2 * var(--dp-gap,20px))/3);}}
@media(max-width:680px){body.dom-theme .dom-diplomas-track{grid-auto-columns:calc((100% - var(--dp-gap,20px))/2);}body.dom-theme .dom-diplomas-row{gap:6px;grid-template-columns:24px minmax(0,1fr) 24px;}body.dom-theme .dom-brand-moscow img{width:190px!important;}body.dom-theme .dom-course-sidebar .dom-sidebar-care{font-size:15px!important;}}

/* Keep course navigation centered and bring the cover closer. */
body.dom-theme .dom-courses>.dom-course-crumbs{justify-content:center;text-align:center;margin-bottom:24px;}
@media(max-width:680px){body.dom-theme .dom-courses>.dom-course-crumbs{margin-bottom:15px;}}
/* Shared logo and evenly spaced footer columns. */
body.dom-theme .dom-header .dom-brand-moscow img{width:190px!important;height:auto!important;max-height:72px!important;}
body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:240px 1fr 2fr max-content;column-gap:clamp(24px,4vw,70px);}
body.dom-theme .dom-reference-footer .dom-reference-identity{width:240px;text-align:center;}
body.dom-theme .dom-reference-footer .dom-reference-description{text-align:center;letter-spacing:0!important;word-spacing:normal!important;line-height:1.5;margin:4px 0 0;}
body.dom-theme .dom-reference-footer .dom-footer-directions{column-gap:clamp(24px,4vw,70px);}
body.dom-theme .dom-reference-footer .dom-reference-contacts{justify-self:end;}
body.dom-theme .dom-reference-footer .dom-footer-actions{gap:8px;flex-wrap:wrap;}
body.dom-theme .dom-reference-footer .dom-footer-vk{flex-shrink:0;}
@media(min-width:1101px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:240px repeat(3,minmax(100px,1fr)) max-content;}body.dom-theme .dom-reference-grid>nav[aria-label="Направления"]{grid-column:3/5;display:grid;grid-template-columns:subgrid;}body.dom-theme .dom-reference-grid>nav[aria-label="Направления"] h2{grid-column:1/-1;}body.dom-theme .dom-reference-footer .dom-footer-directions{grid-column:1/-1;grid-template-columns:subgrid;}}
@media(max-width:1100px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:1fr 1fr;gap:32px;}body.dom-theme .dom-reference-footer .dom-reference-contacts{justify-self:start;}}
@media(max-width:560px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:1fr;}body.dom-theme .dom-header .dom-brand-moscow img{width:165px!important;}}
/* Text links are underlined only during interaction. */
body.dom-theme a:not(#wpadminbar a){text-decoration:none!important;}
body.dom-theme a:not(#wpadminbar a):hover,body.dom-theme a:not(#wpadminbar a):focus-visible{text-decoration:underline!important;text-underline-offset:3px;}
body.dom-theme .dom-course-card .dom-course-meta{display:flex;justify-content:space-between;align-items:baseline;gap:12px;}
body.dom-theme .dom-course-category{flex:1;min-width:0;text-align:left;}
body.dom-theme .dom-course-format{flex:1;min-width:0;text-align:right;}
body.dom-theme .dom-course-card h3,body.dom-theme .dom-course-card h3 a{text-align:center;}

/* 1.8.92: five balanced footer columns, quiet help card. */
body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:1fr 1fr 1.15fr 1.35fr 1.2fr;gap:28px;align-items:start;}
body.dom-theme .dom-reference-footer .dom-reference-grid>nav[aria-label="Направления"]{grid-column:auto;display:block;}
body.dom-theme .dom-reference-footer .dom-reference-identity{width:auto;max-width:240px;justify-self:center;}
body.dom-theme .dom-reference-footer .dom-reference-contacts{justify-self:stretch;}
body.dom-theme .dom-reference-footer .dom-reference-grid>.dom-footer-column{border-left:1px solid #e5e2e2;padding-left:24px;}
body.dom-theme .dom-reference-footer .dom-footer-help{border:1px solid #e5e2e2;border-radius:12px;padding:22px!important;background:#fff;}
body.dom-theme .dom-reference-footer .dom-footer-help h2{font-weight:500!important;margin-bottom:16px;}
body.dom-theme .dom-reference-footer .dom-footer-help p{font-size:13px;line-height:1.65;margin:0 0 24px;color:#514b47;}
body.dom-theme .dom-reference-footer .dom-footer-help .dom-footer-write{width:100%;gap:8px;padding:10px 12px;background:transparent;color:#5e303a;}
body.dom-theme .dom-reference-footer .dom-footer-actions{display:flex;flex-wrap:nowrap;gap:10px;}
body.dom-theme .dom-reference-footer .dom-footer-vk{width:38px;height:38px;}
body.dom-theme .dom-reference-footer .dom-footer-vk svg{width:19px;height:19px;fill:currentColor;}
body.dom-theme .dom-reference-footer .dom-footer-phone{white-space:normal;}
@media(max-width:1200px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));}body.dom-theme .dom-reference-footer .dom-reference-grid>.dom-footer-column{border-left:0;padding-left:0;}}
@media(max-width:800px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){body.dom-theme .dom-reference-footer .dom-reference-grid{grid-template-columns:1fr;}body.dom-theme .dom-reference-footer .dom-reference-identity{justify-self:start;}body.dom-theme .dom-reference-footer .dom-reference-bottom{align-items:flex-start;}}
