:root {
    --red: #e30613;
    --red-dark: #b0050f;
    --red-soft: rgba(227, 6, 19, 0.14);
    --graphite: #0d1013;
    --graphite-2: #1b1f24;
    --graphite-3: #232830;
    --black: #0a0c0e;
    --line: #2c333c;
    --steel: #8a939e;
    --steel-2: #c3cad2;
    --white: #f4f6f8;
    --green: #43b764;
    --amber: #d29922;
    --radius: 8px;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --font-display: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--graphite);
    color: var(--white);
    font-family: "Segoe UI", "Inter", "Arial", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: var(--steel-2);
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 {
    font-family: var(--font-display);
    font-size: 38px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

h2 {
    font-family: var(--font-display);
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.muted {
    color: var(--steel);
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.section {
    padding: 46px 0;
}

.section-alt {
    background: #111419;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 10px;
    background: var(--red);
}

.see-all {
    color: var(--steel);
    font-size: 14px;
    white-space: nowrap;
}

.see-all:hover {
    color: var(--red);
}

.btn,
.button {
    display: inline-block;
    padding: 12px 22px;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover,
.button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--steel-2);
    border-color: var(--line);
}

.btn-outline:hover {
    background: var(--red-soft);
    border-color: var(--red);
    color: #fff;
}

.btn-small {
    padding: 9px 14px;
    font-size: 12px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

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

.header-top-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-display);
    color: #fff;
    font-size: 24px;
    letter-spacing: 0.2em;
}

.brand-text small {
    color: var(--steel);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.header-search {
    flex: 1 1 260px;
    display: flex;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--graphite-2);
}

.header-search:focus-within {
    border-color: var(--red);
}

.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--white);
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
}

.header-search button {
    border: 0;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
}

.header-search button:hover {
    background: var(--red-dark);
}

.header-contacts {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    margin-left: auto;
    text-align: right;
}

.header-phone {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--red);
}

.header-contacts span {
    color: var(--steel);
    font-size: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.header-actions a {
    color: var(--steel-2);
    white-space: nowrap;
}

.header-actions a:hover {
    color: var(--red);
}

.header-cart {
    color: #fff;
    font-weight: 700;
}

.header-form {
    display: inline;
    margin: 0;
}

.header-form button {
    background: none;
    border: 0;
    color: var(--steel-2);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.header-form button:hover {
    color: var(--red);
}

.category-nav {
    background: #101317;
    border-top: 1px solid var(--line);
}

.category-nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav a {
    display: block;
    padding: 11px 13px;
    color: var(--steel-2);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
}

.category-nav a:hover {
    color: #fff;
    border-bottom-color: var(--red);
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(720px 360px at 85% 12%, rgba(227, 6, 19, 0.26), transparent 65%),
        radial-gradient(500px 260px at 8% 90%, rgba(227, 6, 19, 0.1), transparent 70%),
        linear-gradient(180deg, #0c0e11, #12151a);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 62px;
    padding-bottom: 62px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 48px;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.hero h1::after {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    margin-top: 18px;
    background: var(--red);
}

.hero-lead {
    color: var(--steel-2);
    font-size: 18px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin: 26px 0 24px;
    flex-wrap: wrap;
}

.hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.hero-chips li {
    font-size: 12.5px;
    color: var(--steel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 13px;
    background: rgba(27, 31, 36, 0.7);
}

.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 12px;
    background: linear-gradient(180deg, var(--graphite-2), var(--graphite-3));
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--steel-2);
    box-shadow: var(--shadow);
}

.hero-tile svg {
    width: 44px;
    height: 44px;
    fill: var(--red);
    stroke: var(--red);
}

.hero-tile span {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.category-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.category-tile:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--red-soft);
    margin-bottom: 6px;
}

.tile-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--red);
    stroke: var(--red);
}

.tile-name {
    font-family: var(--font-display);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tile-count {
    color: var(--red);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tile-subs {
    color: var(--steel);
    font-size: 13px;
    line-height: 1.45;
}

.tile-link {
    margin-top: auto;
    padding-top: 10px;
    color: var(--steel-2);
    font-size: 13px;
    font-weight: 600;
}

.category-tile:hover .tile-link {
    color: var(--red);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.solution-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.15s, transform 0.15s;
}

.solution-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.solution-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--red);
}

