body {
  	position: relative;
    overflow-x: hidden;
   }
  .start_study_button {
      background-color: red;
      padding:0px 20px;
      box-shadow: 0 0 5px cyan;
      transition: 0.3s;
  }

  @media (max-width: 768px) {
    .carousel-inner img {
        width: 100%;
          transform: scale(1.3);
        z-index: 10;
        padding-bottom:30px ;
        padding-top:30px ;
}
}


  .course_hover {
  position:relative;
  opacity: 1;
  transition: 0.5s;

  }
  .course_hover:hover {
  transform: scale(1.1);
  z-index:1;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Тень внизу */
      cursor: pointer;
  }

 div.gallery {
  border: 1px solid #ccc;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 10px;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 700px;
    z-index: -2;
}

.header0{
    font-size:40px;
}

.header0_1{
    color: #0066cc; /* Синий цвет для заголовков */
    text-align: center;
    justify-content: center;
    font-size:60px;
}

  	#section3 {
        width: 1000px;
        margin: 10px auto;
        background: white;
    }

    .steps-container {
      max-width: 100%;
      margin: 50px auto;
      padding: 20px;
    }


    .steps-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
    }


    .step {
    text-align: center;
    border:2px solid grey;
    padding: 30px;
    border-radius: 8px;
    background-color: #f1f1f1;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1); /* Тень снизу и справа */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    }

    .step:hover {
      box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.4); /* Увеличиваем тень снизу и справа */
      cursor:pointer;
      transform: translateY(-5px);
    }

        /* Стили для заголовков */
    .step-title {
      font-family: 'Arial', sans-serif;
      font-size: 1.8em;
      color: #0066cc; /* Синий цвет для заголовков */
      margin-bottom: 15px;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: bold;
    }

    /* Стили для описаний */
    .step-description {
      font-family: 'Verdana', sans-serif;
      font-size: 1em;
      color: #333;
      margin-bottom: 20px;
    }

    .step h2 {
      font-size: 24px;
      margin-bottom: 15px;
    }

    .step p {
      font-size: 16px;
      margin-bottom: 20px;
      color: #555;
    }

    .step button {
      background-color: #3498db;
      color: white;
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .step button:hover {
      background-color: #2980b9;
    }

    @keyframes slideInFromLeft {
      0% { opacity: 0; transform: translateX(-100%); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes slideInFromRight {
      0% { opacity: 0; transform: translateX(100%); }
      100% { opacity: 1; transform: translateX(0); }
    }



 @media (max-width: 768px) {
    /*.responsive {*/
    /*    width: 700px;*/
    /*    margin: 0px 0;*/
    /*}*/
      #section3{
        position: relative;
        width: 100%;
        padding: 5px 5px;
        /*z-index: -1;*/
        margin: 0;
    }

    .steps-grid {
        display: grid;
        gap: 5px;
        grid-template-columns: 1fr;
    }

    .steps-container {
        position: relative;
        width: 100vw;
        max-width: 100%;
        padding: 20px 5px;
        margin: 30px auto;
        overflow: hidden;

    }
    .step {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
      #words-container {
          position: absolute;
          width: 100%;
          max-width: 100%;
          height: 100%;
          filter: blur(1px);
  }

}

/*@media only screen and (max-width: 500px) {*/
/*  .responsive {*/
/*	width: 500px!important;*/
/*  }*/
/*  #section3{*/
/*      width: 500px;*/
/*      padding: 10px;*/
/*      z-index: -1;*/
/*  }*/

/*    .step {*/
/*    padding: 15px 5px;*/
/*    text-align: center;*/
/*    border:2px solid grey;*/
/*    width: 470px;*/
/*    margin-top:20px;*/
/*    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1); !* Тень снизу и справа *!*/
/*    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;*/
/*    background-color: rgba(255, 255, 255, 0.9);*/
/*    }*/

/*}*/


    /* Анимации */
    .step-left {
      animation: slideInFromLeft 1s forwards;
    }
    .step-right {
      animation: slideInFromRight 1s forwards;
    }



  #words-container {
      position: absolute;
      filter: blur(1px);
      max-width: 100vw;
  }

  .floating-word {
	position: absolute;
	font-size: 24px;
	font-weight: bold;
	color: grey;
	user-select: none;
	white-space: nowrap;
	transition: left 10s linear, top 10s linear;

  }

    #background_9 {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
     filter: blur(3px);
      z-index: -1;

    }



