/* Тарифы: общий стиль для публичной /price/ и ЛК (/lk/tariffs) */

.kt {
    --kt-text: #14171c;
    --kt-muted: #5f6772;
    --kt-blue: #008aff;
    --kt-blue-dark: #0070d1;
    --kt-green: #2fb24c;
    --kt-green-dark: #25963e;
    --kt-violet: #8a3ffc;
    --kt-violet-dark: #7230d6;

    color: var(--kt-text);
    font-family: inherit;
    box-sizing: border-box;
}

.kt *,
.kt *::before,
.kt *::after {
    box-sizing: inherit;
}


/* Заголовок страницы */

.kt-hero {
    max-width: 820px;
    margin: 24px auto 48px;
    text-align: center;
}

.kt-hero__title {
    margin: 0 0 16px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--kt-text);
}

.kt-hero__subtitle {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--kt-muted);
}


/* Сетка карточек */

.kt-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    padding-top: 16px; /* место под плашки над карточками */
}

.kt-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px 20px 28px;
    border-radius: 24px;
    background: #f1f7ff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kt-plan:hover {
    box-shadow: 0 12px 32px rgba(16, 38, 72, 0.08);
}

.kt-plan--demo {
    background: #eefaf0;
}

.kt-plan--standard {
    background: #e8f3ff;
}

.kt-plan--pro {
    background: linear-gradient(180deg, #f3edff 0%, #eaf1ff 100%);
    box-shadow: inset 0 0 0 2px #a78bfa;
}

.kt-plan--pro .kt-plan__label {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.kt-plan--enterprise {
    background: #f3efff;
}

.kt-plan--cloud {
    background: #f1f2ff;
}

.kt-plan--box {
    background: #f5efff;
}

.kt-plan__label {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 14px;
    background: var(--kt-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}

.kt-plan__head {
    min-height: 96px;
}

.kt-plan__name {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--kt-text);
    text-align: left;
}

.kt-plan__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--kt-muted);
}


/* Ключевые показатели */

.kt-plan__metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0 24px;
}

.kt-metric strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.kt-metric span {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--kt-text);
}


/* Цена */

.kt-plan__price {
    margin-bottom: 20px;
    min-height: 72px;
}

.kt-price {
    display: block;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.kt-price--text {
    font-size: 28px;
    line-height: 1.25;
}

.kt-price__note {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--kt-muted);
}


/* Кнопки */

.kt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0 0 28px;
    padding: 12px 20px;
    border: 0;
    border-radius: 26px;
    color: #fff !important;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.kt-btn:hover {
    box-shadow: 0 6px 16px rgba(16, 38, 72, 0.18);
}

.kt-btn--green {
    background: var(--kt-green);
}

.kt-btn--green:hover {
    background: var(--kt-green-dark);
}

.kt-btn--blue {
    background: var(--kt-blue);
}

.kt-btn--blue:hover {
    background: var(--kt-blue-dark);
}

.kt-btn--pro {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
}

.kt-btn--pro:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #1d4ed8 100%);
}

.kt-btn--violet {
    background: var(--kt-violet);
}

.kt-btn--violet:hover {
    background: var(--kt-violet-dark);
}


/* Возможности */

.kt-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kt-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #9aa1ab;
    background: none;
}

.kt-features li:last-child {
    margin-bottom: 0;
}

.kt-features li.is-on {
    color: var(--kt-text);
}

.kt-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.kt-features li.is-on .kt-icon {
    padding: 2px;
    border-radius: 50%;
    color: #fff;
    background: var(--kt-blue);
}

.kt-plan--demo .kt-features li.is-on .kt-icon {
    background: var(--kt-green);
}

.kt-plan--cloud .kt-features li.is-on .kt-icon,
.kt-plan--box .kt-features li.is-on .kt-icon {
    background: var(--kt-violet);
}


/* Подробное сравнение */

.kt-compare {
    margin: 40px 0 0;
}

.kt-compare__toggle {
    display: table;
    margin: 0 auto;
    padding: 14px 24px;
    border: 1px solid #dfe4ea;
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.kt-compare__toggle::-webkit-details-marker {
    display: none;
}

.kt-compare__toggle::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 0 3px 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.kt-compare[open] .kt-compare__toggle::after {
    margin-bottom: -1px;
    transform: rotate(-135deg);
}

.kt-compare__scroll {
    margin-top: 24px;
    overflow-x: auto;
}

.kt-compare__table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

.kt-compare__table th,
.kt-compare__table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e6e9ee;
    text-align: center;
    vertical-align: middle;
}

.kt-compare__table th:first-child,
.kt-compare__table td:first-child {
    width: 32%;
    text-align: left;
}

.kt-compare__table thead th {
    font-size: 15px;
    font-weight: 700;
}

.kt-compare__group td {
    padding-top: 24px;
    background: none;
    font-size: 16px;
    font-weight: 700;
    text-align: left !important;
}

.kt-yes .kt-icon {
    padding: 2px;
    border-radius: 50%;
    color: #fff;
    background: var(--kt-blue);
}

.kt-no {
    color: #b5bbc4;
}


/* Частые вопросы */

.kt-faq {
    max-width: 860px;
    margin: 56px auto 0;
}

.kt-faq__title {
    margin: 0 0 20px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    color: var(--kt-text);
}

.kt-faq__item {
    border-bottom: 1px solid #e6e9ee;
}

.kt-faq__item summary {
    position: relative;
    padding: 18px 40px 18px 0;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.kt-faq__item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--kt-blue);
}

.kt-faq__item[open] summary::after {
    content: "−";
}

.kt-faq__item p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--kt-muted);
}


/* Ноутбуки и планшеты */

@media (max-width: 1100px) {
    .kt-plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 28px;
    }
}


/* Телефоны */

@media (max-width: 640px) {
    .kt-hero {
        margin: 8px auto 32px;
    }

    .kt-hero__title {
        font-size: 32px;
    }

    .kt-hero__subtitle {
        font-size: 16px;
    }

    .kt-plans {
        grid-template-columns: 1fr;
    }

    .kt-plan__head,
    .kt-plan__price {
        min-height: 0;
    }

    .kt-price {
        font-size: 34px;
    }

    .kt-faq__title {
        font-size: 24px;
    }
}
