@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap');


*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

.black-18px{
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

.black-16px{
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #000000;
}

.black-18px-lh155{
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 155%;
}

.blue-18px{
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #152650;
}

.black-20px{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
}

.black-19px{
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 170%;
}

.black-19px-light{
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 300;
    text-decoration: underline;
    color: #000000;
}

.black-22px{
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 500;
}

.black-28px{
    font-family: "Inter", sans-serif;
    font-size: 28px;
    font-weight: 500;
}

.logo-font{
    font-family: "Literata", serif;
    font-size: 28px;
    font-weight: 400;
    color: #000000;
}

.white-33px{
    font-family: "Inter", sans-serif;
    font-size: 33px; 
    font-weight: 500;
    color: white;
    line-height: 150%;
}

.white-20px{
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: white;
    line-height: 150%;
}

.white-19px{
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 400;   
    color: white;
}


.wrapper{
    max-width: 1172px;
    padding-inline: 16px;
    margin: 0 auto;
}

h1{
    white-space: nowrap;
}

.header-container, .footer-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 33px 0;
}

.header-container>ul>li>a:hover, .footer-container>ul>li>a:hover, .header-container>ul>li:hover, .footer-container>ul>li:hover{
    color: #152650;
    transition: 0.2s;
    cursor: pointer;
}   

.header-container>ul, .footer-container>ul {
    display: flex;
    justify-content: space-between;
    width: 562px;
}

header{
    box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}

.main{
    background-image: url('/assets/images/main-bg.png');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding-bottom: 140px;
}

.main-container{
    display: flex;
    padding-top: 75px;
    justify-content: space-between;
}

.btn-white{
    padding: 27px 60px;
    background-color: white;
    border: none;
    box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
    border-radius: 12px;
}

.btn-white:hover{
    opacity: 0.8;
    transition: 0.3s;
    cursor: pointer;
}

.main-container-right{
    padding-top: 50px;
    width: 572px;
    margin-right: 20px;
}

.main-container-right>p{
    margin: 55px 0 125px 0;
    width: 92%;
}

.help-cards{
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.help-card{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.help{
    margin-top: 65px;
}

.help-cards{
    margin-top: 60px;
}

.help-card>p{
    margin-top: 40px;
}

.about-me{
    margin-top: 120px;
}

.about-me>h3{
    margin-bottom: 40px;
}

.read-more{
    cursor: pointer;
}

.certificates{
    margin-top: 100px;
}

.certificates>h3{
    margin-bottom: 50px;
}

 .cert-slider-wrapper {
    position: relative;
  }

  .cert-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 16px;
    scrollbar-width: none; /* Firefox */
  }
  .cert-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .cert-item {
    flex: 1 0 calc(35% - 16px);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 266px;
  }

  .cert-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* кнопки */
  .cert-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #111;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    z-index: 10;
  }
  .cert-prev { left: -23px; }
  .cert-next { right: -23px; }

.articles{
    margin-top: 120px;
}

.articles-top, .video-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.articles-cards{
    display: grid;
    grid-template-columns: repeat(4, 0fr);
    justify-content: space-between;
}

.articles-card>p, .video-card>p{
    margin-top: 10px;
}

.articles-card>img{
    width: 260px;
    height: 175px;
    object-fit: cover;
}

.video-cards{
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    justify-content: space-between;
}

.video-card>img{
    border-radius: 12px;
    width: 355px;
    height: 200px;
    object-fit: cover;
}

.videos{
    margin-top: 100px;
}

.contacts{
    margin-top: 120px;
    margin-bottom: 120px;
}

.contacts-block{
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;    
    background-image: url('/assets/images/main-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    max-width: 964px;
    height: 430px;
    border-radius: 12px;
    background-position: center;
    padding-inline: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}

.contacts-block-inner{
    display: grid;
    grid-template-columns: repeat(2, 0fr);
    justify-content: space-between;
    row-gap: 55px;
    width: 783px;
}

.btn-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.a-contacts{
    padding-left: 91px;
    background-color: transparent;
    border: 3px solid white;
    border-radius: 52.5px;
    height: 80px;
    width: 359px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.pd-l{
    padding-left: 111px
}

.circle-logo{
    width: 79px;
    height: 79px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #152650;
    border-radius: 50%;
    border: 3px solid white;
    margin-right: -79px;
}

footer{
    border-top: 2px solid #C5C5C5;
}

.video-top>h2:hover, .articles-top>a:hover{
    cursor: pointer;
    color: #152650;
    transform: 0.3s;
}

.articles-card:hover, .video-card:hover{
    cursor: pointer;
}

.a-contacts:hover{
    opacity: 0.85;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 1000;
}

.overlay img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
      animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to   { opacity: 1; transform: scale(1); }
}

.allarcticles{
    background-image: url('/assets/images/main-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 30px;
    padding-bottom: 60px;
    padding-inline: 16px;
}

.allarticles-inner{
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 30px 60px 30px;
    max-width: 1140px;
}

.allarticles-inner>p{
    margin-top: 40px;
}

.allarticles-cards{
    display: grid;
    grid-template-columns: repeat(4, 0fr);
    justify-content: space-between;
    row-gap: 35px;
    margin-top: 30px;
}

.allarticles-card>img{
    border-radius: 12px;
    width: 250px;
    height: 168px;
    object-fit: cover;
}

.allarticles-card>p{
    margin-top: 10px;
}

.allarticles-card{
    cursor: pointer;
}

.articles-inner{
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 50px 60px 50px;
    max-width: 1140px;
}

.articles-inner>p{
    margin-top: 40px;
}

.articleName{
    max-width: 1080px;
    min-width: 1080px;
    height: 200px;
}
.articleText{
    max-width: 1080px;
    min-width: 1080px;
    height: 400px;
    padding: 8px;
}

.btn-blue{
    padding: 10px 20px;
    background-color: #152650;
    color: #ffffff;
    border-radius: 12px;
    border: none;
}

.modal {
      display: none; /* изначально скрыто */
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;   
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.6);
    }

    /* Окно */
    .modal-content {
      background-image: url('/assets/images/main-bg.png');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      margin: 10% auto;
      padding: 20px;
      border-radius: 10px;
      width: 320px; 
      text-align: center;
      position: relative;
    }

    /* Кнопка закрытия */
    .close {
      position: absolute;
      top: 10px;
      right: 15px;
      font-size: 20px;
      cursor: pointer;
      color: white;
      font-size: 28px;
    }

    .modal a:hover {
      text-decoration: underline;
    }

    .video-contacts{
        background-color: transparent;
        border: 3px solid white;
        border-radius: 52.5px;
        height: 70px;
        width: auto;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 30px;
        margin-top: 30px;
    }

.btn-delete{
    padding: 10px 20px;
    background-color: #c71919;
    color: #ffffff;
    border-radius: 12px;
    border: none;
}

#preview {
    max-width: 250px;
    max-height: 168px;
    display: none; 
}