.navheader {
    background-color:rgb(29,73,153)!important;
    box-shadow:-10px -5px 7px rgba(0, 0, 0, 0.3)!important;
    color:white!important;

    height: 450px; /* Установим высоту, учитывая дополнительное пространство */

    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,288L120,282.7C240,277,480,267,720,245.3C960,224,1200,192,1320,176L1440,160L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'></path></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,288L120,282.7C240,277,480,267,720,245.3C960,224,1200,192,1320,176L1440,160L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'></path></svg>");

    -webkit-mask-size: cover;
    mask-size: cover;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: bottom;
    mask-position: bottom;
    padding-top:40px;
}

@media (max-width: 768px) {
    .navheader {
        height: 750px !important;
    }
}

#section1 {
    position: relative;
    padding:100px 20px;
    margin-top:-50px;
    background-color:rgb(113,145,204);
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%230099ff' fill-opacity='1' d='M0,320L1440,288L1440,0L0,0Z'></path></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='%230099ff' fill-opacity='1' d='M0,320L1440,288L1440,0L0,0Z'></path></svg>");
    /*-webkit-mask-size: 120% 120%; !* Увеличиваем размер маски *!*/
    /*mask-size: 120% 120%;*/
        -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    z-index: 5;
}



#section2 {
    position: relative;
    margin-top:50px;
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='white' d='M0,256L120,266.7C240,277,480,299,720,298.7C960,299,1200,277,1320,266.7L1440,256L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'></path></svg>");
      mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='white' d='M0,256L120,266.7C240,277,480,299,720,298.7C960,299,1200,277,1320,266.7L1440,256L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z'></path></svg>");
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
    z-index: 4;
}


.course_hover {
  overflow: hidden; /* обрежет тень и фон строго по скруглению */
}

.button_buy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 10px cyan;
  transition: 0.3s;
  padding: 0.9rem 2.5rem; /* можно заменить на py/px от Bootstrap */
}

.button_buy:hover {
  box-shadow: 0 0 20px cyan;
}

/*стили для рейтинга*/


.pedestal-container {
    position: relative;
    display: inline-block;
    padding: 30px;
    border-radius: 30px;
    background-color: #fae5b6;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border: 30px solid #b38b59;

}

.pedestal-container::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: linear-gradient(45deg, #e6c88b, #b38b59);
    z-index: -1;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
}

.pedestal {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    background-color: #fae5b6;
}

.student-card {
    position: relative;
    width: 160px;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.3);
    height: auto;
    min-height: 200px; /* Минимальная высота */
    max-height: 520px; /* Максимальная высота */
}

.student-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
}

