.teya-tax-module {
    margin-top: 55px;
}

.teya-tax-module > h2 {
    font-size: 30px;
    margin: 0 0 24px;
    color: #222;
}

.teya-tax-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,.035);
}

.teya-tax-card h3 {
    font-size: 24px;
    margin: 0 0 14px;
}

.teya-tax-card > p {
    color: #666;
    line-height: 1.6;
}

.teya-tax-card form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 25px;
}

.teya-tax-card label {
    font-weight: 700;
}

.teya-tax-card input[type="number"] {
    width: 100%;
    max-width: 420px;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 17px;
    background: #fafafa;
}

.teya-tax-card input:focus {
    outline: 2px solid #ffca28;
    border-color: #ffca28;
}

.teya-tax-card button {
    background: #ffca28;
    color: #222;
    border: 0;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.teya-tax-card button:hover {
    background: #f2bd18;
}

.teya-tax-result {
    margin-top: 24px;
    padding: 24px;
    background: #fff2bf;
    border-radius: 16px;
}

.teya-tax-result strong {
    display: block;
    font-size: 36px;
    color: #222;
}

.teya-tax-result p {
    margin-bottom: 0;
    color: #555;
}

.teya-tax-card details {
    margin-top: 24px;
    padding: 18px 20px;
    background: #f7f7f5;
    border-radius: 12px;
}

.teya-tax-card summary {
    font-weight: 700;
    cursor: pointer;
}

.teya-tax-card details p {
    color: #555;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .teya-tax-module > h2 {
        font-size: 25px;
    }

    .teya-tax-card {
        padding: 20px;
    }

    .teya-tax-card h3 {
        font-size: 21px;
    }

    .teya-tax-result strong {
        font-size: 30px;
    }
}
/* TEYA: пояснение расчёта стоимости */
.teya-cost-explanation {
    margin-top: 22px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #ffca28;
    border-radius: 16px;
    overflow: hidden;
}

.teya-cost-explanation summary {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
}

.teya-cost-explanation summary:hover {
    background: #fffaf0;
}

.teya-cost-explanation__body {
    padding: 0 24px 24px;
    color: #555;
    line-height: 1.7;
}

.teya-cost-explanation__body ul {
    padding-left: 22px;
}

.teya-cost-explanation__body li {
    margin-bottom: 10px;
}

.teya-cost-explanation__body strong {
    color: #222;
}

@media (max-width: 600px) {
    .teya-cost-explanation summary {
        padding: 17px;
        font-size: 15px;
    }

    .teya-cost-explanation__body {
        padding: 0 17px 18px;
    }
}
/* TEYA UNIVERSAL CALCULATOR */
.teya-universal {
    margin: 55px 0;
    color: #252525;
}

.teya-universal__heading {
    margin-bottom: 26px;
}

.teya-universal__eyebrow {
    display: inline-block;
    color: #9b7600;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.teya-universal__heading h2 {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
}

.teya-universal__heading p {
    color: #666;
    line-height: 1.7;
    max-width: 750px;
}

.teya-universal__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.teya-universal__panel,
.teya-universal__result {
    border-radius: 22px;
    padding: 30px;
    min-width: 0;
}

.teya-universal__panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 12px 35px rgba(0,0,0,.035);
}

.teya-universal__panel label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 9px;
}

.teya-universal__panel select,
.teya-universal__panel input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    margin: 0 0 22px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
    color: #252525;
    font-size: 16px;
    font-family: inherit;
}

.teya-universal__panel select:focus,
.teya-universal__panel input:focus {
    outline: 2px solid #ffca28;
    border-color: #ffca28;
}

.teya-universal__panel [hidden] {
    display: none !important;
}

.teya-universal__hint {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

.teya-universal__result {
    background: #262626;
    color: #fff;
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.teya-universal__result .teya-universal__eyebrow {
    color: #ffca28;
}

.teya-universal__amount {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
    margin: 8px 0 12px;
}

.teya-universal__result > p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 26px;
}

.teya-universal__breakdown {
    border-top: 1px solid rgba(255,255,255,.15);
    padding-top: 10px;
}

.teya-universal__breakdown > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.teya-universal__breakdown span {
    color: #bbb;
}

.teya-universal__breakdown strong {
    color: #fff;
    text-align: right;
}

.teya-universal__result details {
    margin-top: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    padding: 17px 19px;
}

.teya-universal__result summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffca28;
}

.teya-universal__result details p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .teya-universal__layout {
        grid-template-columns: 1fr;
    }

    .teya-universal__result {
        position: static;
    }
}

@media (max-width: 600px) {
    .teya-universal {
        margin: 35px 0;
    }

    .teya-universal__panel,
    .teya-universal__result {
        padding: 22px;
        border-radius: 18px;
    }

    .teya-universal__breakdown > div {
        font-size: 13px;
    }
}
/* Скрытие отключённых блоков */
#teya1cCalculator[hidden] {
    display: none !important;
}

/* TEYA: руководство пользователя налогового калькулятора */
.teya-calculator-guide {
    margin: 0 0 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-left: 4px solid #ffca28;
    border-radius: 16px;
    overflow: hidden;
    color: #252525;
}

.teya-calculator-guide > summary {
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 750;
    cursor: pointer;
}

.teya-calculator-guide > summary:hover {
    background: #fffaf0;
}

.teya-calculator-guide__body {
    padding: 0 24px 22px;
    line-height: 1.7;
    color: #555;
}

.teya-calculator-guide__body h3 {
    margin: 18px 0 8px;
    color: #252525;
    font-size: 16px;
}

.teya-calculator-guide__body p {
    margin: 8px 0 12px;
}

.teya-calculator-guide__body ul {
    padding-left: 22px;
}

.teya-calculator-guide__body li {
    margin: 6px 0;
}

@media (max-width: 600px) {
    .teya-calculator-guide > summary {
        padding: 17px;
        font-size: 15px;
    }

    .teya-calculator-guide__body {
        padding: 0 17px 18px;
    }
}


/* TEYA-PAYMENTS-DETAILS */
.teya-universal__payments {
    margin-top: 24px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.teya-universal__payments h3 {
    margin: 0 0 16px;
    color: #202124;
    font-size: 18px;
    line-height: 1.4;
}

.teya-universal__payment-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f2;
}

.teya-universal__payment-row span {
    color: #50545a;
    font-size: 14px;
    line-height: 1.5;
}

.teya-universal__payment-row strong {
    flex-shrink: 0;
    color: #30343b;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
}

.teya-universal__payment-row:first-of-type strong {
    color: #9a7200;
}

.teya-universal__payments-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: #fff8e5;
    border-radius: 8px;
    color: #665522;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .teya-universal__payments {
        padding: 15px;
    }

    .teya-universal__payment-row {
        gap: 10px;
    }

    .teya-universal__payment-row span,
    .teya-universal__payment-row strong {
        font-size: 13px;
    }
}
/* END TEYA-PAYMENTS-DETAILS */

/* TEYA-HIDDEN-FIX */
.teya-universal [hidden] {
    display: none !important;
}
/* END TEYA-HIDDEN-FIX */