/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    width: 150px; /* Размер логотипа */
    height: auto;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 30px;
    height: 4px;
    margin: 5px 0;
    background-color: #333;
}

.hero-section {
    background-color: #FFC107; /* Оранжевый фон */
    padding: 40px 0;
    position: relative;
}

.content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.text-box {
    background-color: #222; /* Черный фон */
    color: #FFC107; /* Желтый текст */
    padding: 20px;
    text-align: center;
}

.text-box h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.text-box p {
    font-size: 14px;
    margin-bottom: 20px;
}

.text-box button {
    padding: 10px 20px;
    background-color: #FFC107;
    color: #222;
    border: none;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: auto;
}

.rotated1 {
    /*border: 1px solid black;*/
    transform: rotate(65deg);
    width: 282px;
    height: 187px;
    position: absolute;
    left: 17px;
    top: 155px;
}

.rotated2 {
    /*border: 1px solid black;*/
    transform: rotate(-65deg);
    width: 278px;
    height: 193px;
    position: absolute;
    left: 367px;
    top: 159px;
}



/* Адаптивность */
@media (max-width: 768px) {
    iframe{
        width: 100%;
    }

    .rotated1{
        /*border: 1px solid black;*/
        width: 173px;
        height: 116px;
        top: 90px;
    }

    .rotated2{
        /*border: 1px solid black;*/
        width: 174px;
        height: 125px;
        left: 239px;
        top: 90px;
    }

    .content {
        flex-direction: column;
    }

    .text-box,
    .image-box {
        order: 2;
    }

    .left-column,
    .right-column {
        order: 1;
    }

    .image-box img {
        width: 100%;
        height: auto;
    }


}

.garland {
    position: relative;
    display: flex;
    gap: 30px;
    padding-top: 40px;
}

.bulb {
    width: 150px;
    height: 120px;
    position: relative;
    animation: swing 3s ease-in-out infinite;
}

.bulb:nth-child(even) {
    animation-delay: 1s;
}

@keyframes swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}


.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    cursor: grab;
}

.marquee-wrapper:active {
    cursor: grabbing;
}

.marquee-track {
    display: inline-flex;
    gap: 20px;
    white-space: nowrap;
}

.bulb {
    height: 160px;
    transition: transform 0.3s ease;
}

.bulb:hover {
    transform: scale(1.1);
}

.logo{
    position: absolute;
    width: 150px;
    height: 150px;
    left: 14%;;
    top: 30.42px;
}

.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}


@media (max-width: 767px) {
    .content {
        grid-template-columns: 1fr;
    }

    .div-banner{
        display: none !important;
    }

    .btn-svyaz{
        left: 60% !important;
    }

    .logo{
        left: 28%;
        top: 21.42px;
    }
}

/* На экранах от 768px до 991px (планшеты) */
@media (min-width: 768px) and (max-width: 991px) {
    .content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На экранах от 992px и выше (десктоп) */
@media (min-width: 992px) {
    .content {
        grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    }
}

.card {
    background-color: #F3F3F3 !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

h1{
    font-family: 'Montserrat';
    font-weight: 700 !important;

}

.icon-o-nas{
    width: 5rem;
    height: 5rem;
    margin-bottom: 20px;
}

.p-o-nas{
    margin: 0 1.5rem 0 1.5rem;
    font-size: 1.2rem;
}

.bg-gray{
    background-color: #F3F3F3 !important;
}

.container-sert {
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 45px;
    padding: 20px;
}

.left-column {
    display: flex;
    height:70%;
    flex-direction: column;
    gap: 20px;
}

/* Правая колонка */
.right-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}



@media (min-width: 768px) and (max-width: 1600px) {
    .div-banner-first{
        font-size: 3.2rem !important;
        width: 100% !important;
    }

    .div-banner-second{
        width: 100% !important;
        font-size: 1.4rem !important;
    }

    .div-banner{
        width: 560px !important;
        left: calc(50% - 605px / 2 + 0.5px) !important;
        top: 25% !important;
    }
}

@media (max-width: 767px) {
    .container-sert {
        grid-template-columns: 0fr !important;
    }

    .p-o-nas {
        font-size: 0.8rem;
    }

    .icon-o-nas {
        width: 4rem;
        height: 4rem;
    }

    .right-column {
        grid-template-columns: 1fr;
    }

    .container-tovar {
        grid-template-columns: 1fr; /* Одна колонка */
    }

    .standard,
    .non-standard,
    .wishes {
        grid-column: span 1 !important; /* Все блоки занимают одну колонку */
    }

    .block p {
        font-size: 0.8rem !important;
    }

    .gallery {
        flex-direction: column; /* Вертикальная ориентация на мобильных */
    }
}

.img-sert{
    width: 220px;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container-tovar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Адаптивное количество колонок */
    gap: 20px; /* Промежуток между блоками */
    padding: 0px; /* Поля вокруг контейнера */
}

/* Общий стиль для всех блоков */
.block {
    background-color: #F3F3F3;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Специфичные стили для каждого блока */
.standard {
    grid-column: span 1; /* Занимает одну колонку */
}

.non-standard {
    grid-column: span 1; /* Занимает одну колонку */
}

.block:hover, .non-standard:hover{
    background-color: #4256E9;
    color: white; /* Белый текст */

}

.wishes {
    grid-column: span 2; /* Занимает две колонки */
}

/* Дополнительные стили для заголовков и текста */
.block h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.block p{
    font-size: 1.2rem;
}


.gallery-container {
    overflow-x: hidden; /* Скрываем стандартный скролл */
    padding: 20px;
}

.gallery {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease; /* Анимация при перемещении */
    height: 200px;

}

.gallery img {
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pagination button {
    background-color: #c1c1c1;
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 50%; /* Круглая форма */
    cursor: pointer;
}

.pagination button.active {
    background-color: #4256E9;
    color: white;
}


.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial {
    background-color: #fff;
    border: 2px solid #4a55e7; /* Синий цвет границы */
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(25% - 20px); /* Устанавливаем ширину для 4 отзывов в ряд */
    min-width: 300px; /* Минимальная ширина для отзывов */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.text {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: auto;
}

.name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.position {
    font-size: 12px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .testimonial {
        flex: 1 1 calc(50% - 20px); /* Два отзыва в ряд на планшетах */
    }
}

@media (max-width: 600px) {
    .testimonial {
        flex: 1 1 100%; /* Один отзыв в ряд на мобильных устройствах */
    }
}

.btn-send{
    background-color: #4256E9 !important;
    border-radius: 1rem !important;
    color: white !important;
}

.btn-send:hover{
    background-color: #dddddd !important;
    color: black !important;
}