:root {
    --sage: #4C6B56;
    --sage-shade: #3C5644;
    --sage-transparent: rgba(76, 107, 86, 0.85);

    --light: #F8F9FA;
    --light-shade: #E1E3E7;
    --light-transparent: rgba(248, 249, 250, 0.85);

    --dark: #121417;
    --dark-shade: #1E2125;
    --dark-transparent: rgba(18, 20, 23, 0.85);

    --success: #58C59D;
    --error: #F66D6D;
    --warning: #F4B740;
    --info: #9CA3AF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: relative;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: 700;
}

a {
    color: var(--sage);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

ul {
    list-style: none;
}

html {
    font-size: 16px;
}

body {
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    background-color: var(--light);
    color: var(--sage);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    max-width: 100%;
    display: block;
    height: auto;
}

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.loader {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.loader::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

.icon {
    width: 90%;
    height: 90%;
    z-index: 1;
}

.icon .stroke {
    stroke: var(--sage-shade);
    stroke-width: 4.69;
    stroke-miterlimit: 10;
    stroke-linecap: round;
}

.icon .fill {
    fill: var(--sage-shade);
}

.draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawPath 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.6s ease-in-out infinite;
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 300;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 300;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.mobile_logo {
    width: 48px;
    height: auto;
    display: block;
}

.mobile_logo .fill {
    fill: var(--sage);
}

.mobile_logo .stroke {
    stroke: var(--sage);
}

.desktop_logo {
    width: 120px;
    height: auto;
    display: block;
}

.desktop_logo .fill {
    fill: var(--sage);
}

.desktop_logo .stroke {
    stroke: var(--sage);
}

.wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--light);
    z-index: 1000;
}

header nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

header nav:nth-child(2) {
    gap: 8px;
}

.app_link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.app_name {
    display: flex;
    flex-direction: column;
}

.app_name span {
    font-size: 16px;
    font-weight: 700;
    color: var(--sage);
}

.desktop_menu {
    display: none;
}

.basket_button {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.basket_button:focus,
.basket_button:active {
    color: var(--light);
    background-color: var(--sage);
}

.basket_button[data-active="true"] {
    color: var(--light);
    background-color: var(--sage);
}

#basket_icon {
    width: 24px;
    height: 24px;
    display: block;
}