.institute{
    display: none;
    width: 83%;
    border-radius: 12px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}

@media (max-width: 1125px){
    .video-card>img {
        width: 31vw;
        height: auto;
    }   

    .allarticles-cards{
        grid-template-columns: repeat(3, 0fr);
        max-width: 900px;
        margin: 0 auto;
        margin-top: 30px;
    }
}

@media (max-width: 1100px) {
    .main-container-right {
        margin-right: 0;
    }

    .articles-cards{
        grid-template-columns: repeat(2, 0fr);
        justify-content: space-between;
        max-width: 587px;
        margin: 0 auto;
        row-gap: 30px;
    }
}

@media (max-width: 1065px) {
    .main-container-left>img{
        width: 43vw;
    }
    .main-container{
        gap: 30px;
    }

}

@media (max-width: 1024px) {
  .cert-item {
    flex: 0 0 calc(54% - 16px);
  }
}

@media (max-width: 900px) {
    .main-container{
        align-items: center;
    }
}

@media (max-width: 885px) {
    .video-cards {
        grid-template-columns: repeat(1, 0fr);
        justify-content: center;
        row-gap: 30px;
    }
    .video-card>img {
        width: 364px;
        height: 205px;
    }
    .allarticles-cards{
        grid-template-columns: repeat(2, 0fr);
        max-width: 550px;
    }
}

@media (max-width: 815px){
    .contacts-block-inner {
        grid-template-columns: repeat(1, 0fr);
        justify-content: center;
    }
    .contacts-block{
        height: auto;
        padding: 40px 0;
    }
    .cert-page {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 160px);
    }
}

@media (max-width: 750px) {
    .help-cards{
        flex-direction: column;
    }
    .help-card>img{
        width: 44vw;
    }
    .institute{
        width: 100%;
    }
}

@media (max-width: 730px) {
    .main-container{
        flex-direction: column-reverse;
        justify-content: center;
        gap: 90px;
    }

    .main-container-right {
        padding-top: 20px;
    }

    .main-container-left>img {
        width: 60vw;
    }
    .main-container-right>p{
        width: 100%;
    }
}

@media (max-width: 715px) {
    .logo-font{
        font-size: 20px;
    }
    .articles-inner{
        padding: 30px 20px 40px 20px;
    }
}


@media (max-width: 645px) {
    .logo-font{
        display: none;
    }

    .header-container, .footer-container{
        width: 100%;
    }

    .header-container>ul, .footer-container>ul{
        width: 100%;
    }
}

@media (max-width: 640px) {
    .cert-item {
      flex: 0 0 110%;
    }
  }

@media (max-width: 630px) {
    .main-container-right{
        width: auto;
    }
    .allarticles-cards {
        grid-template-columns: repeat(1, 0fr);
        justify-content: center;
    }
    .allarticles-card>img{
        width: 310px;
        height: 208.64px;
    }
    .main{
        padding-bottom: 85px;
    }
}

@media (max-width: 575px) {
    .articles-cards{
        grid-template-columns: repeat(1, 0fr);
        justify-content: center;
    }
    .articles-card>img {
        width: 287px;
        height: 193px;
    }
    .btn-white {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 535px) {
    .main-container{
        padding-top: 30px;
    }
    .modal-content{
        width: 96vw;
    }
    .main-container-left>img {
        width: 75vw;
    }
}

@media (max-width: 420px) {
    .hide-about{
        display: none;
    }
    .video-card>img {
        width: 89vw;
        height: auto;
    }

    .a-contacts {
        padding-left: 60px;
        height: 58px;
        width: 280px;
    }

    .pd-l{
        padding-left: 75px;
    }

    .circle-logo {
        width: 57px;
        height: 57px;
        margin-right: -57px;
    }

    .circle-logo>img {
        width: 27px;
        height: auto;
    }

    .white-19px{
        font-size: 16px;
    }
}

@media (max-width: 405px) {
    .allarticles-card>img{
        width: 77vw;
    }
}

@media (max-width: 450px) {
    .white-33px {
        font-size: 26px;
    }
    .white-20px{
        font-size: 18px;
    }
    .black-20px{
        font-size: 17px;
    }
    .black-22px{
        font-size: 19px;
    }
    .black-19px{
        font-size: 16px;
    }
    .black-18px-lh155{
        font-size: 16px;
    }
    .black-18px{
        font-size: 16px;
    }
    .blue-18px{
        font-size: 16px;
    }
    .black-19px-light{
        font-size: 17px;
    }
    .black-28px{
        font-size: 21px;
    }
}
