﻿/* Общие сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #fafafa;
    color: #333;
}

.container {
    max-width: 1170px;
    margin: auto;
    overflow: hidden;
    padding: 0 2%;
}

/* Высота блоков */
.height {
    height: 800px;
}

/* Заголовочная область */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    transition: all .3s ease-in-out;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    width: auto;
    height: 40px;
    margin-top: 10px;
}

.sticky-header nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
}

.sticky-header nav li {
    display: inline-block;
}

.sticky-header a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: color .3s linear;
}

Копировать
.sticky-header a:hover {
    color: #ffd700;
}

.underhead {
    width: auto;
    height: 100px;
    background-color: rgb(0, 59, 103);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 60px;
    padding-bottom: 10px;
    margin-top:10px;
}

.upcontact {
    color: white;
    font-size: 18px;
    margin: 0;
}
/* Баннер главной страницы */
.hero-banner {
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0)), url("hero.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    background-attachment: fixed;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
}

.home-section button {
    background-color: rgb(47, 166, 206);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform .3s cubic-bezier(.4,-0.3,1,.65);
    margin-top: 15px;
}

    .home-section button:hover {
        transform: scale(1.1);
    }
.about-us-text {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-hidden {
    display: block; /* Изначально видим на десктопах */
}

/* Фон и общая раскладка */
.light-blue-bg {
    background-color: white;
    padding: 40px 0;
}

.blue-bg {
    background-color: rgb(0, 59, 103);
    padding: 40px 0;
}

.dark-grey-bg {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

/* Секции с услугами */
.service-cards {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform .3s ease-in-out;
    flex-grow: 1;
    max-width: calc(33% - 20px);
}

    /* 🔥 Главное изменение — делаем изображения услуг отзывчивыми */
    .card img {
        width: 100%; /* Заливаем картинку на всю ширину */
        height: auto; /* Высота меняется автоматически */
        object-fit: contain; /* Сохраняем исходные пропорции */
        margin-bottom: 10px;
    }

    .card h3 {
        margin-bottom: 10px;
    }

    .card p {
        color: #666;
    }

    .card:hover {
        transform: translateY(-10px);
    }

/* Секция сертификатов */
.certificates-container {
    display: block; /* Стандартный поток */
    width: 100%;
    padding: 20px 0;
}

.cert-item {
    width: 100%; /* Занимают всю ширину экрана */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px; /* Небольшой промежуток между сертификатами */
}

    .cert-item img {
        width: 100%; /* Картинка сертификатов тянется на всю ширину */
        height: auto; /* Высоту определяем автоматически */
        object-fit: contain; /* Избегаем деформаций */
    }

    .cert-item p {
        margin-top: 10px;
    }

/* Контактная информация внизу сайта */
#contact-info address {
    font-style: normal;
}

/* Анимация AOS */
[data-aos] {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

    [data-aos][data-aos^='fade'] {
        transform: translateY(50px);
    }

    [data-aos][data-aos^='slide'] {
        transform: translateX(-50%);
    }

    [data-aos][data-aos^='zoom'] {
        transform: scale(0.8);
    }

    [data-aos]:not([data-aos-animate]) {
        animation-play-state: paused !important;
    }

    [data-aos].aos-animate {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

/* Подвал */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.aa {
    color: rgb(0, 59, 103);
}

.a {
    outline: none;
    text-decoration: none;
    color: white;
    transition: none;
    letter-spacing: normal;
}

/* Mobile Styles */
@media only screen and (max-width: 900px) {
    body {
        font-size: 10px;
    }
    .mobile-hidden {
        display: none; /* Прячем абзац на мобильных устройствах */
    }
    .sticky-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sticky-header nav li {
        margin: 5px;
    }

    .logo1 {
        height: 30px !important;
    }

    .logo {
        height: 0px !important;
    }

    .sticky-header a {
        font-size: 0.9rem;
    }

    .underhead {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .upcontact {
        font-size: 16px;
    }

    #contact-info {
        height: auto;
    }

        #contact-info address {
            font-size: 16px;
        }

    .footer {
        padding: 10px 0;
    }

    .hero-banner {
        min-height: 50vh;
    }

    .modal-content {
        max-width: 90vw;
    }

    /* Услуги и сертификаты становятся столбцами */
    .service-cards {
        grid-template-columns: 1fr;
    }

    .certificate-row {
        flex-direction: column;
        align-items: center;
    }

    .cert-item {
        max-width: 100%;
        margin-bottom: 20px;
    }

        .cert-item.wide img,
        .cert-item.square img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }
}

/* Tablets */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .sticky-header nav ul {
        justify-content: space-between;
    }
    .mobile-hidden {
        display: none; /* Прячем абзац на мобильных устройствах */
    }
    .underhead {
        flex-direction: row;
        align-items: center;
    }

    .card {
        max-width: calc(50% - 20px);
    }

    #contact-info {
        height: auto;
    }

    .footer {
        padding: 10px 0;
    }

    .hero-banner {
        min-height: 60vh;
    }

    .modal-content {
        max-width: 90vw;
    }

    /* Сертификаты адаптируются под планшеты */
    .cert-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .cert-item {
        max-width: 100%;
    }

    .certificate-row {
        flex-direction: column;
        align-items: center;
    }

    .cert-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Smaller tablets or larger phones */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .cert-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .mobile-hidden {
        display: none; /* Прячем абзац на мобильных устройствах */
    }
    .cert-item {
        max-width: 100%;
    }

    .certificate-row {
        flex-direction: column;
        align-items: center;
    }

    .cert-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Smartphones */
@media only screen and (max-width: 480px) {
    .cert-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .cert-item {
        max-width: 100%;
    }
    .mobile-hidden {
        display: none; /* Прячем абзац на мобильных устройствах */
    }
    .certificate-row {
        flex-direction: column;
        align-items: center;
    }

    .cert-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Самые малые экраны (телефоны) */
@media only screen and (max-width: 320px) {
    .cert-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .mobile-hidden {
        display: none; /* Прячем абзац на мобильных устройствах */
    }
    .cert-item {
        max-width: 100%;
    }

    .certificate-row {
        flex-direction: column;
        align-items: center;
    }

    .cert-item {
        max-width: 100%;
        margin-bottom: 20px;
    }
}
