/* Commercial system — content first, no synthetic lifestyle imagery. */
:root{
  --c-bg:#f1f6f8;
  --c-paper:#ffffff;
  --c-ink:#20252b;
  --c-muted:#68727c;
  --c-line:#d8e1e5;
  --c-soft:#e7eef1;
  --c-dark:#252b32;
  --c-accent:#97002c;
  --c-accent-dark:#760023;
  --c-radius:22px;
  --c-radius-sm:14px;
  --c-ease:cubic-bezier(.23,1,.32,1);
}

html{background:var(--c-bg)}
body{background:var(--c-bg);color:var(--c-ink)}
.container{width:min(1420px,calc(100% - 32px))}
.btn,.header-phone{border-radius:var(--c-radius-sm)}
.btn:active,.header-phone:active{transform:scale(.97)}

/* One header language on every page. */
.home-commercial .site-header,
body:not(.home) .site-header{
  position:sticky;
  top:0;
  padding:10px 0;
  background:rgba(241,246,248,.88);
  border:0;
  box-shadow:none;
  backdrop-filter:blur(16px);
}
.home-commercial .header-inner,
body:not(.home) .header-inner{
  height:68px;
  padding:7px 8px 7px 12px;
  gap:10px;
  border:1px solid var(--c-line);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 30px rgba(25,35,44,.06);
  backdrop-filter:none;
}
.home-commercial .brand,
body:not(.home) .brand{
  width:84px;
  height:54px;
  padding:3px 7px;
  border:0;
  border-radius:13px;
  background:#fff;
}
.home-commercial .brand picture,
body:not(.home) .brand picture{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.home-commercial .brand img,
body:not(.home) .brand img{width:auto;height:48px;max-width:100%;object-fit:contain}
.footer-logo{width:132px;height:auto;padding:8px;border-radius:18px;background:#fff;object-fit:contain}
.home-commercial .nav,
body:not(.home) .nav{margin-left:auto;gap:2px}
.home-commercial .nav a,
body:not(.home) .nav a{
  padding:11px 13px;
  border-radius:10px;
  background:transparent;
  color:#343b43;
  font-size:11px;
  font-weight:750;
}
.home-commercial .nav a:hover,
body:not(.home) .nav a:hover{background:var(--c-soft);color:var(--c-ink)}
.home-commercial .nav a.active,
body:not(.home) .nav a.active{background:var(--c-dark);color:#fff}
.home-commercial .header-phone,
body:not(.home) .header-phone{
  display:inline-flex!important;
  min-height:46px;
  padding:0 14px;
  border:1px solid var(--c-line);
  background:#fff;
  color:var(--c-ink);
  font-size:11px;
}
.home-commercial .header-cta,
body:not(.home) .header-inner>.btn{min-height:46px;padding:0 17px}
.home-commercial .menu-btn,
body:not(.home) .menu-btn{border-radius:12px}
.home-commercial .menu-btn{display:none!important}
.home-commercial .mobile-nav.open,
body:not(.home) .mobile-nav.open{top:78px;border-radius:16px}

/* Homepage — product navigation replaces decorative photography. */
.home-commercial{font-family:"Manrope",sans-serif}
.home-commercial .offerbar{display:none}
.home-commercial .commercial-main{overflow:hidden}
.commercial-hero{padding:22px 0 0}
.commercial-hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:14px}
.commercial-hero-copy,
.direction-panel{
  min-height:560px;
  border:1px solid var(--c-line);
  border-radius:var(--c-radius);
}
.commercial-hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(40px,4vw,52px);
  background:var(--c-paper);
}
.commercial-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--c-accent);
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.commercial-kicker::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.commercial-hero h1{
  max-width:780px;
  margin:22px 0 22px;
  font:600 clamp(46px,4.4vw,60px)/.98 "Manrope",sans-serif;
  letter-spacing:-.065em;
  text-transform:none;
}
.commercial-hero h1 span{color:var(--c-accent)}
.commercial-hero-copy>p{max-width:720px;margin:0;color:var(--c-muted);font-size:16px;line-height:1.65}
.commercial-actions{display:flex;align-items:center;gap:10px;margin-top:30px}
.commercial-actions .btn{min-height:52px;padding:0 22px}
.commercial-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:30px;border-top:1px solid var(--c-line);padding-top:20px}
.commercial-trust>div{padding-right:18px}
.commercial-trust>div+div{padding-left:18px;border-left:1px solid var(--c-line)}
.commercial-trust strong{display:block;font-size:21px;letter-spacing:-.04em}
.commercial-trust span{display:block;margin-top:3px;color:var(--c-muted);font-size:10.5px}
.direction-panel{display:flex;flex-direction:column;padding:24px;background:var(--c-dark);color:#fff;overflow:hidden;position:relative}
.direction-panel::after{content:"";position:absolute;right:-90px;bottom:-100px;width:340px;height:340px;background:url("../images/znanie-logo-mark-white.svg") center/contain no-repeat;opacity:.025;pointer-events:none}
.direction-panel-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 20px;border-bottom:1px solid rgba(255,255,255,.13)}
.direction-panel-head span{font-size:13px;font-weight:800}
.direction-panel-head small{color:#aeb8bf;font-size:10px}
.direction-list{display:grid;position:relative;z-index:1}
.direction-list a{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:61px;border-bottom:1px solid rgba(255,255,255,.11);color:#fff;transition:background-color 180ms ease,padding 180ms var(--c-ease)}
.direction-list a:hover{padding-left:10px;background:rgba(255,255,255,.055)}
.direction-list a>span{color:#99a5ad;font-size:10px;font-variant-numeric:tabular-nums}
.direction-list strong{font-size:16px;letter-spacing:-.025em}
.direction-list small{color:#cbd3d8;font-size:10.5px;white-space:nowrap}
.direction-panel-all{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:auto;border:1px solid rgba(255,255,255,.22);border-radius:12px;color:#fff;font-size:11px;font-weight:800;position:relative;z-index:1}
.direction-panel-all:hover{background:#fff;color:var(--c-dark)}

.commercial-assurance{padding:22px 0 0}
.assurance-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--c-line);border-bottom:1px solid var(--c-line)}
.assurance-grid>div{padding:25px 30px}
.assurance-grid>div+div{border-left:1px solid var(--c-line)}
.assurance-grid b{display:block;font-size:13px}
.assurance-grid span{display:block;max-width:340px;margin-top:6px;color:var(--c-muted);font-size:11px;line-height:1.55}

.commercial-section{padding:86px 0}
.commercial-section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}
.commercial-section h2,.commercial-final h2{margin:15px 0 0;font-size:clamp(38px,4vw,58px);line-height:1.02;letter-spacing:-.06em;font-weight:600}
.commercial-section-head .text-link{flex:none;background:#fff}
.commercial-course-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--c-line);border-left:1px solid var(--c-line)}
.commercial-course{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:18px;min-height:220px;padding:30px;border-right:1px solid var(--c-line);border-bottom:1px solid var(--c-line);background:rgba(255,255,255,.66);color:var(--c-ink);transition:background-color 180ms ease,transform 160ms var(--c-ease)}
.commercial-course:hover{background:#fff}
.commercial-course:active{transform:scale(.992)}
.course-number{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--c-soft);color:var(--c-muted);font-size:10px;font-weight:800}
.commercial-course small{color:var(--c-muted);font-size:10px}
.commercial-course h3{margin:12px 0 8px;font-size:24px;line-height:1.12;letter-spacing:-.045em}
.commercial-course p{max-width:410px;margin:0;color:var(--c-muted);font-size:12px;line-height:1.55}
.course-offer{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;text-align:right}
.course-offer span{color:var(--c-muted);font-size:9.5px}
.course-offer strong{margin-top:4px;color:var(--c-accent);font-size:20px;white-space:nowrap}

.commercial-how{background:#fff;border-top:1px solid var(--c-line);border-bottom:1px solid var(--c-line)}
.commercial-how-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:80px;align-items:start}
.commercial-how-intro>p{max-width:510px;margin:22px 0 28px;color:var(--c-muted);font-size:14px;line-height:1.7}
.commercial-steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--c-line)}
.commercial-steps li{display:grid;grid-template-columns:54px 1fr;gap:18px;padding:25px 4px;border-bottom:1px solid var(--c-line)}
.commercial-steps li>span{color:var(--c-accent);font-size:11px;font-weight:800}
.commercial-steps b{font-size:17px}
.commercial-steps p{margin:6px 0 0;color:var(--c-muted);font-size:12px;line-height:1.55}

