/* main.css - Основные стили для всего сайта */

:root {
    --primary: #0a6fc2;
    --secondary: #00c2cb;
    --accent: #ff6b35;
    --light: #f8fbfd;
    --dark: #0a1f3c;
    --gray: #7a8ca5;
    --success: #2ecc71;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(10, 31, 60, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
    padding-top: 100px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 16px;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 5px 20px rgba(10, 111, 194, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 111, 194, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(10, 111, 194, 0.05);
    transform: translateY(-3px);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h1, .section-title h2 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.logo-icon i {
    color: var(--white);
    font-size: 20px;
}

.logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.footer-logo-icon i {
    color: var(--white);
    font-size: 20px;
}

.footer-logo-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--white);
}

.footer-logo-text span {
    color: var(--secondary);
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 16px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 10px;
    font-size: 12px;
}

.contact-info-footer {
    list-style: none;
}

.contact-info-footer li {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-footer i {
    color: var(--secondary);
    font-size: 20px;
    margin-right: 15px;
    min-width: 20px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-links-footer a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.newsletter-form-footer {
    display: flex;
    margin-top: 20px;
}

.newsletter-form-footer input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.newsletter-form-footer button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-footer button:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .section-title h1, .section-title h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .newsletter-form-footer {
        flex-direction: column;
    }
    
    .newsletter-form-footer input,
    .newsletter-form-footer button {
        width: 100%;
        border-radius: 5px;
    }
    
    .newsletter-form-footer button {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .section-title h1, .section-title h2 {
        font-size: 32px;
    }
}

/* Modal Contact Form Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(10, 31, 60, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--gray);
    float: right;
    font-size: 32px;
    font-weight: normal;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--dark);
    background: rgba(10, 31, 60, 0.05);
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark);
    text-align: center;
}

.modal-content p {
    color: var(--gray);
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.half-width {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(10, 31, 60, 0.1);
    border-radius: 10px;
    background: var(--light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 111, 194, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.full-width {
    width: 100%;
}

/* Modal Checkbox */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    padding: 15px 20px;
    background: rgba(10, 111, 194, 0.03);
    border-radius: 10px;
    border: 2px solid rgba(10, 111, 194, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-option:hover {
    border-color: var(--primary);
    background: rgba(10, 111, 194, 0.05);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    position: relative;
    min-width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--gray);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
    font-size: 12px;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
}

.notification {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--success);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--accent);
}

.notification.info {
    border-left-color: var(--primary);
}

.notification .notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification .notification-icon {
    font-size: 24px;
    min-width: 24px;
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--accent);
}

.notification.info .notification-icon {
    color: var(--primary);
}

.notification .notification-message {
    flex: 1;
    font-size: 15px;
    color: var(--dark);
    line-height: 1.5;
}

.notification .notification-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification .notification-close:hover {
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .half-width {
        width: 100%;
    }

    .notification-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .modal-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        margin: 15% auto;
    }

    .close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }

    .notification-container {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
    }
}

.logo-icon {
    margin-left: 16px; /* ← добавляет отступ слева */
}

.logo-icon img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* центрирует изображение внутри своего контейнера */
}