.place-1 { background: linear-gradient(45deg, #FFD700, #FFA500);}
.place-2 { background: linear-gradient(45deg, #FFA500, #FF4500);}
.place-3 { background: linear-gradient(45deg, #FF0000, #B22222);}
.place-4 { background: linear-gradient(45deg, #4682B4, #4169E1);}
.place-5 { background: linear-gradient(45deg, #8A2BE2, #6A5ACD);}

.student-name {
    font-size: 18px;
    margin-top: 10px;
}

.student-rank {
    font-size: 16px;
}
.pedestal-mobile {
    display: none;
}
/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .pedestal{
        display: none;
    }
    .pedestal-mobile {
        display: inline-block;
        flex-direction: column; /* Вертикальное расположение */
        align-items: center;
        width: 100%;
    }
    .student-card {
        width: 100%;
        max-width: 100%;
        margin-top:10px;
    }
}








#section6 {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9; /* Цвет фона для видимой части блока */
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

#masked-block {
    font-family: 'Roboto', sans-serif;
    background-color: rgb(15,143,129);
    text-align: center;
    margin-top:-300px;
    padding: 40px;
    height: 600px; /* Высота блока для демонстрации */
    color: white;
    position: relative;
    z-index: -1;

    /* Маска с 5 ступеньками */
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,0L0,160L288,160L288,192L576,192L576,256L864,256L864,192L1152,192L1152,160L1440,160L1440,0L1152,0L1152,0L864,0L864,0L576,0L576,0L288,0L288,0L0,0Z'></path></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,0L0,160L288,160L288,192L576,192L576,256L864,256L864,192L1152,192L1152,160L1440,160L1440,0L1152,0L1152,0L864,0L864,0L576,0L576,0L288,0L288,0L0,0Z'></path></svg>");
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: bottom;
    mask-position: bottom;
}


.reviews-rev {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    border-radius: 30px;
    box-sizing: border-box;
    overflow: visible; /* НЕ обрезаем содержимое */
}

.review-slide-rev {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 249, 237);
    padding: 20px 40px; /* горизонтальный отступ */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    border: 5px solid grey;
    border-radius: 30px;
    height: auto;
    overflow: visible; /* НЕ обрезаем текст */
}

@media (max-width: 768px) {
  .reviews-rev {
    max-width: 100%;
    padding: 10px;
    border-radius: 15px;
  }

  .review-slide-rev {
    width: 100%;
    padding: 20px 16px;
    border-width: 2px;
    border-radius: 15px;
    height: auto;
    overflow: visible;
  }

  .review-text-rev {
    font-size: 16px;
    text-align: left;
    padding: 20px 0;
    word-break: break-word;
  }

  .slider-prev-rev,
  .slider-next-rev {
    width: 30px;
    height: 80px;
    font-size: 24px;
  }

  #section8 img {
    width: 90px;
    height: 90px;
  }
}

.review-text-rev {
    font-style: italic;
    font-size: 20px;
    color: #555;
    margin-bottom: 10px;
    padding-top: 60px;
    text-align: center;
}

.review-content-rev {
    text-align: center;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-author-rev {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.review-date-rev {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

.slider-rev {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

.slider-prev-rev, .slider-next-rev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 200px;
    background-color: rgba(51, 51, 51, 0.1);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
    border-radius: 10px;
}

.slider-prev-rev:hover, .slider-next-rev:hover {
    background-color: rgba(51, 51, 51, 1);
}

.slider-prev-rev { left: 10px; }
.slider-next-rev { right: 10px; }

#section8 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    padding: 40px;
    background-color: rgb(243,185,79);
}

#section8 img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-top: 20px;
    max-width: 100%;
}





#section5{
    background-color:rgb(35,107,100);
      min-height: 700px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 24px;
      font-family: Arial, sans-serif;
     -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,66L120,50C240,34,480,2,720,2C960,2,1200,34,1320,50L1440,66L1440,320L0,320Z'></path></svg>");
      mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='black' d='M0,66L120,50C240,34,480,2,720,2C960,2,1200,34,1320,50L1440,66L1440,320L0,320Z'></path></svg>");
      -webkit-mask-size: cover;
      mask-size: cover;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-position: top;
      mask-position: top;
     z-index: 1;
    }


.speak_club_container {
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    padding: 30px;
}

.start_club {

    display: inline-block;
    padding:20px 80px;
    margin-top:50px;
    font-size: 24px;
    background-color: rgb(26,79,74);
    border-top:1px solid rgb(58,179,167)!important;
    border-left:1px solid rgb(58,179,167)!important;
    border-bottom:1px solid rgb(18,54,50)!important;
    border-right:1px solid rgb(18,54,50)!important;

    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.start_club:hover {
    border:1px solid rgb(18,54,50)!important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transform: translateY(4px);
}

#section4 {
    background-color: white; /* Светлый голубой фон */
    font-family: Arial, sans-serif;
}
@media (max-width: 768px) {
    #section4{
        overflow: hidden;
    }
}
.gif-image1 {
    width:800px;
    max-width: 100%; /* Чтобы гифы не выходили за пределы контейнера */
    margin-top:-150px;
}
@media (max-width: 768px) {
    #row2{
        overflow: hidden;
        padding-bottom: 200px;
    }
    .gif-image1{
        margin-top:80px;
        transform: scale(1.8);
    }
}

.gif-image2{
        max-width: 100%; /* Чтобы гифы не выходили за пределы контейнера */
        width:800px;
        margin-top:-20px;
        position: relative;
}

@media (max-width: 768px) {
    #row3{
        /*margin-top: 200px;*/
        /*overflow: hidden;*/
    }
    .gif-image2{
        margin-top:80px;
        transform: scale(1.5);
    }
}

.gif-image3{
        max-width: 100%; /* Чтобы гифы не выходили за пределы контейнера */
        width:700px;
        margin-top:-60px;
        margin-left:50px;
}
@media (max-width: 768px) {
    #row5{
        margin-top: 150px;
        overflow: hidden;
    }
    .gif-image3{
        margin-top:50px;
        margin-left: -10px;
        transform: scale(1.1);
        padding-bottom: 50px;
    }
}
.text-box {
  background-color:rgb(29,73,153); /* Светлый голубой фон для текста */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color:white;
}
.text-box h3 {
  color: white; /* Темный голубой для заголовков */
}
.text-box p {
  color: white; /* Темный цвет текста */
}

.wave-div {
    position: relative;
    margin-bottom: -10px;
    background-color: rgb(9, 41, 99); /* Цвет фона */
    height: 350px; /* Высота блока */
    width: 100%; /* Ширина на весь экран */
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><path fill='white' d='M0,288L80,293.3C160,299,320,309,480,298.7C640,288,800,256,960,213.3C1120,171,1280,117,1360,90.7L1440,64L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'></path></svg>");
    mask-size: cover;
    mask-repeat: no-repeat;
    mask-position: bottom;
}


.navbar-toggler-icon {
    width: 100px!important;  /* Устанавливаем ширину */
    height: 100px!important; /* Устанавливаем высоту */
    background-color: white!important;  /* Меняем цвет */
}


/* Стили для контейнера СТАТЬИ */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height:700px;
    }

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.article-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}


