/* Public school pages. Loaded after the original styles. */
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body.school-page { isolation:isolate; background:#12151d!important; background-image:none!important; color:#f3f5fa; line-height:1.65; }
body.school-page::before { display:block; background-image:linear-gradient(rgba(8,13,23,.24),rgba(8,13,23,.38)),url("../img/фон66.png")!important; }
body.school-page #main-bg-layer { display:none; }
.school-page { --muted:#b4c0d3; --line:#2b3c55; --accent:#80c8ff; }
.school-page .container { width:min(1160px,calc(100% - 48px)); max-width:1160px; margin-inline:auto; padding-inline:0; }
.school-page .site-header { position:relative; padding:23px 0; background:rgba(19,22,32,.72); border-bottom:1px solid rgba(167,200,234,.22); backdrop-filter:blur(14px); }
.school-page .header-container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.school-page .site-header .logo-text { font-size:18px; font-weight:700; letter-spacing:.08em; }
.school-nav { display:flex; gap:24px; align-items:center; flex-wrap:wrap; font-size:16px; font-weight:600; line-height:1.5; }
.school-nav a { display:inline-flex; align-items:center; min-height:44px; padding:6px 0; color:#f5f8ff; }
.school-nav a:hover,.school-page a.text-link:hover { color:#fff; text-decoration:underline; }
.school-nav a[aria-current=page] { color:var(--accent); }
.school-page .btn { display:inline-flex; align-items:center; justify-content:center; padding:14px 23px; min-height:48px; border-radius:9px; font-size:14px; font-weight:600; line-height:1.5; text-align:center; white-space:normal; }
.school-page .btn-primary { background:#800020; border:1px solid #bd667b; color:#fff6f2; }
.school-page .btn-primary:hover { background:#9a193b; color:#fff6f2; }
.school-page .btn-outline { background:transparent; border:1px solid #c48994; color:#fff6f2; }
.school-page .btn-outline:hover,.school-page .btn-outline:focus-visible,.school-page .btn-outline:active { color:#fff6f2; }
.school-page a:focus-visible,.school-page button:focus-visible,.school-page summary:focus-visible,.school-page input:focus-visible { outline:3px solid #a6d9ff; outline-offset:5px; }
.skip-link { position:absolute; left:24px; top:-90px; z-index:10; background:#fff; color:#111; padding:12px; }
.skip-link:focus { top:12px; }
.eyebrow { color:var(--accent); font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; margin-bottom:18px; }
.school-page h1,.school-page h2,.school-page h3 { line-height:1.2; letter-spacing:-.035em; }
.school-page h1 { font-size:clamp(34px,4.5vw,60px); font-weight:600; margin:0 0 24px; }
.school-page h2 { font-size:clamp(28px,3vw,40px); font-weight:600; margin:0 0 20px; }
.school-page h3 { font-size:23px; font-weight:600; margin:0 0 16px; }
.school-page p { margin:0 0 18px; }
.school-page .lead { font-size:18px; color:#c6d2e3; max-width:700px; }
.school-page .muted,.school-page .section-intro { color:var(--muted); }
.school-page .section-intro { max-width:730px; margin-bottom:32px; }
.school-hero { display:grid; grid-template-columns:1.2fr 1fr; gap:48px; align-items:center; padding-top:64px; padding-bottom:48px; }
.school-hero h1 { font-size:clamp(34px,3.7vw,50px); }
.school-hero .hero-visual { position:relative; isolation:isolate; align-self:center; height:auto; min-height:0; border-radius:0; background:none; display:flex; flex-direction:column; align-items:center; --portrait-band-height:112px; }
.hero-visual::before { content:""; position:absolute; z-index:0; left:-16px; right:-16px; bottom:0; height:var(--portrait-band-height); background:linear-gradient(100deg,#152b43,#234563 50%,#152b43); border-block:1px solid #4d89b5; pointer-events:none; }
.hero-visual img { position:relative; z-index:1; display:block; max-width:100%; height:470px; object-fit:contain; }
.portrait-caption { position:relative; z-index:2; width:100%; min-height:var(--portrait-band-height); margin-top:calc(-1 * var(--portrait-band-height)); padding:24px 12px 18px; background:linear-gradient(180deg,rgba(12,27,44,.82),#102338 72%); border:0; border-radius:0; text-align:center; display:flex; flex-direction:column; justify-content:center; }
.portrait-caption strong,.portrait-caption span { display:block; }
.portrait-caption span { font-size:12px; color:var(--muted); }
.portrait-caption .about-author-link { align-self:center; display:inline-flex; align-items:center; justify-content:center; margin-top:12px; padding:7px 15px; min-height:34px; border:1px solid #bb9277; border-radius:8px; color:#fff3e7; font-size:12px; font-weight:600; line-height:1.4; text-decoration:none; background:transparent; }
.portrait-caption .about-author-link:hover { background:rgba(128,0,32,.35); border-color:#e1bfa0; color:#fff; }
.about-page .about-intro { max-width:860px; padding-bottom:44px; }
.about-page .about-intro h1 { margin-bottom:20px; }
.about-page .about-intro .lead { max-width:760px; }
.about-facts { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.about-facts .school-card { padding:30px; }
.about-facts h2 { font-size:26px; }
.about-story { max-width:820px; }
.about-story p { color:var(--muted); line-height:1.85; }
.press-preview { display:block; margin-top:28px; }
.press-preview img { display:block; width:100%; height:auto; border-radius:12px; }
.press-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center; margin-top:18px; color:var(--muted); font-size:14px; }
.about-page .about-return { margin-bottom:54px; }
@media(max-width:640px) { .about-facts { grid-template-columns:1fr; } .about-facts h2 { font-size:23px; } }
.action-row { display:flex; gap:12px; flex-wrap:wrap; margin:28px 0 16px; }
.school-page .fine-print { font-size:12px; color:var(--muted); margin-top:16px; }
.school-section { padding-block:64px; }
.school-section + .school-section { border-top:1px solid var(--line); }
.school-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.school-program-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.school-card { display:flex; flex-direction:column; min-width:0; padding:28px; border:1px solid rgba(167,200,234,.26); border-radius:16px; background:linear-gradient(135deg,rgba(39,50,70,.86),rgba(16,23,37,.9)); box-shadow:0 16px 36px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter:blur(12px); }
.school-card p { color:var(--muted); font-size:14px; }
.school-card .btn { margin-top:auto; }
.school-card .card-tag { color:var(--accent); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.08em; margin-bottom:24px; }
.school-proof { display:flex; flex-wrap:wrap; align-items:center; gap:24px 48px; padding:24px 28px!important; border:1px solid rgba(95,165,226,.48); border-radius:18px; background:linear-gradient(100deg,rgba(24,49,79,.82),rgba(29,44,65,.68)); backdrop-filter:blur(10px); }
.school-proof strong { display:block; font-size:28px; font-weight:600; color:#f3f5fa; }
.school-proof span { font-size:12px; color:var(--muted); }
.school-proof .text-link { font-size:13px; margin-left:auto; }
.school-card.featured { border-color:#65a2d9; background:linear-gradient(145deg,rgba(35,66,100,.9),rgba(20,30,46,.88) 75%); box-shadow:0 16px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(156,212,255,.12); }
.card-note { padding-top:18px; border-top:1px solid var(--line); margin-top:auto; }
.text-link { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.school-callout { background:linear-gradient(120deg,rgba(35,58,85,.9),rgba(25,31,46,.92)); border:1px solid rgba(125,184,236,.42); border-radius:18px; padding:36px; box-shadow:0 20px 44px rgba(0,0,0,.2); backdrop-filter:blur(12px); }
.school-callout p { max-width:770px; color:#c6d2e3; }
.step-number { color:var(--accent); font-size:13px; margin-bottom:22px; }
.school-page .site-footer { margin:0; padding:36px 0 22px; background:rgba(10,14,23,.86); border-top:1px solid var(--line); backdrop-filter:blur(12px); }
.school-footer-row { display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.school-footer-row p { font-size:13px; color:var(--muted); }
.school-footer-links { display:flex; gap:24px; flex-wrap:wrap; font-size:14px; }
.school-page .footer-bottom { margin-top:28px; padding-top:22px; text-align:left; border-top:1px solid var(--line); font-size:11px; color:var(--muted); }
.course-hero { padding:64px 0 48px; max-width:900px; }
.course-hero h1 { max-width:900px; }
.course-nav { display:flex; gap:24px; flex-wrap:wrap; padding:18px 0; border-block:1px solid var(--line); font-size:13px; }
.course-nav a { color:var(--accent); }
.syllabus details,.school-faq details { border-bottom:1px solid var(--line); padding:22px 0; }
#program .syllabus details:last-child { border-bottom:0; }
.school-page summary { cursor:pointer; font-size:18px; font-weight:500; line-height:1.5; }
.school-page details p { margin:16px 0 0; color:var(--muted); }
.syllabus ol { padding:20px 0 0 28px; columns:2; column-gap:50px; color:#d2dceb; }
.syllabus li { padding:6px 0 6px 4px; font-size:14px; break-inside:avoid; }
.syllabus .syllabus-topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; list-style:none; margin:24px 0 0; padding:0; }
.syllabus .syllabus-topics li { position:relative; display:flex; align-items:center; min-height:62px; margin:0; padding:16px 20px 16px 44px; border:1px solid rgba(208,161,116,.3); border-radius:10px; background:linear-gradient(125deg,rgba(79,52,37,.94),rgba(41,29,23,.93)); color:#fff3e7; font-size:16px; font-weight:500; line-height:1.55; }
.syllabus .syllabus-topics li::before { content:""; position:absolute; left:20px; top:calc(50% - 3px); width:6px; height:6px; background:#d5aa7b; border:1px solid #f2cfa6; transform:rotate(45deg); }
.certificate-preview { display:block; width:100%; max-width:900px; margin:28px auto 0; }
.certificate-preview img { display:block; width:100%; height:auto; box-shadow:0 18px 42px rgba(0,0,0,.25); }
@media(max-width:640px) { .syllabus .syllabus-topics { grid-template-columns:minmax(0,1fr); gap:10px; } .syllabus .syllabus-topics li { min-height:58px; padding:14px 16px 14px 38px; font-size:15px; } .syllabus .syllabus-topics li::before { left:16px; } }
.package-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.package-grid .school-card { padding:32px; }
.package-price { font-size:40px; font-weight:600; line-height:1.2; letter-spacing:-.04em; margin:12px 0 24px; }
.school-page .feature-list { list-style:disc; padding-left:20px; margin:0 0 28px; }
.feature-list li { padding:5px 0; font-size:14px; color:#d2dceb; }
.review-carousel .review-grid { display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:0; padding:6px 2px 20px; columns:auto; }
.review-carousel .review-card { display:flex; align-items:center; justify-content:center; flex:0 0 calc((100% - 48px)/3); min-width:0; height:440px; box-sizing:border-box; scroll-snap-align:start; margin:0; padding:16px; border:1px solid #b38861; border-radius:20px; background:linear-gradient(145deg,#573b2b,#291d18); box-shadow:0 10px 24px rgba(0,0,0,.2),inset 0 0 0 5px rgba(224,183,142,.05); transition:border-color .2s,background .2s; }
.review-carousel .review-card:hover { border-color:#edc399; background:linear-gradient(145deg,#684732,#34231c); }
.review-carousel .review-shot img { display:block; width:100%; height:100%; object-fit:contain; border-radius:7px; }
.review-controls { display:flex; justify-content:flex-end; align-items:center; gap:16px; margin-top:8px; }
.review-controls[hidden] { display:none; }
.review-carousel .review-grid { scrollbar-width:none; }
.review-carousel .review-grid::-webkit-scrollbar { display:none; }
.review-status { color:#e6d6c8; font-size:14px; font-variant-numeric:tabular-nums; min-width:68px; text-align:center; }
.review-arrow { display:grid; place-items:center; width:48px; height:48px; border:1px solid #bd667b; border-radius:50%; background:#800020; color:#fff6f2; font:inherit; font-size:25px; cursor:pointer; }
.review-arrow:hover { background:#9a193b; }
.review-arrow:disabled { opacity:.35; cursor:default; background:#38281e; }
@media(max-width:1000px) { .review-carousel .review-card { flex-basis:calc((100% - 24px)/2); } }
@media(max-width:640px) { .review-carousel .review-grid { gap:16px; } .review-carousel .review-card { flex-basis:100%; height:420px; padding:14px; } .review-controls { justify-content:center; } }
.local-status { padding:14px 18px; margin-top:22px; background:#1a2638; border-left:3px solid #83b8eb; font-size:13px; color:#c8d8eb; }
.school-page .calculator-wrapper { width:100%; max-width:1160px; margin:0; }
.school-page .calc-controls { display:flex; flex-wrap:wrap; gap:12px; margin-block:18px; }
.school-page .input-date { min-height:48px; max-width:100%; color-scheme:dark; background:#16263b; color:#fff; border:1px solid #52647d; border-radius:9px; padding:12px; font:inherit; }
@media(max-width:900px) { .school-grid { grid-template-columns:1fr; } .school-hero { gap:28px; } .hero-visual img { height:390px; } .hero-visual { min-height:390px; height:390px; } .school-nav { gap:14px; } }
@media(max-width:640px) { .school-page .container { width:calc(100% - 36px); } .school-page .site-header { padding:18px 0; } .school-page .header-container { gap:16px; align-items:flex-start; } .school-nav { gap:12px 18px; font-size:12px; } .school-hero { grid-template-columns:1fr; padding-top:36px; } .hero-visual { min-height:330px; } .hero-visual img { height:350px; } .school-section { padding-block:42px; } .school-page .lead { font-size:16px; } .school-card,.package-grid .school-card { padding:24px; } .school-callout { padding:24px; } .package-grid { grid-template-columns:1fr; } .course-hero { padding-top:36px; } .syllabus ol { columns:1; } .review-grid { columns:1; } .action-row { flex-direction:column; align-items:stretch; } .school-page .btn { width:100%; } .school-footer-links { gap:20px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .school-page * { transition:none!important; } }
@media(max-width:768px) { body.school-page::before { background-image:linear-gradient(rgba(8,13,23,.24),rgba(8,13,23,.38)),url("../img/мобосновной.png")!important; } }
@media(max-width:640px) { .school-nav { font-size:15px; gap:8px 20px; } }

/* One school, two course palettes. Shared button styles stay unchanged. */
.school-card.forecast-card { --accent:#f0c18e; border-color:#c39364; background:linear-gradient(145deg,rgba(100,65,42,.94),rgba(40,28,23,.92) 75%); box-shadow:0 16px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,218,172,.12); }
.school-card.forecast-card p:not(.card-tag) { color:#e0cec0; }
body.school-page.school-forecast { --muted:#dfcbbb; --line:rgba(208,161,116,.3); --accent:#f0c18e; background-color:#241710!important; }
body.school-page.school-forecast::before { z-index:-1; background-image:linear-gradient(rgba(28,17,11,.3),rgba(28,17,11,.45)),url("../img/forecast-background-original-v3.png")!important; background-size:100% 100%,cover!important; background-position:center center!important; background-repeat:no-repeat!important; filter:none; transform:translateZ(0); }
body.school-page.school-forecast::after { content:none; }
.school-forecast .site-header { background:rgba(30,21,17,.82); border-bottom-color:rgba(208,161,116,.3); }
.school-forecast .school-card { border-color:rgba(208,161,116,.4); background:linear-gradient(135deg,rgba(91,61,42,.88),rgba(39,28,23,.93)); box-shadow:0 16px 36px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,220,180,.06); }
.school-forecast .school-callout { background:linear-gradient(120deg,rgba(99,64,40,.92),rgba(44,29,23,.95)); border-color:rgba(224,174,118,.52); }
.school-forecast .lead,.school-forecast .school-card p,.school-forecast .school-callout p { color:#e6d6c8; }
.school-forecast .school-card .card-tag { color:var(--accent); }
.school-forecast .site-footer { background:rgba(26,18,14,.9); }
.school-forecast .btn-primary { background:#800020; border-color:#bd667b; color:#fff6f2; }
.school-forecast .btn-primary:hover { background:#9a193b; border-color:#e2a4ae; color:#fff6f2; }
.school-forecast .btn-outline,.forecast-card .btn-outline { background:transparent; border-color:#c48994; color:#fff6f2; }
.school-forecast .btn-outline:hover,.forecast-card .btn-outline:hover { background:rgba(128,0,32,.25); border-color:#e2a4ae; color:#fff6f2; }
@media(max-width:640px) { body.school-page.school-forecast::before { background-image:linear-gradient(rgba(28,17,11,.4),rgba(28,17,11,.5)),url("../img/forecast-background-original-v3.png")!important; background-position:center center,70% center!important; } }

/* Approved shared chocolate identity: distant scene on home, close scene inside. */
body.school-page.school-overview::before { background-image:linear-gradient(rgba(28,17,11,.16),rgba(28,17,11,.3)),url("../img/forecast-background-wide-v2.png")!important; background-position:center center!important; }
.school-forecast .school-card.featured { border-color:#c39364; background:linear-gradient(145deg,rgba(100,65,42,.94),rgba(40,28,23,.92) 75%); box-shadow:0 16px 40px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,218,172,.12); }
.school-forecast .school-proof { border-color:rgba(208,161,116,.5); background:linear-gradient(100deg,rgba(91,58,37,.85),rgba(48,33,25,.78)); }
.school-forecast .hero-visual::before { background:linear-gradient(100deg,#38251b,#67452d 50%,#38251b); border-color:#b38861; }
.school-forecast .portrait-caption { background:linear-gradient(180deg,rgba(47,29,20,.85),#342218 72%); }
.school-forecast .package-price { color:#fff5e8; }
.school-forecast .local-status { background:rgba(62,42,30,.9); border-left-color:#d6a673; color:#ecdbc9; }
.school-forecast .calculator-wrapper { background:rgba(34,24,19,.83); border-color:rgba(208,161,116,.35); }
.school-forecast .input-date { background:#38281e; border-color:#a57c57; }
.school-forecast .btn-outline { border-color:#c48994; }
.school-forecast .btn-primary:focus-visible,.school-forecast a:focus-visible,.school-forecast button:focus-visible,.school-forecast summary:focus-visible,.school-forecast input:focus-visible { outline-color:#f5ce9d; }

/* Original photograph: no AI edits; framing and edge blending are CSS only. */
.school-hero .hero-original { width:100%; max-width:460px; justify-self:center; }
.school-hero .hero-original img { width:auto; max-width:100%; height:600px; object-fit:contain; object-position:center bottom; mask-image:none; transform:none; }
.school-hero .hero-original::before { content:none; }
.school-hero .hero-original .portrait-caption::before,
.school-hero .hero-original .portrait-caption::after { content:""; position:absolute; top:0; bottom:0; width:16px; background:#38251b; border-block:1px solid #b38861; pointer-events:none; }
.school-hero .hero-original .portrait-caption::before { left:-16px; }
.school-hero .hero-original .portrait-caption::after { right:-16px; }
.school-hero .hero-original .portrait-caption { width:calc(100% + 32px); min-height:164px; margin-top:-108px; padding:24px 48px; background:transparent url('../img/portrait-chocolate-scroll.png') center/100% 100% no-repeat; }
.school-hero .hero-original .portrait-caption::before,
.school-hero .hero-original .portrait-caption::after { content:none; }
.school-hero .hero-original .portrait-caption strong { color:#fff5e8; }
.school-hero .hero-original .portrait-caption > span { color:#eddbca; }
@media(max-width:640px) { .school-hero .hero-original .portrait-caption { width:calc(100% + 12px); min-height:176px; padding:24px 34px; } }
@media(max-width:900px) and (min-width:641px) { .school-hero .hero-original img { height:470px; } }
@media(max-width:640px) { .school-hero .hero-original { max-width:390px; } .school-hero .hero-original img { height:520px; } }

.review-carousel .review-card-pair { display:grid; grid-template-rows:minmax(0,1fr) minmax(0,1fr); gap:16px; }
.review-carousel .review-shot { display:flex; align-items:center; justify-content:center; min-width:0; min-height:0; width:100%; height:100%; }
.review-carousel .review-card-natural { grid-template-rows:auto auto; align-content:center; }
.review-carousel .review-card-natural .review-shot { height:auto; width:min(100%,var(--review-pair-width,390px)); justify-self:center; }
.review-carousel .review-card-natural img { height:auto; }

.review-carousel .review-card-triple { grid-template-rows:repeat(3,auto); }

/* Forecast syllabus: read down the first column, then down the second. */
.syllabus .syllabus-topics.sequential-topics { display:block; column-count:2; column-gap:16px; }
.syllabus .syllabus-topics.sequential-topics li { break-inside:avoid; margin-bottom:12px; }
@media(max-width:640px) { .syllabus .syllabus-topics.sequential-topics { column-count:1; } .syllabus .syllabus-topics.sequential-topics li { margin-bottom:10px; } }
