/* ============================================
   HOME PAGE - MODERN MINIMAL DESIGN
   ============================================ */

:root {
    --primary: #0a0a0a;
    --primary-dark: #000000;
    --accent: #0066ff;
    --accent-light: #e6f0ff;
    --accent-dark: #0052cc;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #8a8a8a;
    --bg-light: #fafafa;
    --bg-card: #ffffff;
    --border: #eaeaea;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.label-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-highlight {
    display: block;
    color: var(--accent);
}

.hero-text {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-metrics {
    display: flex;
    gap: 48px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.metric-label {
    font-size: 13px;
    color: var(--text-light);
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 320px;
    background: var(--bg-card);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-card:hover {
    transform: rotate(0deg) translateY(-8px);
}

.hero-car-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.hero-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.hero-card-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.hero-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Section Head */
.section-head {
    margin-bottom: 48px;
}

.section-head.centered {
    text-align: center;
}

.section-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-desc {
    font-size: 16px;
    color: var(--text-gray);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
}

.search-bar {
    max-width: 560px;
    margin: 0 auto 48px;
}

.search-form {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: 60px;
    box-shadow: var(--shadow);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: transparent;
}

.search-field svg {
    stroke: var(--text-light);
}

.search-field input {
    flex: 1;
    padding: 16px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.search-submit {
    padding: 12px 32px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-card-icon {
    font-size: 36px;
}

.service-card-content {
    flex: 1;
}

.service-card-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-card-address {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.service-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}

.service-card-arrow {
    font-size: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

.service-card:hover .service-card-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-card);
}

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

.feature {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Steps Section */
.steps {
    padding: 80px 0;
    background: var(--primary);
    color: white;
}

.steps-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.steps .section-tag {
    color: var(--accent);
}

.steps-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step {
    display: flex;
    gap: 20px;
}

.step-num {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.step-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-info p {
    font-size: 14px;
    opacity: 0.7;
}

.steps-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-big-value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.stat-big-label {
    font-size: 14px;
    opacity: 0.7;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--bg-light);
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    border-radius: 32px;
    padding: 56px 64px;
    color: white;
}

.cta-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-emoji {
    font-size: 120px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Empty Result */
.empty-result {
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-result h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.empty-result p {
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }

    .hero-left {
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .steps-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-stats {
        flex-direction: row;
        justify-content: space-between;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-metrics {
        gap: 24px;
    }

    .metric-value {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-title {
        font-size: 32px;
    }

    .steps-stats {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-emoji {
        font-size: 80px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 12px;
    }

    .search-field {
        background: white;
        border-radius: 60px;
        box-shadow: var(--shadow);
    }

    .search-submit {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .feature {
        padding: 24px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .stat-big-value {
        font-size: 36px;
    }
}

/* Дополнительные стили для рейтинга в карточках */
.service-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stars {
    font-size: 13px;
    color: #fbbf24;
    letter-spacing: 1px;
}

.stars.no-reviews {
    color: #d1d5db;
}

.rating-value {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
}

.reviews-count {
    font-size: 11px;
    color: var(--gray);
}

.reviews-count.no-reviews-text {
    color: #9ca3af;
}

.services-count-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray);
    background: var(--gray-light);
    padding: 4px 10px;
    border-radius: 20px;
}

.services-count-info span:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Адаптив для карточек и кнопок */
@media (max-width: 768px) {
    .service-card-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-info {
        width: 100%;
        justify-content: space-between;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для кнопки Гаража */
.btn-outline-light {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);


/* search-wrapper */
.search-wrapper {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 60px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: white;
    border-radius: 60px;
}

.search-field.search-name {
    min-width: 200px;
}

.search-field.search-service {
    min-width: 250px;
}

.search-field svg {
    flex-shrink: 0;
    stroke: #9ca3af;
}

.search-field input {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
}

.search-submit {
    padding: 0 28px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit:hover {
    background: #3a0ca3;
    transform: translateY(-1px);
}

.search-clear {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-clear:hover {
    color: #dc3545;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Matched services */
.matched-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.matched-service {
    font-size: 11px;
    background: #e8eeff;
    color: #4361ee;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Empty suggestions */
.empty-suggestions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.suggestion-tags a {
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 30px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.suggestion-tags a:hover {
    background: #4361ee;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 12px;
    }

    .search-field {
        background: white;
        border-radius: 60px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .search-submit {
        width: 100%;
        padding: 14px;
    }

    .search-clear {
        justify-content: center;
    }
}