/* ==========================================================================
   0. Подключение локальных шрифтов
   ========================================================================== */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Roman.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. Глобальные стили и переменные
   ========================================================================== */
:root {
    --primary-color: #1f4664;
    --light-color: #ffffff;
    --dark-text: #232323;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.7;
    font-size: 1.05rem;
    font-weight: 400;
    background-color: #111;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url('../images/bg1.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    animation: slowDrift 60s linear infinite alternate;
}
@keyframes slowDrift {
    0% { background-position: center 0%; }
    100% { background-position: center 100%; }
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-weight: 700; }
h2 {
    font-size: 3rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
    color: var(--light-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   2. Стили для шапки сайта (Header)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.navbar-left, .navbar-right { display: flex; align-items: center; flex: 1; }
.navbar-right { justify-content: flex-end; gap: 1.5rem; }
.navbar-center { flex: 1; text-align: center; }
.navbar-brand-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 0.8;
    color: var(--light-color);
    text-transform: uppercase;
}
.nav-links { list-style: none; margin: 0; padding: 0; display: inline-flex; }
.nav-links a { font-weight: 500; font-size: 1rem; color: var(--light-color); transition: opacity 0.3s ease; }
.nav-links a:hover { opacity: 0.8; }
.nav-socials { display: flex; align-items: center; gap: 1rem; }
.nav-socials a { color: var(--light-color); transition: opacity 0.3s ease; }
.nav-socials a:hover { opacity: 0.8; }
.hamburger-button { display: none; }
.mobile-nav { display: none; }

/* ==========================================================================
   3. Стили для Hero-секции и кнопок
   ========================================================================== */
.hero-section {
    color: var(--light-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 8rem 1rem 4rem;
    box-sizing: border-box;
}
.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    /* !!! ИСПРАВЛЕНО: Убираем агрессивные переносы !!! */
}
.hero-subheading { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2.5rem; font-weight: 400; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn, .nav-button {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.02em;
    font-size: 1rem;
}
.btn { padding: 0.9rem 2.2rem; }
.nav-button { padding: 0.6rem 1.2rem; }
.btn-primary, .nav-button { background: rgba(255, 255, 255, 0.9); color: var(--dark-text); }
.btn-primary:hover, .nav-button:hover { background: var(--light-color); transform: translateY(-2px); }
.btn-outline { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); color: var(--light-color); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--light-color); }

/* ==========================================================================
   4. Стили для секции "О компании"
   ========================================================================== */
