html {
    scroll-behavior: smooth;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ================= HEADER =================== */
.header_wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: rgb(240, 240, 240);
}
.header_wrapper h1{
    color: #1A7B6C;
    font-family: 'Times New Roman', Times, serif;
    font-size: 25px;
}
.header_icon_wrapper img{
    width: 50px;
}

/* Buttons */
.header_info_v_wrapper,
.header_info_r_wrapper {
    text-decoration: none;
    color: #ffffff;
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    background-color: #1A7B6C;
    padding: 5px 10px;
    border-radius: 12px;
    margin-right: 10px;
    display: inline-block;
}
.header_info_o_wrapper{
    background-color: #1A7B6C;
    border-radius: 12px;
    padding: 5px 10px;
    border: none;
    color: rgb(240, 240, 240);
    font-family: 'Times New Roman', Times, serif;
    font-size: 18px;
    margin-right: 10px;
}
.header_info_m_wrapper {
    background-color: #1A7B6C !important;
    border-radius: 12px;
    padding: 5px 10px;
    color: white !important;
    border: 0;
}

/* Hover */
.header_info_o_wrapper:hover,
.header_info_v_wrapper:hover,
.header_info_r_wrapper:hover,
.header_info_m_wrapper:hover {
    background-color: #13554a !important;
    cursor: pointer;
}


/* ================= MAIN =================== */
.main_wrapper{
    background-color: #1A7B6C;
}

/* Banner */
.banner_wrapper img{
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Info block 1 */
.main_one_info_wrapper{
    display: flex;
    align-items: center;
    padding: 50px 20px;
    gap: 20px;
}
.main_info_wrapper{
    padding-right: 30px;
}
.main_info_wrapper h1{
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 40px;
}
.main_info_wrapper p{
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
}
.main_info_photo_wrapper img{
    width: 700px;
    border-radius: 10px;
}

/* Qatysushy block */
.main_two_qatysuchy_wrapper{
    display: flex;
    align-items: center;
    padding: 50px 20px;
    gap: 20px;
}
.main_photo_qatysuchy_wrapper img{
    width: 700px;
    object-fit: cover;
    border-radius: 10px;
}
.main_qatysuchy_wrapper {
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 25px;
}


/* ОТІНІМ БЕРУ */
.main_otinim_wrapper{
    display: flex;
    justify-content: center;
    padding: 50px 0;
}
.main_otinim_wrapper button{
    background-color: white;
    border-radius: 15px;
    padding: 10px 20px;
    border: none;
    color: #1A7B6C;
    font-size: 25px;
    font-family: 'Times New Roman';
}
.news_wrapper {
    padding: 40px 20px;
}

.news_title {
    color: white;
    font-size: 50px;
    font-family: 'Times New Roman';
    padding-bottom: 40px;
}

/* Тор (grid) құрылымы */
.news_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Әр жаңалық */
.news_item {
    background-color: #1A7B6C;
    padding: 18px;
    border-radius: 12px;
    color: white;
}

.news_item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.news_item h4 {
    font-size: 26px;
    font-family: 'Times New Roman';
    margin-top: 10px;
}

.news_item p {
    font-size: 18px;
    font-family: 'Times New Roman';
}


/* ===========================================
   📱 МОБИЛЬДІ НҰСҚА (телефонға)
=========================================== */
@media (max-width: 768px) {

    .news_title {
        font-size: 32px;
        text-align: center;
    }

    .news_grid {
        grid-template-columns: 1fr; /* бәрі бір бағанға түседі */
    }

    .news_item img {
        height: 200px;
    }

    .news_item h4 {
        font-size: 22px;
    }

    .news_item p {
        font-size: 16px;
    }
}

/* ===============================
   📱📱 Кіші телефондар (480px)
=============================== */
@media (max-width: 480px) {

    .news_item img {
        height: 160px;
    }

    .news_title {
        font-size: 26px;
    }
}


/* ================= FOOTER =================== */
.footer_wrapper{
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    background-color: rgb(49, 49, 49);
    flex-wrap: wrap;
}
.footer_info_wrapper h1{
    color: white;
    font-size: 17px;
    margin-bottom: 10px;
}
.footer_icon_wrapper{
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.footer_icon_wrapper a{
    color: white;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 400px;
  opacity: 0;
  animation: fade 12s infinite;
}
.slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.slide:nth-child(1){ animation-delay: 0s; }
.slide:nth-child(2){ animation-delay: 4s; }
.slide:nth-child(3){ animation-delay: 8s; }

@keyframes fade {
  0%   { opacity: 1; }
  30%  { opacity: 1; }
  100% { opacity: 1; }
}


/* ===================================================
   📱📱📱 М О Б И Л Ь Д І   В Е Р С И Я  (max-width: 768px)
=================================================== */
@media (max-width: 768px) {

    .header_wrapper h1{
        font-size: 20px;
    }
    .header_info_v_wrapper,
    .header_info_r_wrapper,
    .header_info_o_wrapper{
        font-size: 14px;
        padding: 5px 8px;
    }

    .main_one_info_wrapper,
    .main_two_qatysuchy_wrapper{
        flex-direction: column;
        text-align: center;
    }

    .main_info_wrapper h1{ font-size: 28px; }
    .main_info_wrapper p{ font-size: 18px; }

    .main_info_photo_wrapper img,
    .main_photo_qatysuchy_wrapper img{
        width: 100%;
    }

    .main_qatysuchy_wrapper{
        font-size: 20px;
        padding-left: 0;
    }

    .banner_wrapper img{
        height: 100%;
    }

    .slide, .slide img{
        height: 100%;
    }

    .footer_wrapper{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
