
:root {
  --terracotta:#A6542B;
  --terracotta-dark:#74391F;
  --cream:#FFF7F2;
  --warm-white:#FFFAF6;
  --peach:#EED9C8;
  --coral:#F73C5B;
  --brown:#4D3026;
  --muted:#80675D;
  --line:rgba(166,84,43,.18);
  --shadow:0 18px 50px rgba(80,45,30,.10);
  --radius:28px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--brown);
  background:var(--peach);
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{max-width:100%;display:block}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  min-height:76px;
  padding:12px 24px;
  display:flex;
  align-items:center;
  gap:22px;
  background:rgba(255,250,246,.95);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  margin-right:auto;
}
.brand-mark{
  width:46px;height:53px;
  display:grid;place-items:center;
  border-radius:15px;
  background:var(--terracotta);
  color:#fff;
  font-size:27px;
}
.brand-copy{display:flex;flex-direction:column;line-height:1}
.brand-copy strong{
  font-family:Georgia,serif;
  font-size:17px;
  letter-spacing:.13em;
}
.brand-copy small{
  margin-top:6px;
  color:var(--muted);
  font-size:8px;
  letter-spacing:.14em;
}
.desktop-nav{
  display:flex;
  align-items:center;
  gap:21px;
  font-size:12px;
  font-weight:700;
}
.desktop-nav a:hover,.desktop-nav a.active{color:var(--terracotta)}
.header-actions{display:flex;align-items:center;gap:8px}
.header-btn{
  padding:9px 13px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.header-btn.outline{border:1px solid var(--terracotta);color:var(--terracotta)}
.header-btn.fill{background:var(--terracotta);color:#fff}
.lang-toggle{display:flex;gap:5px}
.lang-toggle button{
  border:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  border-radius:999px;
  padding:6px 10px;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}
.lang-toggle button.active{background:var(--terracotta);color:white}
.menu-button{
  display:none;
  border:0;
  background:transparent;
  color:var(--terracotta);
  font-size:27px;
  cursor:pointer;
}
.mobile-nav{
  display:none;
  position:fixed;
  top:76px;
  left:0;right:0;
  z-index:90;
  padding:16px 22px 22px;
  background:var(--cream);
  box-shadow:var(--shadow);
}
.mobile-nav.open{display:flex;flex-direction:column}
.mobile-nav a{
  padding:15px 4px;
  border-bottom:1px solid var(--line);
  font-weight:700;
}
.mobile-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}

main{background:var(--cream)}
.container{
  width:min(var(--max),calc(100% - 40px));
  margin:0 auto;
}
.hero{
  min-height:660px;
  background:var(--peach);
  display:flex;
  align-items:center;
  padding:72px 0;
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
}
.kicker{
  margin:0;
  color:var(--terracotta);
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.hero h1{
  margin:12px 0 0;
  font-family:Georgia,serif;
  font-size:clamp(64px,8vw,116px);
  line-height:.86;
  font-weight:400;
  letter-spacing:-.055em;
}
.hero-subbrand{
  margin:14px 0 0;
  font-size:13px;
  font-weight:900;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--terracotta-dark);
}
.tagline{
  margin:26px 0 0;
  max-width:620px;
  font-family:Georgia,serif;
  font-size:clamp(24px,2.6vw,36px);
  line-height:1.1;
}
.hero-copy{
  margin-top:18px;
  max-width:570px;
  color:var(--muted);
  font-size:14px;
}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:14px 21px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  transition:.18s ease;
}
.button:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(80,45,30,.16)}
.button.primary{background:var(--terracotta);color:white}
.button.secondary{border:1px solid var(--terracotta);color:var(--terracotta)}
.button.coral{background:var(--coral);color:white}

