/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.header-top {
    padding: 15px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.logo p {
    font-size: 14px;
    color: #e0e0e0;
}

.contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone {
    color: 000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.callback-btn {
    background: #4dabf7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.callback-btn:hover {
    background: #3b99e0;
}

/* Навигация */
.navigation {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #4dabf7;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #218838;
}

.btn-secondary {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3);
    transform: translateY(-2px);
}



/* Обзор услуг */
.services-overview {
    padding: 50px 0;
    background: white;
}

.services-overview h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 32px;
}

.services-overview h3 {
    color: #2a5298;
    margin: 25px 0 15px;
}

.services-overview ul {
    list-style-position: inside;
}

.services-overview li {
    margin-bottom: 8px;
    padding-left: 10px;
}

/* Гео-секция */
.geo-section {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.geo-section h3 {
    color: #1e3c72;
    margin-bottom: 25px;
    font-size: 24px;
}

.geo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.geo-links a {
    background: white;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s;
}

.geo-links a:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

/* Услуги */
.services {
    padding: 50px 0;
    background: white;
}

.services h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 40px;
    font-size: 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding-left: 20px;
}

.service-card li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-service {
    display: inline-block;
    background: #2a5298;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-service:hover {
    background: #1e3c72;
}

/* Преимущества */
.advantages {
    padding: 50px 0;
    background: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 40px;
    font-size: 32px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.advantage {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.advantage h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 18px;
}

.advantage p {
    color: #666;
}

/* Футер */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h4,
.footer-contacts h4 {
    color: #4dabf7;
    margin-bottom: 15px;
}

.footer-contacts a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .geo-links {
        justify-content: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
/* Стили модальных окон */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto; /* Добавляем прокрутку */
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto; /* Уменьшаем отступ сверху */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем прокрутку внутри контента */
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #000;
}

/* Стили форм */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

 .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 14px; /* Уменьшаем размер шрифта для мобильных */
    }
    
    .contact-form {
    min-height: auto; /* Уберите фиксированную высоту если она есть */
}

.btn-primary {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Сообщения формы */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Улучшаем адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 15px;
        max-height: 95vh; /* Еще больше ограничиваем высоту на мобильных */
    }


.btn-secondary {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #1976D2, #2196F3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}