/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1F2A44;
    line-height: 1.5;
    overflow-x: hidden;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, .logo__text { font-family: 'Playfair Display', serif; font-weight: 600; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; text-align: center; letter-spacing: -0.02em; }
.section-title span { color: #3A86FF; }

/* ===== ТЕНИ ===== */
.benefit-card, .case-card, .article-card, .diff-card, .contact__form, .modal-content, .glossary-block {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover, .case-card:hover, .article-card:hover, .glossary-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.02);
}

/* ===== МЕНЮ ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    z-index: 100;
    border-bottom: 1px solid rgba(107,181,255,0.2);
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__icon { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.logo__text { font-size: 1.8rem; font-weight: 700; }
.logo__text span { color: #3A86FF; }
.nav__list { display: flex; gap: 2rem; list-style: none; }
.nav__link {
    text-decoration: none;
    font-weight: 500;
    color: #1F2A44;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3A86FF, #6BB5FF);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link:hover { color: #3A86FF; text-shadow: 0 0 6px rgba(58,134,255,0.3); }
.nav__link--btn {
    background: linear-gradient(135deg, #3A86FF, #6BB5FF);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(58,134,255,0.3);
}
.nav__link--btn::after { display: none; }
.nav__link--btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(58,134,255,0.4); }
.burger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; }
.burger span { width: 25px; height: 2px; background: #1F2A44; }

/* ===== ГЕРОЙ и ПАРАЛЛАКС ОБЛАКОВ ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F5F9FF 0%, #E6F0FA 100%);
    overflow: hidden;
}
.hero__parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../images/hero-mountain.jpg');
    background-size: cover;
    background-position: center 20%;
    opacity: 0.25;
    will-change: transform;
}
.parallax-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%236BB5FF' fill-opacity='0.15' d='M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,128C672,117,768,139,864,160C960,181,1056,203,1152,197.3C1248,192,1344,160,1392,144L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center 30%;
    background-size: 1440px auto;
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
    z-index: 1;
}
.hero__container { position: relative; z-index: 2; max-width: 800px; }
.hero__title { font-size: 3.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.hero__title span { color: #3A86FF; border-bottom: 3px solid #6BB5FF; }
.hero__subtitle { font-size: 1.25rem; margin-bottom: 2rem; color: #2c3e66; }
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 48px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.rock-btn, .btn--primary, .calc-btn-primary {
    background: linear-gradient(135deg, #3A86FF, #6BB5FF, #3A86FF);
    background-size: 200% auto;
    animation: rockShine 3s linear infinite;
    box-shadow: 0 4px 15px rgba(58,134,255,0.3);
}
.rock-btn:hover, .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58,134,255,0.5);
}
@keyframes rockShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero__wave { position: absolute; bottom: -2px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.hero__wave svg { width: 100%; height: 80px; fill: white; }

/* ===== Скошенные углы секций ===== */
.benefits, .cases, .articles, .differences, .seo-glossary-blocks, .contact {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
    margin-top: -2px;
}
.benefits { background: white; padding: 5rem 0; }
.cases { background: #F5F9FF; padding: 5rem 0; clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
.articles { background: white; padding: 5rem 0; }
.differences { background: #E6F0FA; padding: 5rem 0; }
.seo-glossary-blocks { background: white; padding: 4rem 0; }
.contact { background: white; padding: 5rem 0; }

/* ===== Волны-облака (фон) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%236BB5FF' fill-opacity='0.06' d='M0,192L48,197.3C96,203,192,213,288,208C384,203,480,181,576,176C672,171,768,181,864,197.3C960,213,1056,235,1152,234.7C1248,235,1344,213,1392,202.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom 10% left;
    background-size: 1440px auto;
    z-index: -1;
}

/* ===== ВИНЬЕТКА ===== */
.vignette::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
}

/* ===== КАРТОЧКИ ===== */
.benefits__grid, .cases__grid, .articles__grid, .differences__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.benefit-card, .case-card, .article-card, .diff-card, .glossary-block {
    background: white;
    border-radius: 24px;
    padding: 1.8rem;
    transition: all 0.3s;
}
.case-card { padding: 0; overflow: hidden; }
.case-card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.case-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card:hover .case-card__image img { transform: scale(1.05); }
.case-card__overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(58,134,255,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    text-align: center;
}
.case-card:hover .case-card__overlay { opacity: 1; }
.case-card__badge { background: #1F2A44; display: inline-block; padding: 0.3rem 0.8rem; border-radius: 30px; font-size: 0.9rem; font-weight: bold; }
.counter-badge { font-size: 1rem; }
.counter { display: inline-block; min-width: 40px; }
.case-card__info { padding: 1.5rem; }
.case-card__link, .article-card__link, .glossary-link { color: #3A86FF; text-decoration: none; font-weight: 600; margin-top: 0.8rem; display: inline-block; }
.article-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 1rem; }

/* ===== НОВЫЕ SEO-БЛОКИ с фоном ===== */
.glossary-block, .diff-card, .contact__info {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,249,255,0.9));
    backdrop-filter: blur(2px);
    border: 1px solid rgba(107,181,255,0.2);
}
.glossary-block h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.glossary-block p { margin-bottom: 1rem; }