.article-content {
    padding: 15px;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.article-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    font-weight: bold;
}

.article-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.article-link {
    display: inline-block;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.article-link:hover {
    color: #0056b3;
}
#section7 {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white !important;
    z-index: 1;
    position: relative; /* или absolute, если нужно */
}
@media (max-width: 768px) {
    .article-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
}




.section_img{
    position: relative;
    height: 1000px;
    width: 100%;
    background-color: white;
    margin:0px;
}

.text-column{
    position: absolute;
    top:50%;
    right:20px;
    transform: translateY(-50%); /* вертикальное центрирование */
    width: 50%;
    z-index: 2;
    max-height: 100%; /* не выше родителя */
    padding: 20px;

}
.img-text {
    background-color: rgba(255, 255, 255, 0.8);
    height: auto; /* Высота блока подстраивается под контент */
    margin: 0;
    border-radius: 30px;
    overflow-y: auto; /* если контента будет много */

}

.image-column{
position: relative;
        padding: 0;
    margin-top:-300px;
}
.image-column div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

@media (max-width: 767px) {
    .section_img{
        position: relative;
        top:-120px;
        margin-bottom: -140px;
        padding: 0px;
    }

    .text-column {
        position: absolute;
        left: 0;
        margin-top: 2%;
        width: 100%;
        z-index: 2;
    }

    .img-text {
        background-color: rgba(255, 255, 255, 0.8);
        width: 100%;
        height: auto; /* Высота блока подстраивается под контент */
        margin: 0;
    }

    .image-column {
        display: flex;  /* Убираем flex-direction */
        flex-direction: column; /* Картинка и текст идут друг за другом */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .image-column div {
        height: 130vh;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: 1;
        width: 100%;
        padding: 0;
        margin: 0;
    }
}


/* ===== Promo Reels ===== */
:root { --bs-primary: #1d6efd; }

/* убираем нативные контролы у видео в этой секции */
#promo-reels .reel-media video::-webkit-media-controls,
#promo-reels .reel-media video::-webkit-media-controls-enclosure,
#promo-reels .reel-media video::-webkit-media-controls-panel,
#promo-reels .reel-media video::-webkit-media-controls-play-button,
#promo-reels .reel-media video::-webkit-media-controls-timeline,
#promo-reels .reel-media video::-webkit-media-controls-current-time-display,
#promo-reels .reel-media video::-webkit-media-controls-time-remaining-display,
#promo-reels .reel-media video::-webkit-media-controls-seek-back-button,
#promo-reels .reel-media video::-webkit-media-controls-seek-forward-button,
#promo-reels .reel-media video::-webkit-media-controls-mute-button,
#promo-reels .reel-media video::-webkit-media-controls-volume-slider,
#promo-reels .reel-media video::-webkit-media-controls-fullscreen-button,
#promo-reels .reel-media video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* базовая сетка */
#promo-reels .reels-wrap { position: relative; overflow: visible; }
#promo-reels .reels-slider { position: relative; z-index: 1; overflow: visible; }

/* карточка и медиа */
#promo-reels .reel-card { padding: 8px; }
#promo-reels .reel-media{
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  background: #000;
}
#promo-reels .reel-media video{
  width:100%; height:100%; object-fit: cover; display:block;
}