@keyframes basketJump {
    0% {
        transform: scale(1) translateY(0);
    }

    30% {
        transform: scale(1.1) translateY(-2px);
    }

    60% {
        transform: scale(0.95) translateY(1px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

.basket_alert {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    display: none;
    background-color: var(--sage);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.basket_button:focus #basket_icon .fill,
.basket_button:active #basket_icon .fill {
    fill: var(--light);
}

.basket_button[data-active="true"] #basket_icon .fill {
    fill: var(--light);
}

.basket_button:focus .basket_alert,
.basket_button:active .basket_alert {
    background-color: var(--light);
}

.basket_alert[data-display="true"] {
    display: flex;
    opacity: 1;
}

.basket_jump {
    transform: scale(1);
    animation: basketJump 0.4s ease;
}

.menu_button {
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.menu_button:focus,
.menu_button:active {
    background-color: var(--sage);
}

.menu_button[data-active="true"] {
    color: var(--light);
    background-color: var(--sage);
}

.menu_lines {
    width: 50%;
    height: 3px;
    display: block;
    background-color: var(--sage);
    border-radius: 48px;
}

.menu_button:focus .menu_lines,
.menu_button:active .menu_lines {
    background-color: var(--light);
}

.menu_button[data-active="true"] .menu_lines {
    background-color: var(--light);
}

.header_breadcrumb_text {
    font-size: 16px;
    font-weight: 700;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.section_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 128px 16px;
}

.section_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section_group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title {
    font-size: 24px;
    text-align: center;
}

.subtitle {
    font-size: 20px;
    text-align: center;
}

.description {
    font-size: 16px;
    text-align: center;
}

.cta_link {
    width: 192px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.cta_link:focus,
.cta_link:active {
    color: var(--light);
    background-color: var(--sage);
}

.image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.card_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card_container::-webkit-scrollbar {
    display: none;
}

.card_container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: scroll;
}

.card {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card_group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card_cta_link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: 0.3s ease-in-out;
}

.card_cta_link:focus,
.card_cta_link:active {
    transform: scale(0.99);
}

.card_image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card_image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.card_title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 18px;
    text-align: center;
}

.card_actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.card_cta_button {
    width: 192px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--sage);
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.card_cta_button:focus,
.card_cta_button:active {
    color: var(--light);
    background-color: var(--sage);
}

.list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.list_item {
    width: 100%;
    height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
}

.list_item:nth-child(odd) {
    background-color: var(--light);
    border: 1px solid var(--sage);
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.list_item:nth-child(even) {
    background-color: var(--sage);
    border: 1px solid var(--light);
    border-top-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

.list_item_icon {
    width: 84px;
    height: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.list_item:nth-child(odd) .list_item_icon {
    background-color: var(--light);
    border-radius: 50%;
}

.list_item:nth-child(even) .list_item_icon {
    background-color: var(--sage);
    border-radius: 50%;
}

.list_item_description {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.list_item:nth-child(odd) .list_item_description {
    color: var(--sage);
}

.list_item:nth-child(even) .list_item_description {
    color: var(--light);
}

.article {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article_title {
    font-size: 20px;
}

.article_content {
    font-size: 16px;
    font-weight: 400;
    color: var(--sage);
}

.article_content a {
    font-weight: 600;
    text-decoration: underline;
}

footer {
    width: 100%;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 16px;
}

footer nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.nav_group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer_nav_link {
    font-size: 14px;
    font-weight: 400;
    color: var(--sage);
    transition: 0.3s ease-in-out;
}

.footer_nav_link:focus,
.footer_nav_link:active {
    font-weight: 600;
    text-decoration: underline;
}

.footer_nav_link[data-active="true"] {
    font-weight: 600;
    text-decoration: underline;
}

.payment_providers {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment_providers span {
    font-size: 12px;
    font-style: italic;
}

.payment_providers img {
    max-width: 120px;
}

.copyright {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: var(--sage);
}

.mobile_menu_overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    display: none;
    flex-direction: column;
    padding: 16px;
    background-color: var(--light);
    z-index: 1001;
}

.mobile_menu_overlay[data-active="true"] {
    display: flex;
}

.mobile_menu::-webkit-scrollbar {
    display: none;
}

.mobile_menu {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: scroll;
}

.mobile_menu_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile_menu_group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile_menu_link {
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    transition: 0.3s ease-in-out;
}

.mobile_menu_link:focus,
.mobile_menu_link:active {
    font-weight: 600;
    text-decoration: underline;
}

.mobile_menu_link[data-active="true"] {
    font-weight: 600;
    text-decoration: underline;
}

.mobile_menu_footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media only screen and (min-width: 768px) {
    header {
        padding: 32px;
    }

    header nav:nth-child(1) {
        gap: 32px;
    }

    .app_name {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .desktop_menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .desktop_menu_link {
        padding: 8px;
        font-size: 16px;
        font-weight: 400;
        color: var(--sage);
        transition: 0.3s ease-in-out;
    }

    .desktop_menu_link:focus,
    .desktop_menu_link:active {
        font-weight: 600;
        text-decoration: underline;
    }

    .desktop_menu_link[data-active="true"] {
        font-weight: 600;
        text-decoration: underline;
    }

    .section_wrapper {
        padding: 128px 32px;
    }

    .section_container {
        gap: 32px;
    }

    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 24px;
    }

    .card_title {
        text-align: center;
    }

    .card_cta_button {
        margin: 0 auto;
    }

    .list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .list_item {
        width: calc(50% - 8px);
    }

    .list_item:nth-child(3) {
        background-color: var(--sage);
        border: 1px solid var(--light);
    }

    .list_item:nth-child(3) .list_item_icon {
        background-color: var(--sage);
    }

    .list_item:nth-child(3) .list_item_description {
        color: var(--light);
    }

    .list_item:nth-child(4) {
        background-color: var(--light);
    }

    .list_item:nth-child(4) .list_item_icon {
        background-color: var(--light);
    }

    .list_item:nth-child(4) .list_item_description {
        color: var(--sage);
    }

    footer {
        padding: 32px;
    }

    footer nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .nav_group {
        gap: 16px;
    }

    .menu_button {
        display: none;
    }

    .mobile_menu_overlay {
        display: none;
    }
}

@media only screen and (min-width: 960px) {
    header {
        padding: 32px 64px;
    }

    .desktop_menu_link:hover {
        font-weight: 600;
        text-decoration: underline;
    }

    .basket_button:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    .basket_button:hover #basket_icon .fill {
        fill: var(--light);
    }

    .basket_button:hover .basket_alert {
        background-color: var(--light);
    }

    .section_wrapper {
        padding: 128px 64px;
    }

    .title {
        font-size: 48px;
    }

    .subtitle {
        font-size: 36px;
    }

    .cta_link:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    .card_cta_link:hover {
        transform: scale(0.99);
    }

    .card_cta_button:hover {
        color: var(--light);
        background-color: var(--sage);
    }

    footer {
        padding: 64px;
    }

    .footer_nav_link:hover {
        font-weight: 600;
        text-decoration: underline;
    }
}