:root {
    --ast-bg: #f5f6f7;
    --ast-surface: #ffffff;
    --ast-dark: #111315;
    --ast-dark-2: #1b1e21;
    --ast-text: #17191c;
    --ast-muted: #6d7379;
    --ast-line: #e5e7e9;
    --ast-accent: #e51b23;
    --ast-radius: 10px;
    --ast-container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ast-bg);
    color: var(--ast-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.55;
}

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

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

.ast-container {
    width: min(
        calc(100% - 40px),
        var(--ast-container)
    );
    margin-inline: auto;
}

.ast-reading-width {
    max-width: 840px;
}


/* HEADER */

.ast-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ast-dark);
    color: #fff;
    box-shadow: 0 2px 12px rgb(0 0 0 / 18%);
}

.ast-header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.ast-site-logo {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.ast-logo-auto {
    color: #fff;
}

.ast-logo-star {
    color: var(--ast-accent);
}

.ast-primary-navigation {
    flex: 1;
}

.ast-nav-list,
.ast-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ast-nav-list {
    display: flex;
    align-items: center;
    gap: 26px;
}

.ast-nav-list a {
    font-size: 14px;
    font-weight: 700;
    color: #e7e7e7;
}

.ast-nav-list a:hover {
    color: #fff;
}

.ast-header-search {
    display: flex;
    align-items: center;
    background: #282c30;
    border-radius: 8px;
    overflow: hidden;
}

.ast-header-search input {
    width: 130px;
    padding: 9px 4px 9px 12px;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.ast-header-search button {
    padding: 8px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ast-menu-toggle {
    display: none;
}


/* MAIN */

.ast-main {
    padding: 48px 0 70px;
}

.ast-archive-header {
    margin-bottom: 28px;
}

.ast-archive-header h1,
.ast-page h1,
.ast-article-header h1 {
    margin: 5px 0 10px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.ast-archive-header h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.ast-section-kicker,
.ast-card__category {
    color: var(--ast-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* GRID + CARDS */

.ast-grid {
    display: grid;
    gap: 24px;
}

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

.ast-card {
    overflow: hidden;
    background: var(--ast-surface);
    border-radius: var(--ast-radius);
    box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.ast-card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.ast-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.ast-card:hover .ast-card__image {
    transform: scale(1.025);
}

.ast-card__body {
    padding: 18px;
}

.ast-card__title {
    margin: 6px 0 12px;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.ast-card__title a:hover {
    color: var(--ast-accent);
}

.ast-card__date,
.ast-article-meta {
    color: var(--ast-muted);
    font-size: 13px;
}


/* SINGLE */

.ast-single {
    background: var(--ast-surface);
    padding: 50px 0 80px;
}

.ast-article-header h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.ast-single-image {
    margin: 30px 0;
}

.ast-single-image img {
    width: 100%;
    border-radius: var(--ast-radius);
}

.ast-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.ast-brand-badges a {
    padding: 6px 12px;
    background: #f0f1f2;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.ast-entry-content {
    font-size: 18px;
    line-height: 1.75;
}

.ast-entry-content a {
    color: var(--ast-accent);
    text-decoration: underline;
}

.ast-entry-content img {
    border-radius: 8px;
}


/* FOOTER */

.ast-site-footer {
    background: var(--ast-dark-2);
    color: #d7dade;
}

.ast-footer-inner {
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.ast-footer-description {
    max-width: 480px;
    color: #92989f;
}

.ast-footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

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

.ast-footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #30343a;
    color: #7f858c;
    font-size: 13px;
}


/* ACCESSIBILITY */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* MOBILE */

@media (max-width: 900px) {

    .ast-header-inner {
        min-height: 64px;
        gap: 18px;
    }

    .ast-menu-toggle {
        margin-left: auto;
        width: 38px;
        padding: 7px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: 0;
    }

    .ast-menu-toggle span:not(.screen-reader-text) {
        display: block;
        height: 2px;
        background: #fff;
    }

    .ast-primary-navigation {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 20px;
        background: var(--ast-dark);
    }

    body.ast-menu-open .ast-primary-navigation {
        display: block;
    }

    .ast-nav-list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .ast-nav-list a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #292d31;
    }

    .ast-header-search {
        display: none;
    }

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

@media (max-width: 620px) {

    .ast-container {
        width: min(calc(100% - 28px), var(--ast-container));
    }

    .ast-grid--3 {
        grid-template-columns: 1fr;
    }

    .ast-main {
        padding-top: 30px;
    }

    .ast-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ast-entry-content {
        font-size: 17px;
    }
}


/* =========================================================
   AVTOSTAR NEXT HOMEPAGE 0.2
   ========================================================= */

.ast-home {
    background: var(--ast-bg);
}

.ast-home-hero {
    padding: 46px 0 54px;
    background:
        linear-gradient(
            135deg,
            #111315 0%,
            #1b1e21 100%
        );
    color: #fff;
}

.ast-home-intro {
    max-width: 760px;
    margin-bottom: 30px;
}

.ast-home-intro h1 {
    margin: 5px 0 10px;
    font-size: clamp(34px, 4.8vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.ast-home-intro p {
    margin: 0;
    color: #aeb3b8;
    font-size: 17px;
}

.ast-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, .85fr);
    gap: 24px;
}

.ast-hero-lead {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 14px;
    background: #262a2e;
}

.ast-hero-lead__media {
    position: absolute;
    inset: 0;
}

.ast-hero-lead__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgb(0 0 0 / 92%) 0%,
            rgb(0 0 0 / 22%) 58%,
            rgb(0 0 0 / 4%) 100%
        );
}

.ast-hero-lead__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ast-hero-lead__content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px;
}

.ast-hero-lead__content h2 {
    max-width: 760px;
    margin: 7px 0 12px;
    font-size: clamp(27px, 3vw, 43px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.ast-hero-lead__content h2 a:hover {
    color: #fff;
}

.ast-hero-lead .ast-card__date {
    color: #b8bdc2;
}

.ast-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #25292d,
            #0e1012
        );
    color: #fff;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -3px;
}

.ast-hero-placeholder span {
    color: var(--ast-accent);
}

.ast-hero-side {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ast-card--compact .ast-card__body {
    padding: 14px;
}

.ast-card--compact .ast-card__title {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.22;
}

.ast-card--compact .ast-card__category {
    font-size: 10px;
}

.ast-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #25292d,
            #111315
        );
    color: #fff;
}

.ast-card__placeholder > span {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.ast-card__placeholder > span > span {
    color: var(--ast-accent);
}


/* SECTIONS */

.ast-home-section,
.ast-brand-section,
.ast-law-section {
    padding: 64px 0;
}

.ast-home-section + .ast-home-section {
    padding-top: 10px;
}

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

.ast-section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.ast-section-link {
    flex: 0 0 auto;
    color: #555b61;
    font-size: 14px;
    font-weight: 700;
}

.ast-section-link:hover {
    color: var(--ast-accent);
}

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


/* BRANDS */

.ast-brand-section {
    background: #fff;
    border-top: 1px solid var(--ast-line);
    border-bottom: 1px solid var(--ast-line);
}

.ast-brand-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-width: thin;
}

.ast-brand-tile {
    min-width: 120px;
    padding: 18px 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ast-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition:
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.ast-brand-tile:hover {
    transform: translateY(-2px);
    border-color: #c9cdd1;
    box-shadow: 0 7px 22px rgb(0 0 0 / 7%);
}

.ast-brand-tile__logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ast-brand-tile__logo img {
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.ast-brand-initial {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111315;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.ast-brand-tile__name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}


/* LAW */

.ast-law-section {
    background: #171a1d;
}

.ast-law-section .ast-card {
    box-shadow: none;
}

.ast-section-heading--dark h2 {
    color: #fff;
}

.ast-section-heading--dark .ast-section-link {
    color: #aeb3b8;
}

.ast-section-heading--dark .ast-section-link:hover {
    color: #fff;
}


/* PAGINATION */

.navigation.pagination {
    margin-top: 35px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.nav-links .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--ast-line);
    font-size: 13px;
    font-weight: 700;
}

.nav-links .current {
    background: var(--ast-dark);
    border-color: var(--ast-dark);
    color: #fff;
}

.nav-links a:hover {
    border-color: var(--ast-accent);
    color: var(--ast-accent);
}


/* HOMEPAGE RESPONSIVE */

@media (max-width: 1050px) {

    .ast-hero-grid {
        grid-template-columns: 1.25fr .9fr;
    }

    .ast-hero-side {
        grid-template-columns: 1fr;
    }

    .ast-hero-side .ast-card:nth-child(n+3) {
        display: none;
    }

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

@media (max-width: 760px) {

    .ast-home-hero {
        padding: 32px 0 38px;
    }

    .ast-hero-grid {
        grid-template-columns: 1fr;
    }

    .ast-hero-lead {
        min-height: 420px;
    }

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

    .ast-hero-side .ast-card:nth-child(n+3) {
        display: block;
    }

    .ast-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 620px) {

    .ast-home-intro h1 {
        font-size: 36px;
    }

    .ast-hero-lead {
        min-height: 360px;
    }

    .ast-hero-lead__content {
        padding: 22px;
    }

    .ast-hero-lead__content h2 {
        font-size: 27px;
    }

    .ast-hero-side {
        grid-template-columns: 1fr;
    }

    .ast-grid--4 {
        grid-template-columns: 1fr;
    }

    .ast-home-section,
    .ast-brand-section,
    .ast-law-section {
        padding: 45px 0;
    }
}

/* AvtoStar Next 0.2.1 — Hero compact cards */

.ast-home-hero .ast-hero-side .ast-card {
    color: var(--ast-text);
}

.ast-home-hero .ast-hero-side .ast-card__title,
.ast-home-hero .ast-hero-side .ast-card__title a {
    color: var(--ast-text);
}

.ast-home-hero .ast-hero-side .ast-card__title a:hover {
    color: var(--ast-accent);
}

.ast-home-hero .ast-hero-side .ast-card__date {
    color: var(--ast-muted);
}



/* =========================================================
   AVTOSTAR NEXT 0.3.0 — CATEGORY PAGES
   ========================================================= */

.ast-category-page {
    padding-top: 0;
}

.ast-category-header {
    padding: 50px 0 30px;
    max-width: 900px;
}

.ast-category-header h1 {
    margin: 5px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.03;
    letter-spacing: -.045em;
}

.ast-category-description {
    max-width: 760px;
    color: var(--ast-muted);
    font-size: 17px;
}

.ast-category-description p {
    margin: 0 0 10px;
}


/* FEATURED ARTICLE */

.ast-category-lead {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, .8fr);
    min-height: 390px;
    margin-bottom: 34px;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 2px 12px
        rgb(0 0 0 / 7%);
}

.ast-category-lead__media {
    min-height: 390px;
    overflow: hidden;
    background: #22262a;
}

.ast-category-lead__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ast-category-lead__placeholder {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #262a2e,
            #101214
        );
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -2px;
}

.ast-category-lead__placeholder span {
    color: var(--ast-accent);
}

.ast-category-lead__content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ast-category-lead__content h2 {
    margin: 8px 0 15px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ast-category-lead__content h2 a:hover {
    color: var(--ast-accent);
}

.ast-category-lead__excerpt {
    margin-bottom: 20px;
    color: #666d73;
    font-size: 16px;
    line-height: 1.6;
}

.ast-category-lead__excerpt p {
    margin: 0;
}


/* ARTICLE GRID */

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

.ast-category-grid .ast-card {
    height: 100%;
}

.ast-category-grid .ast-card__body {
    min-height: 165px;
    display: flex;
    flex-direction: column;
}

.ast-category-grid .ast-card__date {
    margin-top: auto;
}


/* PAGINATION */

.ast-category-pagination {
    padding: 42px 0 10px;
}

.ast-category-pagination .navigation.pagination {
    margin: 0;
}


/* EMPTY */

.ast-empty-state {
    margin: 20px 0 60px;
    padding: 35px;
    background: #fff;
    border-radius: var(--ast-radius);
}


/* TABLET */

@media (max-width: 900px) {

    .ast-category-lead {
        grid-template-columns: 1fr 1fr;
    }

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


/* MOBILE */

@media (max-width: 700px) {

    .ast-category-header {
        padding-top: 34px;
    }

    .ast-category-lead {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ast-category-lead__media {
        min-height: 260px;
        aspect-ratio: 16 / 9;
    }

    .ast-category-lead__placeholder {
        min-height: 260px;
    }

    .ast-category-lead__content {
        padding: 24px;
    }

    .ast-category-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   AVTOSTAR NEXT 0.4.0 — BRAND A-Z
   ========================================================= */

.ast-brand-catalog {
    background: var(--ast-bg);
}

.ast-brand-catalog__hero {
    padding: 58px 0 52px;
    background:
        linear-gradient(
            135deg,
            #101214 0%,
            #202429 100%
        );
    color: #fff;
}

.ast-brand-catalog__hero h1 {
    max-width: 900px;
    margin: 6px 0 16px;
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.ast-brand-catalog__hero p {
    max-width: 720px;
    margin: 0;
    color: #abb1b7;
    font-size: 18px;
    line-height: 1.65;
}

.ast-brand-catalog__stats {
    margin-top: 28px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ast-brand-catalog__stats strong {
    color: var(--ast-accent);
    font-size: 32px;
    line-height: 1;
}

.ast-brand-catalog__stats span {
    color: #c2c6ca;
    font-size: 14px;
}


/* A-Z NAVIGATION */

.ast-brand-index {
    padding: 46px 0 75px;
}

.ast-brand-alphabet {
    position: sticky;
    top: 90px;
    z-index: 20;
    margin-bottom: 42px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    background: rgb(255 255 255 / 94%);
    border: 1px solid var(--ast-line);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgb(0 0 0 / 5%);
    backdrop-filter: blur(8px);
}

.ast-brand-alphabet a {
    min-width: 37px;
    height: 37px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #363b40;
    font-size: 13px;
    font-weight: 800;
}

.ast-brand-alphabet a:hover {
    background: var(--ast-dark);
    color: #fff;
}


/* GROUPS */

.ast-brand-group {
    scroll-margin-top: 155px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 24px;
    padding: 0 0 45px;
}

.ast-brand-group__letter {
    position: sticky;
    top: 155px;
    align-self: start;
    color: #d4d7da;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.06em;
}

.ast-brand-catalog-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}


/* BRAND CARD */

.ast-brand-catalog-card {
    min-height: 94px;
    padding: 15px;
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ast-line);
    border-radius: 10px;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.ast-brand-catalog-card:hover {
    transform: translateY(-2px);
    border-color: #c8ccd0;
    box-shadow: 0 8px 24px rgb(0 0 0 / 7%);
}

.ast-brand-catalog-card__logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ast-brand-catalog-card__logo img {
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
}

.ast-brand-catalog-card__initial {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14171a;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.ast-brand-catalog-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ast-brand-catalog-card__content strong {
    overflow: hidden;
    color: var(--ast-text);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ast-brand-catalog-card__content small {
    color: var(--ast-muted);
    font-size: 12px;
}

.ast-brand-catalog-card__arrow {
    color: #b4b9be;
    font-size: 18px;
    transition:
        color .2s ease,
        transform .2s ease;
}

.ast-brand-catalog-card:hover
.ast-brand-catalog-card__arrow {
    color: var(--ast-accent);
    transform: translateX(3px);
}


/* TABLET */

@media (max-width: 1000px) {

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


/* MOBILE */

@media (max-width: 680px) {

    .ast-brand-catalog__hero {
        padding: 40px 0;
    }

    .ast-brand-alphabet {
        position: static;
    }

    .ast-brand-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ast-brand-group__letter {
        position: static;
        font-size: 38px;
    }

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



/* =========================================================
   AVTOSTAR NEXT 0.5.0 — BRAND HUB
   ========================================================= */

.ast-brand-hub {
    background: var(--ast-bg);
}


/* HERO */

.ast-brand-hub__hero {
    padding: 34px 0 55px;
    background:
        linear-gradient(
            135deg,
            #101214 0%,
            #202429 100%
        );
    color: #fff;
}

.ast-brand-hub__back {
    display: inline-flex;
    margin-bottom: 34px;
    color: #aeb4ba;
    font-size: 13px;
    font-weight: 700;
}

.ast-brand-hub__back:hover {
    color: #fff;
}

.ast-brand-hub__hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: end;
    gap: 50px;
}

.ast-brand-hub__identity {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ast-brand-hub__logo {
    width: 130px;
    height: 130px;
    flex: 0 0 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 12px 35px
        rgb(0 0 0 / 20%);
}

.ast-brand-hub__logo img {
    max-width: 95px;
    max-height: 95px;
    object-fit: contain;
}

.ast-brand-hub__logo > span {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14171a;
    border-radius: 50%;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
}

.ast-brand-hub__identity h1 {
    margin: 4px 0 8px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.055em;
}

.ast-brand-hub__subtitle {
    color: #aeb4ba;
    font-size: 16px;
}


/* FACTS */

.ast-brand-hub__facts {
    min-width: 250px;
    display: grid;
    gap: 1px;
    overflow: hidden;
    background: #30353a;
    border: 1px solid #30353a;
    border-radius: 11px;
}

.ast-brand-fact {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #1c2024;
}

.ast-brand-fact span {
    color: #858c93;
    font-size: 12px;
}

.ast-brand-fact strong {
    color: #fff;
    font-size: 14px;
}


/* INTRO */

.ast-brand-hub__intro {
    padding: 55px 0;
    background: #fff;
    border-bottom:
        1px solid
        var(--ast-line);
}

.ast-brand-hub__intro-inner {
    display: grid;
    grid-template-columns:
        minmax(220px, .65fr)
        minmax(0, 1.35fr);
    gap: 70px;
}

.ast-brand-hub__intro h2 {
    margin: 5px 0 0;
    font-size: 32px;
    letter-spacing: -.03em;
}

.ast-brand-hub__intro-text {
    max-width: 760px;
    color: #50565c;
    font-size: 17px;
    line-height: 1.75;
}

.ast-brand-hub__intro-text p {
    margin-top: 0;
}

.ast-brand-hub__intro-text p:last-child {
    margin-bottom: 0;
}


/* ARTICLES */

.ast-brand-hub__articles {
    padding: 58px 0 75px;
}

.ast-brand-hub__articles
.ast-section-heading {
    margin-bottom: 28px;
}


/* TABLET */

@media (max-width: 850px) {

    .ast-brand-hub__hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .ast-brand-hub__facts {
        width: 100%;
    }

    .ast-brand-hub__intro-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* MOBILE */

@media (max-width: 620px) {

    .ast-brand-hub__hero {
        padding-bottom: 38px;
    }

    .ast-brand-hub__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .ast-brand-hub__logo {
        width: 100px;
        height: 100px;
        flex-basis: 100px;
    }

    .ast-brand-hub__logo > span {
        width: 65px;
        height: 65px;
        font-size: 30px;
    }

    .ast-brand-hub__identity h1 {
        font-size: 42px;
    }

    .ast-brand-fact {
        padding: 13px 15px;
    }

    .ast-brand-hub__intro,
    .ast-brand-hub__articles {
        padding: 42px 0;
    }
}



/* =========================================================
   AVTOSTAR NEXT 0.6.0 — CANONICAL BRAND HISTORY
   ========================================================= */

.ast-brand-history {
    padding: 58px 0;
    background: #fff;
    border-bottom: 1px solid var(--ast-line);
}

.ast-brand-history__card {
    display: grid;
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(340px, .75fr);
    min-height: 390px;
    overflow: hidden;
    background: var(--ast-bg);
    border: 1px solid var(--ast-line);
    border-radius: 14px;
}

.ast-brand-history__media {
    min-height: 390px;
    overflow: hidden;
    background: #15181b;
}

.ast-brand-history__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ast-brand-history__placeholder {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #292d31,
            #101214
        );
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -2px;
}

.ast-brand-history__placeholder span {
    color: var(--ast-accent);
}

.ast-brand-history__content {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ast-brand-history__content h3 {
    margin: 8px 0 16px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ast-brand-history__content h3 a:hover {
    color: var(--ast-accent);
}

.ast-brand-history__content p {
    margin: 0 0 24px;
    color: #5c6268;
    font-size: 16px;
    line-height: 1.65;
}

.ast-brand-history__button {
    align-self: flex-start;
    padding: 11px 16px;
    background: var(--ast-dark);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ast-brand-history__button:hover {
    background: var(--ast-accent);
    color: #fff;
}

@media (max-width: 800px) {

    .ast-brand-history__card {
        grid-template-columns: 1fr;
    }

    .ast-brand-history__media {
        min-height: 300px;
        aspect-ratio: 16 / 9;
    }

    .ast-brand-history__content {
        padding: 26px;
    }
}



/* =========================================================
   AVTOSTAR NEXT 0.7.0 — BRAND DATA & LOGOS
   ========================================================= */

.ast-brand-catalog-card__logo {
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.ast-brand-catalog-card__logo img {
    width: auto;
    height: auto;
    max-width: 46px;
    max-height: 42px;
    object-fit: contain;
}

.ast-brand-hub__logo img {
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 86px;
    object-fit: contain;
}

.ast-home-brands img,
.ast-brand-logo img {
    object-fit: contain;
}