/* кнопка play */
#promo-reels .reel-play{
  position:absolute; inset:auto auto 12px 12px;
  width:46px; height:46px; border:none; border-radius:50%;
  background: rgba(0,0,0,.45); cursor:pointer;
}
#promo-reels .reel-play::before{
  content:""; position:absolute; inset:0; margin:auto;
  width:0; height:0; border-left:14px solid #fff;
  border-top:9px solid transparent; border-bottom:9px solid transparent;
  transform: translateX(2px);
}
#promo-reels .reel-play:hover{ background: rgba(0,0,0,.6); }

/* точки slick */
#promo-reels .slick-dots li button:before{ color:#fff; opacity:.35; }
#promo-reels .slick-dots li.slick-active button:before{ opacity:.9; }

/* большие стрелки */
#promo-reels .reels-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index: 50;                    /* выше всего */
  border:0; background:transparent; padding:0;
  width:14%; height:100%;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none;            /* кликается только круг */
}
#promo-reels .reels-prev{ left:0; }
#promo-reels .reels-next{ right:0; }

#promo-reels .reels-nav .circle{
  pointer-events:auto;
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
#promo-reels .reels-nav i{
  font-size: 2rem; color: var(--bs-primary); line-height: 1;
}
#promo-reels .reels-nav:hover .circle{
  transform: scale(1.06); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* адаптив */
@media (max-width: 576px) {
  #promo-reels .reels-nav{ width:20%; }
  #promo-reels .reels-nav .circle{ width:48px; height:48px; }
  #promo-reels .reels-nav i{ font-size:1.6rem; }
}
@media (max-width: 420px){
  #promo-reels .reel-media{ width: 86vw; }
}



/* ==== BLOCK_SOCIAL: утопленные иконки на синем фоне ==== */
/* FULL-BLEED + V-НИЗ БЕЗ ШВА */
#block_social{
  --bg1:#0f3e97;           /* верх градиента */
  --bg2:#0b2f74;           /* низ градиента  */
  --skirt-h: 70px;        /* глубина треугольника */

  background: linear-gradient(160deg,var(--bg1),var(--bg2)) !important;
  color:#dbeafe;
  text-align:center;
  position:relative;
  z-index:0;

  /* внутри контейнеров bootstrap делаем «на весь экран» */
  width: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* отступы: снизу добавляем место = глубине V */
  padding: clamp(16px,3vw,36px) min(4vw,40px) calc(clamp(16px,3vw,36px) + var(--skirt-h));

  /* вырезаем V-низ у самой секции — градиент остаётся единым */
  clip-path: polygon(
    0 0, 100% 0,
    100% calc(100% - var(--skirt-h)),
    50% 100%,
    0   calc(100% - var(--skirt-h))
  );

    margin-top: 0 !important;
    /* верни обычный верхний паддинг, чтобы всё не прилипало */
    padding-top: clamp(16px, 3vw, 36px) !important;
    .section_img > *:last-child{ margin-bottom: 0 !important; }
}

