:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --secondary: #2c3e50;
    --accent1: #ff4757;
    --accent2: #ff9f43;
    --accent3: #2ed573;
    --accent4: #3742fa;
    --accent5: #ff6b81;
    --accent6: #ffa502;
    --light: #f9f9f9;
    --dark: #2c3e50;
    --shadow: 0 10px 30px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 800;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Анимации для кнопок с 4+ цветами */
.btn-multicolor-1 {
    animation: 
        colorChange1 4s infinite,
        pulse1 3s infinite;
}

.btn-multicolor-2 {
    animation: 
        colorChange2 4s infinite,
        pulse2 3s infinite;
}

.btn-multicolor-3 {
    animation: 
        colorChange3 4s infinite,
        pulse3 3s infinite;
}

.btn-multicolor-4 {
    animation: 
        colorChange4 4s infinite,
        pulse4 3s infinite;
}

.btn-multicolor-5 {
    animation: 
        colorChange5 4s infinite,
        pulse5 3s infinite;
}

.btn-multicolor-6 {
    animation: 
        colorChange6 4s infinite,
        pulse6 3s infinite;
}

/* Анимации изменения цвета */
@keyframes colorChange1 {
    0% { background-color: var(--primary); }
    20% { background-color: var(--accent1); }
    40% { background-color: var(--accent2); }
    60% { background-color: var(--accent3); }
    80% { background-color: var(--accent4); }
    100% { background-color: var(--primary); }
}

@keyframes colorChange2 {
    0% { background-color: var(--accent1); }
    20% { background-color: var(--accent3); }
    40% { background-color: var(--accent4); }
    60% { background-color: var(--accent5); }
    80% { background-color: var(--accent2); }
    100% { background-color: var(--accent1); }
}

@keyframes colorChange3 {
    0% { background-color: var(--accent2); }
    20% { background-color: var(--accent4); }
    40% { background-color: var(--accent5); }
    60% { background-color: var(--accent6); }
    80% { background-color: var(--accent3); }
    100% { background-color: var(--accent2); }
}

@keyframes colorChange4 {
    0% { background-color: var(--accent3); }
    20% { background-color: var(--accent5); }
    40% { background-color: var(--accent6); }
    60% { background-color: var(--primary); }
    80% { background-color: var(--accent4); }
    100% { background-color: var(--accent3); }
}

@keyframes colorChange5 {
    0% { background-color: var(--accent4); }
    20% { background-color: var(--accent6); }
    40% { background-color: var(--primary); }
    60% { background-color: var(--accent1); }
    80% { background-color: var(--accent5); }
    100% { background-color: var(--accent4); }
}

@keyframes colorChange6 {
    0% { background-color: var(--accent5); }
    20% { background-color: var(--primary); }
    40% { background-color: var(--accent1); }
    60% { background-color: var(--accent2); }
    80% { background-color: var(--accent6); }
    100% { background-color: var(--accent5); }
}

/* Анимации пульсации */
@keyframes pulse1 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
}

@keyframes pulse2 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 71, 87, 0); }
}

@keyframes pulse3 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 159, 67, 0); }
}

@keyframes pulse4 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(46, 213, 115, 0); }
}

@keyframes pulse5 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(55, 66, 250, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(55, 66, 250, 0); }
}

@keyframes pulse6 {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 129, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 107, 129, 0); }
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    animation: none;
    filter: brightness(1.2);
}

.btn:hover:before {
    left: 100%;
}

/* Шапка */
header {
    background: rgba(250, 250, 250, 0.75);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}


.logo-img {
    width: 180px;
    height: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.logo span {
    color: var(--primary);
}

.logo-badge {
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: normal;
    animation: colorChange2 5s infinite;
}

.header-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(231, 76, 60, 0.75) 100%), url('znak.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #f9f9f9);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 30px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
    animation: colorChange3 7s infinite;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Особенности */
.features {
    background: white;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-top: 5px solid;
    animation: borderColorChange 8s infinite;
}

@keyframes borderColorChange {
    0% { border-color: var(--primary); }
    25% { border-color: var(--accent1); }
    50% { border-color: var(--accent2); }
    75% { border-color: var(--accent3); }
    100% { border-color: var(--primary); }
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: white;
}

.feature-card:hover:before {
    opacity: 1;
}

.feature-card:hover h3,
.feature-card:hover .feature-icon {
    color: white;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
    animation: colorChange4 10s infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Что делать при ДТП */
.dtp-steps {
    background: linear-gradient(135deg, #f9f9f9 0%, #eef2f7 100%);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border-left: 5px solid;
    animation: borderColorChange 8s infinite;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    line-height: 60px;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.5rem;
    transition: var(--transition);
    animation: colorChange5 6s infinite, pulse1 3s infinite;
}

.step:hover .step-number {
    transform: scale(1.1);
}

/* Зачем вызывать комиссара */
.why-commissioner {
    background: white;
    position: relative;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid;
    animation: borderColorChange 8s infinite;
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.benefit-item h3 i {
    margin-right: 10px;
    color: var(--primary);
}

/* Экстренный вызов */
.emergency {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    animation: emergencyBg 10s infinite;
}

@keyframes emergencyBg {
    0% { background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%); }
    25% { background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 100%); }
    50% { background: linear-gradient(135deg, var(--accent4) 0%, var(--accent5) 100%); }
    75% { background: linear-gradient(135deg, var(--accent6) 0%, var(--primary) 100%); }
    100% { background: linear-gradient(135deg, var(--primary) 0%, var(--accent1) 100%); }
}

.emergency h2 {
    color: white;
    font-size: 2.8rem;
}

.emergency h2:after {
    background: white;
}

.emergency p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Наши услуги */
.services {
    background: linear-gradient(135deg, #f9f9f9 0%, #eef2f7 100%);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-header {
    color: white;
    padding: 25px;
    position: relative;
    overflow: hidden;
    animation: colorChange6 8s infinite;
}

.service-header:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: var(--transition);
}

.service-card:hover .service-header:before {
    transform: rotate(45deg) translate(50px, 50px);
}

.service-body {
    padding: 30px;
}

.service-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Партнеры */
.partners {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 0;
    animation: colorChange1 10s infinite;
}

.partners h2 {
    color: white;
}

.partners h2:after {
    background: white;
}

.partner-logo {
    max-width: 200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 60px;
}

.partner-text {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Футер */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    position: relative;
    animation: borderColorChange 8s infinite;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent1);
    animation: colorChange2 6s infinite;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links li:before {
    content: '›';
    margin-right: 10px;
    color: var(--primary);
    animation: colorChange3 5s infinite;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    animation: colorChange4 7s infinite;
}

.social-links a:hover {
    transform: translateY(-5px);
    filter: brightness(1.3);
}

.footer-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .emergency h2 {
        font-size: 2rem;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    background: var(--light);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #999;
}

.breadcrumbs .current {
    color: var(--dark);
    font-weight: bold;
}