:root{--course-dark:#282d35;--course-paper:#e8eaed;--course-muted:#bfc4cc}
.courses-site main>section.course-light{background:var(--course-paper)}
.courses-site main>section.course-dark{background:var(--course-dark)}
.course-dialog[open]{display:block;height:auto}.courses-site.course-dialog-open{overflow:hidden}
.course-filters{scrollbar-width:none}.course-filters::-webkit-scrollbar{display:none}
.courses-site{background:var(--course-dark);overflow-x:clip}
.courses-site .topbar{z-index:100}.courses-site .menu{z-index:1}
.course-hero{position:relative;isolation:isolate;min-height:800px;min-height:100svh;display:flex;align-items:center;padding:170px 0 60px;overflow:hidden}
.course-hero-photo{position:absolute;inset:0;z-index:-2}
.course-hero-photo>img{width:100%;height:100%;object-fit:cover;object-position:60% 35%;opacity:.55}
.course-hero-photo>div{position:absolute;inset:0;background:linear-gradient(90deg,#20252bf2 5%,#20252be0 37%,#20252b40 85%),linear-gradient(0deg,#282d35,transparent 50%)}
.hero-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.8fr);gap:70px 8%;align-items:center}
.hero-copy>.eyebrow{color:#e7e8eb;font-size:12px;letter-spacing:.1em}
.hero-copy h1{font-size:clamp(46px,5.5vw,84px);line-height:1.04;letter-spacing:-.045em;margin:30px 0;font-weight:600}
.hero-copy h1 em{font-style:normal;color:var(--gold)}
.hero-lead{font-size:19px;line-height:1.5;max-width:610px;color:#d9dde3}
.hero-actions{display:flex;align-items:center;gap:26px;flex-wrap:wrap;margin-top:35px}
.hero-actions .pill{min-height:48px;padding:14px 24px}.hero-text-link{display:inline-flex;align-items:center;gap:8px;font-size:14px;text-decoration:underline;text-underline-offset:5px}
.hero-note{align-self:end;padding:30px;border-radius:28px;background:#9aa4b32b;border:1px solid #ffffff3b;backdrop-filter:blur(16px);position:relative;margin-bottom:12px}
.hero-note-line{position:absolute;top:-7px;left:30px;width:42px;height:7px;transform:skewX(-35deg);background:var(--gold)}
.hero-note>p{font-size:26px;line-height:1.2;letter-spacing:-.02em}.hero-note-people{display:flex;align-items:center;margin:26px 0;gap:0}
.hero-note-people img{width:38px;height:38px;object-fit:cover;object-position:top;border-radius:50%;border:2px solid #929ba7;margin-left:-10px;background:#e8eaed}.hero-note-people img:first-child{margin-left:0}
.hero-note-people span{font-size:11px;line-height:1.4;margin-left:10px;color:#e1e5ea}.hero-note>a{display:flex;justify-content:space-between;font-size:12px;border-top:1px solid #ffffff40;padding-top:15px;gap:10px}
.hero-metrics{grid-column:1/-1;display:flex;gap:60px;align-items:center;padding-top:35px;border-top:1px solid #ffffff35}
.hero-metrics>div{display:flex;align-items:center;gap:14px}.hero-metrics strong{font-size:52px;line-height:1;letter-spacing:-.05em;font-weight:400}.hero-metrics span{font-size:13px;color:#d9dde3}
.hero-metrics>a{margin-left:auto;width:42px;height:42px;border:1px solid #ffffff5a;border-radius:50%;display:grid;place-items:center}
.course-section{padding:100px 0;position:relative}.course-light{background:var(--course-paper);color:var(--ink)}.course-dark{background:var(--course-dark);color:#fff}
.course-section-head{display:grid;grid-template-columns:1.3fr 1fr;gap:24px 10%;align-items:end;margin-bottom:46px}.course-section-head>.section-code{grid-column:1/-1;color:var(--gold);font-size:12px;letter-spacing:.08em}.course-light .section-code{color:var(--gold)}
.course-section h2{font-size:clamp(34px,3.8vw,54px);line-height:1.08;letter-spacing:-.035em;font-weight:600}
.course-section-head>p{font-size:16px;line-height:1.5;color:var(--course-muted);max-width:440px}.course-light .course-section-head>p{color:#5a616a}
#about .direction-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0 30px}
.direction-card{display:grid;grid-template-columns:36px 1fr;gap:12px;text-align:left;background:none;border:0;border-top:1px solid #737a8750;color:inherit;padding:26px 0;position:relative;min-height:180px;align-content:start}
.direction-card>.ui-icon{width:26px;height:26px;color:var(--gold);grid-row:1/3}.direction-card h3{font-size:20px;font-weight:600;line-height:1.15;letter-spacing:-.02em;padding-right:20px}.direction-card p{font-size:13px;color:#5c636d;line-height:1.5;padding-right:24px}.direction-card .direction-arrow{position:absolute;right:0;top:26px;width:19px;height:19px;color:#737b86;transition:transform .2s}.direction-card:hover .direction-arrow{transform:translate(3px,-3px)}
.course-search-row{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:20px}.course-search{width:520px;max-width:100%;display:flex;align-items:center;gap:14px;border-bottom:1px solid #ffffff50;padding:12px 0}.course-search>.ui-icon{color:var(--gold);width:18px;height:18px}.course-search input{width:100%;padding:0;background:none;border:0;color:white;font-size:17px;outline-offset:8px}.course-search input::placeholder{color:#aab1be}.course-search-row>span{font-size:13px;color:var(--course-muted);white-space:nowrap}
.course-filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 35px}.course-filter{font-size:12px;line-height:1.25;padding:10px 14px;border:1px solid #ffffff35;border-radius:24px;background:none;color:#e0e4e9}.course-filter[aria-pressed=true]{background:var(--gold);color:#242424;border-color:var(--gold)}
.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.course-card{border:1px solid #ffffff35;border-radius:24px;display:flex;flex-direction:column;padding:24px;min-width:0;background:#ffffff04;transition:border-color .2s,background .2s}.course-card:hover{border-color:#ffffff70;background:#ffffff09}
.course-card-kicker{display:flex;justify-content:space-between;gap:16px;color:#aeb6c3;font-size:10px;letter-spacing:.04em;margin-bottom:24px}.course-card h3{font-size:21px;line-height:1.19;letter-spacing:-.02em;margin-bottom:20px;min-height:75px}.course-card-expert{display:flex;align-items:center;gap:10px;font-size:12px;color:#d9dee7;margin-bottom:20px}.course-card-expert img{width:34px;height:34px;object-fit:cover;object-position:top;border-radius:50%;background:#e8eaed}.course-card-duration{font-size:12px;color:#aeb6c3;line-height:1.5;margin-bottom:18px}.course-card-price{font-size:22px;color:var(--gold);font-weight:600;margin-top:auto;margin-bottom:20px;line-height:1}.course-card-price:empty{display:none}
.course-card-actions{display:flex;gap:8px;margin-top:auto}.course-card-actions button{display:flex;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:8px 14px;font-size:11px;font-weight:600;border-radius:23px;border:1px solid #ffffff50;color:#fff;background:none}.course-card-actions .course-add{padding:8px 12px;border-color:var(--gold);color:var(--gold)}.course-card-actions .course-add .ui-icon{width:16px;height:16px}.course-card-actions button:first-child{flex:1}.course-card-actions button:hover{background:#ffffff16}.course-more{display:flex;margin:34px auto 0}.course-more[hidden]{display:none}
.course-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin:0;padding:0;list-style:none}.course-steps li{border-top:1px solid #747b8750;padding-top:20px}.course-steps li>span{font-size:38px;font-weight:400;color:var(--gold);letter-spacing:-.03em}.course-steps h3{font-size:22px;margin:25px 0 12px}.course-steps p{font-size:15px;line-height:1.5;color:#59616d}
.courses-site #training-constructor{background:var(--course-dark);padding:85px 0 95px}.courses-site #training-constructor .tc-heading h2{font-size:clamp(30px,3.4vw,46px)}.courses-site #training-constructor .tc-heading .section-code{font-size:12px}
.course-expert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:35px 30px}.course-expert{min-width:0}.course-expert-portrait{height:280px;position:relative;overflow:hidden;border-radius:24px;background:#d2d7dd;margin-bottom:20px}.course-expert-portrait>img{width:100%;height:100%;object-fit:contain;object-position:center bottom;mix-blend-mode:multiply}.course-expert small{font-size:11px;color:#6a707a}.course-expert h3{font-size:25px;letter-spacing:-.02em;margin:5px 0 10px}.course-expert p{font-size:14px;line-height:1.5;color:#5a616d}.course-expert details{margin-top:14px}.course-expert summary{font-size:12px;color:var(--gold);text-decoration:underline;text-underline-offset:4px;cursor:pointer;list-style:none}.course-expert details p{margin-top:12px}.course-expert .expert-courses-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#292f39;border:0;background:none;padding:0;margin-top:16px;text-decoration:underline;text-underline-offset:4px}
.faq-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:10%}.faq-layout .course-section-head{display:block}.faq-layout h2{margin-top:24px}.course-faq details{border-top:1px solid #ffffff35;padding:22px 0}.course-faq summary{list-style:none;display:flex;justify-content:space-between;gap:20px;font-size:19px;line-height:1.25;cursor:pointer}.course-faq summary::-webkit-details-marker{display:none}.course-faq summary .ui-icon{width:20px;height:20px;flex:0 0 20px}.course-faq details[open] summary .ui-icon{transform:rotate(45deg)}.course-faq p{color:#bfc6d0;font-size:14px;line-height:1.6;margin-top:20px}
.contact-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:12%}.contact-layout h2{margin-top:25px}.contact-layout>div>p{max-width:450px;font-size:16px;color:#5d6470;line-height:1.5;margin:24px 0}.contact-layout .pill{min-height:44px}.course-contact-person{padding-top:45px}.course-contact-person .eyebrow{font-size:11px;color:#6b717c}.course-contact-person h3{font-size:28px;margin:12px 0 24px}.course-contact-person>a{display:block;margin-bottom:12px;font-size:16px}.course-contact-person .course-contact-number{font-size:25px;font-weight:600}.course-contact-person hr{border:0;border-top:1px solid #737b8740;margin:30px 0}.course-contact-person p{font-size:14px!important;margin:7px 0!important}.course-footer{padding:35px 0;background:#1b2027}.course-footer .shell{align-items:center;gap:25px}.course-footer a{display:flex;align-items:center;gap:8px}
.course-dialog{width:min(850px,calc(100vw - 28px));max-height:calc(100dvh - 36px);border:0;border-radius:26px;background:#eef0f2;color:#252b34;padding:42px;overflow:auto}.course-dialog::backdrop{background:#101720b5;backdrop-filter:blur(6px)}.course-dialog-close{position:absolute;right:18px;top:18px;border:0;border-radius:50%;display:grid;place-items:center;width:32px;height:32px;background:#d9dfe5;color:#303744}.course-dialog-close .ui-icon{width:20px;height:20px}.course-dialog .dialog-category{font-size:11px;color:var(--gold);letter-spacing:.06em;margin:0 35px 18px 0}.course-dialog h2{font-size:34px;line-height:1.13;letter-spacing:-.03em;margin-bottom:25px}.course-dialog-expert{display:flex;gap:12px;align-items:center;margin-bottom:25px}.course-dialog-expert img{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:top}.course-dialog-expert p{font-size:14px}.course-dialog-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-block:1px solid #727b8935;padding:20px 0;margin-bottom:28px}.course-dialog-facts small{display:block;color:#737b88;font-size:11px;margin-bottom:5px}.course-dialog-facts p{font-size:14px;line-height:1.45}.course-dialog h3{font-size:21px;margin:28px 0 15px}.course-dialog ul{padding-left:20px}.course-dialog li{font-size:15px;line-height:1.55;margin:9px 0}.course-dialog .dialog-module{font-weight:600;list-style:none;margin-left:-20px;margin-top:22px}.course-dialog-actions{position:sticky;bottom:-42px;background:#eef0f2f5;padding:20px 0 0;display:flex;align-items:center;gap:20px;margin-top:30px}.course-dialog-actions strong{font-size:24px;color:var(--gold)}.course-dialog-actions .pill{margin-left:auto;font-size:11px}.course-dialog-empty{font-size:15px;line-height:1.6;color:#5e6670}.course-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);padding:14px 20px;border-radius:20px;background:#f5a400;color:#242424;box-shadow:0 8px 30px #10172040;font-size:13px;z-index:150;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 24px);text-align:center}.course-toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.hero-layout{gap:50px 5%;grid-template-columns:1.5fr 1fr}.hero-note{padding:24px}.hero-note>p{font-size:22px}.hero-copy h1{font-size:60px}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.course-expert-portrait{height:230px}#about .direction-grid{grid-template-columns:repeat(2,1fr)}.hero-metrics{gap:40px}}
@media(max-width:700px){
 .course-hero{padding:110px 0 40px;min-height:auto}.course-hero-photo>img{object-position:65% center}.course-hero-photo>div{background:linear-gradient(90deg,#20252bf5,#20252bc0),linear-gradient(0deg,#282d35,transparent)}
 .hero-layout{display:block}.hero-copy>.eyebrow{font-size:10px;line-height:1.5;max-width:230px}.hero-copy h1{font-size:clamp(40px,10vw,65px);line-height:1.08;margin:24px 0}.hero-lead{font-size:16px;line-height:1.55;max-width:480px}.hero-actions{gap:18px;margin-top:26px}.hero-actions .pill{font-size:11px;padding:12px 18px;min-height:42px}.hero-text-link{font-size:12px}.hero-note{margin:38px 0 30px;padding:24px}.hero-note>p{font-size:23px}.hero-note-people{margin:20px 0}.hero-note-people span{font-size:12px}.hero-note>a{font-size:12px}
 .hero-metrics{gap:0;justify-content:space-between;padding-top:26px}.hero-metrics>div{display:block}.hero-metrics strong{font-size:38px}.hero-metrics span{display:block;font-size:11px;margin-top:7px}.hero-metrics>a{display:none}
 .course-section{padding:60px 0}.course-section-head{display:block;margin-bottom:30px}.course-section-head>.section-code{display:block;font-size:10px;margin-bottom:20px}.course-section h2{font-size:34px}.course-section-head>p{font-size:14px;margin-top:20px;line-height:1.55}#about .direction-grid{gap:0 20px}.direction-card{grid-template-columns:1fr;gap:12px;min-height:200px;padding:22px 0}.direction-card>.ui-icon{grid-row:auto;width:24px;height:24px}.direction-card h3{font-size:17px;padding:0}.direction-card p{font-size:12px;padding:0}.direction-card .direction-arrow{width:16px;height:16px;top:24px}
 .course-search-row{display:block}.course-search-row>span{display:block;margin-top:15px;font-size:11px}.course-search input{font-size:15px}.course-filters{flex-wrap:nowrap;overflow:auto;margin-right:-5.6%;padding-right:5%;padding-bottom:10px;scrollbar-width:thin}.course-filter{flex:0 0 auto;font-size:11px;max-width:220px;text-align:left}.course-grid{grid-template-columns:1fr;gap:14px}.course-card{padding:22px;border-radius:22px}.course-card-kicker{margin-bottom:17px}.course-card h3{font-size:22px;min-height:0;line-height:1.2}.course-card-expert{margin-bottom:15px}.course-card-price{font-size:23px}.course-card-duration{font-size:12px}.course-card-actions button{font-size:11px;min-height:40px}.course-more{font-size:11px}
 .course-steps{grid-template-columns:1fr;gap:25px}.course-steps li{display:grid;grid-template-columns:44px 1fr;gap:8px 18px}.course-steps li>span{font-size:31px;grid-row:1/3}.course-steps h3{font-size:21px;margin:4px 0 0}.course-steps p{font-size:14px}.courses-site #training-constructor{padding:60px 0}.courses-site #training-constructor .tc-heading h2{font-size:30px}.courses-site #training-constructor .tc-heading .section-code{font-size:10px}
 .course-expert-grid{grid-template-columns:1fr 1fr;gap:30px 18px}.course-expert-portrait{height:185px;border-radius:18px;margin-bottom:16px}.course-expert h3{font-size:20px;line-height:1.1}.course-expert p{font-size:12px;line-height:1.5}.course-expert small{font-size:10px}.course-expert .expert-courses-link{font-size:11px;line-height:1.4;align-items:flex-start}.course-expert details p{font-size:12px}
 .faq-layout,.contact-layout{grid-template-columns:1fr;gap:25px}.faq-layout h2{margin-top:20px}.course-faq summary{font-size:17px}.course-faq p{font-size:13px}.contact-layout>div>p{font-size:14px}.course-contact-person{padding-top:20px;border-top:1px solid #737b8740;margin-top:18px}.course-contact-person h3{font-size:25px}.course-contact-person .course-contact-number{font-size:24px}.course-footer .shell{align-items:flex-start;flex-direction:column;gap:15px;font-size:12px}
 .course-dialog{padding:30px 22px;border-radius:22px;max-height:calc(100dvh - 24px)}.course-dialog h2{font-size:27px;padding-right:12px}.course-dialog-facts{grid-template-columns:1fr;gap:15px}.course-dialog h3{font-size:20px}.course-dialog li{font-size:14px}.course-dialog-actions{bottom:-30px;align-items:flex-start;flex-direction:column;gap:15px;padding-top:18px}.course-dialog-actions .pill{margin-left:0;min-height:40px;width:100%}.course-dialog-actions strong{font-size:22px}
}
@media(max-width:360px){.course-expert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.course-expert-portrait{height:260px}.hero-copy h1{font-size:38px}#about .direction-grid{grid-template-columns:1fr}.direction-card{min-height:0;grid-template-columns:32px 1fr}.direction-card>.ui-icon{grid-row:1/3}.direction-card h3{padding-right:20px}}
@media(prefers-reduced-motion:reduce){.courses-site *, .courses-site *:before,.courses-site *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Reuse the Activity component's original classes, artwork and responsive geometry. */
#programs .direction-tabs{grid-template-rows:repeat(6,minmax(0,1fr))}
#programs .course-program-select{display:block;width:100%;min-height:42px;margin:20px 0;padding:10px 34px 10px 14px;border:1px solid #8a929b70;border-radius:22px;background:#f5a400;color:#242424;font:600 12px Calleo,Arial,sans-serif;text-overflow:ellipsis;cursor:pointer}
#programs .selected-course-copy{margin-top:16px;font-size:19px;min-height:86px}
#programs .selected-course-copy>small{display:block;font-size:13px;line-height:1.4;color:#68717c;margin-top:12px}
#programs .selected-course-copy>strong{display:block;font-size:21px;line-height:1.3;color:var(--gold);margin-top:10px;font-weight:600}
@media(max-width:700px){
 #programs .direction-grid{display:none}
 #programs .mobile-formats-shell{width:100%}
 #programs{padding-bottom:0}
 #programs .mobile-formats{mask-image:linear-gradient(#fff,#fff),var(--join-bottom);mask-size:100% calc(100% - var(--join-height) + 1px),100% var(--join-height);mask-position:top,bottom;mask-repeat:no-repeat}
 #programs .mobile-format-visual{mask-image:url('assets/mobile-format-mask-open-bottom.svg');-webkit-mask-image:url('assets/mobile-format-mask-open-bottom.svg')}
 #programs .mobile-format-pagination button{width:calc(100% / 6)}
 #programs .mobile-course-program{display:block;min-width:0}
 #programs .mobile-course-program>span{font-size:10px;display:block;margin-bottom:5px}
 #programs .mobile-course-program>select{width:100%;min-width:0;min-height:36px;padding:7px 25px 7px 10px;border:1px solid #ffffff80;border-radius:18px;background:#ffffffc9;color:#242424;font:600 11px Calleo,Arial,sans-serif;text-overflow:ellipsis}
 #programs .mobile-format-info>p{font-size:16px;line-height:1.3}
}

/* Arrows select a direction; numbers select a program inside that direction. */
.course-direction-controls{display:flex;align-items:center;gap:8px}.course-direction-controls .tag{margin-right:12px}.course-direction-controls .circle-button{width:34px;height:34px;flex:0 0 34px}.course-direction-controls .circle-button>.ui-icon{width:20px;height:20px}
.course-program-numbers{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.course-program-numbers button{width:34px;height:34px;display:grid;place-items:center;border:1px solid #8c949e70;border-radius:50%;background:none;color:#242424;font:600 14px Calleo,Arial,sans-serif}.course-program-numbers button[aria-current=true]{background:var(--gold);border-color:var(--gold)}
@media(max-width:1000px){.course-direction-controls .tag{display:none}}
@media(max-width:700px){
 #programs .mobile-format-pagination button{width:calc(100% / var(--program-count,1))}
 #programs #mobile-course-title{font-size:16px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:63px;overflow:hidden}
 #programs #mobile-course-expert{font-size:11px;line-height:1.4;display:block}
}

/* Preserve the original shared canvas and matching section cutouts. */
.courses-site main.joined-surfaces>.course-hero{mask-image:linear-gradient(#fff,#fff),var(--join-bottom);mask-size:100% calc(100% - var(--join-height) + 1px),100% var(--join-height);mask-position:top,bottom;mask-repeat:no-repeat}
.courses-site main.joined-surfaces>section.course-light{background:none!important}

/* Speaker avatar and price stay together; the price is below the name. */
#programs .course-speaker{display:flex;align-items:center;gap:11px;margin-top:14px;min-width:0}
#programs .course-speaker>img{display:block;width:40px;height:40px;flex:0 0 40px;border-radius:50%;object-fit:cover;object-position:top;background:#e8eaed}
#programs .course-speaker>span,#programs .course-speaker>div{min-width:0;display:block}
#programs .course-speaker small{display:block;font-size:13px;line-height:1.4;color:#68717c}
#programs .course-speaker strong{display:block;font-size:18px;line-height:1.3;color:var(--gold);margin-top:4px;font-weight:600}
.course-dialog-expert .course-speaker-price{display:block;color:var(--gold);font-size:20px;line-height:1.3;margin-top:5px}
@media(max-width:700px){
 #programs #mobile-course-speaker{gap:10px;margin:0}
 #programs #mobile-course-avatar{width:36px;height:36px;flex-basis:36px}
 #programs #mobile-course-expert{font-size:12px;line-height:1.3;color:#fff}
 #programs #mobile-course-price{font-size:14px;line-height:1.3;margin-top:3px}
}

.course-avatar{display:block;width:40px;height:40px;flex:0 0 40px;border-radius:50%;overflow:hidden;background:#e8eaed}
.course-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.course-avatar img[src*="bogdanov"]{transform:scale(3.4);transform-origin:50% 0}
.course-avatar img[src*="kiselev"]{transform:scale(1.7);transform-origin:50% 0}
.course-dialog-expert .course-avatar{width:48px;height:48px;flex-basis:48px}
@media(max-width:700px){#programs #mobile-course-speaker .course-avatar{width:36px;height:36px;flex-basis:36px}}

/* Prices use high-contrast text on their actual surfaces. */
#programs .course-speaker strong{color:#242424}
.course-dialog-expert .course-speaker-price{color:#242424}
@media(max-width:700px){#programs #mobile-course-price{color:#fff}}
.hero-copy h1{font-size:clamp(42px,4.8vw,68px)}
.hero-copy h1 small{display:block;font-size:23px;line-height:1.3;font-weight:600;letter-spacing:0;color:#e5e8ed;margin-top:22px;max-width:600px}
.hero-copy .hero-lead{font-size:17px;line-height:1.55}
@media(max-width:700px){.hero-copy h1{font-size:clamp(40px,10vw,60px)}.hero-copy h1 small{font-size:18px;margin-top:20px}.hero-copy .hero-lead{font-size:15px;line-height:1.55}}
/* Frame each original photograph around the face, independent of avatar size. */
.course-avatar{position:relative}
.course-avatar img{position:absolute;max-width:none!important;object-fit:initial;transform:none!important;border-radius:0!important;width:var(--avatar-image-width,100%)!important;height:auto!important;left:var(--avatar-image-left,0);top:var(--avatar-image-top,0)}
.course-avatar img[src*="bogdanov"]{--avatar-image-width:338.6364%;--avatar-image-left:-143.1818%;--avatar-image-top:-9.0909%}
.course-avatar img[src*="yudin"]{--avatar-image-width:115.8103%;--avatar-image-left:-7.9051%;--avatar-image-top:0.0000%}
.course-avatar img[src*="niesov"]{--avatar-image-width:100.0000%;--avatar-image-left:0.0000%;--avatar-image-top:0.0000%}
.course-avatar img[src*="samoylova"]{--avatar-image-width:115.8103%;--avatar-image-left:-7.9051%;--avatar-image-top:0.0000%}
.course-avatar img[src*="karpenko"]{--avatar-image-width:121.2500%;--avatar-image-left:-12.5000%;--avatar-image-top:0.0000%}
.course-avatar img[src*="kiselev"]{--avatar-image-width:227.0000%;--avatar-image-left:-42.5000%;--avatar-image-top:0.0000%}

/* Use the main site's hero and about components with course-specific copy. */
.courses-site .hero .headline h1{font-size:clamp(32px,3.3vw,58px)}
.courses-site .about-visual>.large-label{white-space:normal}
@media(max-width:700px){.courses-site .hero .headline h1{font-size:clamp(27px,7.7vw,36px)}}

/* Keep the speaker anchored while program titles change. */
@media(min-width:701px){
 #programs>.direction-grid{grid-template-columns:.85fr 1.15fr;column-gap:48px}
 #programs .selected-course-copy{display:grid;grid-template-rows:112px 48px 40px;gap:10px;min-height:220px}
 #programs .selected-course-copy .course-speaker{margin-top:0;align-self:end}
 #programs .selected-course-copy>.course-duration{margin-top:0}
}
@media(max-width:700px){
 #programs .mobile-format-info{left:20px;right:20px;padding-inline:22px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 37px 1px 34px;gap:12px}
 #programs #mobile-course-speaker{margin:0;align-self:end}
 #programs .mobile-format-rule{margin:0}
 #programs #mobile-course-title{flex-shrink:0}
}

/* Give full course names room and keep small program groups compact. */
@media(max-width:700px){
 #programs .mobile-formats{height:735px}
 #programs #mobile-course-title{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible;overflow-wrap:anywhere}
 #programs .mobile-format-pagination{left:30px;right:30px;top:415px;height:32px;justify-content:center;gap:4px}
 #programs .mobile-format-pagination button{width:36px;height:32px;flex:0 0 36px;font-size:20px}
}
@media(max-width:359px){
 #programs .mobile-format-pagination{left:30px;right:30px;gap:4px}
 #programs .mobile-format-pagination button{width:30px;flex-basis:30px}
}

@media(max-width:700px){
 #course-mobile-formats[data-program-count="7"] .mobile-format-pagination{left:50px;right:50px;gap:0}
 #course-mobile-formats[data-program-count="7"] .mobile-format-pagination button{flex:1 1 0;width:auto;max-width:none}
}

/* Narrow phones need one extra title line; wider phones use a tighter card. */
@media(max-width:389px){#programs .mobile-formats{height:755px}}

/* Reuse each expert's face framing for the large circular portraits. */
#experts .course-expert-portrait{width:min(100%,280px);height:auto;aspect-ratio:1;flex-basis:auto;border-radius:50%;margin:0 auto 20px;background:#e8eaed}
#experts .course-expert-portrait>img{mix-blend-mode:normal}

/* Group comparable biographies and align their course links within each row. */
#experts .course-expert{display:flex;flex-direction:column}
#experts .course-expert .expert-courses-link{margin-top:auto;padding-top:16px;align-self:flex-start}

/* Expert profiles share the accessible program dialog and preserve a return path. */
#experts button.course-expert-portrait{border:0;padding:0;cursor:pointer}
#experts .expert-about{align-self:flex-start;background:none;border:0;padding:0;margin-top:14px;color:#242424;font-size:12px;text-decoration:underline;text-underline-offset:4px}
.expert-dialog-heading{display:flex;align-items:center;gap:28px;margin:0 24px 28px 0}
.expert-dialog-photo{width:160px;height:160px;flex:0 0 160px}
.expert-dialog-heading h2{margin:0 0 12px}
.expert-dialog-heading .dialog-category{margin:0 0 12px;color:#656d78}
.expert-dialog-count{font-size:13px;color:#606974}
.expert-dialog-bio p{font-size:16px;line-height:1.55;margin:14px 0}
.expert-dialog-programs{display:grid;gap:12px}
.expert-dialog-program{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:20px;text-align:left;background:#fff;border:1px solid #c9cfd6;border-radius:18px;color:#242424}
.expert-dialog-program>span{min-width:0}.expert-dialog-program small{font-size:11px;color:#656d78;display:block;margin-bottom:8px}.expert-dialog-program strong{font-size:17px;line-height:1.3;display:block;font-weight:600}
.expert-program-duration{display:block;font-size:12px;line-height:1.4;margin-top:9px;color:#656d78}.expert-program-price{display:block;font-size:16px;font-weight:600;margin-top:10px}
.expert-dialog-program>.ui-icon{width:22px;height:22px;flex:0 0 22px}.expert-dialog-program:hover{border-color:var(--gold);background:var(--gold)}
.expert-dialog-back{display:inline-flex;gap:6px;align-items:center;background:none;border:0;padding:0;margin:0 28px 22px 0;font-size:13px;color:#454f5d}.expert-dialog-back .ui-icon{width:18px;height:18px}
@media(max-width:700px){.expert-dialog-heading{flex-direction:column;align-items:flex-start;gap:20px;margin-right:0}.expert-dialog-photo{width:130px;height:130px;flex-basis:130px}.expert-dialog-heading h2{font-size:28px}.expert-dialog-bio p{font-size:14px}.expert-dialog-program{padding:16px;gap:10px}.expert-dialog-program strong{font-size:15px}}

@media(max-width:360px){
 #experts .course-expert-grid{gap:28px 14px}
 #experts .course-expert h3{font-size:18px;overflow-wrap:anywhere}
 #experts .course-expert p{font-size:12px;overflow-wrap:anywhere}
}

/* Fit the complete course picker into the phone viewport. */
@media(max-width:700px){
 #programs .mobile-formats{--program-info-height:260px;height:clamp(680px,100svh,820px);min-height:680px}
 #programs .mobile-format-info{top:auto;bottom:30px;height:var(--program-info-height)}
 #programs .mobile-format-pagination{top:auto;bottom:calc(var(--program-info-height) + 28px)}
}
@media(max-width:389px){#programs .mobile-formats{--program-info-height:280px}}

#experts .course-expert .expert-courses-link{color:var(--gold)}

#training-constructor .tc-actions{display:block}
#training-constructor .tc-actions .secondary{margin-top:0;background:var(--gold);border-color:var(--gold);color:#242424}
#contacts .contact-grid{gap:30px}
#contacts .contact-grid article{min-width:0}
#contacts .contact-grid a{overflow-wrap:anywhere}
/* Footer uses the same public contact channels as the header popover. */
.footer-contact-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;width:100%;padding-top:28px;border-top:1px solid #ffffff26}
.footer-contact-details{display:grid;gap:10px;min-width:0;color:#fff}.footer-contact-email{font-size:18px;color:inherit;overflow-wrap:anywhere}
.footer-contact-phone{font-size:22px;font-weight:600;white-space:nowrap}.footer-messengers{display:flex;flex-direction:column;align-items:center;align-self:center;gap:12px}.footer-messengers a{display:block;flex:0 0 30px}.footer-messengers img{width:30px;height:30px}
@media(max-width:700px){.footer-contact-phone{font-size:18px}#contacts .contact-grid{grid-template-columns:1fr}#contacts .contact-grid article{padding:28px 24px}#contacts .contact-grid a{font-size:20px}}

.course-dialog-actions{position:sticky;bottom:-42px;padding-bottom:16px}
@media(max-width:700px){.course-dialog-actions{bottom:-30px}}

/* Preserve the supplied portrait photos on phones; direction 4 also has no shade. */
@media(max-width:700px){
 #programs #course-mobile-formats:is([data-mobile-direction="1"],[data-mobile-direction="4"]){height:auto;min-height:0;aspect-ratio:941/1672}
 #programs .mobile-format-photo[src*="/course-scenes/negotiations-mobile.webp"]+.mobile-format-shade{background:none}
}

/* On computers, introduce the offer beside the contact; keep steps underneath. */
@media(min-width:701px){
 .courses-site #contacts>.shell{display:grid;grid-template-columns:minmax(0,1fr) clamp(370px,40vw,540px);grid-template-areas:"intro contact" "steps steps";gap:48px 40px;align-items:start}
 .courses-site #contacts>.shell>.course-section-head{grid-area:intro;display:block;margin:0}
 .courses-site #contacts>.shell>.course-section-head h2{font-size:clamp(32px,3vw,48px)}
 .courses-site #contacts>.shell>.course-section-head>p{margin-top:22px;max-width:460px}
 .courses-site #contacts>.shell>.contact-grid{grid-area:contact;align-self:center;max-width:720px;width:100%}
 .courses-site #contacts>.shell>.contact-grid article{grid-template-columns:120px minmax(0,1fr) auto;padding:16px;column-gap:10px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-photo{width:120px;height:120px}
 .courses-site #contacts>.shell>.contact-grid h3{font-size:21px}
 .courses-site #contacts>.shell>.contact-grid article>a{font-size:16px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-messenger{font-size:13px!important;padding:10px 8px;gap:4px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-messenger img{width:18px;height:18px}
 .courses-site #contacts>.shell>.course-contact-steps{grid-area:steps;margin:0}
}
@media(min-width:701px) and (max-width:1100px){
 .courses-site #contacts>.shell{grid-template-columns:minmax(0,1fr) clamp(370px,40vw,440px);column-gap:24px}
 .courses-site #contacts>.shell>.course-section-head h2{font-size:clamp(28px,3vw,36px)}
 .courses-site #contacts>.shell>.contact-grid article{grid-template-columns:64px minmax(0,1fr) auto;padding:18px;column-gap:10px;row-gap:10px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-photo{width:64px;height:64px}
 .courses-site #contacts>.shell>.contact-grid h3{font-size:20px}
 .courses-site #contacts>.shell>.contact-grid article>a{font-size:14px}
 .courses-site #contacts>.shell>.contact-grid .tag{font-size:10px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-messenger{font-size:13px!important;padding:8px;gap:6px}
 .courses-site #contacts>.shell>.contact-grid .contact-person-messenger img{width:18px;height:18px}
}