/* на всякий случай: если браузер не умеет clip-path, просто покажем прямой низ */
@supports not (clip-path: polygon(0 0,100% 0,100% 90%,50% 100%,0 90%)){
  #block_social{ clip-path:none; }
}

#block_social .engraved-strip{
  --icon: clamp(46px, 6vw, 80px); /* размер иконки (xs→lg) */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
  justify-items: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 28px);
}
@media (min-width:576px){ #block_social .engraved-strip{ grid-template-columns: repeat(4, 1fr); } }
@media (min-width:768px){ #block_social .engraved-strip{ grid-template-columns: repeat(5, 1fr); } }

#block_social .engraved-link{
  text-decoration: none !important;
  outline: none;
  padding: clamp(6px, 1.4vw, 12px); /* чуть больше площадь клика */
  border-radius: 12px;               /* мягкое сглаживание клика (не фон!) */
  /* никаких фонов, чтобы казалось, что «вырезано» прямо в фоне секции */
}

#block_social .engraved-link i{
  font-size: var(--icon);
  line-height: 1;
  color: white;
  /* эффект утопления (debossed): тень сверху-слева и блик снизу-справа */
  text-shadow:
    -2px -2px 3px rgba(0, 0, 0, 0.55),   /* тень вреза сверху-слева */
     2px  2px 3px rgba(255,255,255,0.12),/* нижний/правый блик */
    -1px -1px 1px rgba(0, 0, 0, 0.35),
     1px  1px 1px rgba(255,255,255,0.08);
  transition: transform .15s ease, filter .15s ease, color .15s ease, text-shadow .15s ease;
}

/* ховер: слегка «всплывает», но остаётся в общей эстетике */
#block_social .engraved-link:hover i,
#block_social .engraved-link:focus-visible i{
  color: var(--ink-hover);
  transform: translateY(-1px);
  text-shadow:
    -1px -1px 1px rgba(0,0,0,0.45),
     1px  1px 2px rgba(255,255,255,0.18),
     0    4px 8px rgba(0,0,0,0.25); /* лёгкая внешняя тень для акцента */
}

/* если ранее у тебя был класс white-background, он мог перебивать фон:
   на всякий случай перекрываем его в контексте #block_social */
#block_social.white-background{
  background: linear-gradient(160deg, var(--bg1), var(--bg2)) !important;
}


/* --- 1) Мобильная центровка последней строки --- */
/* на xs переключаемся на flex-wrap и центрируем каждую линию */
@media (max-width: 575.98px){
  #block_social .engraved-strip,
  #block_social .grid{
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;       /* центр каждой строки, в т.ч. последней с 2 иконками */
    gap: 14px 24px;                /* row-gap / column-gap */
  }
  #block_social .engraved-strip > a,
  #block_social .grid > a{
    flex: 0 0 auto;                /* фикс. ширина по контенту, не растягиваемся */
  }
}

/* --- убираем белый зазор над #block_social --- */
:root{ --social-lift: clamp(16px, 3.5vw, 56px); }  /* сколько подтягивать */

#block_social{

}
#block_social > *:first-child{
  margin-top: 0 !important;          /* на всякий случай */
}

/* если у тебя мобильный ряд иконок переключается на flex (центр последней строки) */
@media (max-width: 575.98px){
  #block_social .engraved-strip,
  #block_social .grid{
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
  }
  #block_social .engraved-strip > a,
  #block_social .grid > a{
    flex: 0 0 auto;
  }
}


