@font-face {
    font-family: "Onest VF";
    src: url("/fonts/Onest-VariableFont_wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root,
:root[data-theme="light"] {
    color-scheme: light;

    --bg: #FFEE00;
    --title: #000000;
    --form: #FFFFFF;
    --form-border: #FFFFFF;
    --form-shadow: 00000026;

    --bdrop: #00000099;
    --modal-border: #FFFFFF;

    --line: #F5F5F5;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #000000;
    --title: #ffffff;
    --form: #0F0F0FFF;
    --form-border: #252525FF;
    --form-shadow: #00000026;

    --bdrop: #191919d1;
    --modal-border: #252525FF;

    --line: #252525FF;
}

* {
    box-sizing: border-box;

    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

p,
h1,
h2,
h3 {
    margin: 0;
    line-height: 120%;
}

html,
body {
    height: 100%;
    margin: 0;
    font-size: 12px;

    /*background: linear-gradient(179deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%);*/
    background-attachment: fixed; /* важно */
    overscroll-behavior: none; /* убирать рваный bounce */
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main {
    padding-top: 100px;
    background-color: var(--bg);
}

.dts-container {
    width: 100%;
    padding: 0 24px;
    margin-bottom: 50px;
}

.dts-container.light {
    background-color: #FFFFFF;
}

.dts-container.gray {
    background-color: #33343B;
    margin: 0;
}

.hidden {
    display: none;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: brightness(0.8);
}



/* header*/

.header {
    width: 100%;
}

.header_container {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

.header_logo {
    display: flex;
    flex-wrap: nowrap;
    justify-content: left;
    align-items: center;

    text-decoration: none;
}

.header_logo-image {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: #FDEE21;
    margin-right: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.header_logo-image img {
    height: 24px;
    width: auto;
}

.header_logo-text {
    font-weight: 600;
    font-size: 1.5rem;

    text-decoration: none;
}

/* footer */

.footer {
    padding: 24px 0;
    background-color: #000000;
}

.footer_container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer_logo {
    width: 100%;
    margin-bottom: 18px;
}

.footer_logo-text {
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;

    color: #FFFFFF;
}

.footer_links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;

    gap: 12px;
}

.footer_links-item {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid #424242;
    outline: none;
}

.footer_links-item img {
    max-width: 24px;
    max-height: 24px;
    object-fit: cover;
}

.footer_links a {
    margin-bottom: 18px;
}

.footer_links-item.vk {
    background-color: #4186C6;
}

.footer_links-item.tg {
    background-color: #0BBBEF;
}

.footer_links-item.ok {
    background-color: #EE7203;
}

.footer_links-item.tt {
    background-color: #000000;
}

.footer_links-support {
    width: 100%;
    text-align: center;
}

.footer_docs a {
    display: block;
    font-size: 14px;
    font-weight: 200;
    color: #FFEE00;
}

.footer_docs a:not(:last-of-type) {
    margin-bottom: 12px;
}

/* discount button */

.dts-btn {
    display: block;
    width: max-content;
    padding: 13px 20px;
    border-radius: 12px;
    border: none;
    outline: none;
    /*box-shadow: none !important;*/

    text-decoration: none;

    line-height: 100%;
    font-weight: 700;
    font-size: 14px;

    transition: 0.15s ease-in-out;
    cursor: pointer;
}

.dts-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dts-btn.icon {
    display: flex;
    padding: 10px 10px;
}

.dts-btn.burger {
    padding: 10px 10px;
}

.dts-btn.high {
    font-weight: 700;
    padding: 16px 20px;
}

.dts-btn.icon img,
.dts-btn.icon span {
    height: 20px;
    width: auto;
}

.dts-btn.burger .navbar-toggler-icon {
    height: 20px;
    width: 20px;
}

.dts-btn.yellow {
    background-color: #FFEE00;
    color: #000000;
}

.dts-btn.gray {
    background-color: #F5F5F5;
    font-weight: 700;
    color: #000000;
}

.dts-btn.black {
    background-color: #000000;
    color: #FFEE00;
}

.dts-btn:hover:not(:disabled) {
    filter: brightness(1.2);
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.15);
}

/* discount card block and cards*/
.dts-cards {
    margin: 0px auto;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dts-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 15px;

    text-align: center;

    border-radius: 25px;
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
}

.dts-card_icon {
    margin: 0 auto;
    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.dts-card_icon img {
    width: 100%;
    height: auto;
}

.dts-card_title {
    font-weight: 700;
    color: #000000;
    font-size: 16px;
}

.dts-card_subtitle {
    color: #000000;
    font-size: 14px;
}

.dts-card_subtitle span {
    font-weight: 700;
}

.dts-card_subtitle a {
    color: #000000;
}

.dts-card_btn {
    width: 100%;

    display: block;
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 8px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
    text-decoration: none;

    background-color: #FFEE00;
    color: #000000;

    cursor: pointer;
}

.dts-card_btn:hover:not(:disabled) {
    filter: brightness(1.2);
    box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.15);
}

.dts-card_btn.red {
    background-color: #FF0000;
    color: #FFFFFF;
}

/* discount title */
.dts-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;

    font-size: 24px;
}

/* discount wide-banner */
.dts-banner {
    margin: 36px auto 0 auto;

    width: 100%;
    max-width: 1100px;
    aspect-ratio: 3 / 1;
    box-sizing: border-box;
    background-color: #FFEE00;
    border-radius: 20px;
}

.dts-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* form error */
.err {
    background-color: rgba(255, 60, 39, 0.29);
    color: #ff3c27;
    border: 2px solid #d93025;
    padding: 10px;
    border-radius: 12px;
}


/* media */
@media (min-width: 390px) {
    .dts-card_icon {
        width: 60px;
        height: 60px;
    }

    .dts-card_btn {
        padding: 18px 24px;
        border-radius: 12px;
    }

    .footer_links-item {
        width: 50px;
        height: 50px;
    }

    .footer_links-item img {
        max-width: 26px;
        max-height: 26px;
    }

    /*.dts-btn.high {*/
    /*    padding: 18px 24px;*/
    /*}*/

    .dts-title {
        font-size: 28px;
    }
}

@media (min-width: 480px) {
    html {
        font-size: 14px;
    }

    .header_logo-image {
        height: 44px;
        width: 44px;
    }

    .header_logo-image img {
        height: 24px;
    }

    .footer_links {
        flex-wrap: nowrap;
    }

    .footer_links-item {
        width: 50px;
        height: 50px;
    }

    .footer_links-item img {
        max-width: 26px;
        max-height: 26px;
    }

    .footer_links-support {
        width: fit-content;
    }

    .dts-btn {
        padding: 14px 24px;
        border-radius: 16px;
        font-size: 16px;
    }

    .dts-btn.high {
        font-weight: 700;
        padding: 17px 28px;
    }

    .dts-btn.icon,
    .dts-btn.burger {
        padding: 11px 11px;
    }

    .dts-btn.icon img,
    .dts-btn.icon span {
        height: 22px;
    }

    .dts-btn.burger .navbar-toggler-icon {
        height: 22px;
        width: 22px;
    }

    .dts-card_btn {
        padding: 17px 28px;
        border-radius: 16px;
        font-size: 16px;
    }

    .dts-card {
        gap: 16px;
    }

    .dts-card_icon {
        width: 65px;
        height: 65px;
    }

    .dts-card_title {
        font-size: 18px;
    }

    .dts-title {
        font-size: 32px;
    }
}

@media (min-width: 576px) {
    main {
        padding-top: 120px;
    }

    .footer_links {
        gap: 18px;
        justify-content: start;
    }

    /*    */

    .dts-card_title {
        font-size: 20px;
    }

    .dts-card_icon {
        width: 70px;
        height: 70px;
    }

    .dts-banner {
        margin-top: 50px;
        border-radius: 30px;
    }

    /*    */

    .dts-title {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .header_logo-image {
        height: 50px;
        width: 50px;
    }

    .header_logo-image img {
        height: 30px;
    }

    .footer_container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 36px;
    }

    .footer_logo {
        width: fit-content;
        margin-bottom: 0;
    }

    .footer_links {
        width: fit-content;
    }

    .footer_links-item {
        width: 56px;
        height: 56px;
    }

    .footer_links-item img {
        max-width: 30px;
        max-height: 30px;
    }

    .footer_links a {
        margin-bottom: 0;
    }

    /*.footer_links-item img {*/
    /*    max-width:24px;*/
    /*    max-height: 24px;*/
    /*}*/

    /**/

    .dts-btn {
        padding: 16px 28px;
        font-size: 18px;
    }

    .dts-btn.high {
        font-weight: 700;
        padding: 19px 32px;
    }

    .dts-btn.icon,
    .dts-btn.burger {
        padding: 13px 13px;
    }

    .dts-btn.icon img,
    .dts-btn.icon span {
        height: 24px;
    }

    .dts-btn.burger .navbar-toggler-icon {
        height: 24px;
        width: 24px;
    }

    /*    */

    .dts-card_icon {
        width: 75px;
        height: 75px;
    }

    .dts-card_title {
        font-size: 22px;
    }

    .dts-card_btn {
        padding: 19px 32px;
        border-radius: 20px;
        font-size: 18px;
    }

    .dts-banner {
        border-radius: 40px;
    }

    /*    */
}

@media (min-width: 992px) {
    .footer_links-item {
        width: 60px;
        height: 60px;
    }

    .footer_links-item img {
        max-width: 28px;
        max-height: 28px;
    }

    .dts-btn.high {
        font-weight: 700;
        padding: 21px 34px;
    }

    .footer_docs {
        width: fit-content;
    }

    /*    */

    .dts-card_title {
        font-size: 24px;
    }

    .dts-card_btn {
        padding: 21px 34px;
    }

    .dts-title {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    .dts-title {
        font-size: 44px;
    }
}

/* theme switch */

.theme-toggle {
    display: block;
}

.theme-toggle span {
    aspect-ratio: 1 / 1;
    display: block;
}

.theme-toggle .icon {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

html[data-theme="dark"] .theme-toggle .icon {
    background-image: url("/images/switcher/sun.png");
}

html[data-theme="light"] .theme-toggle .icon {
    background-image: url("/images/switcher/moon.png");
}

/* pdf docs */
