/* style.css (Версия 2.5 - финальные исправления логотипа и меню) */

:root {
    --bg-color: #F8F9FA;
    --primary-blue: #005A9C;
    --secondary-blue: #003F6E;
    --accent-orange: #FCA311;
    --text-dark: #212529;
    --text-light: #F8F9FA;
    --text-muted: #6C757D;
    --border-color: #DEE2E6;
    --white-color: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

html { 
    scroll-behavior: smooth; 
    font-size: 18px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    margin: 0;
    padding-top: 70px;
    overflow-x: hidden;
}
body.mobile-nav-active {
    overflow-y: hidden;
}

#background-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; }
.shape { position: absolute; border-radius: 30%; background-color: rgba(0, 90, 156, 0.06); transition: transform 1s ease-in-out; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--secondary-blue); }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 650px; margin: 0 auto 3.5rem auto; color: var(--text-muted); font-size: 1.1rem; }
section { padding: 5rem 5%; position: relative; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* --- HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); z-index: 1000; box-shadow: var(--shadow-soft);
    display: flex; align-items: center;
}
.header-container {
    width: 90%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
}

/* --- LOGO FIX --- */
.logo { 
    font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--primary-blue);
    /* "Защита" от слишком длинного текста */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 100px; /* Минимальная ширина, чтобы лого не исчезал совсем */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0; /* Правая часть не должна сжиматься */
}

/* --- MENU DOTS FIX --- */
/* Убираем точки из всех списков в навигации */
.desktop-nav ul, .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Default state (mobile): desktop nav is hidden */
.desktop-nav { 
    display: none; 
}

.lang-switcher .lang-btn {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
    padding: 0.4rem 0.8rem; margin-left: 0.5rem; cursor: pointer; border-radius: 5px; font-weight: 700; transition: all 0.3s;
}
.lang-switcher .lang-btn.active, .lang-switcher .lang-btn:hover {
    background-color: var(--primary-blue); color: var(--text-light); border-color: var(--primary-blue);
}


/* --- MOBILE NAVIGATION STYLES --- */
.mobile-nav-toggle {
    display: block; width: 30px; height: 30px; border: none; background: transparent;
    cursor: pointer; padding: 0; z-index: 1010;
}
.hamburger-line {
    display: block; width: 100%; height: 3px; background-color: var(--primary-blue);
    border-radius: 2px; transition: all 0.3s ease-in-out;
}
.hamburger-line:not(:last-child) { margin-bottom: 5px; }

.mobile-nav {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--white-color); z-index: 999;
    transform: translateX(100%); transition: transform 0.4s ease-in-out;
}
.mobile-nav.is-active { transform: translateX(0); }
.mobile-nav ul { text-align: center; }
.mobile-nav li { margin-bottom: 2rem; }
.mobile-nav a { text-decoration: none; font-family: var(--font-heading); font-size: 1.8rem; color: var(--secondary-blue); transition: color 0.3s; }
.mobile-nav a:hover { color: var(--primary-blue); }

.mobile-nav-active .mobile-nav-toggle .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-active .mobile-nav-toggle .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-nav-active .mobile-nav-toggle .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* --- MEDIA QUERY FOR DESKTOP --- */
@media (min-width: 993px) {
    .desktop-nav { display: block; }
    .desktop-nav ul { display: flex; gap: 1.5rem; }
    .desktop-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: color 0.3s; font-size: 0.9rem; }
    .desktop-nav a:hover { color: var(--primary-blue); }
    .mobile-nav-toggle { display: none; }
}


