/* AI-ассистент для руководителя: /agents/ */

.agents-page .case-hero {
    padding-bottom: 56px;
}

.agents-page .hero-title {
    font-size: clamp(1.65rem, 3.1vw, 2.55rem);
    max-width: 16em;
}

.agents-page .hero-subtitle {
    max-width: 46ch;
}

.agents-page .case-hero .btn-outline {
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.agents-page .case-hero .btn-outline:hover {
    background: #f8fafc;
    color: #0b1220;
    border-color: #f8fafc;
}

.agents-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.agents-metrics li {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agents-metrics strong {
    display: block;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.2;
}

.agents-metrics span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.agents-page main > .section {
    padding: 80px 0;
}

.agents-page main > .section:nth-child(even) {
    background: #ffffff;
}

.agents-page main > .section:nth-child(odd) {
    background: var(--bg);
}

.agents-lead {
    margin: -8px 0 28px;
    max-width: 62ch;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.agents-pains {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.agents-pains .case-list-item {
    height: 100%;
}

.agents-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.agents-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.agents-table caption {
    caption-side: bottom;
    padding: 12px 18px 4px;
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: left;
}

.agents-page #results .stats-grid {
    grid-template-columns: 1fr;
}

.agents-table th,
.agents-table td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.agents-table tr:last-child th,
.agents-table tr:last-child td {
    border-bottom: none;
}

.agents-table thead th {
    background: #f8fafc;
    font-size: 0.95rem;
}

.agents-table tbody th {
    width: 28%;
    font-weight: 600;
    color: var(--text);
}

.agents-table td {
    color: var(--text-muted);
}

.agents-table .is-offer {
    background: rgba(29, 110, 245, 0.06);
    color: var(--text);
    font-weight: 700;
}

.agents-table thead .is-offer {
    color: var(--accent);
}

.agents-calc {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.agents-calc-fields {
    display: grid;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.agents-field {
    display: grid;
    gap: 8px;
}

.agents-field label {
    font-weight: 600;
    color: var(--text);
}

.agents-field input[type="number"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.agents-field input[type="number"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.agents-range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agents-range-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.agents-range-row output {
    min-width: 2ch;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.agents-calc-result {
    margin: 0;
    padding: 28px;
    border-radius: var(--radius);
    background: #0b1220;
    color: #e2e8f0;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.45;
}

.agents-calc-result strong {
    color: #fff;
}

.agents-nowrap {
    white-space: nowrap;
}

.agents-calc-note {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.agents-calc-result .btn {
    margin-top: 22px;
}

.agents-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: agents-step;
}

.agents-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.agents-steps li::before {
    counter-increment: agents-step;
    content: counter(agents-step);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 110, 245, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.agents-steps h3 {
    margin: 4px 0 6px;
    font-size: 1.05rem;
}

.agents-steps p {
    margin: 0;
    color: var(--text-muted);
}

.agents-fit {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.agents-fit article {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.agents-fit h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.agents-fit ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.agents-fit li + li {
    margin-top: 8px;
}

.agents-fit .is-limit {
    background: #fff7ed;
    border-color: rgba(180, 83, 9, 0.25);
}

.agents-prices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.agents-price {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.agents-price.is-main {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.agents-price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.agents-price h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.agents-price-value {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.agents-price-value span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.agents-price p {
    margin: 0;
    color: var(--text-muted);
}

.agents-price-note {
    margin: 18px 0 0;
    color: var(--text-muted);
    max-width: 70ch;
}

.agents-cap-icon {
    font-size: 1.35rem;
    line-height: 1;
}

@media (min-width: 720px) {
    .agents-page #results .stats-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .agents-page #results .stat-card:nth-child(-n+3) {
        grid-column: span 2;
    }

    .agents-page #results .stat-card:nth-child(n+4) {
        grid-column: span 3;
    }

    .agents-pains {
        grid-template-columns: 1fr 1fr;
    }

    .agents-calc {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

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

    .agents-fit {
        grid-template-columns: 1.2fr 1fr 1fr;
    }

    .agents-prices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 719px) {
    .agents-page .case-hero {
        padding-top: calc(var(--header-height) + 28px);
    }

    .agents-metrics {
        grid-template-columns: 1fr;
    }

    .agents-page main > .section {
        padding: 56px 0;
    }

    .agents-fit {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agents-page .btn {
        transition: none;
    }
}
