@font-face {
    font-family: 'Goudy Bookletter 1911';
    font-style: normal;
    font-weight: normal;
    src: local('Goudy Bookletter 1911'), url('/static/fonts/goudy_bookletter_1911.woff') format('woff');
}

@font-face {
    font-family: 'Andika Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Andika Regular'), url('/static/fonts/Andika-R.woff') format('woff');
}

@font-face {
    font-family: 'Goudy Old Style';
    font-style: normal;
    font-weight: normal;
    src: local('Goudy Old Style'), url('/static/fonts/GOUDOS.woff') format('woff');
}

body {

    padding-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    background: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;


}

.h2-text {
    margin-top: 4%;
    width: 84%;
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 43.53px;
    letter-spacing: 0.03em;
    text-align: left;
    color: white;
}

.agr-block {
    width: 100%;
    height: 100%;
}

.break-text {
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 48.01px;
    text-align: center;
}
.mail {
    font-family: Inter, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 29.05px;
    text-align: center;
    margin-top: 120px;
    margin-bottom: 120px;
    color: white;

}

.h2-block {
    text-align: -webkit-center;
    width: 100%;
}

#main-name-id {
    font-size: 26px;
    word-wrap: break-word;

}

.main-name {
    text-align: center;
    margin-top: 5%;
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 51px;
    font-weight: 400;
    line-height: 76.18px;
    color: white;

}

.card-container-desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    gap: 20px;
    margin-top: 4%;
    margin-left: 80px;
    margin-bottom: 120px;
    width: calc(4 * 20% + 3 * 3.5%); /* Ширина для 4 карточек с учётом отступов */
}

.card {
    height: 413px;
    width: 305px;
    border-radius: 28px;
    opacity: 10; /* Начальная непрозрачность */
    /*transform: rotate(-90deg); !* Поворот *!*/
    overflow: hidden;
    background-color: #ccc; /* Серый фон */
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-mobile {

    height: 413px;
    width: 305px;
    border-radius: 28px;
    opacity: 10; /* Начальная непрозрачность */
    /*transform: rotate(-90deg); !* Поворот *!*/
    overflow: hidden;
    background-color: #ccc; /* Серый фон */
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-container-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    width: calc(1 * 305px + 3 * 20px); /* Ширина для 4 карточек с учётом отступов */

    flex-direction: column; /* Вертикальная ориентация карточек */
    gap: 20px; /* Расстояние между карточками */
    margin-top: 7%;
    margin-left: 3%;
    align-items: center; /* Центрируем карточки по горизонтали */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card:hover {
    opacity: 1; /* Увеличение непрозрачности при наведении */
    transform: rotate(0deg); /* Возвращение к нормальному углу */
}


.h2-contact {
    margin-left: 80px;
    margin-top: 110px;
    width: 217px;
    height: 58px;
    right: 80%;
    top: 49%;
    font-family: 'Goudy Bookletter 1911', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: 0.03em;
    color: #FFFFFF;
}


.h3-contact {
    margin-bottom: 40px;
    text-align: center;
    width: auto;
    height: 47px;
    margin-top: 80px;
    font-family: 'Goudy Bookletter 1911', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 32px;
    line-height: 44px;
    letter-spacing: 0.03em;
    color: #FFFFFF;


}


.line-contact {
    margin-top: 315px;
    position: absolute;
    width: calc(100% - 400px);
    height: 0;
    background: #1E5945;
    opacity: 0.5;
    border: 3px solid #1E5945;
    left: 50%;
    transform: translateX(-50%);

}

.map-contact {
    width: 80px;
    height: 38px;
    margin-top: -110px;
    margin-right: -75px;
    font-family: 'Goudy Old Style', serif;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 50px;
    color: #FFFFFF;
}

.main-content {
    display: flex;
    justify-content: flex-end;
    padding: 40px;
    margin-top: -545px;
}

gmp-map {

    width: 630px;
    height: 385px;
    margin-right: 40px; /* Отступ справа */
}

.contacts {
    text-align: left;
    margin-top: 40px;
    margin-left: 80px;
    margin-bottom: 15%;
    font-family: 'Inter', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    color: #FFFFFF;
    z-index: 999999;
}


.hours {
    display: flex;
    flex-direction: column;
    margin-left: 10px; /* Отступ между иконкой и текстом */
}

.days {
    font-weight: bold; /* Сделаем дни жирными */
}

.time {
    color: #fff; /* Цвет текста для времени */
}

.note {
    font-style: italic; /* Италик для дополнительной информации */
    color: #ddd; /* Более светлый цвет для заметки */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item img {
    width: 24px;
    height: 24px;
}


#header-desktop, #footer-desktop {
    display: flex; /* Используем Flexbox для выравнивания */
    justify-content: center; /* Центрируем контент по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    padding-top: 40px;
    background-color: black; /* Цвет фона хедера и футера */
    font-family: 'Inter', serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #FFFFFF
}

.header-content {
    display: flex; /* Flexbox для внутреннего контента хедера и футера */
    width: calc(100% - 140px); /* Занимаем всю ширину контейнера за вычетом отступов по 40px с каждой стороны */
    align-items: center; /* Центрируем по вертикали */
    justify-content: space-between; /* Разделяем контент по горизонтали */
}

.footer-content {
    font-family: Inter, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.36px;
    text-align: left;

    display: flex; /* Flexbox для внутреннего контента хедера и футера */
    width: calc(100% - 140px); /* Занимаем всю ширину контейнера за вычетом отступов по 40px с каждой стороны */
    align-items: center; /* Центрируем по вертикали */
    justify-content: space-between; /* Разделяем контент по горизонтали */
}

#header-logo, #footer-logo {
    height: 106px;
}

