@font-face {
    font-family: 'CorporateFont';
    src: url('fonts/Inter-Regular.woff2') format('woff2'),
         url('fonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CorporateFont';
    src: url('fonts/Inter-Medium.woff2') format('woff2'),
         url('fonts/Inter-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CorporateFont';
    src: url('fonts/Inter-Bold.woff2') format('woff2'),
         url('fonts/Inter-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-navy: #0B132B;
    --color-navy-light: #1C2541;
    --color-blue: #2563EB;
    --color-blue-dark: #1D4ED8;
    --color-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-text-main: #475569;
    --color-text-dark: #0F172A;
    --color-border: #E2E8F0;
    
    --spacing-section: 120px;
    --spacing-container: 32px;
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'CorporateFont', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-main);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    line-height: 1.3;
    font-weight: 700;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition);
}

ul { 
    list-style: none; 
}

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

button { 
    cursor: pointer; 
    font-family: inherit; 
    border: none; 
    background: none; 
}

.container {
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section { 
    padding: var(--spacing-section) 0; 
}

.section-bg {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    margin-bottom: 64px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-blue);
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.btn-primary:hover { 
    background-color: var(--color-blue-dark); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.btn-outline:hover { 
    background-color: var(--color-white); 
    color: var(--color-navy); 
}

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 6px solid var(--color-blue);
    padding-left: 16px;
}

.nav {
    display: flex;
    gap: 48px;
}

.nav a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-main);
    letter-spacing: 1.5px;
}

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

.header-contacts { 
    text-align: right; 
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 43, 0.98);
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--color-blue);
}

.mobile-nav-contacts {
    text-align: center;
    margin-top: 24px;
}

.mobile-nav-contacts .header-contacts-label {
    color: #94A3B8;
    margin-bottom: 8px;
}

.mobile-nav-contacts .header-contacts-phone {
    font-size: 24px;
    color: var(--color-white);
}

.header-contacts-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-main);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.header-contacts-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-navy);
}

.header-contacts-phone:hover { 
    color: var(--color-blue); 
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--color-navy);
    background-image: url('Главная Автомбад.webp');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 19, 43, 0.85);
    z-index: 1;
}

.hero .container { 
    position: relative; 
    z-index: 2; 
}

.hero h1 { 
    font-size: 64px; 
    color: var(--color-white);
    font-weight: 700; 
    line-height: 1.1; 
    margin-bottom: 32px; 
    letter-spacing: -1px;
    max-width: 900px;
}

.hero p { 
    font-size: 22px; 
    font-weight: 300; 
    color: #E2E8F0; 
    margin-bottom: 56px; 
    line-height: 1.6;
    max-width: 700px;
}

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

.about-text p { 
    font-size: 18px; 
    margin-bottom: 24px; 
    line-height: 1.8;
}

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

.stat-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 6px solid var(--color-blue);
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover { 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat-card h3 { 
    font-size: 48px; 
    font-weight: 700; 
    color: var(--color-navy); 
    margin-bottom: 12px; 
    line-height: 1;
}

.stat-card p { 
    font-size: 14px; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
    color: var(--color-text-main);
}

.assortment-full {
    position: relative;
    padding: 160px 0;
    background-color: var(--color-navy);
    background-image: url('Склад Автомбад.webp');
    background-size: cover;
    background-position: center;
}

.assortment-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 19, 43, 0.4) 0%, rgba(11, 19, 43, 0.95) 60%, rgba(11, 19, 43, 1) 100%);
}

.assortment-full .container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}

.assortment-box {
    max-width: 600px;
    width: 100%;
}

.assortment-box .section-title {
    color: var(--color-white);
}

.assortment-box .about-text {
    color: #E2E8F0;
    font-size: 20px;
    line-height: 1.6;
}

.assortment-box .list { 
    margin: 48px 0; 
}

.assortment-box .list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
}