.slideshow-shell{
  min-height:500px;
  position:relative;
  display:grid;
  place-items:center;
  padding:28px;
  border-radius:34px;
  background:var(--warm-white);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.slideshow-placeholder{
  width:100%;
  height:100%;
  min-height:440px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:40px;
  border:2px dashed rgba(166,84,43,.28);
  border-radius:28px;
  color:var(--muted);
  background:
    radial-gradient(circle at 20% 25%, rgba(166,84,43,.09) 0 8%, transparent 8.5%),
    radial-gradient(circle at 80% 70%, rgba(166,84,43,.07) 0 10%, transparent 10.5%),
    var(--cream);
}
.slideshow-placeholder strong{
  display:block;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
  color:var(--terracotta);
}
.slideshow-placeholder small{
  display:block;
  max-width:360px;
  margin:10px auto 0;
  font-size:12px;
}

.section{padding:92px 0;background:var(--warm-white)}
.section.alt{background:var(--cream)}
.section.peach{background:var(--peach)}
.section.dark{background:var(--terracotta);color:white}
.section-head{
  display:grid;
  grid-template-columns:.8fr 1.4fr;
  gap:36px;
  align-items:end;
  margin-bottom:34px;
}
.section-title{
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(42px,5vw,70px);
  font-weight:400;
  line-height:.96;
  letter-spacing:-.04em;
}
.section-title em{color:var(--terracotta);font-style:italic}
.section.dark .section-title em{color:#f6ddd3}
.section-lead{margin:0;color:var(--muted);font-size:14px}
.section.dark .section-lead{color:#f3dcd2}

.overview-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.card{
  min-height:250px;
  padding:28px;
  border-radius:var(--radius);
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
}
.card.hot{background:var(--terracotta);color:white}
.card .num{
  color:var(--terracotta);
  font-size:10px;
  font-weight:900;
}
.card.hot .num{color:#f5d3c6}
.card h3{
  margin:54px 0 10px;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
}
.card p{margin:0;color:var(--muted);font-size:13px}
.card.hot p{color:#f3dbd2}
.card-link{
  margin-top:auto;
  padding-top:20px;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.price-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.price-card{
  min-height:300px;
  padding:28px;
  border-radius:var(--radius);
  color:white;
  background:var(--terracotta);
  display:flex;
  flex-direction:column;
}
.price-card small{
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.price-card h3{
  margin:58px 0 4px;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
}
.price-card p{margin:0;color:#f1d7cc}
.price-card strong{
  margin-top:16px;
  font-family:Georgia,serif;
  font-size:36px;
  font-weight:400;
}
.price-card strong span{font-family:Arial,sans-serif;font-size:12px}
.price-card a{
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.28);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.license{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:26px;
  color:var(--muted);
  font-size:10px;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
.info-panel{
  padding:30px;
  border-radius:28px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.info-panel h3{
  margin:0 0 12px;
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:400;
}
.info-panel p{color:var(--muted)}
.placeholder-note{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(166,84,43,.08);
  color:var(--terracotta-dark);
  font-size:12px;
}

.page-hero{
  padding:86px 0 64px;
  background:var(--peach);
}
.page-hero h1{
  margin:10px 0 0;
  font-family:Georgia,serif;
  font-size:clamp(50px,7vw,90px);
  line-height:.95;
  font-weight:400;
}
.page-hero p{
  max-width:760px;
  color:var(--muted);
  font-size:16px;
}

.content-stack{display:grid;gap:18px}
.detail-card{
  padding:30px;
  border-radius:26px;
  background:var(--cream);
  border:1px solid var(--line);
}
.detail-card h2,.detail-card h3{
  margin-top:0;
  font-family:Georgia,serif;
  font-weight:400;
}
.detail-card p{color:var(--muted)}

.login-box{
  width:min(520px,100%);
  margin:0 auto;
  padding:34px;
  border-radius:28px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.field{display:grid;gap:7px;margin-bottom:16px}
.field label{font-size:11px;font-weight:800}
.field input{
  width:100%;
  border:1px solid var(--line);
  background:white;
  padding:13px 14px;
  border-radius:14px;
  color:var(--brown);
}
.login-note{margin-top:16px;color:var(--muted);font-size:12px}

.site-footer{
  padding:54px 0 22px;
  background:var(--brown);
  color:white;
}
.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:36px;
  align-items:end;
}
.footer-logo{
  font-family:Georgia,serif;
  font-size:32px;
  letter-spacing:.12em;
}
.footer-copy{max-width:340px;color:#cdb9b0}
.footer-small{
  color:#d8b9aa;
  font-size:9px;
  letter-spacing:.12em;
}
.footer-phone{
  display:block;
  margin-top:5px;
  font-family:Georgia,serif;
  font-size:25px;
}
.vk{
  padding:16px 20px;
  border-radius:999px;
  background:var(--coral);
  color:white;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-top:40px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.14);
  color:#bba79d;
  font-size:10px;
}

html.english .ru{display:none}
html:not(.english) .en{display:none}

@media(max-width:1120px){
  .desktop-nav,.header-actions{display:none}
  .menu-button{display:block}
}
@media(max-width:900px){
  .hero-grid,.split,.section-head{grid-template-columns:1fr}
  .overview-grid,.price-grid{grid-template-columns:1fr}
  .hero{min-height:auto}
  .slideshow-shell{min-height:390px}
  .slideshow-placeholder{min-height:330px}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .site-header{min-height:70px;padding:10px 16px}
  .mobile-nav{top:70px}
  .lang-toggle{margin-left:auto}
  .hero{padding:46px 0 58px}
  .hero h1{font-size:58px}
  .hero-subbrand{font-size:11px}
  .slideshow-shell{min-height:310px;padding:16px}
  .slideshow-placeholder{min-height:270px}
  .section{padding:68px 0}
  .page-hero{padding:58px 0 44px}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
  .mobile-actions{grid-template-columns:1fr}
  .license{display:block}
  .license span{display:block;margin-top:8px}
}


/* =========================
   CONTACTS + FINAL CTA
========================= */

.hero-phone {
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:18px;
  color:var(--terracotta-dark);
  font-weight:800;
  font-size:14px;
}

.hero-phone .phone-dot{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--warm-white);
  border:1px solid var(--line);
}

.booking-banner{
  padding:34px 0;
  background:var(--terracotta-dark);
  color:white;
}

.booking-banner a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.booking-banner strong{
  font-family:Georgia,serif;
  font-size:clamp(30px,4.5vw,58px);
  font-weight:400;
  line-height:1;
}

.booking-banner span{
  font-size:28px;
}

.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:30px;
  align-items:start;
}

.contact-card{
  padding:28px;
  border-radius:28px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.contact-card h2,
.contact-card h3{
  margin-top:0;
  font-family:Georgia,serif;
  font-weight:400;
}

.contact-list{
  display:grid;
  gap:14px;
  margin-top:18px;
}

.contact-row{
  padding:16px 0;
  border-bottom:1px solid var(--line);
}

.contact-row:last-child{
  border-bottom:0;
}

.contact-row small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.contact-row strong,
.contact-row a{
  display:block;
  margin-top:4px;
  font-size:17px;
}

.social-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:18px;
}

.social-placeholder{
  padding:16px 12px;
  border-radius:18px;
  text-align:center;
  background:var(--warm-white);
  border:1px dashed var(--terracotta);
}

.social-placeholder strong{
  display:block;
  font-size:13px;
}

.social-placeholder small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
}

.map-card{
  overflow:hidden;
  border-radius:28px;
  background:var(--warm-white);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.map-placeholder{
  min-height:390px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:34px;
  background:
    linear-gradient(rgba(166,84,43,.06),rgba(166,84,43,.06)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(166,84,43,.06) 35px 36px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(166,84,43,.06) 35px 36px),
    var(--peach);
}

.map-placeholder strong{
  display:block;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
  color:var(--terracotta);
}

.map-placeholder p{
  max-width:430px;
  margin:10px auto 0;
  color:var(--muted);
  font-size:13px;
}

.map-actions{
  padding:18px;
  display:flex;
  justify-content:center;
}

@media(max-width:900px){
  .contact-grid{grid-template-columns:1fr}
}

@media(max-width:600px){
  .booking-banner a{align-items:flex-start}
  .social-grid{grid-template-columns:1fr}
}


/* =========================
   V3 CONTACTS / RESOURCES
========================= */

.contact-map-image{
  display:block;
  width:100%;
  aspect-ratio:16 / 10;
  object-fit:cover;
  border-radius:24px 24px 0 0;
}

.contact-socials{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:18px;
}

.contact-social{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:14px 12px;
  border-radius:18px;
  background:var(--warm-white);
  border:1px solid var(--line);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  transition:.18s ease;
}

.contact-social:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(80,45,30,.12);
  border-color:var(--terracotta);
}

.resource-feature{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
  align-items:center;
  padding:30px;
  border-radius:28px;
  background:var(--terracotta);
  color:white;
}

.resource-feature-art{
  min-height:260px;
  display:grid;
  place-items:center;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  text-align:center;
  padding:26px;
}

.resource-feature-art strong{
  font-family:Georgia,serif;
  font-size:34px;
  font-weight:400;
  line-height:1.05;
}

.resource-feature-copy h2{
  margin:0 0 14px;
  font-family:Georgia,serif;
  font-size:40px;
  font-weight:400;
  line-height:1;
}

.resource-feature-copy p{
  color:#f3ddd4;
}

.download-disabled{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:14px 20px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:white;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.25);
  cursor:not-allowed;
}

@media(max-width:900px){
  .resource-feature{grid-template-columns:1fr}
}

@media(max-width:600px){
  .contact-socials{grid-template-columns:1fr}
}


/* =========================
   V4 NAV / FULL HERO SLIDER / FLOATING CTA
========================= */

body{
  padding-bottom:0;
}

/* Full-width hero slideshow */
.hero{
  position:relative;
  min-height:660px;
  padding:0;
  overflow:hidden;
  background:var(--peach);
}

.hero-slider{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}

.hero-track{
  display:flex;
  width:300%;
  height:100%;
  transform:translateX(0);
  transition:transform 900ms cubic-bezier(.65,0,.35,1);
}

.hero-slide{
  flex:0 0 33.333333%;
  width:33.333333%;
  min-height:660px;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  position:relative;
}

/* Temporary visual placeholders until real photos are uploaded */
.hero-slide.slide-one{
  background:
    linear-gradient(90deg, rgba(238,217,200,.94) 0%, rgba(238,217,200,.82) 38%, rgba(238,217,200,.28) 68%, rgba(238,217,200,.10) 100%),
    radial-gradient(circle at 78% 38%, rgba(166,84,43,.28) 0 16%, transparent 16.5%),
    linear-gradient(135deg,#f5e7da,#d7aa8d);
}

.hero-slide.slide-two{
  background:
    linear-gradient(90deg, rgba(238,217,200,.94) 0%, rgba(238,217,200,.82) 38%, rgba(238,217,200,.28) 68%, rgba(238,217,200,.10) 100%),
    radial-gradient(circle at 75% 55%, rgba(247,60,91,.18) 0 14%, transparent 14.5%),
    linear-gradient(135deg,#ecd6c3,#c98a68);
}

.hero-slide.slide-three{
  background:
    linear-gradient(90deg, rgba(238,217,200,.94) 0%, rgba(238,217,200,.82) 38%, rgba(238,217,200,.28) 68%, rgba(238,217,200,.10) 100%),
    radial-gradient(circle at 82% 35%, rgba(116,57,31,.17) 0 18%, transparent 18.5%),
    linear-gradient(135deg,#f0dfd2,#bd7958);
}

.hero-overlay{
  position:relative;
  z-index:2;
  min-height:660px;
  display:flex;
  align-items:center;
  pointer-events:none;
}

.hero-overlay .container{
  width:min(var(--max),calc(100% - 40px));
}

.hero-copy-block{
  max-width:650px;
  pointer-events:auto;
  padding:72px 0;
}

.hero h1{
  text-shadow:0 2px 18px rgba(255,250,246,.3);
}

.hero-slider-note{
  margin-top:16px;
  max-width:470px;
  color:var(--terracotta-dark);
  font-size:11px;
  opacity:.78;
}

.hero-dots{
  position:absolute;
  left:50%;
  bottom:20px;
  z-index:4;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
}

.hero-dot{
  width:9px;
  height:9px;
  border:0;
  padding:0;
  border-radius:50%;
  background:rgba(255,250,246,.62);
  box-shadow:0 0 0 1px rgba(77,48,38,.15);
  cursor:pointer;
}

.hero-dot.active{
  background:var(--terracotta);
}

/* Floating booking CTA */
.floating-book{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:120;
  width:68px;
  height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--coral);
  color:white;
  box-shadow:0 14px 34px rgba(80,45,30,.24);
  font-weight:900;
  font-size:22px;
  transition:.2s ease;
}

.floating-book:hover{
  transform:translateY(-3px) scale(1.03);
}

.floating-book .floating-label{
  position:absolute;
  right:78px;
  white-space:nowrap;
  padding:9px 12px;
  border-radius:999px;
  background:var(--brown);
  color:white;
  font-size:10px;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:0;
  transform:translateX(8px);
  pointer-events:none;
  transition:.18s ease;
}

.floating-book:hover .floating-label,
.floating-book:focus-visible .floating-label{
  opacity:1;
  transform:translateX(0);
}

@media(max-width:900px){
  .hero-slide,
  .hero-overlay{
    min-height:600px;
  }
}

@media(max-width:600px){
  .hero,
  .hero-slide,
  .hero-overlay{
    min-height:560px;
  }

  .hero-copy-block{
    padding:54px 0 82px;
  }

  .floating-book{
    width:58px;
    height:58px;
    right:15px;
    bottom:15px;
    font-size:19px;
  }

  .floating-book .floating-label{
    display:none;
  }
}


/* V4.1 — floating CTA label only */
.floating-book{
  width:auto;
  min-width:104px;
  height:52px;
  padding:0 22px;
  border-radius:999px;
  white-space:nowrap;
  font-size:12px;
  letter-spacing:.06em;
}

@media(max-width:600px){
  .floating-book{
    width:auto;
    min-width:96px;
    height:48px;
    padding:0 18px;
    font-size:11px;
  }
}

/* V5 contact form */
.contact-form{display:grid;gap:18px;margin:20px 0 30px}
.form-grid{display:grid;gap:14px}
.form-grid.two{grid-template-columns:1fr 1fr}
.field{display:grid;gap:7px}
.field label,.form-fieldset legend{font-size:11px;font-weight:800}
.field input,.field select{
  width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);
  background:white;color:var(--brown);font-size:14px
}
.form-fieldset{margin:0;padding:14px;border:1px solid var(--line);border-radius:16px}
.choice-row{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:8px}
.choice-row label,.consent-row{display:flex;align-items:center;gap:8px;font-size:13px}
.consent-row{align-items:flex-start}
.form-status{margin:0;color:var(--muted);font-size:11px}
@media(max-width:600px){.form-grid.two{grid-template-columns:1fr}}


/* =========================
   V6 — HEADER LEGAL LINK / FOOTER UTILITIES / LEGAL / TEACHERS / FAQ
========================= */

.header-right-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
}

.header-legal{
  font-size:8px;
  font-weight:800;
  letter-spacing:.06em;
  color:var(--muted);
  text-transform:uppercase;
  text-decoration:underline;
  text-underline-offset:2px;
}

.header-legal:hover{color:var(--terracotta)}

.footer-utilities{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:34px;
  margin-top:38px;
  padding-top:26px;
  border-top:1px solid rgba(255,255,255,.14);
}

.footer-utilities h3{
  margin:0 0 12px;
  font-family:Georgia,serif;
  font-size:18px;
  font-weight:400;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
}

.footer-links a{
  color:#d6c2b8;
  font-size:11px;
}

.footer-links a:hover{color:white}

.legal-grid,
.teacher-grid,
.faq-grid{
  display:grid;
  gap:16px;
}

.legal-card{
  padding:26px;
  border-radius:24px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.legal-card h2{
  margin:0 0 10px;
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:400;
}

.legal-card p{color:var(--muted)}
.legal-card .button{margin-top:8px}

.legal-document{
  max-width:900px;
  margin:0 auto;
  padding:34px;
  border-radius:26px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.legal-document h1,
.legal-document h2,
.legal-document h3{
  font-family:Georgia,serif;
  font-weight:400;
}

.legal-document p,
.legal-document li{
  color:var(--brown);
}

.teacher-card{
  min-height:240px;
  padding:26px;
  border-radius:26px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.teacher-card h2{
  margin-top:0;
  font-family:Georgia,serif;
  font-weight:400;
}

.teacher-photo-placeholder{
  min-height:180px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:20px;
  background:var(--peach);
  border:1px dashed var(--terracotta);
  color:var(--muted);
  text-align:center;
  padding:20px;
}

.faq-item{
  padding:24px 26px;
  border-radius:22px;
  background:var(--cream);
  border:1px solid var(--line);
}

.faq-item h2{
  margin:0 0 8px;
  font-family:Georgia,serif;
  font-size:23px;
  font-weight:400;
}

.faq-item p{margin:0;color:var(--muted)}

@media(max-width:1120px){
  .header-right-stack{align-items:center}
  .header-legal{font-size:9px}
}

@media(max-width:900px){
  .footer-utilities{grid-template-columns:1fr}
}

@media(max-width:600px){
  .legal-document{padding:22px}
}


/* =========================
   V7 — ORGANIZATION TAB / REVIEWS / JOIN OUR TEAM
========================= */

.review-section{
  background:var(--warm-white);
}

.review-viewport{
  overflow:hidden;
  margin-top:34px;
}

.review-track{
  display:flex;
  gap:16px;
  transition:transform 650ms cubic-bezier(.65,0,.35,1), opacity 300ms ease;
  will-change:transform;
}

.review-card{
  flex:0 0 calc((100% - 32px)/3);
  min-width:0;
  min-height:250px;
  display:flex;
  flex-direction:column;
  padding:26px;
  border-radius:26px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.review-stars{
  color:var(--terracotta);
  letter-spacing:.08em;
  font-size:16px;
}

.review-card blockquote{
  margin:18px 0;
  font-family:Georgia,serif;
  font-size:19px;
  line-height:1.45;
}

.review-meta{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
  font-size:10px;
}

.review-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:22px;
}

.review-buttons{
  display:flex;
  gap:8px;
}

.review-arrow{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid var(--line);
  background:var(--cream);
  color:var(--terracotta);
  cursor:pointer;
  font-size:18px;
}

.review-arrow:hover{
  border-color:var(--terracotta);
}

.team-hero-card{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:34px;
  border-radius:28px;
  background:var(--terracotta);
  color:white;
}

.team-hero-card h2{
  margin:0 0 12px;
  font-family:Georgia,serif;
  font-size:38px;
  font-weight:400;
}

.team-hero-card p{
  margin:0;
  color:#f3ddd4;
  max-width:700px;
}

.team-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.team-contact-actions a{
  min-width:105px;
}

.org-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}

@media(max-width:900px){
  .review-card{flex-basis:calc((100% - 16px)/2)}
  .team-hero-card{grid-template-columns:1fr}
  .org-grid{grid-template-columns:1fr}
}

@media(max-width:600px){
  .review-card{flex-basis:100%}
  .review-controls{align-items:flex-start}
}


/* =========================================================
   V7 VISUAL PASS — preserve V7, refine header + hero only
========================================================= */

/* Two-level header */
.site-header{
  min-height:0;
  padding:0;
  display:block;
}

.header-utility{
  min-height:34px;
  padding:5px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(166,84,43,.10);
}

.header-main{
  min-height:68px;
  padding:10px 24px;
  display:flex;
  align-items:center;
  gap:22px;
}

.header-main .brand{
  margin-right:auto;
}

.header-utility .lang-toggle{
  margin:0;
}

.header-socials{
  display:flex;
  align-items:center;
  gap:7px;
}

.social-icon{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-family:Arial,Helvetica,sans-serif;
  font-size:8px;
  line-height:1;
  font-weight:900;
  color:white;
  box-shadow:0 3px 10px rgba(77,48,38,.10);
  transition:.16s ease;
}

.social-icon:hover{
  transform:translateY(-1px);
}

.vk-icon{background:#2787f5}
.max-icon{background:#6857ff;font-size:10px}
.tg-icon{background:#229ed9;font-size:12px}

.mobile-nav{
  top:102px;
}

/* Hero contact buttons are a separate block under the telephone number. */
.hero-contact-socials{
  width:max-content;
  max-width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
}

.hero-social{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 11px 5px 6px;
  border-radius:999px;
  background:rgba(255,250,246,.90);
  border:1px solid rgba(166,84,43,.18);
  box-shadow:0 5px 15px rgba(77,48,38,.07);
  font-size:9px;
  font-weight:900;
  letter-spacing:.02em;
  transition:.16s ease;
}

.hero-social:hover{
  transform:translateY(-1px);
  border-color:rgba(166,84,43,.42);
}

.hero-social-mark{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:white;
  font-family:Arial,Helvetica,sans-serif;
  font-size:7px;
  line-height:1;
  font-weight:900;
}

.hero-social.vk .hero-social-mark{background:#2787f5}
.hero-social.max .hero-social-mark{background:#6857ff;font-size:9px}
.hero-social.tg .hero-social-mark{background:#229ed9;font-size:10px}

/* Passive dogwood blossom clusters.
   Restricted to the right edge, top + bottom, about 15% of the hero width. */
.hero-flower-cluster{
  position:absolute;
  right:-10px;
  z-index:3;
  width:min(15vw,180px);
  height:min(15vw,180px);
  pointer-events:none;
  opacity:.55;
  filter:drop-shadow(0 5px 8px rgba(77,48,38,.07));
}

.hero-flower-cluster::before,
.hero-flower-cluster::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(ellipse at 52% 18%, rgba(255,255,255,.96) 0 9%, transparent 10%),
    radial-gradient(ellipse at 74% 38%, rgba(250,213,218,.92) 0 10%, transparent 11%),
    radial-gradient(ellipse at 52% 60%, rgba(255,255,255,.94) 0 10%, transparent 11%),
    radial-gradient(ellipse at 29% 39%, rgba(247,196,205,.90) 0 9%, transparent 10%),
    radial-gradient(circle at 52% 39%, rgba(205,154,65,.82) 0 4%, transparent 5%),
    radial-gradient(ellipse at 84% 70%, rgba(255,255,255,.85) 0 7%, transparent 8%),
    radial-gradient(ellipse at 71% 83%, rgba(247,196,205,.78) 0 7%, transparent 8%);
}

.hero-flower-cluster::after{
  transform:translate(-34%,24%) scale(.68) rotate(-18deg);
  opacity:.7;
}

.flower-top{
  top:3%;
  transform:rotate(7deg);
}

.flower-bottom{
  bottom:2%;
  transform:rotate(173deg) scale(.82);
  opacity:.42;
}

/* Keep blossoms on the photo/right side, away from the fixed copy. */
.hero-copy-block{
  position:relative;
  z-index:5;
}

@media(max-width:1120px){
  .desktop-nav{gap:13px;font-size:10px}
}

@media(max-width:900px){
  .header-main{min-height:64px;padding:9px 16px}
  .header-utility{padding:5px 16px}
  .mobile-nav{top:98px}
  .hero-flower-cluster{width:14vw;height:14vw;opacity:.42}
}

@media(max-width:600px){
  .header-socials{gap:5px}
  .social-icon{width:23px;height:23px}
  .hero-contact-socials{gap:6px}
  .hero-social{padding-right:8px}
  .hero-flower-cluster{width:15vw;height:15vw;opacity:.34}
}


/* =========================================================
   V7 REFINED HEADER + HERO CONTACTS
========================================================= */

/* Remove dividing line between header tiers. */
.header-utility{
  border-bottom:0 !important;
  min-height:42px;
  padding:7px 24px 1px;
}

.header-main{
  padding-top:4px;
}

/* Logo + language selector now travel together on the left. */
.brand-language-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  margin-right:auto;
}

.header-main .brand{
  margin-right:0;
}

.flag-toggle{
  gap:7px;
}

.flag-toggle button{
  width:38px;
  height:38px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:20px;
  line-height:1;
  overflow:hidden;
}

.flag-toggle button.active{
  box-shadow:0 0 0 2px rgba(166,84,43,.18);
}

/* Top-right platform buttons enlarged ~50%. */
.header-socials{
  gap:10px;
}

.social-icon{
  width:38px;
  height:38px;
  font-size:10px;
  box-shadow:0 5px 14px rgba(77,48,38,.12);
}

.vk-glyph{
  font-family:Arial,Helvetica,sans-serif;
  font-weight:900;
  letter-spacing:-1px;
}
.max-glyph{
  font-size:14px;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:900;
}
.tg-glyph{
  font-size:17px;
  transform:translateX(-1px);
}

/* Hero contacts: large standalone icon marks with labels underneath. */
.hero-contact-socials{
  width:max-content;
  display:flex;
  align-items:flex-start;
  gap:24px;
  margin-top:18px;
}

.hero-social-icon{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-decoration:none;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0;
  min-width:54px;
  transition:transform .16s ease;
}

.hero-social-icon:hover{
  transform:translateY(-2px);
}

.hero-platform-symbol{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  background:none;
  border:0;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:900;
  line-height:1;
}

.vk-symbol{
  color:#2787f5;
  font-size:25px;
  letter-spacing:-2px;
}

.max-symbol{
  color:#6857ff;
  font-size:31px;
}

.tg-symbol{
  color:#229ed9;
  font-size:36px;
  transform:translateX(-2px);
}

.hero-platform-label{
  font-family:Arial,Helvetica,sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:.07em;
  color:var(--brown);
}

/* Real dogwood blossoms, right side only, top and bottom. */
.hero-dogwood-flower{
  position:absolute;
  right:0;
  z-index:3;
  width:min(15vw,210px);
  height:auto;
  pointer-events:none;
}

.hero-dogwood-flower.flower-top{
  top:1%;
  opacity:.72;
}

.hero-dogwood-flower.flower-bottom{
  bottom:0;
  opacity:.56;
}

/* Disable the old abstract CSS decoration if it remains in cached markup. */
.hero-flower-cluster{
  display:none !important;
}

@media(max-width:1120px){
  .brand-language-wrap{gap:11px}
  .flag-toggle button{width:34px;height:34px;font-size:18px}
  .social-icon{width:34px;height:34px}
}

@media(max-width:900px){
  .header-utility{
    min-height:38px;
    padding:5px 16px 0;
  }
  .header-main{
    padding-top:3px;
  }
  .mobile-nav{
    top:100px;
  }
  .hero-dogwood-flower{
    width:15vw;
  }
}

@media(max-width:600px){
  .brand-language-wrap{
    gap:8px;
  }
  .flag-toggle{
    gap:4px;
  }
  .flag-toggle button{
    width:30px;
    height:30px;
    font-size:16px;
  }
  .social-icon{
    width:31px;
    height:31px;
  }
  .hero-contact-socials{
    gap:18px;
  }
  .hero-platform-symbol{
    width:44px;
    height:44px;
  }
  .vk-symbol{font-size:22px}
  .max-symbol{font-size:27px}
  .tg-symbol{font-size:31px}
  .hero-dogwood-flower{
    width:14vw;
    opacity:.46;
  }
}


/* =========================================================
   V7 REFINED V2 — flags, hero contacts, TM
========================================================= */

/* Strong, always-visible flag buttons built with CSS instead of emoji. */
.flag-toggle{
  gap:9px;
}

.flag-btn{
  width:42px !important;
  height:42px !important;
  padding:0 !important;
  border-radius:50% !important;
  overflow:hidden;
  position:relative;
  border:2px solid rgba(77,48,38,.16) !important;
  background:white !important;
  box-shadow:0 4px 12px rgba(77,48,38,.10);
}

.flag-btn.active{
  box-shadow:0 0 0 3px rgba(166,84,43,.20), 0 4px 12px rgba(77,48,38,.12) !important;
  border-color:rgba(166,84,43,.45) !important;
}

.flag-art{
  position:absolute;
  inset:6px;
  border-radius:4px;
  overflow:hidden;
}

/* Russia: white / blue / red */
.flag-ru .flag-art{
  background:
    linear-gradient(to bottom,
      #ffffff 0 33.333%,
      #2457c5 33.333% 66.666%,
      #d52b1e 66.666% 100%);
  border:1px solid rgba(0,0,0,.08);
}

/* USA: red/white stripes with blue canton */
.flag-us .flag-art{
  background:
    repeating-linear-gradient(
      to bottom,
      #b22234 0 2.8px,
      #ffffff 2.8px 5.6px
    );
  border:1px solid rgba(0,0,0,.08);
}
.flag-us .flag-art::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:45%;
  height:54%;
  background:#3c3b6e;
}
.flag-us .flag-art::after{
  content:"✦ ✦";
  position:absolute;
  top:-1px;
  left:2px;
  color:white;
  font-size:5px;
  letter-spacing:1px;
  line-height:1.2;
}

/* Make hero social icons reuse the exact top icon treatment, only larger. */
.hero-contact-socials{
  display:flex;
  gap:26px;
  margin-top:18px;
  align-items:flex-start;
}

.hero-social-icon{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  min-width:64px;
  padding:0 !important;
  background:none !important;
  border:0 !important;
  box-shadow:none !important;
}

.hero-social-mark.social-icon{
  width:58px !important;
  height:58px !important;
  margin:0;
  border-radius:50%;
  box-shadow:0 7px 18px rgba(77,48,38,.12);
}

.hero-social-mark .vk-glyph{
  font-size:15px;
}

.hero-social-mark .max-glyph{
  font-size:21px;
}

.hero-social-mark .tg-glyph{
  font-size:25px;
}

.hero-platform-label{
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

/* Trademark mark on the hero wordmark */
.hero-tm{
  font-family:Arial,Helvetica,sans-serif;
  font-size:.17em;
  font-weight:700;
  vertical-align:top;
  position:relative;
  top:.10em;
  margin-left:.12em;
  letter-spacing:0;
}

/* Keep the new dogwood SVG flowers from the prior version. */
.hero-dogwood-flower{
  display:block;
}

/* Ensure the old small DOGWOOD kicker does not reserve space if cached. */
.hero-copy-block > .kicker:first-child{
  display:none;
}

@media(max-width:600px){
  .flag-btn{
    width:36px !important;
    height:36px !important;
  }
  .flag-art{
    inset:5px;
  }
  .hero-social-mark.social-icon{
    width:50px !important;
    height:50px !important;
  }
}


/* =========================================================
   FRESH RECOVERY PASS
   Based directly on user-supplied index.html/style.css/site.js
   ========================================================= */

/* --- HEADER: two rows remain, with no dividing line --- */
.site-header{
  min-height:0;
  padding:0;
  display:block;
  background:rgba(255,250,246,.95);
  border-bottom:1px solid var(--line);
}

.header-utility{
  min-height:40px;
  padding:5px 24px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:0 !important;
}

.header-main{
  min-height:68px;
  padding:4px 24px 10px;
  display:flex;
  align-items:center;
  gap:18px;
}

.header-main .brand{
  margin-right:0;
}

/* --- compact flag slider: visible, but deliberately restrained --- */
.language-slider{
  display:flex;
  align-items:center;
  gap:6px;
  font-family:Arial,Helvetica,sans-serif;
}

.language-label{
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.05em;
  color:var(--terracotta-dark);
  opacity:.72;
}

.language-slider-track{
  width:76px;
  height:30px;
  position:relative;
  display:flex;
  overflow:hidden;
  border-radius:999px;
  border:1px solid rgba(77,48,38,.18);
  background:#fff;
  box-shadow:0 3px 9px rgba(77,48,38,.09);
}

.language-half{
  width:50%;
  height:100%;
  position:relative;
  z-index:2;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  cursor:pointer;
}

.mini-flag{
  position:absolute;
  inset:5px 4px;
  border-radius:3px;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}

/* US flag */
.us-flag{
  background:
    linear-gradient(#3c3b6e,#3c3b6e) 0 0/45% 54% no-repeat,
    repeating-linear-gradient(to bottom,#b22234 0 2px,#fff 2px 4px);
}
.us-flag::after{
  content:"•••";
  position:absolute;
  left:2px;
  top:-2px;
  color:#fff;
  font-size:4px;
  letter-spacing:0;
}

/* Russian flag */
.ru-flag{
  background:
    linear-gradient(to bottom,
      #fff 0 33.333%,
      #2457c5 33.333% 66.666%,
      #d52b1e 66.666% 100%);
}

/* subtle active "slider" outline */
.language-slider-indicator{
  position:absolute;
  z-index:3;
  top:2px;
  right:2px;
  width:34px;
  height:24px;
  border-radius:999px;
  border:2px solid var(--terracotta);
  background:rgba(255,255,255,.06);
  pointer-events:none;
  transition:transform .18s ease;
}

.language-slider-track:has(#enButton.active) .language-slider-indicator{
  transform:translateX(-38px);
}

.language-slider-track:has(#ruButton.active) .language-slider-indicator{
  transform:translateX(0);
}

/* Existing top contact icons stay firmly on the far right. */
.header-socials{
  margin-left:auto !important;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* Navigation remains left-to-right immediately after DOGWOOD. */
.desktop-nav{
  margin-left:8px;
  margin-right:auto;
  gap:clamp(12px,1.35vw,21px);
  font-size:clamp(12px,.82vw,14px);
}

/* Footer remains the original intentional dark brown. */
.site-footer{
  background:var(--brown) !important;
  color:white;
}

/* ---------------------------------------------------------
   READABILITY PASS — targeted sizes only.
   No structural/background changes.
--------------------------------------------------------- */
body{
  font-size:16px;
}

.hero-copy,
.section-lead{
  font-size:16px;
  line-height:1.6;
}

.card p,
.detail-card p,
.info-panel p{
  font-size:15px;
  line-height:1.6;
}

.button{
  font-size:11px;
}

.card-link,
.price-card a{
  font-size:11px;
}

.footer-copy{
  font-size:14px;
  line-height:1.55;
}

.footer-links a{
  font-size:13px;
  line-height:1.5;
}

/* keep existing section colors exactly as supplied */
.section{background:var(--warm-white)}
.section.alt{background:var(--cream)}
.section.peach{background:var(--peach)}
.section.dark{background:var(--terracotta);color:white}
.review-section{background:var(--warm-white)}
.site-footer{background:var(--brown) !important}

/* ---------------------------------------------------------
   RESPONSIVE: preserve layout rather than shrinking text.
--------------------------------------------------------- */
@media(max-width:1240px){
  .desktop-nav{
    gap:11px;
    font-size:12px;
  }
}

@media(max-width:1120px){
  .desktop-nav{
    display:none;
  }
  .menu-button{
    display:block;
    margin-left:auto;
  }
}

@media(max-width:900px){
  .header-utility{
    min-height:38px;
    padding:5px 16px 0;
  }

  .header-main{
    min-height:62px;
    padding:3px 16px 9px;
  }

  .mobile-nav{
    top:100px;
  }

  .hero-copy,
  .section-lead{
    font-size:16px;
  }
}

@media(max-width:600px){
  .language-label{
    font-size:9px;
  }

  .language-slider-track{
    width:68px;
    height:28px;
  }

  .language-slider-indicator{
    width:30px;
    height:22px;
  }

  .language-slider-track:has(#enButton.active) .language-slider-indicator{
    transform:translateX(-34px);
  }

  .header-socials{
    gap:6px;
  }

  .social-icon{
    width:31px;
    height:31px;
  }

  .hero h1{
    font-size:clamp(52px,15vw,68px);
  }

  .hero-copy,
  .section-lead,
  .card p,
  .detail-card p{
    font-size:16px;
  }

  .button{
    font-size:12px;
  }
}


/* =========================================================
   HEADER REFINEMENT PASS
   - single-click language toggle
   - nav right aligned and more readable
   - warm site background restored
   ========================================================= */

/* Warm background in areas that do not deliberately override it. */
html,
body,
main{
  background:var(--peach);
}

.site-header,
.header-utility,
.header-main{
  background:rgba(238,217,200,.96);
}

/* Generic sections now inherit the warm page field.
   Explicitly colored sections remain unchanged. */
.section{
  background:var(--peach);
}
.section.alt{background:var(--cream);}
.section.peach{background:var(--peach);}
.section.dark{background:var(--terracotta);color:white;}
.review-section{background:var(--warm-white);}
.site-footer{background:var(--brown) !important;color:white;}

/* Main navigation belongs on the RIGHT of the logo row. */
.desktop-nav{
  margin-left:auto !important;
  margin-right:0 !important;
  justify-content:flex-end;
  gap:clamp(12px,1.25vw,20px);
  font-size:clamp(13px,.92vw,16px);
  line-height:1.25;
  font-weight:800;
}

/* Sleek, single-click language toggle based on the approved mockup. */
.language-toggle-control{
  position:relative;
  width:102px;
  height:38px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  padding:0;
  overflow:hidden;
  border-radius:999px;
  border:1px solid rgba(77,48,38,.16);
  background:#fff;
  box-shadow:0 4px 12px rgba(77,48,38,.10);
  cursor:pointer;
  transition:box-shadow .18s ease, transform .18s ease;
}

.language-toggle-control:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 15px rgba(77,48,38,.14);
}

.language-toggle-control:focus-visible{
  outline:3px solid rgba(166,84,43,.28);
  outline-offset:2px;
}

.toggle-flag{
  position:relative;
  display:grid;
  place-items:center;
  overflow:hidden;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:900;
  font-size:13px;
  letter-spacing:.03em;
  color:#fff;
}

/* American flag */
.toggle-flag-en{
  background:
    linear-gradient(#3c3b6e,#3c3b6e) 0 0/46% 54% no-repeat,
    repeating-linear-gradient(to bottom,#b22234 0 3px,#fff 3px 6px);
}

.toggle-flag-en::after{
  content:"✦✦";
  position:absolute;
  left:5px;
  top:3px;
  color:#fff;
  font-size:6px;
  letter-spacing:1px;
}

/* Russian flag */
.toggle-flag-ru{
  background:
    linear-gradient(to bottom,
      #fff 0 33.333%,
      #2457c5 33.333% 66.666%,
      #d52b1e 66.666% 100%);
}

.toggle-code{
  position:relative;
  z-index:2;
  text-shadow:0 1px 3px rgba(0,0,0,.42);
}

/* EN needs slightly darker backing where it crosses white stripes */
.toggle-flag-en .toggle-code{
  padding:2px 4px;
  border-radius:4px;
  background:rgba(35,44,94,.28);
}

.toggle-flag-ru .toggle-code{
  color:#4D3026;
  text-shadow:0 1px 2px rgba(255,255,255,.8);
  background:rgba(255,255,255,.38);
  padding:2px 4px;
  border-radius:4px;
}

.toggle-knob{
  position:absolute;
  z-index:5;
  top:3px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#fffaf4;
  border:1px solid rgba(77,48,38,.14);
  box-shadow:0 3px 9px rgba(47,37,31,.24);
  transition:left .22s ease;
  pointer-events:none;
}

/* Current RU state: knob on left, Russian flag exposed on right. */
.language-toggle-control.is-ru .toggle-knob{
  left:3px;
}

/* Current EN state: American flag exposed on left, knob on right. */
.language-toggle-control.is-en .toggle-knob{
  left:67px;
}

/* Header utility layout unchanged: language upper-left, socials upper-right. */
.header-utility{
  justify-content:space-between;
}
.header-socials{
  margin-left:auto !important;
  justify-content:flex-end;
}

/* Slightly larger click/read targets without risking overflow. */
.desktop-nav a{
  padding:5px 0;
}

/* Keep mobile readable; switch to menu before nav becomes cramped. */
@media(max-width:1280px){
  .desktop-nav{
    gap:11px;
    font-size:13px;
  }
}

@media(max-width:1160px){
  .desktop-nav{
    display:none;
  }
  .menu-button{
    display:block;
    margin-left:auto;
  }
}

@media(max-width:600px){
  .language-toggle-control{
    width:92px;
    height:36px;
  }
  .toggle-knob{
    width:30px;
    height:30px;
  }
  .language-toggle-control.is-en .toggle-knob{
    left:59px;
  }
  .toggle-flag{
    font-size:12px;
  }
}


/* =========================================================
   NAV SPREAD PASS
   - preserve working language toggle
   - restore top social contacts
   - keep DOGWOOD logo firmly left
   - put page navigation on its own full-width row
   ========================================================= */

.site-header{
  display:block !important;
  padding:0 !important;
}

/* top utility: language left, contacts right */
.header-utility{
  min-height:42px;
  padding:6px 24px 2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:0 !important;
}

.header-socials{
  display:flex !important;
  align-items:center;
  gap:10px;
  margin-left:auto !important;
}

/* dedicated logo row */
.header-brand-row{
  min-height:66px;
  padding:3px 24px 8px;
  display:flex;
  align-items:center;
}

.header-brand-row .brand{
  margin:0 !important;
}

.header-brand-row .menu-button{
  margin-left:auto;
}

/* dedicated navigation row */
.spread-nav{
  width:100%;
  margin:0 !important;
  padding:0 18px 10px;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:0 !important;
  font-size:clamp(15px,1vw,17px) !important;
  line-height:1.2;
  font-weight:800;
}

.spread-nav a{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:11px 12px !important;
  border-right:1px solid rgba(77,48,38,.20);
  white-space:nowrap;
}

.spread-nav a:last-child{
  border-right:0;
}

.spread-nav a:hover,
.spread-nav a.active{
  color:var(--terracotta);
}

/* restore warm backgrounds on pricing/reviews specifically */
.section.alt{
  background:var(--peach) !important;
}

.review-section{
  background:var(--peach) !important;
}

/* keep footer intentionally dark */
.site-footer{
  background:var(--brown) !important;
  color:white;
}

/* prevent mobile menu offset from old 2-row assumptions */
.mobile-nav{
  top:118px;
}

@media(max-width:1260px){
  .spread-nav{
    font-size:14px !important;
  }
  .spread-nav a{
    padding:10px 8px !important;
  }
}

@media(max-width:1120px){
  .spread-nav{
    display:none !important;
  }

  .menu-button{
    display:block !important;
  }

  .mobile-nav{
    top:108px;
  }
}

@media(max-width:600px){
  .header-utility{
    padding:5px 16px 2px;
  }

  .header-brand-row{
    min-height:60px;
    padding:2px 16px 8px;
  }

  .mobile-nav{
    top:102px;
  }
}


/* =========================================================
   HOMEPAGE MASTER CANDIDATE
   CSS-only logo relocation. No header DOM rewrite.
   ========================================================= */

/* Preserve the working toggle/social row. */
.site-header{
  position:sticky;
  top:0;
  display:block !important;
}

.header-utility{
  position:relative;
  min-height:62px;
  padding:8px 24px 6px 250px !important;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
}

/* Keep the original logo DOM untouched, but visually lift it
   into the upper-left utility row beside the working toggle. */
.header-brand-row{
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  position:relative;
  z-index:3;
}

.header-brand-row .brand{
  position:absolute;
  left:24px;
  top:-56px;
  margin:0 !important;
  z-index:5;
}

/* Leave the proven toggle itself completely alone. */
.language-toggle-control{
  flex:0 0 auto;
}

/* Contact icons remain hard-right. */
.header-socials{
  margin-left:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* Mobile menu stays on the right; desktop nav remains its own row. */
.header-brand-row .menu-button{
  position:absolute;
  right:24px;
  top:-52px;
}

.spread-nav{
  width:100%;
  margin:0 !important;
  padding:0 18px 10px;
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:0 !important;
}

.spread-nav a{
  flex:1 1 auto;
  border-right:1px solid rgba(77,48,38,.20);
}

.spread-nav a:last-child{
  border-right:0;
}

@media(max-width:1120px){
  .header-utility{
    padding-left:82px !important;
    padding-right:60px !important;
  }

  .header-brand-row .brand{
    left:16px;
    top:-54px;
  }

  .header-brand-row .brand-copy{
    display:none;
  }

  .spread-nav{
    display:none !important;
  }

  .header-brand-row .menu-button{
    display:block !important;
    right:16px;
  }

  .mobile-nav{
    top:62px;
  }
}

@media(max-width:600px){
  .header-utility{
    min-height:58px;
    padding-left:76px !important;
    padding-right:54px !important;
  }

  .header-brand-row .brand{
    left:12px;
    top:-51px;
  }

  .header-brand-row .menu-button{
    right:12px;
    top:-49px;
  }

  .mobile-nav{
    top:58px;
  }
}


/* =========================================================
   TOGGLE SEMANTICS FIX
   No EN/RU letters. Knob marks the language currently displayed.
   Left = English / US flag. Right = Russian flag.
   ========================================================= */

.toggle-code{
  display:none !important;
}

/* Current English: knob ON the left / US side. */
.language-toggle-control.is-en .toggle-knob{
  left:3px !important;
}

/* Current Russian: knob ON the right / Russian side. */
.language-toggle-control.is-ru .toggle-knob{
  left:67px !important;
}

@media(max-width:600px){
  .language-toggle-control.is-en .toggle-knob{
    left:3px !important;
  }

  .language-toggle-control.is-ru .toggle-knob{
    left:59px !important;
  }
}


/* =========================================================
   OFFICIAL SITE SCHEME V1
   Shared header/navigation rules for every page.
   The approved language toggle is intentionally untouched.
   ========================================================= */

/* Header presentation used site-wide */
.site-header{
  display:block !important;
  padding:0 !important;
}

.header-utility{
  position:relative;
  min-height:62px;
  padding:8px 24px 6px 250px !important;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
}

/* Existing DOGWOOD logo remains visually at far left,
   with the approved toggle immediately to its right. */
.header-brand-row{
  height:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  position:relative;
  z-index:3;
}

.header-brand-row .brand{
  position:absolute;
  left:24px;
  top:-56px;
  margin:0 !important;
  z-index:5;
}

/* Social icons remain upper-right. */
.header-socials{
  margin-left:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* Navigation is its own full-width readable row. */
.spread-nav{
  width:100%;
  margin:0 !important;
  padding:0 18px 10px;
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:0 !important;
  font-size:clamp(15px,1vw,17px) !important;
  font-weight:800;
}

.spread-nav a{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:11px 12px !important;
  border-right:1px solid rgba(77,48,38,.20);
  white-space:nowrap;
}

.spread-nav a:last-child{
  border-right:0;
}

/* Keep the intentionally dark footer everywhere. */
.site-footer{
  background:var(--brown) !important;
  color:white;
}

/* Explicitly preserve the approved warm homepage section scheme. */
.section.alt,
.review-section{
  background:var(--peach) !important;
}

/* Mobile behavior */
.header-brand-row .menu-button{
  position:absolute;
  right:24px;
  top:-52px;
}

@media(max-width:1120px){
  .header-utility{
    padding-left:82px !important;
    padding-right:60px !important;
  }

  .header-brand-row .brand{
    left:16px;
    top:-54px;
  }

  .header-brand-row .brand-copy{
    display:none;
  }

  .spread-nav{
    display:none !important;
  }

  .header-brand-row .menu-button{
    display:block !important;
    right:16px;
  }

  .mobile-nav{
    top:62px;
  }
}

@media(max-width:600px){
  .header-utility{
    min-height:58px;
    padding-left:76px !important;
    padding-right:54px !important;
  }

  .header-brand-row .brand{
    left:12px;
    top:-51px;
  }

  .header-brand-row .menu-button{
    right:12px;
    top:-49px;
  }

  .mobile-nav{
    top:58px;
  }
}


/* =========================================================
   OFFICIAL SITE SCHEME V2 — REAL PLACEHOLDER ASSETS
   Header/toggle/navigation are intentionally untouched.
   ========================================================= */

/* Slideshow now uses supplied Dogwood photographs. */
.hero-slide.photo-slide{
  background-size:cover;
  background-repeat:no-repeat;
}

.hero-photo-1{
  background-image:
    linear-gradient(90deg,
      rgba(238,217,200,.94) 0%,
      rgba(238,217,200,.78) 34%,
      rgba(238,217,200,.28) 58%,
      rgba(238,217,200,.06) 100%),
    url("../assets/images/hero-dogwood-1.jpg");
  background-position:center center;
}

.hero-photo-2{
  background-image:
    linear-gradient(90deg,
      rgba(238,217,200,.94) 0%,
      rgba(238,217,200,.78) 34%,
      rgba(238,217,200,.28) 58%,
      rgba(238,217,200,.06) 100%),
    url("../assets/images/hero-dogwood-2.jpg");
  background-position:center 35%;
}

.hero-photo-3{
  background-image:
    linear-gradient(90deg,
      rgba(238,217,200,.94) 0%,
      rgba(238,217,200,.78) 34%,
      rgba(238,217,200,.28) 58%,
      rgba(238,217,200,.06) 100%),
    url("../assets/images/hero-dogwood-3.jpg");
  background-position:center center;
}

.hero-photo-4{
  background-image:
    linear-gradient(90deg,
      rgba(238,217,200,.94) 0%,
      rgba(238,217,200,.78) 34%,
      rgba(238,217,200,.28) 58%,
      rgba(238,217,200,.06) 100%),
    url("../assets/images/hero-dogwood-4.jpg");
  background-position:center 38%;
}

.hero-photo-5{
  background-image:
    linear-gradient(90deg,
      rgba(238,217,200,.94) 0%,
      rgba(238,217,200,.78) 34%,
      rgba(238,217,200,.28) 58%,
      rgba(238,217,200,.06) 100%),
    url("../assets/images/hero-dogwood-5.jpg");
  background-position:center center;
}

/* Teen course materials on Courses & Pricing page */
.courses-materials-section{
  background:var(--warm-white);
}

.course-materials-intro{
  max-width:860px;
  margin:-8px 0 30px;
}

.course-book-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.course-book-card{
  min-width:0;
  padding:18px;
  border-radius:26px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:minmax(105px,38%) 1fr;
  gap:18px;
  align-items:center;
}

.course-book-cover{
  min-width:0;
}

.course-book-cover img{
  width:100%;
  aspect-ratio:0.70;
  object-fit:cover;
  object-position:center top;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(77,48,38,.16);
}

.course-book-copy{
  min-width:0;
}

.course-level-label{
  display:inline-block;
  margin-bottom:8px;
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.course-book-card.elementary .course-level-label{color:#178c79;}
.course-book-card.pre-intermediate .course-level-label{color:#d64331;}
.course-book-card.intermediate .course-level-label{color:#6d3a92;}

.course-book-copy h3{
  margin:0 0 10px;
  font-family:Georgia,serif;
  font-size:26px;
  line-height:1.05;
  font-weight:400;
}

.course-book-copy p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}

@media(max-width:1050px){
  .course-book-grid{
    grid-template-columns:1fr;
  }

  .course-book-card{
    grid-template-columns:150px 1fr;
  }
}

@media(max-width:600px){
  .course-book-card{
    grid-template-columns:105px 1fr;
    gap:14px;
    padding:14px;
  }

  .course-book-copy h3{
    font-size:22px;
  }

  .course-book-copy p{
    font-size:14px;
  }
}


/* =========================================================
   V3.2 CLEAN HERO
   Explicit images + one-slide viewport.
   ========================================================= */

.hero{
  position:relative !important;
  overflow:hidden !important;
}

.hero-slider{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  height:100% !important;
  overflow:hidden !important;
  display:block !important;
}

.hero-track{
  display:flex !important;
  flex-wrap:nowrap !important;
  width:100% !important;
  height:100% !important;
  min-height:660px !important;
  transform:translateX(0);
  transition:transform 850ms cubic-bezier(.65,0,.35,1) !important;
  will-change:transform;
}

.hero-slide{
  position:relative !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:100% !important;
  height:100% !important;
  min-height:660px !important;
  overflow:hidden !important;
  background:none !important;
}

.hero-slide-image{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
  opacity:1 !important;
  visibility:visible !important;
}

/* One visual wash only; keep the logo/copy side calm. */
.hero-slide::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(238,217,200,.98) 0%,
    rgba(238,217,200,.94) 34%,
    rgba(238,217,200,.46) 53%,
    rgba(238,217,200,.08) 70%,
    rgba(238,217,200,0) 100%
  );
}

.hero-overlay{
  position:relative !important;
  z-index:2 !important;
  min-height:660px !important;
}

.hero-overlay::before{
  display:none !important;
}

@media(max-width:900px){
  .hero-track,.hero-slide,.hero-overlay{min-height:600px !important;}
}

@media(max-width:600px){
  .hero-track,.hero-slide,.hero-overlay{min-height:560px !important;}
}


/* V4 course pathway */
.book-path-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.book-path-card{
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow);
}
.book-path-card img{
  width:100%;
  max-height:280px;
  object-fit:contain;
  border-radius:12px;
  margin-bottom:12px;
}
.book-path-card h3{
  font-family:Georgia,serif;
  font-size:28px;
}
.book-path-card p{
  color:var(--muted);
  line-height:1.5;
}
@media(max-width:900px){
  .book-path-grid{grid-template-columns:1fr;}
}


/* V5 course pathway labels */
.course-label{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  margin-bottom:12px;
}
.course-label.young{
  background:#EED9C8;
}
.course-label.teen{
  background:#A6532B;
  color:white;
}

.book-path-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

@media(max-width:900px){
  .book-path-grid{
    grid-template-columns:1fr;
  }
}


/* V6 unified course card style */
.book-path-grid{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:22px;
}
.book-flex{
display:flex;
align-items:center;
gap:18px;
}
.book-flex img{
width:130px;
height:180px;
object-fit:contain;
flex-shrink:0;
}
.course-label{
display:inline-block;
margin-bottom:12px;
padding:5px 12px;
border-radius:20px;
font-weight:bold;
font-size:13px;
}
@media(max-width:900px){
.book-path-grid{grid-template-columns:1fr;}
}


/* V7 unified Solutions-style course cards */
.solution-style-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:22px;
}
.course-card{
background:#fffaf5;
border:1px solid #ead4c5;
border-radius:22px;
padding:16px;
}
.course-flex{
display:flex;
align-items:center;
gap:16px;
}
.course-flex img{
width:90px;
height:135px;
object-fit:contain;
}
.course-card h3{
font-family:Georgia,serif;
font-size:24px;
margin:0 0 8px;
}
.course-label{
font-size:11px;
font-weight:bold;
border-radius:20px;
padding:4px 10px;
display:inline-block;
margin-bottom:12px;
}
@media(max-width:900px){.solution-style-grid{grid-template-columns:1fr;}}


/* V9: restore approved Solutions card appearance */
.solution-style-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.course-card{
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow);
}
.course-flex{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:18px;
  align-items:center;
}
.course-flex img{
  width:120px;
  height:175px;
  object-fit:contain;
  border-radius:10px;
}
.course-card h3{
  margin:0 0 10px;
  font-family:Georgia,serif;
  font-size:26px;
  font-weight:400;
}
.course-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}
@media(max-width:900px){
 .solution-style-grid{grid-template-columns:1fr;}
}


/* V10 rebuilt courses section */
.courses-main-title{
 text-align:center;
 font-family:Georgia,serif;
 font-size:48px;
 margin:35px 0;
}
.course-grid{
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:18px;
}
.course-card{
 background:#fffaf5;
 border:1px solid #ead4c5;
 border-radius:24px;
 padding:18px;
}
.course-card>span{
 display:inline-block;
 font-size:12px;
 font-weight:bold;
 margin-bottom:12px;
}
.course-card div{
 display:flex;
 gap:18px;
 align-items:center;
}
.course-card img{
 width:90px;
 height:140px;
 object-fit:contain;
}
.course-card h3{
 font-family:Georgia,serif;
 font-size:24px;
 margin:0 0 8px;
}
@media(max-width:900px){.course-grid{grid-template-columns:1fr;}}


/* V12 refinement pass */
.page-title,
.section-head,
.section-head > *,
.courses-main-title{
    text-align:center;
}

.course-flex img,
.book-flex img{
    object-fit:contain;
    object-position:center center;
}

.course-flex,
.book-flex{
    align-items:center;
}

.course-flex img{
    display:block;
    height:175px;
}



/* V13 course card sizing refinement */
.course-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card{
    padding: 20px;
    min-height: 210px;
}

.course-card div{
    min-width: 0;
}

.course-card img{
    width: 132px;
    height: 185px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center center;
}

.course-card h3{
    font-size: 24px;
    line-height: 1.2;
}

.course-card p{
    line-height: 1.45;
    overflow-wrap: break-word;
}

/* Preserve the manually corrected cover position */
.course-card img[src*="solutions-preint"]{
    transform: translateY(-12px);
}

/* Page titles centered */
.page-header,
.page-header h1,
.page-header p,
.section-head{
    text-align:center;
}


/* V14 cleanup fixes */
.course-card{
    overflow:hidden;
}

.course-card div{
    min-width:0;
    overflow:hidden;
}

.course-card h3,
.course-card p{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
}

.course-card img{
    transform:none;
    object-position:center center;
}

/* Correct only the pre-int cover canvas position */
.course-card img[src*="solutions-preint"]{
    transform:translateY(-5px);
}

/* Center all internal page headers */
.section-head,
.section-head h1,
.section-head h2,
.section-head p,
.page-header,
.page-header h1,
.page-header p,
.kicker{
    text-align:center;
}

/* Keep titles from pushing card width */
.course-card h3{
    font-size:22px;
    line-height:1.2;
}

.course-card p{
    font-size:15px;
    line-height:1.4;
}


/* V15: course card layout - cover left, text stacked right */
.course-card div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    align-items: start;
}

.course-card img {
    width: 130px;
    height: 180px;
    object-fit: contain;
    object-position: center center;
    grid-row: 1 / span 3;
}

.course-card h3 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.25;
    text-align: left;
}

.course-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.course-card img[src*="solutions-preint"] {
    transform: translateY(-5px);
}



/* =========================================================
   PRESENTATION CANDIDATE — PAGE TITLE SYSTEM
   Course cards intentionally untouched.
   ========================================================= */

.page-hero{
    text-align:center !important;
}

.page-hero .container{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
}

.page-hero h1,
.page-hero h2,
.page-hero p{
    width:100% !important;
    max-width:900px;
    margin-left:auto !important;
    margin-right:auto !important;
    text-align:center !important;
}

/* Hide any surviving kicker in a page hero, including variants missed by markup cleanup. */
.page-hero > .container > .kicker,
.page-hero .kicker{
    display:none !important;
}

/* About page founder surgery */
.founder-section {
  padding: 60px 0;
}

.founder-layout {
  display:flex;
  align-items:center;
  gap:40px;
}

.founder-image img {
  width:320px;
  max-width:100%;
  border-radius:24px;
}

.founder-text {
  flex:1;
}

.teachers-section {
  text-align:center;
  padding:50px 0;
}

@media(max-width:800px){
  .founder-layout{
    flex-direction:column;
  }
}


/* Our Teachers - Dogwood style */
.dogwood-teachers {
  padding: 60px 0;
  background: #eed9c8;
}

.teachers-intro {
  text-align: center;
  margin-bottom: 40px;
}

.teacher-profile {
  display: flex;
  align-items: center;
  gap: 35px;
  max-width: 900px;
  margin: 35px auto;
  padding: 28px;
  background: #fff8f2;
  border-radius: 28px;
  border: 1px solid rgba(166,83,43,.15);
}

.teacher-profile img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
}

@media(max-width:800px) {
  .teacher-profile {
    flex-direction: column;
    text-align: center;
  }
}

/* Prevent language-toggle flash during page navigation.
   The saved language is applied to <html> in the document head before first paint. */
html.english .language-toggle-control .toggle-knob{
  left:3px !important;
}
html:not(.english) .language-toggle-control .toggle-knob{
  left:67px !important;
}
@media(max-width:600px){
  html.english .language-toggle-control .toggle-knob{
    left:3px !important;
  }
  html:not(.english) .language-toggle-control .toggle-knob{
    left:59px !important;
  }
}


/* Homepage desktop section-heading alignment */
@media (min-width: 901px){
  body.home-page .section-head{
    grid-template-columns:1fr;
    gap:12px;
  }
  body.home-page .section-head > div:first-child{
    width:36.36%;
  }
  body.home-page .section-head > div:last-child{
    width:100%;
  }
  body.home-page .section-head .section-title{
    width:100%;
    text-align:center;
  }
}


/* =========================================================
   HEADER LOGO + LICENCE PASS
   - one-for-one real Dogwood logo replacement
   - licence sits immediately left of contact icons on desktop/tablet
   ========================================================= */
.header-utility{
  padding-left:100px !important;
}

.header-brand-row .brand{
  gap:0 !important;
}

.brand-logo{
  display:block;
  width:56px;
  height:56px;
  object-fit:contain;
}

.header-license{
  margin-left:auto;
  margin-right:12px;
  white-space:nowrap;
  color:var(--terracotta-dark);
  font-size:10px;
  line-height:1.15;
  font-weight:700;
  letter-spacing:.015em;
}

.header-socials{
  margin-left:0 !important;
}

@media(max-width:1120px){
  .header-utility{
    padding-left:82px !important;
  }
  .brand-logo{
    width:56px;
    height:56px;
  }
}

@media(max-width:600px){
  .header-utility{
    padding-left:76px !important;
  }
  .brand-logo{
    width:52px;
    height:52px;
  }
  .header-license{
    display:none;
  }
}

/* Keep the merged teacher section clear of the sticky header when reached by an old Teachers link. */
#teachers{
  scroll-margin-top: 150px;
}

/* About page teachers: two-column desktop layout */
.teachers-grid {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

.teachers-grid .teacher-profile {
  max-width:none;
  margin:0;
  min-width:0;
  gap:24px;
}

.teachers-grid .teacher-profile img {
  width:200px;
  height:200px;
  flex:0 0 200px;
}

.teachers-grid .teacher-profile:last-child:nth-child(odd) {
  grid-column:1 / -1;
  width:calc((100% - 24px) / 2);
  justify-self:center;
}

@media(max-width:1000px) {
  .teachers-grid .teacher-profile {
    flex-direction:column;
    text-align:center;
  }
}

@media(max-width:800px) {
  .teachers-grid {
    grid-template-columns:1fr;
    padding:0 20px;
  }

  .teachers-grid .teacher-profile:last-child:nth-child(odd) {
    grid-column:auto;
    width:auto;
    justify-self:stretch;
  }
}


/* =========================================================
   ABOUT DOGWOOD ALIGNMENT PASS
   Keep the page visually contained on desktop without making
   it feel narrow. All major About content shares one axis.
   ========================================================= */
@media (min-width:1101px){
  body.about-page .page-hero .container,
  body.about-page .founder-layout,
  body.about-page .section > .container,
  body.about-page .teachers-intro,
  body.about-page .teachers-grid{
    width:min(84%, 1180px);
    max-width:1180px;
    margin-left:auto;
    margin-right:auto;
  }

  body.about-page .teachers-grid{
    padding-left:0;
    padding-right:0;
  }
}

/* Preserve the existing comfortable tablet/mobile gutters rather than
   forcing the desktop percentage onto smaller screens. */
@media (max-width:1100px){
  body.about-page .founder-layout,
  body.about-page .teachers-intro{
    width:calc(100% - 40px);
    margin-left:auto;
    margin-right:auto;
  }
}


/* =========================================================
   COURSES + PRICING CONSOLIDATION
   Prices now live on each course card; individual lessons
   remain separate. Homepage pricing is intentionally untouched.
   ========================================================= */
.pricing-course-card{
  display:flex;
  flex-direction:column;
}

.pricing-course-card > div{
  flex:1 1 auto;
}

.course-price-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:16px;
}

.course-price-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 11px;
  border-radius:9px;
  background:var(--brown);
  color:var(--warm-white);
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}

.individual-pricing-section{
  padding-top:10px;
}

.individual-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:20px 24px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--cream);
  box-shadow:var(--shadow);
}

.individual-price-label h2{
  margin:0;
  font-family:Georgia,serif;
  font-size:28px;
  font-weight:400;
}

.individual-price-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.individual-pricing-section .license{
  margin-top:22px;
}

@media(max-width:700px){
  .individual-price-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .individual-price-tags{
    justify-content:flex-start;
  }
}


/* =========================================================
   HERO CAROUSEL A/B TEST — COMMON SOFT WASH
   The readability fade is fixed to the viewport instead of
   repeated on each moving photo, removing the visible seam.
   ========================================================= */
.hero-slide::after{
  display:none !important;
}
.hero-slider::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(238,217,200,.98) 0%,
    rgba(238,217,200,.96) 22%,
    rgba(238,217,200,.90) 34%,
    rgba(238,217,200,.78) 44%,
    rgba(238,217,200,.58) 54%,
    rgba(238,217,200,.36) 64%,
    rgba(238,217,200,.18) 73%,
    rgba(238,217,200,.07) 82%,
    rgba(238,217,200,0) 90%
  );
}

/* Variant A: photos occupy one position and crossfade. */
.hero-track{
  position:relative !important;
  display:block !important;
  transform:none !important;
  transition:none !important;
}
.hero-slide{
  position:absolute !important;
  inset:0 !important;
  opacity:0;
  overflow:hidden !important;
  transition:opacity 1500ms ease-in-out !important;
  will-change:opacity;
}
.hero-slide:first-child{opacity:1;}
.hero-track.carousel-ready .hero-slide:first-child{opacity:0;}
.hero-track.carousel-ready .hero-slide.is-active{opacity:1;}
.hero-slider::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
  background:linear-gradient(
    270deg,
    rgba(238,217,200,.28) 0%,
    rgba(238,217,200,.12) 3.5%,
    rgba(238,217,200,0) 10%
  );
}
@media (prefers-reduced-motion: reduce){
  .hero-slide{transition:none !important;}
}


/* =========================================================
   FULL-CARD LINKS — homepage + course placement flow
   Visual layout stays unchanged; the complete card becomes
   the click/tap target for easier desktop and mobile use.
   ========================================================= */
.full-card-link{
  cursor:pointer;
}

.full-card-link:focus-visible{
  outline:3px solid var(--coral);
  outline-offset:4px;
}

.card.full-card-link .card-link{
  display:block;
}

.price-card.full-card-link .price-card-cta{
  display:block;
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.28);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

@media (hover:hover) and (pointer:fine){
  .card.full-card-link,
  .price-card.full-card-link,
  .course-card.full-card-link{
    transition:transform .18s ease, box-shadow .18s ease;
  }

  .card.full-card-link:hover,
  .course-card.full-card-link:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 52px rgba(80,45,30,.13);
  }

  .price-card.full-card-link:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 52px rgba(80,45,30,.16);
  }
}

/* =========================================================
   MOBILE HOMEPAGE LANDING PASS
   Desktop homepage stays unchanged. On phones, the homepage
   becomes a short enticement page; deeper pages hold the detail.
   ========================================================= */
.mobile-home-section{
  display:none;
}

@media(max-width:700px){
  /* Hide the long desktop homepage sections only on phones. */
  body.home-page main > .section:not(.mobile-home-section){
    display:none;
  }

  body.home-page .mobile-home-section{
    display:block;
  }

  /* Compact hero: same crossfade, less vertical commitment. */
  body.home-page .hero,
  body.home-page .hero-track,
  body.home-page .hero-slide,
  body.home-page .hero-overlay{
    min-height:430px !important;
  }

  body.home-page .hero-overlay .container{
    width:calc(100% - 32px);
  }

  body.home-page .hero-copy-block{
    max-width:100%;
    padding:38px 0 58px;
  }

  body.home-page .hero h1{
    margin-top:0;
    font-size:clamp(44px,14vw,58px);
    line-height:.9;
  }

  body.home-page .hero-subbrand{
    margin-top:10px;
    font-size:10px;
    letter-spacing:.18em;
  }

  body.home-page .tagline{
    margin-top:18px;
    max-width:330px;
    font-size:clamp(20px,6.5vw,25px);
  }

  body.home-page .hero-copy{
    margin-top:12px;
    max-width:300px;
    font-size:14px;
    line-height:1.45;
  }

  body.home-page .hero .actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    width:min(285px,100%);
    margin-top:20px;
  }

  body.home-page .hero .button{
    min-height:44px;
    padding:11px 17px;
  }

  /* Header already carries phone/social access on mobile. */
  body.home-page .hero-phone,
  body.home-page .hero-contact-socials,
  body.home-page .hero-dogwood-flower{
    display:none !important;
  }

  body.home-page .hero-dots{
    bottom:13px;
  }

  /* Show more of the photo on the narrow hero without sacrificing copy contrast. */
  body.home-page .hero-slider::before{
    background:linear-gradient(
      90deg,
      rgba(238,217,200,.98) 0%,
      rgba(238,217,200,.94) 34%,
      rgba(238,217,200,.82) 51%,
      rgba(238,217,200,.58) 68%,
      rgba(238,217,200,.25) 84%,
      rgba(238,217,200,.08) 100%
    );
  }

  body.home-page .hero-slider::after{
    background:linear-gradient(270deg,rgba(238,217,200,.14) 0%,rgba(238,217,200,0) 10%);
  }

  /* Mobile landing sections */
  body.home-page .mobile-home-section{
    padding:38px 0;
    background:var(--warm-white);
  }

  body.home-page .mobile-home-section:nth-of-type(even){
    background:var(--peach);
  }

  body.home-page .mobile-home-section .container{
    width:calc(100% - 32px);
  }

  .mobile-home-title{
    margin:7px 0 0;
    font-family:Georgia,serif;
    font-size:clamp(30px,9vw,39px);
    line-height:1;
    font-weight:400;
    letter-spacing:-.035em;
  }

  .mobile-home-title em{
    color:var(--terracotta);
    font-style:italic;
  }

  .mobile-home-links{
    margin-top:22px;
    border-top:1px solid var(--line);
  }

  .mobile-home-row{
    min-height:82px;
    display:grid;
    grid-template-columns:30px minmax(0,1fr) 22px;
    gap:11px;
    align-items:center;
    padding:15px 2px;
    border-bottom:1px solid var(--line);
  }

  .mobile-home-row-num{
    align-self:start;
    padding-top:3px;
    color:var(--terracotta);
    font-size:10px;
    font-weight:900;
  }

  .mobile-home-row-copy{
    min-width:0;
    display:grid;
    gap:3px;
  }

  .mobile-home-row-copy strong{
    font-family:Georgia,serif;
    font-size:20px;
    font-weight:400;
    line-height:1.1;
  }

  .mobile-home-row-copy small{
    color:var(--muted);
    font-size:13px;
    line-height:1.4;
  }

  .mobile-home-arrow{
    color:var(--terracotta);
    font-size:18px;
    text-align:right;
  }

  .mobile-home-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
  }

  .mobile-text-link{
    flex:0 0 auto;
    padding-bottom:4px;
    color:var(--terracotta);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
  }

  .mobile-price-summary{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1px;
    overflow:hidden;
    margin-top:22px;
    border-radius:20px;
    background:rgba(255,255,255,.22);
    box-shadow:var(--shadow);
  }

  .mobile-price-item{
    min-width:0;
    padding:15px 8px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:var(--terracotta);
    color:white;
  }

  .mobile-price-item small{
    min-height:22px;
    font-size:8px;
    line-height:1.15;
    font-weight:900;
    letter-spacing:.06em;
  }

  .mobile-price-item strong{
    margin-top:7px;
    font-family:Georgia,serif;
    font-size:19px;
    line-height:1;
    font-weight:400;
  }

  .mobile-price-item strong span{
    font-family:Arial,Helvetica,sans-serif;
    font-size:9px;
    font-weight:700;
  }

  .mobile-price-item b{
    margin-top:7px;
    font-family:Georgia,serif;
    font-size:19px;
    font-weight:400;
  }

  .mobile-license-note{
    display:grid;
    gap:3px;
    margin-top:15px;
    color:var(--muted);
    font-size:10px;
    line-height:1.35;
  }

  .mobile-license-note strong{
    color:var(--brown);
  }

  body.home-page .mobile-home-cta{
    padding-top:42px;
    padding-bottom:44px;
    background:var(--warm-white);
  }

  .mobile-home-copy{
    margin:15px 0 0;
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
  }

  .mobile-home-actions{
    display:grid;
    gap:12px;
    margin-top:22px;
  }

  .mobile-home-actions .button{
    width:100%;
    min-height:48px;
  }

  .mobile-phone-link{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--terracotta-dark);
    font-weight:800;
  }

  /* The mobile homepage already ends with a strong CTA, so avoid a duplicate floater. */
  body.home-page .floating-book{
    display:none !important;
  }

  /* Compact homepage footer; full site navigation remains in the hamburger menu. */
  body.home-page .site-footer{
    padding:30px 0 18px;
  }

  body.home-page .footer-grid{
    grid-template-columns:1fr;
    gap:18px;
    text-align:center;
    align-items:center;
  }

  body.home-page .footer-copy{
    max-width:300px;
    margin:7px auto 0;
    font-size:12px;
  }

  body.home-page .footer-phone{
    font-size:22px;
  }

  body.home-page .footer-grid .vk{
    justify-self:center;
  }

  body.home-page .footer-utilities{
    display:none;
  }

  body.home-page .footer-bottom{
    align-items:center;
    text-align:center;
    gap:5px;
    margin-top:24px;
  }
}

@media(max-width:700px){
  body.home-page .mobile-home-essentials{background:var(--warm-white) !important;}
  body.home-page .mobile-home-pricing{background:var(--peach) !important;}
  body.home-page .mobile-home-cta{background:var(--warm-white) !important;}
}

/* =========================================================
   MOBILE / PAGE SURFACE REFINEMENT V2
   - keep page fields consistently Dogwood peach
   - preserve cards, controls, intentional accent sections, footer
   - force Courses & Pricing to a true one-card-per-row mobile flow
   ========================================================= */

/* Large page surfaces should read as one continuous Dogwood field rather
   than alternating with white/transparent bands. Deliberate cards and
   controls keep their own fills, and the footer remains dark. */
main,
.page-hero,
.section,
.section.alt,
.section.peach,
.review-section,
.founder-section,
.dogwood-teachers,
.courses-materials-section,
body.home-page .mobile-home-section,
body.home-page .mobile-home-section:nth-of-type(even),
body.home-page .mobile-home-cta{
  background:var(--peach) !important;
}

/* Preserve intentionally non-peach major surfaces. */
.section.dark{
  background:var(--terracotta) !important;
  color:white;
}
.site-footer{
  background:var(--brown) !important;
  color:white;
}

/* Courses: later desktop rules used to override the earlier responsive
   declaration. Put the mobile layout last so it wins predictably. */
@media(max-width:900px){
  .course-grid{
    grid-template-columns:minmax(0,1fr) !important;
    gap:18px;
  }

  .course-card{
    width:100%;
    min-width:0;
    min-height:0;
  }
}

@media(max-width:600px){
  .course-pathway .container{
    width:calc(100% - 28px);
  }

  .courses-main-title{
    margin:24px 0 26px;
    font-size:clamp(34px,10vw,44px);
  }

  .course-grid{
    gap:15px;
  }

  .course-card{
    padding:16px;
    border-radius:20px;
  }

  /* Keep the compact cover-left/text-right character, but size it for
     a phone rather than squeezing the desktop proportions. */
  .course-card div{
    grid-template-columns:96px minmax(0,1fr);
    gap:14px;
  }

  .course-card img{
    width:96px;
    height:138px;
  }

  .course-card h3{
    font-size:21px;
    line-height:1.15;
    overflow-wrap:normal;
  }

  .course-card p{
    font-size:14px;
    line-height:1.4;
  }

  .course-price-tags{
    gap:7px;
    padding-top:13px;
  }

  .course-price-tag{
    min-height:30px;
    padding:5px 9px;
    font-size:11px;
  }
}


/* =========================================================
   MOBILE REFINEMENT V3
   - keep the homepage hero copy compact in the upper-left
   - move smaller hero CTAs lower so the carousel stays visible
   - keep long Russian Promotional titles inside the viewport
   ========================================================= */
@media(max-width:700px){
  body.home-page .hero-copy-block{
    position:relative;
    width:62%;
    max-width:220px;
    min-height:430px;
    padding:24px 0 0;
  }

  body.home-page .hero h1{
    font-size:clamp(36px,11vw,45px);
    line-height:.9;
  }

  body.home-page .hero-subbrand{
    margin-top:7px;
    font-size:8px;
    letter-spacing:.16em;
  }

  body.home-page .tagline{
    margin-top:13px;
    max-width:205px;
    font-size:clamp(16px,5vw,19px);
    line-height:1.08;
  }

  body.home-page .hero-copy{
    margin-top:9px;
    max-width:205px;
    font-size:12px;
    line-height:1.35;
  }

  body.home-page .hero .actions{
    position:absolute;
    left:0;
    bottom:45px;
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    width:min(170px,100%);
    margin-top:0;
  }

  body.home-page .hero .button{
    min-height:34px;
    padding:7px 11px;
    font-size:9px;
    line-height:1.15;
  }

  /* Let the photograph reclaim more of the mobile hero while retaining
     enough contrast behind the smaller upper-left copy block. */
  body.home-page .hero-slider::before{
    background:linear-gradient(
      90deg,
      rgba(238,217,200,.97) 0%,
      rgba(238,217,200,.91) 24%,
      rgba(238,217,200,.72) 40%,
      rgba(238,217,200,.40) 56%,
      rgba(238,217,200,.14) 70%,
      rgba(238,217,200,0) 84%
    );
  }
}

@media(max-width:600px){
  body.promotional-page .page-hero h1{
    max-width:100% !important;
    font-size:clamp(36px,11vw,46px);
    line-height:1;
    overflow-wrap:break-word;
    word-break:normal;
    hyphens:auto;
  }
}

/* Resources: school textbook support (Spotlight / Starlight) */
.textbook-support{
  background:var(--warm-white);
  border-radius:26px;
  padding:32px;
  box-shadow:0 16px 36px rgba(84,47,34,.08);
}
.textbook-support-heading{
  max-width:900px;
  margin-bottom:24px;
}
.textbook-support-heading .kicker{
  margin:0 0 8px;
  color:var(--terracotta);
}
.textbook-support-heading h2{
  margin:0 0 12px;
}
.textbook-support-heading > p:last-child{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}
.textbook-support-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.textbook-support-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(166,83,43,.14);
  border-radius:22px;
  background:rgba(255,255,255,.46);
}
.textbook-support-card img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
}
.textbook-support-card > div{
  padding:20px 22px 22px;
}
.textbook-series-label{
  margin:0 0 6px;
  color:var(--terracotta);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
}
.textbook-support-card h3{
  margin:0 0 10px;
  font-size:28px;
}
.textbook-support-card p:last-child{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}
@media (max-width:800px){
  .textbook-support{
    padding:22px 18px;
    border-radius:20px;
  }
  .textbook-support-grid{
    grid-template-columns:1fr;
  }
  .textbook-support-card h3{
    font-size:24px;
  }
}

/* =========================================================
   COURSES DESKTOP GROUPING — Reading / Cookie / Super Minds
   Two wide-card rows followed by two three-card rows.
   Mobile remains one card per row.
   ========================================================= */
@media (min-width:901px){
  .course-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:24px;
  }

  .course-card-wide{
    grid-column:span 3;
  }

  .course-card-third{
    grid-column:span 2;
  }
}

