/* GOLDEN-GENIE-BUILD-3.2 — if this line is missing from style.css on the server, the old file is still cached */

:root {
    --pearl: #FAF7FC;
    --white: #FFFFFF;
    --mist: #F1EAF8;
    --line: #E4DAEF;
    --ink: #24163A;
    --ink-soft: #594D6E;
    --amethyst: #6A3AAA;
    --amethyst-deep: #4E2785;
    --lagoon: #0E7F7C;
    --gold: #D6A030;
    --gold-light: #F2CF7A;
    --gold-deep: #8F5E14;
    --night: #1F1335;
    --night-2: #2C1B4A;

    --font-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Mulish", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --radius-s: 10px;
    --radius-m: 18px;
    --arch: 50% 50% 18px 18px / 30% 30% 18px 18px;
    --shadow: 0 18px 40px -24px rgba(58, 30, 100, 0.45);
    --header-h: 76px;
}

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

html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 620px at -8% -6%, #EFE2FF 0, rgba(239, 226, 255, 0) 62%),
        radial-gradient(900px 560px at 108% 4%, #FFF0D2 0, rgba(255, 240, 210, 0) 58%),
        radial-gradient(1000px 700px at 50% 120%, #E3F4F2 0, rgba(227, 244, 242, 0) 60%),
        var(--pearl);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

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

a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--amethyst); }

:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--night); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: var(--white); }

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

/* ---------- buttons ---------- */
.btn,
.content-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 22px;
    border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary,
.content-btn {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, #C58A1E 100%);
    color: var(--night);
    border-color: #C58A1E;
}
.btn--primary:hover,
.content-btn:hover { background: var(--gold-light); color: var(--night); }
.btn--outline { background: transparent; color: var(--amethyst-deep); border-color: var(--amethyst); }
.btn--outline:hover { background: var(--amethyst); color: var(--white); }

