.home-shell {
    width: 100vw;
    margin: -18px calc(50% - 50vw) 0;
    padding-bottom: 64px;
    background: linear-gradient(180deg, #17181b 0%, #1a1c20 100%);
}

.hero-frame {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 520px;
    border: 1px solid #343840;
    background: #1f2127;
    max-width: 1590px;
    margin: 0 auto;
}

.hero-categories {
    background: linear-gradient(145deg, #2d2f36 0%, #26282e 100%);
    padding: 12px 0;
}

.hero-categories-title {
    margin: 0;
    padding: 12px 24px 14px;
    color: #ffa500;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #ffa500;
    background: linear-gradient(90deg, rgba(255, 165, 0, 0.08), transparent);
    box-shadow: inset 0 2px 4px rgba(255, 165, 0, 0.05);
}

.hero-categories ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hero-categories li {
    border-bottom: 1px solid #4a4d56;
}

.hero-categories a {
    display: block;
    text-decoration: none;
    color: #eceef2;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 24px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-categories a:hover {
    color: var(--primary-color);
    background: rgba(242, 169, 21, 0.06);
}

/* ── Hero Slider ─────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(0,0,0,0.70), rgba(0,0,0,0.15));
}

.hero-slide.active {
    opacity: 1;
    position: absolute;
}

.hero-inner {
    position: relative;
    max-width: 900px;
    padding: 320px 56px 60px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    transition: background 0.2s;
}

.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 16px; }
.hero-arrow-next { right: 16px; }

.hero-title {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.06;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 0 22px;
    color: #d3d7df;
    font-size: 16px;
}

.hero-cta {
    min-width: 130px;
    padding: 12px 28px;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
}

.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

/* ── VIN section ─────────────────────────────────────── */
.vin-section {
    background: linear-gradient(145deg, #23262d 0%, #1f2127 100%);
    border-radius: 10px;
    border: 1px solid #3a3f48;
}

.vin-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.vin-title {
    font-size: 22px;
    font-weight: 700;
    color: #f5f7fb;
    margin-bottom: 12px;
}

.vin-desc {
    color: #b8becb;
    font-size: 14px;
    line-height: 1.6;
}

.vin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vin-input,
.vin-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #4b515d;
    border-radius: 6px;
    font-size: 14px;
    background: #2d3139;
    color: #eef2f8;
    resize: vertical;
    box-sizing: border-box;
}

.vin-input::placeholder,
.vin-textarea::placeholder {
    color: #9aa3b3;
}

.vin-input:focus,
.vin-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.vin-submit { align-self: flex-start; }

/* ── Contacts section ────────────────────────────────── */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-info { color: #d3d7df; line-height: 1.8; font-size: 15px; }
.contacts-addr,
.contacts-phone,
.contacts-email { margin: 0; }
.contacts-phone { color: #f2a915; font-weight: 600; }

.contacts-hours {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.contacts-hours div {
    display: flex;
    gap: 24px;
}

.contacts-hours div span:first-child { min-width: 70px; color: #888; }

.contacts-map { border-radius: 8px; overflow: hidden; }

.hero-dot {
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    display: inline-block;
    transition: background 0.2s;
}

.hero-dot.active {
    background: #fff;
}

.section-space {
    max-width: 1640px;
    margin: 0 auto;
    padding: 52px 24px 0;
}

.section-space.vin-section {
    max-width: 1590px;
    margin-top: 76px;
    padding: 36px 28px;
}

.home-section-title {
    margin-bottom: 24px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 36px;
    letter-spacing: 0.03em;
    display: block;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.benefit-tile {
    background: linear-gradient(140deg, #33353c 0%, #2a2c32 100%);
    border: 1px solid #43474f;
    min-height: 130px;
    padding: 26px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.benefit-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: #111;
}

.benefit-content h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.benefit-content p {
    margin: 0;
    color: #c8ced8;
    font-size: 13px;
    line-height: 1.55;
}

/* Product grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #2b2d33;
    border: 1px solid #3c4047;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.featured-image {
    position: relative;
    height: 280px;
    background: #22242a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.featured-placeholder svg {
    width: 60px;
    height: 60px;
}

.featured-overlay-tools {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.featured-card:hover .featured-overlay-tools {
    opacity: 1;
}

.overlay-tool-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(30, 32, 38, 0.85);
    border: 1px solid #4a505a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dce1ea;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.overlay-tool-btn:hover {
    background: var(--primary-color);
    color: #111;
}

.featured-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.featured-name {
    font-size: 12px;
    font-weight: 700;
    color: #d8dce6;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

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

.featured-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-color);
}

/* Delivery banner */
.delivery-banner {
    background: #1d1e24;
    margin: 52px 0 0;
    padding: 48px 24px;
    text-align: center;
}

.delivery-banner-inner {
    max-width: 1640px;
    margin: 0 auto;
}

.delivery-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 10px;
}

.delivery-sub {
    font-size: 16px;
    color: #a0a8b6;
    text-transform: lowercase;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    border: 1px solid #3b3f47;
    background: #2a2d33;
    overflow: hidden;
}

.news-image {
    height: 240px;
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)),
        url("/static/images/home/news-1.jpg") center/cover no-repeat;
}

.news-image-alt {
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.22)),
        url("/static/images/home/news-2.jpg") center/cover no-repeat;
}

.news-image-third {
    background:
        linear-gradient(120deg, rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0.2)),
        url("/static/images/home/news-3.jpg") center/cover no-repeat;
}

.news-card-img {
    width: 100%;
    height: 240px;
    display: block;
    object-fit: cover;
}

.news-card-img-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)), #2a2d33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.news-body {
    padding: 18px;
}

.news-body h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.25;
}

.news-body p {
    color: #c8ced8;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.news-body a:hover {
    text-decoration: underline;
}

@media (max-width: 1360px) {
    .featured-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .hero-frame {
        grid-template-columns: 1fr;
    }

    .hero-categories {
        display: none;
    }

    .vin-wrapper,
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-space.vin-section {
        margin-top: 56px;
        padding: 28px 20px;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        padding: 34px 22px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
    }

    .home-section-title {
        font-size: 26px;
    }

    .featured-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

