:root{
    --tr-primary:#e4714f;
    --tr-primary-dark:#cc5f3f;
    --tr-primary-soft:#fff1ee;
    --tr-text:#383838;
    --tr-text-light:#6e6e6e;
    --tr-border:#f3d7cf;
    --tr-white:#ffffff;
    --tr-success:#2e9e6f;
    --tr-success-dark:#22845c;
    --tr-bg:#fcfbfa;
    --tr-shadow:0 10px 30px rgba(56,56,56,0.08);
    --tr-radius-xl:24px;
    --tr-radius-lg:18px;
    --tr-radius-md:14px;
    --tr-radius-sm:10px;
}

[hidden]{
    display:none !important;
}

.tr-placement-test{
    direction:rtl;
    max-width:980px;
    margin:0 auto;
    color:var(--tr-text);
    line-height:1.9;
    font-size:16px;
}

/* HERO */
.tr-placement-hero{
    background:linear-gradient(135deg, #fff7f5 0%, #fff1ee 100%);
    border:1px solid var(--tr-border);
    border-radius:var(--tr-radius-xl);
    padding:40px 28px;
    box-shadow:var(--tr-shadow);
    margin-bottom:28px;
}

.tr-placement-hero__content{
    text-align:center;
}

.tr-placement-hero__eyebrow{
    display:inline-block;
    background:rgba(228,113,79,.12);
    color:var(--tr-primary);
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    margin-bottom:14px;
}

.tr-placement-hero__title{
    font-size:36px;
    line-height:1.4;
    font-weight:900;
    margin:0 0 12px;
    color:var(--tr-text);
}

.tr-placement-hero__desc{
    max-width:760px;
    margin:0 auto 20px;
    color:var(--tr-text-light);
    font-size:17px;
}

.tr-placement-hero__badges{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:24px;
}

.tr-placement-hero__badges span{
    background:#fff;
    border:1px solid var(--tr-border);
    border-radius:999px;
    padding:8px 14px;
    font-size:14px;
    font-weight:700;
    color:var(--tr-text);
}

/* SEO */
.tr-placement-seo{
    margin-bottom:30px;
}

.tr-placement-seo__box{
    background:#fff;
    border:1px solid #eee;
    border-right:5px solid var(--tr-primary);
    border-radius:var(--tr-radius-lg);
    padding:22px;
    margin-bottom:18px;
    box-shadow:0 6px 20px rgba(0,0,0,.03);
}

.tr-placement-seo__box h2{
    margin:0 0 12px;
    font-size:26px;
    line-height:1.5;
}

.tr-placement-seo__grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

.tr-info-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:var(--tr-radius-lg);
    padding:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.03);
}

.tr-info-card h3{
    margin:0 0 8px;
    font-size:18px;
    color:var(--tr-text);
}

.tr-info-card p{
    margin:0;
    color:var(--tr-text-light);
    font-size:15px;
}

/* BUTTONS */
.tr-btn{
    appearance:none;
    border:none;
    outline:none;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:48px;
    padding:12px 22px;
    border-radius:14px;
    cursor:pointer;
    font-weight:800;
    transition:.25s ease;
    font-size:15px;
}

.tr-btn:hover{
    transform:translateY(-1px);
}

.tr-btn--lg{
    min-height:56px;
    padding:14px 30px;
    font-size:17px;
}

.tr-btn--block{
    width:100%;
}

.tr-btn--primary{
    background:var(--tr-primary);
    color:#fff;
    box-shadow:0 10px 20px rgba(228,113,79,.2);
}

.tr-btn--primary:hover{
    background:var(--tr-primary-dark);
}

.tr-btn--ghost{
    background:#f3f3f3;
    color:var(--tr-text);
}

.tr-btn--ghost:hover{
    background:#e9e9e9;
}

.tr-btn--success{
    background:var(--tr-success);
    color:#fff;
}

.tr-btn--success:hover{
    background:var(--tr-success-dark);
}

.tr-btn--outline{
    background:#fff;
    color:var(--tr-primary);
    border:1px solid var(--tr-primary);
}

.tr-btn--outline:hover{
    background:var(--tr-primary-soft);
}