.header-nav, .footer-nav {
    display: flex; /* Flexbox для навигационной панели */
    gap: 60px; /* Расстояние между пунктами навигации */
    margin-left: auto; /* Отодвигаем навигацию к правому краю */
}

.nav-item {
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: #ffffff; /* Цвет текста */
    font-weight: 500; /* Жирность текста */
    position: relative; /* Позиционирование для dropdown */
}

.nav-item:hover {
    text-decoration: none;
    color: #ADF1D0; /* Цвет фона при наведении */
}

.nav-item:active {
    color: #1E5945; /* Цвет фона при клике */
}

.header-line, .footer-line {
    margin-top: 180px;
    position: absolute;
    width: calc(100% - 140px);
    height: 0;
    background: #1E5945;
    opacity: 0.5;
    border: 3px solid #1E5945;
    left: 50%;
    transform: translateX(-50%);
}

#header-mobile {
    display: none; /* Скрыт по умолчанию, отображается на мобильных */
    background-color: black;
    padding: 20px 0;
    position: relative;

}

#header-mobile .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 20px;
}

#header-logo-mobile {
    width: 89.43px;
    height: 40px;
}

.burger-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
}

#menu-content-header {
    top: calc(100% + -17px);
    left: calc(100% + -135px);

    display: none;
    position: absolute;
    width: 111px;
    background: #000;
    border: 1px solid #1E5945;
    z-index: 1000;
}

.menu-item {
    padding: 10px;
    border-bottom: 1px solid rgba(30, 89, 69, 0.3);
    color: #fff;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: rgba(30, 89, 69, 0.3);
    cursor: pointer;
}


.hidden {
    display: none;
}

#language-dropdown, #language-dropdown-footer {
    text-align: center;
    position: absolute;
    width: 138px;
    height: 160px;
    background: #000000;
    border: 1px solid #1E5945;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    top: 100%; /* Расположение под кнопкой */
    left: 50%;
    transform: translateX(-50%);
}

#language-dropdown-mobile {
    top: calc(100% + -86px);
    left: calc(100% + -248px);
    text-align: center;
    position: absolute;
    background: #000000;
    border: 1px solid #1E5945;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;

}

.language-container {
    position: relative; /* Относительное позиционирование контейнера */
}


.language-option {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
    position: relative;
}


/* Линии */
.language-option::after {
    content: "";
    display: block;
    width: 116px;
    border-top: 1px solid #1E5945;
    margin: 5px 0;
}

.language-option:hover {
    color: #ADF1D0; /* Изменение фона при наведении */
}

.language-option:active {
    color: #1E5945; /* Изменение фона при клике */
}


/* Удалить линию для последнего элемента */
.language-option:last-child::after {
    display: none;
}

footer {
    font-family: Inter, serif;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 19.36px;
    font-weight: 400;
    text-align: left;
}

.footer-container {
    display: none;
}

.footer-container {
    background-color: #000000; /* Цвет фона */
    color: #FFFFFF; /* Цвет текста */
    padding: 20px; /* Отступы */
    text-align: center; /* Выравнивание текста по центру */
    position: relative; /* Для абсолютного позиционирования внутренних элементов */
}

.div-border-footer-mobile {
    height: 2px;
    background-color: #1E5945;
    opacity: 0.3;
    margin-bottom: 20px;
}

.div-border-footer {
    position: absolute;

    margin-top: -95px;
    width: calc(100% - 140px);
    height: 0;
    background: #1E5945;
    opacity: 0.5;
    border: 3px solid #1E5945;
    left: 50%;
    transform: translateX(-50%);
}