/* ---------- header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 252, 0.92);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header.scrolled { box-shadow: 0 10px 30px -24px rgba(36, 22, 58, 0.6); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { flex: 0 0 auto; }
.logo-img { width: 199px; height: 52px; }

.header-menu { flex: 1 1 auto; display: flex; justify-content: center; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav__item a {
    display: block; padding: 8px 12px; border-radius: 999px;
    color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.main-nav__item a:hover { background: var(--mist); color: var(--amethyst-deep); }

.auth { display: flex; gap: 10px; }
.auth--menu { display: none; }

.header-burger {
    display: none; width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; position: relative;
}
.header-burger span,
.header-burger span::before,
.header-burger span::after {
    position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s ease, opacity .2s ease;
}
.header-burger span { top: 20px; }
.header-burger span::before { left: 0; top: -6px; }
.header-burger span::after { left: 0; top: 6px; }
.header-burger.active span { background: transparent; }
.header-burger.active span::before { transform: translateY(6px) rotate(45deg); }
.header-burger.active span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero carousel ---------- */
.banner-carousel-wrapper { padding: 16px 0 6px; }
.banner-carousel { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.banner-carousel__viewport {
    position: relative; overflow: hidden;
    width: 100%; height: clamp(420px, 34vw, 470px);
    border-radius: 28px; background: var(--mist);
    box-shadow: var(--shadow);
}
.banner-carousel__viewport::after {
    content: ""; position: absolute; inset: 10px; border-radius: 20px; pointer-events: none;
    border: 1px solid rgba(255, 236, 190, 0.85);
}
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide__image,
.banner-slide__image picture,
.banner-slide__image img { display: block; width: 100%; height: 100%; }
.banner-slide__image img { object-fit: cover; object-position: 78% 40%; }

/* the arch-topped panel is the signature element of the page */
.banner-slide__content {
    position: absolute; left: 4%; bottom: 0;
    width: min(440px, 44%);
    padding: 64px 34px 30px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(214, 160, 48, 0.55); border-bottom: 0;
    border-radius: 220px 220px 0 0 / 90px 90px 0 0;
    text-align: center;
}
.banner-slide__title {
    margin: 0 0 12px;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(26px, 2.6vw, 36px); line-height: 1.18; color: var(--ink);
}
.banner-slide__content p:not(.banner-slide__title) { margin: 0 0 20px; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.banner-dots { display: flex; justify-content: center; gap: 10px; padding: 16px 0 0; }
.banner-dot {
    width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.banner-dot::after {
    content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 4px; border-radius: 4px; background: var(--line);
}
.banner-dot.is-active::after { background: var(--gold); }

/* ---------- content ---------- */
.page-content { padding: 18px 16px 56px; }
.content-box { max-width: none; margin: 0; }

/* key facts ribbon */
.facts {
    list-style: none; margin: 0 0 22px; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.fact {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 999px 22px 22px 999px;
}
.fact__num {
    flex: 0 0 auto; min-width: 78px; padding: 10px 12px; border-radius: 999px; text-align: center;
    background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--night);
    font-family: var(--font-display); font-size: 21px; line-height: 1;
}
.fact__label { font-size: 14.5px; line-height: 1.35; font-weight: 700; color: var(--ink-soft); }

/* content blocks */
.block {
    position: relative; margin: 0 0 18px; padding: 38px 44px;
    background: var(--white); border: 1px solid var(--line); border-radius: 26px;
    box-shadow: 0 14px 34px -30px rgba(58, 30, 100, 0.55);
}
.block--tint { background: linear-gradient(135deg, #F6EEFF 0%, #FFFFFF 55%, #EAF7F5 100%); }
.block--split { display: grid; grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.block--split > h2 { margin: 0 !important; }
.block--legit {
    background: linear-gradient(135deg, #FFF8E6 0%, #FFFFFF 60%);
    border: 2px solid var(--gold);
}
.block--legit > h2::before {
    content: ""; display: block; width: 46px; height: 54px; margin-bottom: 14px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
    clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%);
}
.block--intro {
    background: linear-gradient(120deg, #FFFFFF 0%, #FFFFFF 58%, #F4EAFF 100%);
    padding: 40px 48px 34px;
}
.block--intro p { max-width: none; }
.block--intro .center-btn { justify-content: flex-start; margin-bottom: 0; }
.block--faq { background: linear-gradient(180deg, #FFFFFF 0%, #FAF5FF 100%); }

.page-text h2 {
    margin: 0 0 20px;
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(27px, 3vw, 36px); line-height: 1.2; color: var(--ink);
}
.page-text h2::after {
    content: ""; display: block; width: 56px; height: 2px; margin-top: 14px; background: var(--gold);
}
.page-text p { margin: 0 0 18px; max-width: 78ch; }
.block__body > :last-child, .media-row__text > :last-child { margin-bottom: 0; }
.block__body .table-wrap:last-child { margin-bottom: 0; }
.block--intro > p:first-child {
    font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 25px); line-height: 1.5; color: var(--ink);
}
.page-text strong { color: var(--ink); }

.center-btn { display: flex; justify-content: center; margin: 30px 0 8px; }

/* media rows: text beside an arch-topped picture */
.media-row {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 44px; align-items: center; margin: 0 0 20px;
}
.media-row--reverse .media-row__img { order: 2; }
.media-row__img { margin: 0; }
.media-row__img picture { display: block; }
.media-row__img img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--arch);
    border: 3px solid var(--white);
    box-shadow: var(--shadow), 0 0 0 1px var(--gold);
}
.media-row__text p:last-child { margin-bottom: 0; }

/* tables: plain table in its own scroll container, no JS needed */
.table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white);
}
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.table-wrap th,
.table-wrap td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--mist); color: var(--amethyst-deep); font-weight: 800; font-size: 14.5px; border-bottom: 2px solid var(--gold); }
.table-wrap--split thead th:first-child { background: #E4F4F2; color: var(--lagoon); }
.table-wrap--split thead th:last-child { background: #F6E9F3; color: #8A2E62; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: #FCFAFE; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap--split td:first-child { font-weight: 400; }
.table-wrap--split th:first-child,
.table-wrap--split td:first-child { border-right: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq { margin-top: 0; }
.faq .faq__title { margin-top: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-body); font-size: 17.5px; font-weight: 800; color: var(--ink); line-height: 1.4;
}
.faq__question:hover .faq__q { color: var(--amethyst-deep); }
.faq__icon {
    flex: 0 0 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gold); position: relative;
}
.faq__icon::before,
.faq__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--gold-deep);
    transform: translate(-50%, -50%); transition: transform .2s 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; height: 0; transition: height .25s ease; }
.faq__answer p { margin: 0 4px 20px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer {
    margin-top: 12px;
    background: linear-gradient(180deg, #F3ECFB 0%, #EDE3F8 100%);
    color: var(--ink-soft); border-top: 1px solid var(--line);
    position: relative;
}
.footer::before {
    content: ""; position: absolute; left: 50%; top: -1px; width: min(420px, 60%); height: 3px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__inner { display: grid; gap: 22px; padding: 44px 20px 36px; justify-items: center; text-align: center; }
.footer__logo img { width: 199px; height: 52px; }
.footer__nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer__nav-link { color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.footer__nav-link:hover { color: var(--amethyst-deep); background: var(--white); }
.footer__copy { display: flex; gap: 14px; align-items: flex-start; max-width: 780px; margin: 0; font-size: 14px; line-height: 1.6; text-align: left; }
.footer__age {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-deep); background: var(--white); font-weight: 800;
}

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 40px 0; }
.not-found h1 { font-family: var(--font-display); font-weight: 400; font-size: 40px; margin: 0 0 12px; }
.not-found .actions { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .main-nav__item a { padding: 8px 9px; font-size: 14.5px; }
}

@media (max-width: 960px) {
    .header-burger { display: block; }
    .auth--bar { display: none; }
    .header-menu {
        position: absolute; left: 0; right: 0; top: 100%;
        display: none; flex-direction: column; gap: 14px; padding: 16px 20px 22px;
        background: var(--pearl); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(36, 22, 58, .5);
    }
    .header-menu--open { display: flex; }
    .main-nav__list { flex-direction: column; }
    .main-nav__item a { padding: 12px 10px; font-size: 16px; }
    .auth--menu { display: flex; }
    .auth--menu .btn { flex: 1 1 0; }

    .media-row,
    .media-row--reverse { grid-template-columns: 1fr; gap: 22px; }
    .block--split { grid-template-columns: 1fr; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-row--reverse .media-row__img { order: 0; }
}

@media (max-width: 760px) {
    body { font-size: 16.5px; }
    .banner-carousel { padding: 0 10px; }
    .container { padding: 0 10px; }
    .block, .block--intro { padding: 26px 18px; border-radius: 20px; }
    .facts { grid-template-columns: 1fr; gap: 8px; }
    .fact { padding: 10px 14px; }
    .banner-carousel__viewport::after { display: none; }
    .banner-carousel__viewport { height: auto; border-radius: 22px; background: var(--white); }
    .banner-slide { position: relative; display: none; }
    .banner-slide.is-active { display: block; }
    .banner-slide__image,
    .banner-slide__image picture { height: auto; }
    .banner-slide__image img { height: auto; aspect-ratio: 4 / 3; object-position: 76% 30%; }
    .banner-slide__content {
        position: relative; left: auto; width: auto;
        margin-top: -54px; padding: 50px 22px 24px;
        background: var(--white); border: 0;
        border-radius: 200px 200px 0 0 / 56px 56px 0 0;
    }
    .page-content { padding: 14px 10px 40px; }
    .footer__copy { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* block spacing fixes */
.page-text .block--intro p,
.page-text .block__body p { max-width: none; }
.block > :last-child,
.block > .table-wrap:last-child,
.block > .media-row:last-child { margin-bottom: 0; }
