/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-width-block {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0;
}

/* ========== ШАПКА (ПРИЛИПАЕТ, ВСЕГДА В СТРОКУ) ========== */
.header {
    background: #86b6db;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo_page-img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 3px 5px 1px rgba(42, 2, 42, 0.422);
}

.logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-center {
    color: white;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.header-right {
    color: white;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

/* ========== ОБЩИЕ СТИЛИ ДЛЯ СЕКЦИЙ ========== */
.section {
    padding: 50px 0;
}

h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a237e;
    text-align: center;
}

/* ========== БЛОК 1: ТЕКСТ ========== */
.text-block {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.text-block p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

/* ========== БЛОК 2: КАРТОЧКИ (АДАПТИВНАЯ СЕТКА) ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-item {
    background: white;
    padding: 35px 20px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 18px;
    font-weight: 600;
    color: #1a237e;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Карточки для сервисов (с картинками) */
.card-link {
    text-decoration: none;
    display: block;
}

.service-card {
    padding: 0;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.service-card span {
    display: block;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #1a237e;
    background: white;
}

/* ========== БЛОК 3: 2 БЛОКА ========== */
.two-blocks-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.text-left {
    text-align: left;
}


.info-block {
    flex: 1;
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-block h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a237e;
}

.info-block p {
    margin-bottom: 20px;
    color: #555;
}

.info-block .link {
    display: inline-block;
    padding: 10px 30px;
    background: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 40px;
    transition: 0.3s;
}

.info-block .link:hover {
    background: #0d1b4a;
    transform: scale(1.02);
}

/* ========== БЛОК ЗАЯВКИ ========== */
.request-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.request-card h3 {
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 15px;
}

.request-card p {
    margin-bottom: 25px;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.link-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.link-btn:hover {
    background: #0d1b4a;
    transform: scale(1.02);
}

/* ========== ПОДВАЛ ========== */
.footer {
    background: #1a237e;
    color: white;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
}

.footer-left p,
.footer-right p {
    margin-bottom: 10px;
}

.footer-right a {
    color: #ffd700;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-right i {
    width: 25px;
    margin-right: 8px;
}

.footer-copyright {
    background: #0d1b4a;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #ccc;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
}

.modal-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: #1a237e;
    color: white;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    font-size: 20px;
    margin: 0;
}

.modal-header .close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-close {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-close:hover {
    background: #5a6268;
}

.btn-send {
    background: #28a745;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-send:hover {
    background: #218838;
}

/* ========== АДАПТИВНОСТЬ (ШАПКА ВСЕГДА В СТРОКУ) ========== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo_page-img {
        height: 35px;
    }
    
    .logos {
        gap: 8px;
    }
    
    .header-center {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .header-right {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .section {
        padding: 30px 0;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .two-blocks-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .request-card {
        padding: 25px;
    }
    
    .request-card h3 {
        font-size: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        gap: 5px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .logo_page-img {
        height: 28px;
    }
    
    .logos {
        gap: 5px;
    }
    
    .header-center {
        font-size: 9px;
    }
    
    .header-right {
        font-size: 10px;
    }
    
    .text-block {
        padding: 20px;
    }
    
    .card-item {
        
        font-size: 16px;
    }
    
    .info-block {
        padding: 20px;
    }
    
    .info-block h3 {
        font-size: 20px;
    }
    
    .service-card span {
        font-size: 14px;
        padding: 12px;
    }
    
    .modal-body {
        padding: 20px;
    }
}