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

:root {
    --c-primary: #1a5276;
    --c-primary-light: #2980b9;
    --c-accent: #e67e22;
    --c-accent-light: #f39c12;
    --c-bg: #f8f9fa;
    --c-text: #2c3e50;
    --c-muted: #7f8c8d;
    --c-border: #dee2e6;
    --c-white: #ffffff;
    --c-danger: #e74c3c;
    --c-dark: #0d1b2a;
    --c-glow: rgba(41,128,185,0.3);
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
}

a { color: var(--c-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--c-glow); }
    50% { box-shadow: 0 0 20px var(--c-glow), 0 0 40px rgba(41,128,185,0.15); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(41,128,185,0.2); }
    50% { border-color: rgba(41,128,185,0.6); }
}
@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Scroll reveal utility ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════ HEADER ═══════ */
.header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease;
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.logo__text {
    font-size: 24px;
    font-weight: 800;
    color: var(--c-primary);
    letter-spacing: 2px;
    transition: color 0.3s, text-shadow 0.3s;
}
.logo:hover .logo__text {
    text-shadow: 0 0 20px var(--c-glow);
    color: var(--c-primary-light);
}
.logo__sub { font-size: 11px; color: var(--c-muted); letter-spacing: 1px; }
.logo__img { height: 48px; }
.header__contacts { margin-left: auto; text-align: right; flex-shrink: 0; }
.header__phone a {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.header__phone a:hover { color: var(--c-primary-light); transform: scale(1.03); text-decoration: none; }
.header__email a { font-size: 13px; color: var(--c-muted); transition: color 0.3s; }
.header__email a:hover { color: var(--c-primary-light); }
.header__nav { display: flex; gap: 20px; flex-shrink: 0; }
.nav__link {
    color: var(--c-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary-light);
    transition: width 0.3s ease;
}
.nav__link:hover { color: var(--c-primary-light); text-decoration: none; }
.nav__link:hover::after { width: 100%; }
.header__burger { display: none; font-size: 28px; cursor: pointer; transition: transform 0.3s; }
.header__burger:hover { transform: rotate(90deg); }

.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--c-white); box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 99; padding: 12px 20px; transform-origin: top; animation: slideDown 0.3s ease; }
.mobile-menu.active { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu a { padding: 8px 0; font-size: 17px; color: var(--c-text); border-bottom: 1px solid #eee; transition: color 0.3s, padding-left 0.3s; }
.mobile-menu a:hover { color: var(--c-primary-light); padding-left: 8px; text-decoration: none; }
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .header__nav { display: none; }
    .header__burger { display: block; }
    .header__contacts { margin-left: 0; font-size: 14px; }
    .header__phone a { font-size: 15px; }
}

/* ═══════ HERO ═══════ */
.hero {
    background: linear-gradient(135deg, var(--c-dark) 0%, #0f283c 30%, #1a3a55 60%, var(--c-primary) 100%);
    background-size: 300% 300%;
    animation: bgShift 12s ease infinite;
    color: var(--c-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(41,128,185,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230,126,34,0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(255,255,255,0.05) 0%, transparent 40%);
    animation: spin-slow 30s linear infinite;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    animation: gradientFlow 6s ease infinite;
    background-size: 200% 100%;
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero__text { animation: fadeInLeft 1s ease; }
.hero__text h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #a0d2f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__text p { font-size: 18px; opacity: 0.85; margin-bottom: 28px; max-width: 550px; }
.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease;
}
.hero-visual {
    position: relative;
    width: 300px;
    height: 300px;
}
.hero-gear {
    position: absolute;
    border: 3px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}
.hero-gear--lg {
    width: 250px; height: 250px;
    top: 25px; left: 25px;
    animation: spin-slow 20s linear infinite;
    border-style: dashed;
    border-width: 2px;
    border-color: rgba(41,128,185,0.4);
}
.hero-gear--md {
    width: 180px; height: 180px;
    top: 60px; left: 60px;
    animation: spin-slow 15s linear infinite reverse;
    border-color: rgba(230,126,34,0.3);
    border-style: dotted;
    border-width: 3px;
}
.hero-gear--sm {
    width: 110px; height: 110px;
    top: 95px; left: 95px;
    animation: spin-slow 10s linear infinite;
    border-color: rgba(255,255,255,0.2);
    border-width: 2px;
}
.hero-dot {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
    animation: blink 2s ease-in-out infinite;
}
.hero-dot:nth-child(4) { top: 10px; left: 150px; animation-delay: 0s; }
.hero-dot:nth-child(5) { top: 150px; left: 10px; animation-delay: 0.5s; }
.hero-dot:nth-child(6) { top: 290px; left: 150px; animation-delay: 1s; }
.hero-dot:nth-child(7) { top: 150px; left: 290px; animation-delay: 1.5s; }
.hero-center-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 900;
    color: var(--c-white);
    text-shadow: 0 0 20px rgba(41,128,185,0.5);
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero__inner { grid-template-columns: 1fr; }
    .hero__text h1 { font-size: 28px; }
    .hero__visual { display: none; }
}

/* ═══════ BUTTONS ═══════ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.5s;
}
.btn:hover::after { transform: translateX(100%) skewX(-15deg); }
.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 4px 15px rgba(26,82,118,0.3); }
.btn--primary:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); box-shadow: 0 6px 25px rgba(41,128,185,0.4); transform: translateY(-3px); text-decoration: none; }
.btn--accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); box-shadow: 0 4px 15px rgba(230,126,34,0.3); animation: glow 2.5s ease-in-out infinite; }
.btn--accent:hover { background: #d35400; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(230,126,34,0.5); text-decoration: none; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; transform: translateY(-3px); text-decoration: none; }
.btn--danger { background: var(--c-danger); color: #fff; border-color: var(--c-danger); font-size: 13px; padding: 6px 14px; }
.btn--danger:hover { opacity: 0.9; transform: translateY(-2px); text-decoration: none; }
.btn--light { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); }
.btn--light:hover { background: #e8e8e8; transform: translateY(-3px); text-decoration: none; }
.btn:active { transform: translateY(1px) !important; }

/* ═══════ SECTIONS ═══════ */
.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--c-text);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--c-accent);
    border-radius: 2px;
    transition: width 0.4s;
}
.section-title:hover::after { width: 100%; }
.center { text-align: center; }
.center .section-title::after { left: 50%; transform: translateX(-50%); }
.center .section-title:hover::after { width: 100%; transform: translateX(-50%); }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }

/* ═══════ PRODUCT CARD (MAIN) ═══════ */
.featured-product { padding: 80px 0; position: relative; }
.featured-product::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}
.product-card--main {
    background: var(--c-white);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    animation: scaleIn 0.8s ease;
}
.product-card--main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.product-card--main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent), var(--c-primary-light));
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}
.product-card__content { padding: 48px; position: relative; }
.product-card__content h2 {
    font-size: 30px;
    color: var(--c-primary);
    margin-bottom: 20px;
}
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.specs-table tr { transition: background 0.3s; }
.specs-table tr:hover { background: #f0f7ff; }
.specs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border);
    transition: color 0.3s;
}
.specs-table td:first-child { color: var(--c-muted); width: 50%; }
.specs-table tr:hover td:last-child { color: var(--c-primary); font-weight: 600; }
.product-card__price {
    font-size: 36px;
    font-weight: 800;
    color: var(--c-accent);
    margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(230,126,34,0.2);
}
.product-card__note { color: var(--c-muted); font-size: 14px; margin-bottom: 24px; }

/* ═══════ STATS COUNTER ═══════ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0 0;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
}
.stat-item { text-align: center; animation: countUp 0.6s ease backwards; }
.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--c-primary);
    transition: color 0.3s;
}
.stat-item:hover .stat-number { color: var(--c-accent); }
.stat-label { font-size: 13px; color: var(--c-muted); margin-top: 4px; }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ═══════ PARTS GRID ═══════ */
.popular-parts { padding: 80px 0; background: var(--c-white); }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.part-card {
    background: var(--c-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
    position: relative;
}
.part-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: border-color 0.4s;
    pointer-events: none;
    z-index: 1;
}
.part-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}
.part-card:hover::before { border-color: var(--c-primary-light); }
.part-card__img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.part-card:hover .part-card__img { transform: scale(1.05); }
.part-card__info { padding: 20px; position: relative; z-index: 2; }
.part-card__info h3 { font-size: 16px; margin-bottom: 10px; color: var(--c-text); transition: color 0.3s; }
.part-card:hover .part-card__info h3 { color: var(--c-primary); }
.part-card__price { font-size: 20px; font-weight: 700; color: var(--c-accent); transition: transform 0.3s; display: inline-block; }
.part-card:hover .part-card__price { transform: scale(1.05); }

/* ═══════ ABOUT BRIEF ═══════ */
.about-brief { padding: 80px 0; position: relative; overflow: hidden; }
.about-brief::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border: 2px dashed rgba(26,82,118,0.08);
    border-radius: 50%;
    animation: spin-slow 40s linear infinite;
}
.about-brief__text { max-width: 800px; margin: 0 auto; font-size: 16px; line-height: 1.9; }