/* The user-supplied Dogwood Phonics cover has a taller portrait canvas;
   keep it visually balanced with the other coursebook covers. */
.reading-course-card img{
  object-fit:contain;
  object-position:center center;
}

/* =========================================================
   COMPACT PAGE RHYTHM
   Public-facing pages only; legal/document pages intentionally excluded.
   ========================================================= */

/* Internal page titles: keep the same typography, but bring the title and
   first content section much closer together. */
body.compact-public-page .page-hero{
  padding:46px 0 24px !important;
}

body.compact-public-page .page-hero h1{
  margin-top:0 !important;
}

body.compact-public-page .page-hero p{
  margin:12px auto 0 !important;
}

/* Main public-page sections use a tighter vertical rhythm. */
body.compact-public-page main > .section{
  position:relative;
  padding:44px 0 !important;
}

body.compact-public-page main > .founder-section{
  position:relative;
  padding:42px 0 !important;
}

body.compact-public-page main > .dogwood-teachers{
  position:relative;
  padding:44px 0 !important;
}

body.compact-public-page .section-head{
  margin-bottom:22px;
}

body.compact-public-page .courses-main-title{
  margin:8px 0 26px;
}

body.compact-public-page .teachers-intro{
  margin-bottom:24px;
}

body.compact-public-page .individual-pricing-section{
  padding-top:34px !important;
  padding-bottom:38px !important;
}

