:root {
    --section-margin: 5em 18vw 5em 7vw;
    --sima-margin: 18vw;
}


body {
    color: #fff;
    background-color: #000;
}

input:not([type="checkbox"]),
textarea,
select {
    padding: .5em .75em;
    border: none;
    background-color: #f5f5f5;
}

*:focus {
    outline: 1px solid #000;
}



/* menu */

.menu_open {
    display: none;
}

menu {
    display: none;
    padding: 2em 1em 1em;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10001;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
            transform: translateY(-100%);
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease;
}

menu.open {
    display: block;
    opacity: 1;
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
}


menu .logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

menu .logo a img {
    width: 44px;
    height: 36px;
}

menu nav {
    margin: 1rem 0;
}

menu nav a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 12px 0;
    color: #fff;
}

menu nav a::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: middle;
    content: "";
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23828282' d='M8 12L3 7l1.4-1.4L8 9.2l3.6-3.6L13 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
            transform: rotate(-90deg);
}

menu nav a svg {
    width: 16px;
    height: 8px;
}

menu hr {
    margin: 1.5em 0;
}

menu .actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

menu .actions > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: .5em;
}

menu .actions select {
    color: #fff;
    background: none;
    border: none;
    padding: 0 1.3rem 0 0.5rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23828282' d='M8 12L3 7l1.4-1.4L8 9.2l3.6-3.6L13 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right;
    background-size: 1em;
    font-size: 16px;
}

menu .actions select option {
    color: #000;
    font-size: 14px;
}

menu .subscribe_container .subscribe_open {
    width: 100%;
    padding: .5em;
    margin-top: .75em;
}

menu .social_media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: .5em;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    bottom: 1em;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    width: calc(100% - 2em);
}



/* header */

header {
    position: fixed;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 1em 7vw;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 3;
}

header a img {
    width: 76px;
    height: 60px;
}

header nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
    min-width: 50%;
}

header nav a {
    color: #fff;
    cursor: pointer;
}

header .social_media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.75em;
    width: 15%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

header .social_media a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

header .social_media img {
    max-width: 26px;
    max-height: 26px;
    width: auto;
    height: auto;
}