/* QUIZ */
.tr-placement-quiz{
    margin-bottom:28px;
}

.tr-quiz-progress{
    background:#fff;
    border:1px solid #eee;
    border-radius:var(--tr-radius-lg);
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 6px 20px rgba(0,0,0,.03);
}

.tr-quiz-progress__top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.tr-quiz-progress__percent{
    color:var(--tr-primary);
    font-weight:900;
}

.tr-quiz-progress__bar{
    width:100%;
    height:12px;
    background:#f1f1f1;
    border-radius:999px;
    overflow:hidden;
}

.tr-quiz-progress__fill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg, var(--tr-primary) 0%, #f79b7e 100%);
    transition:width .3s ease;
}

.tr-question{
    display:none;
}

.tr-question.is-active{
    display:block;
}

.tr-question__card{
    background:linear-gradient(180deg, #fff 0%, #fffaf8 100%);
    border:1px solid var(--tr-border);
    border-radius:var(--tr-radius-xl);
    padding:24px;
    box-shadow:var(--tr-shadow);
}

.tr-question__number{
    display:inline-block;
    background:var(--tr-primary-soft);
    color:var(--tr-primary);
    border-radius:999px;
    padding:7px 12px;
    font-size:13px;
    font-weight:800;
    margin-bottom:14px;
}

.tr-question__title{
    margin:0 0 20px;
    font-size:24px;
    line-height:1.7;
}

.tr-question__options{
    display:grid;
    gap:12px;
}

.tr-option{
    position:relative;
    display:flex;
    align-items:center;
    gap:12px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:16px;
    padding:14px 16px;
    cursor:pointer;
    transition:.25s ease;
}

.tr-option:hover{
    border-color:var(--tr-primary);
    background:#fff8f6;
}

.tr-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.tr-option__mark{
    width:22px;
    height:22px;
    min-width:22px;
    border-radius:50%;
    border:2px solid #cfcfcf;
    display:inline-block;
    position:relative;
    transition:.2s ease;
}

.tr-option__text{
    font-weight:600;
    color:var(--tr-text);
}

.tr-option input:checked + .tr-option__mark{
    border-color:var(--tr-primary);
    background:var(--tr-primary);
}

.tr-option input:checked + .tr-option__mark::after{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:8px;
    height:8px;
    background:#fff;
    border-radius:50%;
    transform:translate(-50%,-50%);
}

.tr-option input:checked ~ .tr-option__text{
    color:var(--tr-primary);
}

.tr-quiz-nav{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:18px;
}

/* LEAD */
.tr-placement-lead{
    margin-bottom:30px;
}

.tr-lead-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:var(--tr-radius-xl);
    padding:28px;
    box-shadow:var(--tr-shadow);
}

.tr-lead-card__header{
    text-align:center;
    margin-bottom:22px;
}

.tr-lead-card__badge{
    display:inline-block;
    background:var(--tr-primary-soft);
    color:var(--tr-primary);
    padding:8px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    margin-bottom:10px;
}

.tr-lead-card__header h2{
    margin:0 0 8px;
    font-size:28px;
}

.tr-lead-card__header p{
    margin:0;
    color:var(--tr-text-light);
}

.tr-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-bottom:16px;
}

.tr-field label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    font-size:14px;
}

.tr-field input{
    width:100%;
    height:52px;
    border:1px solid #ddd;
    border-radius:14px;
    padding:0 16px;
    font-size:15px;
    color:var(--tr-text);
    background:#fff;
    transition:.2s ease;
}

.tr-field input:focus{
    border-color:var(--tr-primary);
    box-shadow:0 0 0 4px rgba(228,113,79,.1);
    outline:none;
}

.tr-form-message{
    background:#fff7e8;
    color:#8a5a00;
    border:1px solid #f3d08d;
    border-radius:14px;
    padding:12px 14px;
    margin-bottom:14px;
    font-size:14px;
    font-weight:700;
}

/* RESULT */
.tr-placement-result{
    margin-bottom:34px;
}

.tr-result-grid{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:20px;
}

.tr-result-card{
    background:#fff;
    border:1px solid #eee;
    border-radius:var(--tr-radius-xl);
    padding:24px;
    box-shadow:var(--tr-shadow);
}