.solution-card h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 4px 0 0;
}

.solution-card p {
    color: var(--steel);
    font-size: 13.5px;
    margin: 0;
}

.solution-card ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 8px 0 0;
}

.solution-card li {
    font-size: 11.5px;
    color: var(--steel-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 9px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.trust-item {
    padding: 22px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--red-soft);
    margin-bottom: 12px;
}

.trust-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--red);
    fill: none;
}

.trust-item h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-item p {
    color: var(--steel);
    font-size: 13.5px;
    margin: 0;
}

.cta-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(560px 260px at 88% 30%, rgba(227, 6, 19, 0.2), transparent 65%),
        linear-gradient(180deg, #101317, #0c0e11);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 34px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0 0 6px;
}

.cta-band p {
    margin: 0;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cta-band .btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(280px 160px at 70% 20%, rgba(227, 6, 19, 0.08), transparent 70%),
        var(--graphite);
    border-bottom: 1px solid var(--line);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image {
    color: var(--steel);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px;
    flex: 1;
}

.card-brand {
    color: var(--steel);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-name {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.card-name a {
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-name a:hover {
    color: var(--red);
}

.card-artikul {
    margin: 0;
    color: var(--red);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.card-stock,
.detail-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: var(--steel-2);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.in-stock .dot {
    background: var(--green);
    box-shadow: 0 0 8px rgba(67, 183, 100, 0.7);
}

.out-stock .dot {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(210, 153, 34, 0.6);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.card-price {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.card-cart {
    display: inline;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 26px;
    padding-top: 30px;
    padding-bottom: 46px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 128px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.panel-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 24px;
}

.filter-box h3 {
    color: var(--steel);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.filter-box select,
.filter-box input[type="number"],
.filter-box input[type="text"],
.filter-box input[type="search"] {
    width: 100%;
}

.filter-inline {
    display: flex;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--steel-2);
    font-size: 14px;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs span {
    color: var(--steel);
}

.field-errors {
    color: #ff6b6b;
    font-size: 13px;
    margin: 0;
}

.helptext,
.errorlist {
    color: #ff6b6b;
    font-size: 13px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.reset-link {
    text-align: center;
    color: var(--steel);
    font-size: 13.5px;
}

.reset-link:hover {
    color: var(--red);
}

.catalog-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.catalog-head h1 {
    margin-bottom: 0;
}

.catalog-head .muted {
    font-size: 14px;
}

.page-note {
    font-size: 13px;
    margin-top: -12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 30px 0 10px;
    flex-wrap: wrap;
}

.pagination span {
    color: var(--steel);
    font-size: 14px;
}

.pagination a {
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--graphite-2);
    color: var(--steel-2);
    font-size: 13.5px;
}

.pagination a:hover {
    border-color: var(--red);
    color: #fff;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding: 22px 0 4px;
    font-size: 13.5px;
    color: var(--steel);
}

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

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

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    gap: 36px;
    padding: 22px 0 50px;
    align-items: start;
}

.detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(380px 220px at 70% 20%, rgba(227, 6, 19, 0.1), transparent 70%),
        var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}

.detail-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-info h1 {
    margin-bottom: 4px;
}

.detail-artikul {
    margin: 0;
    color: var(--red);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.detail-brand {
    margin: 0;
    color: var(--steel);
    font-size: 14.5px;
}

.detail-price {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
}

.add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.add-to-cart label {
    color: var(--steel);
    font-size: 14px;
}

.add-to-cart input[type="number"] {
    width: 86px;
}

.detail-note {
    color: var(--steel);
    font-size: 13.5px;
    margin: 2px 0 0;
}

.description {
    margin-top: 14px;
    padding: 18px 20px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--steel-2);
    font-size: 15px;
}

.description p {
    margin: 0 0 10px;
}

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

.message {
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--graphite-2);
    color: var(--steel-2);
    margin: 14px 0 0;
}

.message.success {
    border-color: rgba(67, 183, 100, 0.5);
    color: #7fd49a;
}

.message.error,
.message.warning {
    border-color: rgba(227, 6, 19, 0.5);
    color: #ff8f97;
}

.form p {
    margin: 0 0 14px;
}

.form label {
    display: block;
    color: var(--steel);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    padding: 11px 13px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--red);
}

select {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--red);
    width: 17px;
    height: 17px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.form textarea {
    width: 100%;
}

.form {
    max-width: 460px;
    padding: 24px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.order-form,
.table-wrap,
.cart-table {
    max-width: 720px;
}

.table-wrap,
.cart-table {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

th,
td {
    text-align: left;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--steel);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

tbody tr:hover {
    background: rgba(227, 6, 19, 0.05);
}

main > .container > h1,
main > h1 {
    padding-top: 26px;
}

main .form,
main .order-form,
main .cart-table,
main .table-wrap {
    margin-bottom: 40px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    background: #0a0c0e;
    border-top: 2px solid var(--red);
}

.site-footer::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(227, 6, 19, 0.2);
    box-shadow:
        0 0 0 55px rgba(227, 6, 19, 0.05),
        0 0 0 110px rgba(227, 6, 19, 0.03);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 30px;
    padding: 40px 20px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-brand img {
    display: block;
}

.footer-brand strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.06em;
}

.footer-brand p {
    color: var(--steel);
    font-size: 13.5px;
    margin: 4px 0 0;
}

.site-footer h4 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.site-footer a,
.site-footer span {
    display: block;
    color: var(--steel);
    font-size: 14px;
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0;
    color: var(--steel);
    font-size: 13px;
}

.blog-header,
main > h1 {
    margin-top: 8px;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 26px;
    padding: 0;
    list-style: none;
}

.blog-categories a,
.blog-categories .active {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--steel-2);
    background: var(--graphite-2);
}

.blog-categories .active,
.blog-categories a:hover {
    border-color: var(--red);
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    padding-bottom: 44px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}

.blog-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 16px 18px 20px;
}

.blog-meta {
    color: var(--steel);
    font-size: 12.5px;
    margin-bottom: 8px;
}

.blog-category-link {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-empty {
    color: var(--steel);
    padding-bottom: 40px;
}

.blog-meta span {
    margin-left: 12px;
}

.blog-article {
    max-width: 780px;
    margin: 0 auto;
    padding-bottom: 36px;
}

.blog-article-header h1 {
    font-size: 32px;
    margin: 10px 0 12px;
}

.blog-lead {
    color: var(--steel-2);
    font-size: 17px;
    border-left: 3px solid var(--red);
    padding-left: 14px;
}

.blog-cover {
    margin-bottom: 24px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.blog-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-content {
    color: var(--steel-2);
    font-size: 16px;
}

.blog-content p {
    margin: 0 0 14px;
}

.blog-content a {
    color: var(--red);
}

.blog-cta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
    padding: 24px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 14px;
}

.blog-cta h2 {
    margin: 0;
    font-size: 22px;
}

.blog-cta p {
    margin: 0;
    color: var(--steel);
    font-size: 14px;
}

.blog-cta div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.related-posts {
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.page-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 0 18px;
}

.page-head h1 {
    margin-bottom: 0;
}

.page-head p {
    margin: 0;
}

.cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    max-width: 720px;
    margin: 18px 0 16px;
    padding: 16px 20px;
    background: var(--graphite-2);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.cart-total strong {
    color: #fff;
    font-size: 20px;
    white-space: nowrap;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 720px;
    margin-bottom: 36px;
}

td form {
    margin: 0;
}

.empty-note {
    padding: 28px;
    background: var(--graphite-2);
    border: 1px dashed var(--line);
    border-radius: 14px;
}

@media (max-width: 1020px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero-visual {
        max-width: 520px;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 26px;
    }

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

    .grid {
        gap: 12px;
    }

    .card-body {
        padding: 13px;
    }

    .detail-media {
        max-width: 460px;
    }

    .header-top-inner {
        gap: 12px;
    }

    .header-contacts {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.fav-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 2;
}

.fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(13, 16, 19, 0.85);
    color: var(--steel);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.fav-btn svg {
    fill: currentColor;
}

.fav-btn:hover,
.fav-btn.active {
    color: var(--red);
    border-color: var(--red);
}

.fav-btn-wide {
    width: auto;
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius);
    font-size: 14px;
}

.detail-fav {
    margin: 0 0 14px;
}

.count-badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    vertical-align: 1px;
}
