/* --- БАЗОВЫЕ СТИЛИ (для мобильных устройств) --- */

.main-banner {
    /* На мобильных grid отключаем, используем обычный поток документа */
    display: block;
    width: 100%;
}

/* Ограничиваем максимальную ширину секции под контент сайта */
.banner-wrapper {
    max-width: 1200px; /* Замените на вашу ширину .content или $container-max-widths */
    margin: 0 auto;
    padding: 0 15px; /* Внутренние отступы от краев экрана */
}

.main-banner-card {
    border-radius: 30px;
    color: var(--color-black);
    background-color: var(--color-darkblue);
    overflow: hidden;
    position: relative;
    height: 329px; /* Фиксированная высота для мобильной версии */
    margin-bottom: 16px; /* Отступ между блоками друг под другом */
    display: flex;
    align-items: center;
}

/* Последняя карточка без нижнего отступа */
.main-banner-card-4 {
    margin-bottom: 0;
}

.main-banner-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.main-banner-card-1 .main-banner-card-text {
    padding: 100px 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--color-darkred);
    font-size: 18px;
    color: var(--color-white)
}

.main-banner-card-2 h2, .main-banner-card-2 h2 span, .main-banner-card-1 h2, .main-banner-card-1 h2 span {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: bold;
}

.main-banner-card-2 .main-banner-card-text, .main-banner-card-3 .main-banner-card-text, .main-banner-card-4 .main-banner-card-text {
    padding: 30px
}
.main-banner-card-3 {
  font-size: 16px;
}
.main-banner-card-3 h2, .main-banner-card-3 h2 span {
  font-size: 30px;
  text-transform: uppercase;
  font-weight: bold;
}

.main-banner-card-4 h2, .main-banner-card-4 h2 span {
  font-size: 22px;
  text-transform: uppercase;
  font-weight: bold;
}

.main-banner-card-4 {
  background: var(--color-grey);
}


.main-card-title {
  font-size: 20px;
  text-transform: lowercase;
  margin: 0 0 5px 0;
}

.main-card-title span {
  text-transform: capitalize;
}


.main-banner-card-4 .main-banner-card-text {
  text-align: center;
}


/* --- АДАПТИВНАЯ СЕТКА (для планшетов и десктопов) --- */

