/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0A0A0A;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(11, 61, 145, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-desktop a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-desktop a:hover {
    opacity: 0.8;
}

.btn-telegram-header {
    background: #2B7AE4;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
}

.btn-telegram-header:hover {
    background: #1e5fb3;
    opacity: 1 !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #0B3D91;
    z-index: 2000;
    padding: 80px 32px 32px;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-close svg {
    width: 28px;
    height: 28px;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 0.8;
}

.btn-telegram-mobile {
    background: #2B7AE4;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0B3D91 0%, #082a66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
}

.btn-outline {
    color: white;
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #0B3D91;
}

.btn-primary {
    color: white;
    background: #2B7AE4;
    border: 2px solid #2B7AE4;
}

.btn-primary:hover {
    background: #1e5fb3;
    border-color: #1e5fb3;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services {
    padding: 100px 20px;
    background: white;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #0A0A0A;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(11, 61, 145, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(11, 61, 145, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #0B3D91;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0A0A0A;
}

.service-card p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-service {
    color: #0B3D91;
    background: transparent;
    border: 2px solid #0B3D91;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: #0B3D91;
    color: white;
}

/* Benefits Section */
.benefits {
    padding: 100px 20px;
    background: #F4F6F8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: #0B3D91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0A0A0A;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 20px;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.requisites-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin: 60px 0 40px;
    color: #0A0A0A;
}

.requisites-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #F4F6F8;
    border-radius: 12px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.requisites-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.requisite-item {
    display: flex;
    gap: 16px;
}

.requisite-icon {
    width: 40px;
    height: 40px;
    background: #0B3D91;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.requisite-icon svg {
    width: 20px;
    height: 20px;
}

.requisite-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.requisite-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}

.requisite-value {
    font-size: 16px;
    color: #0A0A0A;
    line-height: 1.6;
}

.requisite-value a {
    color: #0B3D91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.requisite-value a:hover {
    color: #2B7AE4;
}

.requisite-value small {
    font-size: 14px;
    color: #666;
}

/* Form Section */
.form-section {
    padding: 100px 20px;
    background: white;
}

.form-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #F4F6F8;
    padding: 40px;
    border-radius: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0A0A0A;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E6E9EE;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0B3D91;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    min-height: 20px;
}

.btn-submit {
    width: 100%;
    background: #0B3D91;
    color: white;
    border: none;
    padding: 16px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.btn-submit:hover {
    background: #082a66;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Contacts Section */
.contacts {
    padding: 100px 20px;
    background: #F4F6F8;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.contact-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #0B3D91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-card a {
    color: #0B3D91;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #2B7AE4;
}

.map-placeholder {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    border: 2px dashed #E6E9EE;
}

.map-placeholder svg {
    width: 64px;
    height: 64px;
    color: #0B3D91;
    margin-bottom: 16px;
}

.map-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.map-placeholder small {
    color: #666;
}

/* Footer */
.footer {
    background: #0A1F44;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

/* Floating Telegram Button */
.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #2B7AE4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(43, 122, 228, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-telegram:hover {
    background: #1e5fb3;
    transform: scale(1.1);
}

.floating-telegram svg {
    width: 28px;
    height: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(43, 122, 228, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(43, 122, 228, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(43, 122, 228, 0.4);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0A0A0A;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon.success {
    background: #27ae60;
    color: white;
}

.modal-icon svg {
    width: 48px;
    height: 48px;
}

.modal-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.modal-content p {
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.modal-text {
    text-align: left;
}

.modal-text h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #0A0A0A;
}

.modal-text p {
    text-align: left;
    margin-bottom: 16px;
}

.modal-text ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .requisites-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .floating-telegram {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 24px;
    }
}
