/* pages/static/pages/css/services.css */

/* ============================================================
   HERO СТРАНИЦЫ
   ============================================================ */
.page-hero {
    text-align: center;
    padding: 40px 0 20px;
}

.page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-heading);
    transition: color 0.35s ease;
}

.page-hero h1 span {
    color: var(--accent);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    transition: color 0.35s ease;
}

/* ============================================================
   ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-heading {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-heading);
    transition: color 0.35s ease;
}

.section-heading span {
    color: var(--accent);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 32px;
    transition: color 0.35s ease;
}

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 30px 40px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background-color 0.35s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

/* Популярный тариф */
.pricing-card.popular {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.pricing-card .service-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
    transition: color 0.35s ease;
}

.pricing-card .service-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    transition: color 0.35s ease;
}

.pricing-card .price {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 8px 0 4px;
    transition: color 0.35s ease;
}

.pricing-card .price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .price-note {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.35s ease;
}

.pricing-card .divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0 20px;
    transition: background-color 0.35s ease;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.35s ease;
}

.pricing-card ul li i {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.pricing-card ul li .muted {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Блок «Подключение» ===== */
.setup-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.setup-block .setup-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.35s ease;
}

.setup-block .setup-label i {
    color: var(--accent);
}

.setup-block .setup-price {
    color: var(--text-heading);
    font-weight: 700;
    font-size: 18px;
    transition: color 0.35s ease;
}

.setup-block .setup-note {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== Кнопки карточки ===== */
.pricing-card .btn-order {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(108, 140, 255, 0.25);
}

.pricing-card .btn-order:hover {
    background: var(--accent-hover);
    color: var(--accent-contrast);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.pricing-card .btn-order.outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-strong);
    box-shadow: none;
}

.pricing-card .btn-order.outline:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--accent);
    box-shadow: none;
}

/* ============================================================
   ТАБЛИЦА УСЛУГ
   ============================================================ */
.table-services {
    margin: 60px 0 40px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 600px;
}

.services-table thead {
    background: var(--accent-soft);
    border-bottom: 2px solid var(--accent);
}

.services-table thead th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.services-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.services-table tbody tr:hover {
    background: var(--bg-hover);
}

.services-table tbody tr:last-child {
    border-bottom: none;
}

.services-table tbody td {
    padding: 14px 24px;
    color: var(--text-secondary);
    vertical-align: middle;
    transition: color 0.35s ease;
}

.services-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
}

.services-table tbody td:nth-child(2) {
    color: var(--text-muted);
    font-size: 14px;
}

.services-table tbody td:last-child {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ (СЕТКА)
   ============================================================ */
.extra-services {
    margin: 40px 0 60px;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.extra-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    text-align: center;
    transition: border-color 0.3s, transform 0.2s, background-color 0.35s ease;
}

.extra-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.extra-item .icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--accent);
}

.extra-item h4 {
    color: var(--text-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.35s ease;
}

.extra-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    transition: color 0.35s ease;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    margin: 40px 0 60px;
}

.faq-grid {
    max-width: 800px;
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
    transition: border-color 0.3s, background-color 0.35s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item .question {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-heading);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.35s ease;
}

.faq-item .question i {
    color: var(--accent);
    flex-shrink: 0;
}

.faq-item .answer {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
    padding-left: 32px;
    line-height: 1.6;
    transition: color 0.35s ease;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .extra-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-item .answer {
        padding-left: 0;
    }

    .services-table {
        font-size: 14px;
        min-width: 400px;
    }

    .services-table thead th,
    .services-table tbody td {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .extra-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card .price {
        font-size: 30px;
    }

    .services-table {
        font-size: 13px;
        min-width: 320px;
    }

    .services-table thead th,
    .services-table tbody td {
        padding: 10px 12px;
    }
}