@font-face {
    font-family: "Open Sans";
    src: url("/storefront/fonts/open-sans-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("/storefront/fonts/open-sans-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Open Sans";
    src: url("/storefront/fonts/open-sans-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --header: #252c37;
    --surface: #242b35;
    --page: #414149;
    --border: #808087;
    --muted-border: #343c49;
    --text: #ffffff;
    --accent: #f5a000;
    --chat: #1976e9;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--page);
    color: var(--text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}

a,
button,
input {
    font: inherit;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    min-height: 124px;
    background: var(--header);
    border-bottom: 3px solid #303845;
}

.header-inner {
    width: min(100% - 32px, 1000px);
    height: 121px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    width: 74px;
    height: 74px;
    display: block;
    flex: 0 0 auto;
}

.brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search {
    width: 212px;
    height: 31px;
    display: grid;
    grid-template-columns: 1fr 35px;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.search input {
    width: 100%;
    min-width: 0;
    padding: 3px 9px;
    border: 0;
    border-right: 1px solid var(--border);
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search input:focus {
    box-shadow: inset 0 0 0 1px var(--accent);
}

.search button,
.cart-button,
.purchases-button {
    height: 31px;
    border: 1px solid #464e5b;
    border-radius: 2px;
    background: linear-gradient(#555d6b, #323946);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.search button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search button img,
.cart-button img,
.purchases-button img,
.icon-button img,
.dialog-close img {
    width: 17px;
    height: 17px;
    filter: brightness(0) invert(1);
}

.cart-button {
    width: 50px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 1;
}

.cart-button:disabled {
    cursor: default;
}

.purchases-button {
    min-width: 126px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.purchases-button:hover,
.purchases-button:focus-visible {
    border-color: var(--accent);
}

.icon-button,
.mobile-search-panel {
    display: none;
}

.catalog-shell {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
    padding: 41px 0 64px;
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 10px;
    flex: 1 0 auto;
    align-content: start;
}

.catalog-navigation {
    border: 1px solid #b3b3b7;
    border-bottom: 3px solid var(--accent);
    align-self: start;
}

.catalog-navigation a {
    min-height: 46px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.catalog-navigation a:hover,
.catalog-navigation a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
}

.catalog-navigation a.is-active {
    color: var(--accent);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 240px);
    gap: 10px;
    align-items: start;
}

.platform-card {
    width: 240px;
    height: 282px;
    display: grid;
    grid-template-rows: 1fr 64px;
    background: var(--surface);
    overflow: hidden;
}

.platform-card:hover,
.platform-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.platform-logo {
    min-width: 0;
    padding: 26px 20px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-logo img {
    display: block;
    width: 100%;
    max-height: 138px;
    object-fit: contain;
}

.platform-name {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px;
    color: #d3d3d7;
}

.site-footer {
    min-height: 136px;
    background: var(--header);
}

.footer-inner {
    width: min(100% - 32px, 1000px);
    min-height: 56px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
}

.footer-link {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--accent);
}

.chat-button {
    position: fixed;
    right: 24px;
    bottom: 52px;
    width: 56px;
    height: 56px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--chat);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.chat-button img {
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
}

.contacts-dialog {
    width: min(100% - 32px, 520px);
    padding: 0;
    border: 1px solid #65656d;
    border-radius: 4px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.contacts-dialog::backdrop {
    background: rgba(19, 23, 29, 0.74);
}

.dialog-header {
    min-height: 58px;
    padding: 0 14px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #46464f;
}

.dialog-header h2 {
    margin: 0;
    font-size: 20px;
}

.dialog-close {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dialog-body {
    padding: 18px 20px 22px;
    color: #d0d0d3;
    line-height: 1.55;
}

.dialog-body p {
    margin: 0 0 9px;
}

.content-shell {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
    padding: 41px 0 72px;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 10px;
    flex: 1 0 auto;
    align-content: start;
}

.page-content {
    min-width: 0;
}

.breadcrumbs {
    min-height: 35px;
    padding: 0 6px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: #ffffff;
}

.breadcrumb-separator {
    color: #d5d5d7;
    font-size: 20px;
    line-height: 1;
}

.page-title {
    margin: 23px 5px 24px;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}

.catalog-tools {
    min-height: 52px;
    padding: 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.catalog-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-tools select {
    height: 31px;
    padding: 0 30px 0 12px;
    border: 1px solid #252b34;
    border-radius: 2px;
    background: #414957;
    color: #ffffff;
}

.product-list-card {
    min-height: 292px;
    margin: 0 5px;
    padding: 34px 21px 19px 12px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 12px 24px;
    background: var(--surface);
}

.product-list-image {
    grid-row: 1 / 3;
    align-self: start;
}

.product-list-image img {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.product-list-copy h2 {
    margin: -5px 0 22px;
    color: var(--accent);
    font-size: 17px;
}

.product-list-copy p {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.more-link {
    color: var(--accent);
    font-size: 16px;
}

.product-list-action {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.product-list-action strong {
    font-size: 21px;
    font-weight: 400;
}

.product-list-action small {
    font-size: 12px;
}

.outline-button {
    min-width: 130px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ff5e2b;
    border-radius: 2px;
    color: #ff5e2b;
    font-size: 16px;
}

.outline-button:hover,
.outline-button:focus-visible {
    background: #ff5e2b;
    color: #ffffff;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 422px) minmax(260px, 1fr);
    gap: 16px;
}

.product-gallery {
    min-height: 412px;
    padding: 20px 40px 50px;
    display: grid;
    place-items: center;
    background: var(--surface);
}

.product-gallery img {
    display: block;
    width: 100%;
    max-width: 342px;
    aspect-ratio: 1;
    object-fit: cover;
}

.purchase-panel {
    align-self: start;
    padding: 14px 20px 13px;
    background: var(--surface);
    text-align: center;
    text-transform: uppercase;
}

.purchase-price {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #46505e;
    text-align: left;
}

.purchase-price strong {
    font-size: 36px;
    font-weight: 400;
}

.purchase-price strong span {
    font-size: 12px;
}

.purchase-panel > p {
    margin: 20px 0;
    line-height: 1.05;
}

.subscribe-button {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ff5e2b;
    border-radius: 2px;
    background: #ff6137;
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
}

.subscription-message {
    color: #d6d6d9;
    font-size: 12px;
    text-transform: none;
}

.product-description,
.information-panel {
    margin-top: 24px;
    padding: 20px;
    background: var(--surface);
    line-height: 1.55;
}

.product-description + .product-description {
    margin-top: 0;
    padding-top: 0;
}

.product-description a,
.legal-content a {
    color: #3e9be8;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.product-description h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.contact-details {
    color: #c8c8cb;
}

.contact-details p {
    margin: 0 0 15px;
}

.contact-details a,
.dialog-body a {
    color: #3e9be8;
    text-decoration: underline;
}

.legal-content {
    color: #dedee1;
    font-size: 15px;
}

.legal-content h4,
.legal-content h5 {
    margin: 28px 0 14px;
    color: #ffffff;
    font-size: 20px;
}

.legal-content h4:first-child {
    margin-top: 0;
    font-size: 24px;
}

.legal-content .li,
.legal-content .descr,
.legal-content div {
    line-height: 1.55;
}

.legal-content table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}

.legal-content td,
.legal-content th {
    padding: 8px;
    border: 1px solid #555d68;
    text-align: left;
    vertical-align: top;
}

@media (max-width: 760px) {
    .site-header {
        min-height: 141px;
        position: relative;
    }

    .header-inner {
        width: 100%;
        height: 138px;
        justify-content: center;
        position: relative;
    }

    .brand {
        width: 73px;
        height: 73px;
        margin-top: 22px;
    }

    .header-actions {
        display: none;
    }

    .icon-button {
        position: absolute;
        z-index: 2;
        top: 0;
        width: 48px;
        height: 46px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 0;
        border-right: 1px solid #171c23;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-button {
        left: 0;
    }

    .mobile-search-button {
        right: 0;
        border-right: 0;
        border-left: 1px solid #171c23;
    }

    .mobile-search-panel {
        position: absolute;
        z-index: 4;
        left: 0;
        right: 0;
        top: 46px;
        height: 54px;
        padding: 8px 12px;
        background: var(--header);
    }

    .mobile-search-panel:not([hidden]) {
        display: block;
    }

    .mobile-search-panel input {
        width: 100%;
        height: 38px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 2px;
        background: #303743;
        color: var(--text);
        outline: 0;
    }

    .catalog-shell {
        width: 100%;
        min-height: 520px;
        padding: 41px 5px 72px;
        display: block;
        position: relative;
    }

    .content-shell {
        width: 100%;
        padding: 20px 5px 60px;
        display: block;
        position: relative;
    }

    .catalog-navigation {
        position: absolute;
        z-index: 5;
        top: 0;
        left: 0;
        width: min(280px, calc(100% - 48px));
        display: none;
        border-top: 0;
        background: var(--header);
        box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.35);
    }

    .catalog-navigation.is-open {
        display: block;
    }

    .catalog-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: hidden;
    }

    .platform-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: 0.84;
        grid-template-rows: 1fr 58px;
    }

    .platform-logo {
        min-width: 0;
        padding: 18px 12px 4px;
    }

    .platform-logo img {
        min-width: 0;
        max-width: 100%;
    }

    .platform-name {
        font-size: 15px;
    }

    .page-title {
        margin: 20px 5px;
        font-size: 25px;
    }

    .breadcrumbs {
        padding-left: 5px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .catalog-tools {
        min-height: 96px;
        padding: 0 5px 14px;
        flex-direction: column;
    }

    .catalog-tools label {
        width: 100%;
        justify-content: space-between;
    }

    .product-list-card {
        min-height: 0;
        margin: 0;
        padding: 14px;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 12px;
    }

    .product-list-image img {
        width: 100px;
        height: 100px;
    }

    .product-list-copy h2 {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .product-list-copy p {
        font-size: 12px;
    }

    .product-list-action {
        grid-column: 1 / -1;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        min-height: 0;
        padding: 18px;
    }

    .product-gallery img {
        max-width: 360px;
    }

    .information-panel,
    .product-description {
        margin-top: 15px;
        padding: 15px;
    }

    .legal-content {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .legal-content table {
        display: block;
        overflow-x: auto;
    }

    .site-footer {
        min-height: 183px;
    }

    .footer-inner {
        width: 100%;
        display: block;
    }

    .footer-link {
        width: 100%;
        min-height: 48px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #3a424f;
        text-align: left;
    }

    .chat-button {
        right: 16px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 390px) {
    .catalog-grid {
        gap: 6px;
    }

    .platform-logo {
        padding-right: 8px;
        padding-left: 8px;
    }
}
