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

:root {
    --color-light-gray: rgb(241, 241, 241);
    --color-light-blue: rgb(193, 240, 255);
    --color-blue: rgb(0, 116, 254);
    --color-dark-blue: rgb(9, 54, 134);
    --color-black: rgb(15, 15, 15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-black);
    line-height: 1.6;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 116, 254, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-light-blue);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.4rem 0;
}

/* Icons */
.icon {
    width: 1.1em;
    height: 1.1em;
    display: inline-block;
    vertical-align: -0.15em;
    fill: currentColor;
}

.icon-inline {
    margin-right: 0.35rem;
}

.icon-lg {
    width: 1.6em;
    height: 1.6em;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-title {
    font-size: 1rem;
    color: var(--color-dark-blue);
    font-weight: 600;
    max-width: 300px;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.phone-link {
    color: var(--color-dark-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Smaller buttons specifically in header */
.header .btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .header{
        position: static;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    .logo {
        width: 44px;
        height: 44px;
    }
    .header-title {
        font-size: 0.9rem;
        max-width: 200px;
    }
    .phone-link {
        font-size: 0.95rem;
        margin: auto;
    }
    .header .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: auto
        ;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f9fafb, white);
    padding: 3rem 1rem;
}

.hero-title {
    text-align: center;
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Cards */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

/* Video Testimonials */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: scale(1.02);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover img {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 64px;
    height: 64px;
    background: var(--color-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-card:hover .play-btn {
    transform: scale(1.15);
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

/* Text Testimonials */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.stars {
    color: #fbbf24;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 116, 254, 0.1);
}

/* Team Member */
.team-card {
    background: linear-gradient(135deg, var(--color-light-blue), white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-4px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--color-blue);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats */
.stats-box {
    background: var(--color-dark-blue);
    border-radius: 1rem;
    padding: 3rem 2rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.comparison-item:hover {
    transform: translateX(4px);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.problem-side {
    background: #fef2f2;
    padding: 1.5rem;
    border-right: 4px solid #ef4444;
    display: flex;
    align-items: center;
}

.solution-side {
    background: var(--color-light-blue);
    padding: 1.5rem;
}

.side-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.problem-icon {
    background: #ef4444;
    color: white;
}

.solution-icon {
    background: var(--color-blue);
    color: white;
}

/* Map */
.map-container {
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #e5e7eb;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.toast.show {
    display: block;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: white; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 {
    margin-top: 2rem; 
    margin-bottom: 2rem;
 }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.bg-white { background: white; }
.bg-light-blue { background: var(--color-light-blue); }
.bg-gradient-blue {
    background: linear-gradient(135deg, var(--color-blue), var(--color-dark-blue));
}

.hidden { display: none; }

/* Checkmarks */
.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    word-break: normal;
    hyphens: none;
    overflow-wrap: break-word;
}

.check-list li::before {
    content: "✓";
    color: var(--color-blue);
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* Car Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-option {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.brand-option:hover {
    border-color: var(--color-blue);
    background: var(--color-light-blue);
}

.brand-option.selected {
    border-color: var(--color-blue);
    background: var(--color-blue);
    color: white;
    font-weight: 600;
}

/* Guarantees Box */
.guarantees-box {
    background: #f0f9ff;
    border: 2px solid var(--color-blue);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.guarantee-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.guarantee-item:last-child {
    margin-bottom: 0;
}

.guarantee-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
        
/* Step Process */
.step-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    aspect-ratio: 3/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-weight: 600;
}

/* PDF Preview */
.pdf-preview {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.pdf-image {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* Адаптивность для карточек */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .card {
        min-width: 0;
        padding: 1.5rem;
    }
    
    .step-number svg {
        fill: white;
        width: 24px;
        height: 24px;
    }
    
    /* Исправление переноса текста в расчетах */
    .card [style*="display: flex"][style*="justify-content: space-between"] {
        flex-wrap: wrap;
    }
    
    .card [style*="white-space: nowrap"] {
        white-space: nowrap !important;
    }
    
    /* Исправление переноса в списке "Наша формула честной цены" */
    .check-list li {
        word-break: normal;
        hyphens: none;
        overflow-wrap: break-word;
    }
    
    .check-list li strong {
        white-space: normal;
    }
}



