/* =========================================
   ivEng — ТЕСТ НА УРОВЕНЬ АНГЛИЙСКОГО
   Шапка и заголовки секций берутся из materials.css / home.css
========================================= */

.lt-hero { padding-bottom: 110px; }

/* Цвета уровней */
.lt-c-a1 { background: #e0f2fe; color: #0369a1; }
.lt-c-a2 { background: #dcfce7; color: #15803d; }
.lt-c-b1 { background: #fef9c3; color: #a16207; }
.lt-c-b2 { background: #ffedd5; color: #c2410c; }
.lt-c-c1 { background: #ede9fe; color: #6d28d9; }
.lt-bg-a1 { background: #38bdf8; }
.lt-bg-a2 { background: #22c55e; }
.lt-bg-b1 { background: #eab308; }
.lt-bg-b2 { background: #f97316; }
.lt-bg-c1 { background: #8b5cf6; }

/* ---------- Карточка теста ---------- */
.lt-section { margin-top: -80px; position: relative; z-index: 2; padding-bottom: 56px; }

.lt-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e3efe7;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(6, 78, 59, 0.10);
}

.lt-h2 { color: #064e3b; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; margin-bottom: 18px; }
.lt-h3 { color: #064e3b; font-size: 21px; font-weight: 800; margin-bottom: 14px; }

/* Старт */
.lt-start { text-align: center; }
.lt-start-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 22px; background: #e6faee; color: #16a34a; font-size: 34px;
}
.lt-rules { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 520px; text-align: left; }
.lt-rules li { display: flex; gap: 10px; padding: 7px 0; color: #355347; line-height: 1.5; }
.lt-rules i { color: #16a34a; margin-top: 2px; }
.lt-last { margin: 18px 0 0; color: #5b6b62; font-size: 15px; }
.lt-link { border: 0; background: none; padding: 0; color: #16a34a; font-weight: 700; text-decoration: underline; }
.lt-noscript { margin-top: 16px; color: #b91c1c; text-align: center; }

/* Вопрос */
.lt-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lt-back {
    width: 38px; height: 38px; flex-shrink: 0;
    border: 1px solid #dcefe3; border-radius: 50%; background: #fff; color: #355347;
}
.lt-back:hover { background: #f1fbf4; }
.lt-progress { flex: 1; height: 10px; background: #edf5f0; border-radius: 99px; overflow: hidden; }
.lt-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 99px; transition: width .3s ease; }
.lt-counter { min-width: 56px; text-align: right; color: #5b6b62; font-weight: 700; font-size: 15px; }

.lt-task { margin: 0 0 6px; color: #6b8074; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lt-question { margin: 0 0 24px; color: #17231d; font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; line-height: 1.4; }
.lt-gap {
    display: inline-block; width: 72px; height: 1em; margin: 0 4px;
    border-bottom: 3px solid #86efac; vertical-align: -2px;
}

.lt-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-option {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px; text-align: left;
    background: #f7fbf8; border: 2px solid #e3efe7; border-radius: 16px;
    color: #17231d; font-size: 17px; font-weight: 600;
    transition: border-color .15s, background .15s, transform .1s;
}
.lt-option:hover { border-color: #86efac; background: #f0fdf4; }
.lt-option:active { transform: scale(.98); }
.lt-option.is-picked { border-color: #16a34a; background: #dcfce7; }
.lt-option-letter {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px; background: #fff; color: #16a34a; font-size: 14px; font-weight: 800;
    border: 1px solid #dcefe3;
}
.lt-dontknow {
    display: block; margin: 18px auto 0; padding: 8px 18px;
    border: 0; background: none; color: #6b8074; font-weight: 600; text-decoration: underline;
}
.lt-dontknow:hover { color: #064e3b; }

/* ---------- Результат ---------- */
.lt-result-head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.lt-badge {
    width: 104px; height: 104px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 30px; font-size: 40px; font-weight: 800;
}
.lt-result-kicker { color: #6b8074; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lt-result-title { margin: 4px 0; color: #064e3b; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; }
.lt-result-title small { color: #6b8074; font-size: .55em; font-weight: 600; }
.lt-result-score { margin: 0; color: #355347; font-weight: 600; }

.lt-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 20px; }
.lt-scale-step {
    padding: 7px 0; text-align: center; border-radius: 10px;
    background: #f1f5f3; color: #8aa096; font-weight: 800; font-size: 14px;
}
.lt-scale-step.is-passed { background: #dcfce7; color: #15803d; }
.lt-scale-step.is-current { background: #16a34a; color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, .3); }

.lt-result-summary { color: #17231d; font-size: 17px; line-height: 1.65; margin-bottom: 22px; }

.lt-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.lt-panel { padding: 20px; background: #f7fbf8; border: 1px solid #e3efe7; border-radius: 18px; }
.lt-panel h3 { margin-bottom: 12px; color: #064e3b; font-size: 17px; font-weight: 800; }
.lt-panel h3 i { color: #16a34a; margin-right: 6px; }
.lt-can { list-style: none; padding: 0; margin: 0 0 12px; }
.lt-can li { padding: 4px 0; color: #17231d; }
.lt-can i { color: #16a34a; }
.lt-next { margin: 0; padding-top: 10px; border-top: 1px dashed #dcefe3; color: #355347; font-size: 15px; }

.lt-bar-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.lt-bar-label { width: 26px; font-weight: 800; color: #355347; font-size: 14px; }
.lt-bar-track { flex: 1; height: 10px; background: #e7efe9; border-radius: 99px; overflow: hidden; }
.lt-bar-fill { display: block; height: 100%; border-radius: 99px; }
.lt-bar-value { width: 34px; text-align: right; color: #5b6b62; font-size: 14px; font-weight: 700; }

/* Рекомендации */
.lt-recs-wrap { margin-bottom: 28px; }
.lt-recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-rec {
    position: relative; display: flex; flex-direction: column; gap: 4px;
    padding: 16px 44px 16px 18px;
    background: #fff; border: 1px solid #dcefe3; border-radius: 16px;
    text-decoration: none; color: #17231d;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.lt-rec:hover { border-color: #86efac; box-shadow: 0 10px 24px rgba(6, 78, 59, .08); transform: translateY(-2px); color: #17231d; }
.lt-rec strong { color: #064e3b; font-size: 16px; }
.lt-rec span { color: #5b6b62; font-size: 14px; line-height: 1.45; }
.lt-rec i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #16a34a; font-size: 18px; }

/* Блок Даны */
.lt-dana {
    margin-bottom: 24px; padding: 26px 24px;
    background: linear-gradient(135deg, #e9f8ef 0%, #fdf6e7 100%);
    border: 1px solid #dcefe3; border-radius: 22px;
}
.lt-dana--page { max-width: 820px; margin: 0 auto; }
.lt-dana-main { display: flex; align-items: center; gap: 22px; }
.lt-dana-photo {
    width: 112px; height: 112px; min-width: 112px; flex-shrink: 0;
    overflow: hidden; border-radius: 50%;
    border: 4px solid #fff; box-shadow: 0 10px 26px rgba(15, 80, 50, .18);
    background: #dcefe3;
}
.lt-dana-photo img { width: 100%; height: auto; position: relative; top: -12px; }
.lt-dana-kicker {
    display: inline-block; margin-bottom: 8px; padding: 4px 12px;
    background: #fff; color: #198754; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.lt-dana-title { margin: 0 0 8px; color: #064e3b; font-size: 22px; font-weight: 800; }
.lt-dana-text { margin: 0; color: #17231d; line-height: 1.6; }
.lt-dana-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    color: #fff; font-weight: 700; text-decoration: none;
    transition: filter .15s, transform .15s;
}
.lt-btn:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.lt-btn-wa { background: #25d366; }
.lt-btn-ig { background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); }
.lt-btn-more { background: #fff; color: #198754; border: 1px solid #cfe9d9; }
.lt-btn-more:hover { color: #146c43; }

/* Разбор */
.lt-review { margin-bottom: 24px; border: 1px solid #e3efe7; border-radius: 18px; background: #f7fbf8; }
.lt-review summary { padding: 16px 20px; cursor: pointer; color: #198754; font-weight: 800; font-size: 17px; }
.lt-review-list { margin: 0; padding: 0 20px 12px 44px; }
.lt-review-list li { padding: 10px 0; border-top: 1px dashed #dcefe3; }
.lt-review-q { display: block; color: #17231d; font-weight: 600; }
.lt-ok-word { color: #16a34a; }
.lt-review-mark { display: block; font-size: 14px; font-weight: 700; margin-top: 2px; }
.is-ok .lt-review-mark { color: #16a34a; }
.is-bad .lt-review-mark { color: #dc2626; }
.lt-review-why { display: block; color: #5b6b62; font-size: 14px; margin-top: 2px; }

.lt-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Уровни CEFR ---------- */
.lt-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.lt-level { padding: 20px 18px; background: #fff; border: 1px solid #e3efe7; border-radius: 18px; }
.lt-level-code {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 12px;
    border-radius: 14px; font-weight: 800; font-size: 18px;
}
.lt-level h3 { color: #064e3b; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.lt-level h3 small { display: block; color: #6b8074; font-size: 13px; font-weight: 600; margin-top: 2px; }
.lt-level ul { margin: 0; padding-left: 18px; color: #355347; font-size: 14px; line-height: 1.5; }
.lt-level li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.lt-faq { max-width: 820px; margin: 0 auto; }
.lt-faq-item { margin-bottom: 10px; background: #fff; border: 1px solid #e3efe7; border-radius: 16px; }
.lt-faq-item summary { padding: 16px 20px; cursor: pointer; color: #064e3b; font-weight: 700; font-size: 17px; }
.lt-faq-item p { margin: 0; padding: 0 20px 16px; color: #355347; line-height: 1.65; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199px) {
    .lt-levels { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .lt-hero { padding-bottom: 90px; }
    .lt-section { margin-top: -70px; }
    .lt-card { padding: 24px 18px; border-radius: 22px; }
    .lt-options { grid-template-columns: 1fr; gap: 10px; }
    .lt-option { padding: 13px 14px; font-size: 16px; }
    .lt-result-head { gap: 16px; }
    .lt-badge { width: 80px; height: 80px; font-size: 30px; border-radius: 22px; }
    .lt-result-grid, .lt-recs { grid-template-columns: 1fr; }
    .lt-levels { grid-template-columns: 1fr 1fr; }
    .lt-dana { padding: 22px 18px; }
    .lt-dana-main { flex-direction: column; text-align: center; gap: 14px; }
    .lt-dana-btns { flex-direction: column; }
    .lt-review-list { padding-left: 36px; padding-right: 14px; }
}

@media (max-width: 420px) {
    .lt-levels { grid-template-columns: 1fr; }
}

/* Нечётное число рекомендаций: последняя на всю ширину */
@media (min-width: 768px) {
    .lt-rec:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
