:root {
    --accent: #d4669a;
    --accent-ink: #141416;
    --dark-base: #141416;
    color-scheme: light;
    font-family: "Open Sans", "Segoe UI", sans-serif;
    background: #ffffff;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("/fonts/open-sans/open-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("/fonts/open-sans/open-sans-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    background: #141416;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    color: #141416;
    background: #ffffff;
}

:root[data-theme="dark"] body {
    background: #141416;
    color: #f4f4f5;
}

header {
    background: #141416;
    color: #fff7fa;
    border-bottom: 1px solid rgba(244, 167, 186, .34);
    box-shadow: 0 10px 24px rgba(0, 31, 32, .16);
    position: relative;
    z-index: 20;
}

:root[data-theme="dark"] header {
    background: #141416;
    border-color: rgba(212, 102, 154, .28);
}

header .inner,
footer .inner,
main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
}

header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 8px;
}

.brand-logo {
    display: block;
    width: 170px;
    height: 43px;
    object-fit: contain;
}

.card,
.panel,
.filter-panel {
    background: #fff;
    border: 1px solid #d8e1dc;
    border-radius: 4px;
}

.filter-panel--sidebar,
.filter-panel--mobile {
    border-radius: 0;
}

.filter-panel--mobile {
    display: none;
}

@media (max-width: 980px) {
    .filter-panel--mobile {
        display: block;
    }
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .filter-panel {
    background: #24222a;
    border-color: rgba(244, 244, 245, .16);
    color: #eef4ef;
}

.cards {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.classified-card {
    display: block;
    width: 100%;
    padding: 12px;
    overflow: hidden;
    border-left: 3px solid #e61b23;
    border-radius: 0;
}

.listing-card-shell {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    grid-template-areas:
        "media summary"
        "media intro"
        "media footer";
    gap: 10px 14px;
    min-width: 0;
}

.listing-card-shell--no-description {
    grid-template-areas:
        "media summary"
        "media footer";
}

.listing-card-shell--no-footer {
    grid-template-areas:
        "media summary"
        "media intro";
}

.listing-card-shell--no-description.listing-card-shell--no-footer {
    grid-template-areas: "media summary";
}

.listing-media {
    grid-area: media;
    display: block;
    align-self: stretch;
    height: 100%;
    min-width: 0;
}

.listing-thumb {
    display: block;
    width: 100%;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    position: relative;
}

.listing-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.classified-main {
    grid-area: summary;
    min-width: 0;
}

.listing-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(168px, 190px);
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.listing-card-overview {
    display: grid;
    align-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    border: 1px solid #f0d8da;
    border-left: 2px solid #e61b23;
    background: #fffafa;
}

.card-price-grid {
    min-width: 0;
    margin: 0;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.listing-description {
    grid-area: intro;
    margin: 0;
}

.listing-card-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    background: #fff7f7;
}

@media (max-width: 700px) {
    .classified-card {
        padding: 10px;
        border-radius: 0;
    }

    .listing-card-shell {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 9px 11px;
    }

    .listing-title-row {
        grid-template-columns: minmax(0, 1fr) minmax(154px, 174px);
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .listing-card-shell {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 9px 10px;
    }

    .listing-title-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .card-price-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 350px) {
    .listing-card-shell {
        grid-template-columns: 92px minmax(0, 1fr);
        gap-inline: 8px;
    }

    .listing-title-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.floating-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 45;
}

body.consent-modal-open {
    overflow: hidden;
}

.age-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 24, 39, .78);
}

.age-consent-dialog {
    width: min(100%, 430px);
    border: 1px solid rgba(20, 20, 22, .14);
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .3);
}

:root[data-theme="dark"] .age-consent-dialog {
    background: #24222a;
    color: #eef4ef;
}

.age-consent-dialog h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: 0;
}

.age-consent-dialog p {
    margin: 0 0 18px;
    line-height: 1.55;
}

.age-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.age-consent-actions button,
.age-consent-actions a,
.cookie-consent-actions button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #d8e1dc;
    padding: 10px 14px;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.age-consent-confirm,
.cookie-consent-accept {
    border-color: #c3074f;
    background: #c3074f;
    color: #ffffff;
}

.age-consent-leave {
    background: transparent;
    color: inherit;
}

.cookie-consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #d8e1dc;
    border-radius: 6px;
    background: #fff;
    color: #1f2933;
    padding: 14px;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .18);
}

:root[data-theme="dark"] .cookie-consent-banner {
    background: #24222a;
    border-color: rgba(244, 244, 245, .16);
    color: #eef4ef;
}

html {
    scrollbar-color: #e61b23 #efefed;
    scrollbar-width: auto;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: #efefed;
}

::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 3px solid #efefed;
    border-radius: 0;
    background: #e61b23;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-corner {
    background-color: #bd1118;
}

@media (max-width: 760px) {
    .site-header .header-burger-button {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid #e61b23;
        border-radius: 0;
        background: #fff;
        color: #e61b23;
        padding: 0;
    }

    .site-header .header-burger-button span {
        display: block;
        width: 20px;
        height: 2px;
        flex: 0 0 2px;
        margin: 0;
        border-radius: 0;
        background: currentColor;
    }
}

.cookie-consent-banner p {
    margin: 0;
    line-height: 1.45;
}

.cookie-consent-banner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 720px) {
    .cookie-consent-banner {
        grid-template-columns: 1fr;
    }
}
