:root {
    --bg: #0a0a0a;
    --bg-light: #141414;
    --bg-card: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #a3a3a3;
    --neon: #a3e635;
    --neon-dim: #84cc16;
    --accent: #22d3ee;
    --border: #2a2a2a;
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: sticky; top: 0; background: rgba(10,10,10,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-weight: 900; font-size: 1.4rem; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; }
.text-neon { color: var(--neon); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--neon); }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 100px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: all 0.3s; font-size: 1rem; font-family: 'Inter', sans-serif; }
.btn--primary { background: var(--neon); color: #0a0a0a; }
.btn--primary:hover { background: var(--neon-dim); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(163,230,53,0.3); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn--small { padding: 10px 20px; font-size: 0.9rem; }
.btn--full { width: 100%; }

/* Hero */
.hero { padding: 80px 0; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__title { font-size: 3rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(135deg, var(--neon), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; }
.hero__actions { display: flex; gap: 16px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 32px; }
.stat__value { font-size: 1.5rem; font-weight: 900; color: var(--neon); display: block; }
.stat__label { font-size: 0.85rem; color: var(--text-muted); }

/* Orbit */
.hero__visual { display: flex; justify-content: center; }
.orbit { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.orbit__ring { position: absolute; width: 100%; height: 100%; border: 2px solid var(--border); border-radius: 50%; animation: pulse 4s infinite; }
.orbit__ring::after { content: ''; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; background: var(--neon); border-radius: 50%; box-shadow: 0 0 30px var(--neon); }
.orbit__core { font-size: 5rem; animation: float 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Ad */
.ad-placeholder { background: var(--bg-light); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 40px; }

/* Sections */
.section { padding: 80px 0; }
.section--dark { background: var(--bg-light); }
.section__title { font-size: 2.2rem; font-weight: 900; text-align: center; margin-bottom: 12px; }
.section__subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.field label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.field input { width: 100%; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 1rem; font-weight: 500; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(163,230,53,0.15); }
.calc-result { display: flex; flex-direction: column; gap: 20px; }
.calc-result__card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s; }
.calc-result__card:hover { border-color: var(--neon); transform: translateY(-4px); }
.calc-result__card--accent { background: linear-gradient(135deg, rgba(163,230,53,0.1), rgba(34,211,238,0.05)); border-color: rgba(163,230,53,0.4); }
.calc-result__label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-result__value { display: block; font-size: 2.5rem; font-weight: 900; color: var(--neon); font-family: 'JetBrains Mono', monospace; }
.calc-result__hint { font-size: 0.85rem; color: var(--text-muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all 0.3s; }
.feature-card:hover { border-color: var(--neon); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.feature-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; cursor: pointer; }
.blog-card:hover { border-color: var(--neon); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.blog-card__image { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, rgba(163,230,53,0.1), rgba(34,211,238,0.05)); }
.blog-card__body { padding: 24px; }
.blog-card__date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }
.blog-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-card__excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-card__read { color: var(--neon); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.blog-card__read:hover { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; padding: 20px 0; background: none; border: none; color: var(--text); font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; transition: color 0.2s; }
.faq-question:hover { color: var(--neon); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--neon); transition: transform 0.3s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { color: var(--text-muted); padding-bottom: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--neon); }

/* Article page */
.article-page { padding: 60px 0; }
.article-page h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.article-page .article-meta { color: var(--text-muted); margin-bottom: 32px; font-family: 'JetBrains Mono', monospace; }
.article-page h2 { font-size: 1.6rem; margin: 32px 0 16px; }
.article-page h3 { font-size: 1.3rem; margin: 24px 0 12px; }
.article-page p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; }
.article-page ul, .article-page ol { color: var(--text-muted); margin-bottom: 16px; padding-left: 24px; }
.article-page li { margin-bottom: 8px; }
.article-page blockquote { border-left: 3px solid var(--neon); padding: 16px 24px; background: var(--bg-card); border-radius: 0 12px 12px 0; margin-bottom: 16px; color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__title { font-size: 2.2rem; }
    .calc-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
    .nav { display: none; }
    .article-page h1 { font-size: 1.8rem; }
}
/* Кнопка "Все статьи" на главной */
.blog-more {
    text-align: center;
    margin-top: 40px;
}

/* Поиск на странице блога */
.blog-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.blog-search input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.blog-search input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.15);
}

.blog-search input::placeholder {
    color: var(--text-muted);
}

/* Пустой результат поиска */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text);
    font-size: 1.2rem;
}