html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #020617;
    color: #e5e7eb;
    overflow-x: hidden;
}
a { color: #38bdf8; text-decoration: none; }

/* Glow */
.glow { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(56,189,248,.25), transparent 70%); filter: blur(90px); z-index: 0; }
.glow.one { top: -200px; left: -200px; }
.glow.two { bottom: 200px; right: -200px; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(2,6,23,.75); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(148,163,184,.12); z-index: 1000; }
.nav-container { max-width: 1200px; margin: auto; padding: 14px 20px; display: flex; align-items: center; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: .5px; margin-right: 40px; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { color: #cbd5f5; font-weight: 500; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: #38bdf8; transition: .3s; }
.nav-links a:hover::after { width: 100%; }

/* Hero */
.hero-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    overflow: hidden;
}
.hero-left { flex: 1; min-width: 280px; margin-right: 20px; }
.hero-left h1 { font-size: 56px; margin-bottom: 16px; }
.hero-left p { font-size: 18px; color: #cbd5f5; margin-bottom: 24px; }
.hero-right { flex: 1; min-width: 280px; display: flex; justify-content: flex-end; position: relative; }

/* Canvas для частиц */
#particles-canvas { position: absolute; top:0; left:0; width:100%; height:100%; z-index:0; }
.hero-flex > *:not(canvas) { position: relative; z-index:1; }

/* Telegram Block */
.tg-block {
    background: linear-gradient(145deg,#0ea5e9,#38bdf8);
    border-radius: 20px;
    padding: 30px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.tg-block:hover { transform: translateY(-8px); box-shadow: 0 35px 70px rgba(0,0,0,0.45); }
.tg-icon { font-size: 48px; margin-bottom: 12px; }
.tg-block h3 { font-size: 22px; margin-bottom: 10px; color: #ffffff; }
.tg-block p { font-size: 14px; color: #e0f2fe; margin-bottom: 18px; }
.tg-btn { display: inline-block; background: #ffffff; color: #0ea5e9; font-weight: 700; padding: 12px 28px; border-radius: 12px; text-decoration: none; transition: all 0.3s; font-size: 14px; }
.tg-btn:hover { background: #0ea5e9; color: #ffffff; }

.btn { display: inline-block; background: linear-gradient(135deg,#38bdf8,#0ea5e9); color: #020617; padding: 16px 34px; border-radius: 16px; font-weight: 900; }
@media(max-width: 900px){
    .hero-flex { flex-direction: column; align-items: flex-start; }
    .hero-right { justify-content: flex-start; margin-top: 30px; }
}

/* Sections */
section { position: relative; z-index: 1; padding: 100px 20px; max-width: 1150px; margin: auto; }
h2 { text-align: center; font-size: 40px; margin-bottom: 55px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:30px; }

/* Cards */
.card { background: rgba(15,23,42,.7); backdrop-filter: blur(12px); border-radius: 20px; padding: 30px; border: 1px solid rgba(148,163,184,.18); transition: .35s; position: relative; }
.card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(0,0,0,.45); cursor: pointer; }
.card h3, ul{color: white}

/* Feature Cards */
.feature-card { text-align: center; padding: 40px 20px 30px; background: rgba(15,23,42,0.6); border-radius: 24px; border: 1px solid rgba(148,163,184,0.18); transition: transform 0.4s, box-shadow 0.4s; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg,#38bdf8,#0ea5e9); font-size: 28px; color: #020617; }
.feature-card h4 { font-size: 20px; margin-bottom: 10px; color: #ffffff; }
.feature-card p { font-size: 14px; color: #cbd5f5; line-height: 1.6; }

/* Pricing */
.price { font-size: 40px; font-weight: 900; margin: 10px 0; }
.popular { position: absolute; top: -14px; right: 20px; background: linear-gradient(135deg,#38bdf8,#0ea5e9); color: #020617; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.monthly { color: #94a3b8; font-size: 14px; }

/* Trial */
.trial { border-radius: 16px; padding: 16px 24px; margin-bottom: 20px; box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.trial-flex { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg,#38bdf8,#0ea5e9); }
.trial-flex p { margin: 0; font-size: 14px; color: #020617; }
.trial-btn { display: inline-block; background: #020617; color: #38bdf8; padding: 10px 22px; border-radius: 12px; font-weight: 700; border: 2px solid #38bdf8; transition: all 0.3s; text-decoration: none; }
.trial-btn:hover { background: #38bdf8; color: #020617; }

/* Card list styling */
.card ul { list-style: none; padding: 0; margin: 15px 0 0 0; }
.card ul li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 16px; }
.card ul li::before { content: "✔"; position: absolute; left: 0; top: 0; color: #38bdf8; font-weight: bold; }

/* Footer */
footer { background: linear-gradient(180deg,#020617,#000); padding: 90px 20px 30px; }
.footer-grid { max-width: 1100px; margin: auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 40px; }
footer h4 { margin-bottom: 14px; }
footer p, footer a { font-size: 14px; color: #94a3b8; }
.footer-bottom { margin-top: 50px; text-align: center; font-size: 13px; color: #64748b; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(2,6,23,.85); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal.active { display: flex; }
.modal-content { background: #020617; max-width: 850px; max-height: 80vh; overflow: auto; padding: 36px; border-radius: 22px; border: 1px solid rgba(148,163,184,.2); }
.modal-close { float: right; font-size: 22px; cursor: pointer; color: #94a3b8; }
.card-link { text-decoration: none; }
.card-link .card { transition: transform 0.3s; }
.card-link .card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(0,0,0,.45); cursor: pointer; }

.tg-icon img {
    width: 48px;    /* Размер как был у эмодзи */
    height: 48px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(15,23,42,0.7);
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service-icon {
    width: 32px;
    height: 32px;
}
.service-card span {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}
