:root {
    --container: 1080px;
    --bg: #070707;
    --text: #f5f1eb;
    --gold: #c9a86a;
    --green: #4f5b4e;
    --card-bg: rgba(0, 0, 0, 0.54);
    --card-hover: rgba(201, 168, 106, 0.16);
    --muted: rgba(245, 241, 235, 0.72);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 375px;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

summary {
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.luxury-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.luxury-bg svg {
    width: 100%;
    height: 100%;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

/* Header */

.header {
    position: relative;
    z-index: 12;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.12);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__link {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header__link span:last-child {
    color: var(--gold);
}

.header__age {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

/* Hero */

.hero {
    padding: 44px 16px 42px;
}

.hero__wrapper {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.hero__wrapper > span {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(201, 168, 106, 0.13);
    border-radius: var(--radius);
    color: var(--gold);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.hero h1 {
    max-width: 780px;
    font-size: 42px;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 610px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Cards */

.grid-card {
    padding: 0 16px 48px;
}

.grid-card__wrapper {
    display: grid;
    gap: 12px;
}

.grid-card__row {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-areas:
        "brand offer"
        "rating rating"
        "score action";
    overflow: hidden;
    background: var(--card-bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.18s ease;
}

.grid-card__row:hover {
    background: var(--card-hover);
}

.grid-card__brand {
    grid-area: brand;
    position: relative;
    min-height: 104px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card__offer {
    grid-area: offer;
    min-height: 104px;
    padding: 14px 12px 14px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-card__rating {
    grid-area: rating;
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.grid-card__score {
    grid-area: score;
    min-height: 74px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card__action {
    grid-area: action;
    min-height: 74px;
    padding: 12px 14px 12px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
}

.grid-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    background: var(--gold);
    border-radius: var(--radius);
    color: #111;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.grid-card__logo {
    width: 78px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-card__logo svg {
    width: 100%;
    height: 100%;
}

.grid-card__logo span {
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-card__label {
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.grid-card__title {
    margin-bottom: 5px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.grid-card__bonus {
    color: rgba(245, 241, 235, 0.88);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.grid-card__stars {
    display: flex;
    gap: 2px;
}

.grid-card__stars svg {
    width: 15px;
    height: 15px;
    fill: var(--gold);
}

.grid-card__votes {
    color: rgba(245, 241, 235, 0.7);
    font-size: 12px;
    line-height: 1.2;
}

.grid-card__note {
    width: 100%;
    color: rgba(245, 241, 235, 0.52);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.grid-card__score strong {
    color: var(--text);
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.grid-card__btn {
    min-width: 124px;
    padding: 11px 14px;
    background: var(--gold);
    border-radius: var(--radius);
    color: #111;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.grid-card__action span:last-child {
    color: rgba(245, 241, 235, 0.7);
    font-size: 11px;
    line-height: 1.2;
    text-align: right;
}

/* FAQ */

.faq {
    padding: 0 16px 56px;
}

.faq__wrapper {
    max-width: 860px;
}

.faq details {
    overflow: hidden;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.faq details + details {
    margin-top: 10px;
}

.faq summary {
    position: relative;
    padding: 16px 52px 16px 16px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 26px;
    height: 26px;
    background: var(--gold);
    border-radius: 999px;
    color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transform: translateY(-50%);
    transition: 0.25s ease;
}

.faq details[open] {
    background: var(--card-hover);
}

.faq details[open] summary::after {
    content: "−";
    background: #9d7a3d;
}

.faq p {
    padding: 0 16px 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Text page */

.text-content {
    padding: 48px 16px 64px;
}

.text-content__inner {
    max-width: 820px;
}

.text-content__lead {
    margin-bottom: 34px;
    color: rgba(245, 241, 235, 0.78);
    font-size: 17px;
    line-height: 1.65;
}

.text-content h2 {
    margin: 34px 0 12px;
    color: var(--text);
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.text-content h3 {
    margin: 28px 0 10px;
    color: var(--text);
    font-size: 19px;
    line-height: 1.3;
}

.text-content p {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

.text-content strong {
    color: var(--text);
    font-weight: 700;
}

.text-content a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-content ul,
.text-content ol {
    margin: 14px 0 24px;
    padding-left: 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.text-content ul {
    list-style: disc;
}

.text-content ol {
    list-style: decimal;
}

.text-content li + li {
    margin-top: 7px;
}

.text-content blockquote {
    margin: 28px 0;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.38);
    border-radius: var(--radius);
    color: rgba(245, 241, 235, 0.82);
    font-size: 16px;
    line-height: 1.65;
}

.text-content small {
    display: block;
    margin-top: 30px;
    color: rgba(245, 241, 235, 0.48);
    font-size: 12px;
    line-height: 1.5;
}

/* Footer */

.footer {
    padding: 40px 16px 32px;
}

.footer__inner {
    text-align: center;
}

.footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 28px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.footer__logo span:last-child {
    color: var(--gold);
}

.footer__top p {
    max-width: 440px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    padding-top: 26px;
}

.footer__nav a {
    color: rgba(245, 241, 235, 0.75);
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.footer__nav a:hover {
    color: var(--gold);
}

.footer__reg {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(201, 168, 106, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer__reg-title {
    color: rgba(245, 241, 235, 0.5);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__reg-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}

.footer__reg-links a {
    color: rgba(245, 241, 235, 0.75);
    font-size: 13px;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.footer__reg-links a:hover {
    color: var(--gold);
}

.footer__copy {
    margin-top: 28px;
    color: rgba(245, 241, 235, 0.46);
    font-size: 12px;
    line-height: 1.5;
}

/* Tablet */

@media (min-width: 641px) {
    .header {
        padding: 16px 20px;
    }

    .header__wrapper {
        gap: 20px;
    }

    .header__link {
        font-size: 20px;
    }

    .header__age {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .hero {
        padding: 50px 20px 48px;
    }

    .hero__wrapper {
        min-height: 320px;
    }

    .hero h1 {
        font-size: clamp(40px, 7vw, 62px);
    }

    .hero p {
        font-size: 18px;
    }

    .grid-card {
        padding: 0 20px 64px;
    }

    .grid-card__row {
        grid-template-columns: 140px 1fr 120px;
        grid-template-areas:
            "brand offer score"
            "rating rating action";
    }

    .grid-card__brand,
    .grid-card__offer,
    .grid-card__score {
        min-height: 128px;
    }

    .grid-card__brand {
        padding: 14px;
    }

    .grid-card__offer {
        padding: 16px 14px;
    }

    .grid-card__rating {
        padding: 14px 16px;
        justify-content: flex-start;
    }

    .grid-card__score {
        padding: 14px;
    }

    .grid-card__action {
        min-height: auto;
        padding: 14px 16px;
        align-items: flex-end;
    }

    .grid-card__logo {
        width: 118px;
        height: 58px;
    }

    .grid-card__logo span {
        font-size: 21px;
    }

    .grid-card__label {
        font-size: 11px;
    }

    .grid-card__title {
        font-size: 20px;
    }

    .grid-card__bonus {
        font-size: 16px;
    }

    .grid-card__stars svg {
        width: 16px;
        height: 16px;
    }

    .grid-card__note {
        width: auto;
    }

    .grid-card__score strong {
        font-size: 42px;
    }

    .faq {
        padding: 0 20px 72px;
    }

    .faq summary {
        padding: 18px 56px 18px 18px;
        font-size: 18px;
    }

    .faq summary::after {
        right: 18px;
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .faq p {
        padding: 0 18px 20px;
        font-size: 16px;
    }

    .text-content {
        padding: 62px 20px 82px;
    }

    .text-content__lead {
        font-size: 18px;
    }

    .text-content h2 {
        font-size: 28px;
    }

    .text-content p,
    .text-content ul,
    .text-content ol {
        font-size: 16px;
    }

    .footer {
        padding: 48px 20px 36px;
    }

    .footer__top {
        padding-bottom: 32px;
    }

    .footer__logo {
        font-size: 24px;
    }

    .footer__nav {
        gap: 18px 28px;
    }

    .footer__copy {
        margin-top: 32px;
    }
}

/* Desktop */

@media (min-width: 901px) {
    .hero {
        padding: 58px 20px 48px;
    }

    .hero__wrapper {
        min-height: 360px;
    }

    .grid-card__row {
        grid-template-columns: 1.1fr 1.35fr 1fr 0.55fr 0.9fr;
        grid-template-areas: "brand offer rating score action";
        min-height: 138px;
    }

    .grid-card__brand,
    .grid-card__offer,
    .grid-card__rating,
    .grid-card__score,
    .grid-card__action {
        min-height: 138px;
        padding: 16px;
    }

    .grid-card__rating {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .grid-card__action {
        align-items: center;
    }

    .grid-card__logo {
        width: 176px;
        height: 82px;
    }

    .grid-card__logo span {
        font-size: 24px;
    }

    .grid-card__votes {
        margin-top: 8px;
    }

    .grid-card__note {
        width: auto;
        margin-top: 8px;
    }
}