/* Стили для ссылок */
.footer-container a {

    color: #FFFFFF; /* Цвет ссылок */

}

.footer-container a:active {
    color: #ADF1D0;
}

.footer-container a:hover {
    text-decoration: none; /* Убрать подчеркивание */
}

@media (max-width: 1200px) {

    gmp-map {
        width: 570px;
        height: 385px;
        margin-right: 40px;
    }

    .main-content {
        margin-top: -505px;
    }

    #header-desktop {
        font-size: 18px;
    }

    .line-contact {
        margin-top: 315px;
        position: absolute;
        width: calc(100% - 230px);
    }

}


@media (max-width: 1060px) {
    .agr-block {
    margin-top: 8%;
}
    .card {
        height: 356px;
        width: 260px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-container-desktop {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        gap: 20px;
        margin-top: 4%;
        margin-left: 60px;
        margin-bottom: 120px;
        width: calc(4 * 20% + 3 * 3.5%); /* Ширина для 4 карточек с учётом отступов */
    }

    .map-contact {
        width: 80px;
        height: 38px;
        margin-top: -95px;
        margin-right: -75px;
        font-family: 'Goudy Old Style', serif;
        font-style: normal;
        font-weight: 700;
        font-size: 32px;
        line-height: 50px;
        color: #FFFFFF;
    }

    gmp-map {
        width: 570px;
        height: 385px;
        margin-right: 40px;
    }

    .main-content {
        margin-right: -30px;
        margin-top: -510px;
    }

    .h2-contact {
        margin-left: 80px;
        margin-top: 60px;
        width: 217px;
        height: 58px;
        font-family: 'Goudy Bookletter 1911', serif;
        font-style: normal;
        font-weight: 400;
        font-size: 32px;

    }

    .contacts {
        width: 315px;
        text-align: left;
        margin-top: 40px;
        margin-left: 80px;
        margin-bottom: 15%;
        font-family: 'Inter', serif;
        font-style: normal;
        font-weight: 500;
        font-size: 16px;
        line-height: 19px;
    }

    .line-contact {
        margin-top: 280px;
        position: absolute;
        width: calc(100% - 230px);
        border: 3px solid #1E5945;
    }

    .h3-contact {
        font-size: 28px;
    }

    #header-desktop {
        font-size: 18px;

    }

    #header-logo {
        height: 80px;
    }
}
@media (min-width: 1440px) {
    .main-content {
        margin-right: -30px;
        margin-top: -545px;
    }
}
@media (max-width: 990px) {
    .card {
        height: 317px;
        width: 231px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        font-size: 26px;
        margin-left: 40px;
        margin-right: auto;
        margin-top: -60px;
    }

    gmp-map {
        width: 630px;
        height: 386px;
        margin-right: 40px;
    }

    .h2-contact {
        margin-left: 80px;
        margin-top: 10px;
        width: 217px;
        height: 58px;
        font-family: 'Goudy Bookletter 1911', serif;
        font-style: normal;
        font-weight: 400;
        font-size: 26px;

    }

    .contacts {
        text-align: left;
        margin-top: 40px;
        margin-left: 80px;

        font-family: 'Inter', serif;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 19px;
    }

    .line-contact {
        margin-top: 170px;
        position: absolute;
        width: calc(100% - 230px);
        border: 1px solid #1E5945;
        opacity: 0.3;
    }

    .h3-contact {
        margin-top: 15px;
        font-size: 22px;
    }

    #header-desktop {
        font-size: 15px;

    }

    #header-logo {
        height: 60px;
    }

    .header-line {
        opacity: 0.3;
        margin-top: 75px;
        width: calc(100% - 139px);
        border: 1.7px solid #1E5945;
    }

}

@media (max-width: 890px) {
     .mail {
    font-family: Inter, serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 29.05px;
}
    .h2-text {

    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 43.53px;
    letter-spacing: 0.03em;
}
.break-text {
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 48.01px;
}
    .main-name {
        font-size: 40px;
        font-weight: 400;
        line-height: 76.18px;
    }

    .card-container-desktop {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        gap: 20px;
        margin-top: 4%;
        margin-left: 35px;
        margin-bottom: 120px;
        width: calc(4 * 20% + 3 * 3.5%); /* Ширина для 4 карточек с учётом отступов */
    }

    .card {
        height: 262px;
        width: 193px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .h3-contact {
        margin-top: 25px;
        font-size: 20px;
    }

    .language-option {
        font-size: 16px;
        line-height: 20px;
    }

    #language-dropdown {
        height: 136px;
    }

    #header-desktop {
        font-size: 13px;

    }


    #header-logo {
        height: 45px;
    }

    .header-line {
        opacity: 0.3;
        margin-top: 75px;
        width: calc(100% - 139px);
        border: 1.5px solid #1E5945;
    }
}

