/* ============================================================ */
/* 1. HERO (ШАПКА) */
/* ============================================================ */
.hero {
    text-align: center;
    padding: 10px 0 20px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-logo img {
    height: 56px;
    width: auto;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 12px;
}

h1 .subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: #c0c0c0;
}

.highlight {
    color: #f97316;
}

.hero-exp {
    font-size: 1.05rem;
    color: #f97316;
    font-weight: 500;
    margin: 8px 0 12px;
    border-left: 3px solid #f97316;
    padding-left: 16px;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 8px 0 0;
}

/* ============================================================ */
/* 2. БЫСТРЫЙ СТАРТ */
/* ============================================================ */
.quick-start {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px 28px;
    min-width: 160px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.quick-btn:hover {
    border-color: #f97316;
    background: #1f1f1f;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.quick-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.quick-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.quick-desc {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* ============================================================ */
/* 3. ПОЛНЫЙ ЦИКЛ */
/* ============================================================ */
.cycle-block {
    background: #151515;
    border-radius: 16px;
    padding: 32px 28px;
    margin: 20px 0 32px;
    border: 1px solid #2a2a2a;
}

.cycle-block h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 28px;
}

.cycle-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cycle-step {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px 18px 24px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: border-color 0.3s;
    position: relative;
}

.cycle-step:hover {
    border-color: #f97316;
}

.step-number {
    position: absolute;
    top: -12px;
    right: 12px;
    background: #f97316;
    color: #0c0c0c;
    font-weight: 700;
    font-size: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    display: block;
}

.cycle-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 4px 0 8px;
}

.cycle-step p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.cycle-cta {
    text-align: center;
    margin-top: 24px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 32px;
    border: 1px solid #f97316;
    border-radius: 40px;
    color: #f97316;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #f97316;
    color: #0c0c0c;
}

/* ============================================================ */
/* 4. УСЛУГИ (3 КАРТОЧКИ) */
/* ============================================================ */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 8px 0 32px;
}

.card {
    background: #242424;
    padding: 20px 20px 24px;
    border-radius: 16px;
    border-bottom: 3px solid #f97316;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.card:hover {
    background: #2a2a2a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
}

.card p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.card-arrow {
    position: absolute;
    bottom: 16px;
    right: 18px;
    color: #444;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.card:hover .card-arrow {
    color: #f97316;
}

