
@font-face {
    font-family: 'Montserrat-R';
    src: url('/Fonts/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat-SemiBold';
    src: url('/Fonts/Montserrat-SemiBold.ttf') format('truetype');
}
html, body  {
    margin: 0px;
    padding: 0px;
    width: 100%;
    overflow-X: hidden;
    background-color: #ffffff;

}

h3{
    text-align: center;
    font-size: 20px;
    font-family: 'Montserrat-SemiBold';
}


/* Фиксированный хедер */
.fixed-header-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Шапка поверх других элементов */
    padding: 10px 0;
    height: 60px;
}

/* Основной блок хедера */
.header-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Иконка меню (бургер) */
.menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2px;
    height: 30px;
    cursor: pointer;
    position: relative;
    padding-left: 10px;
    margin-right: 27px;
}

.contact-section {
    background: url('/images/map_black_white.png');
    padding-top: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 40px;
}

.contact-box {
    background: white;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    width: 80%;
    position: relative;
    padding-right: 20px;
    padding-left: 20px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-text {
    max-width: 60%;
}

.contact-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}



.social-icons {
    display: flex;
    gap: 4px;
}

.social-icons img {
    width: 29px;
    height: 29  px;
    cursor: pointer;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.contact-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 18px;
    color: black;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}



.popup {
    width: 100%;
    background: #3096A2;
    color: white;
    border: 1px solid #ffffff;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-family: 'Montserrat-SemiBold';
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;

}

.popup:hover {
    background: white;
    color: black;
}



.btn-secondary {
    width: 100%;
    background: white;
    color: black;
    border: 1px solid #3096A2;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-family: 'Montserrat-SemiBold';
    padding-top: 20px;
    padding-bottom: 20px;

}
h2{
        text-align: center;
        font-size: 20px;
        font-family: 'Montserrat-SemiBold';

}

.btn-secondary:hover {
    background: black;
    color: white;
}



.adress_contact_block{
    font-size: 14px;
    color: black;
    font-family: 'Montserrat-SemiBold';
}


.job_time{
    font-size: 1em;
    color: gray;
    font-family: 'Montserrat-SemiBold';
}




.telephone_me{
    font-size: 14px;
    font-family: 'Montserrat-SemiBold';
    color: #3096A2;
    cursor: pointer;

}


.email_me{
    font-size: 14px;
    font-family: 'Montserrat-SemiBold';
    color: #3096A2;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 40px;
    height: 5px;
    background-color: #3096A2;
    border-radius: 15px;
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-icon span:nth-child(1) {
    top: 0;
}
.menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-icon span:nth-child(3) {
    bottom: 0;
}
.menu-icon.activate span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
.menu-icon.activate span:nth-child(2) {
    opacity: 0;
}
.menu-icon.activate span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* Блок логотипа и заголовка */
.content-header {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
}

/* Логотип */
.logo-header {
    height: 60px;
    margin-left: 20px;
}

/* Заголовок */
.title-header {
    font-size: 16px;
    font-family: 'Montserrat-SemiBold';
    margin-left: 5px;
    text-align: left;
}

/* Иконки соцсетей */
.header-icons {
    display: flex;
    gap: 4px;
    margin-left: 10px;
}

.header-icons img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Навигационное меню */
.nav-menu {
    display: none;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;
    padding: 0;
}

.nav-menu.activate {
    display: block;
    max-height: 100vh;
    padding: 20px;
}

/* Стили пунктов меню */
.nav-menu p {
    color:#3096A2 ;
    font-size: 30px;
    text-align: start;
    cursor: pointer;
    margin: 10px 0;
    margin-left: 20px;
}



.image_text {
    color: white;
    text-align: center;
    margin-top: 82px;
    width: 100%;
    height: 300px;
    font-size: 32px;
    font-family: 'Montserrat-SemiBold';
    background-image: url('/images/image_text.svg'); /* Путь к файлу */
    background-size: cover; /* Растягивает изображение на всю область */
    background-repeat: no-repeat; /* Запрещает повторение */
    background-position: center; /* Центрирует изображение */

    /* Центрируем текст */
    display: flex;
    align-items: center; /* Центрирует по вертикали */
    justify-content: center; /* Центрирует по горизонтали */
}





h1{
    margin-left: 30px;
}



.popup-call {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-call.active {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;

}
.popup-content h2 {
    margin-bottom: 15px;
}
.popup-content input {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 23px;
}
.popup-content button {

    background: #3096A2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#submut{
    width: 80%;
    padding-top: 10px;
    padding-bottom: 10px;
}
.popup-content button:hover {
    background: #0056b3;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;

}
textarea{
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 23px;

}

input.invalid {
    border: 2px solid red;
}

.error-message {
    color: red;
    font-size: 20px;
    display: none; /* Изначально скрыто */
}

.error-message.visible {
    display: block;
}
.call_me{
    cursor: pointer;        /* Курсор указывает, что это кликабельный элемент */

}
.submit-btn{
    font-size: 25px;
}



@keyframes bounce {
    0% { transform: translateY(0); }
    25% { transform: translateY(-20px); } /* Подпрыгивает вверх */
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); } /* Легкий подпрыгивание */
    100% { transform: translateY(0); }
}

