/* ===== Базовые стили (из тега <style> оригинального HTML) ===== */

:where([class^="ri-"])::before { content: "\f3c2"; }
body {
    font-family: 'Montserrat', sans-serif;
}
.hero-section {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%), url('https://readdy.ai/api/search-image?query=luxury%20premium%20car%20in%20a%20modern%20minimalist%20auto%20service%20workshop%2C%20high-end%20automotive%20repair%20facility%20with%20clean%20lines%20and%20premium%20atmosphere%2C%20professional%20lighting%2C%20elegant%20environment%2C%20perfect%20for%20BMW%2C%20Mercedes%20and%20Audi%20vehicles%2C%20ultra%20high%20quality%20professional%20photography&width=1920&height=1080&seq=1&orientation=landscape');
    background-size: cover;
    background-position: center;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.gallery-item {
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
}
.custom-checkbox:hover input ~ .checkmark {
    border-color: #aaa;
}
.custom-checkbox input:checked ~ .checkmark {
    background-color: #1e40af;
    border-color: #1e40af;
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}
.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-select {
    position: relative;
}
.custom-select select {
    display: none;
}
.select-selected {
    background-color: white;
    border: 1px solid #e5e7eb;
}
.select-items div, .select-selected {
    padding: 8px 16px;
    cursor: pointer;
}
.select-items {
    position: absolute;
    background-color: white;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
}
.select-hide {
    display: none;
}
.select-items div:hover {
    background-color: #f3f4f6;
}
.range-slider {
    width: 100%;
    position: relative;
    margin: 15px 0;
}
.range-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
}
.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #1e40af;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
@media (max-width: 768px) {
    .hero-section {
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.1) 100%), url('https://readdy.ai/api/search-image?query=luxury%20premium%20car%20in%20a%20modern%20minimalist%20auto%20service%20workshop%2C%20high-end%20automotive%20repair%20facility%20with%20clean%20lines%20and%20premium%20atmosphere%2C%20professional%20lighting%2C%20elegant%20environment%2C%20perfect%20for%20BMW%2C%20Mercedes%20and%20Audi%20vehicles%2C%20ultra%20high%20quality%20professional%20photography&width=1080&height=1920&seq=1&orientation=portrait');
    }
}

/* ===== Стили для плавающей кнопки связи ===== */
.contact-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}
.contact-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
}
.contact-button.active-rotate {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}
.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.contact-button i {
    transition: transform 0.3s ease;
    display: inline-block;
}
.contact-button.active-rotate i {
    transform: rotate(180deg);
}
.contact-dropdown {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    min-width: 55px;
}
.contact-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.contact-dropdown a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    color: #333;
}
.contact-dropdown a:hover {
    transform: scale(1.1);
}
.contact-dropdown .call {
    background: #e3f2fd;
    color: #1976d2;
}
.contact-dropdown .call:hover {
    background: #1976d2;
    color: white;
}
.contact-dropdown .whatsapp {
    background: #d4edda;
    color: #25D366;
}
.contact-dropdown .whatsapp:hover {
    background: #25D366;
    color: white;
}
.contact-dropdown .telegram {
    background: #e1f5fe;
    color: #0088cc;
}
.contact-dropdown .telegram:hover {
    background: #0088cc;
    color: white;
}
.contact-dropdown .max {
    background: #e8eaf6;
    color: #3949ab;
    padding: 0;
}
.contact-dropdown .max:hover {
    background: #3949ab;
    color: white;
}
.contact-dropdown .max img {
    width: 28px;
    height: 28px;
    display: block;
}
.contact-dropdown .max i {
    display: none;
}
@media (max-width: 768px) {
    .contact-buttons {
        bottom: 20px;
        right: 20px;
    }
    .contact-button {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    .contact-dropdown a {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .contact-dropdown .max img {
        width: 24px;
        height: 24px;
    }
}