/* ============================================
   4Tesla.ru — Tesla-Inspired Premium Design
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Tesla palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #1e1e1e;

    --text-primary: #e8e8e8;
    --text-secondary: #9a9a9a;
    --text-muted: #666666;
    --text-white: #ffffff;

    --accent-red: #e82127;
    --accent-red-glow: rgba(232, 33, 39, 0.3);
    --accent-blue: #3e6ae1;
    --accent-blue-glow: rgba(62, 106, 225, 0.15);
    --accent-green: #2ecc71;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(232, 33, 39, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-light);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --container-width: 1280px;
    --header-height: 72px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent-red);
}

::selection {
    background: var(--accent-red);
    color: white;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.nav__logo:hover {
    color: var(--text-white);
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px var(--accent-red-glow));
}

.logo-highlight {
    color: var(--accent-red);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav__link {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav__link.active {
    color: var(--accent-red);
}

/* Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.nav__dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
}

.dropdown-arrow {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Nav actions */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav__search-btn:hover {
    color: var(--text-white);
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.04);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    max-width: 700px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}

.search-submit {
    padding: 16px 28px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: #cc1c21;
    box-shadow: 0 4px 20px var(--accent-red-glow);
}

.search-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-close:hover {
    color: var(--text-white);
    border-color: var(--accent-red);
}

/* ---------- Main ---------- */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 33, 39, 0.1);
    border: 1px solid rgba(232, 33, 39, 0.2);
    border-radius: 50px;
    color: var(--accent-red);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn--primary:hover {
    background: #cc1c21;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-red-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-secondary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* ---------- Section ---------- */
.section {
    padding: 80px 0;
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section__title {
    font-size: 1.8rem;
    position: relative;
}

.section__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
    margin-top: 12px;
}

.section__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section__link:hover {
    color: #cc1c21;
    gap: 8px;
}

/* ---------- Article Cards ---------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-light);
}

.article-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(22, 22, 22, 0.9), transparent);
    pointer-events: none;
}

.article-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    background: rgba(232, 33, 39, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title a {
    color: var(--text-white);
}

.article-card__title a:hover {
    color: var(--accent-red);
}

.article-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.article-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card__views {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Featured card (large) */
.featured-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
}

.featured-card__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.featured-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-card__bg img {
    transform: scale(1.05);
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.6) 40%,
        rgba(10, 10, 10, 0.2) 100%
    );
}

.featured-card__content {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
}

.featured-card__badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-red);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.featured-card__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-card__title a {
    color: var(--text-white);
}

.featured-card__title a:hover {
    color: var(--accent-red);
}

.featured-card__excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Featured grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-bottom: 24px;
}

.featured-grid .featured-card:first-child {
    grid-column: 1 / -1;
    min-height: 500px;
}

/* ---------- Tags ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(232, 33, 39, 0.1);
    border-color: rgba(232, 33, 39, 0.3);
    color: var(--accent-red);
}

/* ---------- Article Detail ---------- */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.article-detail__header {
    text-align: center;
    margin-bottom: 40px;
}

.article-detail__category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 33, 39, 0.1);
    border: 1px solid rgba(232, 33, 39, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.article-detail__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-detail__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-detail__hero-img {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
}

.article-detail__hero-img img {
    width: 100%;
    height: auto;
}

/* Article content typography */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 2em 0 0.8em;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.6em;
}

.article-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 16px 24px;
    margin: 2em 0;
    background: rgba(232, 33, 39, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content img {
    border-radius: var(--radius-md);
    margin: 2em auto;
    box-shadow: var(--shadow-md);
}

.article-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #ff3b3f;
}

/* ---------- Related Articles ---------- */
.related-section {
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
}

/* ---------- Sidebar / Categories ---------- */
.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.category-chip:hover,
.category-chip.active {
    background: rgba(232, 33, 39, 0.1);
    border-color: rgba(232, 33, 39, 0.3);
    color: var(--accent-red);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    color: var(--text-white);
}

.pagination .active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* ---------- Accessories ---------- */
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.accessory-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.accessory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.accessory-card__image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.accessory-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.accessory-card:hover .accessory-card__image img {
    transform: scale(1.05);
}

.accessory-card__body {
    padding: 20px;
}

.accessory-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.accessory-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 8px;
}

.accessory-card__compat {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.accessory-card__btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(232, 33, 39, 0.1);
    border: 1px solid rgba(232, 33, 39, 0.2);
    border-radius: var(--radius-sm);
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.accessory-card__btn:hover {
    background: var(--accent-red);
    color: white;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-white);
    display: block;
    margin-bottom: 16px;
}

.footer__logo:hover {
    color: var(--text-white);
}

.footer__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer__nav ul {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 8px;
}

.footer__nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer__nav a:hover {
    color: var(--accent-red);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--accent-red);
}

.breadcrumbs span {
    margin: 0 8px;
    opacity: 0.4;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.empty-state__text {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ---------- 404 ---------- */
.page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.page-404__code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent-red);
    opacity: 0.2;
    line-height: 1;
}

/* ---------- Model filter tabs ---------- */
.model-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 24px;
}

.model-tab {
    display: inline-block;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.model-tab:hover,
.model-tab.active {
    background: rgba(232, 33, 39, 0.08);
    border-color: rgba(232, 33, 39, 0.25);
    color: var(--accent-red);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid .featured-card:first-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 80px 24px 24px;
        transition: right 0.3s ease;
        z-index: 100;
        border-left: 1px solid var(--border-subtle);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__link {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .section {
        padding: 48px 0;
    }

    .article-detail {
        padding: 30px 16px 60px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .accessories-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ---------- No Image Placeholder ---------- */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-elevated) 100%);
    color: var(--text-muted);
    font-size: 3rem;
}

/* ---------- Image Placeholder SVG ---------- */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0e0e0e, #1a1a1a 50%, #111 100%);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(232,33,39,0.06), transparent 70%);
}

.img-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.25;
}

/* ---------- Sources Page ---------- */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.source-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.source-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.source-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.source-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.source-card__name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
}

.source-card__url {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.source-card__url:hover {
    color: var(--accent-red);
}

.source-card__desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.source-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }
}