.commercial-proof-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:14px}
.commercial-social-card,.commercial-review{min-height:390px;padding:44px;border:1px solid var(--c-line);border-radius:var(--c-radius)}
.commercial-social-card{background:var(--c-accent);color:#fff}
.commercial-social-card .commercial-kicker{color:#f5dce4}
.commercial-social-card h2{max-width:700px;font-size:clamp(38px,4vw,58px)}
.commercial-social-card p{max-width:660px;margin:22px 0 30px;color:#f1dfe5;font-size:13px;line-height:1.65}
.commercial-social-card .btn{background:#fff;color:var(--c-accent);border-color:#fff}
.commercial-review{display:flex;flex-direction:column;background:var(--c-dark);color:#fff}
.commercial-review>span{color:#aeb8bf;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}
.commercial-review blockquote{margin:32px 0 auto;font-size:21px;line-height:1.48;letter-spacing:-.035em}
.commercial-review b{font-size:13px}
.commercial-review small{margin-top:3px;color:#aeb8bf;font-size:10px}
.commercial-review a{margin-top:24px;color:#fff;font-size:11px;text-decoration:underline;text-underline-offset:4px}

.commercial-final{padding:0 0 30px}
.commercial-final-inner{display:flex;align-items:end;justify-content:space-between;gap:30px;padding:52px;border:1px solid var(--c-line);border-radius:var(--c-radius);background:#fff}
.commercial-final h2{max-width:800px;font-size:clamp(36px,3.7vw,54px)}
.commercial-final p{margin:14px 0 0;color:var(--c-muted);font-size:13px}
.commercial-final .commercial-actions{flex:none;margin:0}

.home-commercial .footer{padding-top:0}
.home-commercial .footer>.container{border-radius:22px;background:var(--c-dark)}
.home-commercial .float-cta{display:none}

/* Internal pages — text and useful facts replace staged AI imagery. */
body:not(.home) .offerbar{padding-top:8px}
body:not(.home) .offerbar .container{min-height:28px;background:transparent;border:0;font-size:9.5px}
body:not(.home) .breadcrumbs{margin:24px 0 14px;padding:0;color:#7a858e;font-size:11px}
body:not(.home) .page-hero{padding:0 0 26px}
body:not(.home) .page-hero-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:0;
  overflow:hidden;
  border:1px solid var(--c-line);
  border-radius:24px;
  background:#fff;
}
body:not(.home) .page-copy{
  min-height:400px;
  height:auto;
  padding:48px;
  border:0;
  border-radius:0;
  background:#fff;
  box-shadow:none;
}
body:not(.home) .page-copy .title{max-width:720px;font-size:clamp(40px,3.2vw,54px);line-height:1.02;letter-spacing:-.055em}
body:not(.home) .page-copy .lead{max-width:680px;color:var(--c-muted);font-size:13.5px;line-height:1.65}
body:not(.home) .page-media--editorial{
  min-height:400px;
  height:auto;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:44px;
  border:0;
  border-left:1px solid var(--c-line);
  border-radius:0;
  background:var(--c-dark);
  color:#fff;
  box-shadow:none;
  position:relative;
  overflow:hidden;
}
body:not(.home) .page-media--editorial::before{content:"Учебный центр · Иваново";position:absolute;left:44px;top:42px;color:#aab4bc;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
body:not(.home) .page-media--editorial::after{content:"";display:block;position:absolute;right:-80px;bottom:-100px;width:360px;height:360px;background:url("../images/znanie-logo-mark-white.svg") center/contain no-repeat;opacity:.035;pointer-events:none}
body:not(.home) .page-media--editorial .page-caption{position:relative;left:auto;right:auto;bottom:auto;z-index:1;max-width:600px}
body:not(.home) .page-media--editorial .page-caption b{display:block;font-size:clamp(30px,3vw,46px);line-height:1.02;letter-spacing:-.055em}
body:not(.home) .page-media--editorial .page-caption span{display:block;max-width:540px;margin-top:16px;color:#c8d0d5;font-size:13px;line-height:1.6}
body:not(.home) .page-media--editorial img{display:none!important}

body.course-detail .page-hero-grid{grid-template-columns:1fr}
body.course-detail .page-media--editorial{display:none}
body.course-detail .page-copy{min-height:0;padding:48px 52px}
body.course-detail .page-copy .title{max-width:1050px}
body.course-detail .page-copy .lead{max-width:920px}
body.course-detail .page-copy .hero-actions{margin-top:26px}

body:not(.home) main>.section{padding:58px 0}
body:not(.home) .page-hero+.section{padding-top:34px}
body:not(.home) .sales-card,
body:not(.home) .contract,
body:not(.home) .detail-main,
body:not(.home) .side-offer,
body:not(.home) .contact-panel,
body:not(.home) .lead-form,
body:not(.home) .course-card,
body:not(.home) .review{border-radius:18px;border-color:var(--c-line);background:#fff;box-shadow:none}
body:not(.home) .course-card{min-height:245px}
body:not(.home) .course-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(28,36,44,.07)}
body:not(.home) .side-offer{background:var(--c-accent)}
body:not(.home) .price-table-wrap{border-radius:18px;background:#fff}
body:not(.home) .footer>.container{border-radius:22px;background:var(--c-dark)}

/* No decorative arrows: links communicate action through text and hover state. */
.category-copy h3::after{content:none!important}

/* Real functional media remains visible. */
body:not(.home) .page-media--map{min-height:390px;height:auto;border:0;border-left:1px solid var(--c-line);border-radius:0;background:#dce6e9}
body:not(.home) .page-media--map iframe{display:block;width:100%;height:100%;min-height:390px}
body:not(.home) .page-media--info{min-height:400px;height:auto;border:0;border-left:1px solid var(--c-line);border-radius:0}

/* Gallery becomes an honest overview until real centre photography is available. */
.gallery-page .category-grid{grid-template-columns:repeat(3,1fr);gap:12px}
.gallery-page .category-card:nth-child(n){grid-column:auto}
.gallery-page .category-card{min-height:190px;padding:26px;border:1px solid var(--c-line);border-radius:18px;background:#fff;box-shadow:none}
.gallery-page .category-card::after{display:none}
.gallery-page .category-card::before{display:block;position:static;margin-bottom:auto;color:var(--c-accent);font-size:10px;font-weight:800}
.gallery-page .category-card:nth-child(1)::before{content:"01"}.gallery-page .category-card:nth-child(2)::before{content:"02"}.gallery-page .category-card:nth-child(3)::before{content:"03"}.gallery-page .category-card:nth-child(4)::before{content:"04"}.gallery-page .category-card:nth-child(5)::before{content:"05"}.gallery-page .category-card:nth-child(6)::before{content:"06"}
.gallery-page .category-card .category-copy{position:static;color:var(--c-ink)}
.gallery-page .category-card .category-copy h3{font-size:22px}
.gallery-page .category-card .category-copy p{max-width:340px;margin-top:9px;color:var(--c-muted);font-size:12px;line-height:1.55}

@media(max-width:1120px){
  .home-commercial .nav,body:not(.home) .nav,.home-commercial .header-cta,body:not(.home) .header-inner>.btn{display:none}
  .home-commercial .menu-btn,body:not(.home) .menu-btn{display:block!important;margin-left:auto}
  .commercial-hero-grid{grid-template-columns:1fr}
  .commercial-hero-copy,.direction-panel{min-height:auto}
  .direction-panel{min-height:540px}
  .commercial-how-grid{grid-template-columns:1fr;gap:50px}
  .commercial-proof-grid{grid-template-columns:1fr}
  body:not(.home) .page-hero-grid{grid-template-columns:1fr}
  body:not(.home) .page-media--editorial,body:not(.home) .page-media--map,body:not(.home) .page-media--info{min-height:300px;border-left:0;border-top:1px solid var(--c-line)}
}

@media(max-width:1280px) and (min-width:1121px){
  .home-commercial .header-phone,body:not(.home) .header-phone{display:none!important}
}

@media(max-width:760px){
  .container{width:min(100% - 20px,1420px)}
  .home-commercial .site-header,body:not(.home) .site-header{padding:6px 0}
  .home-commercial .header-inner,body:not(.home) .header-inner{height:60px;padding:5px 6px 5px 9px;border-radius:15px;gap:6px}
  .home-commercial .brand,body:not(.home) .brand{width:62px;height:48px;padding:4px 7px}
  .home-commercial .brand img,body:not(.home) .brand img{width:auto;height:40px;max-width:100%}
  .home-commercial .header-phone,body:not(.home) .header-phone{min-height:44px;padding:0 8px;font-size:10px}
  .home-commercial .menu-btn,body:not(.home) .menu-btn{width:44px;height:44px;min-width:44px}
  .commercial-hero{padding-top:8px}
  .commercial-hero-grid{gap:8px}
  .commercial-hero-copy{padding:34px 24px;border-radius:18px}
  .commercial-hero h1{font-size:clamp(40px,12vw,52px);margin:18px 0}
  .commercial-hero-copy>p{font-size:14px}
  .commercial-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:24px}
  .commercial-actions .btn{width:100%}
  .commercial-trust{grid-template-columns:1fr;gap:14px;margin-top:30px;padding-top:18px}
  .commercial-trust>div,.commercial-trust>div+div{padding:0;border:0}
  .commercial-trust>div{display:flex;align-items:baseline;gap:8px}
  .commercial-trust span{margin:0}
  .direction-panel{min-height:auto;padding:22px 20px;border-radius:18px}
  .direction-list a{grid-template-columns:28px 1fr;min-height:62px}
  .direction-list a small{grid-column:2}
  .direction-panel-all{margin-top:18px}
  .assurance-grid{grid-template-columns:1fr}
  .assurance-grid>div{padding:20px 4px}
  .assurance-grid>div+div{border-left:0;border-top:1px solid var(--c-line)}
  .commercial-section{padding:62px 0}
  .commercial-section-head{align-items:flex-start;flex-direction:column}
  .commercial-section h2,.commercial-final h2{font-size:38px}
  .commercial-course-grid{grid-template-columns:1fr}
  .commercial-course{grid-template-columns:38px minmax(0,1fr);min-height:0;padding:24px 20px}
  .course-offer{grid-column:2;align-items:flex-start;text-align:left;margin-top:10px}
  .commercial-how-grid{gap:36px}
  .commercial-social-card,.commercial-review{min-height:0;padding:30px 24px;border-radius:18px}
  .commercial-social-card h2{font-size:38px}
  .commercial-review blockquote{margin-bottom:34px;font-size:18px}
  .commercial-final-inner{align-items:flex-start;flex-direction:column;padding:32px 24px;border-radius:18px}
  .commercial-final .commercial-actions{width:100%}
  body:not(.home) .offerbar{display:none}
  body:not(.home) .breadcrumbs{margin:18px 0 12px}
  body:not(.home) .page-hero-grid{border-radius:18px}
  body:not(.home) .page-copy,body.course-detail .page-copy{min-height:0;padding:28px 22px}
  body:not(.home) .page-copy .title{font-size:clamp(34px,10vw,42px)}
  body:not(.home) .page-media--editorial{min-height:250px;padding:28px 24px}
  body:not(.home) .page-media--editorial::before{left:24px;top:26px}
  body:not(.home) .page-media--editorial .page-caption b{font-size:31px}
  body:not(.home) .page-media--map iframe{min-height:280px}
  body:not(.home) .page-media--info{padding:28px 24px}
  .gallery-page .category-grid{grid-template-columns:1fr}
}

@media(max-width:370px){
  .home-commercial .header-phone,body:not(.home) .header-phone{display:none!important}
}

@media(hover:hover) and (pointer:fine){
  .btn:hover{transform:translateY(-1px)}
}

@media(prefers-reduced-motion:reduce){
  .direction-list a,.commercial-course,.btn{transition-duration:.01ms!important}
}

/* Homepage 2026 — mobile-first presentation layer. */
.home-commercial .icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.home-commercial .btn{transition:transform 160ms var(--c-ease),background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
.home-commercial .commercial-hero{padding:8px 0 0}
.home-commercial .commercial-hero-grid{display:grid;grid-template-columns:1fr;gap:10px}
.home-commercial .commercial-hero-copy,
.home-commercial .commercial-hero-media{min-height:0;border:1px solid var(--c-line);border-radius:20px;overflow:hidden}
.home-commercial .commercial-hero-copy{padding:30px 22px;background:linear-gradient(145deg,#fff 0%,#fbfcfc 100%)}
.home-commercial .commercial-hero h1{max-width:760px;margin:18px 0;font-size:clamp(38px,11vw,52px);line-height:.98;letter-spacing:-.06em}
.home-commercial .commercial-hero-copy>p{max-width:660px;font-size:14px;line-height:1.68}
.home-commercial .commercial-actions{display:grid;grid-template-columns:1fr;gap:10px;width:100%;margin-top:26px}
.home-commercial .commercial-actions .btn{width:100%;min-height:54px}
.home-commercial .commercial-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:26px;padding-top:18px}
.home-commercial .commercial-trust>div,
.home-commercial .commercial-trust>div+div{display:block;padding:0 8px;border:0}
.home-commercial .commercial-trust>div:first-child{padding-left:0}
.home-commercial .commercial-trust>div+div{border-left:1px solid var(--c-line)}
.home-commercial .commercial-trust strong{font-size:17px}
.home-commercial .commercial-trust span{margin-top:4px;font-size:8.5px;line-height:1.35}
.commercial-hero-media{position:relative;min-height:320px!important;background:#262b31;isolation:isolate}
.commercial-hero-media::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(21,24,27,.03) 30%,rgba(21,24,27,.75) 100%);pointer-events:none}
.commercial-hero-media>img{width:100%;height:100%;min-height:320px;object-fit:cover;object-position:center;transition:transform 700ms var(--c-ease)}
.hero-media-note{position:absolute;left:20px;right:20px;bottom:20px;z-index:2;color:#fff}
.hero-media-note span{display:block;margin-bottom:8px;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.hero-media-note strong{display:block;max-width:420px;font-size:22px;line-height:1.16;letter-spacing:-.04em}
.hero-media-badge{position:absolute;top:18px;right:18px;z-index:2;width:116px;padding:13px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(27,31,35,.55);color:#fff;backdrop-filter:blur(12px)}
.hero-media-badge b{display:block;font-size:23px;letter-spacing:-.04em}
.hero-media-badge span{display:block;margin-top:3px;font-size:8px;line-height:1.4;color:rgba(255,255,255,.72)}

.commercial-directions{padding:12px 0 0}
.commercial-directions .direction-panel{display:block;min-height:0;padding:26px 20px;border:1px solid var(--c-line);border-radius:20px;background:#fff;color:var(--c-ink);overflow:hidden}
.commercial-directions .direction-panel::after{display:none}
.commercial-directions .direction-panel-head{display:flex;align-items:flex-start;flex-direction:column;gap:20px;padding:0 0 22px;border-bottom:0}
.commercial-directions .direction-panel-head h2{margin:12px 0 0;font-size:34px;line-height:1.04;letter-spacing:-.055em;font-weight:600}
.commercial-directions .direction-panel-all{display:inline-flex;width:auto;min-height:44px;margin:0;padding:0 16px;border:1px solid var(--c-line);border-radius:12px;background:var(--c-bg);color:var(--c-ink);font-size:10.5px;gap:8px;transition:transform 160ms var(--c-ease),background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.commercial-directions .direction-list{display:grid;grid-template-columns:1fr;gap:8px}
.commercial-directions .direction-list a{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;min-height:76px;padding:15px;border:1px solid var(--c-line);border-radius:15px;background:#fbfcfc;color:var(--c-ink);transition:transform 180ms var(--c-ease),box-shadow 180ms ease,border-color 180ms ease,background-color 180ms ease}
.commercial-directions .direction-list a>span{color:var(--c-accent);font-size:9px;font-weight:800}
.commercial-directions .direction-list strong{font-size:14px;letter-spacing:-.025em}
.commercial-directions .direction-list small{grid-column:2;color:var(--c-muted);font-size:9.5px}

.home-commercial .commercial-assurance{padding:22px 0 0}
.home-commercial .assurance-grid{grid-template-columns:1fr}
.home-commercial .assurance-grid>div{padding:21px 4px}
.home-commercial .assurance-grid>div+div{border-top:1px solid var(--c-line);border-left:0}
.home-commercial .commercial-section{padding:68px 0}
.home-commercial .commercial-section-head{align-items:flex-start;flex-direction:column;gap:22px;margin-bottom:28px}
.home-commercial .commercial-section h2,
.home-commercial .commercial-final h2{font-size:clamp(36px,10vw,48px)}
.home-commercial .commercial-section-head>div>p{max-width:680px;margin:16px 0 0;color:var(--c-muted);font-size:13px;line-height:1.65}
.home-commercial .commercial-section-head .text-link{padding:10px 14px;border:1px solid var(--c-line);border-radius:11px;background:#fff}

.home-commercial .commercial-course-grid{display:grid;grid-template-columns:1fr;gap:10px;border:0}
.home-commercial .commercial-course{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;min-height:0;padding:22px 20px;border:1px solid var(--c-line);border-radius:18px;background:rgba(255,255,255,.72);box-shadow:0 1px 1px rgba(25,35,44,.02);transition:transform 200ms var(--c-ease),box-shadow 200ms ease,border-color 200ms ease,background-color 200ms ease}
.course-visual{display:flex;align-items:center;flex-direction:column;gap:10px}
.course-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#f6e9ed;color:var(--c-accent)}
.course-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.course-number{display:block;width:auto;height:auto;background:transparent;color:#9aa4ab;font-size:9px}
.course-copy{min-width:0}
.home-commercial .commercial-course small{font-size:9.5px}
.home-commercial .commercial-course h3{margin:10px 0 8px;font-size:22px}
.home-commercial .commercial-course p{font-size:11.5px}
.home-commercial .course-offer{grid-column:2;align-items:flex-start;margin-top:8px;text-align:left}
.home-commercial .course-offer strong{font-size:19px}

.home-commercial .commercial-how{background:var(--c-dark);color:#fff;border:0}
.home-commercial .commercial-how-grid{display:grid;grid-template-columns:1fr;gap:34px}
.home-commercial .commercial-how-intro{display:grid;grid-template-columns:1fr;gap:20px}
.home-commercial .commercial-how-intro .commercial-kicker{color:#f4bdce}
.home-commercial .commercial-how-intro>div>p{max-width:520px;margin:0 0 20px;color:#bdc6cc;font-size:13px;line-height:1.65}
.home-commercial .commercial-how .btn.secondary{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff}
.home-commercial .commercial-steps{display:grid;grid-template-columns:1fr;gap:10px;border:0}
.home-commercial .commercial-steps li{display:flex;justify-content:space-between;flex-direction:column;gap:34px;min-height:240px;padding:24px;border:1px solid rgba(255,255,255,.13);border-radius:18px;background:rgba(255,255,255,.045);transition:transform 180ms var(--c-ease),background-color 180ms ease,border-color 180ms ease}
.step-top{display:flex;align-items:flex-start;justify-content:space-between}
.home-commercial .commercial-steps li .step-top>span:first-child{color:#f0b7c8;font-size:10px;font-weight:800}
.step-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff;color:var(--c-accent)}
.step-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-commercial .commercial-steps b{font-size:18px}
.home-commercial .commercial-steps p{color:#bdc6cc;font-size:11.5px}

.learning-gallery{background:#fff}
.learning-gallery-grid{display:grid;grid-template-columns:1fr;gap:10px}
.learning-gallery-item{position:relative;min-height:270px;padding:0;overflow:hidden;border:0;border-radius:18px;background:var(--c-dark);color:#fff;text-align:left;isolation:isolate;cursor:zoom-in}
.learning-gallery-item::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 36%,rgba(17,20,23,.78) 100%);pointer-events:none}
.learning-gallery-item img{width:100%;height:100%;min-height:270px;object-fit:cover;transition:transform 500ms var(--c-ease)}
.learning-gallery-item>span{position:absolute;left:18px;right:18px;bottom:18px;z-index:2}
.learning-gallery-item b{display:block;font-size:15px}
.learning-gallery-item small{display:block;margin-top:4px;color:rgba(255,255,255,.72);font-size:9.5px;line-height:1.45}

.commercial-proof{background:linear-gradient(180deg,#f1f6f8 0%,#eaf1f3 100%)}
.home-commercial .commercial-proof-grid{display:grid;grid-template-columns:1fr;gap:12px}
.home-commercial .commercial-social-card,
.home-commercial .commercial-review{min-height:0;padding:32px 24px;border-radius:20px}
.home-commercial .commercial-social-card{position:relative;overflow:hidden;border:0;background-color:var(--c-accent);background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.16) 1px,transparent 0),linear-gradient(135deg,#a20738 0%,#7a0024 62%,#540018 100%);background-size:22px 22px,100% 100%;box-shadow:0 20px 48px rgba(112,0,32,.16)}
.home-commercial .commercial-social-card::after{content:"";position:absolute;right:-80px;bottom:-100px;width:300px;height:300px;border:54px solid rgba(255,255,255,.06);border-radius:50%;pointer-events:none}
.home-commercial .commercial-social-card>*{position:relative;z-index:1}
.home-commercial .commercial-social-card h2{font-size:clamp(36px,10vw,52px)}
.home-commercial .commercial-review{border:1px solid rgba(255,255,255,.86);background:rgba(255,255,255,.66);color:var(--c-ink);box-shadow:0 22px 54px rgba(29,37,44,.08);backdrop-filter:blur(18px)}
.home-commercial .commercial-review>span{color:var(--c-accent)}
.home-commercial .commercial-review blockquote{margin:28px 0 34px;font-size:18px;line-height:1.5}
.review-person{display:flex;align-items:center;gap:12px}
.review-person img{width:48px;height:48px;border:2px solid #fff;border-radius:50%;object-fit:cover;object-position:50% 22%;box-shadow:0 5px 14px rgba(28,36,44,.12)}
.home-commercial .commercial-review small{display:block;margin-top:4px;color:var(--c-muted)}
.home-commercial .commercial-review a{display:inline-flex;align-items:center;gap:7px;margin-top:24px;color:var(--c-ink);font-weight:800;text-decoration:none}

.home-commercial .commercial-final-inner{align-items:flex-start;flex-direction:column;padding:34px 24px;border-radius:20px}
.home-commercial .commercial-final .commercial-actions{width:100%;margin-top:0}

.gallery-lightbox[hidden]{display:none}
.gallery-lightbox{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:58px 16px 20px;background:rgba(15,18,20,.88);backdrop-filter:blur(12px)}
.gallery-lightbox figure{width:min(1080px,100%);margin:0}
.gallery-lightbox figure img{width:100%;max-height:78vh;object-fit:contain;border-radius:14px;background:#16191c;box-shadow:0 28px 80px rgba(0,0,0,.38)}
.gallery-lightbox figcaption{margin-top:12px;color:#fff;font-size:12px;text-align:center}
.gallery-lightbox-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;transition:transform 160ms var(--c-ease),background-color 180ms ease}

@media(min-width:560px){
  .home-commercial .commercial-actions{display:flex;width:auto}
  .home-commercial .commercial-actions .btn{width:auto}
  .home-commercial .commercial-trust{grid-template-columns:repeat(3,1fr);gap:0}
  .home-commercial .commercial-trust>div{display:block;padding-right:14px}
  .home-commercial .commercial-trust>div+div{padding-left:14px;border-left:1px solid var(--c-line)}
  .home-commercial .commercial-trust span{margin-top:4px}
  .commercial-directions .direction-list{grid-template-columns:repeat(2,1fr)}
  .learning-gallery-grid{grid-template-columns:repeat(2,1fr)}
  .learning-gallery-item:nth-child(1),.learning-gallery-item:nth-child(4),.learning-gallery-item:nth-child(7){grid-column:1/-1}
}

@media(min-width:760px){
  .home-commercial .commercial-hero{padding-top:16px}
  .home-commercial .commercial-hero-copy{padding:42px 38px}
  .home-commercial .commercial-hero h1{font-size:clamp(48px,6vw,62px)}
  .home-commercial .commercial-hero-copy>p{font-size:15px}
  .commercial-hero-media,.commercial-hero-media>img{min-height:460px!important}
  .hero-media-note{left:24px;right:24px;bottom:24px}
  .hero-media-note strong{font-size:24px}
  .hero-media-badge{top:24px;right:24px;width:132px;padding:15px}
  .commercial-directions{padding-top:16px}
  .commercial-directions .direction-panel{padding:38px}
  .commercial-directions .direction-panel-head{align-items:flex-end;justify-content:space-between;flex-direction:row}
  .commercial-directions .direction-panel-head h2{font-size:44px}
  .home-commercial .assurance-grid{grid-template-columns:repeat(3,1fr)}
  .home-commercial .assurance-grid>div{padding:25px 24px}
  .home-commercial .assurance-grid>div+div{border-top:0;border-left:1px solid var(--c-line)}
  .home-commercial .commercial-section{padding:88px 0}
  .home-commercial .commercial-section-head{align-items:flex-end;justify-content:space-between;flex-direction:row}
  .home-commercial .commercial-course-grid{grid-template-columns:repeat(2,1fr)}
  .home-commercial .commercial-course{grid-template-columns:60px minmax(0,1fr);padding:28px}
  .home-commercial .commercial-how-intro{grid-template-columns:1fr .7fr;align-items:end;gap:56px}
  .home-commercial .commercial-steps{grid-template-columns:repeat(3,1fr)}
  .home-commercial .commercial-proof-grid{grid-template-columns:1.08fr .92fr}
  .home-commercial .commercial-social-card,.home-commercial .commercial-review{min-height:420px;padding:44px}
  .home-commercial .commercial-review blockquote{font-size:21px}
  .home-commercial .commercial-final-inner{align-items:flex-end;justify-content:space-between;flex-direction:row;padding:50px}
  .home-commercial .commercial-final .commercial-actions{width:auto}
}

@media(min-width:1040px){
  .home-commercial .commercial-hero-grid{grid-template-columns:1.03fr .97fr;gap:14px}
  .home-commercial .commercial-hero-copy,.home-commercial .commercial-hero-media{min-height:510px}
  .home-commercial .commercial-hero-copy{padding:clamp(40px,3.5vw,50px)}
  .commercial-hero-media,.commercial-hero-media>img{min-height:510px!important}
  .commercial-directions .direction-list{grid-template-columns:repeat(3,1fr)}
  .learning-gallery-grid{grid-template-columns:repeat(12,1fr);grid-auto-rows:220px}
  .learning-gallery-item,.learning-gallery-item img{min-height:0;height:100%}
  .learning-gallery-item:nth-child(1){grid-column:span 5;grid-row:span 2}
  .learning-gallery-item:nth-child(2){grid-column:span 4}
  .learning-gallery-item:nth-child(3){grid-column:span 3}
  .learning-gallery-item:nth-child(4){grid-column:span 3}
  .learning-gallery-item:nth-child(5){grid-column:span 4}
  .learning-gallery-item:nth-child(6){grid-column:span 7}
  .learning-gallery-item:nth-child(7){grid-column:span 5}
}

@media(hover:hover) and (pointer:fine){
  .home-commercial .btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(145,0,41,.2)}
  .commercial-hero-media:hover>img{transform:scale(1.025)}
  .commercial-directions .direction-panel-all:hover{transform:translateY(-1px);background:var(--c-dark);border-color:var(--c-dark);color:#fff}
  .commercial-directions .direction-list a:hover{padding-left:15px;transform:translateY(-2px);border-color:#cbd6da;background:#fff;box-shadow:0 12px 28px rgba(28,36,44,.08)}
  .home-commercial .commercial-course:hover{transform:translateY(-5px);border-color:#cbd6da;background:#fff;box-shadow:0 18px 42px rgba(28,36,44,.1)}
  .home-commercial .commercial-steps li:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.075)}
  .learning-gallery-item:hover img{transform:scale(1.055)}
  .gallery-lightbox-close:hover{transform:scale(1.04);background:rgba(255,255,255,.18)}
}

.home-commercial .btn:active{transform:scale(.97)}
.home-commercial .commercial-course:active,
.commercial-directions .direction-list a:active{transform:scale(.992)}
.learning-gallery-item:active{transform:scale(.995)}

@media(prefers-reduced-motion:reduce){
  .commercial-hero-media>img,.learning-gallery-item img,.home-commercial .commercial-course,.home-commercial .commercial-steps li,.gallery-lightbox-close{transition-duration:.01ms!important}
}

/* ===== Commercial QA pass: density, contrast and reusable inner-page components ===== */
:root{
  --c-bg:#f3f6f7;
  --c-soft:#ebf0f2;
  --c-line:#d5dde1;
  --c-muted:#5f6972;
  --c-dark:#252c33;
  --alice:#f3f6f7;
  --soft:#f5f7f8;
  --line:#d5dde1;
  --muted:#5f6972;
  --charcoal:#303842;
  --inner-hero-height:360px;
  --inner-hero-padding:clamp(34px,3vw,42px);
  --inner-hero-title-size:clamp(40px,3.15vw,52px);
  --section-gap:56px;
}

/* Compact heroes: information should appear within the first viewport. */
body:not(.home) .breadcrumbs{margin:22px 0 14px;color:#66717a;font-size:11.5px}
body:not(.home):not(.course-detail) .page-copy,
body:not(.home):not(.course-detail) .page-media{
  height:var(--inner-hero-height);
  min-height:var(--inner-hero-height);
}
body:not(.home) .page-copy{padding:var(--inner-hero-padding)}
body:not(.home) .page-copy .title{font-size:var(--inner-hero-title-size)}
body:not(.home) .page-copy .lead{margin-top:18px;color:var(--c-muted);font-size:13.5px;line-height:1.58}
body:not(.home) .page-copy .hero-actions{margin-top:23px}
body:not(.home) .page-media--editorial{padding:34px 38px}
body:not(.home) .page-media--editorial::before{left:38px;top:32px}
body:not(.home) .page-media--editorial .page-caption b{font-size:clamp(28px,2.6vw,39px)}
body:not(.home) .page-media--info{padding:32px 36px}
body:not(.home) .page-media--info h2{margin:11px 0 20px;font-size:clamp(28px,2.5vw,38px)}
body.course-detail .page-copy{padding:38px 42px}
body.course-detail .page-copy .hero-actions{margin-top:22px}

@media(min-width:1040px){
  .home-commercial .commercial-hero-copy,
  .home-commercial .commercial-hero-media,
  .commercial-hero-media,
  .commercial-hero-media>img{min-height:470px!important}
  .home-commercial .commercial-hero-media,
  .commercial-hero-media>img{height:470px!important}
  .home-commercial .commercial-hero-copy{padding:34px 38px}
  .home-commercial .commercial-hero h1{margin:14px 0 16px;font-size:clamp(46px,3.9vw,53px)}
  .home-commercial .commercial-hero-copy>p{font-size:14px;line-height:1.58}
  .home-commercial .commercial-actions{margin-top:20px}
  .home-commercial .commercial-trust{margin-top:20px;padding-top:15px}
}

/* Feature pages: stop a short CTA from stretching to the height of its neighbour. */
body:not(.home) .sales-grid{align-items:start;gap:14px}
body:not(.home) .sales-card{padding:34px}
body:not(.home) .sales-card h2{font-size:clamp(32px,3vw,44px);line-height:1.05}
body:not(.home) .sales-card>p,
body:not(.home) .sales-card .richtext p{color:var(--c-muted);font-size:14px;line-height:1.68}
body:not(.home) .benefits{gap:10px;margin-top:22px}
body:not(.home) .benefit{min-height:104px;padding:17px;border-color:var(--c-line);border-radius:15px;background:#f5f8f9}
body:not(.home) .benefit b{font-size:14px}
body:not(.home) .benefit span{color:var(--c-muted);font-size:11.5px;line-height:1.45}

body:not(.home) .contract{
  align-self:start;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:34px;
  border:0;
  background:linear-gradient(145deg,#a00031 0%,#7b0024 62%,#560019 100%);
  color:#fff;
  box-shadow:0 20px 46px rgba(111,0,32,.16);
}
body:not(.home) .contract::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:radial-gradient(circle at 1px 1px,rgba(255,255,255,.14) 1px,transparent 0);
  background-size:22px 22px;
  mask-image:linear-gradient(135deg,#000,transparent 74%);
}
body:not(.home) .contract::after{z-index:-1;opacity:.055}
body:not(.home) .contract .eyebrow{margin:0;color:#f4cfda!important}
body:not(.home) .contract h2{
  max-width:620px;
  margin:15px 0 14px;
  color:#fff;
  font-size:clamp(31px,2.9vw,42px);
  line-height:1.04;
  letter-spacing:-.05em;
}
body:not(.home) .contract>p{max-width:570px;margin:0;color:#f3dce4;font-size:13.5px;line-height:1.62}
.contract-points{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:25px 0 0;padding:0;border-top:1px solid rgba(255,255,255,.2)}
.contract-points li{min-width:0;padding:18px 12px 0 0}
.contract-points li+li{padding-left:12px;border-left:1px solid rgba(255,255,255,.17)}
.contract-points b,.contract-points span{display:block}
.contract-points b{color:#fff;font-size:12px;line-height:1.35}
.contract-points span{margin-top:5px;color:#edcdd7;font-size:9.5px;line-height:1.45}
body:not(.home) .contract .btn.light{min-height:48px;margin-top:24px;border-color:#fff;background:#fff;color:var(--c-accent);box-shadow:0 12px 26px rgba(63,0,18,.16)}

/* Reviews: a real author component instead of two loose text lines. */
body:not(.home) .review-grid{gap:12px}
body:not(.home) .review{
  display:flex;
  flex-direction:column;
  min-height:260px;
  padding:26px;
  border-color:var(--c-line);
  background:rgba(255,255,255,.86);
  transition:transform 180ms var(--c-ease),border-color 180ms ease,box-shadow 180ms ease;
}
body:not(.home) .review .stars{font-size:14px;letter-spacing:.12em}
body:not(.home) .review p{flex:1;margin:18px 0 24px;color:#384149;font-size:14px;line-height:1.68}
.review-author{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--c-line)}
.review-avatar{position:relative;display:block!important;flex:none;width:44px;height:44px;margin:0!important;border-radius:50%;background:#f5e7ec;box-shadow:inset 0 0 0 1px rgba(151,0,44,.1)}
.review-avatar::before{content:"";position:absolute;left:50%;top:9px;width:11px;height:11px;border-radius:50%;background:var(--c-accent);transform:translateX(-50%)}
.review-avatar::after{content:"";position:absolute;left:50%;bottom:8px;width:22px;height:12px;border-radius:14px 14px 9px 9px;background:var(--c-accent);transform:translateX(-50%)}
.review-author-copy{display:block!important;min-width:0;margin:0!important;color:inherit!important}
.review-author-copy b{display:block;font-size:13px}
.review-author-copy>span{display:block;margin-top:3px!important;color:var(--c-muted);font-size:10.5px;line-height:1.4}

/* Map has a useful fallback and an explicit route action while the iframe loads. */
body:not(.home) .page-media--map{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background-color:#e5ecee;
  background-image:linear-gradient(rgba(171,187,194,.2) 1px,transparent 1px),linear-gradient(90deg,rgba(171,187,194,.2) 1px,transparent 1px),linear-gradient(32deg,transparent 47%,rgba(255,255,255,.9) 48% 51%,transparent 52%),linear-gradient(144deg,transparent 46%,rgba(199,211,216,.72) 47% 49%,transparent 50%),radial-gradient(circle at 70% 36%,rgba(151,0,44,.16),transparent 9%);
  background-size:54px 54px,54px 54px,100% 100%,100% 100%,100% 100%;
  background-repeat:repeat,repeat,no-repeat,no-repeat,no-repeat;
}
body:not(.home) .page-media--map iframe{position:relative;z-index:1;background:transparent}
body:not(.home) .page-media--map .map-badge{
  z-index:2;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:2px;
  min-width:190px;
  padding:12px 14px;
  color:var(--c-ink);
  font-size:11px;
  line-height:1.35;
  transition:transform 160ms var(--c-ease),box-shadow 180ms ease;
}
body:not(.home) .page-media--map .map-badge span{margin-left:17px;color:var(--c-accent);font-size:9.5px;font-weight:800}

/* Small text and controls meet the same contrast standard everywhere. */
.course-price small,.popular-price small,.lead-grid small,.quick-form small,.form-status,
.custom-select-trigger,input::placeholder,textarea::placeholder{color:#66717a!important}
.course-cat,.fact span,.home-commercial .course-number{color:#66717a!important}
.lead-grid small a,.quick-form small a{color:#4f5962;text-decoration-color:rgba(79,89,98,.5)}
.btn{transition:transform 160ms var(--c-ease),background-color 180ms ease,border-color 180ms ease,color 180ms ease,box-shadow 180ms ease}
.js .float-cta.near-footer{opacity:0;transform:translateY(18px);pointer-events:none}
body:not(.home) .contact-panel h2,
body:not(.home) .lead-form h2{font-size:clamp(31px,3vw,40px);line-height:1.05}

@media(hover:hover) and (pointer:fine){
  body:not(.home) .review:hover{transform:translateY(-3px);border-color:#c9d3d7;box-shadow:0 16px 36px rgba(29,37,44,.08)}
  body:not(.home) .page-media--map .map-badge:hover{transform:translate(-50%,-52%);box-shadow:0 16px 38px rgba(28,36,44,.16)}
}

@media(max-width:980px){
  body:not(.home):not(.course-detail) .page-copy{height:auto;min-height:0}
  body:not(.home):not(.course-detail) .page-media{height:270px;min-height:270px}
  body:not(.home) .sales-card,body:not(.home) .contract{padding:30px}
}

@media(max-width:600px){
  :root{--section-gap:46px}
  body:not(.home) .breadcrumbs{margin:16px 0 11px}
  body:not(.home) .page-copy,body.course-detail .page-copy{padding:24px 20px}
  body:not(.home):not(.course-detail) .page-media{height:210px;min-height:210px}
  body:not(.home) .page-media--editorial{padding:24px 20px}
  body:not(.home) .page-media--editorial::before{left:20px;top:20px}
  body:not(.home) .page-media--info{height:auto!important;min-height:0!important;padding:25px 21px}
  body:not(.home) .page-media--info h2{font-size:28px}
  body:not(.home) .sales-card,body:not(.home) .contract{padding:25px 21px}
  body:not(.home) .sales-card h2,body:not(.home) .contract h2{font-size:32px}
  body:not(.home) .benefits{grid-template-columns:1fr}
  body:not(.home) .benefit{min-height:0}
  .contract-points{grid-template-columns:1fr;margin-top:20px}
  .contract-points li{padding:13px 0}
  .contract-points li+li{padding-left:0;border-top:1px solid rgba(255,255,255,.15);border-left:0}
  body:not(.home) .review{min-height:0;padding:22px 20px}
  body:not(.home) .page-media--map .map-badge{min-width:175px;padding:10px 12px}
}

@media(hover:none){
  .btn:hover,.course-card:hover,.review:hover{transform:none}
}

/*
 * Lead dialog: the title owns a dedicated content column, while the close
 * control stays in a protected top-right slot. This prevents overlap at
 * browser zoom, on narrow screens and with longer MODX-managed headings.
 */
.lead-modal{padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
.modal-card{
  width:min(620px,100%);
  max-height:calc(100dvh - 24px);
  padding:32px;
  overflow:auto;
  overscroll-behavior:contain;
}
.modal-card>h2{
  max-width:calc(100% - 66px);
  margin:0 66px 10px 0;
  font-size:clamp(30px,4vw,40px);
  line-height:1.06;
  overflow-wrap:anywhere;
}
.modal-card>p{max-width:520px;margin-bottom:18px}
.modal-x{
  top:18px;
  right:18px;
  z-index:2;
  display:grid;
  place-items:center;
  flex:none;
  color:var(--c-ink);
  font-size:0;
}
.modal-x::before,.modal-x::after{
  content:"";
  position:absolute;
  width:18px;
  height:1.5px;
  border-radius:999px;
  background:currentColor;
}
.modal-x::before{transform:rotate(45deg)}
.modal-x::after{transform:rotate(-45deg)}
.modal-x:hover{background:var(--c-soft)}
.modal-x:focus-visible{outline:3px solid rgba(151,0,44,.22);outline-offset:3px}

@media(max-width:600px){
  .modal-card{padding:24px 18px 20px}
  .modal-card>h2{
    max-width:calc(100% - 56px);
    margin-right:56px;
    font-size:clamp(27px,8.4vw,34px);
  }
  .modal-card>p{font-size:12px;line-height:1.55}
  .modal-x{top:14px;right:14px;width:42px;height:42px}
}


/* ZNANIE_POPUP_NO_JS_TARGET
   Надёжное открытие popup без JavaScript. */
#leadModal:target{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#leadModal:target .modal-card{
  transform:none!important;
  opacity:1!important;
  animation:unified-pop 220ms cubic-bezier(.2,.8,.2,1);
}
#leadModal .modal-x{
  display:block;
  text-decoration:none;
  cursor:pointer;
  z-index:3;
}
#leadModal .modal-x::before,
#leadModal .modal-x::after{
  content:"";
}