/* ========================================
   ИСПРАВЛЕННЫЙ И ПОЛНЫЙ ФАЙЛ СТИЛЕЙ
   ======================================== */

/* ========================================
   ЦВЕТОВАЯ СХЕМА И ГЛОБАЛЬНЫЕ СТИЛИ
   ======================================== */
:root {
    --primary: #137fec;
    --primary-hover: #1066c2;
    --primary-dark: #0d56a3;
    --background-light: #f6f7f8;
    --background-dark: #101922;
    --surface-light: #ffffff;
    --surface-dark: #1c2a36;
    --border-light: #e5e7eb;
    --border-dark: #374151;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-dark: #f9fafb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --amber-400: #fbbf24;
}

/* ========================================
   АНИМАЦИЯ АККОРДЕОНА
   ======================================== */
.section-content {
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    position: relative;
}

.section-content.expanded {
    max-height: none !important;
    overflow: visible !important;
}

/* Эффект затемнения внизу свернутого блока */
.fade-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #f9fafb);
    pointer-events: none;
    transition: opacity 0.2s;
}

.section-content.expanded::after {
    opacity: 0;
}

/* ========================================
   ЗВЕЗДЫ РЕЙТИНГА
   ======================================== */
.star-display {
    position: relative;
    display: inline-block;
    color: #d1d5db;
    font-size: 1.2em;
    line-height: 1;
}

.star-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #fbbf24;
    white-space: nowrap;
}

.star-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.star-fill.animate {
    animation: fillStar 1.5s ease-in-out forwards;
}

.star-container:nth-child(1) .star-fill.animate {
    animation-delay: 0s;
}

.star-container:nth-child(2) .star-fill.animate {
    animation-delay: 0.2s;
}

.star-container:nth-child(3) .star-fill.animate {
    animation-delay: 0.4s;
}

.star-container:nth-child(4) .star-fill.animate {
    animation-delay: 0.6s;
}

.star-container:nth-child(5) .star-fill.animate {
    animation-delay: 0.8s;
}

@keyframes fillStar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.star-outline {
    color: #d1d5db;
}

.star-filled {
    color: #fbbf24;
}

/* ========================================
   КНОПКИ С ИКОНКАМИ
   ======================================== */
button.bg-primary,
a.bg-primary {
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
    transition: all 0.2s ease;
}

button.bg-primary:hover,
a.bg-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(19, 127, 236, 0.4);
}

button.bg-primary:active {
    transform: translateY(0);
}

button.bg-white,
a.bg-white {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

button.bg-white:hover,
a.bg-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ========================================
   КАРТОЧКИ И КОНТЕЙНЕРЫ
   ======================================== */
.bg-white,
.bg-surface-dark {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bg-white:hover,
.bg-surface-dark:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rounded-xl {
    border-radius: 12px !important;
}

.rounded-2xl {
    border-radius: 16px !important;
}

/* ========================================
   КАРТА В КОНТАКТАХ
   ======================================== */
.map-snippet {
    height: 128px;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.map-snippet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 42, 54, 0.95) 0%, rgba(28, 42, 54, 0.4) 70%, transparent 100%);
}

.map-location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-location-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.4);
}

.map-location-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   РАЗДЕЛИТЕЛИ
   ======================================== */
.divider {
    height: 1px;
    background: var(--border-light);
    margin: 16px 0;
}

.dark .divider {
    background: var(--border-dark);
}

/* ========================================
   КОНТАКТНАЯ ИНФОРМАЦИЯ
   ======================================== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.contact-icon {
    color: var(--text-secondary);
    font-size: 20px;
    margin-top: 2px;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.dark .contact-value {
    color: var(--text-dark);
}

.contact-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--border-light);
    color: var(--text-secondary);
}

.dark .contact-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ========================================
   ЧАСЫ РАБОТЫ
   ======================================== */
.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.hours-day {
    color: var(--text-secondary);
}

.hours-time {
    font-weight: 500;
    color: var(--text-primary);
}

.dark .hours-time {
    color: var(--text-dark);
}

/* Понедельник-Пятница */
.hours-item:nth-child(1) .hours-day {
    color: #9ca3af;
}

/* Суббота */
.hours-item:nth-child(2) .hours-day {
    color: #6b7280;
}

/* Воскресенье */
.hours-item:nth-child(3) .hours-day {
    color: #4b5563;
}

/* ========================================
   БЕЙДЖИ МАРОК АВТО
   ======================================== */
.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    background: var(--border-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.dark .brand-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.brand-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
}

.dark .brand-badge:hover {
    background: var(--primary);
    color: white;
}

.brand-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

/* ========================================
   УСЛУГИ И ЦЕНЫ
   ======================================== */
.service-category {
    border-bottom: 1px solid var(--border-light);
}

.dark .service-category {
    border-bottom-color: var(--border-dark);
}