/* ═══════ DEALERS BRIEF ═══════ */
.dealers-brief { padding: 80px 0; background: var(--c-white); }
.dealers-brief__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.dealers-brief__grid span {
    background: var(--c-bg);
    padding: 14px 8px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.35s;
    border: 1px solid transparent;
    cursor: default;
}
.dealers-brief__grid span:hover {
    background: var(--c-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26,82,118,0.25);
}
@media (max-width: 768px) { .dealers-brief__grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════ PAGE HEADER ═══════ */
.page-header {
    background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-primary) 100%);
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
    animation: gradientFlow 4s ease infinite;
    background-size: 200% 100%;
}
.page-header h1 { font-size: 32px; animation: fadeInLeft 0.6s ease; }
.page-header p { opacity: 0.85; margin-top: 8px; animation: fadeInLeft 0.6s ease 0.1s both; }
.back-link { color: rgba(255,255,255,0.75); font-size: 14px; display: inline-block; margin-bottom: 8px; transition: color 0.3s, transform 0.3s; }
.back-link:hover { color: #fff; transform: translateX(-3px); text-decoration: none; }

/* ═══════ CATALOG GRID ═══════ */
.catalog { padding: 50px 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.catalog-card {
    background: var(--c-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.catalog-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--c-primary-light);
    transform: scaleY(0);
    transition: transform 0.4s;
}
.catalog-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    text-decoration: none;
}
.catalog-card:hover::before { transform: scaleY(1); }
.catalog-card__inner { padding: 26px; }
.catalog-card__inner h3 {
    font-size: 16px;
    color: var(--c-text);
    margin-bottom: 8px;
    transition: color 0.3s;
}
.catalog-card:hover .catalog-card__inner h3 { color: var(--c-primary); }
.catalog-card__count {
    font-size: 13px;
    color: var(--c-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.catalog-card__count::before {
    content: '●';
    font-size: 8px;
    color: var(--c-accent);
    animation: blink 2s ease-in-out infinite;
}

/* ═══════ PARTS TABLE ═══════ */
.category-parts { padding: 50px 0; }
.parts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.parts-table thead { background: var(--c-primary); color: #fff; }
.parts-table th, .parts-table td { padding: 12px 20px; text-align: left; }
.parts-table th { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.parts-table td { border-bottom: 1px solid var(--c-border); font-size: 14px; transition: background 0.3s; }
.parts-table tbody tr { transition: background 0.3s, transform 0.3s; }
.parts-table tbody tr:hover { background: #f0f7ff; transform: scale(1.004); }
.parts-table__price { font-weight: 700; color: var(--c-accent); white-space: nowrap; transition: transform 0.3s; }
.parts-table tbody tr:hover .parts-table__price { transform: scale(1.05); }

/* ═══════ ABOUT PAGE ═══════ */
.about-page { padding: 50px 0; }
.about-content { max-width: 900px; }
.about-content h2 { margin-bottom: 16px; color: var(--c-primary); }
.about-content p { margin-bottom: 16px; line-height: 1.9; }
.about-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; margin-top: 36px; }
.feature {
    background: var(--c-white);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: rgba(41,128,185,0.15);
}
.feature h3 { font-size: 18px; margin-bottom: 10px; color: var(--c-primary); }

/* ═══════ DEALERS ═══════ */
.dealers-page { padding: 50px 0; }
.dealers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.dealer-card {
    background: var(--c-white);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.dealer-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--c-bg) transparent transparent;
    transition: border-color 0.4s;
}
.dealer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(41,128,185,0.15);
}
.dealer-card:hover::after { border-right-color: var(--c-primary-light); }
.dealer-card h3 { font-size: 18px; margin-bottom: 14px; color: var(--c-primary); }
.dealer-card p { font-size: 14px; margin-bottom: 5px; color: #555; transition: color 0.3s; }
.dealer-card:hover p { color: #333; }

/* ═══════ CONTACTS ═══════ */
.contacts-page { padding: 50px 0; }
.contacts-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .contacts-layout { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 24px; transition: transform 0.3s; }
.contact-block:hover { transform: translateX(5px); }
.contact-block h3 { font-size: 16px; margin-bottom: 4px; color: var(--c-primary); }
.contact-block p { font-size: 15px; }
.contacts-form {
    background: var(--c-white);
    padding: 36px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.4s;
}
.contacts-form:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* ═══════ FORMS ═══════ */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 14px; font-weight: 600; color: #555; }
.input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--c-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--c-bg);
}
.input:hover { border-color: rgba(41,128,185,0.3); }
.input:focus { outline: none; border-color: var(--c-primary-light); box-shadow: 0 0 0 4px rgba(41,128,185,0.12); background: #fff; }
textarea.input { resize: vertical; min-height: 100px; }

/* ═══════ FOOTER ═══════ */
.footer {
    background: var(--c-dark);
    color: rgba(255,255,255,0.65);
    padding: 50px 0 0;
    margin-top: 60px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-accent), var(--c-primary-light), transparent);
}
.footer__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__col h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer__col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
}
.footer__col a:hover { color: var(--c-accent); text-decoration: none; padding-left: 5px; }
.footer__col p { font-size: 14px; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 40px; font-size: 13px; text-align: center; opacity: 0.6; }

/* ═══════ PRELOADER ═══════ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--c-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spin-slow 0.8s linear infinite;
}
.preloader__text {
    position: absolute;
    bottom: 40px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    letter-spacing: 3px;
    animation: blink 2s ease-in-out infinite;
}

/* ═══════ RIPPLE EFFECT ═══════ */
.ripple-container { position: relative; overflow: hidden; }
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

/* ═══════ ALERT ═══════ */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }

/* ═══════ ANIMATION DELAYS ═══════ */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
