@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');
@import "assets/css/normalize.css";
@import "assets/css/home.css";

/* Content links must be readable: override .main__content a{color:#fff}
   for links inside text blocks (buttons/cards keep their own classes). */
.main__content p a:not([class]),
.main__content li a:not([class]) {
    color: #205685;
    text-decoration: underline;
}

/* Related-guides tiles (bottom of pillar pages) */
.related-guides { margin-top: 44px; }
.related-guides__heading {
    font-size: 22px; font-weight: 700; color: #134a68; margin-bottom: 14px;
}
.related-guides__grid { display: flex; gap: 14px; flex-wrap: wrap; }
.main__content a.related-guides__item {
    flex: 1 1 200px; display: block; box-sizing: border-box;
    background: #f4f7f9; border: 1px solid #dfe7ec; border-left: 4px solid #134a68;
    border-radius: 10px; padding: 16px 18px;
    color: #134a68; font-weight: 600; font-size: 17px; line-height: 1.35;
    text-decoration: none; transition: background .2s, color .2s;
}
.main__content a.related-guides__item span { display: block; font-weight: 400; font-size: 14px; color: #5b7386; margin-top: 4px; transition: color .2s; }
.main__content a.related-guides__item:hover { background: #134a68; color: #cfc5b2; }
.main__content a.related-guides__item:hover span { color: #9fb8c9; }

/* History trust pages */
.history-ribbon {
    display: flex; align-items: baseline; gap: 16px;
    background: #134a68; border-radius: 10px; padding: 14px 20px; margin: 18px 0 22px;
}
.history-ribbon__years { font-family: 'Teko', sans-serif; font-size: 40px; line-height: 1; color: #cfc5b2; }
.history-ribbon__place { font-size: 16px; color: #9fb8c9; }
.history-timeline { border-left: 3px solid #134a68; margin: 18px 0 22px; padding-left: 0; }
.history-timeline__item { position: relative; padding: 0 0 18px 22px; }
.history-timeline__item:last-child { padding-bottom: 4px; }
.history-timeline__item::before {
    content: ''; position: absolute; left: -8px; top: 5px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #cfc5b2; border: 3px solid #134a68;
}
.history-timeline__year { font-weight: 700; color: #134a68; font-size: 18px; }
.history-timeline__text { color: #333; margin-top: 2px; }

/* === UI/UX audit batch === */

/* P0-1: mobile menu was #cfc5b2 on #f8fbfb (1.64:1) */
@media (max-width: 768px) {
    .menu-cnt .sidenav ul li a { color: #134a68; font-size: 18px; padding: 12px 20px; display: block; }
}
@media (min-width: 769px) and (max-width: 992px) {
    .sidenav ul li a { font-size: 13px; }
}

/* P0-2: Play Now — 2.1:1 contrast + 31px tap target */
.content__popular-bk-main__btn a {
    background: #12813f; border-color: #12813f;
    padding: 12px 24px; font-weight: 700;
}

/* P1-3: tables on small screens — narrow cells + right shadow hint */
@media (max-width: 500px) {
    .table-main { width: max-content; min-width: 100%; }
    .table-main td { padding: 8px 10px; font-size: 14px; }
    .table-wrap {
        background: linear-gradient(270deg, rgba(19,74,104,.18), transparent 24px) right/24px 100% no-repeat scroll, #fff;
    }
}

/* P1-4: FAQ palette → brand; kill sticky hover on touch */
.faq-question { color: #134a68; }
.faq-toggle { color: #134a68; }
.faq-item.active .faq-header { background: #f4f7f9; }
@media (hover: none) {
    .faq-header:hover .faq-question, .faq-question:hover { color: #134a68; }
}

/* P1-7: longread typography */
@media (max-width: 480px) {
    .main__content p, .main__content li { font-size: 16px; line-height: 1.6; }
    .main__content h2 { font-size: 22px; }
    .main__content h3 { font-size: 18px; }
}
@media (min-width: 992px) {
    .main__content > .container > p { max-width: 760px; }
}

/* P1-1: top-pick strip */
.top-pick {
    display: flex; align-items: center; gap: 12px;
    background: #f4f7f9; border: 1px solid #dfe7ec; border-left: 4px solid #12813f;
    border-radius: 10px; padding: 10px 14px; margin: 14px 0;
}
.top-pick img { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.top-pick__text { flex: 1; min-width: 0; font-size: 15px; color: #134a68; line-height: 1.35; }
.top-pick__text strong { color: #134a68; }
.main__content a.top-pick__btn {
    flex: none; background: #12813f; color: #fff; font-weight: 700; text-transform: uppercase;
    border-radius: 6px; padding: 12px 18px; font-size: 14px;
}

/* P1-2: sticky bottom CTA (mobile) */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    display: none; align-items: center; gap: 10px;
    background: #134a68; padding: 10px 14px;
    box-shadow: 0 -3px 12px rgba(0,0,0,.25);
}
.sticky-cta.show { display: flex; }
.sticky-cta__text { flex: 1; min-width: 0; color: #fff; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.sticky-cta__btn {
    flex: none; background: #12813f; color: #fff; font-weight: 700; text-transform: uppercase;
    border-radius: 6px; padding: 12px 18px; font-size: 14px;
}
@media (min-width: 769px) { .sticky-cta.show { display: none; } }

/* P1-9: visible breadcrumbs (history pages) */
.crumbs { font-size: 13px; color: #5b7386; margin: 0 0 12px; }
.main__content .crumbs a { color: #134a68; text-decoration: none; }
.main__content .crumbs a:hover { text-decoration: underline; }
.crumbs span.sep { margin: 0 6px; color: #9fb8c9; }

/* P1-8: footer nav */
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; margin: 14px 0; }
.footer__nav-col { min-width: 140px; }
.footer__nav-col p { color: #cfc5b2; font-weight: 700; text-transform: uppercase; font-size: 13px; margin-bottom: 8px; }
.footer__nav-col a { display: block; color: #9fb8c9; font-size: 14px; padding: 3px 0; }
.footer__nav-col a:hover { color: #fff; }
.footer__rg { color: #9fb8c9; font-size: 13px; margin-top: 10px; }

/* === Final mobile QA (диз-приёмка) === */

/* P0-1: футер прижат к кромке + тап-таргеты */
.footer-container { padding: 0 30px; }
.footer a { display: inline-block; padding: 6px 0; }
.footer .footer__nav-col a { display: block; }

/* P1-1: FAQ — паддинг ответа + брендовый toggle вместо красного */
.faq-answer { padding: 0 10px 25px; }
.faq-item.active .faq-toggle, .faq-toggle { color: #134a68; }

/* P1-2: маркер списка не съезжает под многострочную ссылку */
.main__content li a { display: inline; }

/* P1-3: честные звёзды — частичная заливка по рейтингу */
.stars-track { position: relative; width: 75px; height: 15px; display: inline-block; }
.stars-track::before {
    content: ''; position: absolute; inset: 0;
    background: url(/assets/img/star.svg) repeat-x; background-size: 15px 15px;
    filter: grayscale(1) opacity(.35);
}
.stars-fill {
    position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden;
    background: url(/assets/img/star.svg) repeat-x; background-size: 15px 15px;
}

/* P1-4: карточки «In testing» отличимы от рейтинга */
.testing-badge {
    display: inline-block; background: #fff3d6; color: #7a5c12;
    border: 1px solid #e0b64f; border-radius: 5px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    padding: 3px 10px; margin-top: 4px; letter-spacing: .5px;
}
.content__popular-bk-main__btn.btn--secondary a {
    background: #fff; border: 2px solid #134a68; color: #134a68;
}
