@font-face {
  font-family: 'Commissioner';
  src: url('../fonts/Commissioner-VariableFont_FLAR\,VOLM\,slnt\,wght.ttf');
}

body {
    background-color: #F4F1EC;
    margin: 0px;
}

/* Отключаем подсветку на мобильных устройствах */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, a, ul, ol, figure, label, button {
    font-family: 'Commissioner', Arial, Helvetica, sans-serif;
    margin: 0;
    color: #1F1F1F;
    text-decoration: none;
    font-weight: 300;
    font-display: fallback;
}

h1, h2, h3, p, ul, ol {
    line-height: 1.5;
}

h1::selection, h2::selection, h3::selection, p::selection, a::selection, label::selection, button::selection {
    background-color: #C4653C;
}

img {
    user-select: none;
}

p, a, ul, ol, figcaption, label, button {
    font-size: 16px;
}

a {
    white-space: nowrap;
}

label > a, p > a {
    color: #BF6F4D;
    text-decoration: underline;
}

label > a::selection, p > a::selection {
    color: #1F1F1F;
}

h1 {
    font-weight: 500;
    font-size: 42px;
    line-height: 1.3;
}

h2 {
    font-weight: 500;
    font-size: 32px;
}

h3 {
    font-weight: 500;
    font-size: 24px;
}

.container {
    padding: 0 50px;
    display: block;
    max-width: 1400px;
    margin: 0 auto;
}

input[type='checkbox'] {
    cursor: pointer;
    appearance: none;
    position: relative;
    height: 16px;
    width: 16px;
    background-color: #F4F1EC;
    border: 1px solid #333333;
    border-radius: 3px;
    transition: background-color 0.2s;
    will-change: background-color;
}

input[type='checkbox']:checked {
    background-color: #333333;
}

input[type='checkbox']::after {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    background-image: url("../src/svg/check.svg");
    background-repeat: round;
    transition: 500ms;
}


@media (max-width: 768px) {
    p, a, ul, ol, figcaption, label, button {
        font-size: 14px;
        color: #1F1F1F;
        text-decoration: none;
    }

    h3 {
        font-size: 18px;
    }

    h2 {
        font-size: 22px;
    }

    h1 {
        font-size: 32px;
    }

    input[type='checkbox'] {
        height: 14px;
        width: 14px;
    }

    input[type='checkbox']::after {
        height: 12px;
        width: 12px;
    }

    .container {
        padding: 0 20px;
    }
}

/* ------ Header -------------- */

header {
    top: 0;
    display: block;
    width: 100vw;
    position: fixed;
    background-color: #F4F1EC;
    will-change: height;
    z-index: 1;
}

header a {
    font-weight: 500;
}

.menu_icon {
    display: none;
}

header > div {
    will-change: height;
    max-width: 1500px;
    display: flex;
    margin: 24px auto 0 auto;
    justify-content: space-between;
}

header > div > div,
header > div > nav {
    overflow-y: hidden;
    display: flex;
    align-items: center;
    margin: 0 40px;
}

header > div > div > h3,
header > div > nav > a {
    margin: 0px 25px;
}

.menu_icon > path {
    transition: transform 0.2s;
    will-change: transform;
}

header::after {
    content: "";
    background-color: #BABABA;
    height: 1px;
    width: 100vw;
    display: block;
    margin-top: 24px;
}

@media (min-width: 769px) {
    header > div > div,
    header > div > nav {
        /* Если меню открыто, а редим десктопный */
        max-height: 35px; 
    }
}

@media (max-width: 768px) {
    header img {
        height: 24px;
        width: 24px;
    }

    .menu_icon {
        display: block;
    }

    header > div {
        flex-direction: column;
    }

    .title_block {
        justify-content: space-between;
        margin: 0 20px;
    }

    .header_href_list {
        height: 0px;
        transition: height 0.2s;
        will-change: height;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 20px;
    }

    .header_href_list > a {
        margin: 30px 0 0 0;
    }

    .header_href_list > a:last-of-type {
        margin-bottom: 10px;
    }
}

/* ------------ Изображения ------------------ */
.image_background {
    padding: 40px;
    border-radius: 20px;
    background-color: #BFCEED;
}

.image_background > img {
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .image_background {
        padding: 20px;
    }
}

/* ------------ Кнопки --------------------- */
.button {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    border-radius: 8px;
    padding: 12px 26px;
    line-height: 20px;
    transition: background-color 0.2s;
    border: none;
}

.button:focus {
  outline: none;
}

.button.black {
    color: #EAEAEA;
    background-color: #333333;
}

.button.black.disabled {
    background-color: #939393;
    cursor: auto;
}

.button.white {
    background-color: #EAE3D6;
}

.button.blue {
    background-color: #94ACDE;
}

.button.svg {
    padding: 12px 18px;
    height: 20px;
}

@media (max-width: 768px) {
    .button {
        user-select: none;
        display: inline-block;
        border-radius: 8px;
        padding: 10px 20px;
        line-height: 18px;
    }

    .button.svg > img {
        height: 16px;
    }

    .button.svg {
        padding: 10px 10px;
        height: 16px;
    }
}

/* ------------ Footer --------------------- */

main {
    min-height: calc(100vh - 155px);
}

footer::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background-color: #BABABA;
    margin-bottom: 20px;
}

footer p, footer a {
    font-size: 14px;
}

.footer_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer_top a {
    display: block;
    text-align: right;
    margin: 10px 0;
}

.foter_buttom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

@media (max-width: 768px) {
    footer p, footer a {
        font-size: 11px;
    }

    main {
        min-height: calc(100vh - 140px);
    }
}

@media (max-width: 400px) {
    .footer_top {
        display: block;
    }

    .footer_title {
        display: none;
    }

    main {
        min-height: calc(100vh - 144px);
    }
}

/* -------- Блок внимания ---------------- */

.attection {
    max-width: 750px;
    gap: 100px;
    background-color: #F4F1EC;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 70px auto 0 auto;
    padding: 50px;
}

.attection.compact {
    max-width: 600px;
    margin-top: 0px;
    padding: 50px 0 15px 0;
}

.attection p {
    font-weight: 500;
}

@media (max-width: 768px) {
    .attection {
        gap: 50px;
    }
}

/* ----------- Блок о Cookie ----------------- */
#privacy_message {
    position: fixed;
    bottom: 30px;
    z-index: 2;
    display: none;
    width: 670px;
    padding: 15px;
    border-radius: 12px;
    background-color: #F4F1EC;
    border: 1px solid #BABABA;
    margin-left: calc(50vw - 335px);
}

#privacy_message .buttons_container {
    display: flex;
    justify-content: space-between;
}

#privacy_message p {
    margin-bottom: 15px;
}

@media (max-width: 890px) {
    #privacy_message {
        margin: 0 15px;
        width: calc(100vw - 60px);
    }
}
