: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;
}


/* 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: 1;
}

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;
}

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;
}

header .switcher > * {
    position: relative;
}

header .switcher .account {
    margin-right: .75em;
}

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 2em auto;
    grid-template-rows: auto auto;
    gap: 4em 2em;
    grid-template-areas: 
        "logo subscribe subscribe"
        "container1 container2 container3";
}

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;
}

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;
    line-height: calc(100%+10px);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

footer .container a:hover {
    color: #fff;
}

footer .container .social_media {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1em;
}

footer .container .social_media img {
    max-width: 26px;
    max-height: 26px;
}



/* 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;
}

.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;
}