@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto+Slab:wght@400;700&family=Roboto:wght@400;500;700;900&display=swap");

:root{--ink:#101318;--blue:#003a60;--deep:#06121c;--yellow:#ffd000;--red:#d62828;--paper:#fff;--mist:#f4f7f7;--line:#dfe7e8;--muted:#69747c;--shadow:0 16px 40px rgba(3,18,29,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:17px/1.65 Montserrat,Arial,sans-serif}a{color:var(--blue)}img{max-width:100%;display:block}.container{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{background:var(--deep);color:#fff}.header-row{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:30px}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font:900 21px/1 Montserrat,Arial,sans-serif;letter-spacing:.08em}.brand img{width:42px;height:42px;object-fit:cover;border-radius:50%}.nav{display:flex;flex-wrap:wrap;gap:20px}.nav a{color:#fff;text-decoration:none;font-size:12px;font-weight:800;text-transform:uppercase}.nav a:hover{color:var(--yellow)}.hero{padding:90px 0 75px;background:linear-gradient(110deg,rgba(6,18,28,.94),rgba(0,58,96,.72)),url('/assets/images/hero-connect-performance.jpg') center/cover;color:#fff}.hero h1,.page-head h1{margin:0 0 18px;font:700 clamp(38px,6vw,60px)/1.05 "DIN",Montserrat,Arial,sans-serif;text-transform:uppercase}.hero p{max-width:780px;font-size:19px}.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 25px;border:1px solid var(--yellow);background:var(--yellow);color:var(--deep);font-weight:900;text-decoration:none;text-transform:uppercase;font-size:12px}.button:hover{background:var(--red);border-color:var(--red);color:#fff}.section{padding:70px 0}.section:nth-child(even){background:var(--mist)}.section h2{margin:0 0 26px;font:700 clamp(28px,4vw,40px)/1.1 "DIN",Montserrat,Arial,sans-serif;text-transform:uppercase}.lead{max-width:850px;font-size:18px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.grid.two{grid-template-columns:repeat(2,1fr)}.card{padding:25px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.card h3{margin:0 0 8px;font-size:21px;line-height:1.2}.card p{margin:0 0 12px}.card ul{padding-left:20px}.price{font-size:22px;font-weight:900;color:var(--blue)}.page-head{padding:76px 0 55px;background:var(--blue);color:#fff}.page-head p{max-width:800px;margin:0;font-size:18px}.course-card{display:flex;flex-direction:column;gap:12px}.course-card .button{align-self:flex-start;margin-top:auto}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:35px}.fact{padding:22px;background:var(--blue);color:#fff}.fact strong{display:block;color:var(--yellow);font-size:30px;line-height:1}.faq{border-top:1px solid var(--line)}details{padding:18px 0;border-bottom:1px solid var(--line)}summary{cursor:pointer;font-weight:800}.team-card img{width:100%;height:280px;object-fit:cover}.team-card h3{margin:15px 0 0}.contact{background:var(--deep);color:#fff}.contact h2{color:#fff}.contact-form{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:900px}.contact-form input{width:100%;padding:14px;border:0;font:inherit}.contact-form button{cursor:pointer}.form-status{grid-column:1/-1;min-height:24px;color:var(--yellow)}.site-footer{padding:34px 0;background:#03090d;color:#c6d3da;font-size:13px}.site-footer a{color:var(--yellow)}.footer-original{display:grid;grid-template-columns:1fr 1fr;gap:42px;align-items:start}.footer-social{display:flex;flex-wrap:wrap;align-items:center;gap:18px}.social-icons{display:flex;gap:10px;flex-wrap:wrap}.social-icon{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--yellow);border-radius:50%;color:var(--yellow)!important;text-decoration:none;font-size:11px;font-weight:900;line-height:1}.social-icon:hover{background:var(--yellow);color:var(--deep)!important}.footer-whatsapp{font-weight:800;text-decoration:none}.footer-contact,.footer-copyright{margin:0}.footer-copyright{margin-top:24px;color:#c6d3da}.article p,.article li{max-width:850px}.article ul,.article ol{max-width:850px}.breadcrumbs{margin-bottom:20px;font-size:13px;color:#c6d3da}.page-head .breadcrumbs a{color:#fff;text-decoration:underline}.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.video-box{aspect-ratio:16/9;background:#0d2737;display:grid;place-items:center;color:var(--yellow);font-weight:900}@media(max-width:800px){.header-row{align-items:flex-start;padding:18px 0;flex-direction:column}.nav{gap:12px}.hero{padding:65px 0}.grid,.grid.two,.facts,.contact-form,.video-grid,.footer-original{grid-template-columns:1fr}.section{padding:48px 0}.team-card img{height:auto}}

.hero{background-image:linear-gradient(110deg,rgba(6,18,28,.94),rgba(0,58,96,.72)),url('assets/images/hero-connect-performance.jpg')}
.team-link{display:inline-block;margin-top:10px;font-weight:800}
.gallery-card{padding:0;overflow:hidden}
.gallery-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-card figcaption{padding:14px 18px;font-weight:800}
.route-list{display:grid;gap:12px;padding-left:20px}


@media (max-width:767px){
  .container{width:calc(100% - 30px)}
  .header-row{min-height:0;padding:16px 0;gap:16px}
  .brand{font-size:18px}
  .brand img{width:38px;height:38px}
  .nav{width:100%;gap:10px 14px}
  .nav a{font-size:11px}
  .hero{padding:56px 0 44px}
  .hero h1,.page-head h1{font-size:33px;line-height:1.1}
  .hero p,.page-head p{font-size:16px}
  .section{padding:50px 0}
  .section h2{font-size:30px;margin-bottom:20px}
  .lead{font-size:16px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:25px}
  .fact{padding:16px;font-size:14px}
  .fact strong{font-size:26px}
  .button{padding:12px 18px;font-size:11px}
  .card{padding:20px}
  .contact-form{gap:10px}
  .footer-original{gap:24px}
}

@media (max-width:430px){
  .facts{grid-template-columns:1fr}
  .nav{gap:9px 12px}
  .hero{padding-top:46px}
}

/* Recovered CONNECT School header: the archived Elementor template uses a
   purple two-level navigation, a wide wordmark and a burger menu on mobile. */
.site-header{background:#352393;color:#fff}
.header-main{background:#352393}
.header-main-row{min-height:132px;display:flex;align-items:center;gap:34px;padding:18px 0}
.brand{flex:0 0 250px;display:block;height:auto;margin:0;color:#fff;font-size:0;line-height:0;letter-spacing:0}
.brand img{display:block;width:250px;height:auto;max-height:98px;object-fit:contain;border-radius:0}
.header-menus{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-end;gap:13px}
.header-menus .nav{display:block;width:100%}
.nav-list{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 19px;margin:0;padding:0;list-style:none}
.nav-list>li{position:relative;margin:0;padding:0}
.nav-list a{display:inline-flex;align-items:center;min-height:28px;padding:3px 0;color:#fff;text-decoration:none;text-transform:none;font:600 12px/1.25 Montserrat,Arial,sans-serif;white-space:nowrap}
.nav-list a:hover,.nav-list a:focus-visible,.nav-list>li:hover>.nav-parent>a{color:#1e73be}
.nav-parent{display:flex;align-items:center;gap:4px}
.nav-caret{color:#fff;font-size:15px;line-height:1;transform:translateY(-1px)}
.nav-item--has-children:hover>.subnav,.nav-item--has-children:focus-within>.subnav{display:block}
.subnav{display:none;position:absolute;z-index:20;top:100%;left:-16px;min-width:220px;margin:0;padding:10px 0;background:#352393;border:1px solid rgba(255,255,255,.24);box-shadow:0 14px 30px rgba(0,0,0,.25);list-style:none}
.subnav li{margin:0;padding:0 16px}
.subnav a{display:block;min-height:0;padding:7px 0;font-size:11px;white-space:normal}
.nav-secondary{padding-top:1px;border-top:1px solid rgba(255,255,255,.22)}
.nav-secondary .nav-list{gap:4px 24px}
.nav-secondary .nav-list a{font-size:11px}
.menu-toggle{display:none;width:44px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid rgba(255,255,255,.65);border-radius:2px;background:transparent;color:#fff;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:#fff}
.hero-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:38px}
.hero-feature{margin:0;overflow:hidden;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.22)}
.hero-feature img{width:100%;aspect-ratio:16/9;object-fit:cover}
.hero-feature figcaption{padding:12px 15px;color:#fff;font-size:12px;font-weight:800;line-height:1.35}
.video-box{overflow:hidden;aspect-ratio:16/9;background:#0d2737}
.video-box iframe{display:block;width:100%;height:100%;border:0}
.team-grid .team-card{display:flex;flex-direction:column;align-items:flex-start}
.team-grid .team-card h3{width:100%;min-height:2.4em}
.team-grid .team-link{margin-top:10px}
.team-placeholder{display:grid;width:100%;height:280px;place-items:center;background:linear-gradient(135deg,#352393,#1e73be);color:#fff;font:800 24px/1 Montserrat,Arial,sans-serif;letter-spacing:.12em}
.price small{font-size:14px;font-weight:600}
.article-date{color:var(--muted);font-size:14px}

@media (max-width:1100px){
  .header-main-row{align-items:flex-start}
  .header-menus{gap:8px}
  .nav-list{gap:3px 13px}
  .nav-list a{font-size:11px}
  .nav-secondary .nav-list{gap:3px 13px}
}

@media (max-width:767px){
  .header-main-row{min-height:0;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;flex-wrap:wrap}
  .brand{flex:0 0 190px;width:190px}
  .brand img{width:190px;max-height:74px}
  .menu-toggle{display:flex;flex:0 0 44px}
  .header-menus{display:none;flex:0 0 100%;width:100%;align-items:stretch;gap:18px;padding:12px 0 4px;border-top:1px solid rgba(255,255,255,.25)}
  .header-main-row:has(.header-menus.is-open){flex-wrap:wrap}
  .header-menus.is-open{display:flex}
  .nav-list,.nav-secondary .nav-list{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;gap:0 18px}
  .nav-list>li{border-bottom:1px solid rgba(255,255,255,.18)}
  .nav-list a{display:flex;min-height:38px;padding:7px 0;font-size:12px}
  .nav-parent{justify-content:space-between}
  .nav-caret{display:none}
  .subnav,.nav-item--has-children:hover>.subnav,.nav-item--has-children:focus-within>.subnav{position:static;display:block;min-width:0;padding:0 0 7px;background:transparent;border:0;box-shadow:none}
  .subnav li{padding:0}
  .subnav a{min-height:0;padding:4px 0;color:#d9d4ff;font-size:11px}
  .nav-secondary{padding-top:10px}
  .hero-highlights{grid-template-columns:1fr;margin-top:28px}
  .team-placeholder{height:220px}
}

/* The archived template has two separate navigation widgets: the primary
   menu in the top bar and the training/services menu below the hero. */
.header-top-row{min-height:132px;display:grid;grid-template-columns:250px minmax(0,1fr) auto;align-items:center;gap:24px;padding:18px 0}
.header-primary{min-width:0}
.header-primary .nav-list{justify-content:flex-end}
.header-social{justify-self:end}
.header-social .social-icons{justify-content:flex-end}
.header-social .social-icon{border-color:#fff;color:#fff!important}
.header-social .social-icon:hover{background:#fff;color:#352393!important}
.secondary-menu-bar{background:#352393;color:#fff;border-top:1px solid rgba(255,255,255,.24)}
.secondary-menu-row{min-height:54px;display:flex;align-items:center;justify-content:center;padding:8px 0}
.secondary-menu{width:100%}
.secondary-menu .nav-secondary{padding-top:0;border-top:0}
.secondary-menu .nav-list{justify-content:center}
.secondary-menu-toggle{margin:0 auto}

@media (max-width:1100px){
  .header-top-row{grid-template-columns:210px minmax(0,1fr) auto;gap:16px}
  .header-top-row .brand,.header-top-row .brand img{width:210px}
  .header-primary .nav-list{gap:3px 12px}
  .header-social .social-icons{gap:6px}
}

@media (max-width:767px){
  .header-top-row{min-height:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;flex-wrap:wrap}
  .header-top-row .brand{flex:0 0 190px;width:190px}
  .header-top-row .brand img{width:190px;max-height:74px}
  .header-social{display:none}
  .primary-menu-toggle{display:flex;flex:0 0 44px;margin-left:auto}
  .header-primary{display:none;flex:0 0 100%;width:100%;padding:12px 0 4px;border-top:1px solid rgba(255,255,255,.25)}
  .header-primary.is-open{display:block}
  .header-primary .nav-list{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;gap:0 18px}
  .header-primary .nav-list>li{border-bottom:1px solid rgba(255,255,255,.18)}
  .secondary-menu-row{min-height:0;justify-content:flex-end;align-items:center;flex-wrap:wrap;padding:10px 0}
  .secondary-menu-toggle{display:flex;flex:0 0 44px;margin-left:auto}
  .secondary-menu{display:none;flex:0 0 100%;width:100%;padding:12px 0 4px;border-top:1px solid rgba(255,255,255,.25)}
  .secondary-menu.is-open{display:block}
  .secondary-menu .nav-list{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch;gap:0 18px}
  .secondary-menu .nav-list>li{border-bottom:1px solid rgba(255,255,255,.18)}
}


/* Homepage hero: the first one-page site uses one full-width image slider with
   centered text that changes automatically with the image. */
.hero-slider{position:relative;display:grid;height:clamp(620px,calc(100vh - 190px),760px);min-height:620px;padding:0;overflow:hidden;background:#071018;color:#fff}
.hero-slider .hero-slides,.hero-slider .hero-slide,.hero-slider .hero-shade{position:absolute;inset:0}
.hero-slider .hero-slide{background:var(--bg) center/cover no-repeat;opacity:0;transform:scale(1.03);transition:opacity 1s ease,transform 7s ease}
.hero-slider .hero-slide.is-active{opacity:1;transform:scale(1)}
.hero-slider .hero-shade{z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.3) 60%,rgba(0,0,0,.55)),linear-gradient(180deg,rgba(0,0,0,.38),rgba(0,0,0,.55))}
.hero-slider .hero-inner{position:relative;z-index:2;min-width:0;padding:126px 0 90px;text-align:center;transform:translateY(48px)}
.hero-slider .hero-inner h1{max-width:820px;margin:0 auto;font:900 clamp(36px,6vw,76px)/.98 Montserrat,Arial,sans-serif;letter-spacing:-.04em;text-transform:uppercase;text-shadow:0 3px 18px rgba(0,0,0,.3)}
.hero-slider .hero-messages{min-height:116px;max-width:900px;margin:28px auto 0}
.hero-slider .hero-message{display:none;margin:0;color:#fff;font:800 clamp(24px,3.5vw,52px)/1.12 Montserrat,Arial,sans-serif;text-transform:uppercase;text-shadow:0 3px 18px rgba(0,0,0,.35)}
.hero-slider .hero-message.is-active{display:block}
.hero-slider .hero-actions{display:flex;justify-content:center;gap:14px;margin-top:24px}
.hero-slider .hero-actions .button{min-height:50px}

@media (max-width:767px){
  .hero-slider{height:720px;min-height:720px}
  .hero-slider .hero-inner{padding:116px 0 78px;transform:translateY(40px)}
  .hero-slider .hero-inner h1{max-width:100%;font-size:clamp(32px,10vw,48px);overflow-wrap:anywhere}
  .hero-slider .hero-messages{min-height:140px;max-width:100%;margin-top:22px}
  .hero-slider .hero-message{font-size:clamp(22px,7.2vw,32px);overflow-wrap:anywhere}
  .hero-slider .hero-actions{width:100%}
  .hero-slider .hero-actions .button{width:100%}
}

/* Final home layout corrections: keep the hero centered and leave the
   secondary navigation reachable on small screens. */
.hero-slider{
  height:clamp(520px,calc(100svh - 290px),620px);
  min-height:520px;
}
.hero-slider .hero-inner{
  width:min(1180px,calc(100% - 40px));
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:56px 0 44px;
  text-align:center;
  transform:translateY(42px);
}
.hero-slider .hero-inner h1{
  width:100%;
  max-width:820px;
  margin:0 auto;
  text-align:center;
}
.hero-slider .hero-messages{
  width:100%;
  max-width:900px;
  min-height:0;
  margin:24px auto 0;
  text-align:center;
}
.hero-slider .hero-message{
  width:100%;
  margin:0 auto;
  text-align:center;
}
.hero-slider .hero-actions{
  width:auto;
  max-width:100%;
  margin:26px auto 0;
  justify-content:center;
}
.hero-slider .hero-actions .button{
  width:auto;
  min-width:190px;
}
.home-contact .contact-form input{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}
.home-contact .form-status{color:var(--blue)}
.home-feature-grid,.home-team-grid,.home-video-grid{grid-template-columns:repeat(4,1fr)}
.team-card img.teacher-katya-photo{object-position:center 8%}
.team-grid .team-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  margin-top:10px;
  padding:10px 16px;
  border:1px solid var(--yellow);
  background:var(--yellow);
  color:var(--deep);
  text-decoration:none;
  text-transform:uppercase;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
}
.team-grid .team-link:hover,.team-grid .team-link:focus-visible{
  border-color:var(--red);
  background:var(--red);
  color:#fff;
}

@media (max-width:767px){
  .home-feature-grid,.home-team-grid,.home-video-grid{grid-template-columns:1fr}
  .hero-slider{
    height:520px;
    min-height:520px;
  }
  .hero-slider .hero-inner{
    width:calc(100% - 30px);
    max-width:360px;
    padding:38px 0;
    transform:translateY(30px);
  }
  .hero-slider .hero-inner h1{
    max-width:100%;
    font-size:clamp(30px,9vw,42px);
    line-height:1;
    overflow-wrap:anywhere;
  }
  .hero-slider .hero-messages{margin-top:18px}
  .hero-slider .hero-message{
    font-size:clamp(18px,5.2vw,24px);
    line-height:1.1;
    letter-spacing:-.025em;
    overflow-wrap:anywhere;
  }
  .hero-slider .hero-actions{
    width:100%;
    margin-top:24px;
  }
  .hero-slider .hero-actions .button{
    width:min(100%,220px);
    min-width:0;
  }
  .header-top-row{position:relative}
  .primary-menu-toggle{
    position:absolute;
    top:50%;
    right:0;
    z-index:30;
    display:flex!important;
    margin:0;
    transform:translateY(-50%);
  }
}

@media (max-width:420px){
  .hero-slider{
    height:500px;
    min-height:500px;
  }
  .hero-slider .hero-inner{
    width:100%;
    max-width:360px;
  }
  .hero-slider .hero-inner{transform:translateY(24px)}
  .hero-slider .hero-inner h1{font-size:clamp(28px,8.7vw,36px)}
  .hero-slider .hero-message{font-size:clamp(17px,5vw,22px)}
}

@media (max-width:767px){
  .secondary-menu-bar{display:none}
  .header-primary .secondary-menu{
    display:block;
    width:100%;
    padding:12px 0 4px;
    border-top:1px solid rgba(255,255,255,.25);
  }
  .header-primary .secondary-menu .nav-list{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 18px;
  }
  .header-primary .secondary-menu .nav-list>li{border-bottom:1px solid rgba(255,255,255,.18)}
}

@media (min-width:768px) and (max-width:1100px){
  .home-feature-grid,.home-team-grid,.home-video-grid{grid-template-columns:repeat(2,1fr)}
}

/* Teacher profile image sizing */
.teacher-profile-photo{width:100%;height:420px;object-fit:cover;object-position:center 14%;}
.team-card img.teacher-fyodor-photo,.team-card img.teacher-egor-photo{object-position:center 18%;}
@media(max-width:767px){.teacher-profile-photo{height:360px;object-position:center 13%;}}

/* Keep the inner-page hero blocks aligned with the homepage hero. */
.site-promo{
  padding:52px 0 44px;
  text-align:center;
}
.site-promo>.container{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.site-promo>.container>.button{margin:0 auto}
.site-promo .hero-highlights{
  width:100%;
  max-width:1120px;
  margin:28px auto 0;
}
.page-head{
  padding:58px 0 44px;
  text-align:center;
}
.page-head>.container{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.page-head .breadcrumbs{
  max-width:100%;
  margin:0 auto 18px;
  text-align:center;
}
.page-head h1{max-width:1000px;margin:0 auto}
@media(max-width:767px){
  .site-promo{padding:38px 0 30px}
  .site-promo .hero-highlights{max-width:420px;margin-top:22px}
  .page-head{padding:46px 0 34px}
  .page-head .breadcrumbs{margin-bottom:14px}
}
