/* IQ007 brand palette supplied by the owner. Tints are derived UI surfaces. */
:root {
  --orange: #ff541f;
  --blue: #68C8F2;
  --dark-blue: #008EC6;
  --green: #358c68;
  --yellow: #FBBC42;
  --purple: #2E1970;
  --ink: #2E1970;
  --font: 'Geologica', Arial, sans-serif;
  --heading-font: 'Dela Gothic One', 'Geologica', sans-serif;
}
body { font-weight: 400; }
h1,h2,h3 { font-family: var(--heading-font); font-weight: 400; font-synthesis: none; letter-spacing: -.025em; line-height: 1.2; }
h1 { font-size: clamp(36px,4.5vw,62px); }
h2 { font-size: clamp(29px,3.1vw,43px); }
h3 { font-size: 21px; }
.hero h1 { font-size: clamp(38px,4.45vw,62px); line-height: 1.15; }
.hero .lead { font-size: 17px; }
.hero .eyebrow { font-size: 10px; }
.navigation { gap: 24px; font-size: 13px; }
.underline:after { background: var(--yellow); }
.peach { background: color-mix(in srgb,var(--orange) 13%,white); }
.lilac { background: color-mix(in srgb,var(--purple) 9%,white); }
.blue { background: color-mix(in srgb,var(--blue) 22%,white); }
.mint { background: color-mix(in srgb,var(--green) 12%,white); }
.yellow { background: color-mix(in srgb,var(--yellow) 27%,white); }
.announcement,.branches-section,footer { background: color-mix(in srgb,var(--purple) 7%,white); }
.gallery-section { background: color-mix(in srgb,var(--dark-blue) 6%,white); }
.photo-caption { background: color-mix(in srgb,var(--yellow) 55%,white); }
.teacher-mark { color: var(--yellow); }
.program-card h3 { font-size: 22px; max-width: 100%; }
.program-card { min-height: 410px; }
.teacher-copy h3 { font-size: 22px; line-height: 1.25; }
.announcement h2 { font-size: 23px; }
.steps h3 { font-size: 20px; }
.branch-copy h3 { font-size: 21px; }
.signup-grid h2 { font-size: clamp(32px,3.5vw,48px); }
.course-hero h1 { font-size: clamp(34px,4vw,55px); }
.skill-grid h3 { font-size: 22px; }
.footer-grid h3 { font-size: 14px; }
.lesson-section h2 { font-size: clamp(30px,3.4vw,45px); }
.hero-copy,.course-hero-grid>div { min-width: 0; }
@media(max-width:1100px) {
  .header-inner { gap: 16px; }
  .navigation { gap: 16px; font-size: 12px; }
  .brand img { width: 190px; }
  .hero h1 { font-size: clamp(36px,4.5vw,49px); }
  .hero .lead { font-size: 15px; }
  .announcement h2 { font-size: 21px; }
  .program-card h3,.teacher-copy h3 { font-size: 20px; }
  .branch-copy h3 { font-size: 19px; }
}
@media(max-width:900px) {
  .hero h1 { font-size: clamp(31px,4.4vw,40px); }
  .section-heading { align-items: flex-start; }
  .section-heading>p { max-width: 240px; flex-shrink: 0; }
  .announcement .button { margin-left: 0; }
  .signup-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); }
  .signup-form .button { font-size: 13px; }
}
@media(max-width:600px) {
  .brand img { width: 140px; }
  .header-inner { gap: 8px; }
  .button.small { padding-inline: 10px; font-size: 11px; }
  .hero h1 { font-size: clamp(29px,8.6vw,46px); }
  .hero h1 br:nth-of-type(3) { display: initial; }
  .hero .lead { font-size: 15px; }
  .hero .eyebrow { font-size: 9px; }
  .section-heading>p { max-width: none; }
  .program-card { min-height: 320px; }
  .program-card h3 { font-size: 22px; max-width: calc(100% - 90px); line-height: 1.2; }
  .program-card img { width: 90px; height: 90px; }
  .teacher-copy h3 { font-size: 23px; }
  .announcement h2 { font-size: 22px; }
  .signup-grid { grid-template-columns: minmax(0,1fr); }
  .signup-grid h2 { font-size: 34px; }
  .course-hero h1 { font-size: clamp(29px,8.6vw,42px); overflow-wrap: break-word; hyphens: auto; }
  .skill-grid h3 { font-size: 21px; }
  .steps h3 { font-size: 19px; }
  .branch-copy h3 { font-size: 23px; }
  .footer-grid h3 { font-size: 12px; }
}
@media(max-width:360px) {
  .brand img { width: 108px; }
  .hero h1 { font-size: 28px; }
  h2 { font-size: 27px; }
  .program-card h3 { font-size: 21px; max-width: 100%; margin-top: 90px; min-height: 0; }
  .program-card img { top: 48px; }
  .signup-grid h2 { font-size: 30px; }
  .teacher-copy h3,.branch-copy h3 { font-size: 21px; }
}