@media (max-width: 800px) {
    .mail {
    font-family: Inter, serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 29.05px;
}
    .h2-text {

    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 43.53px;
    letter-spacing: 0.03em;
}
.break-text {
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 48.01px;
}
    .card {
        height: 262px;
        width: 193px;
        border-radius: 28px;
        opacity: 10;
        overflow: hidden;
        background-color: #ccc;
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    #footer-desktop {
        display: none;
    }

    .map-contact {
        margin-left: -40px;
    }

    gmp-map {
        width: 530px;
        height: 286px;
        margin-right: 40px;
    }

    .main-content {
        font-size: 26px;
        margin-top: 5px;

    }

    .h2-contact {
        margin-left: 40px;
        margin-top: 21px;
        margin-bottom: -10px;
        width: 217px;
        height: 58px;
        font-family: 'Goudy Bookletter 1911', serif;
        font-style: normal;
        font-weight: 400;
        font-size: 26px;

    }

    .contacts {
        text-align: left;
        margin-top: 40px;
        margin-left: 40px;

        font-family: 'Inter', serif;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 19px;
    }

    .line-contact {
        margin-top: 170px;
        position: absolute;
        width: calc(100% - 230px);
        border: 1px solid #1E5945;
        opacity: 0.3;
    }

    .h3-contact {
        margin-right: 40px;
        margin-left: 40px;
        height: auto;
        margin-top: 22px;
        font-size: 18px;
        line-height: normal;
    }

    .footer-container {
        display: block;
    }

    #header-desktop, #footer-desktop {
        display: none;
    }

    #header-mobile {
        display: block;
    }

    .header-line {
        background: #1E5945;
        opacity: 0.3;
        border: 1px solid #1E5945;
        margin-top: 15px;
        width: calc(100% - 40px);
    }

    .header-content {
        width: calc(100% - 45px);
    }

    .burger-menu {

        font-size: 36px;
    }
}

@media (max-width: 750px) {
     .mail {
    font-family: Inter, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 29.05px;
}
    .h2-text {

    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 43.53px;
    letter-spacing: 0.03em;
}
.break-text {
    font-family: 'Goudy Bookletter 1911', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 48.01px;
}
    .main-name {
        font-size: 24px;
        font-weight: 400;
        line-height: 76.18px;
    }

    .card {
        height: 209px;
        width: 152px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    gmp-map {
        width: 430px;
        height: 286px;
        margin-right: 40px;
    }

    .main-content {
        font-size: 26px;
        margin-top: 5px;

    }

    .line-contact {
        margin-top: 170px;
        position: absolute;
        width: calc(100% - 150px);

    }
}

@media (max-width: 560px) {
    .card-container-desktop {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        gap: 20px;
        margin-top: 4%;
        margin-left: 20px;
        margin-bottom: 120px;
        width: calc(4 * 20% + 3 * 3.5%); /* Ширина для 4 карточек с учётом отступов */
    }

    .card {
        height: 157px;
        width: 116px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    gmp-map {
        width: 470px;
        height: 300px;
        margin-right: 40px;
    }

    .line-contact {
        margin-top: 190px;
        position: absolute;
        width: calc(100% - 70px);

    }
}

@media (max-width: 435px) {
    .card {
        height: 130px;
        width: 107px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    gmp-map {
        width: 300px;
        height: 220px;
        margin-right: 40px;
    }
}

@media (max-width: 400px) {
    .card {
        height: 133px;
        width: 100px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-item {
        width: 320px;
    }

    gmp-map {
        width: 285px;
        height: 220px;
        margin-right: 40px;
    }

    .line-contact {
        margin-top: 190px;
        position: absolute;
        width: calc(100% - 70px);

    }
}

@media (max-width: 390px) {
    .card {
        height: 115px;
        width: 95px;
        border-radius: 28px;
        opacity: 10; /* Начальная непрозрачность */
        /*transform: rotate(-90deg); !* Поворот *!*/
        overflow: hidden;
        background-color: #ccc; /* Серый фон */
        transition: opacity 0.5s ease, transform 0.5s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    gmp-map {
        width: 285px;
        height: 220px;
        margin-right: 40px;
    }
}

@media (max-width: 320px) {
    gmp-map {
        width: 235px;
        height: 180px;
        margin-right: 40px;
    }
}