/* ... All other styles for sections, hero, calculator etc. remain unchanged ... */
#hero { min-height: 85vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 0; }
.hero-content { max-width: 800px; margin: 0 auto; }
#hero h1 { font-size: 3.2rem; font-weight: 700; line-height: 1.2; }
#hero p { font-size: 1.2rem; max-width: 650px; margin: 1.5rem auto 2.5rem; color: var(--text-muted); }
.cta-button { background-color: var(--accent-orange); color: var(--white-color); padding: 0.9rem 2.8rem; font-size: 1rem; text-decoration: none; font-family: var(--font-heading); font-weight: 600; border-radius: 50px; transition: all 0.3s; box-shadow: var(--shadow-soft); border: 2px solid var(--accent-orange); display: inline-block; }
.cta-button:hover { background-color: #ffb43a; transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.cta-button.secondary { background: transparent; color: var(--primary-blue); border-color: var(--primary-blue); }
.cta-button.secondary:hover { background: var(--primary-blue); color: var(--white-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background-color: var(--white-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; box-shadow: var(--shadow-soft); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.service-card h3 { margin-top: 0; margin-bottom: 0.75rem; font-size: 1.3rem; }
.service-card p { color: var(--text-muted); flex-grow: 1; margin-bottom: 1.5rem; }
#calculator { background-color: #EDF2F7; }
.calculator-container { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.calculator-form { flex: 2; background: var(--white-color); padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-soft); }
.calculator-form h3 { margin-top: 0; font-size: 1.5rem; }
.calculator-result { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--secondary-blue); color: var(--text-light); padding: 2.5rem; border-radius: 16px; text-align: center; box-shadow: var(--shadow-medium); }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.75rem; font-weight: 600; font-size: 1.05rem; }
.range-wrapper { display: flex; align-items: center; gap: 1.5rem; }
.range-value { font-weight: 700; color: var(--primary-blue); min-width: 40px; font-size: 1.05rem; }
input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; background: var(--border-color); outline: none; border-radius: 4px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--primary-blue); cursor: pointer; border-radius: 50%; }
select { width: 100%; padding: 0.8rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; }
.price-display { font-size: 3rem; font-family: var(--font-heading); margin: 0.5rem 0; font-weight: 700; }
.disclaimer { font-size: 0.85rem; opacity: 0.8; max-width: 250px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: stretch; }
.pricing-card { background-color: var(--white-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; text-align: left; flex-grow: 1; }
.pricing-card li { margin-bottom: 0.75rem; padding-left: 1.5rem; position: relative; }
.pricing-card li::before { content: '✔'; color: var(--primary-blue); position: absolute; left: 0; }
.pricing-card:hover, .pricing-card.popular { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.pricing-card.popular { border-width: 2px; border-color: var(--primary-blue); }
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; }
.pricing-card .price { font-size: 2.8rem; font-weight: 700; font-family: var(--font-heading); color: var(--primary-blue); margin: 1rem 0; }
#why-us { background-color: #EDF2F7; }
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.why-us-card { text-align: center; }
.why-us-card .icon { font-size: 3rem; color: var(--primary-blue); margin-bottom: 1rem; }
.why-us-card h3 { font-size: 1.25rem; }
#useful-info { background-color: var(--white-color); }
.useful-info-container { background-color: #EDF2F7; padding: 2.5rem; border-radius: 16px; max-width: 900px; margin: 0 auto; }
.useful-info-container h3 { margin-top: 0; font-size: 1.5rem; }
#testimonials { background-color: #EDF2F7; }
.testimonials-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white-color); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-soft); }
.testimonial-card .text { font-style: italic; color: var(--text-muted); border-left: 3px solid var(--primary-blue); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.testimonial-card .author { font-weight: 700; margin-top: 1rem; }
.testimonial-card .company { color: var(--text-muted); font-size: 0.9rem; }
#clients { background-color: var(--white-color); }
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.client-logo img { height: 40px; filter: grayscale(100%); transition: filter 0.3s; opacity: 0.7; }
.client-logo img:hover { filter: grayscale(0%); opacity: 1; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--white-color); border-bottom: 1px solid var(--border-color); margin-bottom: 0.5rem; }
.faq-question { padding: 1.2rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.1rem; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary-blue); transition: transform 0.3s; }
.faq-item.active .faq-question { color: var(--primary-blue); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 1.5rem 1.2rem; margin: 0; color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 250px; }
#contact { background-color: #EDF2F7; }
.contact-wrapper { max-width: 700px; margin: 0 auto; background-color: var(--white-color); padding: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-soft); }
.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.form-row input { flex: 1; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 0.9rem; border: 1px solid var(--border-color); border-radius: 5px; font-family: var(--font-body); font-size: 1rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 5px rgba(0, 90, 156, 0.2); }
#form-status { margin-top: 1rem; font-weight: 600; }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { background-color: var(--bg-color); margin: 10vh auto; padding: 2rem; border-radius: 8px; max-width: 700px; position: relative; animation: slide-down 0.5s ease-out; }
@keyframes slide-down { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { color: var(--text-muted); position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; font-weight: bold; cursor: pointer; }
#modal-body ul { padding-left: 20px; } #modal-body li { margin-bottom: 0.75rem; }
footer { text-align: center; padding: 2rem 5%; background-color: #E9ECEF; color: var(--text-muted); }

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 1rem; }
    h2 { font-size: 1.8rem; }
    #hero h1 { font-size: 2.2rem; }
}