/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.loading-content { text-align: center; }
.loading-logo {
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    margin-bottom: 2rem; font-size: 2rem; font-weight: 700; color: var(--primary-color);
}
.loading-spinner {
    width: 50px; height: 50px; border: 3px solid rgba(14, 165, 233, 0.3);
    border-top: 3px solid var(--primary-color); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1rem;
}
.loading-text { color: var(--text-secondary); font-weight: 500; }
@keyframes spin { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

/* CSS Variables */
:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --accent-color: #06b6d4;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #b3b3bb; /* было #a1a1aa, улучшили контраст */
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    color-scheme: dark; /* системные элементы под тёмную тему */
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Skip link */
.skip-link {
    position: absolute; left: -999px; top: -999px;
}
.skip-link:focus {
    left: 1rem; top: 1rem; background: var(--bg-secondary);
    color: var(--text-primary); padding: .5rem .75rem; border-radius: 8px; z-index: 2000;
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px);
    z-index: 1000; transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(15,23,42,0.95); backdrop-filter: blur(15px); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 700; color: var(--primary-color);
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
    text-decoration: none;
}
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-menu a {
    color: var(--text-primary); text-decoration: none; font-weight: 500;
    transition: all 0.3s ease; position: relative;
}
.nav-menu a:hover { color: var(--primary-color); }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background: var(--primary-color); transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* Hamburger (button reset) */
.hamburger {
    display: none; flex-direction: column; cursor: pointer;
    background: none; border: none; padding: 0; color: inherit;
}
.hamburger span {
    width: 25px; height: 3px; background: var(--text-primary);
    margin: 3px 0; transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100svh; height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
#particles-js {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
}
.hero-content { text-align: center; z-index: 2; max-width: 800px; }
.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-text p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent;
    cursor: pointer; font-size: 1rem; position: relative; overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,165,233,0.3); }
.btn-secondary { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-secondary:hover {
    background: var(--primary-color); color: white; transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14,165,233,0.3);
}
.btn-pricing { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-pricing:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(14,165,233,0.3);
}

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); }
.scroll-arrow {
    width: 2px; height: 30px; background: var(--primary-color); border-radius: 1px; position: relative;
    animation: scroll-bounce 2s infinite;
}
.scroll-arrow::after {
    content: ''; position: absolute; bottom: 0; left: -3px; width: 8px; height: 8px;
    border-right: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg); animation: arrow-pulse 2s infinite;
}
@keyframes scroll-bounce { 0%,20%,50%,80%,100%{transform:translateY(0)} 40%{transform:translateY(10px)} 60%{transform:translateY(5px)} }
@keyframes arrow-pulse { 0%,100%{opacity:.7; transform:rotate(45deg) scale(1)} 50%{opacity:1; transform:rotate(45deg) scale(1.1)} }

/* Section Styles */
section { padding: 5rem 0; position: relative; }
section h2 {
    text-align: center; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Lazy render offscreen sections */
section:not(#hero) {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

/* About Section */
.about { background: var(--bg-secondary); }
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.about-card {
    background: var(--bg-card); padding: 2rem; border-radius: 20px; text-align: center;
    border: 1px solid var(--border-color); transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.about-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.card-icon {
    width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    font-size: 2rem; color: white;
}
.about-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
.about-card p { color: var(--text-secondary); line-height: 1.6; }

/* Pricing Section */
.pricing-notice {
    text-align: center; margin-top: 2rem; padding: 0.75rem; background: rgba(14,165,233,0.06);
    border-radius: 8px; border-left: 3px solid var(--primary-color); max-width: 400px; margin-left: auto; margin-right: auto;
}
.pricing-notice p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.pricing-notice a { color: var(--primary-color); text-decoration: none; font-weight: 400; margin-left: 0.5rem; transition: all 0.3s ease; }
.pricing-notice a:hover { color: var(--secondary-color); text-decoration: underline; }

.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem; max-width: 900px; margin: 0 auto;
}
.pricing-card {
    background: var(--bg-card); border-radius: 20px; padding: 2rem; text-align: center;
    border: 1px solid var(--border-color); transition: all 0.3s ease; position: relative;
    backdrop-filter: blur(10px); display: flex; flex-direction: column; min-height: 650px;
}
.pricing-card:hover {
    transform: translateY(-10px) scale(1.05); box-shadow: var(--shadow); border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(14,165,233,0.08) 0%, rgba(2,132,199,0.08) 100%);
}
.pricing-card.featured { border-color: var(--primary-color); transform: scale(1.02); }
.pricing-card.featured:hover { transform: translateY(-10px) scale(1.07);
    background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(2,132,199,0.1) 100%);
}
.popular-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600;
}
.card-header { margin-bottom: 1.5rem; flex-shrink: 0; }
.card-header i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.card-header h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.price { font-size: 3rem; font-weight: 700; color: var(--primary-color); }
.period { color: var(--text-secondary); font-size: 0.875rem; }

