
html {
    width: 100%;
    height: 100%;
  scroll-behavior: smooth;
}
body {
    font-family: "Nunito Sans";
}

.main_page {
    background-image: url(image/main_page_background.png);
    background-repeat: no-repeat;
    background-size: 100%;
}
header {
    padding-top: 2%;
}
.header {
    display: flex;
    justify-content: space-around;
    background-image: url(image/header_background.png);
    background-repeat: no-repeat;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    text-align: center;
}
.header img {
    margin-right: 10%;
    padding-bottom: 1%;
}
.text-header {
    width: 50%;
    margin-top: 1.5%;
}
.header a {
    color: rgb(255, 255, 255);
    font-size: 28px;
    text-decoration: none;
    margin-top: 1.8%;
}
#company {
    margin-right: 15%;
}
#serv {
    margin-right: 15%;
}
#logo {
    margin-top: 1%;
}
.header :hover {
    transition: 1s;
    color: #DC010E;
}
.text_main_page-1 {
    display: flex;
    justify-content: center;
    font-size: 96px;
    font-weight: bold;
    font-style: italic;
    color: rgb(255, 255, 255);
    margin-top: 10%;
}
.text_main_page-2 {
    display: flex;
    justify-content: center;
    font-size: 60px;
    margin-top: -8%;
    color: rgb(255, 255, 255);
}
#scroll {
    margin-left: 45%;
    margin-top: 10%;
    margin-bottom: 3%;
}



.about_us {
    display: flex;
    flex-direction: column;
}
#title_about_us {
    display: flex;
    justify-content: center;
    color: black;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
}
#inside_text_1_about_us {
    text-align: center;
    color: black;
    font-size: 34px;
    width: 70%;
    margin-left: 15%;
    margin-top: -1.5%;
}
.choice {
    display: flex;
    justify-content: space-around;
}
.card {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}


.services {
    background: #1B388B;
    padding-bottom: 2%;

}
#title_services {
    display: flex;
    justify-content: center;
    color: rgb(255, 255, 255);
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    padding-top: 5%;
}
#inside_text_services {
    text-align: center;
    color: #ffffff;
    font-size: 34px;
    width: 50%;
    margin-left: 25%;
}
#inside_text_services span {
    color: #DC010E;
}
.details {
  position: relative;
  display: block;
  max-width: 1080px;
  margin: 0 auto 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 5px;
  transition: 0.3s;
  overflow: hidden;
}

.details::after {
  position: absolute;
  right: 24px;
  top:25px;
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-right: 3px solid #1B388B;
  border-bottom: 3px solid #1B388B;
  transform: rotate(-45deg);
  transform-origin: center;
  transition: .3s;
}

.details[open]::after {
  transform: rotate(45deg);
}

.details[open] {
  padding-bottom: 100px;
}

.details[open] .details__title {
  margin-bottom: 32px;
}

.details__title {
  background-color: #ffffff;
  padding: 12px 24px;
  font-size: 34px;
  cursor: pointer;
  list-style: none;

  transition: .3s;
}

.details__title::-webkit-details-marker {
  display: none;
}

.details__content {
  padding: 0 32px;
  font-size: 34px;
  margin-bottom: -60px;
}

.details__content p:last-child {
  margin-bottom: 0;
}
.details__content p:first-child {
  margin-top: 0;
}
#title_contact_information {
    display: flex;
    justify-content: center;
    color: black;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
}
#inside_text_contact_information {
    display: flex;
    justify-content: center;
    color: black;
    font-size: 40px;
    margin-top: -1%;
}

.contact-info {
    margin: 0 auto;
    max-width: 700px;
    margin-top: -1%;
}

.schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day {
    text-align: center;
    font-size: 34px;
    padding: 10px;
    border: 3px solid #1B388B;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.day.active {
    border-color: red;
}
#inside_text_phones_information {
    display: flex;
    justify-content: center;
    color: black;
    font-size: 40px;
    margin-top: 3%;
    margin-bottom: 1%;
}
.phones {
    display: flex;
    flex-direction: column;
    font-size: 34px;
    text-align: center;
}
.phones p {
    margin-top: -0.5%;
}
.location {
    background-color: #1B388B;
}
#title_location {
    display: flex;
    justify-content: center;
    color: rgb(255, 255, 255);
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    padding-top: 5%;
}
.location iframe {
    margin-left: 23%;
}
#text_location {
    font-size: 40px;
    color: #ffffff;
    display: flex;
    justify-content: center;
}
.separator_footer {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    margin-top: 2%;
}
.footer p {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    padding-bottom: 1%;
}

@media only screen and (max-width: 768px) {
    /* Шапка сайта */
    header {
        padding-top: 10px;
    }
    .header {
        display: flex;
        flex-direction: column; /* Переводим заголовок и меню в столбец */
        align-items: center;
        background-size: cover;
    }
    .header img {
        width: 100px; /* Уменьшаем логотип */
        margin-right: 0;
        margin-bottom: 10px;
    }
    .header a {
        justify-content: space-around;
        font-size: 20px; /* Уменьшаем шрифт ссылок */
        margin: 5px 0;
    }
    .text-header {
    width: 70%;
    margin-top: 1%;
    margin-bottom: 1.5%;
    }
    #company {
    margin-right: 5%;
    }
    #serv {
        margin-right: 5%;
    }

    /* Главная страница */
    .main_page {
    background-image: url(image/main_page_background_phone.jpg);
    background-repeat: no-repeat;
    background-size: 100%;

    }
    .text_main_page-1 {
        font-size: 48px; /* Уменьшаем заголовок */
        margin-top: 5%;
        text-align: center;
    }
    .text_main_page-2 {
        font-size: 24px; /* Уменьшаем второй заголовок */
        margin-top: -5%;
        text-align: center;
    }
    #scroll {
    margin-left: 30%;
    }
    /* О компании */
    .about_us {
        padding: 0 10px;
    }
    #title_about_us {
        font-size: 32px;
        text-align: center;
    }
    #inside_text_1_about_us {
        font-size: 24px;
        width: 100%;
        margin-left: 0;
    }
    .choice {
        flex-wrap: wrap; /* Перенос карточек на новую строку */
    }
    .card {
        width: 100%;
        margin-bottom: 10px;
    }
    .card img {
        height: 200px;
    }

    /* Наши товары и услуги */
    .services {
        padding: 0 10px;
    }
    #title_services {
        font-size: 32px;
        text-align: center;
    }
    #inside_text_services {
        margin-left: -1%;
        font-size: 20px;
        width: 100%;
        padding-bottom: 3%;
    }
    details {
        max-width: 100%;
    }
    .details__title {
        font-size: 20px;
    }
    .details__content {
        font-size: 20px;
    }
    .details::after {
        margin-top: -1%;
    }
    /* Контактная информация */
    .contact_information {
        padding: 0 10px;
    }
    #title_contact_information {
        font-size: 32px;
        text-align: center;
    }
    #inside_text_contact_information {
        font-size: 28px;
    }
    .day {
        font-size: 24px;
        padding: 5px;
    }
    #inside_text_phones_information {
        font-size: 28px;
    }
    .phones {
        font-size: 24px;
    }

    /* Местоположение */
    .location {
        padding: 0 10px;
    }
    #title_location {
        font-size: 32px;
        text-align: center;
    }
    .location iframe {
        width: 100%;
        height: 300px;
        margin-left: 0;
    }
    #text_location {
        font-size: 24px;
        text-align: center;
    }

    /* Подвал */
    .footer {
        padding: 10px;
    }
    .footer p {
        font-size: 16px;
    }
}