/* Моторкат Premium Design System */
:root {
    /* Colors from design.json */
    --color-blue: #2e89fb;
    --color-green: #a4dd1d;
    --color-dark-green: #4ec21b;
    --color-light-green: #57c630;
    --color-purple: #a58bdd;
    --color-yellow: #fad400;
    --color-orange: #f77913;
    --color-red: #d41c36;

    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-dark: #091b32;
    --color-gray-medium: #1e325b;
    --color-gray-light: #8895a4;
    --color-gray-lighter: #a4aeb9;
    --color-gray-lightest: #e8ebee;

    --bg-light-blue: #f2f9ff;
    --bg-light-gray: #f7f8fa;
    --gradient-blue: linear-gradient(to top, rgb(235, 245, 254), rgb(247, 251, 255));
    --gradient-dark: linear-gradient(to right, #010a16, #091c33);
    --gradient-green-blue: linear-gradient(to right, rgb(78, 194, 27), rgb(154, 212, 14) 40%, rgb(57, 59, 197), rgb(57, 59, 197), rgb(73, 136, 243), rgb(73, 136, 243));

    /* Typography */
    --font-primary: "Inter", sans-serif;
    --font-secondary: "Raleway", sans-serif;
    --font-tertiary: sans-serif;

    --fs-h1: clamp(32px, 3vw, 36px);
    --fs-h2: clamp(26px, 3vw, 30px);
    --fs-h3: clamp(24px, 3vw, 26px);
    --fs-body: 16px;
    --fs-small: 14px;

    /* Spacing */
    --container-max-width: 1300px;
    --section-margin: clamp(60px, 4vw, 100px);
    --gap-md: 20px;
    --radius-md: 10px;
    --radius-lg: 20px;

    /* Effects */
    --transition-fast: 0.3s;
    --transition-slow: 0.6s cubic-bezier(.615, 0, .07, 1);
    --shadow-light: 0 0 16px 0 rgba(96, 121, 169, .08);
    --shadow-medium: 0 0 24px 0 rgba(96, 121, 169, .35);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    /* Барьер против горизонтального скролла от широкого контента (в т.ч. рекламных
       креативов). Именно clip, а не hidden: не создаёт скролл-контейнер и не
       ломает position: sticky у потомков. */
    overflow-x: clip;
}

.site-container__wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

/* Header */
.site-header {
    padding: 20px 0;
    background: var(--color-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-blue);
    text-decoration: none;
    font-family: var(--font-secondary);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__link {
    text-decoration: none;
    color: var(--color-gray-dark);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav__link:hover {
    color: var(--color-blue);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: var(--gradient-dark);
    color: var(--color-white);
    text-align: center;
}

.hero__title {
    font-size: var(--fs-h1);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
}

.button--blue {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.button--blue:hover {
    background-color: #215684;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--gap-md);
}

.grid--brands {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.brand-card {
    text-align: center;
    padding: 30px 20px;
}

.brand-card__logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: var(--transition-fast);
}

.brand-card:hover .brand-card__logo img {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-slow);
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

/* Страничные панели-контейнеры, а не кликабельные карточки — им hover-подъём не нужен.
   В .engine-card-padding лежит блок «Лента» РСЯ: сдвиг рекламы под курсором
   провоцирует случайные клики и нарушает правила размещения. */
.engine-card-padding:hover,
.engines-list-card:hover,
.car-card-no-padding:hover {
    box-shadow: var(--shadow-light);
    transform: none;
}

.card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: var(--color-gray-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: var(--section-margin);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: var(--fs-small);
    opacity: 0.6;
}

/* Mobile Menu */
.burger-toggle {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-gray-medium);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.nav__mobile-bg {
    display: none;
}

@media (max-width: 768px) {
    .burger-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
    }

    .nav.nav--active {
        display: flex;
    }

    .mobile-search {
        display: block !important;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        font-size: 1.5rem;
    }

    .nav__link {
        color: var(--color-gray-dark);
        font-weight: 700;
    }

    /* Burger Animation */
    .burger-toggle.active .burger-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-toggle.active .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .burger-toggle.active .burger-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Alphabet Index */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    justify-content: center;
}

.alphabet-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-light-gray);
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.alphabet-nav__item:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.alphabet-section {
    margin-bottom: 60px;
}

.alphabet-section__title {
    font-size: 2rem;
    color: var(--color-blue);
    border-bottom: 2px solid var(--color-light-blue);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

/* Market Sections */
.market-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.market-nav__item {
    padding: 8px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-light-blue);
    border-radius: var(--radius-sm);
    color: var(--color-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.market-nav__item:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.market-section {
    margin-bottom: 50px;
}

.market-section__title {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--color-blue);
    background: linear-gradient(90deg, var(--bg-light-gray), transparent);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Engine Detail Page */
.engine-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.spec-item {
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-fast);
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--color-blue);
}

.spec-content {
    flex-grow: 1;
}

.spec-label {
    font-size: 14px;
    color: var(--color-gray-light);
    margin-bottom: 5px;
    display: block;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray-dark);
}

.engine-hero {
    background: var(--gradient-dark);
    padding: 80px 0 60px;
    color: var(--color-white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
}

/* Layout Overrides */
.site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0 !important;
}

.logo {
    font-family: 'Raleway', sans-serif !important;
    letter-spacing: -0.5px;
    font-weight: 800 !important;
    font-size: 22px !important;
    background: linear-gradient(135deg, var(--color-blue), #1a56a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav__link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    letter-spacing: -0.2px;
}

/* Global Search Styles */
.search-hints {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: none;
    overflow: hidden;
    border: 1px solid #f0f4f8;
    border-top: none;
}

.header-search .search-hints {
    margin-top: 0;
    border-radius: 0 0 10px 10px;
}

.hint-item {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
    text-align: left;
}

.hint-item:last-child {
    border-bottom: none;
}

.hint-item:hover {
    background: var(--bg-light-blue);
}

.hint-title {
    color: var(--color-gray-dark);
    font-weight: 600;
    font-size: 14px;
}

.hint-subtitle {
    color: var(--color-gray-light);
    font-size: 11px;
}

.header-search {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 30px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 40px;
    border-radius: 20px;
    border: 1px solid #e0e6ed;
    background: #f8fafc;
    font-size: 14px;
    transition: 0.2s;
    outline: none;
}

.header-search input:focus {
    background: white;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(46, 137, 251, 0.1);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media(max-width: 768px) {
    .header-search {
        display: none;
    }
}

/* Page Styles (from Lua) */
.page-section {
    padding: 60px 0;
}

.page-section--large {
    padding: 100px 0;
}

.page-container {
    max-width: 800px;
}

.page-title {
    margin-bottom: 30px;
}

.page-subtitle {
    margin: 30px 0 15px;
}

.page-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.legal-content {
    line-height: 1.6;
    color: var(--color-gray-dark);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 40px;
    gap: 30px;
}

/* --- CLEAN CODE CSS ADDITIONS --- */

/* Ads Styles from layout.html */
.ads-top-wrapper {
    position: relative;
    z-index: 1000;
}

.ad-block {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.ad-mobile {
    display: block;
}

.ad-desktop {
    display: none;
}

/* Рекламные контейнеры намеренно не обрезают содержимое: скрытая часть блока
   нарушает правила размещения РСЯ и режет видимость показа. От случайной
   ширины страницу защищает overflow-x на body, а не обрезка самой рекламы. */
.content-ad {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

/* Резерв места под рекламу — иначе при загрузке блок толкает контент = CLS.
   250px = стандартный мобильный баннер 300x250. Только для слотов известного
   размера: у «Ленты» высота непредсказуема, резерв там смысла не имеет. */
.content-ad--after-hero,
.content-ad--center {
    min-height: 250px;
}

.content-ad--after-hero {
    margin-bottom: 40px;
}

.content-ad--center {
    margin-bottom: 30px;
}

.content-ad--end {
    margin-top: 40px;
    border-top: 1px solid var(--color-gray-lightest);
    padding-top: 30px;
}

@media (min-width: 768px) {
    .ad-mobile {
        display: none;
    }

    .ad-desktop {
        display: block;
    }
}

/* Header & Search modifications */
.logo__highlight {
    color: var(--color-gray-dark);
    -webkit-text-fill-color: initial;
}

.search-form {
    position: relative;
}

.search-icon {
    width: 16px;
    height: 16px;
    fill: var(--color-gray-light);
}

.search-icon--large {
    width: 20px;
    height: 20px;
    fill: var(--color-gray-light);
}

.mobile-search__input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #e0e6ed;
    background: #f8fafc;
    font-size: 16px;
    outline: none;
}

.mobile-search__button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
}

.mobile-search__hints {
    position: relative;
    margin-top: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: none;
    display: none;
}

/* Footer modifications */
.footer-top {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer__logo {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer__desc {
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.footer__nav-item {
    margin-bottom: 12px;
}

.footer__nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.2s;
}

/* Hero section from index.html */
.index-hero {
    position: relative;
    padding: 160px 0;
    background: url('/img/hero_bg.png') center/cover no-repeat;
    color: white;
    text-align: left;
    overflow: hidden;
}

.index-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.index-hero__container {
    position: relative;
    z-index: 2;
}

.index-hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-blue);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
}

.index-hero__title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out;
}

.index-hero__subtitle {
    margin-bottom: 50px;
    max-width: 600px;
}

.index-hero__search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.index-hero__search-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1.2s ease-out;
    position: relative;
    z-index: 20;
}

.index-hero__search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: white;
    font-size: 18px;
    outline: none;
}

