/* ===== HERO / INTRO ===== */
.intro {
  max-width: 100%;
  height: 560px;
  /* по макету 688-navbar; подгоните */
  background: #fff;
  /* светло-серый фон левой части   */
  overflow: hidden;
  margin: 0;
}

.intro__close {
  margin: 0 auto;
  display: flex;
  max-width: 1240px;
}

.rankings {
  margin: 0;
  background: #fff;
}

.rankings__close {
  margin: 0 auto;
  display: flex;
  max-width: 1240px;
}

/* левая колонка ----------------------------------------------------- */
.intro__left {
  flex: 0 0 38%;
  /* ~ 38 % ширины (= 540 px при 1400) */
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  /* color:#1A162D; */
  margin: 0 0 24px;
  background: linear-gradient(90deg, #2A2055 0%, #2A2055 100%);

  /* делаем фон «видимым» только на буквах */
  -webkit-background-clip: text;
  /* Chrome / Safari / Edge */
  background-clip: text;
  /* Firefox */

  /* убираем заливку шрифтом, чтобы просвечивал фон-градиент */
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* запасной вариант */

  /* Дополнительно можно задать жирность и межстрочный */
  font-weight: 800;
}

.intro__subtitle {
  font-size: 28px;
  font-weight: 500;
  line-height: 120%;
  margin: 0 0 120px;
  color: #1A162D;
}

.intro__link {
  font-size: 18px;
  font-weight: 500;
  line-height: 140%;
  color: #1A162D;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color .25s;
}

.intro__link svg {
  transition: transform .25s;
  color: #2A2055;
}

.intro__link:hover {
  color: #2A2055;
}

.intro__link:hover svg {
  transform: translateX(4px);
}

/* правая колонка ---------------------------------------------------- */
.intro__right {
  flex: 1 1 62%;
  position: relative;
}

.intro-swiper {
  width: 100%;
  height: 100%;
}

.intro-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* адаптив: < 900 px — колонки одна под другой ----------------------- */
@media(max-width:900px) {
  .intro {
    flex-direction: column;
    height: auto;
  }

  .intro__left {
    flex: none;
    padding: 56px 24px 40px;
  }

  .intro__right {
    height: 320px;
  }
}


/* правая колонка hero-блока */
.intro__right {
  flex: 1 1 62%;
  height: 560px;
  min-width: 0;
  /* ← ключевая строка! */
  position: relative;
}

/* сам слайдер */
.intro-swiper {
  width: 100%;
  height: 100%;
}

/* слайды */
.intro-swiper .swiper-slide {
  width: 100% !important;
}

/* фиксируем ширину */
.intro-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Rankings (grid-верстка) ===== */
.rankings__close {
  /* «контейнер» всей секции */
  margin-inline: auto;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  color: #2A2055;
  /* единый цвет текста */
}

.rankings__item {
  display: grid;
  grid-template-columns: 380px minmax(600px, 1fr);
  column-gap: 60px;
  align-items: start;
}

/* Левая колонка ― SVG + подпись */
.rankings__icon {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  /* 120 % под SVG */
}

.rankings__icon svg {
  width: 180px;
  /* подгоните при необходимости */
  height: auto;
  margin-inline: auto;
}

.rankings__icon figcaption {
  margin-top: 16px;
}

/* Правая колонка ― основной текст */
.rankings__text {
  max-width: 800px;
  /* ограничиваем от «расползания» */
  font-size: clamp(18px, 2vw + 10px, 24px);
  line-height: 1.1;
  /* 110 % */
}

/* ————— Mobile (<= 768 px) ————— */
@media (max-width: 768px) {
  .rankings__item {
    grid-template-columns: 1fr;
    /* одна колонка */
    row-gap: 32px;
  }

  .rankings__icon {
    margin-inline: auto;
  }
}


/* ===== ОБЩЕЕ ===== */
:root {
  --blue-dark: #2A2055;
  --blue-accent: #2A2055;
  --bg-light: #F6F4FC;
  --wrapper: 1100px;
}

.facts-section {
  position: relative;
  z-index: 15;
  background: var(--bg-light);
  padding: 80px 20px;
  /* вертикальный/горизонтальный отступ */
  margin: 0;
}

@media(max-width: 1023px) {
  .facts-wrapper {
    grid-template-columns: 1fr;
  }

  .facts-left {
    justify-content: center;
    text-align: center;
  }
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */
.facts-title {
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.1;
  font-size: clamp(35.2px, 3.3vw, 200px);
  margin: 0 0 32px;
}

.facts-nav {
  display: flex;
  gap: 28px;
  height: 20px;
}

.facts-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: opacity .25s;
  display: block;
}

.facts-btn:hover {
  opacity: .7;
}

/* ===== ПРАВАЯ КОЛОНКА (слайдер) ===== */
.facts-right {
  overflow: hidden;
}

/* прячет «хвост» слайдов */

.fact-item {
  width: clamp(100px, 10vw, 500px);
}


.fact-number {
  margin: 0;
  font-size: clamp(35.2px, 3.33vw, 200px);
  font-weight: 600;
  font-family: 'Wremena';
  color: var(--blue-dark);
  line-height: 1;
}

.fact-number span {
  font-size: .75em;
}

.fact-text {
  margin: 12px 0 0;
  font-size: clamp(18px, 1.55vw, 200px);
  line-height: 1.2;
  color: var(--blue-dark);
  font-weight: 300;
}

/* ===== Swiper «точечно» ===== */
.facts-swiper {
  align-items: flex-start;
  /* чтобы цифры шли ровно по верху */
}

.swiper-wrapper {
  align-items: flex-start;
}




:root {
  --wrapper: 1100px;
  /* уже в коде, просто напоминаю */
}

/* --- раскладка --------------------------------------------------------- */
.facts-wrapper {
  max-width: clamp(200px, 65vw, 1920px);
  margin: 0 90px;
  display: grid;
  grid-template-columns: 2fr 6fr;
  /*  ≈ 350-400px слева  */
  gap: clamp(0px, 30vw, 200px);
}

/* целиком убираем прежний @media — теперь ничего не переламывается   */
/* если очень хочется «резинку», используйте minmax:                  */
/* grid-template-columns: minmax(260px,2fr) 1fr;                      */

/* --- правый блок ------------------------------------------------------- */
.facts-right {
  width: clamp(10px, 60vw, 1500px);
  overflow-x: hidden;
  /* только по X; вертикаль не трогаем         */
}

/* --- левая колонка — мелкие правки ------------------------------------ */
.facts-title {
  font-size: clamp(28.2px, 2.3vw, 200px);
  line-height: 1.1;
  text-align: left;
  color: var(--blue-dark);
  margin: 0 0 32px;
}

/* кнопки */
.facts-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: opacity .25s;
}