.curriculum{padding-top:0}.curriculum h2{max-width:950px}.curriculum-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.curriculum-grid article{padding:28px;border-radius:24px;background:color-mix(in srgb,var(--blue) 12%,white)}.curriculum-grid h3{font-size:21px;margin-bottom:18px}.curriculum-grid p{font-size:15px;line-height:1.7}.curriculum-source{font-size:12px;margin-top:22px}.curriculum-source a{text-decoration:underline;text-underline-offset:3px}.teacher-branch{display:block;font-size:12px;color:var(--purple);margin-top:16px;line-height:1.6}.teacher-details{margin-top:15px;border-top:1px solid var(--line);padding-top:14px}.teacher-details summary{font-size:13px;font-weight:600;cursor:pointer}.teacher-details p{font-size:14px;line-height:1.7;margin-top:14px}.teacher-details .text-link{display:inline-block;font-size:12px;margin-top:16px}.program-card:last-child:nth-child(3n + 1){grid-column:span 3;min-height:230px}.program-card:last-child:nth-child(3n + 1) img{position:absolute;right:35px;top:35px;width:150px;height:150px}.program-card:last-child:nth-child(3n + 1)>h3{margin-top:24px;max-width:65%}.program-card:last-child:nth-child(3n + 1)>p{max-width:65%}
@media(max-width:900px){.curriculum-grid{grid-template-columns:1fr}.curriculum-grid article{padding:24px}.curriculum-grid .skill-number{margin-bottom:16px}.program-card:last-child:nth-child(3n + 1){grid-column:span 2}}
@media(max-width:600px){.curriculum-grid h3{font-size:22px}.program-card:last-child:nth-child(3n + 1){grid-column:auto;min-height:320px}.program-card:last-child:nth-child(3n + 1) img{width:90px;height:90px;right:16px;top:48px}.program-card:last-child:nth-child(3n + 1)>h3{max-width:calc(100% - 90px);margin-top:34px}.program-card:last-child:nth-child(3n + 1)>p{max-width:100%}}
@media(max-width:360px){.program-card:last-child:nth-child(3n + 1)>h3{max-width:100%;margin-top:90px}}

