﻿:root {
    --primary-color: #1a4f8e;
    --primary-dark: #0d3a6e;
    --primary-light: #2c6cb0;
    --secondary-color: #3b7ddd;
    --accent-color: #ff7e30;
    --accent-dark: #e66e25;
    --light-color: #f5f7fa;
    --light-gray: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

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


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
    white-space: nowrap;
    will-change: transform, box-shadow;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-block {
    display: block;
    width: 100%;
}

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

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

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

.btn-accent:hover {
    background-color: var(--accent-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-search {
    padding: 12px 30px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.btn-vk {
    background-color: #4a76a8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-vk:hover {
    background-color: #3d638c;
}


.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    will-change: transform;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.logo small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.header-contacts {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-item i {
    color: #1db323;
    font-size: 18px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1a4f8e !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
}

.phone-link:hover {
    color: #1db323 !important;
}

.phone-link i {
    color: #1db323;
    font-size: 18px;
}

.phone-text {
    display: inline;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    z-index: 1102;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--light-gray);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


.main-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    position: relative;
    z-index: 999;
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}


.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu > li > a i.fa-chevron-down {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}


@media (min-width: 769px) {
    .nav-dropdown {
        position: relative;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 300px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--border-radius);
        display: none;
        z-index: 1001;
        padding: 20px;
        animation: fadeIn 0.3s ease;
    }
    
    .dropdown-menu.active {
        display: grid;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: grid;
    }
    
    .nav-dropdown:hover > a i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    
    .btn-vk {
        padding: 10px 15px;
        font-size: 0.875rem;
    }
    
    .btn-vk .btn-vk-text {
        display: inline !important;
    }
    
    
    .phone-text {
        display: none !important;
    }
    
    .phone-link {
        padding: 8px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--light-gray);
    }
    
    .phone-link:hover {
        background: var(--light-color);
    }
    
    .phone-link i {
        font-size: 20px;
        margin: 0;
    }
    
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        transition: var(--transition);
        z-index: 1099;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin: 0;
        will-change: transform, opacity;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu > li > a {
        padding: 16px 25px;
        color: var(--dark-color);
        font-size: 16px;
        font-weight: 500;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: white;
        transition: var(--transition);
    }
    
    .nav-menu > li > a:hover {
        background-color: var(--light-gray);
        color: var(--primary-color);
    }
    
    .nav-menu > li > a.active {
        background-color: var(--light-gray);
        color: var(--primary-color);
    }
    
    .nav-menu > li > a i:first-child {
        margin-right: 12px;
        color: var(--primary-color);
        width: 20px;
        text-align: center;
    }
    
    .nav-menu > li > a i.fa-chevron-down {
        font-size: 12px;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }
    
    .nav-menu > li > a.active i.fa-chevron-down {
        transform: rotate(180deg);
        color: var(--primary-color);
    }
    
    
    .dropdown-menu {
        display: none;
        background: var(--light-gray);
        padding: 0;
        width: 100%;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        animation: none;
        box-shadow: none;
        position: static;
        border-radius: 0;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-column {
        padding: 15px 25px 15px 40px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-column:last-child {
        border-bottom: none;
    }
    
    .dropdown-column h4 {
        font-size: 14px;
        color: var(--text-muted);
        margin-bottom: 12px;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .dropdown-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-column ul li {
        margin-bottom: 10px;
    }
    
    .dropdown-column ul li:last-child {
        margin-bottom: 0;
    }
    
    .dropdown-column ul li a {
        color: var(--dark-color);
        text-decoration: none;
        font-size: 15px;
        padding: 8px 0;
        display: block;
        transition: var(--transition);
        border-left: 2px solid transparent;
        padding-left: 10px;
    }
    
    .dropdown-column ul li a:hover {
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        padding-left: 15px;
    }
}

.dropdown-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 8px;
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column ul li {
    margin-bottom: 8px;
}

.dropdown-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
    font-size: 14px;
}

.dropdown-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}


.hero {
    background: linear-gradient(rgba(26, 79, 142, 0.95), rgba(43, 108, 176, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjMWE0ZjhjIi8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjMmE2Y2IxIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiMzYjdkZGQiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    width: 100%;
    will-change: transform;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    margin: 30px 0;
    text-align: left;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 14px;
    opacity: 0.9;
}


.quick-search {
    padding: 60px 0;
    background-color: var(--light-gray);
    width: 100%;
}

.quick-search h2 {
    text-align: center;
    margin-bottom: 30px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.region-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 79, 142, 0.1);
}

.search-box button {
    flex-shrink: 0;
    white-space: nowrap;
}


.random-services {
    padding: 80px 0;
    background: white;
    width: 100%;
}

.random-services h2 {
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.services-grid.shuffling {
    animation: shuffle 0.5s ease;
}

@keyframes shuffle {
    0% { opacity: 0.8;
    transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.service-card {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 25px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid transparent;
    display: block;
    height: 100%;
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    min-height: 3.5em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.service-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.mt-4 {
    margin-top: 40px;
}


.how-it-works {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--light-color), #eef2f7);
    width: 100%;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}


.regions-section {
    padding: 80px 0;
    background: white;
    width: 100%;
}

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

.region-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    display: block;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform, background-color;
}

.region-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.region-card:hover h3 {
    color: white;
}

.region-card h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.region-card span {
    font-size: 14px;
    opacity: 0.8;
}


.faq-section {
    padding: 80px 0;
    background: var(--light-gray);
    width: 100%;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    will-change: transform;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question.active {
    background-color: var(--primary-color);
    color: white;
}

.faq-question.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    will-change: max-height;
}

.faq-answer.active {
    padding: 20px 25px;
    max-height: 500px;
}


.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #eef2f7, var(--light-color));
    width: 100%;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 79, 142, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-checkboxes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.checkbox-group {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.checkbox-group input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-group label:hover {
    color: var(--primary-color);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}


.main-footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 40px;
    color: var(--accent-color);
}

.footer-tagline {
    font-size: 14px;
    color: #aaa;
    margin-top: 5px;
}

.footer-description {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    will-change: transform;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
}

.footer-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item i.fa-envelope {
    color: #ff7e30;
}

.contact-item i.fa-phone-alt {
    color: #1db323;
}

.contact-item i.fa-vk {
    color: #4a76a8;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.contact-item a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: white;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-info {
    flex: 1;
    min-width: 300px;
}

.legal-info p {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    z-index: 2001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    display: none;
    animation: slideUp 0.3s ease;
    will-change: transform;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px;
    padding: 15px 0;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-content a:hover {
    color: #ff9e63;
}

.cookie-content button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 14px;
}

.cookie-content button:hover {
    background: var(--accent-dark);
}

.cookie-content button:active {
    transform: translateY(1px);
}


.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    position: relative;
    will-change: transform, opacity;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger-color);
    background-color: var(--light-gray);
}

.modal-body {
    padding: 25px;
}

.vk-promo-box {
    background: #f0f8ff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

.vk-promo-box h4 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vk-promo-box ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.vk-promo-box ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vk-promo-box ul li i {
    color: var(--success-color);
}

.text-success {
    color: var(--success-color) !important;
}


.breadcrumb {
    background: var(--light-gray);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-item::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-muted);
    font-size: 12px;
}

.breadcrumb-item:last-child::after {
    content: '';
}

.breadcrumb-item:last-child a {
    color: var(--text-muted);
    pointer-events: none;
}


.global-disclaimer {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 0;
    border-top: 2px solid #f5c6cb;
    font-size: 13px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.global-disclaimer p {
    margin: 0;
}


.ads-section {
    padding: 30px 0;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* ИЗМЕНЕНО: Исправлен ads-container для растягивания контента */
.ads-container {
    max-width: 970px;
    margin: 0 auto;
    min-height: 90px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column; /* Вертикальная ориентация */
    align-items: center;
    justify-content: center;
    color: #999;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
    width: 100%; /* Убедиться, что сам контейнер не сжимается */
    box-sizing: border-box; /* Учитывать padding */
    padding: 0;
    overflow: hidden; /* Обрезать все, что вылезает */
}

/* ДОБАВЛЕНО: Стили для yandex-direct и виджетов */
.yandex-direct {
    width: 100%;
    display: block;
    text-align: center;
}

/* Дополнительная страховка для внутренних виджетов */
.yandex-direct > div, 
.yandex-direct iframe,
.gainnet-widget {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}

.ads-section-inline {
    margin: 30px 0;
    clear: both;
}

.ads-section-inline .ads-container {
    min-height: 250px;
    /* Убедиться, что инлайн тоже растягивается */
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-widget .ads-container {
    min-height: 300px;
}


.hero-region {
    background: linear-gradient(rgba(42, 67, 101, 0.95), rgba(67, 101, 142, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjMmE0MzY1Ii8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjNDM2NTgiZiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiM1Yjc0OWMiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
}

.hero-city {
    background: linear-gradient(rgba(26, 79, 142, 0.95), rgba(59, 125, 221, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjMWE0ZjhjIi8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjM2I3ZGRkIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiM0Yzg4ZjMiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
}

.hero-service {
    background: linear-gradient(rgba(42, 101, 67, 0.95), rgba(67, 142, 101, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjMmE2NTQzIi8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjNDM4ZTY1IiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiM1Y2E2NzEiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
}

.hero-local-service {
    background: linear-gradient(rgba(142, 79, 26, 0.95), rgba(221, 125, 59, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjOGU0ZjFhIi8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjZGQ3ZDNiIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiNlOTg2NGIiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
}

.hero-region-service {
    background: linear-gradient(rgba(79, 26, 142, 0.95), rgba(125, 59, 221, 0.95)), url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwMCIgaGVpZ2h0PSI2MDAiIHZpZXdCb3g9IjAgMCAxMjAwIDYwMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjEyMDAiIGhlaWdodD0iNjAwIiBmaWxsPSIjNGYxYThlIi8+CjxwYXRoIGQ9Ik0wIDMwMEwxMjAwIDBIMHYzMDBaIiBmaWxsPSIjN2QzYmRkIiBmaWxsLW9wYWNpdHk9IjAuMiIvPgo8cGF0aCBkPSJNMCAzMDBMMTIwMCA2MDBWMHoiIGZpbGw9IiM5NjRjZTMiIGZpbGwtb3BhY2l0eT0iMC4xNSIvPgo8L3N2Zz4K');
    background-size: cover;
    background-position: center;
}

.content-section {
    padding: 60px 0;
    background: white;
    width: 100%;
    overflow: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.main-content {
    background: white;
    overflow: hidden;
    width: 100%;
}

.sidebar {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.content-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
}

.content-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    width: 100%;
}

.content-block ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-block ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.content-block ul li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}


.cta-block {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.cta-block h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-block p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-block .btn {
    background: var(--accent-color);
    color: white;
    font-size: 18px;
    padding: 15px 40px;
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-block .btn:hover {
    background: var(--accent-dark);
}


.sidebar-widget {
    margin-bottom: 30px;
    width: 100%;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}


.city-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.city-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.city-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-service-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid transparent;
}

.city-service-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}


.related-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid transparent;
}

.related-service:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.region-cities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.region-city-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    font-size: 14px;
    border: 1px solid transparent;
}

.region-city-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.current-city-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    color: white;
    font-size: 14px;
    border: 1px solid var(--primary-color);
}


.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-header strong {
    color: var(--primary-color);
}

.review-date {
    color: var(--text-muted);
    font-size: 14px;
}

.review-text p {
    margin: 0;
    line-height: 1.6;
}

.contact-info-box {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.contact-info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box p {
    margin-bottom: 20px;
    padding-left: 30px;
}

.contact-info-box a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-box a:hover {
    text-decoration: underline;
}


.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--text-muted);
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.125rem;
    }
    
    .header-top {
        padding: 10px 0;
    }
    
    .logo span {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-item {
        min-width: 90px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .quick-search {
        padding: 40px 0;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .region-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-box button {
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .random-services,
    .how-it-works,
    .regions-section,
    .faq-section,
    .content-section,
    .contact-form-section {
        padding: 40px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
        min-height: auto;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-checkboxes {
        padding: 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
        margin-top: 0;
        padding: 20px;
        width: 100%;
    }
    
    
    .cta-block {
        padding: 20px;
        margin: 30px 0;
        width: 100%;
    }
    
    .cta-block .btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        display: block;
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    
    .legal-info {
        min-width: 100%;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    
    .cookie-banner {
        padding: 5px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 1px;
    }
    
    .cookie-content p {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-content button {
        width: 100%;
    }
    
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb-item a {
        font-size: 12px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    
    .content-block {
        padding: 0 0 20px 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .content-block p {
        width: 100%;
    }
    
    .main-content {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}


input, select, textarea {
    font-size: 16px !important;
    max-width: 100%;
}


.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-5 { margin-top: 3rem !important; }


.loader {
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}


.service-card h3 {
    min-height: 3.5em;
    display: flex;
    align-items: center;
}


.city-link, .city-service-link, .related-service, .region-city-link {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.city-link:hover, .city-service-link:hover, .related-service:hover, .region-city-link:hover {
    border-left-color: var(--primary-color);
    padding-left: 15px;
}


.region-card h3, .service-card h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


.text-center .btn-outline {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
}


@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .region-card, .service-card {
        padding: 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        position: static;
        margin-top: 30px;
        width: 100%;
    }
}


.main-content {
    max-width: 100%;
    overflow: hidden;
}

.content-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.cta-block {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .btn-vk .btn-vk-text {
        display: inline !important;
    }
    
    .phone-text {
        display: inline !important;
    }
}


.checkbox-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.checkbox-error.show {
    display: block;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-submit:active {
    animation: pulse 0.3s ease;
}


a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


p, li {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


@media (prefers-contrast: high) {
    :root {
        --primary-color: #0d3a6e;
        --primary-dark: #06244d;
        --accent-color: #d45a00;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}


.search-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    font-size: 14px;
    border-left: 4px solid #f5c6cb;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}


.loading {
    opacity: 0.6;
    pointer-events: none;
}


@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


button:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


#city-select[aria-busy="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 50 50'%3E%3Cpath fill='%231a4f8e' d='M25,5A20,20,0,1,1,5,25,20,20,0,0,1,25,5m0-5A25,25,0,1,0,50,25,25,25,0,0,0,25,0Z'/%3E%3Cpath fill='%231a4f8e' d='M25,10A15,15,0,1,1,10,25,15,15,0,0,1,25,10m0-5A20,20,0,1,0,45,25,20,20,0,0,0,25,5Z' opacity='0.5'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}


@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media print {
    .main-nav,
    .footer,
    .contact-form-section,
    .global-disclaimer,
    .ads-section,
    .cookie-banner,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .hero h1 {
        color: #000 !important;
        text-shadow: none !important;
    }
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}


.hero, .service-card, .region-card, .faq-item, .modal-content {
    will-change: transform, opacity;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero, .service-card, .region-card, .faq-item, .modal-content {
        will-change: auto;
    }
}




/* Плавающая кнопка телефона */
.floating-phone-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #66BB6A 0%, #388E3C 100%);
}

.floating-phone-btn:active {
    transform: scale(0.95);
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* СТИЛИ ДЛЯ ПЕРВОГО КВИЗА (3 кнопки) */
/* ИЗМЕНЕНО: Добавлено width: 100% */
.main-quiz-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.main-quiz-section .section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.main-quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.main-quiz-option {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 200px;
}

.main-quiz-option:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
    background: white;
}

.main-quiz-option .quiz-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.main-quiz-option .quiz-icon i {
    font-size: 24px;
    color: white;
}

.main-quiz-option h3 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    flex-grow: 0;
}

.main-quiz-option p {
    color: #64748b;
    line-height: 1.4;
    font-size: 14px;
    margin: 0;
    flex-grow: 1;
}

/* СТИЛИ ДЛЯ ВТОРОГО КВИЗА (мини опрос) */
.fast-quiz-section {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.fast-quiz-section .section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 600;
}

.fast-quiz-steps {
    max-width: 800px;
    margin: 0 auto;
}

.fast-quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.fast-quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fast-quiz-step h3 {
    color: #1e293b;
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.fast-quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.fast-quiz-option {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #475569;
}

.fast-quiz-option:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.fast-quiz-option.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
    transform: scale(1.02);
}

.fast-quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.fast-quiz-btn {
    padding: 10px 25px;
    border: 2px solid #cbd5e1;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    color: #475569;
    transition: all 0.3s ease;
    min-width: 100px;
}

.fast-quiz-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.fast-quiz-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
}

.fast-quiz-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    display: none;
}

.modal-content {
    background: white;
    border-radius: 10px;
    /* max-width: 700px;  убрана ширина*/ 
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
    margin: 0 auto;
}

@keyframes modalSlide {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 25px;
}

/* КОНТЕЙНЕР ДЛЯ ВИДЖЕТА */
.widget-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.gainnet-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* СТИЛИ ДЛЯ ТЕЛЕФОННОГО БЛОКА */
.phone-call-box {
    text-align: center;
    padding: 10px 0;
}

.phone-call-box h4 {
    color: #0d3a6e;
    margin-bottom: 12px;
    font-size: 18px;
}

.phone-call-box p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 15px;
}

.phone-number-container {
    margin: 20px 0;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #3b82f6;
}

.phone-number-btn {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: #1d4ed8;
    text-decoration: none;
    padding: 12px 25px;
    background: white;
    border-radius: 50px;
    border: 3px solid #3b82f6;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.phone-number-btn:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
}

.phone-description {
    color: #64748b;
    font-size: 14px;
    margin: 5px 0 0;
}

.btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.btn-call:hover {
    transform: translateY(-2px);
}

/* ПЛАВАЮЩАЯ КНОПКА (ЗЕЛЕНАЯ, ПОВЕРХ ВСЕХ ЭЛЕМЕНТОВ) */
.floating-phone-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 10000;
    /* Поверх всех элементов */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    /* Зеленый градиент */
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .main-quiz-option {
        min-width: 100%;
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .fast-quiz-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* .modal-content {
        max-width: 90%;
    } убрал */
}

@media (max-width: 768px) {
    .main-quiz-section,
    .fast-quiz-section {
        padding: 20px 15px;
    }
    
    .main-quiz-section .section-title,
    .fast-quiz-section .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .main-quiz-option {
        min-height: 180px;
        padding: 18px 12px;
    }
    
    .main-quiz-option h3 {
        font-size: 16px;
    }
    
    .main-quiz-option p {
        font-size: 13px;
    }
    
    .fast-quiz-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fast-quiz-step h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .phone-number-btn {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .widget-container {
        padding: 0;
        width: 100%;
    }
    
    .floating-phone-btn {
        left: 15px;
        bottom: 15px;
        width: 55px;
        height: 55px;
        font-size: 20px;
    }
}