.whatsapp-click.shake {
    animation: bounce 0.5s ease infinite;
}

.telegramm-click.shake {
    animation: bounce 0.5s ease infinite;
}


/* Общие стили */
.blurred-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080') center/cover no-repeat;
    z-index: 6;
    display: none; /* Блок скрыт по умолчанию */
    transition: filter 2s ease-in-out;
}

.centered-block {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 1); /* Белый фон */
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Анимация для появления и исчезновения блока */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        filter: brightness(0);
    }
    50% {
        opacity: 1;
        filter: brightness(100%);
    }
    100% {
        opacity: 0;
        filter: brightness(0);
    }
}

.show-blurred-background {
    display: block;
    animation: fadeInOut 4s ease forwards; /* Время анимации */
}



.centered-block img {
    width: 25%;
    display: block;
    margin: 0 auto;
}

.centered-block p {
    font-size: 2em;
    margin-top: 10px;
}



@media screen and  (min-width:768px) {
    .contact-info-header {
        width: 80%;
        display: flex;
        align-items: center;
        gap: 40px; /* Отступ между блоками */
        padding: 20px;
    }
    .phone-header, .address-header {
        display: flex
    ;
        align-items: center;
    }

    .Go-home {
        margin-left: 40px;
        margin-right: 50px;
        font-size: 16px;
        cursor: pointer;
        font-family: 'Montserrat-SemiBold';
        color: #3096A2;
    }
    h3{
        text-align: start;
        margin-left: 40px;
        font-size: 50px;
    }
    .GO-catalog {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 16px;
        cursor: pointer;
        font-family: 'Montserrat-SemiBold';
        color: #3096A2;
    }
    .image_text{
        margin-top: 0px;
    }
    .fixed-header-block {
        position: static;
    }
    .menu-icon {
        display: none;
        cursor: pointer;
    }
    .contact-section{
        align-items: flex-end;
    }
    .popup{
        font-size: 32px;
    }

    .btn-secondary{
        font-size: 32px;
    }
    .contact-box{
        width: 40%;
    }
    h3 {
        text-align: start;
        margin-left: 40px;
        font-size: 50px;
    }

    h2 {
        text-align: start;
        margin-left: 40px;
        font-size: 50px;
    }
    .social-icons img {
        width: 64px;
    }

    .adress_contact_block {
        font-size: 33px;
    }
    .job_time {
        font-size: 20px;
    }
    .telephone_me {
        font-size: 27px;
    }
    .email_me {
        font-size: 27px;
    }
}




@media screen and (max-width: 767px) {
    .contact-info-header {
        display: none; /* Скрываем на маленьких экранах */
    }
    .Go-home{
        display: none;
    }
    .GO-catalog{
        display: none;
    }

}

@media screen and (min-width: 768px) and (max-width: 1300px) {
    .contact-box {
        width: auto;
    }
    .contact-info{
        gap: 20px;
    }
}


/* Каталог */


/* Контейнер для сетки */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три блока в ряд */
    gap: 20px; /* Отступы между блоками */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Индивидуальные блоки */
.grid-item {
    display: flex;
    flex-direction: column; /* Расположение элементов вертикально */
    justify-content: flex-start; /* Контент располагается сверху */
    background-color: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    box-sizing: border-box;
    height: auto; /* Фиксированная высота для всех блоков */
}

/* Изображение внутри блока */
.block-image {
    width: 100%; /* Растягивает изображение по ширине блока */
    border-radius: 15px;
    height: 150px; /* Высота изображения для сохранения формы прямоугольника */
}

/* Заголовок блока */
.block-title {
    font-size: 20px;
    font-family: 'Montserrat-SemiBold', sans-serif;
    margin: 15px 0 10px;
    text-align: left;
    color: #333;
    cursor:pointer;
}
.block-title:hover{
color:#3096A2;
}

/* Скрыть все элементы после 5-го */
.block-content .take-category:nth-child(n+6) {
    display: none; /* Скрыть элементы начиная с 6-го */
}

/* Контейнер для текстов */
.block-content {
    display: flex;
    flex-direction: column;
    flex:1
}


.block-content p {
    font-size: 16px;
    color: #555;
    margin: 3px 0;
    text-align: left;
}

/* Последняя строка "Смотреть полностью" */
.tap-invisible {
    margin-top: auto; /* Перемещает элемент к нижнему краю блока */
    font-size: 16px;
    font-weight: bold;
    color: #3096A2;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tap-invisible:hover {
    color: #006f7c;
}

.tap-invisible i {
    font-size: 14px;
}

/* Адаптивность для экранов шириной меньше 768px */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Два блока в ряд */
    }
}

/* Адаптивность для экранов шириной меньше 480px */
@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr; /* Один блок в ряд */
    }
}
.take-category{
    cursor: pointer;
}
.take-category:hover {
    color: #3096A2;
}