/* Resources contains a substantial Textbook Support sub-section inside its
   main section, so keep a modest transition gap. */
body.compact-public-page .textbook-support{
  position:relative;
  margin-top:38px;
}

/* The desktop homepage keeps all approved content, but loses some of the
   oversized vertical padding. Mobile already has a deliberately condensed
   landing-page rhythm. */
@media(min-width:701px){
  body.home-page main > .section{
    position:relative;
    padding:64px 0 !important;
  }

  body.home-page .section-head{
    margin-bottom:26px;
  }
}

@media(max-width:700px){
  body.compact-public-page .page-hero{
    padding:30px 0 18px !important;
  }

  body.compact-public-page main > .section,
  body.compact-public-page main > .founder-section,
  body.compact-public-page main > .dogwood-teachers{
    padding-top:34px !important;
    padding-bottom:34px !important;
  }

  body.compact-public-page .section-head{
    margin-bottom:18px;
  }

  body.compact-public-page .courses-main-title{
    margin:4px 0 20px;
  }

  body.compact-public-page .teachers-intro{
    margin-bottom:18px;
  }

  body.compact-public-page .textbook-support{
    margin-top:30px;
  }
}


/* =========================================================
   REAL 2GIS REVIEW CARDS
   - preserves the existing scrolling carousel
   - reviewer images are exact crops from the supplied 2GIS screenshot
   - review wording/details are transposed verbatim from that screenshot
   ========================================================= */
