:root {
    --ink: #14161a;
    --ink-soft: #555b65;
    --accent: #8d221e;
    --accent-dark: #6f1a16;
    --paper: #ffffff;
    --mist: #f4f5f7;
    --line: #e3e5e9;
    --green: #26733d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

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

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

a:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(141, 34, 30, 0.35);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h2 {
    letter-spacing: -0.02em;
}

.container {
    width: min(1152px, calc(100% - 32px));
    margin-inline: auto;
}

.narrow {
    width: min(800px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.header-row {
    display: flex;
    height: 68px;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.brand img {
    width: 32px;
    height: 36px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 24px;
}

.desktop-nav a {
    color: var(--ink-soft);
    font-size: 14px;
    transition: color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
    color: var(--accent);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 12px 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.button:active {
    transform: translateY(1px);
}

.button-small {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 13px;
}

.header-ozon {
    margin-left: auto;
}

.button-outline {
    border-color: rgba(20, 22, 26, 0.25);
    background: transparent;
    color: var(--ink);
}

.button-outline:hover {
    border-color: var(--ink);
    background: transparent;
}

.button-full {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 18px;
    font-size: 14px;
}

.mobile-menu {
    display: none;
}

.hero {
    border-bottom: 1px solid var(--line);
    background: var(--mist);
    padding: clamp(72px, 10vw, 112px) 0;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 790px;
    margin-bottom: 24px;
    font-size: clamp(42px, 7vw, 64px);
    font-weight: 900;
}

.hero-lead {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.page-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantages article::before {
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: 20px;
    background: var(--accent);
    content: "";
}

.advantages h2 {
    margin-bottom: 10px;
    font-size: 19px;
}

.advantages p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

.catalog-preview {
    padding-bottom: 80px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 32px;
}

.section-heading a,
.footer-ozon {
    color: #b44b46;
    font-size: 14px;
    font-weight: 700;
}

.section-heading a:hover,
.footer-ozon:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(20, 22, 26, 0.09);
    transform: translateY(-2px);
}

.product-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--mist);
}

.product-image img {
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.4;
}

.product-card h3 a:hover {
    color: var(--accent);
}

.product-card-body > p {
    margin-bottom: 16px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.price {
    margin-bottom: 18px;
    font-size: 23px;
    font-weight: 900;
}

.scenarios-section {
    padding: 72px 0;
    background: var(--ink);
    color: #fff;
}

.scenarios-section h2 {
    margin-bottom: 30px;
    font-size: 32px;
}

.scenarios-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.scenarios-list li,
.accent-list li {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.scenarios-list li::before,
.accent-list li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c94f48;
    content: "";
}

.lead {
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.6;
}

.catalog-page > h1 {
    margin-bottom: 8px;
}

.catalog-category {
    margin-top: 48px;
}

.catalog-category > h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

.product-page {
    padding-top: 40px;
    padding-bottom: 24px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--accent);
}

.product-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
}

.product-detail-image {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--mist);
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    padding: 40px;
    object-fit: contain;
}

.product-main h1 {
    font-size: clamp(30px, 4vw, 42px);
}

.product-short {
    color: var(--ink-soft);
    font-size: 18px;
}

.price-large {
    margin-top: 26px;
    margin-bottom: 8px;
    font-size: 38px;
}

.stock {
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.button-buy {
    min-width: 240px;
    margin-top: 12px;
}

.price-note {
    max-width: 440px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}

.product-description {
    margin-top: 28px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    margin-top: 64px;
}

.product-info h2,
.faq h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.specs {
    margin: 0;
}

.specs > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    font-size: 14px;
}

.specs dt {
    color: var(--ink-soft);
}

.specs dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.accent-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accent-list li {
    color: var(--ink-soft);
}

.faq {
    max-width: 800px;
    margin-top: 64px;
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
}

.faq summary::before {
    margin-right: 8px;
    color: var(--accent);
    content: "+";
}

.faq details[open] summary::before {
    content: "−";
}

.faq details p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.text-page > .lead {
    margin-top: 18px;
    margin-bottom: 40px;
}

.text-page > p,
.text-page > ul,
.text-page > ol {
    color: var(--ink-soft);
    line-height: 1.75;
}

.text-page h2 {
    margin-top: 38px;
    margin-bottom: 14px;
    font-size: 22px;
}

.text-page li + li {
    margin-top: 8px;
}

.text-page .plain-list {
    padding: 0;
    list-style: none;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-page > .button {
    margin-top: 20px;
}

.site-footer {
    margin-top: 88px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.67);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr 1fr;
    gap: 36px;
    padding-top: 52px;
    padding-bottom: 52px;
}

.brand-light {
    color: #fff;
}

.footer-grid p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-grid h2 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0;
}

.footer-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.55;
    list-style: none;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-ozon {
    display: inline-block;
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 12px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .desktop-nav {
        gap: 15px;
    }

    .desktop-nav a {
        font-size: 12px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu {
        display: block;
        margin-left: 0;
    }

    .mobile-menu summary {
        display: grid;
        width: 42px;
        height: 42px;
        cursor: pointer;
        place-content: center;
        gap: 5px;
        border: 1px solid var(--line);
        border-radius: 50%;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu summary span {
        display: block;
        width: 19px;
        height: 2px;
        background: var(--ink);
    }

    .mobile-menu nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--line);
        padding: 8px 16px 16px;
        background: #fff;
        box-shadow: 0 14px 20px rgba(20, 22, 26, 0.08);
    }

    .mobile-menu nav a {
        border-bottom: 1px solid var(--line);
        padding: 14px 4px;
        font-size: 14px;
    }

    .mobile-menu nav a:last-child {
        border-bottom: 0;
        color: var(--accent);
        font-weight: 700;
    }

    .product-main,
    .product-info {
        grid-template-columns: 1fr;
    }

    .product-main {
        gap: 34px;
    }

    .product-info {
        gap: 38px;
    }

    .scenarios-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .header-row {
        gap: 12px;
    }

    .header-ozon {
        min-height: 38px;
        margin-left: auto;
        padding-inline: 13px;
        font-size: 12px;
    }

    .brand span {
        display: none;
    }

    .hero {
        padding: 64px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .actions .button {
        width: 100%;
    }

    .advantages,
    .product-grid,
    .scenarios-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .advantages {
        gap: 28px;
    }

    .product-page {
        padding-top: 26px;
    }

    .product-detail-image img {
        padding: 24px;
    }

    .button-buy {
        width: 100%;
        min-width: 0;
    }

    .specs > div {
        gap: 14px;
        font-size: 13px;
    }

    .site-footer {
        margin-top: 64px;
    }
}
