﻿/* AvtoGid: city-service editorial homepage layer */
body.is-home {
    background: #f4f1ea;
}
body.is-home .site-main {
    padding-top: 0;
}
.ag-hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #111827;
    border-bottom: 1px solid rgba(17,24,39,0.16);
}
.ag-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ag-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(244,241,234,0.98) 0%, rgba(244,241,234,0.92) 34%, rgba(244,241,234,0.22) 58%, rgba(17,24,39,0.02) 100%),
        linear-gradient(0deg, rgba(17,24,39,0.34), rgba(17,24,39,0.02) 34%);
}
.ag-hero-inner {
    position: relative;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 360px);
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    padding-top: 46px;
    padding-bottom: 46px;
}
.ag-hero-copy {
    width: 100%;
}
.ag-kicker {
    margin: 0 0 12px;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}
.ag-hero h1 {
    margin: 0 0 18px;
    color: #15120e;
    font-size: clamp(2.25rem, 5.2vw, 5rem);
    line-height: 0.98;
    font-weight: 900;
    max-width: 10ch;
    letter-spacing: 0;
}
.ag-hero-desc {
    max-width: 560px;
    margin: 0 0 26px;
    color: #4b453d;
    font-size: 1.07rem;
    line-height: 1.65;
}
.ag-search {
    max-width: 530px;
    margin: 0 0 18px;
}
.ag-search input {
    border-color: rgba(15,118,110,0.26);
    box-shadow: 0 18px 50px rgba(17,24,39,0.16);
}
.ag-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ag-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 8px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(15,118,110,0.22);
    color: #0f766e;
    font-weight: 750;
    font-size: 0.88rem;
    box-shadow: 0 8px 24px rgba(17,24,39,0.08);
}
.ag-hero-actions a:hover {
    background: #0f766e;
    color: #fff;
}
.ag-hero-panel {
    display: grid;
    gap: 10px;
    align-self: end;
    margin-bottom: 22px;
}
.ag-hero-panel a {
    display: block;
    padding: 16px;
    border-radius: 8px;
    background: rgba(15,23,42,0.78);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 42px rgba(15,23,42,0.24);
}
.ag-hero-panel span {
    display: block;
    margin-bottom: 6px;
    color: #f6c76f;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}
.ag-hero-panel strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.35;
}
.ag-main {
    background: #f4f1ea;
}
.ag-photo-dispatch,
.ag-route-board,
.ag-feature-row,
.ag-feed,
.ag-note {
    padding: 54px 0 0;
}
.ag-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}
.ag-section-head h2 {
    margin: 0;
    color: #15120e;
    font-size: clamp(1.55rem, 2.2vw, 2.25rem);
    line-height: 1.14;
    font-weight: 850;
}
.ag-section-head-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
}
.ag-head-note {
    max-width: 320px;
    color: #696158;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 4px;
}
.ag-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 14px;
}
.ag-story-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    border: 1px solid rgba(21,18,14,0.12);
    box-shadow: 0 16px 34px rgba(21,18,14,0.1);
}
.ag-story-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.ag-story-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15,23,42,0.74) 0%, rgba(15,23,42,0.2) 56%, rgba(15,23,42,0.02) 100%);
}
.ag-story-card:hover img {
    transform: scale(1.035);
}
.ag-story-card span,
.ag-story-card h3 {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 1;
}
.ag-story-card span {
    bottom: 56px;
    color: #f6c76f;
    font-size: 0.73rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}
.ag-story-card h3 {
    bottom: 16px;
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.22;
    font-weight: 820;
}
.ag-story-large {
    grid-column: span 2;
    grid-row: span 2;
}
.ag-story-large h3 {
    font-size: clamp(1.5rem, 2.7vw, 2.55rem);
    max-width: 10ch;
}
.ag-story-large span {
    bottom: 96px;
}
.ag-story-tall {
    grid-row: span 2;
}
.ag-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.ag-category-card {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    color: #15120e;
    border: 1px solid rgba(21,18,14,0.1);
    box-shadow: 0 10px 25px rgba(21,18,14,0.06);
}
.ag-category-card::before {
    content: '';
    position: absolute;
    inset: auto -30px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(15,118,110,0.09);
}
.ag-category-card:nth-child(3n)::before {
    background: rgba(217,119,6,0.12);
}
.ag-category-card span {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 5px 8px;
    border-radius: 6px;
    background: #edf7f5;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}
.ag-category-card h3 {
    position: relative;
    margin: 0 0 8px;
    color: #15120e;
    font-size: 1.05rem;
    line-height: 1.22;
    font-weight: 850;
}
.ag-category-card p {
    position: relative;
    margin: 0;
    color: #696158;
    font-size: 0.9rem;
    line-height: 1.5;
}
.ag-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15,118,110,0.28);
    box-shadow: 0 16px 34px rgba(21,18,14,0.1);
}
.ag-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    box-shadow: 0 16px 36px rgba(17,24,39,0.12);
}
.ag-feature-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
    line-height: 1.16;
}
.ag-feature-card p {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.78);
    line-height: 1.55;
}
.ag-feature-card strong {
    color: #f6c76f;
}
.ag-feature-icon {
    width: 104px;
    height: 104px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 2.4rem;
}
.ag-recent-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.ag-articles-grid .article-home-card,
.ag-recent-scroll .recent-card {
    border-radius: 8px;
}
.ag-note {
    padding-bottom: 54px;
}
.ag-note p {
    margin: 0;
    padding: 18px 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(21,18,14,0.1);
    color: #696158;
    font-size: 0.92rem;
    line-height: 1.55;
}
@media (max-width: 980px) {
    .ag-hero-inner {
        grid-template-columns: 1fr;
        align-items: end;
    }
    .ag-hero-panel {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 0;
    }
    .ag-story-grid,
    .ag-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ag-story-large {
        grid-column: span 2;
    }
    .ag-story-tall {
        grid-row: span 1;
    }
}
@media (max-width: 720px) {
    .ag-hero {
        min-height: auto;
    }
    .ag-hero-img {
        object-position: 58% center;
    }
    .ag-hero-shade {
        background: linear-gradient(0deg, rgba(244,241,234,0.98) 0%, rgba(244,241,234,0.94) 58%, rgba(244,241,234,0.62) 100%);
    }
    .ag-hero-inner {
        min-height: 690px;
        padding-top: 84px;
        gap: 24px;
    }
    .ag-hero h1 {
        font-size: 2.55rem;
        max-width: 9ch;
    }
    .ag-hero-panel {
        grid-template-columns: 1fr;
    }
    .ag-section-head-row {
        display: block;
    }
    .ag-head-note {
        margin-top: 10px;
        max-width: none;
    }
    .ag-story-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 230px;
    }
    .ag-story-large,
    .ag-story-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .ag-story-large h3 {
        font-size: 1.35rem;
        max-width: none;
    }
    .ag-story-large span {
        bottom: 56px;
    }
    .ag-category-grid {
        grid-template-columns: 1fr;
    }
    .ag-feature-card {
        grid-template-columns: 1fr;
    }
    .ag-feature-icon {
        width: 74px;
        height: 74px;
        font-size: 2rem;
    }
}
@media (max-width: 900px) {
    body.is-home .mobile-menu-btn {
        display: block;
    }
    body.is-home .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 14px 20px 18px;
        background: #fff;
        border-bottom: 1px solid rgba(21,18,14,0.1);
        box-shadow: 0 14px 30px rgba(21,18,14,0.1);
    }
    body.is-home .main-nav.open {
        display: flex;
    }
}
