:root {
    --primary: #D32F2F;       
    --primary-hover: #b71c1c; 
    --dark: #111111;          
    --gray: #555555;          
    --light-bg: #F4F6F8;      
    --white: #ffffff;
    --success: #27ae60;
    --border: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.tg-float {
    position: fixed; bottom: 30px; right: 30px; z-index: 1000;
    display: flex; align-items: center; gap: 12px;
    animation: fadeIn 1s ease 1s forwards; opacity: 0;
}
@keyframes fadeIn { to { opacity: 1; } }
.tg-label {
    background: var(--white); padding: 10px 20px; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-size: 14px; font-weight: 700; color: #333;
}
.tg-icon {
    width: 64px; height: 64px; background: #2AABEE; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4); transition: transform 0.3s;
}
.tg-icon:hover { transform: scale(1.1); }
.tg-icon svg { width: 34px; height: 34px; fill: white; }
/* HEADER */
header {
    position: absolute; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 100;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--dark); }
.logo-badge { font-size: 11px; background: #f0f0f0; color: #666; padding: 4px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: #444; }
.nav-links a:hover { color: var(--primary); }
.btn-header {
    border: 2px solid var(--primary); padding: 8px 24px; border-radius: 50px;
    color: var(--primary); font-weight: 700; font-size: 14px;
}
.btn-header:hover { background: var(--primary); color: white; }
/* HERO */
.hero {
    position: relative; 
    min-height: 700px;
    display: flex; align-items: center; justify-content: center; 
    text-align: center; background: var(--white);
    padding-top: 60px; 
}
#wave-canvas-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.hero-content {
    position: relative; z-index: 5; max-width: 900px; padding: 0 20px;
    margin-top: -60px;
}
h1 { font-size: 60px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; color: var(--dark); }
.hero-subtitle {
    font-size: 20px; color: var(--gray); margin-bottom: 40px; font-weight: 500;
    line-height: 1.6; max-width: 700px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn-main {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #FF5252 0%, #D32F2F 100%);
    color: var(--white); padding: 18px 40px; font-size: 18px; font-weight: 700;
    border-radius: 50px; box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4); transition: transform 0.2s;
}
.btn-main:hover { transform: translateY(-3px); }
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: var(--dark); padding: 18px 40px;
    font-size: 18px; font-weight: 700; border-radius: 50px;
    border: 2px solid #eee; transition: 0.3s;
}
.btn-secondary:hover { border-color: var(--dark); }
/* SEO Block */
.seo-block {
    background: #f8f9fa;
    padding: 45px 0;
}
.seo-block h2 { font-size: 34px; margin-bottom: 18px; }
.seo-block p { color: #444; font-size: 17px; margin-bottom: 16px;}
/* FEATURES */
.features { padding: 60px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 40px; margin-bottom: 15px; }
.section-header p { font-size: 18px; color: var(--gray); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--light-bg); padding: 30px; border-radius: 16px;
    transition: 0.3s; border: 1px solid transparent;
}
.feature-card:hover {
    background: var(--white); border-color: #eee;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05); transform: translateY(-5px);
}
.f-icon { font-size: 32px; margin-bottom: 15px; }
.feature-card h3 { margin-bottom: 10px; font-size: 20px; font-weight: 700; }
.feature-card p { color: var(--gray); font-size: 15px; line-height: 1.6; }
/* PRICING */
.pricing { padding: 60px 0; background: #f8f9fa; border-top: 1px solid #eee; }
.switch-wrapper { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 40px; }
.switch-text { font-weight: 700; font-size: 18px; color: #999; cursor: pointer; }
.switch-text.active { color: var(--dark); }
.toggle-btn {
    width: 64px; height: 34px; background: #ddd; border-radius: 34px;
    position: relative; cursor: pointer; transition: 0.3s;
}
.toggle-btn::after {
    content: ''; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px;
    background: white; border-radius: 50%; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.pricing.yearly .toggle-btn { background: var(--primary); }
.pricing.yearly .toggle-btn::after { left: 34px; }
/* Убрали promo-badge! */
/* LAYOUT: SIDEBAR + CONTENT */
.pricing-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.pricing-sidebar { flex: 0 0 280px; }
.plans-list { display: flex; flex-direction: column; gap: 10px; }
.side-plan-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.side-plan-btn:hover { background: #fff; transform: translateX(5px); }
.side-plan-btn.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(211,47,47,0.15);
    z-index: 2;
}
.sp-name { font-weight: 700; font-size: 15px; color: #444; }
.side-plan-btn.active .sp-name { color: var(--primary); }
.sp-price { font-weight: 800; font-size: 16px; color: #111; }
/* CONTENT (RIGHT) */
.pricing-content { flex: 1; }
.plan-detail-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    padding: 40px;
    border: 1px solid #eee;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.detail-name { font-size: 32px; font-weight: 800; color: #111; margin-bottom: 5px; }
.detail-desc { font-size: 16px; color: #666; max-width: 400px; }
.detail-price { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; text-align: right; }
.detail-sub { font-size: 13px; color: var(--success); font-weight: 700; text-align: right; margin-top: 5px; }
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 40px;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}
.spec-label { font-weight: 600; color: #555; font-size: 15px; }
.spec-value { font-weight: 700; color: #111; font-size: 16px; }
.spec-value.yes { color: var(--success); }
.spec-value.no { color: #ccc; }
.detail-footer { text-align: center; }
.btn-order-big {
    background: linear-gradient(180deg, #FF5252 0%, #D32F2F 100%);
    color: white; padding: 18px 60px; font-size: 20px; font-weight: 700;
    border-radius: 50px; box-shadow: 0 10px 30px rgba(211, 47, 47, 0.3); display: inline-block;
}
.btn-order-big:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(211, 47, 47, 0.5); }
.secure-note { margin-top: 15px; font-size: 13px; color: #999; }
/* TECH & FAQ */
.tech-block { padding: 60px 0; background: #fff; border-top: 1px solid #eee; }
.tech-content { max-width: 800px; margin: 0 auto; text-align: center; }
.tech-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
.tech-item { padding: 10px 20px; border: 1px solid #eee; border-radius: 8px; font-weight: 600; color: #555; background: #fafafa; }
.faq { padding: 60px 0; background: var(--light-bg); }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.faq-item h4 { font-size: 18px; margin-bottom: 10px; color: var(--dark); }
.faq-item p { color: var(--gray); font-size: 15px; }
/* FOOTER */
footer { background: #1a1a1a; padding: 50px 0; color: #777; font-size: 14px; margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand strong { color: white; font-size: 20px; display: block; margin-bottom: 5px; }
.footer-links a { color: #ccc; margin-left: 20px; }
/* ADAPTIVE */
@media (max-width: 900px) {
    .pricing-layout { flex-direction: column; }
    .pricing-sidebar { width: 100%; flex: none; }
    .plans-list { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .side-plan-btn { min-width: 160px; flex-direction: column; text-align: center; gap: 5px; }
}
@media (max-width: 768px) {
    h1 { font-size: 36px; }
    .hero-content { margin-top: 0; }
    .hero-btns { flex-direction: column; }
    .nav-links { display: none; }
    .specs-grid { grid-template-columns: 1fr; gap: 15px; }
    .detail-header { flex-direction: column; gap: 15px; }
    .detail-price { text-align: left; }
    .detail-sub { text-align: left; }
}
/* --- CLIENTS SLIDER (MARQUEE) --- */
.clients { padding: 60px 0; background: #fff; border-top: 1px solid #eee; overflow: hidden; }
.slider { height: 120px; margin: auto; overflow: hidden; position: relative; width: 100%; }
.slider::before, .slider::after {
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: "";
    height: 120px; position: absolute; width: 100px; z-index: 2;
}
.slider::after { right: 0; top: 0; transform: rotateZ(180deg); }
.slider::before { left: 0; top: 0; }
.slide-track {
    display: flex; align-items: center;
    width: calc(200px * 24); 
    animation: scroll 40s linear infinite;
}
.slide-track:hover { animation-play-state: paused; }
.slide {
    height: 100px;
    width: 200px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 20px;
}
.slide a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; transition: 0.3s;
    filter: grayscale(100%);
    opacity: 0.6;
}
.slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}
.slide a:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 12)); }
}
@media (max-width: 768px) {
    .slider::before, .slider::after { width: 50px; }
    .slide { width: 150px; }
    .slide-track { 
        width: calc(150px * 24);
        animation: scroll 20s linear infinite;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 12)); }
    }
}