.pricing-stats {
    background: rgba(14,165,233,0.05); border-radius: 15px; padding: 1.5rem; margin-bottom: 1.5rem;
    border: 1px solid rgba(14,165,233,0.1); flex-shrink: 0;
}
.stat-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.5rem 0; border-bottom: 1px solid rgba(14,165,233,0.1);
}
.stat-item:last-child { border-bottom: none; }
.stat-item i { color: var(--primary-color); width: 20px; text-align: center; }
.stat-item span { color: var(--text-primary); font-weight: 500; font-size: 0.9rem; }

.pricing-features { flex: 1; margin-bottom: 1.5rem; }
.features { list-style: none; text-align: left; margin: 0; padding: 0; }
.features li {
    padding: 0.75rem 0; display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.95rem; line-height: 1.4;
}
.features .fa-check { color: #10b981; margin-top: 0.2rem; flex-shrink: 0; }
.features .fa-times { color: #ef4444; margin-top: 0.2rem; flex-shrink: 0; }
.features .fa-exclamation-triangle { color: #f59e0b; margin-top: 0.2rem; flex-shrink: 0; }

.pricing-button { margin-top: auto; flex-shrink: 0; }

/* Terms Section */
.terms { background: var(--bg-secondary); }
.terms-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem;
}
.terms-card {
    background: var(--bg-card); padding: 2rem; border-radius: 20px; text-align: center;
    border: 1px solid var(--border-color); transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.terms-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.terms-icon {
    width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    font-size: 2rem; color: white;
}
.terms-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); }
.terms-card p { color: var(--text-secondary); line-height: 1.6; }

.terms-details { background: var(--bg-card); padding: 2rem; border-radius: 20px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.terms-details h3 { color: var(--text-primary); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.terms-details h3 i { color: #f59e0b; }
.terms-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.terms-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--text-secondary); line-height: 1.6; }
.terms-list i { color: #10b981; margin-top: 0.2rem; flex-shrink: 0; }

/* How To Section */
.how-to { background: var(--bg-secondary); }
.steps-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.step-item {
    display: flex; align-items: flex-start; gap: 2rem; background: var(--bg-card); padding: 2rem;
    border-radius: 20px; border: 1px solid var(--border-color); transition: all 0.3s ease;
    backdrop-filter: blur(10px); position: relative;
}
.step-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.step-item.final-step { background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(2,132,199,0.1) 100%); border-color: var(--primary-color); }
.step-number {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; flex-shrink: 0;
}
.final-step .step-number { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.step-content h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }
.step-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.step-link {
    display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary-color); text-decoration: none; font-weight: 500;
    padding: 0.5rem 1rem; border-radius: 10px; background: rgba(14,165,233,0.1); transition: all 0.3s ease;
}
.step-link:hover { background: rgba(14,165,233,0.2); transform: translateX(5px); }

/* Blog Section */
.blog { background: var(--bg-secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.blog-card {
    background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid var(--border-color);
    transition: all 0.3s ease; backdrop-filter: blur(10px); position: relative;
}
.blog-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow); border-color: var(--primary-color); }
.blog-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(2,132,199,0.05) 100%); opacity: 0; transition: all 0.3s ease;
}
.blog-card:hover::before { opacity: 1; }
.blog-image {
    height: 200px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; position: relative; overflow: hidden;
}
.blog-image::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s;
}
.blog-card:hover .blog-image::after { left: 100%; }
.blog-content { padding: 1.5rem; position: relative; z-index: 2; }
.blog-date { color: var(--text-secondary); font-size: 0.875rem; }
.blog-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0.5rem 0; color: var(--text-primary); }
.blog-card p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.read-more { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: all 0.3s ease; }
.read-more:hover { color: var(--secondary-color); }

