/* GOLDEN-MISTER-3-BUILD-2.1 | sapphire night and champagne gold theme. If this line is missing on the server, an old file is cached. */
:root {
    --night: #050F2B;
    --night-2: #0A1B47;
    --sapphire: #12337F;
    --sapphire-hi: #1D4FC2;
    --gold: #F2B53A;
    --gold-soft: #FFE3A1;
    --gold-deep: #B97A0E;
    --claret: #7A1430;
    --claret-hi: #9E2044;
    --ivory: #FBF7EE;
    --paper: #FFFFFF;
    --line: #E7DFCC;
    --text: #1B2038;
    --muted: #59607A;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius-l: 26px;
    --radius-m: 16px;
    --radius-s: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.72;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 85% -80px, rgba(29, 79, 194, 0.45), rgba(29, 79, 194, 0) 70%),
        radial-gradient(700px 420px at 0% 30%, rgba(122, 20, 48, 0.28), rgba(122, 20, 48, 0) 70%),
        linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sapphire-hi); text-decoration-color: rgba(29, 79, 194, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--claret); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--night); padding: 8px 14px; font-weight: 800; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ===== Header ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(5, 15, 43, 0.86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(242, 181, 58, 0.22);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.header.scrolled { background: rgba(5, 15, 43, 0.96); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 82px; }
.logo { display: flex; flex-shrink: 0; }
.logo-img { width: 283px; height: 48px; object-fit: contain; }

.header-nav { display: flex; gap: 2px; margin: 0 auto; }
.header-nav a {
    position: relative;
    font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ivory); text-decoration: none; padding: 10px 14px;
    transition: color 0.2s ease;
}
.header-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.header-nav a:hover { color: var(--gold-soft); }
.header-nav a:hover::after { transform: scaleX(1); }

.auth { display: flex; gap: 10px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 11px 24px;
    border-radius: var(--radius-s);
    font-family: var(--font-body); font-weight: 800; font-size: 15px; line-height: 1.1;
    letter-spacing: 0.03em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-deep) 100%);
    color: var(--night);
    box-shadow: 0 8px 22px rgba(242, 181, 58, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--primary:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242, 181, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn--ghost { background: transparent; color: var(--gold-soft); box-shadow: inset 0 0 0 2px rgba(242, 181, 58, 0.75); }
.btn--ghost:hover { background: rgba(242, 181, 58, 0.12); color: #FFFFFF; transform: translateY(-2px); }

/* ===== Hero carousel ===== */
.banner-carousel-wrapper { margin-top: 22px; }
.banner-carousel {
    position: relative; width: 100%; aspect-ratio: 3 / 1; min-height: 300px;
    overflow: hidden; background: var(--night-2);
    border-radius: var(--radius-l);
    box-shadow: 0 0 0 1px rgba(242, 181, 58, 0.45), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.banner-carousel__viewport { position: absolute; inset: 0; }
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide__image { position: absolute; inset: 0; }
.banner-slide__image img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: var(--pos, 50%) 50%;
    transform: scale(1.04); transition: transform 7s ease;
}
.banner-slide.is-active .banner-slide__image img { transform: scale(1); }
.banner-slide__image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5, 15, 43, 0.9) 0%, rgba(5, 15, 43, 0.62) 32%, rgba(5, 15, 43, 0.08) 54%, rgba(5, 15, 43, 0) 100%);
}
.banner-slide__content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    max-width: 600px; padding: 0 0 0 56px;
}
.banner-slide__content::before {
    content: "UK Review"; display: inline-block; margin-bottom: 14px;
    padding: 5px 12px; border-radius: var(--radius-s);
    background: rgba(122, 20, 48, 0.85); color: var(--gold-soft);
    font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.banner-slide__title {
    font-family: var(--font-display); font-weight: 800;
    font-size: 50px; line-height: 1.06; color: #FFFFFF;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    margin-bottom: 14px;
}
p.banner-slide__title { font-size: 44px; color: var(--gold-soft); }
.banner-slide__content p:not(.banner-slide__title) {
    font-size: 18px; line-height: 1.55; color: #DCE3F5;
    margin-bottom: 24px; max-width: 27em;
}
.banner-dots {
    position: absolute; z-index: 3; left: 56px; bottom: 22px;
    display: flex; gap: 8px;
}
.banner-dot {
    width: 10px; height: 10px; border: 0; padding: 0; cursor: pointer; border-radius: 999px;
    background: rgba(255, 255, 255, 0.4); transition: width 0.3s ease, background-color 0.3s ease;
}
.banner-dot.is-active { background: var(--gold); width: 36px; }

/* ===== Content ===== */
.container.page-content { padding-top: 30px; padding-bottom: 70px; }
.content-box {
    position: relative;
    background: var(--ivory);
    border-radius: var(--radius-l);
    padding: 54px 60px 64px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.content-box::before {
    content: ""; position: absolute; left: 60px; right: 60px; top: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 0 0 4px 4px;
}
.page-text { counter-reset: section; }
.page-text p { margin: 0 0 18px; }
.page-text > p:first-child {
    font-size: 20px; line-height: 1.68; color: var(--night-2);
}
.page-text > p:first-child::first-letter {
    float: left; font-family: var(--font-display); font-weight: 800;
    font-size: 64px; line-height: 0.9; padding: 6px 10px 0 0; color: var(--claret);
}
/* Signature element: every section heading carries a numbered gold medallion */
.page-text h2 {
    counter-increment: section;
    display: flex; align-items: center; gap: 16px;
    font-family: var(--font-display); font-weight: 800;
    font-size: 36px; line-height: 1.16; color: var(--night-2);
    margin: 68px 0 22px;
    scroll-margin-top: 110px;
}
.page-text h2::before {
    content: counter(section, decimal-leading-zero);
    flex-shrink: 0; display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 50%;
    font-family: var(--font-body); font-size: 16px; font-weight: 800; color: var(--night);
    background: radial-gradient(circle at 32% 28%, var(--gold-soft) 0%, var(--gold) 48%, var(--gold-deep) 100%);
    box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 122, 14, 0.55), 0 8px 18px rgba(185, 122, 14, 0.35);
}
.page-text h3 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 23px; line-height: 1.28; color: var(--claret);
    margin: 30px 0 8px;
}
.page-text ul, .page-text ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.page-text ul li, .page-text ol li { position: relative; padding-left: 38px; margin-bottom: 10px; }
.page-text ul li::before {
    content: ""; position: absolute; left: 8px; top: 0.62em;
    width: 10px; height: 10px; transform: rotate(45deg);
    background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 181, 58, 0.25);
}
.page-text ol { counter-reset: step; }
.page-text ol li { counter-increment: step; }
.page-text ol li::before {
    content: counter(step); position: absolute; left: 0; top: 0.12em;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--sapphire); color: var(--gold-soft); font-size: 14px; font-weight: 800;
}