.review-track{
  align-items:stretch;
}

.review-card.real-review-card{
  min-height:520px;
  padding:28px;
}

.reviewer-head{
  display:flex;
  align-items:center;
  gap:12px;
}

.reviewer-avatar{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  object-fit:cover;
  image-rendering:auto;
}

.reviewer-identity{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.reviewer-identity strong{
  color:var(--brown);
  font-size:14px;
  line-height:1.15;
}

.reviewer-identity span{
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
}

.review-rating-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:15px;
}

.review-date{
  color:var(--muted);
  font-size:11px;
  line-height:1.2;
}

.review-card.real-review-card blockquote{
  margin:20px 0 0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.52;
  color:var(--brown);
}

.review-source-link{
  min-width:150px;
  justify-content:center;
}

@media(max-width:900px){
  .review-card.real-review-card{
    min-height:540px;
  }
}

@media(max-width:600px){
  .review-card.real-review-card{
    min-height:0;
  }
}


/* Legal-document copy deterrence */
body.legal-protected-page .legal-document{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}

.legal-copy-warning{
  position:fixed;
  top:14px;
  left:50%;
  z-index:9999;
  max-width:calc(100% - 28px);
  padding:10px 16px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:var(--brown);
  color:#fff;
  box-shadow:0 10px 28px rgba(77,48,38,.22);
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  text-align:center;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-12px);
  transition:opacity .16s ease, transform .16s ease;
}