@media (min-width: 1024px) { /* Точка перехода обычно совпадает с шириной вашего content */

    .main-banner {
        display: grid;
        /* Левая колонка 1 часть, правая зона делится на две части по 1fr каждая (итого ширина правой зоны = 2 из 4 частей) */
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: 658px 329px;
        gap: 10px;
        width: 100%; /* Растягивается внутри ограничивающего контейнера .banner-wrapper */
    }

    /* Убираем внешние отступы у карточек, так как теперь ими управляет сетка */
    .main-banner-card {
        margin-bottom: 0;
        height: auto; /* Высота будет определяться строкой грида */
    }

    /* Блок 1: Вертикальный слева (занимает обе строки первой колонки) */
    .main-banner-card-1 {
        grid-area: 1 / 1 / 3 / 2;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Блок 2: Широкий сверху справа (колонки 2 и 3 в первой строке) */
    .main-banner-card-2 {
        grid-area: 1 / 2 / 2 / 4;
        justify-content: space-between;
    }

    /* Блок 3: Нижний левый в правой зоне (вторая строка, вторая колонка) */
    .main-banner-card-3 {
        grid-area: 2 / 2 / 3 / 3;
        justify-content: space-between;
    }

    /* Блок 4: Нижний правый (вторая строка, третья колонка) */
    .main-banner-card-4 {
        grid-area: 2 / 3 / 3 / 4;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}



/** ВТРОЙ БЛОК **/

.item-two-block {
    box-sizing: border-box; /* Чтобы паддинги не увеличивали ширину блока сверх 50% */
    background-color: var(--color-darkblue);
    padding: 20px;
    margin-bottom: 20px;
    min-height: 100px; /* Для наглядности */
    border-radius: 30px;
    min-height: 300px;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: rgba(86, 106, 213, 0.12) 0px 24px 56px;    
}

.item-two-block h3 {text-transform: uppercase;font-size: 36px;}

/* Отступы между колонками (имитация gap) */
.item-two-block:nth-child(odd) {
    margin-right: 20px;
}


.item-two-block-1:before,  .item-two-block-2:before,  .item-two-block-3:before,  .item-two-block-4:before{
  content: ""; /* Без этого свойства элемент не создастся */
display: block;

/* Размеры самого блока под картинку — измените под свои нужды */
width: 60px;
height: 60px;

/* Подключение изображения */

background-repeat: no-repeat;
background-size: cover; /* Или contain, если нужно вписать картинку целиком */
background-position: center;

/* Позиционирование согласно вашему запросу */
position: absolute;
top: 10px;   /* Отступ от верхнего края родителя */
right: 20px; /* Отступ от правого края родителя */
}
.item-two-block-1:before {
  background-image: url('https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/07/i1.webp'); /* Укажите путь к вашей картинке */
}
.item-two-block-2:before {
  background-image: url('https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/07/i2.webp'); /* Укажите путь к вашей картинке */
}
.item-two-block-3:before {
  background-image: url('https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/07/i3.webp'); /* Укажите путь к вашей картинке */
}
.item-two-block-4:before {
  background-image: url('https://xn--b1ahfc9aj.xn--p1acf/wp-content/uploads/2026/07/i4.webp'); /* Укажите путь к вашей картинке */
}




/**приемущество**/


/* Главный блок — переключаем на GRID */
.pr {
    display: grid;
    /* Создаем две колонки равной ширины.
       На мобильных устройствах это превратится в одну колонку через медиа-запрос ниже */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; /* Расстояние между всеми блоками */
}

/* Стили для каждого блока pr1, pr2... */
.pr div {
    position: relative;
    /* Меняем направление флекса ВНУТРИ блока, чтобы текст был слева, а иконка справа */
    align-items: center;
    min-height: 140px;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* Стили для иконки */
.pr div img {
    display: block;

    width: 80px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    margin-bottom: 20px;
}

.block-about {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 26px;
    gap: 54px;

    background: var(--color-white);
    box-shadow: 0px 24px 56px rgba(86, 106, 213, 0.12);
    border-radius: 24px;
    flex: none;
    font-size: 14px;
    flex-grow: 0;
    width: 80%;
    margin: 0 auto
}


.about-text {
  color: var(--color-darkblue);
}


.rev {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    background: var(--color-grey);
    border-radius: 30px;

    -webkit-box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
    box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0 1px 5px 0 rgb(0 0 0 / 20%);
}
.round, .round img {

}

.heaotz {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;

}

.heaotz .size-full {
    width: 90px;
}
.heaotz .data {
    color: var(--color-grey);
    font-size: 12px;
    font-weight: normal;
}
.heaotz a {
    font-size: 12px;
    font-weight: normal;
    text-transform: lowercase;
}

.rev p {
  font-size: 14px;
}

.kl {
  display: flex;
  gap: 40px
}


/* АДАПТИВ: Мобильная версия (один блок на всю ширину) */

@media (max-width: 768px) {
    .pr {
        /* На смартфонах превращаем сетку в одну колонку */
        grid-template-columns: 1fr;
    }

    .pr div {
        min-height: 55px;
        flex-direction: row;
        gap: 30px;
        display: flex;
        justify-content: flex-start;
    }

    /* Текстовый блок — именно ему задаем ширину */
    .text-pr {
        flex-basis: 0; /* Позволяет блоку расти и занимать свободное место */
        flex-grow: 1;  /* Главное правило: этот блок займет всё доступное пространство до картинки */

        /* Ограничиваем минимальную ширину, чтобы текст не был слишком узким */
        min-width: 200px;

        font-size: 16px;
        line-height: 1.4;
        color: #000;
        text-align: left!important;
        box-sizing: border-box;
        padding-right: 20px; /* Отступ от правой границы, чтобы текст не прилипал к картинке */
    }

    /* Иконка */
    .pr div img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        flex-shrink: 0; /* Запрещаем картинке уменьшаться */
    }

    .item-two-block h3  {font-size: 24px}

    .item-two-block-1:before,  .item-two-block-2:before,  .item-two-block-3:before,  .item-two-block-4:before{
      top: 5px;   /* Отступ от верхнего края родителя */
      right: 10px; /* Отступ от правого края родителя */
      width: 30px;height:30px;
    }
    .main-banner-card-1 {
      height: 600px
    }
    .main-banner-card-2 h2, .main-banner-card-2 h2 span, .main-banner-card-1 h2, .main-banner-card-1 h2 span {
        font-size: 30px;
        text-transform: uppercase;
        font-weight: bold;
    }


    .block-about {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 50px;
      }

}
@media (max-width: 575.98px) {
  .main-banner-card-2 h2, .main-banner-card-2 h2 span, .main-banner-card-1 h2, .main-banner-card-1 h2 span {
      font-size: 22px;
      text-transform: uppercase;
      font-weight: bold;
  }
  .main-banner-card-3 h2, .main-banner-card-3 h2 span {
      font-size: 22px;
      text-transform: uppercase;
      font-weight: bold;
  }
  .main-banner-card-text p {font-size: 16px}

  .main-banner-card-2, .main-banner-card-3 {
    display: flex;
    flex-direction: column;
    height: 800px;
  }

}


.about-img img {
  width: 100px;
}