header .switcher {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.75em;
    min-width: 18%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

header .switcher > * {
    position: relative;
}

header .switcher .account {
    margin-right: .75em;
}

header .switcher .menu_button {
    display: none;
}

header .switcher .current {
    cursor: pointer;
}

header .switcher .languages .current::after,
header .switcher .currencies .current::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: middle;
    content: "";
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23828282' d='M8 12L3 7l1.4-1.4L8 9.2l3.6-3.6L13 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

header .switcher .open .current::after {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

header .switcher .list {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    background: #fff;
    border-radius: var(--border-radius);
    z-index: 3;
}

header .switcher .list > * {
    display: block;
    padding: 8px 12px;
    color: #000;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

header .switcher .list > *:hover {
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
}

header .switcher .list > * button {
    border: none;
    background: none;
}

header .switcher .languages,
header .switcher .currencies {
    position: relative;
}


/* footer */

footer {
    margin: 8em 8vw 2em;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 2em 1fr 2em 1fr;
    grid-template-columns: 1fr 1fr 1fr; /* Три одинаковые колонки */
    -ms-grid-rows: auto auto auto auto;
    grid-template-rows: auto auto auto auto; /* 4 строки теперь */
    -webkit-column-gap: 2em;
       -moz-column-gap: 2em;
            column-gap: 2em;
    grid-template-areas: 
        "logo subscribe subscribe"
        "container1 container2 container3"
        "social_media social_media social_media"
        "copyright copyright copyright";
}

footer .logo {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: logo;
}

footer .logo img {
    width: 7em;
}

footer .subscribe_container {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
    -ms-grid-column-span: 3;
    grid-area: subscribe;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    gap: 2em;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

footer .subscribe_container span {
    font-size: 28px;
    line-height: 100%;
}

/* Блок 3 - первый контейнер */
footer nav .container:first-child {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    grid-area: container1;
}

/* Блок 4 - второй контейнер */
footer nav .container:nth-child(2) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
    grid-area: container2;
}

/* Блок 5 - третий контейнер */
footer nav .container:last-child {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
    grid-area: container3;
}

/* Превращаем nav в контейнер без grid */
footer nav {
    display: contents; /* Делаем детей nav прямыми grid-элементами footer */
}


footer .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    margin-top: 4em;
}

footer .container div:nth-child(2) {
    margin-top: 6em;
}

footer .container h5 {
    margin-top: 0.8em;
    font-weight: 400;
    font-size: 20px;
    line-height: 100%;
    color: #fff;
}

footer .container a {
    display: block;
    padding-top: 10px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: 12px;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

footer .container a:hover {
    color: #fff;
}

footer .social_media {
    grid-area: social_media;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 1em;
    margin: 4em 0 1em;
}

footer .social_media img {
    max-width: 26px;
    max-height: 26px;
}

footer .copyright {
    grid-area: copyright;
}



/* cookie */

.cookie-banner {
    position: fixed;
    width: 76vw;
    left: 1.5vw;
    bottom: 2em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: .5em;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: .5em;
}

.cookie-content {
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.cookie-content p {
    margin: 0;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.cookie-content a {
    color: #fff;
    text-decoration: underline;
}

.cookie-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cookie-btn.accept {
    background: #4CAF50;
    color: white;
}

.cookie-btn.reject {
    background: #f44336;
    color: white;
}

.cookie-btn.settings {
    background: #2196F3;
    color: white;
}



/* popup */

.popup {
    color: #000;
}

.popup .popup_content {
    width: 40vw;
    text-align: center;
    padding: 2.5em 2em 2em;
    background-color: #fff;
    border-radius: 3px;
}

.popup .popup_content > *:not(.popup_close) {
    display: none;
}

.popup > * .header {
    font-weight: 300;
    font-size: 24px;
}

.popup > * .header .current {
    font-weight: bold;
    text-decoration: underline;
}

.popup > * .header :not(.current) {
    cursor: pointer;
}

.popup > * .form-error {
    color: red;
    font-weight: 300;
    font-size: 0.9em;
    margin-top: .5em;
}

.popup > * p {
    margin-top: 1.5em;
    font-weight: 300;
    font-size: 12px;
}

.popup > * input:not([type="checkbox"]),
.popup > * textarea,
.popup > * select {
    width: 100%;
    margin-top: 1em;
    border-radius: 3px;
    color: #000;
}

.popup > * button {
    margin-top: 2em;
    padding: .5em 1em;
    color: #fff;
    border: none;
    border-radius: 7px;
    background-color: #000;
}

.popup > * button .loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    -webkit-animation: spin 0.6s linear infinite;
            animation: spin 0.6s linear infinite;
}

@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.popup > * .hint {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: .5em;
    margin-top: 2em;
    font-weight: 300;
    font-size: 10px;
}

.popup > * .hint a {
    color: #000;
}

.popup > * input[type="checkbox"] {
    border-radius: 1px;
}



/* media for tablet */
@media screen and (max-width: 1000px) {
    :root {
        --section-margin: 3em 5vw;
    }
    
    .menu_open {
        display: block;
    }

    menu {
        padding: 2em 2em 1em;
    }

    /* header */
    header .switcher {
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }

    header nav,
    header .social_media,
    header .switcher .languages,
    header .switcher .currencies {
        display: none;
    }

    header .switcher .menu_button {
        display: block;
    }
}


/* media for phone */
@media screen and (max-width: 700px) {
    /* header */
    header {
        padding: 2em 1em 1em;
    }

    header a img {
        width: 44px;
        height: 36px;
    }

    /* footer */
    footer {
        margin: 4em 5vw 2em;
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: auto 1em 1fr;
        grid-template-columns: auto 1fr;
        -ms-grid-rows: auto 1em auto 1em auto 1em auto 1em auto;
        grid-template-rows: auto auto auto auto auto;
        gap: 1em;
        grid-template-areas: 
            "logo subscribe_text"
            "subscribe_btn subscribe_btn"
            "nav nav"
            "social_media social_media"
            "copyright copyright";
    }

    /* Скрываем оригинальный subscribe_container */
    footer .subscribe_container {
        display: contents;
    }

    /* Текст подписки - первая строка */
    footer .subscribe_container span {
        grid-area: subscribe_text;
        font-size: 18px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: end;
            -ms-flex-align: end;
                align-items: flex-end;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end
    }

    /* Кнопка подписки - вторая строка */
    footer .subscribe_open {
        grid-area: subscribe_btn;
        width: 100%;
        margin-bottom: 1em;
        padding: 0.9rem;
        font-size: 20px;
    }

    /* Навигация - третья строка (3 колонки) */
    footer nav {
        grid-area: nav;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: .5em;
    }

    footer .logo img {
        width: 5em;
    }

    footer .subscribe_container span {
        font-size: 18px;
        padding-bottom: 9px;
    }

    footer .container {
        margin-top: 0;
    }

    footer .container h5 {
        font-size: 15px;
    }

    footer .container a {
        font-size: 12px;
    }

    footer .social_media {
        margin: 2em 0 1em;
    }

    footer .copyright {
        font-size: 14px;
    }

    /* popup */
    .popup .popup_content {
        width: 95vw;
    }

    .popup > * .header {
        font-size: 18px;
    }

    /* cookie */
    .cookie-banner {
        width: 97vw;
        bottom: 1em;
    }

    .cookie-content {
        gap: 1em;
    }

    .cookie-buttons {
        width: 100%;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }

    .cookie-btn {
        width: 50%;
    }

    
    /* map */
    #map {
        aspect-ratio: 16 / 9;
    }

    /* parlax */
    .parlax {
        height: auto;
        background-attachment: local;
    }

    /* .main_section.parlax */
    .main_section.parlax {
        height: 45vh !important;
    }
}