/* ============================================================ */
/* 5. FAQ-БАННЕР */
/* ============================================================ */
.faq-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #1a1a2e, #2a1f0f);
    border: 1px solid #f97316;
    border-radius: 16px;
    padding: 16px 24px;
    margin: 8px 0 32px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.faq-banner:hover {
    border-color: #f97316;
    background: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.faq-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.faq-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-banner-text strong {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-banner-text span {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* ============================================================ */
/* 6. CTA */
/* ============================================================ */
.cta {
    font-size: 1.15rem;
    font-weight: 400;
    color: #d0d0d0;
    margin: 16px 0 8px;
    padding: 20px 0 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.cta p {
    margin: 0;
    line-height: 1.6;
}

.cta .highlight {
    font-weight: 600;
}

/* ============================================================ */
/* АДАПТИВ (МОБИЛЬНАЯ ВЕРСИЯ) */
/* ============================================================ */
@media (max-width: 768px) {
    .hero {
        padding: 0 0 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h1 .subtitle {
        font-size: 1.3rem;
        display: block;
    }

    .hero-exp {
        font-size: 0.9rem;
        padding-left: 12px;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.5;
    }

    .quick-start {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 20px 0 28px;
    }

    .quick-btn {
        max-width: 100%;
        width: 100%;
        padding: 14px 20px;
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
        min-width: unset;
    }

    .quick-icon {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .quick-desc {
        font-size: 0.7rem;
    }

    .cycle-block {
        padding: 20px 16px;
        margin: 16px 0 24px;
    }

    .cycle-block h2 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .cycle-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cycle-step {
        padding: 16px 14px 18px;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 12px;
    }

    .step-number {
        position: static;
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        flex-shrink: 0;
    }

    .step-icon {
        font-size: 1.6rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cycle-step h3 {
        font-size: 1rem;
        margin: 0 0 2px;
        width: 100%;
    }

    .cycle-step p {
        font-size: 0.85rem;
        width: 100%;
    }

    .cycle-cta {
        margin-top: 18px;
    }

    .btn-outline {
        font-size: 0.85rem;
        padding: 8px 24px;
    }

    .services {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 4px 0 24px;
    }

    .card {
        padding: 16px 16px 20px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .card-arrow {
        bottom: 12px;
        right: 14px;
    }

    .faq-banner {
        padding: 14px 18px;
        gap: 12px;
        margin: 4px 0 24px;
    }

    .faq-banner-icon {
        font-size: 1.6rem;
    }

    .faq-banner-text strong {
        font-size: 1rem;
    }

    .faq-banner-text span {
        font-size: 0.8rem;
    }

    .cta {
        font-size: 1rem;
        padding: 16px 0 0;
        margin: 8px 0 4px;
    }
}

/* Планшеты и средние экраны */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h1 .subtitle {
        font-size: 1.5rem;
    }

    .cycle-steps {
        grid-template-columns: 1fr 1fr;
    }

    .cycle-step:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h1 .subtitle {
        font-size: 1.1rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .quick-btn {
        padding: 12px 16px;
    }

    .quick-label {
        font-size: 1rem;
    }

    .cycle-block h2 {
        font-size: 1.1rem;
    }
}


#typing-container {
    min-height: 80px;
    margin: 16px 0 24px;
    text-align: center;
    transition: all 2s;
    border-radius: 6px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 0 #1a1a1a;
}

/* ============================================================ */
/* 7. ПОПУЛЯРНЫЕ СТАТЬИ И ТЕРМИНЫ */
/* ============================================================ */
.popular-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0 16px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
}

.popular-column {
    background: #151515;
    border-radius: 12px;
    padding: 18px 20px 14px;
    border: 1px solid #2a2a2a;
}

.popular-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.popular-icon {
    font-size: 1.4rem;
}

.popular-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #b0b0b0;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.popular-item:hover {
    background: #1f1f1f;
    color: #f97316;
}

.popular-rank {
    color: #444;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 22px;
    flex-shrink: 0;
    text-align: center;
}

.popular-item:hover .popular-rank {
    color: #f97316;
}

.popular-rank.top1 {
    color: #f97316;
}
.popular-rank.top2 {
    color: #c0c0c0;
}
.popular-rank.top3 {
    color: #b8860b;
}

.popular-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-views {
    color: #555;
    font-size: 0.7rem;
    flex-shrink: 0;
    font-weight: 400;
}

.popular-item:hover .popular-views {
    color: #888;
}

.popular-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.popular-more {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.popular-more:hover {
    color: #f97316;
}

/* ============================================================ */
/* АДАПТИВ (МОБИЛЬНАЯ ВЕРСИЯ) */
/* ============================================================ */
@media (max-width: 768px) {
    .popular-block {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0 12px;
        padding-top: 16px;
    }

    .popular-column {
        padding: 14px 14px 10px;
    }

    .popular-header h3 {
        font-size: 0.95rem;
    }

    .popular-item {
        font-size: 0.8rem;
        padding: 6px 6px;
        gap: 8px;
    }

    .popular-rank {
        min-width: 18px;
        font-size: 0.65rem;
    }

    .popular-name {
        white-space: normal;
        word-break: break-word;
    }

    .popular-views {
        font-size: 0.6rem;
        min-width: 40px;
        text-align: right;
    }

    .popular-footer {
        margin-top: 8px;
        padding-top: 6px;
    }

    .popular-more {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .popular-block {
        gap: 12px;
        margin: 16px 0 8px;
        padding-top: 12px;
    }

    .popular-column {
        padding: 10px 10px 8px;
    }

    .popular-item {
        font-size: 0.75rem;
        padding: 4px 4px;
        gap: 6px;
    }

    .popular-rank {
        min-width: 16px;
        font-size: 0.6rem;
    }

    .popular-views {
        font-size: 0.55rem;
        min-width: 32px;
    }

    .popular-header h3 {
        font-size: 0.85rem;
    }

    .popular-icon {
        font-size: 1.2rem;
    }
}