/* ============================================
   Историум — лендинг
   Палитра взята из фирменных материалов школы
   ============================================ */

:root{
  --green-dark:#2E6B52;
  --green:#5F9482;
  --green-soft:#E4EEE9;
  --cream:#EFE1CC;
  --cream-light:#F6EDE0;
  --taupe:#B49C83;
  --taupe-dark:#8E7660;
  --bg:#FBF8F3;
  --bg-alt:#F5F0E7;
  --ink:#26241F;
  --ink-soft:#5C564D;
  --line:#E3DACB;
  --radius:14px;
  --maxw:1140px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;scroll-padding-top:80px;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px;}
.container--narrow{max-width:820px;}

h1,h2,h3,h4{font-family:Georgia,"Times New Roman",serif;font-weight:700;line-height:1.2;margin:0;}

/* ---------- ШАПКА ---------- */
.header{
  position:sticky;top:0;z-index:50;
  background:rgba(251,248,243,.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header__inner{display:flex;align-items:center;gap:24px;height:68px;}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0;}
.logo__mark{width:30px;height:auto;}
.logo__text{font-family:Georgia,serif;font-size:20px;font-weight:700;letter-spacing:.02em;}
.nav{display:flex;gap:22px;margin-left:auto;font-size:15px;}
.nav a{text-decoration:none;color:var(--ink-soft);padding:4px 0;border-bottom:1px solid transparent;}
.nav a:hover{color:var(--green-dark);border-bottom-color:var(--green-dark);}
.header__cta{flex-shrink:0;}
.burger{display:none;background:none;border:0;padding:8px;cursor:pointer;}
.burger span{display:block;width:22px;height:2px;background:var(--ink);margin:4px 0;}

/* ---------- КНОПКИ ---------- */
.btn{
  display:inline-block;
  background:var(--green-dark);
  color:#fff;
  text-decoration:none;
  font-size:16px;
  font-weight:600;
  padding:15px 28px;
  border-radius:10px;
  border:2px solid var(--green-dark);
  text-align:center;
}
.btn:hover{background:#245942;border-color:#245942;}
.btn--sm{padding:9px 18px;font-size:14px;}
.btn--ghost{background:transparent;color:var(--green-dark);}
.btn--ghost:hover{background:var(--green-soft);border-color:var(--green-dark);}
.btn--light{background:#fff;color:var(--green-dark);border-color:#fff;}
.btn--light:hover{background:var(--cream-light);border-color:var(--cream-light);}
.btn--outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.6);}
.btn--outline:hover{background:rgba(255,255,255,.12);border-color:#fff;}
.btn--full{display:block;width:100%;}
.btn-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px;}
.btn-row--center{justify-content:center;}

/* ---------- ПЕРВЫЙ ЭКРАН ---------- */
.hero{
  background:linear-gradient(180deg,var(--cream-light) 0%,var(--bg) 100%);
  border-bottom:1px solid var(--line);
  padding:72px 0 64px;
}
.hero__eyebrow{
  margin:0 0 18px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--taupe-dark);font-weight:600;
}
.hero__title{font-size:44px;max-width:840px;text-wrap:balance;}
.hero__lead{font-size:20px;color:var(--ink-soft);max-width:680px;margin:22px 0 0;}
.hero__note{
  margin-top:30px;max-width:680px;
  background:var(--green-soft);
  border-left:4px solid var(--green-dark);
  border-radius:0 10px 10px 0;
  padding:16px 20px;font-size:16px;
}
.hero__sub{font-size:15px;color:var(--ink-soft);margin:14px 0 0;}
.hero__facts{
  display:flex;flex-wrap:wrap;gap:14px;
  list-style:none;padding:0;margin:44px 0 0;
}
.hero__facts li{
  flex:1 1 220px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:18px 22px;
}
.hero__facts b{
  font-family:Georgia,serif;font-size:20px;
  color:var(--green-dark);line-height:1.2;
}
.hero__facts span{font-size:15px;color:var(--ink-soft);margin-left:7px;}

/* ---------- СЕКЦИИ ---------- */
.section{padding:80px 0;}
.section--alt{background:var(--bg-alt);}
.section__eyebrow{
  margin:0 0 12px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--taupe-dark);font-weight:600;
}
.section__title{font-size:36px;max-width:820px;}
.section__lead{font-size:18px;color:var(--ink-soft);max-width:760px;margin:18px 0 0;}
.subtitle{font-size:26px;margin-top:64px;}
.text{font-size:17px;color:var(--ink-soft);margin:18px 0 0;}

.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:56px;align-items:start;}

.quote{
  margin-top:28px;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:22px 24px;
}
.quote p{margin:0;font-size:17px;}