.index-hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.index-hero__search-btn {
    border-radius: 40px;
    margin-right: 5px;
}

.index-hero__stats {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    font-size: 14px;
    opacity: 0.8;
}

.index-hero__stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections from index.html */
.section-popular {
    padding: 100px 0;
    background: #fcfdfe;
}

.section-engines {
    padding: 100px 0;
    background: white;
}

.section-features {
    padding: 100px 0;
    background: #f8fbff;
}

.btn-center {
    text-align: center;
}

.btn-outline-blue {
    background: transparent;
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
    border-radius: 30px;
}

.btn-rounded {
    border-radius: 30px;
}

/* Features section */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    align-items: center;
}

/* Brand Grid (from index.html inline styles) */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.premium-brand-card {
    background: white;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.premium-brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--color-blue);
}

.premium-brand-card img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s;
}

.premium-brand-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.premium-brand-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Stats section */
.stats-section {
    background: #091b32;
    padding: 80px 0;
    color: white;
    border-radius: 30px;
    margin-top: 80px;
}

.grid--stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-blue);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.7;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--color-gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--color-gray-light);
}

.feature-card-wrapper {
    position: relative;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.feature-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light-blue);
    padding-bottom: 15px;
}

.feature-card__title {
    margin: 0;
    color: var(--color-blue);
    font-size: 1.4rem;
}