.about-section { padding: 6rem 0; background-color: transparent; }
.about-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    margin: 0 auto;
    color: var(--dark-text);
}
.about-card h2 {
    color: var(--dark-text);
    text-align: left;
    font-size: 2.8rem;
    text-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.about-item + .about-item {
    margin-top: 2.5rem;
}
.about-card h3 { font-size: 1.5rem; margin-top: 0; margin-bottom: 1rem; }
.about-card p { margin-bottom: 0; color: #333; }

/* ==========================================================================
   5-7. Стили для секций (Features, Form, FAQ)
   ========================================================================== */
.features-section, .form-section, .faq-section { padding: 6rem 0; background-color: transparent; }
.feature-card, .form-container, .faq-item {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--light-color);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.2); }
.feature-card h3 { font-size: 1.5rem; margin-top: 0; margin-bottom: 1rem; }
.feature-card p { margin-bottom: 0; color: rgba(255, 255, 255, 0.8); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-icon { width: 64px; height: 64px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: var(--light-color); display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; }
.section-subheading { text-align: center; font-size: 1.1rem; color: rgba(255, 255, 255, 0.8); margin-top: -2.5rem; margin-bottom: 3rem; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.form-container { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--light-color); }
.form-group input, .form-group textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid rgba(255, 255, 255, 0.2); background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: all 0.3s ease; color: var(--light-color); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); background-color: rgba(0, 0, 0, 0.3); box-shadow: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { text-align: center; margin-top: 2rem; }
.form-alert { padding: 1rem; margin-bottom: 1.5rem; border-radius: 6px; text-align: center; }
.form-alert.success { background-color: #d4edda; color: #155724; }
.form-alert.error { background-color: #f8d7da; color: #721c24; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 1rem; overflow: hidden; }
.faq-question { width: 100%; background-color: transparent; border: none; padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; font-family: inherit; font-size: 1.2rem; font-weight: 500; color: var(--light-color); }
.faq-question:hover { background-color: rgba(255, 255, 255, 0.05); }
.faq-icon { font-size: 1.5rem; font-weight: 300; color: var(--light-color); transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; padding: 0 1.5rem; }
.faq-answer p, .faq-answer ul { color: rgba(255, 255, 255, 0.8); padding-bottom: 1.5rem; }
.faq-answer ul { padding-left: 2rem; }
.faq-item.active .faq-answer { max-height: 400px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ==========================================================================
   8. Стили для секции "Контакты"
   ========================================================================== */
.contacts-section { padding: 6rem 0; background: transparent; }
.contacts-info {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: var(--dark-text);
    max-width: 700px;
    margin: 0 auto;
}
.contacts-info h3 {
    color: var(--dark-text);
    text-align: left;
    font-size: 2.8rem;
    text-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1.5rem;
    margin: 0 0 2rem 0;
}
.contacts-info ul { list-style: none; padding: 0; margin: 0; }
.contacts-info li { display: flex; flex-direction: column; margin-bottom: 1.5rem; line-height: 1.5; }
.contacts-info li:last-child { margin-bottom: 0; }
.contacts-info span { font-weight: 300; font-size: 0.9rem; opacity: 0.7; }
.contacts-info a, .contacts-info p { font-weight: 500; font-size: 1.1rem; margin: 0; color: var(--dark-text); }
.contacts-info a { border-bottom: 1px solid transparent; transition: border-color 0.3s ease; display: inline-block; width: fit-content; }
.contacts-info a:hover { border-color: var(--dark-text); }
.contacts-map { display: none; }

/* ==========================================================================
   9. Стили для подвала (Footer)
   ========================================================================== */
.site-footer-bottom { padding: 3rem 0; text-align: center; color: rgba(255, 255, 255, 0.7); background: transparent; }
.footer-socials { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.footer-socials a { width: 50px; height: 50px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--light-color); display: inline-flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.footer-socials a:hover { background-color: var(--light-color); color: var(--dark-text); transform: translateY(-5px); }
.site-footer-bottom p { margin: 0; font-size: 0.9rem; text-shadow: 0 1px 5px #000; }

/* ==========================================================================
   10. АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */
@media (max-width: 992px) {
    .navbar-center, .nav-socials, .site-header .nav-button { display: none !important; }
    .navbar-right { justify-content: flex-end; }
    .hamburger-button { display: flex; }
}

@media (max-width: 768px) {
    body::before { background-attachment: scroll; }
    
    /* !!! ИСПРАВЛЕНО: Умное масштабирование шрифта для H1 !!! */
    h1 {
        font-size: clamp(2rem, 10vw, 2.8rem) !important;
        line-height: 1.2;
    }
    
    h2, .about-card h2, .contacts-info h3 { font-size: 2rem !important; }
    .hero-section, .about-section, .features-section, .form-section, .faq-section, .contacts-section { padding-top: 7rem; padding-bottom: 5rem; }
    .site-header { background: rgba(17, 24, 39, 0.8); }
    .navbar { height: 70px; }
    .navbar-brand-text { font-size: 1.2rem; }
    .navbar-left { flex: 0; }
    .navbar-right { display: none; }
    .hero-section { min-height: 80vh; }
    .hero-subheading { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.8rem; }
    .btn { width: auto; padding: 0.8rem 2.5rem; }
    .about-card, .form-container, .feature-card, .contacts-info { padding: 2rem 1.5rem; }
    .faq-question { font-size: 1rem; }

    .mobile-nav {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .mobile-nav.is-open { max-height: 500px; }

    .mobile-link, .mobile-button { color: var(--light-color); }
    .mobile-link { font-size: 1.2rem; font-weight: 500; padding: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .mobile-button { background: rgba(255, 255, 255, 0.9); color: var(--dark-text); padding: 0.8rem; margin: 1rem auto; border-radius: 50px; font-weight: 500; width: 80%; }
    .hamburger-button { flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; z-index: 10; }
    .hamburger-button span { display: block; width: 25px; height: 3px; background-color: var(--light-color); transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; }
    .hamburger-button.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-button.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-button.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
    /* !!! ИСПРАВЛЕНО: Этот блок теперь не нужен, так как clamp() справляется лучше !!! */
}