/* =========================================
   1. ОСНОВНЫЕ СТИЛИ
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fb;
}

.main-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #2c3e50;
    background: #f5f7fb;
}


/* =========================================
   2. ВЕРХНЯЯ ШАПКА
   ========================================= */
.custom-header {
 background: linear-gradient(135deg, #0e242f 0%, #2c5a6a 100%);
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 30px;
    text-align: center;
}

.custom-header .site-title h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.5);
}

.custom-header .site-title p {
    color: #FFD699;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}


/* =========================================
   3. КОНТАКТНЫЙ БЛОК
   ========================================= */
.contact-bar {
    background: #ffffff;
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-bar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.contact-bar .messengers {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-bar .messenger-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
}

.contact-bar .messenger-btn svg,
.contact-bar .messenger-btn img {
    width: 22px;
    height: 22px;
    fill: white;
}

.contact-bar .messenger-btn.telegram:hover { background: #0088cc; }
.contact-bar .messenger-btn.vk:hover { background: #0077FF; }
.contact-bar .messenger-btn.max:hover { background: linear-gradient(70deg, #44ccff, #4743d5, #9933dd); }

.contact-bar .contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-bar .phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a4a;
    text-decoration: none;
}

.contact-bar .phone:hover { color: #e67e22; }

.contact-bar .callback-btn {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
    border: none;
    cursor: pointer;
}

.contact-bar .callback-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}


/* =========================================
   4. КАРУСЕЛЬ УСЛУГ
   ========================================= */
.services-carousel {
    position: relative;
    margin: 30px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.service-item {
    flex: 0 0 calc(100% - 40px);
    max-width: calc(100% - 40px);
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: scale(1.02);
}

.service-item h4 {
    font-size: 1.3rem;
    color: #1a3a4a;
    text-align: center;
    padding: 15px 15px 8px 15px;
    margin: 0;
    font-weight: 600;
}

.service-item p {
    text-align: center;
}

/* .service-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f0f0f0;
} */
.service-item img {
    width: auto;
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: #1a3a4a;
}
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 58, 74, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #e67e22;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #e67e22;
    width: 30px;
    border-radius: 20px;
}


/* =========================================
   5. БЛОК "КАК Я РАБОТАЮ"
   ========================================= */
.steps-section {
    text-align: center;
    margin-bottom: 5px;
}

.steps-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a3a4a;
    font-weight: 600;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.step-card {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.25s ease;
    border: 1px solid #eef2f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: #e67e22;
    box-shadow: 0 10px 25px rgba(230,126,34,0.1);
}

.step-number {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin: 0 auto 12px auto;
}

.step-icon { 
    font-size: 32px; 
    margin-bottom: 10px; 
}

.step-title { 
    font-size: 1rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #1a3a4a; 
}

.step-desc { 
    font-size: 0.75rem; 
    color: #5a7a8a; 
    line-height: 1.4; 
}


/* =========================================
   6. ЗОНА ВЫЕЗДА
   ========================================= */
.location-area {
    background: linear-gradient(135deg, #1a3a4a 0%, #2c5a6a 100%);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 45px;
    color: white;
    text-align: center;
}

.location-area h3 { 
    font-size: 1.4rem; 
    margin-bottom: 12px; 
}

.location-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 0;
}

.location-badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
}


/* =========================================
   7. ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================= */
.form-section {
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.form-section h3 { 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    color: #1a3a4a; 
}

.form-section p { 
    margin-bottom: 5px; 
    color: #5a7a8a; 
    font-size: 0.85rem; 
}

.wpcf7 {
    max-width: 450px;
    margin: 0 auto;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 5px;
    border: 1px solid #e0e8ed;
    border-radius: 14px;
    font-size: 0.85rem;
    font-family: inherit;
    box-sizing: border-box;
}

.wpcf7 textarea {
    min-height: 100px;
    resize: vertical;
}

.wpcf7-submit {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
    display: block;
    margin: 0 auto;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.wpcf7-submit:disabled {
    background: #95a5a6;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wpcf7-acceptance {
    margin: 5px 0;
}

.wpcf7-list-item-label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #2c3e50;
}

.wpcf7-list-item-label a {
    color: #e67e22;
    text-decoration: underline;
}

/* Добавьте это — для всех ссылок внутри формы CF7 */
.wpcf7 a {
    color: #e67e22;
    text-decoration: none;
    border-bottom: 1px dashed #e67e22;
}

.wpcf7 a:hover {
    color: #c5591e;
    border-bottom: 1px solid #c5591e;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.75rem;
    margin-top: -8px;
    margin-bottom: 10px;
    text-align: left;
}

.wpcf7-not-valid {
    border-color: #dc3232;
}

.wpcf7-response-output {
    margin: 20px 0;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
}

.wpcf7-sent .wpcf7-response-output {
    border-color: #46b450;
    background: #e6fff0;
    color: #2c5e3a;
}

.wpcf7-failed .wpcf7-response-output {
    border-color: #dc3232;
    background: #ffe6e6;
    color: #a00;
}


/* =========================================
   8. СОБСТВЕННЫЙ ПОДВАЛ
   ========================================= */
.custom-footer {
    background: linear-gradient(135deg, #1a3a4a 0%, #2c5a6a 100%);
    border-radius: 30px;
    padding: 40px 35px;
    margin-top: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-icon {
    font-size: 1.1rem;
    color: #e67e22;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-contact-item a:hover {
    color: #e67e22;
    text-decoration: underline;
}

.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.footer-btn-primary {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
}

.footer-btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(230,126,34,0.4);
}

.footer-btn-secondary {
    background: transparent;
    color: #e67e22;
    border: 2px solid #e67e22;
}

.footer-btn-secondary:hover {
    background: rgba(230,126,34,0.1);
    transform: translateY(-2px);
}

.footer-question {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 15px;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

 .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
}

.footer-links a {
        display: block;
        padding: 6px 0;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
}

.footer-links a {
    color: #FFD699;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-legal {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}


/* =========================================
   9. АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
    .main-page { 
        padding: 15px; 
    }
    
    .custom-header { 
        padding: 30px 15px; 
    }
    
    .custom-header .site-title h1 { 
        font-size: 1.8rem; 
    }
    
    .custom-header .site-title p { 
        font-size: 0.9rem; 
    }
    
    .contact-bar-container { 
        flex-direction: column; 
        gap: 12px; 
    }
    
    .contact-bar .contact-info { 
        flex-direction: column; 
        gap: 10px; 
    }
    
    .service-item {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    
    .service-item img {
        height: 240px;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
        padding: 15px 10px;
    }
    
    .step-card { 
        min-width: 150px;
        padding: 15px 10px;
    }
    
    .location-area {
        padding: 20px;
    }
    
    .location-area h3 {
        font-size: 1.2rem;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .custom-footer {
        padding: 30px 25px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-contacts {
        align-items: center;
    }
    
    .footer-buttons {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-question {
        text-align: center;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .service-item img {
        height: 180px;
    }
    
    .service-item h4 {
        font-size: 1rem;
        padding: 12px 8px;
    }
    
    .step-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .custom-footer {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .footer-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================
   10. СТИЛИ ДЛЯ МЕНЮ
   ========================================= */
.site-menu {
    background: linear-gradient(135deg, #1a3a4a 0%, #2c5a6a 100%);
    border-radius: 0;
    margin-bottom: 0;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
}

.main-menu li {
    margin: 0;
    position: relative;
}

.main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 40px;
    transition: all 0.25s ease;
    display: inline-block;
}

.main-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: #FFD699;
    transform: translateY(-2px);
}

.main-menu .current-menu-item a,
.main-menu .current-page-ancestor a,
.main-menu .current-page-parent a {
    background: rgba(255,255,255,0.2);
    color: #FFD699;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.main-menu li:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .site-menu {
        padding: 0 15px;
    }
    
    .menu-container {
        justify-content: center;
    }
    
    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 10px 0;
    }
    
    .main-menu a {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .main-menu li::after {
        display: none;
    }
}

@media (max-width: 550px) {
    .site-menu {
        padding: 0 10px;
    }
    
    .menu-container {
        justify-content: center;
    }
    
    .main-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
    }
    
    .main-menu a {
        display: inline-block;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}


/* =========================================
   11. БЛОК FAQ
   ========================================= */
.faq-section {
    margin: 50px 0;
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.8rem;
    color: #1a3a4a;
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eef2f5;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a4a;
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #e67e22;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding: 0 0 15px 0;
    color: #4a6a7a;
    line-height: 1.5;
}

.faq-answer.show {
    display: block;
}
/* =========================================
   12. КНОПКА "ПОЗВОНИТЬ СЕЙЧАС"
   ========================================= */
.callback-btn-call {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white !important;
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
}

.callback-btn-call:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.footer-btn-call {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(230,126,34,0.3);
}

.footer-btn-call:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 12px rgba(230,126,34,0.4);
}

@media (max-width: 480px) {
    .footer-btn-call {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}</style>
