/* AUTOSHAKER modern homepage — editorial auto portal layout */
.asoago-front-main {
    padding: 0;
    margin: 0;
    max-width: none;
}

.asoago-home {
    --ash-bg: #0f1115;
    --ash-surface: #fff;
    --ash-muted: #6b7280;
    --ash-border: #e8eaed;
    --ash-accent: #e10600;
    --ash-accent-dark: #b80500;
    --ash-radius: 14px;
    --ash-shadow: 0 8px 30px rgba(15, 17, 21, 0.08);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-family: inherit;
    color: #1a1a1a;
}

.asoago-home *,
.asoago-home *::before,
.asoago-home *::after {
    box-sizing: border-box;
}

/* Hero */
.ash-hero {
    position: relative;
    margin: 0 -20px 32px;
    padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px);
    background: linear-gradient(135deg, #0f1115 0%, #1c2333 55%, #2a1a1a 100%);
    color: #fff;
    border-radius: 0 0 var(--ash-radius) var(--ash-radius);
    overflow: hidden;
}

.ash-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(225, 6, 0, 0.25), transparent 45%);
    pointer-events: none;
}

.ash-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.ash-hero-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ash-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 800;
}

.ash-hero-lead {
    margin: 0 0 24px;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.ash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.ash-btn:hover {
    transform: translateY(-1px);
}

.ash-btn-primary {
    background: var(--ash-accent);
    color: #fff;
}

.ash-btn-primary:hover {
    background: var(--ash-accent-dark);
    color: #fff;
}

.ash-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ash-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Category pills */
.ash-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.ash-cats a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
}

.ash-cats a:hover {
    background: #e5e7eb;
}

.ash-cats a.ash-cat-accent {
    background: #fee2e2;
    color: var(--ash-accent-dark);
}

/* Featured block */
.ash-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.ash-card {
    display: flex;
    flex-direction: column;
    background: var(--ash-surface);
    border: 1px solid var(--ash-border);
    border-radius: var(--ash-radius);
    overflow: hidden;
    box-shadow: var(--ash-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(15, 17, 21, 0.12);
}

.ash-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e5e7eb;
    overflow: hidden;
}

.ash-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.ash-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--ash-muted);
}

.ash-card-tag {
    color: var(--ash-accent-dark);
    font-weight: 700;
}

.ash-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 800;
}

.ash-card-featured h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.ash-card-excerpt {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.ash-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ash-card-compact .ash-card-media {
    aspect-ratio: 16 / 9;
}

.ash-card-compact h3 {
    font-size: 1rem;
}

/* News grid */
.ash-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ash-section-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
}

.ash-section-head a {
    color: var(--ash-accent-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ash-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.ash-news-grid .ash-card h3 {
    font-size: 0.98rem;
}

/* OSAGO promo */
.ash-osago-promo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 36px);
    margin-bottom: 36px;
    border-radius: var(--ash-radius);
    background: linear-gradient(120deg, #111827, #1f2937);
    color: #fff;
}

.ash-osago-promo h2 {
    margin: 0 0 10px;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.ash-osago-promo p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.ash-osago-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ash-osago-grid a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s;
}

.ash-osago-grid a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* GEO block */
.ash-geo {
    padding: 28px 32px;
    border-radius: var(--ash-radius);
    background: #f9fafb;
    border: 1px solid var(--ash-border);
}

.ash-geo h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.ash-geo p {
    margin: 0 0 12px;
    color: #374151;
    line-height: 1.75;
}

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

/* Hide any legacy blocks that still leak through theme/widgets */
body.asoago-modern-home .entry-content .elementor,
body.asoago-modern-home .entry-content .elementor-section-wrap,
body.asoago-modern-home .entry-content > .elementor,
body.asoago-modern-home .entry-content .eael-post-grid,
body.asoago-modern-home .entry-content .crp_related,
body.asoago-modern-home .entry-content .woocommerce,
body.asoago-modern-home .site-main .elementor,
body.asoago-modern-home .page-header {
    display: none !important;
}

@media (max-width: 1024px) {
    .ash-featured {
        grid-template-columns: 1fr;
    }

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

    .ash-osago-promo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ash-news-grid {
        grid-template-columns: 1fr;
    }

    .ash-osago-grid {
        grid-template-columns: 1fr;
    }

    .ash-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