/* Navigation (table of contents) */
.toc {
    margin: 30px 0 10px;
    background: linear-gradient(135deg, var(--night-2), var(--sapphire));
    border-radius: var(--radius-m);
    color: var(--ivory);
    box-shadow: 0 14px 30px rgba(10, 27, 71, 0.25);
}
.toc__title {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--gold-soft);
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
    content: ""; margin-left: auto; width: 11px; height: 11px;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.toc[open] .toc__title::after { transform: rotate(-135deg) translateY(-3px); }
.toc__icon {
    width: 22px; height: 18px; flex-shrink: 0;
    background:
        linear-gradient(var(--gold), var(--gold)) 0 0 / 22px 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 0 8px / 16px 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 0 16px / 10px 2px no-repeat;
}
.page-text .toc__list { margin: 0; padding: 4px 24px 22px 60px; columns: 2; column-gap: 40px; list-style: decimal; }
.page-text .toc__list li { padding-left: 0; margin-bottom: 8px; break-inside: avoid; color: var(--gold); }
.page-text .toc__list li::before { content: none; }
.toc__list a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.toc__list a:hover { color: var(--gold-soft); text-decoration: underline; }

/* Image beside text */
.media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    margin: 26px 0 30px;
}
.media-row__figure { position: relative; }
.media-row__figure::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px;
    border: 2px solid var(--gold); border-radius: var(--radius-m);
}
.media-row--flip .media-row__figure::before { inset: 14px 14px -14px -14px; }
.media-row__figure img {
    position: relative;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: var(--radius-m);
    background: var(--night-2);
    box-shadow: 0 20px 40px rgba(5, 15, 43, 0.3);
}
.media-row--flip .media-row__figure { order: 2; }
.media-row__text > :first-child { margin-top: 0; }
.media-row__text > :last-child { margin-bottom: 0; }

/* Tables */
.table-scroll {
    overflow-x: auto; margin: 24px 0 32px;
    border-radius: var(--radius-m); background: var(--paper);
    box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(10, 27, 71, 0.08);
}
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 560px; }
.table-scroll th {
    background: var(--night-2); color: var(--gold-soft);
    font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
    text-align: left; padding: 15px 18px;
}
.table-scroll td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll tbody tr:nth-child(even) td { background: #FDF9F0; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { color: var(--claret); font-weight: 800; white-space: nowrap; }

/* Promo strip */
.promo-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    margin: 40px 0; padding: 26px 32px;
    border-radius: var(--radius-m);
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(242, 181, 58, 0.28), rgba(242, 181, 58, 0) 70%),
        linear-gradient(120deg, var(--night-2) 0%, var(--sapphire) 55%, var(--claret) 100%);
    color: #FFFFFF;
    box-shadow: 0 18px 36px rgba(10, 27, 71, 0.3);
}
.page-text .promo-strip__text { margin: 0; }
.promo-strip__text { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.3; }
.promo-strip__text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: #D5DDF3; margin-top: 4px; }