.feature-card__badge {
    font-size: 12px;
    background: var(--color-green);
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.feature-card__model-label {
    font-size: 14px;
    color: var(--color-gray-light);
    margin-bottom: 5px;
}

.feature-card__model-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-gray-dark);
    margin-bottom: 25px;
}

.feature-card__specs {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card__spec-label {
    font-size: 13px;
    color: var(--color-gray-light);
}

.feature-card__spec-val {
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card__footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feature-card__footer-label {
    font-size: 13px;
    color: var(--color-gray-light);
    margin-bottom: 10px;
}

.feature-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-card__tag {
    font-size: 11px;
    background: var(--bg-light-gray);
    padding: 4px 10px;
    border-radius: 5px;
}

.feature-bg-circle-1 {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(46, 137, 251, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.feature-bg-circle-2 {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: rgba(78, 194, 27, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Car & Engine specifics */
.nav-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.nav-breadcrumb a {
    color: white;
    text-decoration: none;
}

.car-container {
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.car-card-no-padding {
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
}

.car-card__info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.car-card__title {
    margin-bottom: 25px;
    color: var(--color-gray-dark);
}

.car-spec-list {
    display: grid;
    gap: 15px;
}

.car-spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 8px;
}

.car-spec-item__label {
    color: var(--color-gray-light);
}

.car-spec-item__val {
    font-weight: 600;
}

.car-card__image-wrap {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.car-image {
    width: 100%;
    height: 400px;          /* резервируем место (было max-height) — иначе картинка «прыгает» = CLS */
    object-fit: contain;
    border-radius: 8px;
}

.engines-list-card {
    padding: 40px;
    margin-bottom: 40px;
}

.engines-title {
    margin-bottom: 30px;
    color: var(--color-gray-dark);
}

.engines-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.engine-card-padding {
    padding: 40px;
}

.engine-related {
    margin-top: 40px;
    border-top: 1px solid var(--color-gray-lightest);
    padding-top: 30px;
}

.engine-applications-list {
    list-style: none;
    padding: 0;
}

.btn-all-engines {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.engine-all-wrapper {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid var(--color-gray-lightest);
    padding-top: 40px;
}

.btn-all-engines svg {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    fill: white;
}

/* Page text content */
.page-text-section {
    padding: 40px 0;
    background: var(--color-white);
    border-top: 1px solid #f0f4f8;
}

.page-text-content {
    color: var(--color-gray-dark);
    line-height: 1.8;
    font-size: 15px;
}

.page-text-content h1,
.page-text-content h2,
.page-text-content h3 {
    margin-bottom: 20px;
    margin-top: 30px;
    color: var(--color-black);
}

/* Custom Text Elements */

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.pros-box,
.cons-box {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    border: 1px solid var(--color-gray-lightest);
}

.pros-box {
    border-top: 4px solid var(--color-green);
}

.cons-box {
    border-top: 4px solid var(--color-red);
}

.pros-box__title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cons-box__title {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-box ul,
.cons-box ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.pros-box ul li,
.cons-box ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.pros-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a4dd1d'%3E%3Cpath d='M9 16.17a1 1 0 0 1-1.41 0L3.29 11.88a1 1 0 0 1 1.42-1.41L9 14.75l10.29-10.29a1 1 0 0 1 1.42 1.41L9 16.17z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.cons-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d41c36'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Warnings and Notes */
.note-box {
    margin: 40px 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #fff8e1;
    border-left: 4px solid var(--color-orange);
    color: var(--color-gray-dark);
}

.note-box__title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-orange);
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-box__body {
    font-size: 15px;
    line-height: 1.6;
}

.warning-box {
    margin: 40px 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #fdf2f2;
    border-left: 4px solid var(--color-red);
    color: var(--color-gray-dark);
}

.warning-box__title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-red);
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box__body {
    font-size: 15px;
    line-height: 1.6;
}

/* Quotes */
.custom-quote {
    margin: 40px auto;
    max-width: 800px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.custom-quote::before {
    content: "“";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-secondary);
    font-size: 80px;
    color: var(--color-blue);
    opacity: 0.1;
    line-height: 1;
}

.custom-quote p {
    font-family: var(--font-secondary);
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    color: var(--color-gray-dark);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Tables */
.custom-table-wrapper {
    margin: 40px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-lightest);
}

@media (max-width: 768px) {
    .custom-table-wrapper {
        overflow-x: auto;
    }

    .custom-table {
        min-width: 600px;
    }
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    text-align: left;
    font-size: 15px;
}

.custom-table th {
    background: var(--bg-light-blue);
    font-weight: 700;
    color: var(--color-gray-medium);
    padding: 16px 20px;
    font-family: var(--font-secondary);
    border-bottom: 2px solid var(--color-blue);
}

.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-lightest);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background: var(--bg-light-gray);
}


.page-text-content ul,
.page-text-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Expert Box */
.expert-box {
    margin: 40px 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-lightest);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.expert-box__header {
    display: flex;
    align-items: center;
    padding: 24px 30px;
    background: var(--bg-light-gray);
    border-bottom: 1px solid var(--color-gray-lightest);
}

.expert-box__avatar {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-right: 20px;
}

.expert-box__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
}

.expert-box__info {
    display: flex;
    flex-direction: column;
}

.expert-box__label {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    background: var(--color-blue);
    color: var(--color-white);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 6px;
}

.expert-box__name {
    font-size: 18px;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 4px;
}

.expert-box__pos {
    font-size: 13px;
    color: var(--color-gray-light);
}

.expert-box__body {
    padding: 30px;
}

.expert-box__quote {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-dark);
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--color-orange);
}

@media (max-width: 600px) {
    .expert-box__header {
        flex-direction: column;
        text-align: center;
    }

    .expert-box__avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .expert-box__label {
        align-self: center;
    }
}