.teacher-placeholder{height:100%;display:grid;place-items:center;color:var(--purple);background:linear-gradient(135deg,#fff5,transparent)}.teacher-placeholder span{font-family:'Dela Gothic One',sans-serif;font-size:clamp(56px,7vw,96px);letter-spacing:-.05em}


.extra-directions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.extra-directions article{padding:28px;border:1px solid var(--line);border-radius:24px}.extra-directions h3{font-size:24px}.extra-directions p{margin-bottom:20px}.extra-directions .eyebrow{font-size:11px}@media(max-width:600px){.extra-directions{grid-template-columns:1fr}.extra-directions article{padding:22px}}

/* Course colours: identifiers from the owner's branding sheet. */
.course-reading{--course-color:#ff541f}
.course-writing{--course-color:#68C8F2}
.course-arithmetic{--course-color:#008EC6}
.course-math{--course-color:#358c68}
.course-english{--course-color:#275BA7;--course-secondary:#F93232}
.course-neutral{--course-color:#737373}
.program-card[class*="course-"],.course-illustration[class*="course-"]{background:color-mix(in srgb,var(--course-color) 12%,white);border-top:8px solid var(--course-color);color:#202020}
.program-card.course-english,.course-illustration.course-english{border-bottom:8px solid var(--course-secondary)}
body[class*="course-"]{background:#fffdfa}
body[class*="course-"] .course-hero,body[class*="course-"] .curriculum,body[class*="course-"] .skill-grid{color:#202020}
body[class*="course-"] .curriculum-grid article{background:color-mix(in srgb,var(--course-color) 10%,white)}
body[class*="course-"] .course-hero .button{background:var(--course-color);color:#171717}
body.course-english .course-hero .button{color:white;border-bottom:4px solid var(--course-secondary)}
body.course-math .course-hero .button{color:white}
body[class*="course-"] .course-illustration .orbit{color:var(--course-color)}

[hidden]{display:none!important}
.filter-bar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0 12px}.filter-bar label{flex:1;min-width:180px;font-size:13px;font-weight:600}.filter-bar select{display:block;width:100%;margin-top:8px;padding:14px 36px 14px 14px;border:1px solid #b9b3c9;border-radius:12px;background:white;color:var(--ink);font:inherit;min-height:48px}.filter-reset{background:transparent;border:1px solid #b9b3c9;border-radius:12px;padding:14px;min-height:48px;font:inherit;cursor:pointer}.filter-status{font-size:12px;margin-bottom:20px}.filter-empty{padding:24px;border-radius:20px;background:#f1eef7}.filter-bar :focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.program-card:last-child:nth-child(3n + 1){grid-column:auto;min-height:410px}.program-card:last-child:nth-child(3n + 1) img{position:static;width:150px;height:150px}.program-card:last-child:nth-child(3n + 1)>h3,.program-card:last-child:nth-child(3n + 1)>p{max-width:100%}
@media(max-width:600px){.filter-bar{gap:12px}.filter-bar label{flex-basis:100%;min-width:0}.filter-reset{width:100%}.teacher-grid{gap:32px}.teacher-photo{max-height:320px}.program-card:last-child:nth-child(3n + 1){min-height:320px}.program-card:last-child:nth-child(3n + 1) img{width:90px;height:90px}}

/* Course editorial layout: compact introduction, content rows and a clear next step. */
body[class*="course-"] .course-hero{padding-block:28px 36px}body[class*="course-"] .course-hero>.text-link{margin-bottom:24px}
.course-jumps{display:flex;gap:12px;flex-wrap:wrap;padding-block:16px;border-block:1px solid var(--line)}.course-jumps a{padding:10px 16px;border-radius:30px;background:white;border:1px solid var(--line);font-size:13px}
.course-story{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;padding-block:56px}.course-story h2{font-size:clamp(27px,3vw,40px)}.course-story-text{font-size:17px;line-height:1.8;margin:24px 0}.course-facts{display:flex;gap:10px;flex-wrap:wrap}.course-facts span{font-size:12px;background:color-mix(in srgb,var(--course-color) 12%,white);padding:10px 14px;border-radius:10px;color:#222}.course-fit{background:white;padding:30px;border:1px solid var(--line);border-radius:24px;border-top:5px solid var(--course-color)}.course-fit ul{padding-left:20px;margin:20px 0 28px}.course-fit li{margin-bottom:18px;line-height:1.7}.course-content{padding-block:24px 48px}.course-practice{display:grid;grid-template-columns:1fr 1fr;gap:16px}.course-practice article{display:flex;gap:20px;padding:28px;border-radius:22px;background:color-mix(in srgb,var(--course-color) 9%,white)}.practice-number{font-size:30px;opacity:.55;flex-shrink:0}.course-practice h3{font-size:22px;margin-bottom:12px}.course-practice p{line-height:1.7;font-size:15px}.course-outcomes{margin-top:24px;padding:24px;border-block:1px solid var(--line)}.course-outcomes ul{display:flex;flex-wrap:wrap;gap:14px 30px;padding-left:20px;margin-top:16px}.course-start{display:grid;grid-template-columns:1.1fr 1fr;gap:48px;background:color-mix(in srgb,var(--course-color) 10%,white);border-radius:28px;padding:36px}.course-start h2{font-size:32px}.course-start p{line-height:1.75;margin:18px 0 24px}.course-start ol{list-style:none;padding:0;margin:0}.course-start li{padding:18px 0;border-bottom:1px solid var(--line)}.course-start li span{display:block;margin-top:8px;font-size:14px;line-height:1.6}body[class*="course-"] .faq{padding-block:56px}body.course-neutral .course-hero .button{background:var(--orange);color:#181818}
@media(max-width:700px){.course-story,.course-start{grid-template-columns:1fr;gap:24px}.course-story{padding-block:32px}.course-practice{grid-template-columns:1fr}.course-practice article{padding:22px}.course-fit{padding:22px}.course-start{padding:24px}.course-start h2{font-size:27px}.course-story-text{font-size:16px}.course-outcomes ul{display:block}.course-outcomes li{margin-block:12px}.course-jumps{gap:8px}.course-jumps a{font-size:12px;padding:9px 12px}.course-start .button{white-space:normal;text-align:center}}
.course-story>* ,.course-start>* ,.course-practice article>div{min-width:0}.course-story h2,.course-practice h3,.course-start h2,.course-outcomes h3{overflow-wrap:anywhere}@media(max-width:420px){.course-practice article{gap:12px;padding:18px}.course-practice h3{font-size:19px}.practice-number{font-size:22px}.course-start .button{font-size:13px;padding:14px}}

/* Nine directions share one grid. Preschool purple approximates supplied reference. */
.course-first-reading{--course-color:#ff541f}.course-preschool{--course-color:#BC70E9}.course-chess{--course-color:#FBBC42}.course-speech{--course-color:#68C8F2}
.program-card.course-first-reading,.course-illustration.course-first-reading{background:white}.program-card.course-first-reading h3{color:#202020}
.program-card.course-preschool,.course-illustration.course-preschool{background:linear-gradient(145deg,#f3dafa,#e7d7fc)}
.program-card.course-english,.course-illustration.course-english{border-bottom:0}body.course-english .course-hero .button{border-bottom:0}
.program-grid{grid-auto-rows:1fr}.program-symbol{width:112px;height:112px;align-self:flex-end;flex-shrink:0;margin:0 0 8px}.program-grid .program-card{grid-column:auto;min-height:410px}.program-grid .program-card img{position:static;width:112px;height:112px}.program-grid .program-card>h3{max-width:100%;margin-top:0}.program-grid .program-card>p{max-width:100%}
@media(max-width:600px){.program-grid{grid-auto-rows:auto}.program-grid .program-card{min-height:365px}.program-grid .program-card>h3{margin-top:0}}
.legal-page{padding-block:48px 72px}.legal-page h1{max-width:950px;margin-bottom:36px;font-size:clamp(28px,4vw,48px);overflow-wrap:anywhere}.legal-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:48px}.legal-toc{align-self:start;background:#f2eef8;border-radius:20px;padding:22px}.legal-toc h2{font-size:20px;margin-bottom:18px}.legal-toc a{display:block;font-size:12px;line-height:1.6;margin:12px 0}.legal-layout article{max-width:800px;overflow-wrap:anywhere}.legal-layout article p{font-size:15px;line-height:1.9;margin-bottom:18px;white-space:pre-wrap}.legal-layout article h2{font-size:24px;margin:32px 0 20px;scroll-margin-top:110px}@media(max-width:800px){.legal-layout{grid-template-columns:1fr;gap:24px}.legal-page{padding-top:28px}.legal-layout article h2{font-size:21px}.legal-layout article p{font-size:14px}}@media print{.legal-toc,header,footer,.skip{display:none}.legal-layout{display:block}.legal-page{width:100%;padding:0}.legal-layout article{max-width:none}}

.program-card.course-first-reading,.course-illustration.course-first-reading{background:color-mix(in srgb,var(--orange) 12%,white)}
.navigation{font-size:17px;gap:22px}.header .brand img{width:280px;height:auto}.phone-input{display:flex;align-items:center;background:white;border:1px solid #b9b3c9;border-radius:12px;overflow:hidden}.phone-input>span{padding-left:14px;font-weight:600;flex-shrink:0}.signup-form .phone-input input{border:0;background:transparent;min-width:0;flex:1;width:100%;padding-left:10px}.phone-input:focus-within{outline:2px solid var(--orange);outline-offset:2px}.phone-input input:focus{outline:none}
@media(max-width:1100px){.navigation{font-size:16px;gap:16px}.header .brand img{width:220px}}@media(max-width:600px){.header .brand img{width:160px}.navigation{font-size:20px}}

.course-depth{padding-block:40px}.level-list{border-top:1px solid var(--line)}.level-list details{border-bottom:1px solid var(--line);padding:22px 0}.level-list summary{display:flex;gap:20px;align-items:center;cursor:pointer;list-style:none}.level-index{font-size:28px;color:var(--course-color)}.level-list strong{font-size:20px}.level-list small{display:block;margin-top:7px;font-size:14px;color:#625c6d}.level-plus{margin-left:auto;font-size:28px}.level-list details[open] .level-plus{transform:rotate(45deg)}.level-list ul{margin:22px 0 0 48px;max-width:850px;line-height:1.8}.level-list li{margin:9px 0}.course-depth-note{font-size:13px;margin-top:20px}.quiz-shell{padding:36px;border-radius:28px;background:color-mix(in srgb,var(--course-color) 12%,white);border:1px solid var(--line)}.quiz-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.quiz-clock{font-size:24px;font-variant-numeric:tabular-nums;padding:10px 16px;background:white;border-radius:14px}.quiz-shell h2{font-size:clamp(25px,3vw,40px);margin-bottom:22px}.quiz-stage p{line-height:1.8;margin:18px 0}.quiz-note{font-size:13px;color:#625c6d}.quiz-progress{font-size:13px;text-transform:uppercase;letter-spacing:.08em}.quiz-number{font-family:var(--font);font-size:clamp(60px,12vw,110px);text-align:center;padding:25px}.reading-passage{background:white;border-radius:20px;padding:28px;font-size:20px;max-width:850px}.quiz-stage fieldset{border:0;padding:20px 0}.quiz-stage legend{font-weight:600}.quiz-stage label{display:block;padding:10px 0;cursor:pointer}.quiz-stage input[type=radio]{accent-color:var(--orange);width:20px;height:20px;vertical-align:middle}.quiz-answer input{display:block;border:1px solid #aaa;border-radius:12px;padding:16px;width:100%;max-width:300px;font:inherit;margin-bottom:20px}.quiz-results{display:flex;gap:20px;flex-wrap:wrap;margin-block:24px}.quiz-results>div{flex:1;min-width:180px;padding:24px;background:white;border-radius:18px}.quiz-results b{display:block;font-size:30px;overflow-wrap:anywhere}.quiz-results span{display:block;font-size:13px;margin-top:10px}.quiz-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:24px}.quiz-enter{animation:quiz-in .3s ease-out}@keyframes quiz-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.quiz-enter{animation:none}}@media(max-width:600px){.quiz-shell{padding:20px}.reading-passage{padding:18px;font-size:18px}.level-list strong{font-size:17px}.level-list summary{gap:12px}.level-list ul{margin-left:18px}.quiz-results>div{min-width:0;flex-basis:100%}.quiz-shell .button{white-space:normal;font-size:14px}.quiz-clock{font-size:20px}}
@media(max-width:380px){.header .brand img{width:130px}.header-inner{gap:8px}.header .button.small{padding:12px 10px;font-size:11px}.course-start h2{font-size:23px}.quiz-shell h2{font-size:23px}}

/* Per-person portrait framing: originals remain intact. */
.teacher-photo[data-portrait]:not([data-portrait=""]){isolation:isolate;background:#f2eff6}
.teacher-photo[data-portrait]:not([data-portrait=""]) img{position:absolute;max-width:none;width:100%;height:116%;object-fit:contain;object-position:center top;top:2%;left:0}
.teacher-photo[data-portrait="kseniya"]:not([data-portrait=""]) img{height:112%;left:-4%;top:1%}
.teacher-photo[data-portrait="anna-admin"]:not([data-portrait=""]) img{height:137%;left:-9%;top:0}
.teacher-photo[data-portrait="anna-teacher"]:not([data-portrait=""]) img{height:132%;top:0}
.teacher-photo[data-portrait="galina"]:not([data-portrait=""]) img{height:115%;top:0}
.teacher-photo[data-portrait="olga"]:not([data-portrait=""]) img{height:118%;top:-3%}
.teacher-photo[data-portrait="veronika"]:not([data-portrait=""]) img{object-fit:cover;width:110%;height:126%;left:-3%;top:-2%;object-position:center top}
.teacher-photo[data-portrait]:not([data-portrait=""]) .teacher-mark{font-size:44px;right:14px;bottom:12px;color:var(--orange)}
/* Crop source edges outside the portrait frame; keep Kseniya unchanged. */
.teacher-photo[data-portrait="anna-admin"]:not([data-portrait=""]) img{width:150%;height:185%;left:-39%;top:-2%;object-fit:contain}
.teacher-photo[data-portrait="anna-teacher"]:not([data-portrait=""]) img{width:120%;height:176%;left:-10%;top:-2%;object-fit:contain}
.teacher-photo[data-portrait="galina"]:not([data-portrait=""]) img{width:116%;height:155%;left:-8%;top:-2%;object-fit:contain}
.teacher-photo[data-portrait="olga"]:not([data-portrait=""]) img{width:118%;height:166%;left:-9%;top:-10%;object-fit:contain}
.teacher-photo[data-portrait="veronika"]:not([data-portrait=""]) img{width:146%;height:168%;left:-20%;top:-3%;object-fit:cover;object-position:center top}
/* Circular portrait masks restore the clean silhouette of the original team section. */
.teacher-grid .teacher-photo{aspect-ratio:1;border-radius:50%;width:min(100%,320px);max-height:none;margin-inline:auto}
.teacher-grid .teacher-photo[data-portrait="kseniya"] img{height:112%;width:100%;left:0;top:1%}
.teacher-grid .teacher-photo[data-portrait="anna-admin"] img{height:160%;width:142%;left:-35%;top:1%}
.teacher-grid .teacher-photo[data-portrait="anna-teacher"] img{height:153%;width:120%;left:-10%;top:0}
.teacher-grid .teacher-photo[data-portrait="galina"] img{height:132%;width:112%;left:-6%;top:0}
.teacher-grid .teacher-photo[data-portrait="olga"] img{height:145%;width:116%;left:-8%;top:-7%}
.teacher-grid .teacher-photo[data-portrait="veronika"] img{height:145%;width:137%;left:-18%;top:-2%}
.teacher-grid .teacher-mark{display:none}
.teacher-grid .teacher-card:nth-child(n) .teacher-photo{border-radius:50%}
/* Softer portrait scale requested by the owner. */
.teacher-grid .teacher-photo[data-portrait="anna-admin"] img{height:148%;width:132%;left:-30%;top:3%}
.teacher-grid .teacher-photo[data-portrait="anna-teacher"] img{height:141%;width:111%;left:-5.5%;top:3%}
.teacher-grid .teacher-photo[data-portrait="galina"] img{height:122%;width:104%;left:-2%;top:3%}
.teacher-grid .teacher-photo[data-portrait="olga"] img{height:134%;width:108%;left:-4%;top:-3%}
.teacher-grid .teacher-photo[data-portrait="veronika"] img{height:119%;width:110%;left:-5%;top:2%;object-fit:cover;object-position:center top}
/* Additional proportional reduction: Olga/Veronika 15%, Galina 10%. */
.teacher-grid .teacher-photo[data-portrait="olga"] img{height:113.9%;width:91.8%;left:4.1%;top:10%}
.teacher-grid .teacher-photo[data-portrait="veronika"] img{height:101.15%;width:93.5%;left:3.25%;top:10%}
.teacher-grid .teacher-photo[data-portrait="galina"] img{height:109.8%;width:93.6%;left:3.2%;top:10%}

.capital-banner{display:flex;align-items:center;gap:28px;background:#FBBC42;color:#2E1970;padding:36px;border-radius:28px;margin-block:40px}.capital-symbol{font-family:var(--heading-font);font-size:80px;flex-shrink:0}.capital-banner h2{font-size:clamp(25px,3vw,39px);margin-bottom:16px}.capital-banner p:not(.eyebrow){font-size:16px;line-height:1.7;max-width:620px}.capital-banner .eyebrow{font-size:11px;margin-bottom:12px}.capital-banner .button{margin-left:auto;flex-shrink:0}@media(max-width:1000px){.capital-banner{flex-wrap:wrap}.capital-banner .button{margin-left:0}}@media(max-width:600px){.capital-banner{padding:24px;gap:18px}.capital-symbol{display:none}.capital-banner h2{overflow-wrap:anywhere}.capital-banner p:not(.eyebrow){font-size:15px}.capital-banner .button{width:100%}}

.capital-banner{color:#242424}.capital-banner .eyebrow,.capital-banner h2,.capital-banner p,.capital-banner .capital-symbol{color:#242424}.capital-banner .button.dark{background:#242424;color:#fff;border-color:#242424}.capital-banner .button.dark:hover{background:#383838}
/* Warm, softer treatment for the maternity-capital announcement. */
.capital-banner{background:#FFF0E5;color:#674637;border:1px solid #F2D6C3}
.capital-banner .eyebrow{color:#986449}
.capital-banner h2,.capital-banner .capital-symbol{color:#805139}
.capital-banner p{color:#765B4C}
.capital-banner .capital-symbol{background:#FFE2CA;border-radius:24px;padding:12px 22px;font-size:64px}
.capital-banner .button.dark{background:#FFFCF8;color:#805139;border:1px solid #D8AE90;box-shadow:none}
.capital-banner .button.dark:hover{background:#FFE2CA;color:#674637;border-color:#C58E67}

/* Compact mobile cards retain the complete description and touch target. */
@media(max-width:600px){
 .program-grid .program-card{min-height:280px;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px 10px;align-content:start}
 .program-grid .program-card .card-tag{grid-column:1;align-self:start;justify-self:start}
 .program-grid .program-card img,.program-grid .program-card .program-symbol{grid-column:2;grid-row:1 / span 2;position:static;width:76px;height:76px;margin:0;align-self:center}
 .program-grid .program-card>h3{grid-column:1;max-width:100%;min-height:0;margin:0;font-size:20px;overflow-wrap:normal}
 .program-grid .program-card>p{grid-column:1 / -1;margin:0;font-size:14px}
 .program-grid .program-card .card-bottom{grid-column:1 / -1;min-height:44px;align-self:end;margin-top:4px}
 .course-jumps a,.filter-reset{min-height:44px;display:inline-flex;align-items:center}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.program-card,.button,.gallery-photo img{transition:none}}

@media(max-width:380px){.program-grid .program-card img,.program-grid .program-card .program-symbol{grid-row:1;width:60px;height:60px}.program-grid .program-card>h3{grid-column:1 / -1}.program-grid .program-card{grid-template-columns:minmax(0,1fr) 60px}}


/* Four equal frames keep random previews compact and predictable. */
.photo-grid{display:grid;columns:auto;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:18px}
.photo-grid>.gallery-photo,.photo-grid>.gallery-photo:first-child,.photo-grid>.gallery-photo:nth-child(2){grid-column:auto;grid-row:auto;margin:0;width:100%;height:auto;aspect-ratio:1;border-radius:24px;min-width:0;position:relative}
.photo-grid>.gallery-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:none}
.photo-grid>.gallery-photo:hover img{transform:none}
@media(max-width:900px){.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media(max-width:600px){.photo-grid{gap:12px}.photo-grid>.gallery-photo{border-radius:18px}}
.opening-announcement{background:#fff5e9;border:1px solid #f0e2d0;border-radius:28px;padding:44px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px 48px;align-items:center;color:var(--purple)}
.opening-announcement .eyebrow{color:#358c68;margin-bottom:18px}
.opening-announcement h2{font-size:clamp(28px,3.6vw,48px);line-height:1.18;margin-bottom:24px}.opening-announcement h2 span{color:var(--orange)}
.opening-intro{color:var(--purple);font-size:18px;line-height:1.7;margin-bottom:18px}.opening-badge{color:#358c68;font-size:14px;font-weight:650;margin-bottom:22px}
.opening-photo{position:relative;width:min(100%,380px);justify-self:center;aspect-ratio:1}.opening-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:12px solid var(--blue)}.opening-photo>span{position:absolute;top:-15px;right:-5px;color:#FBBC42;font-size:70px;line-height:1}
.opening-contact{grid-column:1 / -1;border-top:1px solid #e6dacc;padding-top:22px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.opening-contact p{font-size:17px;color:var(--purple)}.opening-contact a{font-size:22px;font-weight:650;white-space:nowrap}
@media(max-width:600px){.opening-announcement{padding:26px;grid-template-columns:minmax(0,1fr);gap:24px}.opening-photo{width:min(100%,280px)}.opening-announcement h2{font-size:28px}.opening-intro{font-size:16px}.opening-badge{font-size:13px}.opening-contact{grid-column:auto;display:block}.opening-contact p{font-size:15px;margin-bottom:12px}.opening-contact a{font-size:20px}.opening-photo>span{font-size:54px}.opening-copy .button{font-size:13px;width:100%}}

/* Give the hero note more presence without crowding the photo. */
.photo-caption{font-size:22px;line-height:1.45;padding:25px 38px;border-radius:20px}
.photo-caption>span{font-size:30px;right:15px;top:10px}
@media(max-width:1100px){.photo-caption{font-size:19px;padding:22px 32px}}
@media(max-width:600px){.photo-caption{font-size:16px;padding:18px 27px;max-width:calc(100% - 10px)}.photo-caption>span{font-size:24px;right:10px;top:8px}}
/* Each team row shares the height of role, name, description, address and details. */
.teacher-grid{row-gap:0}
.teacher-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;padding-bottom:32px;align-items:start}
.teacher-copy{display:contents}
.teacher-copy>.eyebrow{margin:0;padding:22px 4px 9px}
.teacher-copy>h3{margin:0;padding:0 4px 10px}
.teacher-copy>.teacher-description{margin:0;padding:0 4px;max-width:none;font-size:14px;line-height:1.65}
.teacher-copy>.teacher-branch{margin:0;padding:16px 4px 0;min-height:35px;align-self:start}
.teacher-copy>.teacher-details{margin:15px 4px 0;padding-top:14px;align-self:start}
@media(max-width:600px){.teacher-grid{row-gap:0}.teacher-card{padding-bottom:32px}.teacher-copy>.teacher-branch[aria-hidden=true]{min-height:0;padding:0}}

/* Native scrolling keeps the branch carousel light and touch-friendly. */
.branch-showcase{scroll-margin-top:110px}
.branch-slider-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.branch-slider-heading .eyebrow{margin-bottom:10px}
.branch-slider-intro{font-size:22px;line-height:1.5;color:var(--purple);font-weight:600}
.branch-slider-tabs{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.branch-slider-tabs button{flex:1;min-width:0;padding:14px 18px;border:1px solid #ded7e9;border-radius:16px;background:transparent;color:var(--purple);text-align:left;font:inherit;font-size:14px;cursor:pointer}
.branch-slider-tabs button span{display:block;font-size:11px;line-height:1.5;margin-top:5px;color:#358c68}
.branch-slider-tabs button[aria-pressed="true"]{background:var(--purple);border-color:var(--purple);color:white}
.branch-slider-tabs button[aria-pressed="true"] span{color:#bde8f9}
.branch-slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;border-radius:28px}
.branch-slides::-webkit-scrollbar{display:none}
.branch-slides .opening-announcement{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;align-content:space-between}
.branch-slides .opening-announcement h2{font-size:clamp(26px,3.4vw,46px)}
.branch-proezd{background:#eef8f3;border-color:#dceae3}
.branch-proezd .opening-photo img{border-color:#fbbc42}
.branch-bulvar{background:#eef7fc;border-color:#dceaf2}
.branch-bulvar .opening-photo img{border-color:#68c8f2}
@media(max-width:600px){
 .branch-showcase{scroll-margin-top:90px}
 .branch-slider-heading{gap:12px;margin-bottom:18px}
 .branch-slider-intro{font-size:16px}
 .branch-slider-heading .eyebrow{font-size:9px}
 .branch-slider-tabs{gap:6px;flex-wrap:nowrap}
 .branch-slider-tabs button{padding:10px 8px;font-size:11px;line-height:1.5;border-radius:12px}
 .branch-slider-tabs button span{font-size:9px}
 .branch-slides .opening-announcement{grid-template-rows:1fr 260px auto;gap:20px;padding:24px}
 .branch-slides .opening-announcement h2{font-size:26px;overflow-wrap:normal}
 .branch-slides .opening-photo{width:260px;max-width:100%;align-self:center}
 .branch-slides .opening-photo img{border-width:9px}
 .branch-slides .opening-contact{align-self:end}
 .branch-slides .opening-contact p{min-height:46px}
}

@media(max-width:600px){.branch-slides .opening-copy{align-self:start}}
@media(min-width:601px) and (max-width:1000px){
 .branch-slides .opening-announcement{padding:30px;gap:24px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
 .branch-slides .opening-announcement h2{font-size:clamp(22px,3.3vw,32px)}
 .branch-slides .opening-intro{font-size:16px}
 .branch-slides .opening-copy .button{font-size:12px;padding:16px}
 .branch-slides .opening-photo img{border-width:9px}
}
@media(max-width:359px){
 .branch-slides .opening-announcement h2{font-size:23px}
 .branch-slides .opening-announcement{padding:20px;grid-template-rows:1fr 230px auto}
 .branch-slides .opening-photo{width:230px}
 .branch-slider-intro{font-size:14px}
 .branch-slider-tabs button{font-size:10px;padding:10px 6px}
}

.branch-slider-heading .branch-slider-intro{font-family:Geologica,sans-serif;font-size:clamp(22px,2.8vw,34px);line-height:1.35;letter-spacing:normal;margin:0}
@media(max-width:600px){.branch-slider-heading .branch-slider-intro{font-size:23px}}

.branch-proezd .opening-photo img{object-position:50% 45%}

.course-neuropsychology{--course-color:#2E1970}

.teacher-grid .teacher-photo[data-portrait="anastasia-buyanova"] img{height:116%;width:100%;left:0;top:6%;object-fit:contain;object-position:center top}
.teacher-grid .teacher-photo[data-portrait="kseniya-admin"] img{height:107%;width:94%;left:3%;top:4%;object-fit:contain;object-position:center top}

/* A centred card with clear neighbouring previews makes swipe discoverable. */
.branch-slides{--branch-peek:0px;--branch-gap:12px;display:block;overflow:hidden;scroll-snap-type:none;touch-action:pan-y pinch-zoom;position:relative}
.branch-slide-rail{display:flex;gap:0;width:100%;align-items:stretch;touch-action:pan-y pinch-zoom;will-change:transform}
.branch-slide-rail .opening-announcement{flex:0 0 calc(100% - var(--branch-peek) - var(--branch-peek));scroll-snap-align:none;scroll-snap-stop:normal;margin:0 var(--branch-gap) 0 0}
@media(max-width:1000px){
 .branch-slides{--branch-peek:42px;--branch-gap:10px;margin-inline:-18px;border-radius:0}
 .branch-slide-rail .opening-announcement:not(.is-active){box-shadow:0 3px 14px rgb(46 25 112 / 9%)}
}
@media(max-width:600px){
 .branch-slides{--branch-peek:40px}
 .branch-slide-rail .opening-announcement{padding:22px;grid-template-rows:1fr auto auto;gap:20px}
 .branch-slides .opening-announcement h2{font-size:clamp(20px,5.5vw,26px)}
 .branch-slides .opening-photo{width:260px;max-width:100%}
 .branch-slides .opening-intro{font-size:15px}
 .branch-slides .opening-contact p{font-size:14px}
 .branch-slides .opening-copy .button{font-size:12px;padding-inline:12px}
}
@media(max-width:359px){
 .branch-slides{--branch-peek:34px}
 .branch-slide-rail .opening-announcement{padding:18px}
 .branch-slides .opening-intro{font-size:14px}
 .branch-slides .opening-contact a{font-size:18px}
 .branch-slides .opening-copy .button{font-size:11px}
}