.tr-result-card--main{
    border-color:var(--tr-border);
}

.tr-result-card--offer{
    background:linear-gradient(180deg, #fff7f4 0%, #fff 100%);
    border-color:var(--tr-border);
}

.tr-result-card__badge{
    display:inline-block;
    background:var(--tr-primary-soft);
    color:var(--tr-primary);
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:800;
    margin-bottom:14px;
}

.tr-result-card__badge--accent{
    background:#ffe7df;
}

.tr-result-card__title{
    margin:0 0 12px;
    font-size:30px;
    line-height:1.5;
}

.tr-result-card__offer-title{
    margin:0 0 12px;
    font-size:26px;
    line-height:1.5;
}

.tr-result-card__score{
    margin:0 0 10px;
    font-size:18px;
    font-weight:900;
    color:var(--tr-primary);
}

.tr-result-card__text{
    margin:0 0 18px;
    color:var(--tr-text-light);
    font-size:16px;
}

/* BEAUTIFUL TABLE */
.tr-score-table-wrap{
    margin:20px 0;
    overflow:auto;
    border-radius:18px;
    border:1px solid #f1d8d1;
}

.tr-score-table{
    width:100%;
    border-collapse:collapse;
    min-width:560px;
    background:#fff;
}

.tr-score-table thead th{
    background:linear-gradient(90deg, var(--tr-primary) 0%, #f08a67 100%);
    color:#fff;
    padding:14px 16px;
    text-align:right;
    font-size:14px;
    font-weight:800;
}

.tr-score-table tbody td{
    padding:14px 16px;
    border-top:1px solid #f3ecea;
    font-size:14px;
    color:var(--tr-text);
}

.tr-score-table tbody tr:nth-child(even){
    background:#fff8f6;
}

.tr-score-table tbody tr:hover{
    background:#fff1ee;
}

/* OFFER LIST */
.tr-offer-list{
    list-style:none;
    padding:0;
    margin:0 0 18px;
}

.tr-offer-list li{
    position:relative;
    padding-right:24px;
    margin-bottom:10px;
    color:var(--tr-text);
    font-weight:600;
}

.tr-offer-list li::before{
    content:"✓";
    position:absolute;
    right:0;
    top:0;
    color:var(--tr-success);
    font-weight:900;
}

.tr-offer-actions{
    display:grid;
    gap:10px;
}

/* FAQ */
.tr-placement-faq{
    background:#fff;
    border:1px solid #eee;
    border-radius:var(--tr-radius-xl);
    padding:28px;
    box-shadow:0 6px 20px rgba(0,0,0,.03);
    margin-bottom:30px;
}

.tr-placement-faq h2{
    margin:0 0 20px;
    font-size:28px;
}

.tr-faq-list{
    display:grid;
    gap:14px;
}

.tr-faq-item{
    background:#fafafa;
    border:1px solid #f0f0f0;
    border-radius:16px;
    padding:18px;
}

.tr-faq-item h3{
    margin:0 0 8px;
    font-size:18px;
    color:var(--tr-text);
}

.tr-faq-item p{
    margin:0;
    color:var(--tr-text-light);
}

/* RESPONSIVE */
@media (max-width: 991px){
    .tr-placement-seo__grid,
    .tr-result-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 767px){
    .tr-placement-test{
        font-size:15px;
    }

    .tr-placement-hero{
        padding:28px 18px;
    }

    .tr-placement-hero__title{
        font-size:28px;
    }

    .tr-placement-hero__desc{
        font-size:15px;
    }

    .tr-placement-seo__box h2,
    .tr-lead-card__header h2,
    .tr-placement-faq h2{
        font-size:22px;
    }

    .tr-question__title{
        font-size:20px;
    }

    .tr-result-card__title{
        font-size:24px;
    }

    .tr-result-card__offer-title{
        font-size:22px;
    }

    .tr-form-grid{
        grid-template-columns:1fr;
    }

    .tr-quiz-nav{
        flex-direction:column;
    }

    .tr-btn,
    .tr-btn--lg{
        width:100%;
    }
}