.service-category:last-child {
    border-bottom: none;
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.dark .service-category-header {
    color: var(--text-dark);
}

.service-category-icon {
    color: var(--primary);
    font-size: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 12px 40px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

.dark .service-item {
    border-bottom-color: var(--border-dark);
}

.service-item:last-child {
    border-bottom: none;
}

.service-name {
    color: var(--text-secondary);
}

.dark .service-name {
    color: #9ca3af;
}

.service-price {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.dark .service-price {
    color: var(--text-dark);
}

/* ========================================
   ОТЗЫВЫ
   ======================================== */
.review-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.review-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.dark .review-author {
    color: var(--text-dark);
}

.review-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
    font-size: 14px;
}

.review-stars .material-symbols-outlined {
    color: var(--amber-400);
}

.review-stars .text-slate-600 {
    color: var(--text-secondary) !important;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.dark .review-text {
    color: #d1d5db;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

/* ========================================
   ФОРМА ОТЗЫВА
   ======================================== */
.review-form {
    background: var(--background-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
}

.dark .review-form {
    background: rgba(28, 42, 54, 0.5);
}

.review-form-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.dark .review-form-title {
    color: var(--text-dark);
}

.review-stars-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.review-stars-input .material-symbols-outlined {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.review-stars-input .material-symbols-outlined:hover,
.review-stars-input .material-symbols-outlined.text-amber-400 {
    color: var(--amber-400);
}

.review-textarea {
    width: 100%;
    background: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-primary);
    resize: none;
    margin-bottom: 12px;
}

.dark .review-textarea {
    background: #1f2937;
    color: var(--text-dark);
}

.review-textarea::placeholder {
    color: var(--text-secondary);
}

.review-submit {
    background: var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    margin-left: auto;
    display: block;
    transition: all 0.2s ease;
}

.dark .review-submit {
    background: #374151;
    color: var(--text-dark);
}

.review-submit:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.dark .review-submit:hover {
    background: #4b5563;
}

/* ========================================
   РЕЙТИНГ В ШАПКЕ
   ======================================== */
.rating-badge {
    background: var(--amber-400);
    color: black;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 1;
}

.rating-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(19, 127, 236, 0.3);
}

.rating-link:hover {
    text-decoration-color: var(--primary);
}

/* ========================================
   ФУТЕР CLAIM BUSINESS
   ======================================== */
.claim-footer {
    background: #1f2937;
    border-top: 1px solid #374151;
    padding: 24px;
    margin-top: 24px;
}

.claim-card {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #374151;
    max-width: 512px;
    margin: 0 auto;
}

.claim-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.claim-icon {
    font-size: 32px;
    color: var(--primary);
}

.claim-title {
    font-weight: 700;
    font-size: 18px;
    color: white;
    margin: 0;
}

.claim-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.claim-input {
    width: 100%;
    background: #111827;
    border: 1px solid #374151;
    color: white;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.claim-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.2);
}

.claim-input::placeholder {
    color: #6b7280;
}

.claim-button {
    width: 100%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.claim-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
}

.claim-copyright {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 32px;
}

/* ========================================
   ТИПОГРАФИКА
   ======================================== */
.text-3xl {
    font-size: 30px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

.font-bold {
    font-weight: 700 !important;
}

.leading-tight {
    line-height: 1.25 !important;
}

.tracking-tight {
    letter-spacing: -0.02em !important;
}

/* ========================================
   ТЕНИ
   ======================================== */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.shadow-primary-20 {
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.2) !important;
}

/* ========================================
   ПЛАВНЫЕ ПЕРЕХОДЫ
   ======================================== */
.transition-all {
    transition: all 0.2s ease !important;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* ========================================
   HOVER ЭФФЕКТЫ
   ======================================== */
.hover\:bg-black\/5:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.hover\:text-blue-400:hover {
    color: #60a5fa !important;
}

.hover\:underline:hover {
    text-decoration: underline !important;
}

/* ========================================
   DARK MODE СТИЛИ
   ======================================== */
.dark {
    background-color: var(--background-dark) !important;
    color: var(--text-dark) !important;
}

.dark .bg-white {
    background-color: var(--surface-dark) !important;
}

.dark .text-slate-900 {
    color: var(--text-dark) !important;
}

.dark .text-slate-600 {
    color: #9ca3af !important;
}

.dark .border-slate-200 {
    border-color: var(--border-dark) !important;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
    .text-3xl {
        font-size: 28px !important;
    }
    
    .px-5 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .px-4 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .gap-3 {
        gap: 12px !important;
    }
}

/* ========================================
   ПРОЧИЕ СТИЛИ
   ======================================== */
@view-transition {
    navigation: auto;
}

.w-64 {
    width: 20rem !important;
}

.sidebar-transition {
    transition: transform 0.3s ease-in-out;
}

/* Карта внутри модального окна должна иметь высоту */
#map {
    height: 400px;
    width: 100%;
}

.leaflet-control-attribution {
    display: none;
}

/* Дополнительные стили для футера и модальных окон */
#cookiesModal {
    z-index: 60;
}

#floatingRequestButton {
    z-index: 50;
}

#requestModal {
    z-index: 70;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #244730;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #346544;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}