/* ============================================================
   MOBILE LAYOUT — реальная вёрстка для узких экранов.
   На десктопе (style.css) всё построено на abs-позиционировании
   для 1920px-канвы и уменьшается JS-зумом целиком. На мобильной
   ширине зум выключается (см. index.html), поэтому секции ниже
   переопределяются под нормальный flow — по одному разделу за
   раз, по мере получения мобильных мокапов из Figma.
   ============================================================ */

/* ── Hero: компактный мобильный блок (изначально скрыт) ── */
.hero__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 24px;
}

.hero__mobile-title {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 9vw, 40px);
  line-height: 1.1;
  color: #000000;
  text-transform: uppercase;
}

.hero__mobile-subtitle {
  margin-top: 16px;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.27;
  color: #000000;
  max-width: 280px;
}

.hero__mobile-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  width: 100%;
}

.hero__mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px;
  padding: 0 32px;
  border-radius: 34px;
  border: 1px solid var(--color-primary-light);
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero__mobile-btn:hover { opacity: 0.85; }

.hero__mobile-btn--primary {
  background: var(--color-primary-mid);
  color: #ffffff;
}

.hero__mobile-btn--ghost {
  background: #ffffff;
  color: var(--color-primary-mid);
  min-width: 211px;
}

.hero__mobile-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 12px 20px 12px 12px;
  border-radius: 58px;
  background: linear-gradient(104.77deg, var(--color-primary-light) 29.14%, var(--color-primary-mid) 70.86%);
}

.hero__mobile-badge-circle {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary-mid);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__mobile-badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.hero__mobile-badge-heading {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #ffffff;
}

.hero__mobile-badge-number {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: #ffffff;
}

.hero__mobile-badge-desc {
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}

/* ── «Активные предложения»: две карточки-предложения между hero и features ── */
.mobile-offers {
  display: none;
  position: relative;
  padding: 40px 20px 8px;
  overflow: hidden;
}

.mobile-offers__swirl {
  position: absolute;
  top: -40px;
  right: -70px;
  width: 260px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.mobile-offers__title {
  position: relative;
  z-index: 1;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

.mobile-offers__card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 24px;
  padding-right: 120px;
  background: #F7F7F7;
  box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.mobile-offers__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 25px;
  background: rgba(211, 205, 255, 0.28);
}

.mobile-offers__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7663F2;
}

.mobile-offers__badge-text {
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #7663F2;
}

.mobile-offers__card-title {
  margin-top: 14px;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: #000000;
}

.mobile-offers__card-desc {
  margin-top: 8px;
  max-width: 190px;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #363636;
}

.mobile-offers__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  height: 43px;
  padding: 0 24px;
  border-radius: 25px;
  background: #7663F2;
  box-shadow: 0px 0px 22.1px rgba(0, 0, 0, 0.25);
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
}

.mobile-offers__icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 138px;
  z-index: 0;
}

.mobile-offers__icon svg { display: block; width: 100%; height: 100%; }

/* ── «Наши преподаватели говорят»: цитаты + CTA с фото ── */
.mobile-reviews {
  display: none;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 40px 20px;
}

.mobile-reviews__swirl {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.mobile-reviews__swirl--1 { top: -60px; right: -90px; width: 220px; }
.mobile-reviews__swirl--2 { top: 120px; left: -140px; width: 220px; transform: rotate(20deg); }

.mobile-reviews__title {
  position: relative;
  z-index: 1;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 10vw, 40px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

.mobile-reviews__title-accent { color: #7663F2; }

.mobile-reviews__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 178px;
  margin-top: 32px;
}

.mobile-reviews__item--right { justify-content: flex-end; }
.mobile-reviews__item--left { justify-content: flex-start; }

.mobile-reviews__circle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: #ABA0F2;
  z-index: 2;
}

.mobile-reviews__item--right .mobile-reviews__circle { left: 4%; }
.mobile-reviews__item--left .mobile-reviews__circle { right: 4%; }

.mobile-reviews__quote {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 177px;
  width: 58%;
  padding: 20px 20px 20px 56px;
  background: #F7F7F7;
  box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: #000000;
}

.mobile-reviews__quote--tinted { width: 76%; padding: 20px 118px 20px 20px; background: #EDEBF9; }

.mobile-reviews__carousel {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.mobile-reviews__track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0 26px;
  margin: -20px 0 -26px;
}

.mobile-reviews__track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.mobile-reviews__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  min-height: 240px;
  padding: 24px;
  background: #EDEBF9;
  border-radius: 10px;
  box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.25);
}

.mobile-reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.mobile-reviews__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ABA0F2;
  opacity: 0.4;
  transition: opacity 0.25s, transform 0.25s;
}