.checklist{list-style:none;margin:0;padding:0;}
.checklist li{
  position:relative;padding:14px 0 14px 34px;
  border-bottom:1px solid var(--line);font-size:16px;
}
.checklist li:last-child{border-bottom:0;}
.checklist li::before{
  content:"";position:absolute;left:0;top:20px;
  width:14px;height:8px;border-left:2px solid var(--green-dark);
  border-bottom:2px solid var(--green-dark);transform:rotate(-45deg);
}

/* ---------- КАРТОЧКИ ---------- */
.cards{display:grid;gap:20px;margin-top:40px;}
.cards--3{grid-template-columns:repeat(3,1fr);}
.cards--4{grid-template-columns:repeat(4,1fr);}
.cards--2{grid-template-columns:repeat(2,1fr);}

.card{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:26px 24px;
}
.card__num{
  display:inline-block;font-family:Georgia,serif;font-size:14px;font-weight:700;
  color:var(--taupe);letter-spacing:.08em;margin-bottom:12px;
}
.card h3{font-size:20px;margin-bottom:10px;}
.card p{margin:0;font-size:16px;color:var(--ink-soft);}

.teacher{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;padding-bottom:24px;
}
.teacher img{width:100%;aspect-ratio:1/1;object-fit:cover;}
.teacher h3{font-size:21px;margin:22px 24px 8px;}
.teacher__award{margin:0 24px;font-size:15px;font-weight:600;color:var(--green-dark);}
.teacher__uni{margin:6px 24px 0;font-size:15px;color:var(--ink-soft);}

/* ---------- ШАГИ ---------- */
.steps{display:grid;gap:20px;margin-top:36px;}
.steps--3{grid-template-columns:repeat(3,1fr);}
.steps--4{grid-template-columns:repeat(4,1fr);}
.step{border-top:3px solid var(--green-dark);padding-top:18px;}
.step__label{
  display:block;font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--taupe-dark);font-weight:600;margin-bottom:8px;
}
.step h4{font-size:19px;margin-bottom:8px;}
.step p{margin:0;font-size:16px;color:var(--ink-soft);}

/* ---------- РАСПИСАНИЕ ---------- */
.schedule{margin:36px 0 0;}
.schedule__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.schedule img{
  width:100%;border:1px solid var(--line);border-radius:var(--radius);background:#fff;
}
.schedule figcaption{margin-top:12px;font-size:15px;color:var(--ink-soft);}
.legend{display:flex;flex-wrap:wrap;gap:22px;margin-top:20px;font-size:15px;color:var(--ink-soft);}
.legend span{display:flex;align-items:center;gap:9px;}
.dot{width:14px;height:14px;border-radius:4px;display:inline-block;}
.dot--light{background:var(--cream);}
.dot--taupe{background:var(--taupe);}
.dot--green{background:var(--green);}

/* ---------- КАРУСЕЛЬ ОТЧЁТОВ ---------- */
.carousel{position:relative;margin-top:36px;}
.carousel__track{
  display:flex;gap:18px;overflow-x:auto;padding:4px;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.carousel__track::-webkit-scrollbar{display:none;}
.carousel__slide{
  flex:0 0 auto;margin:0;scroll-snap-align:center;
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:10px;
}
.carousel__slide img{display:block;height:440px;width:auto;border-radius:8px;}
/* Скриншоты отзывов сильно разной формы — от узкой полоски до высокого
   скрина, поэтому даём слайду фиксированную рамку и вписываем в неё картинку. */
.carousel--reviews .carousel__slide{
  width:396px;height:430px;
  display:flex;flex-direction:column;justify-content:center;gap:12px;
}
.carousel--reviews .carousel__slide a{
  display:flex;align-items:center;justify-content:center;
  flex:0 1 auto;min-height:0;
}
.carousel--reviews .carousel__slide img{
  width:auto;height:auto;max-width:100%;max-height:100%;
  object-fit:contain;
}
.carousel__btn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;cursor:pointer;
  background:#fff;border:1px solid var(--line);color:var(--green-dark);
  font-size:26px;line-height:1;padding:0 0 4px;
  box-shadow:0 4px 14px rgba(0,0,0,.10);
}
.carousel__btn:hover{background:var(--cream-light);}
.carousel__btn:disabled{opacity:.35;cursor:default;}
.carousel__btn--prev{left:-10px;}
.carousel__btn--next{right:-10px;}
.carousel__dots{display:flex;justify-content:center;gap:9px;margin-top:20px;}
.carousel__dots button{
  width:9px;height:9px;padding:0;border-radius:50%;cursor:pointer;
  border:0;background:var(--taupe);opacity:.4;
}
.carousel__dots button[aria-current="true"]{opacity:1;background:var(--green-dark);}