/* FAQ */
.faq { margin-top: 68px; }
.faq .faq__title { margin-top: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
    background: var(--paper); border-radius: var(--radius-m);
    border-left: 4px solid transparent;
    box-shadow: 0 0 0 1px var(--line);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item.open { border-left-color: var(--claret); box-shadow: 0 0 0 1px var(--line), 0 14px 28px rgba(122, 20, 48, 0.12); }
.page-text .faq__q { margin: 0; font-size: inherit; }
.faq__question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; color: var(--night-2); cursor: pointer; text-align: left;
    font-family: var(--font-body); font-weight: 800; font-size: 18px; line-height: 1.4;
    padding: 18px 22px;
}
.faq__question:hover { color: var(--claret); }
.faq__icon {
    position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--night-2);
}
.faq__icon::before, .faq__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 2px; background: var(--gold);
    transform: translate(-50%, -50%); transition: transform 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { overflow: hidden; transition: height 0.3s ease; }
.faq__answer p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.notfound { text-align: center; padding: 40px 0; }

/* ===== Footer ===== */
.footer {
    background: rgba(3, 9, 28, 0.92); border-top: 1px solid rgba(242, 181, 58, 0.25);
    padding: 46px 0 34px; color: #AEB7D3; font-size: 15px; line-height: 1.6;
}
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer__brand img { width: 283px; height: 48px; object-fit: contain; }
.footer__age {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--claret-hi); color: #FFFFFF; font-weight: 800; font-size: 14px;
}
.footer__copy { max-width: 72ch; margin: 0 auto; }
.footer__nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer__nav-list a { color: var(--ivory); text-decoration: none; font-weight: 600; }
.footer__nav-list a:hover { color: var(--gold); text-decoration: underline; }
.footer__copy a { color: var(--gold-soft); }
.footer__legal { font-size: 14px; color: #8C95B5; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .header-nav { display: none; }
    .auth { margin-left: auto; }
    .content-box { padding: 44px 34px 50px; }
    .content-box::before { left: 34px; right: 34px; }
    .media-row { gap: 34px; }
    .banner-slide__title { font-size: 42px; }
    p.banner-slide__title { font-size: 36px; }
}
@media (max-width: 768px) {
    body { font-size: 17px; }
    .container { padding: 0 10px; }
    .header__inner { min-height: 66px; gap: 12px; }
    .logo-img { width: 200px; height: 34px; }
    .auth .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
    .banner-carousel { aspect-ratio: auto; height: 500px; border-radius: var(--radius-m); }
    .banner-slide__image::after { background: linear-gradient(0deg, rgba(5, 15, 43, 0.97) 0%, rgba(5, 15, 43, 0.8) 42%, rgba(5, 15, 43, 0) 66%); }
    .banner-slide__image img { object-position: var(--pos, 50%) 0%; }
    .banner-slide__content { justify-content: flex-end; padding: 0 18px 50px; max-width: none; }
    .banner-slide__content::before { display: none; }
    .banner-slide__title { font-size: 30px; }
    p.banner-slide__title { font-size: 27px; }
    .banner-slide__content p:not(.banner-slide__title) { font-size: 15px; margin-bottom: 14px; }
    .banner-dots { left: 18px; bottom: 18px; }
    .container.page-content { padding-top: 16px; padding-bottom: 46px; }
    .content-box { padding: 30px 16px 36px; border-radius: var(--radius-m); }
    .content-box::before { left: 16px; right: 16px; }
    .page-text h2 { font-size: 27px; margin-top: 50px; gap: 12px; }
    .page-text h2::before { width: 40px; height: 40px; font-size: 14px; }
    .page-text > p:first-child { font-size: 18px; }
    .page-text > p:first-child::first-letter { font-size: 52px; }
    .page-text .toc__list { columns: 1; padding-left: 44px; }
    .media-row { grid-template-columns: 1fr; gap: 30px; }
    .media-row--flip .media-row__figure { order: 0; }
    .media-row__figure::before, .media-row--flip .media-row__figure::before { inset: 10px -8px -10px 8px; }
    .table-scroll table { min-width: 0; font-size: 15px; }
    .table-scroll td:first-child { white-space: normal; }
    .table-scroll th, .table-scroll td { padding: 10px 12px; }
    .promo-strip { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
    .promo-strip__text { font-size: 20px; }
    .faq__question { font-size: 16px; padding: 15px; }
    .faq__answer p { padding: 0 15px 16px; }
    .footer__brand img { width: 200px; height: 34px; }
}
@media (max-width: 420px) {
    .btn--ghost { display: none; }
    .container { padding: 0 8px; }
    .content-box { padding: 26px 12px 30px; }
}
