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

:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --yellow: #ffffff;
    --yellow-dark: #d4d4d4;
    --black: #0a0a0a;
    --dark: #171717;
    --gray: #262626;
    --gray-light: #a3a3a3;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black);
    padding: 0 40px;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo i { color: var(--red); font-size: 22px; }
.logo em { font-style: normal; color: var(--yellow); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: var(--gray-light);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover { color: var(--white); background: var(--gray); }
.nav-links a.active { color: var(--white); background: var(--red); }

.nav-cta { margin-left: 12px; }
.nav-cta a { background: var(--yellow); color: var(--black) !important; font-weight: 700; padding: 8px 20px !important; }
.nav-cta a:hover { background: var(--yellow-dark) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger div {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active div:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark) 50%, #1a0a0a 100%);
    color: var(--white);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, transparent 60%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234,179,8,0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero-text h1 span { color: var(--red); }
.hero-text h1 em { font-style: normal; color: var(--yellow); }
.hero-text p { font-size: 1.1rem; color: var(--gray-light); margin-bottom: 28px; max-width: 480px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--gray-light); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hero-icon-box {
    width: 100px;
    height: 100px;
    background: var(--gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s;
}

.hero-icon-box:hover { transform: scale(1.05); }
.hero-icon-box:nth-child(1) { color: var(--red); }
.hero-icon-box:nth-child(2) { color: var(--yellow); }
.hero-icon-box:nth-child(3) { color: var(--white); }
.hero-icon-box:nth-child(4) { color: var(--yellow); }
.hero-icon-box:nth-child(5) { color: var(--red); }
.hero-icon-box:nth-child(6) { color: var(--white); }
.hero-icon-box:nth-child(7) { color: var(--white); }
.hero-icon-box:nth-child(8) { color: var(--red); }
.hero-icon-box:nth-child(9) { color: var(--yellow); }

/* ===== SECTIONS ===== */
.section { padding: 80px 40px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--gray-light); max-width: 500px; margin: 0 auto; }
.accent-line { width: 60px; height: 4px; background: var(--red); margin: 12px auto 0; border-radius: 2px; }
.container { max-width: 1100px; margin: 0 auto; }

/* ===== SERVICE CARDS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.service-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--black);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--yellow);
}

.service-card h3 { font-size: 1rem; margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--gray-light); line-height: 1.5; }

/* ===== ABOUT ===== */
.about-snippet { background: var(--black); color: var(--white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 { font-size: 2rem; margin-bottom: 16px; }
.about-text h2 span { color: var(--yellow); }
.about-text p { color: var(--gray-light); margin-bottom: 12px; line-height: 1.7; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-stat {
    background: var(--gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.about-stat h3 { font-size: 2rem; color: var(--red); margin-bottom: 4px; }
.about-stat p { font-size: 0.85rem; color: var(--gray-light); }

/* ===== NEWS PREVIEW ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.news-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
}

.news-thumb.bg-red,
.news-thumb.bg-r,
.news-full-thumb.bg-red,
.news-full-thumb.bg-r { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.news-thumb.bg-yellow,
.news-full-thumb.bg-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--black); }
.news-thumb.bg-dark,
.news-full-thumb.bg-dark { background: linear-gradient(135deg, var(--black), var(--gray)); }

.news-body { padding: 20px; }
.news-body .date { font-size: 12px; color: var(--gray-light); margin-bottom: 8px; }
.news-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.news-body p { font-size: 0.85rem; color: var(--gray-light); line-height: 1.5; }

/* ===== PAGE HERO ===== */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.page-hero h1 span { color: var(--red); }
.page-hero p { color: var(--gray-light); }

/* ===== SERVICES FULL ===== */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-full-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 32px 28px;
    border-left: 4px solid var(--red);
    transition: all 0.25s;
}

.service-full-card:hover {
    background: var(--white);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-full-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-full-card h3 i { color: var(--red); }
.service-full-card p { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; margin-bottom: 14px; }

.service-full-card ul { margin-bottom: 16px; }
.service-full-card ul li {
    font-size: 0.85rem;
    color: var(--gray-light);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.service-full-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

/* ===== PORTFOLIO ===== */
.products-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--gray-light);
    background: transparent;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.products-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--off-white);
    transition: all 0.25s;
}

.products-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.products-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
}

.products-img.bg-r { background: linear-gradient(135deg, var(--red), #991b1b); }
.products-img.bg-y { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--black); }
.products-img.bg-k { background: linear-gradient(135deg, var(--black), var(--gray)); }
.products-img.bg-d { background: linear-gradient(135deg, #1e3a5f, #0f172a); }

.products-body { padding: 18px; }
.products-body .tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    margin-bottom: 8px;
}

.products-body h3 { font-size: 1rem; margin-bottom: 4px; }
.products-body p { font-size: 0.82rem; color: var(--gray-light); }

/* ===== NEWS FULL ===== */
.news-full-grid { display: grid; gap: 24px; }

.news-full-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
}

.news-full-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

.news-full-thumb {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    align-self: stretch;
    color: var(--white);
}

.news-full-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-full-body .meta { font-size: 12px; color: var(--gray-light); margin-bottom: 8px; }
.news-full-body .meta span { color: var(--red); font-weight: 600; }
.news-full-body h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.3; }
.news-full-body p { font-size: 0.9rem; color: var(--gray-light); line-height: 1.6; margin-bottom: 14px; }

/* ===== CONTACTS ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 32px;
}

.contact-form-card h2 { font-size: 1.4rem; margin-bottom: 20px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    background: var(--white);
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }

.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }

.info-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}

.info-card:hover { background: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.info-card .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.info-card h3 { font-size: 0.95rem; margin-bottom: 3px; }
.info-card p { font-size: 0.85rem; color: var(--gray-light); line-height: 1.5; }

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 40px 20px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray);
}

.footer-brand p { color: var(--gray-light); font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: var(--yellow);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--gray-light); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-light);
    transition: all 0.2s;
}

.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-light);
}

.footer-bottom a { color: var(--yellow); }

/* ===== AUTH PAGES ===== */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 32px;
}

.auth-card h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.auth-error {
    background: #fef2f2;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.auth-links a {
    color: var(--red);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--off-white);
    padding-bottom: 12px;
}

.admin-tab {
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    border: none;
    background: var(--off-white);
    color: var(--gray-light);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover {
    background: var(--white);
    color: var(--dark);
}

.admin-tab.active {
    background: var(--red);
    color: var(--white);
}

.admin-form-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.admin-form-card h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-form-card h3 i {
    color: var(--red);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-list h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.admin-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--off-white);
    border-radius: 8px;
    padding: 14px 18px;
    transition: background 0.2s;
}

.admin-item:hover {
    background: var(--white);
}

.admin-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-item-info strong {
    font-size: 0.95rem;
}

.admin-item-meta {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.btn-delete {
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-delete:hover {
    background: #fef2f2;
    color: var(--red);
}

.loading-text {
    color: var(--gray-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-light);
    display: none;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d4d4d4;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .news-full-card { grid-template-columns: 1fr; }
    .news-full-thumb { min-height: 160px; height: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links {
        position: fixed;
        top: 64px;
        right: -280px;
        width: 260px;
        height: calc(100vh - 64px);
        background: var(--black);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 4px;
        transition: right 0.3s;
        z-index: 999;
    }
    .nav-links.active { right: 0; }
    .nav-links a { padding: 12px 16px; border-radius: 8px; }
    .nav-cta { margin-left: 0; margin-top: 10px; }
    .hamburger { display: flex; }
    .section { padding: 50px 20px; }
    .hero { padding: 50px 20px; }
    .hero-text h1 { font-size: 2rem; }
    .page-hero { padding: 40px 20px; }
    .page-hero h1 { font-size: 1.6rem; }
    .services-full-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer { padding: 30px 20px 15px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-tabs { flex-wrap: wrap; }
    .logo-img { height: 36px; }
    .footer-logo-img { height: 40px; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.6rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 260px; }
    .about-stats { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
}

/* ===== HOME PAGE THEME (moved from index.html inline <style>) ===== */
body.page-home { background: #ffffff; }
body.page-home .navbar { background: #241a12; }
body.page-home .nav-links a.active { background: #dc2626; }
body.page-home .nav-cta a { background: #ffffff; }
body.page-home .nav-cta a:hover { background: #d4d4d4 !important; }
body.page-home .hero { background: linear-gradient(135deg, #0a0a0a 0%, #171717 55%, #3f0a0a 100%); }
body.page-home .hero-text h1 { font-size: 2.6rem; }
body.page-home .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0; }
body.page-home .hero-text p { color: #e5e5e5; margin-left: auto; margin-right: auto; }
body.page-home .hero-subtitle { color: #fff; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }

/* ===== HOME: F1 ABOUT DESIGN (black / white / red) ===== */
.about-f1 { background: #fff; padding-top: 60px; padding-bottom: 60px; }
.about-f1-visual {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #3f0a0a 100%);
    border-radius: 24px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-f1-visual::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(220,38,38,0.35) 0%, transparent 60%);
    border-radius: 50%;
}
.about-f1-car { font-size: 6rem; color: #fff; position: relative; z-index: 1; filter: drop-shadow(0 12px 24px rgba(220,38,38,0.4)); }
.about-f1-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 2;
}
.about-f1-speed { position: absolute; bottom: 26px; left: 32px; right: 32px; display: flex; gap: 8px; z-index: 1; }
.about-f1-speed span { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.about-f1-speed span:nth-child(1) { flex: 3; background: #dc2626; }
.about-f1-speed span:nth-child(2) { flex: 2; background: rgba(255,255,255,0.5); }
.about-f1-speed span:nth-child(3) { flex: 1; background: rgba(255,255,255,0.25); }
body.page-home .hero-btns { justify-content: center; }
body.page-home .hero-icon-box {
    background: #262626;
    border-radius: 22px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
body.page-home .btn { border-radius: 999px; }
body.page-home .btn-red { background: #dc2626; }
body.page-home .btn-red:hover { background: #b91c1c; }
body.page-home .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
body.page-home .section-header h2 { letter-spacing: -0.3px; }
body.page-home .accent-line { background: #dc2626; border-radius: 3px; }
body.page-home .service-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
body.page-home .service-card:hover { border-color: #ffffff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); }
body.page-home .about-snippet { background: #241a12; }
body.page-home .about-stat { background: #262626; border-radius: 16px; }
body.page-home .about-stat h3 { color: #dc2626; }
body.page-home .footer { background: #241a12; }
body.page-home .footer-grid { border-bottom-color: #262626; }
body.page-home .footer-social a { background: #262626; }

/* Shared thumbnail aliases: admin writes bg-red/bg-yellow/bg-dark,
   products page uses bg-r/bg-y/bg-k/bg-d */
.news-thumb.bg-red,
.news-full-thumb.bg-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.news-thumb.bg-yellow,
.news-full-thumb.bg-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--black); }
.news-thumb.bg-dark,
.news-full-thumb.bg-dark { background: linear-gradient(135deg, var(--black), var(--gray)); }
.products-img.bg-red { background: linear-gradient(135deg, var(--red), #991b1b); }
.products-img.bg-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--black); }
.products-img.bg-dark { background: linear-gradient(135deg, #1e3a5f, #0f172a); }

.about-f1 .about-text h2 span { color: var(--red); }
.about-f1-photo { margin: 0; padding: 0; }
.about-f1-photo img { width: 100%; height: 100%; min-height: 300px; max-height: 420px; object-fit: cover; border-radius: 24px; display: block; }
.about-f1-credit { position: absolute; bottom: 10px; right: 14px; font-size: 11px; color: rgba(255,255,255,0.75); z-index: 2; }
/* ===== HOME: F1 full-bleed banner with text over photo ===== */
.about-f1-banner { position: relative; overflow: hidden; background: #0a0a0a; }
.about-f1-bg { position: absolute; inset: 0; }
.about-f1-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-f1-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.65) 40%, rgba(5,5,5,0.15) 75%, rgba(5,5,5,0.35) 100%);
}
.about-f1-content { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; max-width: 1100px; }
.about-f1-banner .about-f1-badge { position: static; margin-bottom: 18px; }
.about-f1-text { max-width: 560px; }
.about-f1-text h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.about-f1-text h2 span { color: var(--red); }
.about-f1-text p { color: #d4d4d4; margin-bottom: 12px; line-height: 1.7; }
.about-f1-banner .about-f1-credit { position: absolute; bottom: 10px; right: 14px; z-index: 3; font-size: 11px; color: rgba(255,255,255,0.6); }
@media (max-width: 768px) {
    .about-f1-content { padding-top: 60px; padding-bottom: 60px; }
    .about-f1-overlay { background: linear-gradient(180deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.55) 100%); }
}
/* ===== HOME: F1 reference-style section (dark banner + photo + sponsors) ===== */
.about-f1-ref { background: #0a0a0a; border-top: 4px solid var(--red); border-bottom: 4px solid var(--red); }
.about-f1-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.about-f1-ref .about-f1-badge { position: static; margin-bottom: 18px; }
.about-f1-ref .about-f1-text h2 { color: #fff; font-size: 2rem; margin-bottom: 16px; }
.about-f1-ref .about-f1-text h2 span { color: var(--red); }
.about-f1-ref .about-f1-text p { color: #d4d4d4; margin-bottom: 12px; line-height: 1.7; }
.about-f1-frame { margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #262626; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.about-f1-frame img { width: 100%; height: 100%; min-height: 320px; max-height: 440px; object-fit: cover; display: block; }
.about-f1-frame .about-f1-credit { position: absolute; bottom: 8px; right: 12px; font-size: 11px; color: rgba(255,255,255,0.65); }
.about-f1-sponsors { background: #111; border-top: 1px solid #262626; }
.about-f1-sponsors-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.about-f1-sponsors-row span { color: #a3a3a3; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
@media (max-width: 900px) {
    .about-f1-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; padding-bottom: 50px; }
}
/* ===== HOME: F1 hero exactly like reference ===== */
.f1hero { background: #0a0a0a; }
.f1hero-redbar { height: 8px; background: var(--red); }
.f1hero-banner { position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; }
.f1hero-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.f1hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.75) 35%, rgba(5,5,5,0.25) 65%, rgba(5,5,5,0.45) 100%); }
.f1hero-inner { position: relative; z-index: 2; }
.f1hero-kicker { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 14px; }
.f1hero-kicker span { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }
.f1hero-inner h2 { color: #fff; font-size: 2.4rem; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.f1hero-inner h2 span { color: var(--red); }
.f1hero-inner p { color: #d4d4d4; max-width: 520px; margin-bottom: 10px; line-height: 1.7; }
.f1hero-inner .btn { margin-top: 14px; border-radius: 999px; }
.f1hero-banner .about-f1-credit { position: absolute; bottom: 10px; right: 14px; z-index: 3; font-size: 11px; color: rgba(255,255,255,0.6); }
.f1hero-inforow { border-top: 1px solid #262626; background: #0a0a0a; }
.f1hero-inforow-in { display: flex; align-items: center; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.f1hero-info { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--red); padding-left: 12px; }
.f1hero-info strong { color: #fff; font-size: 0.9rem; }
.f1hero-info span { color: #a3a3a3; font-size: 0.78rem; }
.f1hero-inforow-in .btn { margin-left: auto; border-radius: 999px; white-space: nowrap; }
.f1hero-sponsors { background: #0d1526; border-top: 2px solid var(--red); }
.f1hero-sponsors-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.f1hero-sponsors-row span { color: #8b93a7; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.85rem; }
@media (max-width: 900px) {
    .f1hero-banner { min-height: 480px; }
    .f1hero-inforow-in { flex-wrap: wrap; gap: 16px; }
    .f1hero-inforow-in .btn { margin-left: 0; }
}
/* ===== Colorful contact icons ===== */
.contact-info-cards .info-card:nth-child(1) .icon-circle { background: linear-gradient(135deg, #dc2626, #7f1d1d); }
.contact-info-cards .info-card:nth-child(2) .icon-circle { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.contact-info-cards .info-card:nth-child(3) .icon-circle { background: linear-gradient(135deg, #f59e0b, #ec4899, #8b5cf6); }
/* ===== Page transitions ===== */
body { animation: pageIn 0.35s ease; }
body.page-leave { opacity: 0; transition: opacity 0.22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }
/* ===== Page loader (logo + spinner, covers white flash) ===== */
#pageLoader { position: fixed; inset: 0; background: #0a0a0a; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; z-index: 9999; opacity: 1; transition: opacity 0.3s ease; }
#pageLoader.hidden { opacity: 0; pointer-events: none; }
#pageLoader img { height: 76px; width: auto; }
.loader-ring { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #262626; border-top-color: #dc2626; animation: loaderSpin 0.8s linear infinite; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader-ring { animation: none; } }