.facts-btn svg {
  width: clamp(28px, 5vw, 39px);
  height: clamp(28px, 5vw, 39px);
}

.facts-btn:hover {
  opacity: .7;
}

/* --- карточка-факт ----------------------------------------------------- */

@media(max-width: 1070px) {
  .rankings__item {
    display: grid;
    grid-template-columns: 1fr 16fr;
    column-gap: 20px;
    align-items: start;
  }

  .intro__left {
    max-width: 40%;
  }

  .intro h2 {
    font-size: 2.2rem;

  }

  .facts-wrapper {
    margin: 0 80px;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: clamp(0px, 15vw, 200px);
    /* между блоками*/
  }

  .facts-title {
    width: max-content;
  }

  .facts-right {
  width: clamp(10px, 50vw, 1500px);
  overflow-x: hidden;
  /* только по X; вертикаль не трогаем         */
}
}


@media(max-width: 670px) {
    .facts-wrapper {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: clamp(0px, 25vw, 200px);
    /* между блоками*/
  }
}


@media(max-width: 768px) {
  .intro__close {
    flex-wrap: wrap;
  }

  .intro__left {
    min-width: 100%;
  }

  .rankings__item {
    display: flex;
    flex-direction: column;

  }

  /* 1. контейнер справа просто обрезает всё, что вылезет */
  .facts-right {
    width: clamp(10px, 37vw, 1500px);
    overflow-x: hidden;
    /* ← ключевая строчка */
  }

  /* 2. сам слайдер на всю ширину колонки */
  .facts-swiper {
    width: clamp(10px, 40vw, 1700px);
  }

  .fact-item {
    max-width: 299px;
  }

  .swiper-wrapper {
    /* gap: clamp(5px, -1vw, 800px); */
    flex-wrap: nowrap;
    /* карточки не переносятся вниз */
    align-items: flex-start;
    /* цифры станут на одну высоту */
  }

  .facts-wrapper {
    /* width: clamp(200px, 85vw, 1920px); */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: clamp(0px, 20vw, 200px);
    /* между блоками*/
  }

  @media(max-width: 557px) {
    .facts-right {
      width: clamp(10px, 45vw, 1500px);
      overflow-x: hidden;
      /* только по X; вертикаль не трогаем         */
    }

    .facts-section {
      position: relative;
      z-index: 15;
      background: var(--bg-light);
      padding: 60px 20px;
      /* вертикальный/горизонтальный отступ */
      margin: 0;
    }

    .facts-right {
      width: clamp(10px, 37vw, 1500px);
      overflow-x: hidden;
      /* ← ключевая строчка */
    }

      .facts-title {
    width: min-content;
  }

    .facts-swiper {
      width: clamp(10px, 40vw, 1700px);
    }

    .fact-item {
      max-width: 299px;
    }


    .facts-wrapper {
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 6fr;
      gap: clamp(0px, 15vw, 200px);
    }

  }

  
}
@media(max-width: 476px) {
  .facts-right {
    width: clamp(10px, 60vw, 1500px);
    overflow-x: hidden;
  }

  .facts-swiper {
    width: clamp(10px, 60vw, 1700px);
  }

  .fact-item {
    max-width: 299px;
    margin-left: 1.3vw;
  }

  .facts-section {
    position: relative;
    z-index: 15;
    background: var(--bg-light);
    padding: 60px 0px;
    margin: 0;
  }

  .facts-wrapper {
    margin: 0 20px;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: 10vw;
  }
  .facts-title {
    font-size: clamp(24.2px, 1.3vw, 200px)
  }

}

