/* Editorial school blocks: navy, warm ivory, restrained gold. */
:root{--block-ivory:#F6F0E6;--block-white:#FFFCF7;--block-gold:#D5B878;--block-ink:#182337}
.section{padding-block:88px}.wrap{max-width:1248px}
.section-heading{margin-bottom:40px;align-items:flex-end}.section-heading h2{font:400 clamp(36px,4vw,52px)/1.15 var(--display);letter-spacing:-.025em}
.btn{min-height:52px;padding:15px 25px;font-size:15px;line-height:1.5;font-weight:600;letter-spacing:0;box-shadow:none}
.btn:not(.outline){background:linear-gradient(110deg,#D7B66C,#EDD596);border-color:#D9BD7E;color:#111B2B}
.btn.outline{border-color:#D4B77D80;background:transparent}.btn:focus-visible,.text-btn:focus-visible{outline:3px solid #E9D08F;outline-offset:5px}
/* A compact proof strip leads into the main programme. */
.school-numbers{max-width:1120px;border-bottom:1px solid #D5B87835;padding:38px 16px 42px;margin:auto;gap:0}
.school-numbers>div{padding:0 32px;border-right:1px solid #D5B87835}.school-numbers>div:last-child{border:0}
.school-numbers strong{font:400 50px/1.1 var(--display);color:#E8CD92}.school-numbers span{font-size:13px;line-height:1.7;color:#C8CFD9}
.school-home .primary-course{border:1px solid #D5C29E;border-radius:28px;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);box-shadow:0 20px 60px #00000020}
.primary-course>img{width:100%;object-position:46% 50%;min-height:0}
.primary-course-copy{padding:48px}.primary-course-copy h3{font-size:42px;line-height:1.2;color:#182337}.primary-course-copy>p:not(.section-label){font-size:16px;line-height:1.8;margin-top:20px}
.primary-course .section-label{display:inline-block;font-size:10px;letter-spacing:.13em;padding:8px 13px;border:1px solid #D6C39D;border-radius:30px;margin-bottom:24px}
.teacher-prices{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-block:28px 20px;padding-block:22px;border-block:1px solid #D5B87840}
.teacher-prices span{font-size:12px;line-height:1.7}.teacher-prices strong{font-size:30px;line-height:1.2}.course-page-copy .teacher-prices{max-width:600px}
.primary-course .teacher-prices{border-color:#D6C39D}.primary-course .course-gift{font-size:13px!important;line-height:1.8!important;padding-left:15px;border-left:2px solid #BA9455;color:#76603B;margin-top:20px}
.primary-course .btn{margin-top:26px}.course-actions{gap:14px;margin-top:28px}
.next-direction{border:1px solid #D5B87835;border-radius:22px;padding:30px 32px;margin-top:40px;background:#111D31;gap:36px}
.next-direction h3{color:#F7F0E4;font-size:29px}.next-direction p{color:#BCC6D4;font-size:15px;line-height:1.8;max-width:640px}.next-direction>.btn{flex-shrink:0}
/* Lesson and practice photos have a clear editorial frame. */
.school-section{background:#101C30;padding-block:88px}.school-layout{gap:64px;align-items:center}.school-copy h2{font:400 clamp(34px,3.8vw,48px)/1.2 var(--display);letter-spacing:-.025em}
.school-copy>p:not(.section-label){font-size:16px;line-height:1.9}.school-points{margin-block:32px;gap:24px}.school-points h3{font-size:23px}.school-points p{font-size:14px;line-height:1.8}
.school-photos img{border-radius:180px 180px 24px 24px;aspect-ratio:4/5;max-height:620px}.school-photos figcaption{padding-top:14px;font-size:12px}
.trial-grid{background:#F6F0E6;border:1px solid #DAC9AB;color:#182337;border-radius:28px;grid-template-columns:1fr 1fr;box-shadow:0 20px 60px #0002}
.trial-grid img{min-height:0;aspect-ratio:1/1;height:100%;width:100%;object-position:55% center}
.trial-copy{padding:48px;align-self:center}.trial-copy .section-label{color:#92713D;font-size:11px;letter-spacing:.14em}.trial-copy h2{font-size:44px;line-height:1.18;color:#182337}.trial-copy p:not(.section-label){color:#5C6470;font-size:16px;line-height:1.9;margin-top:24px}.trial-copy .btn{margin-top:28px}
/* License and funding are distinct from the course catalogue. */
.license-home{padding-block:76px;background:#ECE4D6}.license-strip{gap:64px}.license-strip .section-label{color:#876739;font-size:11px;letter-spacing:.16em}.license-strip h2{font-size:42px;color:#182337}.license-strip p{font-size:16px;line-height:1.9}
.license-number{padding:32px;border:1px solid #D4C19B;border-radius:20px;background:#FFFCF7;box-shadow:0 12px 36px #6C51280A}.license-number::before{content:'Лицензия школы';display:block;text-transform:uppercase;letter-spacing:.15em;font-size:10px;color:#8B6A32;margin-bottom:20px}.license-number strong{font-size:20px;line-height:1.6}.license-number p{font-size:14px;margin-top:18px}.license-number .text-btn{font-size:14px}
.feature-grid{gap:22px;counter-reset:benefit}.feature-card{counter-increment:benefit;position:relative;border:1px solid #D8C6A3;border-radius:24px;background:#F6F0E6;padding:34px 30px;color:#182337;box-shadow:0 16px 40px #00000012}
.feature-card::before{content:'0' counter(benefit);font:400 38px/1 var(--display);color:#B79458;display:block;margin-bottom:34px}
.feature-card h3{font:400 30px/1.25 var(--display);color:#182337;max-width:270px}.feature-card p{font-size:15px;line-height:1.85;color:#606874;margin-block:20px 30px}
.feature-card .btn.outline{color:#182337;border-color:#C5AA78;background:#FFFCF7}.feature-card .btn{font-size:13px;padding:13px 17px;min-height:48px;max-width:100%}
.feature-card:last-child{background:linear-gradient(145deg,#22334B,#111D30);border-color:#D5B87850;color:#F6F0E6}.feature-card:last-child h3{color:#F6F0E6}.feature-card:last-child p{color:#C4CDD9}.feature-card:last-child::before{color:#D5B878}.feature-card:last-child .btn{background:transparent;color:#EBD197;border-color:#C5AA7880}
/* Two equal portraits, generous text, no repeated oversized biographies. */
.home-teachers{padding-inline:max(24px,calc((100vw - 1160px)/2));background:#F6F0E6}.home-teachers-grid{gap:24px}.home-teacher{grid-template-columns:40% minmax(0,1fr);gap:0;border:1px solid #DED1B8;border-radius:24px;background:#FFFCF7;overflow:hidden;align-items:stretch}
.home-teacher img{width:100%;height:100%;min-height:330px;border-radius:0;object-position:50% 18%}.home-teacher>div{padding:32px 26px;align-self:center}.home-teacher h3{font-size:29px;color:#182337}.home-teacher p{font-size:14px;line-height:1.85;margin-top:20px;color:#626A75}.home-teachers .course-actions{margin-top:36px}
.school-benefit{grid-template-columns:300px 1fr;padding:44px;border:1px solid #D5B87835;border-radius:24px;background:#101D31;max-width:1160px;gap:44px}.school-benefit strong{font-size:62px;line-height:1.15;white-space:nowrap}.school-benefit h2{font-size:31px;line-height:1.3}.school-benefit p{font-size:15px;line-height:1.9}.school-benefit .flow-note{font-size:12px;color:#9DABBD}
.school-partners{padding-top:12px}.school-partners figure{max-width:1000px;border-radius:24px}.school-reviews{background:#ECE4D6}.reviews-layout{gap:24px}.reviews-layout iframe{border-radius:22px;border-color:#D9C9AE}.reviews-layout p{font-size:13px;line-height:1.8}
.application-section{padding-block:76px;background:linear-gradient(140deg,#18273D,#0A1020);border-top:1px solid #D5B87830}.application-section>.page-content{max-width:850px;text-align:center;margin:auto}.application-section h2{font-size:clamp(34px,4vw,48px);line-height:1.2}.application-section .section-label{font-size:11px;letter-spacing:.15em}.application-section>.page-content>p{font-size:16px;line-height:1.9}.application-section .course-actions{margin-top:30px}
/* Carry the same finish into the course and information pages. */
.course-featured>.course,.course:not(.course-row){border-radius:24px;box-shadow:0 12px 36px #0002;border-color:#D5B87840}.course h3{font-size:29px}.course-photo img{object-fit:cover}.course-main>p{font-size:15px;line-height:1.9}.course-main{padding:28px 28px 0}.course-bottom{padding:26px 28px}.course-bottom .teacher-prices{grid-template-columns:1fr;padding:0;border:0;gap:14px;margin:0}.course-bottom .teacher-prices strong{font-size:27px}.course-bottom .course-gift{font-size:12px!important;line-height:1.7!important}
.course-additional .course-row{border-color:#D5B87835;border-radius:22px;background:#111E32;margin-bottom:20px;overflow:hidden}.course-row .course-main{padding:26px}.course-row .course-bottom{padding:26px}.course-row .course-photo img{border-radius:0}
.programme-details>section,.support-options>article,.treatment-row{background:#101D31;border:1px solid #D5B87830;border-radius:22px;padding:32px;margin-bottom:24px}.programme-details h2{font:400 31px/1.25 var(--display)}.programme-details p,.programme-details li{font-size:16px;line-height:1.9}
.teacher-biography{border-top:0!important;margin-block:0 48px;padding:36px!important;border:1px solid #D5B87830!important;border-radius:26px;background:#101D31;gap:48px!important}.teacher-biography h2{font-size:42px}.teacher-biography p{font-size:16px;line-height:1.95}.teacher-biography img{border-radius:20px!important}
@media(min-width:768px) and (max-width:1100px){.primary-course-copy,.trial-copy{padding:32px}.primary-course-copy h3,.trial-copy h2{font-size:35px}.teacher-prices{grid-template-columns:1fr}.home-teachers-grid{grid-template-columns:1fr}.home-teacher{grid-template-columns:230px 1fr}.home-teacher img{min-height:290px}.feature-grid{grid-template-columns:1fr}.feature-card h3{max-width:none}.feature-card::before{margin-bottom:22px}.school-layout{gap:36px}.school-benefit{grid-template-columns:240px 1fr;padding:32px;gap:32px}.school-benefit strong{font-size:48px}.license-strip{gap:32px}.license-number strong{font-size:17px}.next-direction{flex-direction:column;align-items:flex-start}}
@media(max-width:767px){
 .section,.school-section{padding-block:52px}.section-heading{margin-bottom:28px}.section-heading h2{font-size:34px}.btn{font-size:14px;min-height:50px;padding:14px 21px}
 .school-numbers{padding:26px 8px}.school-numbers>div{padding:0 9px}.school-numbers strong{font-size:34px}.school-numbers span{font-size:10px;line-height:1.8}
 .school-home .primary-course,.trial-grid{grid-template-columns:1fr;border-radius:22px}.primary-course>img{height:240px;min-height:0}.primary-course-copy,.trial-copy{padding:28px 24px}.primary-course-copy h3{font-size:31px}.primary-course-copy>p:not(.section-label){font-size:15px;line-height:1.85}.primary-course .section-label{font-size:9px;margin-bottom:20px}
 .teacher-prices{grid-template-columns:1fr;gap:18px;margin-block:24px 18px;padding-block:20px}.teacher-prices strong{font-size:30px}.teacher-prices span{font-size:12px}.primary-course .btn{width:100%}.course-actions{gap:12px;margin-top:24px}.course-actions .btn{width:100%}
 .next-direction{padding:26px 22px;margin-top:28px;gap:24px;border-radius:20px;flex-direction:column;align-items:flex-start}.next-direction h3{font-size:28px}.next-direction p{font-size:14px;line-height:1.85}.next-direction>.btn{width:100%;font-size:13px}
 .school-layout{gap:32px}.school-copy h2{font-size:33px}.school-copy>p:not(.section-label){font-size:15px;line-height:1.9}.school-points{margin-block:26px;gap:24px}.school-points h3{font-size:24px}.school-photos img{border-radius:100px 100px 20px 20px;aspect-ratio:1;max-height:360px}
 .trial-grid img{height:220px;aspect-ratio:auto;min-height:0}.trial-copy h2{font-size:34px}.trial-copy p:not(.section-label){font-size:15px;line-height:1.85;margin-top:20px}.trial-copy .btn{width:100%}
 .license-home{padding-block:52px}.license-strip{grid-template-columns:1fr;gap:28px}.license-strip h2{font-size:33px}.license-strip p{font-size:15px;line-height:1.85}.license-number{padding:24px}.license-number strong{font-size:17px}.license-number p{font-size:13px}
 .feature-grid{grid-template-columns:1fr;gap:18px}.feature-card{padding:28px 24px;border-radius:20px}.feature-card::before{font-size:32px;margin-bottom:24px}.feature-card h3{font-size:30px;max-width:none}.feature-card p{font-size:15px;line-height:1.85;margin-block:20px 26px}.feature-card .btn{width:100%;font-size:14px}
 .home-teachers{padding-inline:20px}.home-teachers-grid{grid-template-columns:1fr;gap:22px}.home-teacher{grid-template-columns:1fr;border-radius:22px}.home-teacher img{height:310px;min-height:0;object-position:50% 20%}.home-teacher>div{padding:26px 24px}.home-teacher h3{font-size:31px}.home-teacher p{font-size:15px;line-height:1.85;margin-top:18px}
 .school-benefit{grid-template-columns:1fr;gap:24px;padding:28px 24px;border-radius:22px}.school-benefit strong{font-size:48px;white-space:normal}.school-benefit h2{font-size:29px;line-height:1.3}.school-benefit p{font-size:15px}.school-benefit .flow-note{font-size:12px;color:#AAB5C4}
 .school-partners{padding-top:0}.school-partners figure{border-radius:18px}.school-reviews{padding-inline:20px}.reviews-layout{gap:24px}.reviews-layout iframe{border-radius:18px}
 .application-section{padding-block:52px}.application-section>.page-content{padding-inline:24px}.application-section h2{font-size:34px}.application-section>.page-content>p{font-size:15px;line-height:1.85}
 .course-main,.course-row .course-main{padding:24px 22px 0}.course-bottom,.course-row .course-bottom{padding:24px 22px}.course h3{font-size:28px}.course-main>p{font-size:15px}.course-row .course-photo img{height:220px;object-fit:cover}.programme-details>section,.support-options>article,.treatment-row{padding:24px;border-radius:20px}.programme-details h2{font-size:29px}.programme-details p,.programme-details li{font-size:15px;line-height:1.85}
 .teacher-biography{padding:22px!important;gap:28px!important;border-radius:22px}.teacher-biography h2{font-size:34px}.teacher-biography p{font-size:15px;line-height:1.9}.teacher-biography img{border-radius:16px!important}
}
@media(prefers-reduced-motion:no-preference){.feature-card,.home-teacher{transition:transform .2s,box-shadow .2s}.feature-card:hover,.home-teacher:hover{transform:translateY(-3px);box-shadow:0 18px 40px #0002}}

/* Only the homepage hero uses the full width of its parent. */
.school-home .school-home-hero {
  max-width: none;
}