/* FAQ Section */
.faq { background: var(--bg-secondary); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card); border-radius: 15px; margin-bottom: 1rem; border: 1px solid var(--border-color);
    overflow: hidden; transition: all 0.3s ease;
}
.faq-question {
    padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}
.faq-question:hover { background: var(--bg-card); }
.faq-question h4 { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); }
.faq-question i { color: var(--primary-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; }
.faq-answer p { color: var(--text-secondary); line-height: 1.6; }

/* Contact Section */
.contact-single { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-card-large {
    background: var(--bg-card); padding: 4rem 3rem; border-radius: 30px; border: 1px solid var(--border-color);
    backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.contact-card-large::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.05) 0%, rgba(2,132,199,0.05) 100%); opacity: 0; transition: all 0.3s ease;
}
.contact-card-large:hover { transform: translateY(-15px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.contact-card-large:hover::before { opacity: 1; }
.contact-icon-large {
    width: 120px; height: 120px; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
    font-size: 3rem; color: white; position: relative; z-index: 2; animation: icon-float 3s ease-in-out infinite;
}
@keyframes icon-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.contact-card-large h3 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); position: relative; z-index: 2; }
.contact-card-large > p {
    font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.6; position: relative; z-index: 2;
}
.contact-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; position: relative; z-index: 2;
}
.feature-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem;
    background: rgba(14,165,233,0.08); border-radius: 15px; border: 1px solid rgba(14,165,233,0.15); transition: all 0.3s ease;
}
.feature-item:hover { background: rgba(14,165,233,0.15); transform: scale(1.05); }
.feature-item i { color: var(--primary-color); font-size: 1.2rem; }
.feature-item span { color: var(--text-primary); font-weight: 500; font-size: 0.9rem; }

.contact-btn-large {
    display: inline-flex; align-items: center; gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white; text-decoration: none; padding: 1.5rem 3rem; border-radius: 50px; font-weight: 600; font-size: 1.1rem;
    transition: all 0.3s ease; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(14,165,233,0.3);
}
.contact-btn-large:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(14,165,233,0.4); }
.contact-btn-large i { font-size: 1.3rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem; border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--bg-card); color: var(--text-primary); font-family: inherit; transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* Footer */
.footer { background: var(--bg-secondary); padding: 3rem 0 1rem; border-top: 1px solid var(--border-color); }

/* SEO блок в футере */
.footer-seo {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: rgba(14,165,233,0.05);
    border-radius: 12px;
    border: 1px solid rgba(14,165,233,0.1);
}

.footer-seo-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.footer-seo-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 3.4em; /* Показываем только первую строку */
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.footer-seo-content.expanded {
    max-height: 1000px; /* Достаточно для всего текста */
}

.footer-seo-content p {
    margin-bottom: 1rem;
}

.footer-seo-content p:last-child {
    margin-bottom: 0;
}

.footer-seo-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.footer-seo-toggle:hover {
    background: var(--primary-color);
    color: white;
}

.footer-seo-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem;
}
.footer-logo {
    font-size: 1.5rem; font-weight: 700; color: var(--primary-color);
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-secondary); }