@media(max-width: 427px) {
  .facts-wrapper {
    margin: 0 20px;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: 7vw;
  }
}

@media(max-width: 397px) {
  .facts-wrapper {
    margin: 0 20px;
    display: grid;
    grid-template-columns: 2fr 6fr;
    gap: 7vw;
  }
}

/* ****** Слайдер с коммьюнити ******* */

.comm-section {
  background: #EEEAFF;
}

.comm-wrapper {
  display: grid;
  grid-template-columns: 50% 50%;
  padding: 100px 120px;
  gap: clamp(5px, 3vw, 100px);
}

.comm-left>p {
  font-family: "Geologica";
  font-weight: 300;
  font-style: light;
  font-size: clamp(18.8px, 2vw, 45px);
  line-height: 110%;
  letter-spacing: -4%;
  display: grid;
  width: clamp(100px, 38vw, 900px);
}

.comm-nav {
  display: flex;
  justify-content: center;
  /* margin-right: 4vw; */
  margin-top: 1vw;
  gap: 1vw;
}

.comm-btn {
  outline: none;
  border: 0;
  background: #EEEAFF;
}

.comm-btn>svg {
  width: clamp(16px, 3.5vw, 39px);
  height: clamp(16px, 3.5vw, 39px);
}


.comm-item>img {
  width: clamp(100px, 38vw, 900px);
  height: clamp(100px, 25vw, 900px);
}

@media(max-width: 850px) {
  .comm-right {
    margin-top: 3vw;
  }

  .comm-wrapper {
    gap: clamp(10px, 8vw, 50px);
  }
}



@media(max-width: 771px) {
  .comm-right {
    margin-top: 3vw;
  }

  .comm-wrapper {
    width: auto;
    gap: clamp(10px, 8vw, 50px);
  }

  .comm-item>img {

    width: 65vw;
    min-width: 5px;
    max-width: max-content;
    height: auto;
    object-fit: contain;

  }

  .comm-btn>svg {
    width: clamp(16px, 7vw, 39px);
    height: clamp(16px, 7vw, 39px);
  }

  .comm-wrapper {
    display: flex;
    text-align: -webkit-center;
    flex-direction: column-reverse;
    gap: clamp(5px, 3vw, 100px);

  }

  .comm-left>p {
    font-family: "Geologica";
    width: clamp(50px, 64.22vw, 900px);
    font-weight: 300;
    font-style: light;
    text-align: center;
    font-size: clamp(18px, 4vw, 45px);
    line-height: 110%;
    letter-spacing: -4%;
    display: grid;
  }


  .comm-nav {
    display: flex;
    justify-content: center;
    margin-right: 0;
    margin-top: 1vw;
    gap: 1vw;
  }
}

@media(max-width: 545px) {
  .comm-wrapper {
    gap: 0;
    padding: 40px 0;
  }

    .comm-left > p {
    font-family: "Geologica";
    width: clamp(50px, 64.22vw, 900px);
    font-weight: 300;
    font-style: light;
    text-align: center;
    font-size: clamp(18px, 4vw, 45px);
    line-height: 110%;
    letter-spacing: -4%;
    display: grid;
  }
}