.legal-copy-warning.is-visible{
  opacity:1;
  transform:translate(-50%,0);
}


/* Organization information: official top-level sections */
.organization-sections-section{
  padding-top:24px;
}
.organization-sections-grid{
  display:grid;
  gap:14px;
}
.organization-section-card{
  min-height:84px;
  padding:24px 28px;
  display:flex;
  align-items:center;
  border-radius:22px;
  background:var(--cream);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.organization-section-card h2{
  margin:0;
  font-family:Georgia,serif;
  font-size:clamp(20px,2vw,28px);
  line-height:1.2;
  font-weight:400;
}
@media (max-width:700px){
  .organization-sections-section{padding-top:14px;}
  .organization-sections-grid{gap:10px;}
  .organization-section-card{
    min-height:0;
    padding:19px 20px;
    border-radius:18px;
  }
  .organization-section-card h2{
    font-size:19px;
    overflow-wrap:anywhere;
  }
}


/* =========================================================
   ORGANIZATION INFORMATION — populated legal sections
   ========================================================= */
.organization-section-card.is-link{
  justify-content:space-between;
  gap:18px;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.organization-section-card.is-link:hover{
  transform:translateY(-2px);
  border-color:rgba(166,84,43,.34);
  box-shadow:0 20px 48px rgba(80,45,30,.13);
}
.organization-section-card.is-empty{
  box-shadow:none;
  opacity:.72;
}
.organization-card-arrow{
  flex:0 0 auto;
  color:var(--terracotta);
  font-weight:800;
  font-size:18px;
}
.organization-page-hero{
  padding:44px 0 22px;
}
.organization-content-section{
  padding:24px 0 58px;
}
.organization-document{
  max-width:1040px;
}
.organization-document > :first-child{margin-top:0}
.organization-document > :last-child{margin-bottom:0}
.official-copy > p{
  margin:0 0 18px;
}
.official-info-split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:30px;
}
.official-info-panel{
  padding:22px;
  border-radius:20px;
  background:var(--warm-white);
  border:1px solid var(--line);
}
.official-info-panel h2{
  margin:0 0 14px;
  font-size:24px;
}
.schedule-list{
  display:grid;
  gap:8px;
}
.schedule-list div{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}
.schedule-list div:last-child{border-bottom:0;padding-bottom:0}
.organization-file-action{margin-top:26px}

.organization-subcards{
  display:grid;
  gap:12px;
}
.organization-subcard{
  min-height:70px;
  padding:19px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-radius:18px;
  background:var(--warm-white);
  border:1px solid var(--line);
  font-weight:800;
  line-height:1.25;
  transition:transform .16s ease,border-color .16s ease;
}
.organization-subcard:hover{
  transform:translateY(-1px);
  border-color:rgba(166,84,43,.38);
}
.organization-subcard span:last-child{color:var(--terracotta);font-size:17px}

.organization-viewer{display:grid;gap:22px}
.organization-loading{color:var(--muted)}
.document-missing{
  display:grid;
  gap:8px;
  padding:22px;
  border-radius:18px;
  background:var(--warm-white);
  border:1px dashed rgba(166,84,43,.35);
}
.document-missing span{
  color:var(--muted);
  overflow-wrap:anywhere;
}
.embedded-document-block{
  display:grid;
  gap:12px;
}
.embedded-document-block h2{
  margin:0;
  font-size:21px;
}
.pdf-frame{
  width:100%;
  height:760px;
  border:1px solid var(--line);
  border-radius:16px;
  background:white;
}
.organization-source-image{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid var(--line);
}

/* Structure chart: same wording as the supplied source, restyled only. */
.org-chart{
  max-width:920px;
  margin:0 auto 34px;
  display:grid;
  justify-items:center;
  gap:30px;
}
.org-chart-box{
  min-width:210px;
  min-height:78px;
  padding:16px 18px;
  display:grid;
  place-items:center;
  text-align:center;
  border:2px solid var(--terracotta);
  border-radius:18px;
  background:linear-gradient(180deg,#f6dfb8,#f0cf98);
  color:var(--brown);
  font-weight:900;
  line-height:1.25;
}
.org-chart-owner{position:relative}
.org-chart-main-branches{
  width:100%;
  display:grid;
  grid-template-columns:1.15fr .9fr .9fr;
  gap:26px;
  align-items:start;
  position:relative;
}
.org-chart-main-branches::before{
  content:"";
  position:absolute;
  top:-16px;
  left:16.5%;
  right:16.5%;
  border-top:3px solid var(--terracotta);
}
.org-chart-main-branches::after{
  content:"";
  position:absolute;
  top:-31px;
  left:50%;
  height:16px;
  border-left:3px solid var(--terracotta);
}
.org-chart-branch{
  display:grid;
  justify-items:center;
  gap:28px;
  position:relative;
}
.org-chart-branch > .org-chart-box::before{
  content:"";
  position:absolute;
  top:-16px;
  height:16px;
  border-left:3px solid var(--terracotta);
}
.org-chart-branch > .org-chart-box{position:relative;width:100%}
.org-chart-senior{gap:28px}
.org-chart-children{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:18px;
  position:relative;
}
.org-chart-children::before{
  content:"";
  position:absolute;
  top:-14px;
  left:25%;
  right:25%;
  border-top:3px solid var(--terracotta);
}
.org-chart-children::after{
  content:"";
  position:absolute;
  top:-28px;
  left:50%;
  height:14px;
  border-left:3px solid var(--terracotta);
}
.org-chart-children .org-chart-box{min-width:0;position:relative;font-size:14px}
.org-chart-children .org-chart-box::before{
  content:"";
  position:absolute;
  top:-14px;
  height:14px;
  border-left:3px solid var(--terracotta);
}
.organization-role-list{
  display:grid;
  gap:12px;
}
.organization-role-list > div{
  display:grid;
  grid-template-columns:minmax(180px,260px) 1fr;
  gap:24px;
  padding:16px 18px;
  border-radius:16px;
  background:var(--warm-white);
  border:1px solid var(--line);
}
.organization-role-list strong{color:var(--terracotta-dark)}

.staff-leadership-block{
  padding:22px;
  border-radius:20px;
  background:var(--warm-white);
  border:1px solid var(--line);
  margin-bottom:30px;
}
.staff-leadership-block h2{margin-top:0}
.organization-section-heading{
  margin:0 0 18px;
  font-family:Georgia,serif;
  font-weight:400;
  font-size:28px;
}
.organization-teacher-list{
  display:grid;
  gap:16px;
}
.organization-teacher-entry{
  padding:22px;
  border-radius:20px;
  background:var(--warm-white);
  border:1px solid var(--line);
}
.organization-teacher-entry h3{
  margin:0 0 12px;
  font-family:Georgia,serif;
  font-size:25px;
  font-weight:400;
}
.organization-teacher-entry p{margin:0 0 10px}
.organization-teacher-entry p:last-child{margin-bottom:0}

.facility-list{
  display:grid;
  gap:10px;
}
.facility-list > div{
  display:grid;
  grid-template-columns:1fr auto;
  gap:22px;
  align-items:center;
  padding:16px 18px;
  border-radius:16px;
  background:var(--warm-white);
  border:1px solid var(--line);
}
.facility-list strong{
  min-width:40px;
  text-align:center;
  color:var(--terracotta-dark);
  font-size:20px;
}
.student-count-block{
  display:grid;
  gap:16px;
}
.student-count-block p{
  margin:0;
  padding:20px;
  border-radius:18px;
  background:var(--warm-white);
  border:1px solid var(--line);
  font-size:17px;
}
.student-count-block strong{
  color:var(--terracotta-dark);
  font-size:22px;
}

@media(max-width:800px){
  .official-info-split{grid-template-columns:1fr}
  .org-chart-main-branches{grid-template-columns:1fr;gap:18px}
  .org-chart-main-branches::before,
  .org-chart-main-branches::after,
  .org-chart-branch > .org-chart-box::before,
  .org-chart-children::before,
  .org-chart-children::after,
  .org-chart-children .org-chart-box::before{display:none}
  .org-chart-children{grid-template-columns:1fr;gap:12px}
  .org-chart-box{width:100%;min-width:0}
  .organization-role-list > div{grid-template-columns:1fr;gap:6px}
  .pdf-frame{height:620px}
}
@media(max-width:600px){
  .organization-content-section{padding-top:14px}
  .organization-document{padding:20px}
  .organization-subcard{padding:16px 17px;font-size:13px}
  .pdf-frame{height:520px}
  .facility-list > div{grid-template-columns:1fr auto}
}


/* Organization/legal subpages: compact headings and image-based structure chart. */
.organization-page-hero h1{
  font-size:clamp(30px,4vw,52px) !important;
  line-height:1.05 !important;
  max-width:1180px;
  margin:0 auto !important;
  text-align:center;
  text-wrap:balance;
}
.organization-chart-image-wrap{
  width:100%;
  max-width:1120px;
  margin:0 auto 34px;
}
.organization-chart-image{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
}
@media (max-width:700px){
  .organization-page-hero h1{
    font-size:clamp(26px,8vw,38px) !important;
    line-height:1.08 !important;
  }
  .organization-chart-image-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .organization-chart-image{
    min-width:760px;
  }
}


/* 2026-10 rebuild: course-family cards + in-page course modal */
.course-page-hero p{max-width:760px;margin:12px auto 0;color:var(--muted);text-align:center;}
.course-family-section .courses-main-title{text-align:center;margin-bottom:26px;}
.course-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;}
.course-family-card{appearance:none;border:1px solid rgba(120,72,42,.14);background:#fff;border-radius:24px;padding:0;overflow:hidden;box-shadow:0 12px 30px rgba(81,48,31,.08);text-align:left;cursor:pointer;display:flex;flex-direction:column;min-height:100%;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;color:inherit;font:inherit;}
.course-family-card:hover,.course-family-card:focus-visible{transform:translateY(-4px);box-shadow:0 18px 36px rgba(81,48,31,.14);border-color:rgba(191,88,43,.36);outline:none;}
.course-family-card>img,.course-family-image-pair{width:100%;height:220px;display:block;background:#f8eee7;object-fit:cover;}
.course-family-card>img{object-fit:cover;}
.course-family-card.individual-family-card>img{object-fit:contain;padding:36px;background:#fff7f1;}
.course-family-image-pair{display:grid;grid-template-columns:1fr 1fr;gap:0;overflow:hidden;}
.course-family-image-pair img{width:100%;height:100%;object-fit:cover;}
.course-family-copy{display:grid;gap:4px;padding:18px 20px 8px;}
.course-family-copy strong{font-size:1.32rem;color:var(--text);}
.course-family-copy small{font-size:.96rem;color:var(--muted);}
.course-family-action{margin-top:auto;padding:10px 20px 20px;color:#b75327;font-weight:800;}
.course-license-strip{margin-top:28px;}
.course-modal{position:fixed;inset:0;z-index:3000;display:none;}
.course-modal.is-open{display:block;}
.course-modal-backdrop{position:absolute;inset:0;background:rgba(34,25,20,.62);backdrop-filter:blur(2px);}
.course-modal-dialog{position:relative;z-index:1;width:min(1040px,calc(100% - 28px));max-height:calc(100vh - 40px);overflow:auto;margin:20px auto;background:#fffaf6;border-radius:26px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.28);}
.course-modal-close{position:sticky;top:0;float:right;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.12);font-size:28px;line-height:1;cursor:pointer;color:#4b3127;}
.course-modal-content{display:none;clear:both;padding-top:4px;}
.course-modal-content.is-active{display:block;}
.course-modal-content h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:0 56px 16px 0;color:#713c2b;}
.course-modal-content h2 small{font-size:.5em;color:var(--muted);font-weight:700;}
.course-modal-content>p,.course-rich-copy{font-size:1.02rem;line-height:1.72;color:#493a33;}
.course-rich-copy ul{padding-left:1.35rem;}
.course-detail-meta{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 18px;}
.course-detail-meta>span{display:inline-flex;align-items:center;background:#f3e4d8;border-radius:999px;padding:7px 11px;font-weight:800;color:#7b452f;font-size:.9rem;}
.course-level-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0;}
.course-level-grid.three-levels{grid-template-columns:repeat(3,minmax(0,1fr));}
.course-level-card{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center;background:#fff;border:1px solid rgba(120,72,42,.12);border-radius:18px;padding:14px;}
.course-level-card img{width:120px;height:150px;object-fit:contain;background:#f7efe9;border-radius:12px;}
.course-level-card h3{margin:0 0 8px;font-size:1.15rem;}
.roadmap-toggle{border:0;background:transparent;color:#b75327;font:inherit;font-weight:800;padding:4px 0;cursor:pointer;}
.course-roadmap{margin:14px 0 22px;padding:20px;border-radius:18px;background:#fff;border:1px solid rgba(120,72,42,.15);}
.course-roadmap[hidden]{display:none;}
.roadmap-list{padding-left:1.35rem;line-height:1.55;}
.roadmap-list li+li{margin-top:8px;}
body.modal-open{overflow:hidden;}
.form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;}
.contact-form button[disabled]{opacity:.6;cursor:wait;}
.contract-readable{line-height:1.65;}
.contract-readable h2{font-size:1.7rem;margin:0 0 18px;}
.contract-readable h3{font-size:1.22rem;margin:28px 0 12px;color:#713c2b;}
.contract-readable p{margin:0 0 12px;}
.contract-readable ul{margin:0 0 16px;padding-left:1.4rem;}
.financial-source-copy{max-width:900px;margin-inline:auto;}
.document-source-note{margin-top:26px!important;color:var(--muted);font-size:.92rem;}
@media(max-width:900px){.course-family-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.course-level-grid.three-levels{grid-template-columns:1fr;}.course-modal-dialog{padding:24px;}.course-level-card{grid-template-columns:100px 1fr}.course-level-card img{width:100px;height:130px}}
@media(max-width:620px){.course-family-grid{grid-template-columns:1fr;}.course-family-card>img,.course-family-image-pair{height:190px;}.course-modal-dialog{width:calc(100% - 14px);max-height:calc(100vh - 14px);margin:7px auto;border-radius:18px;padding:18px;}.course-level-grid{grid-template-columns:1fr;}.course-level-card{grid-template-columns:86px 1fr}.course-level-card img{width:86px;height:112px}.contact-method-grid{grid-template-columns:1fr!important;}}

/* Supplied course artwork / roadmap assets */
.course-roadmap-image{display:block;width:min(100%,904px);height:auto;margin:14px auto 8px;border-radius:16px;box-shadow:0 10px 28px rgba(92,55,34,.12);}
.course-family-card>img{object-fit:cover;}


/* 2026-10-01 Courses hierarchy/cache robustness */
.course-modal[hidden], .course-modal-content[hidden]{display:none!important;}
.course-family-card.age-course-card>img{height:auto;aspect-ratio:1/1;object-fit:cover;}
@media(min-width:901px){.course-family-card.age-course-card{grid-column:span 1;}}

/* Prominent consent link immediately below FAQ in footer. */
.footer-links .footer-consent-link {
  flex: 0 0 100%;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 5px 0 3px;
  padding: 10px 12px;
  border-left: 3px solid #e8b78d;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .065);
  color: #fff4e8;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.footer-links .footer-consent-link:hover,
.footer-links .footer-consent-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  text-decoration: underline;
}