/* Modal Styles */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
}
.modal-content {
    background: var(--bg-primary); margin: 3% auto; padding: 0; border-radius: 20px; width: 90%; max-width: 800px;
    max-height: 85vh; overflow: hidden; border: 1px solid var(--border-color); animation: modalSlideIn 0.3s ease;
}
.modal-header {
    background: var(--bg-secondary); padding: 2rem; display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { color: var(--text-primary); margin: 0; font-size: 1.5rem; }
.modal-close {
    background: none; border: none; font-size: 2rem; color: var(--text-secondary); cursor: pointer; transition: all 0.3s ease;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.modal-close:hover { color: var(--primary-color); background: rgba(14,165,233,0.1); transform: rotate(90deg); }
.modal-body { padding: 2rem; max-height: 60vh; overflow-y: auto; }
.terms-content h3 { color: var(--primary-color); margin: 1.5rem 0 1rem; font-size: 1.25rem; }
.terms-content h3:first-child { margin-top: 0; }
.terms-content p { color: var(--text-primary); margin-bottom: 1rem; line-height: 1.6; }
.terms-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.terms-content li { color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.5; }
@keyframes modalSlideIn { from{opacity:0; transform:scale(.8)} to{opacity:1; transform:scale(1)} }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-in-left { transform: translateX(-50px); opacity: 0; transition: all 0.8s ease; }
.slide-in-left.visible { transform: translateX(0); opacity: 1; }
.slide-in-right { transform: translateX(50px); opacity: 0; transition: all 0.8s ease; }
.slide-in-right.visible { transform: translateX(0); opacity: 1; }
.slide-in-up { transform: translateY(50px); opacity: 0; transition: all 0.8s ease; }
.slide-in-up.visible { transform: translateY(0); opacity: 1; }

/* Scroll to top button */
.scroll-to-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none; border-radius: 50%; color: white; font-size: 1.25rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 30px rgba(14,165,233,0.4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
}
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .nav-menu {
        position: fixed; left: -100%; top: 70px; flex-direction: column; background: var(--bg-secondary);
        width: 100%; text-align: center; transition: 0.3s; box-shadow: var(--shadow); padding: 2rem 0; border-top: 1px solid var(--border-color);
    }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }

    .about-grid, .pricing-grid, .blog-grid { grid-template-columns: 1fr; }
    .terms-grid { grid-template-columns: 1fr; }
    .terms-list { grid-template-columns: 1fr; }

    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-card-large { padding: 2.5rem 2rem; }
    .contact-icon-large { width: 90px; height: 90px; font-size: 2.5rem; margin-bottom: 1.5rem; }
    .contact-card-large h3 { font-size: 1.5rem; }
    .contact-features { grid-template-columns: 1fr; gap: 1rem; }
    .contact-btn-large { padding: 1.2rem 2rem; font-size: 1rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .step-item { flex-direction: column; text-align: center; gap: 1rem; }
    .steps-container { gap: 1.5rem; }
    section { padding: 3rem 0; }

    .pricing-card { min-height: auto; } /* чтобы не было лишних пустот */
}
@supports (padding: max(0px)) {
    .nav-container { padding-top: max(1rem, env(safe-area-inset-top)); }
}
@media (max-width: 480px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }
    .step-item { padding: 1.5rem; }
    .contact-card { padding: 2rem 1.5rem; }
    .pricing-card { padding: 1.5rem; }
}
.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }



/* Адаптация под мобильные устройства */

html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a, button { min-width: 0; }

.btn,
.contact-btn-large,
.pricing-button .btn-pricing {
  white-space: normal;
  word-break: break-word;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-buttons { gap: .75rem; }
  .btn { width: 100%; max-width: 320px; padding: .9rem 1.25rem; }
  .btn i { flex-shrink: 0; }
  .nav-menu {
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 .75rem; }
  .hero-text h1 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .hero-text p { font-size: .95rem; }

  .pricing-grid,
  .blog-grid,
  .terms-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pricing-card {
    padding: 1.25rem;
    min-height: auto;
  }

  .card-header i { font-size: 2.25rem; }
  .price { font-size: 2.25rem; }
  .stat-item span { font-size: .9rem; }
  .features li { font-size: .95rem; }

  .contact-card-large { padding: 2rem 1.25rem; }
  .contact-icon-large { width: 80px; height: 80px; font-size: 2rem; }
  .contact-btn-large { padding: 1rem 1.25rem; font-size: 1rem; width: 100%; }

  .faq-question { padding: 1.1rem 1.25rem; }
  .faq-answer { padding: 0 1.25rem; }
  .faq-item.active .faq-answer { padding: 0 1.25rem 1.25rem; }

  .scroll-to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 44px; height: 44px;
  }
}

@media (max-width: 360px) {
  .btn { max-width: 100%; padding: .8rem 1rem; }
  .step-item { padding: 1.25rem; }
  .step-number { width: 44px; height: 44px; font-size: 1.1rem; }
}

.popular-badge {
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .popular-badge {
    font-size: .8rem;
    padding: .4rem .9rem;
    top: -12px;
    max-width: 72%;
  }
}