/* Tarify page — дополнительные стили для /tarify/ */

.tarify-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding: 1rem 0 0;
}

.tarify-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.tarify-hero__lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.tarify-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tarify-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: var(--primary-pale, #eef2ff);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tarify-block {
    margin: 4rem 0;
}

.tarify-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin: 0 0 0.75rem;
    text-align: center;
}

.tarify-block__lead {
    text-align: center;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

.tarify-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tarify-feature {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color, #e5e7eb);
}

.tarify-feature svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.tarify-feature h3 {
    font-size: 1.0625rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.tarify-feature p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

.tarify-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.tarify-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.tarify-table th,
.tarify-table td {
    padding: 0.9rem 1rem;
    text-align: center;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.tarify-table thead th {
    background: var(--bg-secondary, #f9fafb);
    font-weight: 600;
    color: var(--text);
}

.tarify-table tbody td:first-child,
.tarify-table thead th:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
    padding-left: 1.25rem;
}

.tarify-table__featured {
    background: var(--primary-pale, #eef2ff) !important;
    color: var(--primary);
    font-weight: 600;
}

.tarify-table tbody tr:last-child td {
    border-bottom: none;
}

.tarify-note {
    max-width: 820px;
    margin: 1.5rem auto 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary, #f9fafb);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.tarify-choose {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tarify-choose__item {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color, #e5e7eb);
    position: relative;
}

.tarify-choose__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.tarify-choose__item h3 {
    font-size: 1.0625rem;
    margin: 0 0 0.5rem;
}

.tarify-choose__item p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}

.tarify-faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.tarify-faq__item {
    background: white;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border-color, #e5e7eb);
    padding: 0;
    overflow: hidden;
}

.tarify-faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    font-size: 0.9375rem;
}

.tarify-faq__item summary::-webkit-details-marker {
    display: none;
}

.tarify-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    transition: transform 0.2s;
}

.tarify-faq__item[open] summary::after {
    content: '−';
}

.tarify-faq__item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.tarify-faq__item p a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .tarify-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarify-choose {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .tarify-features-grid {
        grid-template-columns: 1fr;
    }

    .tarify-block {
        margin: 2.5rem 0;
    }
}