.mobile-reviews__dot.is-active { opacity: 1; transform: scale(1.25); }

.mobile-reviews__cta-text { flex: 1; min-width: 0; }

.mobile-reviews__cta-title {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #000000;
}

.mobile-reviews__cta-title span { display: block; color: #7663F2; }

.mobile-reviews__cta-sub {
  margin-top: 8px;
  font-family: 'Geologica', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  color: #000000;
}

.mobile-reviews__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  height: 37px;
  padding: 0 8px 0 20px;
  border-radius: 27px;
  background: #7D6BF3;
  border: 1px solid #AFA4F3;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
}

.mobile-reviews__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #7D6BF3;
  font-size: 14px;
  line-height: 1;
}

.mobile-reviews__cta-photo {
  position: relative;
  flex-shrink: 0;
  width: 145px;
  height: 145px;
}

.mobile-reviews__cta-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transform: rotate(4.55deg);
  box-shadow: 0px 4px 13px 1px rgba(0, 0, 0, 0.25);
}

.mobile-reviews__cta-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  background: #7663F2;
  transform: rotate(4.55deg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ── Тарифы: карусель из тех же 3 карточек, что и на десктопе ── */
.mobile-pricing {
  display: none;
  position: relative;
  background: #ffffff;
  padding: 40px 20px;
}

.mobile-pricing__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.mobile-pricing__title-pill {
  box-sizing: border-box;
  flex: 1;
  max-width: 300px;
  padding: 16px 20px;
  background: #5941F2;
  border: 3px solid #AEA4F3;
  border-radius: 40px;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 4.6vw, 19px);
  line-height: 1.25;
  text-align: center;
  color: #ffffff;
}

.mobile-pricing__toggle {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #5941F2;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-pricing__carousel { position: relative; z-index: 1; margin-top: 28px; }

.mobile-pricing__track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0 26px;
  margin: -20px 0 -26px;
}

.mobile-pricing__track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.mobile-pricing__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

.mobile-pricing__card {
  box-sizing: border-box;
  padding: 24px;
  background: #ffffff;
  border-radius: 25px;
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
  min-height: 460px;
}

.mobile-pricing__card--turbo {
  background: linear-gradient(135deg, #5941F2 17%, #0D05F2 100%);
  box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.25);
}

.mobile-pricing__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 44px;
  padding: 0 16px;
  border-radius: 15px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.mobile-pricing__badge--light {
  background: #ABA0F2;
  border: 1px solid #5941F2;
  color: #5941F2;
  box-shadow: 0px 0px 12px 1px rgba(57, 40, 242, 0.25);
}

.mobile-pricing__badge--dark {
  background: #7663F2;
  border: 1px solid #ffffff;
  color: #ffffff;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.25);
}

.mobile-pricing__list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #000000;
}

.mobile-pricing__list--white { color: #ffffff; }

.mobile-pricing__list li { position: relative; padding-left: 14px; }
.mobile-pricing__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.mobile-pricing__tagline {
  margin-top: 16px;
  font-family: 'Geologica', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: #7260E9;
}

.mobile-pricing__tagline--white { color: #ffffff; }

.mobile-pricing__footer {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  height: 62px;
  padding: 0 24px;
  background: #7663F2;
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.25);
  border-radius: 25px;
}

.mobile-pricing__footer--white {
  background: #ffffff;
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.13);
}

.mobile-pricing__price {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
}

.mobile-pricing__price--dark { color: #0D05F2; }

.mobile-pricing__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 11px;
}

.mobile-pricing__discount--purple { background: #5941F2; color: #ffffff; }
.mobile-pricing__discount--white { background: #ffffff; color: #5941F2; }

.mobile-pricing__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.mobile-pricing__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ABA0F2;
  opacity: 0.4;
  transition: opacity 0.25s, transform 0.25s;
}

.mobile-pricing__dot.is-active { opacity: 1; transform: scale(1.25); }

/* ── Breakpoint: switch desktop abs-layout for the flow layout above ── */
@media (max-width: 768px) {
  .mobile-offers { display: block; }
  .mobile-reviews { display: block; }
  .mobile-pricing { display: block; }
  .about { display: none; }

  body { overflow-x: hidden; }

  .container { padding: 0 20px; }

  /* Header: same circles + logo as desktop, just scaled down */
  .header { height: auto; padding: 16px 0; }
  .header__blob { display: none; }
  .header__center { gap: 8px; }
  .header__circle { width: 40px !important; height: 40px !important; }
  .header__logo { width: 140px; height: 48px; border-radius: 30px; }
  .header__logo img { width: 110px; height: auto; }

  /* Hero: hide the 1920-canvas card, show the mobile block */
  .hero { padding: 16px 0 24px; }
  .hero__card { display: none; }
  .hero__mobile { display: flex; }
}