.assortment-box .list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background-color: var(--color-blue);
    border-radius: 50%;
}

.assortment-box .guarantee {
    font-weight: 700; 
    color: var(--color-white);
    margin-bottom: 48px;
    font-size: 18px;
    border-left: 4px solid var(--color-blue);
    padding-left: 24px;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--color-navy-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img { 
    transform: scale(1.08); 
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 48px 40px;
    transition: var(--transition);
    cursor: pointer;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    border-top-color: var(--color-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.news-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.news-title {
    font-size: 22px;
    color: var(--color-navy);
    margin-bottom: 24px;
    line-height: 1.4;
}

.news-excerpt { 
    font-size: 16px; 
    color: var(--color-text-main); 
    margin-bottom: 32px; 
    flex-grow: 1;
}

.news-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-navy);
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.news-link::after { 
    content: '→'; 
    margin-left: 12px; 
    transition: margin 0.3s; 
    font-size: 18px;
}

.news-card:hover .news-link { 
    color: var(--color-blue); 
}

.news-card:hover .news-link::after { 
    margin-left: 16px; 
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item { 
    margin-bottom: 48px; 
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-blue);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.contact-value { 
    font-size: 22px; 
    font-weight: 500; 
    color: var(--color-navy); 
    line-height: 1.5;
}

.contact-value.small {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-main);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 480px;
    background-color: #E2E8F0;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.footer {
    background-color: var(--color-navy);
    color: #94A3B8;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: block;
}

.footer-text {
    font-size: 15px;
    line-height: 1.8;
    max-width: 400px;
    margin-bottom: 24px;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

.footer-list li { 
    margin-bottom: 16px; 
}

.footer-list a {
    font-size: 15px;
    transition: color 0.3s;
}

.footer-list a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-disclaimer {
    font-size: 11px;
    line-height: 1.6;
    max-width: 600px;
    text-align: right;
    color: #64748B;
}

.cursor-circle {
    position: fixed;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cursor-circle.hover {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
}

#tireCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 768px) {
    .cursor-circle,
    #tireCanvas { display: none; }
}

.page-view { 
    display: none; 
}

.page-view.active { 
    display: block; 
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-header {
    background-color: var(--color-navy);
    padding: 120px 0;
    color: var(--color-white);
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-blue);
    margin-bottom: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.back-link::before { 
    content: '←'; 
    margin-right: 12px; 
    font-size: 18px;
}

.back-link:hover { 
    color: var(--color-white); 
}

.article-date { 
    font-size: 14px; 
    font-weight: 700;
    color: #94A3B8; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px; 
    display: block; 
}

.article-title { 
    font-size: 48px; 
    font-weight: 700; 
    line-height: 1.2; 
    max-width: 900px; 
    margin: 0 auto;
    color: var(--color-white);
}

.article-content {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h3 { 
    font-size: 28px; 
    color: var(--color-navy); 
    margin: 48px 0 24px; 
}

.article-content ul { 
    margin: 32px 0; 
    padding-left: 24px; 
}

.article-content li { 
    margin-bottom: 16px; 
    list-style-type: disc; 
    padding-left: 8px;
}

@media (max-width: 1024px) {
    :root {
        --spacing-section: 96px;
    }
    .hero h1 { font-size: 48px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .assortment-full::before { background: rgba(11, 19, 43, 0.9); }
    .assortment-full .container { justify-content: flex-start; }
    .assortment-box { max-width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    :root {
        --spacing-section: 80px;
        --spacing-container: 20px;
    }
    .nav, .header-contacts { display: none; }
    .hamburger { display: flex; }
    .mobile-nav { display: flex; }
    .hero { padding: 120px 0; min-height: auto; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }
    .section-title { font-size: 28px; margin-bottom: 40px; }
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 24px; }
    .footer-disclaimer { text-align: center; }
    .article-title { font-size: 32px; }
    .map-container { min-height: 350px; }
    .btn { width: 100%; }
}