/* ---------- УЧЕНИКИ / ОТЗЫВЫ ---------- */
.unis{
  display:flex;flex-wrap:wrap;gap:12px;list-style:none;padding:0;margin:32px 0 0;
}
.unis li{
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:11px 22px;font-family:Georgia,serif;font-size:18px;font-weight:700;
  color:var(--green-dark);
}
.student,.review{
  background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);padding:26px 24px;
}
.student__result,.review__author{font-weight:700;margin:0;font-size:16px;}
.student__head{display:flex;align-items:center;gap:16px;}
.student__head img{
  width:76px;height:76px;flex:none;
  border-radius:50%;object-fit:cover;background:#fff;
}
.student__uni{
  margin:4px 0 0;font-family:Georgia,serif;font-size:19px;
  font-weight:700;color:var(--green-dark);
}
.student__text{margin:10px 0 0;font-size:16px;color:var(--ink-soft);}
.review__text{margin:0 0 16px;font-size:16px;color:var(--ink-soft);}
.review__author{color:var(--green-dark);}
.placeholder-note{
  margin-top:16px;font-size:14px;color:var(--taupe-dark);font-style:italic;
}

/* ---------- FAQ ---------- */
.faq{margin-top:36px;}
.faq details{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  margin-bottom:12px;
}
.faq summary{
  cursor:pointer;list-style:none;padding:20px 56px 20px 24px;
  font-family:Georgia,serif;font-size:19px;font-weight:700;position:relative;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{
  content:"";position:absolute;right:24px;top:27px;
  width:9px;height:9px;border-right:2px solid var(--taupe-dark);
  border-bottom:2px solid var(--taupe-dark);transform:rotate(45deg);
}
.faq details[open] summary::after{transform:rotate(-135deg);top:31px;}
.faq__body{padding:0 24px 22px;}
.faq__body p{margin:0 0 12px;font-size:16px;color:var(--ink-soft);}
.faq__body p:last-child{margin-bottom:0;}

/* ---------- CTA ---------- */
.cta{background:var(--green-dark);color:#fff;padding:80px 0;text-align:center;}
.cta__title{font-size:36px;}
.cta__lead{font-size:18px;margin:18px auto 0;max-width:640px;color:rgba(255,255,255,.86);}
.contacts{
  list-style:none;padding:0;margin:44px 0 0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:16px;
}
.contacts li{
  background:rgba(255,255,255,.1);border-radius:var(--radius);
  padding:16px 26px;min-width:200px;
}
.contacts span{
  display:block;font-size:13px;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.65);margin-bottom:6px;
}
.contacts a{color:#fff;text-decoration:none;font-size:17px;font-weight:600;}
.contacts a:hover{text-decoration:underline;}

/* ---------- ФУТЕР ---------- */
.footer{background:var(--bg-alt);border-top:1px solid var(--line);padding:40px 0;}
.footer__inner{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;}
.footer__text{margin:0;font-size:15px;color:var(--ink-soft);}
.footer__small{margin:0;font-size:14px;color:var(--taupe-dark);}

/* ---------- ЛИПКАЯ КНОПКА ---------- */
.sticky-cta{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:rgba(251,248,243,.96);border-top:1px solid var(--line);
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width:1000px){
  .cards--4{grid-template-columns:repeat(2,1fr);}
  .steps--4{grid-template-columns:repeat(2,1fr);}
  .hero__title{font-size:40px;}
  .two-col{grid-template-columns:1fr;gap:36px;}
  /* узкие карточки фактов — ужимаем, чтобы строка не переносилась */
  .hero__facts li{padding:16px 16px;}
  .hero__facts b{font-size:17px;}
  .hero__facts span{font-size:13px;margin-left:5px;}
}

@media (max-width:820px){
  body{font-size:16px;}
  .nav{
    display:none;position:absolute;top:68px;left:0;right:0;
    flex-direction:column;gap:0;
    background:var(--bg);border-bottom:1px solid var(--line);
    padding:8px 24px 16px;
  }
  .nav.is-open{display:flex;}
  .nav a{padding:12px 0;border-bottom:1px solid var(--line);}
  .header__cta{display:none;}
  .burger{display:block;margin-left:auto;}
  .cards--2,.cards--3,.cards--4,.steps--3,.steps--4{grid-template-columns:1fr;}
  .carousel__slide img{height:360px;}
  .carousel--reviews .carousel__slide{width:288px;height:330px;}
  .carousel__btn--prev{left:2px;}
  .carousel__btn--next{right:2px;}
  .hero{padding:48px 0 52px;}
  .hero__title{font-size:31px;}
  .hero__lead{font-size:17px;}
  .section{padding:56px 0;}
  .section__title{font-size:27px;}
  .section__lead{font-size:16px;}
  .subtitle{font-size:22px;margin-top:44px;}
  /* расписание — широкая картинка, даём прокрутить вбок */
  .schedule img{min-width:680px;}
  .cta{padding:56px 0;}
  .cta__title{font-size:27px;}
  .contacts li{width:100%;}
  .sticky-cta{display:block;}
  body{padding-bottom:78px;}
  .btn-row .btn{flex:1 1 100%;}
}

@media (max-width:420px){
  .hero__title{font-size:27px;}
  .container{padding:0 18px;}
}
