/* Общие стили (header/footer в common.css, подключается первым на каждой странице) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-universal)
}

body {
    background-color: #f9f9f9;
    color: var(--text-color-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h)
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-universal);
}

.btn-primary {
    background-color: #005b96;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #ff9900;
    border: none;
    /* border: 2px #ff9900; */
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #6200ea;
    color: #005b96;
}

.btn-secondary:hover {
    background-color: #ff9900;
    color: white;
    border: none;
}

.btn2 {
    display: block; /* меняем на block */
    margin-left: auto;
    margin-right: auto;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--font-universal);
    width: fit-content; /* или фиксированная ширина */
}

.section-title {
    font-size: clamp(20px, 2.1vw, 30px);
    margin-top: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

.hero {
    position: relative;
    color: white;
    min-height: 100vh;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-align: start;
    /* margin-top: 60px; */
    box-sizing: border-box;
    overflow: hidden;
    
    /* Добавлено фоновое изображение вместо слайдера */
    background-image: url('image/hero7.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Затемнение фона */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero h1 {
    font-size: clamp(20px, 2.1vw, 30px);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    /* Черная обводка текста 
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;*/
}

.hero p {
    font-size: clamp(15px, 1.3vw, 25px);
    max-width: 700px;
    position: relative;
    z-index: 1;
    /* Черная обводка текста 
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;*/
}

.hero__buttons {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
    /* .hero h1 {
        text-shadow: 
            -0.5px -0.5px 0 #000,  
            0.5px -0.5px 0 #000,
            -0.5px 0.5px 0 #000,
            0.5px 0.5px 0 #000;
    } */
    /* На мобильных `background-attachment: fixed` часто вызывает "зум" и обрезание фона */
    .hero {
        background-attachment: scroll;
    }
    
    /* .hero p {
        text-shadow: 
            -0.5px -0.5px 0 #000,  
            0.5px -0.5px 0 #000,
            -0.5px 0.5px 0 #000,
            0.5px 0.5px 0 #000;
    } */
}

/* Стили для слайдера */
/*.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-attachment: fixed; 
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}


.slide.active {
    opacity: 1;
}*/

/* Остальные стили остаются без изменений */
.hero h1 {
    /*font-size: 3rem;*/
    margin-bottom: 20px;
}

.hero p {
    /*font-size: 1.2rem;*/
    max-width: 700px;
}

.hero__buttons {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin-top: 20px;
}


.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block; /* чтобы ссылка оборачивала весь блок */
}

/* ==================== КАРТОЧКИ ТОВАРОВ (стили для главной) ==================== */
.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 320px));
    justify-content: center;
    margin-top: 30px;
    gap: 30px;
    grid-auto-rows: 1fr; /* Это заставит все карточки в ряду быть одной высоты */
}

.product-card {
    height: 100%; /* Растягиваемся на всю высоту ячейки */
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card__img-container {
    height: 200px;
    flex-shrink: 0; /* Запрещаем сжиматься */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #ffffff;
}

.product-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card__content {
    flex: 1; /* Растягиваемся, чтобы занять всё свободное место */
    display: flex;
    align-items: center; /* Центрируем текст по вертикали */
    justify-content: center; /* Центрируем текст по горизонтали */
    padding: 15px;
}

.product-card__title {
    font-size: 1.2rem;
    margin-bottom: 0; /* Убираем нижний отступ, т.к. текст теперь по центру */
    text-align: center;
    word-break: break-word;
}

.product-card__desc {
    color: #666;
    margin-bottom: 15px;
}

.product-card__price {
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #005b96;
}

/* О компании */
.about {
    margin-top: 60px;
    /*padding: 80px 0;*/
    background-color: #f0f0f0;
}

.prof-selection-container {
    display: flex;          /* превращаем в flex-контейнер */
    flex-wrap: wrap;        /* чтобы блоки переносились на следующую строку */
    gap: 20px;              /* отступы между карточками */
    padding-bottom: 15px;
    justify-content: center; /* выравниваем блоки по центру контейнера */
}

.selection {
    display: flex;             /* flex-контейнер для центрирования текста */
    flex-direction: column;    
    justify-content: center;   /* вертикальное центрирование текста */
    align-items: center;       /* горизонтальное центрирование текста */
    text-align: center;        /* текст по центру */
    padding: 20px;             /* внутренние отступы */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;

    height: auto;             /* высота под контент */
    max-width: 500px;         /* ограничиваем ширину */
    width: 100%;              /* адаптивная ширина до max-width */
    box-sizing: border-box;   /* учитываем padding в ширине */
}

.about__content h2 {
    padding: 15px;
}

.about__content p {
    font-size: clamp(13px, 2.1vw, 17px);
}

.about__content {
    /*display: grid;*/
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .about__content {
        grid-template-columns: 1fr;
    }

    .products {
        grid-template-columns: minmax(250px, 320px);
    }
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-btn {
    width: 100%;
    padding: 20px;
    background-color: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn i {
    transition: transform 0.3s ease;
}

.accordion-btn.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.accordion-content p {
    padding: 20px 0;
}

/* Контакты */
.contacts {
    padding: 50px 0;
    background-color: #f0f0f0;
}

.contacts__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
    gap: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.contacts__info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.contacts__info h3 {
    margin-bottom: 20px;
}

.prof {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-link {
    display: block;
    margin-bottom: 15px;
    color: #333;
    text-decoration: none;
}

.contact-link i {
    margin-right: 10px;
    color: #005b96;
}

.contacts__map {
    height: 400px;
    background-color: #ddd;
    border-radius: 8px;
}
@media (max-width: 768px) {
    /* Мобильные настройки для hero и контактов, хедер/меню задаются в common.css */
    .hero {
        padding: 150px 0 80px;
    }

    /*.hero h1 {
        font-size: 2.5rem;
    }*/

    /*.hero__buttons {
        flex-direction: column;
        align-items: center;
    }*/

    .contacts__content {
        grid-template-columns: 1fr;
    }

    .contacts__map {
        height: 300px;
    }
}

/* Адаптив под экрнаны до 968 px 
@media (max-width: 968px) {

    /* About 
    .about__content {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Contacts 
    .contacts__content {
        padding-left: 40px;
        padding-right: 40px;
    }
}*/

/* Адаптив под экрнаны до 768 px */
@media (max-width: 768px) {

    /* Hero */
    .hero__buttons {
        display: flex;
        justify-content: left;
        gap: 20px;
        margin-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
        .hero-background__img {
        object-position: 30% center; /* Смещаем фокус изображения */
    }

    .hero h1,
    .hero p {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* About */
    .about__content {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Contacts */
    .contacts__content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Адаптив под экрнаны до 375 px */
@media (max-width: 375px) {

    /* Hero */
    .hero__buttons {
        display: flex;
        justify-content: left;
        gap: 16px;
        margin-top: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-background__img {
        object-position: 25% center; /* Еще больше смещаем для маленьких экранов */
    }

    /*.section-title {
        font-size: 2.0rem;
    }*/

    .hero p {
        padding-left: 16px;
        padding-right: 16px;
        /*font-size: 1.1rem;*/
    }

    .hero h1 {
        padding-left: 16px;
        padding-right: 16px;
        /*font-size: 2.1rem;*/
    }

    /* About */
    .about__content {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Contacts */
    .contacts__content {
        padding-left: 16px;
        padding-right: 16px;
    }
}