/* ===== КВАДРАТНАЯ ФОРМА ===== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.contact__info, .contact__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact__form { background: #F9FCFE; padding: 2rem; border-radius: 32px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dce5f0;
    border-radius: 48px;
    font-family: inherit;
}
.form-group textarea { border-radius: 24px; resize: vertical; }
.form-note { font-size: 0.75rem; text-align: center; margin-top: 1rem; }

/* ===== ЛИПКАЯ КНОПКА ===== */
.sticky-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3A86FF, #6BB5FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(58,134,255,0.4);
    transition: all 0.3s;
    z-index: 200;
}
.sticky-contact:hover { transform: scale(1.05); box-shadow: 0 10px 28px rgba(58,134,255,0.6); }
.contact-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 199;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}
.contact-panel.open { display: flex; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.contact-panel__header {
    background: #1F2A44;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.close-panel { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.contact-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eef;
}
.contact-method {
    flex: 1 0 calc(50% - 12px);
    background: #F5F9FF;
    border: none;
    border-radius: 40px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.contact-method:hover { background: #E6F0FA; transform: translateY(-2px); }
.chat-simulation { padding: 16px; background: #F9FCFE; }
.typing-indicator { display: flex; gap: 4px; align-items: center; font-style: italic; color: #6c7a91; }
.typing-dot { width: 6px; height: 6px; background: #3A86FF; border-radius: 50%; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:0.3;} 50%{opacity:1;} }

/* ===== МОДАЛКА ===== */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal-content { background: white; margin: auto; padding: 2rem; width: 90%; max-width: 550px; border-radius: 32px; position: relative; animation: fadeInUp 0.3s; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; }
.calculator-step { display: block; }
.calculator__question { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; text-align: center; }
.calculator__options { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.calc-option { background: #F5F9FF; border: 1px solid #dce5f0; padding: 0.8rem 1.6rem; border-radius: 48px; cursor: pointer; }
.calc-option.selected { background: #3A86FF; color: white; }
.calculator__nav { display: flex; justify-content: space-between; margin-top: 1rem; }
.calc-btn { background: none; border: 1px solid #3A86FF; padding: 0.6rem 1.5rem; border-radius: 40px; cursor: pointer; }
.calc-btn-primary { background: #3A86FF; color: white; border: none; }
.form-group-calc { margin-bottom: 1rem; }
.form-group-calc input { width: 100%; padding: 0.8rem 1rem; border: 1px solid #dce5f0; border-radius: 48px; }
.progress-steps { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.progress-step { width: 30px; height: 30px; border-radius: 50%; background: #e0e7ff; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.progress-step.active { background: #3A86FF; color: white; }

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== ФУТЕР ===== */
.footer { background: #1F2A44; color: #cdd9f4; padding: 3rem 0 1rem; }
.footer__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer__contacts, .footer__nav { list-style: none; }
.footer__contacts a, .footer__nav a { color: #cdd9f4; text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; }
.disclaimer { font-size: 0.7rem; margin-top: 0.8rem; color: #a0b3d9; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.8rem; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .burger { display: flex; }
    .hero__title { font-size: 2.2rem; }
    .contact__container { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .sticky-contact { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .contact-panel { width: 260px; right: 20px; bottom: 85px; }
}
/* ===== ШАХМАТНАЯ СЕТКА ДЛЯ ЭТАПОВ ===== */
.seo-steps {
    background: white;
    padding: 5rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 98%, 0 100%);
}
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #F9FCFE;
    border-radius: 32px;
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.step-image-left {
    flex-direction: row;
}
.step-text-left {
    flex-direction: row-reverse;
}
.step-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(58,134,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content {
    flex: 1;
}
.step-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.calc-trigger {
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .step-item, .step-image-left, .step-text-left {
        flex-direction: column;
        text-align: center;
    }
    .step-icon {
        margin-bottom: 1rem;
    }
}

/* ===== FAQ ===== */
.faq-section {
    background: #F5F9FF;
    padding: 5rem 0;
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.faq-item {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    transition: 0.3s;
}
.faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1F2A44;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #3A86FF;
}
.faq-item.open .faq-question::after {
    content: '−';
}
.faq-answer {
    display: none;
    padding-top: 0.8rem;
    border-top: 1px solid #eef;
}
.faq-item.open .faq-answer {
    display: block;
}