@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #071018;
    --bg-raise: #101a27;
    --ink: #f4f7fb;
    --muted: #93a4b8;
    --faint: #6d8094;
    --line: rgba(228, 236, 246, 0.1);
    --gold: #e6b15a;
    --gold-ink: #2a1d08;
    --sky: #9fd4ff;
    --good: #8ed0aa;
    --danger: #ffb4b4;
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Manrope, "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(230, 177, 90, 0.16), transparent 55%),
        radial-gradient(800px 480px at 100% 0%, rgba(80, 150, 210, 0.18), transparent 50%),
        var(--bg);
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 16, 24, 0.82);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(230, 177, 90, 0.45);
}
.brand strong { display: block; font-size: 18px; letter-spacing: 0.04em; }
.brand span { display: block; max-width: 46ch; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.header-side { display: flex; align-items: center; gap: 14px; }
.rate-line { color: var(--muted); font-size: 12px; text-align: right; }
.rate-line b { color: var(--ink); font-weight: 700; }
.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(142, 208, 170, 0.35);
    color: var(--good);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(142, 208, 170, 0.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(142, 208, 170, 0); }
}

.hero { padding: 34px 0 8px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.hero h1 { max-width: 16ch; font-size: clamp(34px, 5vw, 58px); line-height: 0.98; }
.lede { max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.55; margin: 16px 0 0; }
.rules {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 26px 0 0;
}
.rules li {
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: rgba(16, 26, 39, 0.76);
    border: 1px solid var(--line);
}
.rules b { display: block; font-size: 18px; margin-bottom: 6px; }
.rules span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.dock {
    margin-top: 0;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(16, 26, 39, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
label { display: block; }
label span {
    display: block;
    margin-bottom: 6px;
    color: var(--faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
select, input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #0b141e;
    border-radius: 12px;
    padding: 12px 12px;
    outline: none;
}
select:focus, input:focus, textarea:focus { border-color: rgba(159, 212, 255, 0.7); }
.sync-line { margin: 12px 2px 0; color: var(--faint); font-size: 13px; }

.catalog { padding: 22px 0 10px; }
.catalog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.catalog-head h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 28px; }
.catalog-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 30, 44, 0.95), rgba(10, 18, 28, 0.98));
    border: 1px solid var(--line);
    text-align: left;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(230, 177, 90, 0.45); }
.photo {
    position: relative;
    height: 210px;
    background:
        linear-gradient(160deg, rgba(230, 177, 90, 0.18), transparent 40%),
        #0c1622;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.badges, .photo-meta {
    position: absolute;
    display: flex;
    gap: 6px;
}
.badges { top: 12px; left: 12px; }
.photo-meta { bottom: 12px; left: 12px; right: 12px; justify-content: space-between; }
.chip {
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(6, 12, 18, 0.78);
    font-size: 12px;
    font-weight: 700;
}
.chip.good { color: var(--good); }
.chip.warn { color: var(--gold); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.2; }
.trim { margin: 4px 0 0; color: var(--muted); font-size: 13px; min-height: 18px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.specs div { padding-top: 8px; border-top: 1px solid var(--line); }
.specs dt { color: var(--faint); font-size: 11px; }
.specs dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.meter { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--gold)); }
.meter-label { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.price-row small { color: var(--muted); display: block; margin-bottom: 3px; }
.price-row strong { font-size: 26px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.card-cta {
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    background: var(--gold);
    color: var(--gold-ink);
    font-weight: 800;
}

.state {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
}
.skeleton {
    height: 360px;
    border-radius: 24px;
    background: linear-gradient(90deg, #101a27 25%, #182636 37%, #101a27 63%);
    background-size: 400% 100%;
    animation: shine 1.2s infinite;
}
@keyframes shine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.method { padding: 10px 0 40px; }
.method h2 { font-size: 28px; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.steps article {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(16, 26, 39, 0.55);
}
.steps em { color: var(--gold); font-style: normal; font-weight: 800; font-size: 13px; }
.steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 24px; }
.site-footer h2 { font-size: 24px; margin-bottom: 8px; }
.fine { color: var(--faint); font-size: 13px; line-height: 1.55; }
.lead-form, .modal-form { display: grid; gap: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-form button, .primary, .ghost {
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    border: 1px solid transparent;
}
.primary { background: var(--gold); color: var(--gold-ink); }
.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.form-note { min-height: 18px; font-size: 13px; color: var(--good); }

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 24px 16px;
    background: rgba(3, 7, 12, 0.78);
    overflow: auto;
}
.modal.open { display: grid; place-items: start center; }
.modal-card {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    width: min(980px, 100%);
    margin: 20px auto;
    padding: 18px;
    border-radius: 28px;
    background: #0d1723;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.modal-top { display: flex; justify-content: space-between; gap: 16px; }
.kicker { color: var(--sky); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.modal-top h3 { font-size: clamp(26px, 3vw, 36px); margin-top: 4px; }
.icon-btn {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    font-size: 24px;
    line-height: 1;
}
.modal-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; margin-top: 14px; }
.stage { position: relative; height: 360px; border-radius: 18px; overflow: hidden; background: #09131c; }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(7, 16, 24, 0.8);
    color: white;
    font-size: 24px;
}
.nav-btn.prev { left: 10px; }
.nav-btn.next { right: 10px; }
.counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(7, 16, 24, 0.8);
    font-size: 12px;
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; }
.thumbs button { padding: 0; border-radius: 8px; border: 2px solid transparent; background: none; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 84px; height: 58px; object-fit: cover; border-radius: 6px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fact-grid div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.fact-grid span { display: block; color: var(--faint); font-size: 11px; }
.tape { margin-top: 8px; display: grid; gap: 7px; font-size: 14px; }
.tape div, .tape p { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.tape .total { padding-top: 8px; border-top: 1px solid var(--line); font-size: 18px; }
.tape .total b { color: var(--gold); }
.note { color: var(--faint); font-size: 12px; line-height: 1.45; }
.credit { margin-top: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.credit h4 { margin: 0 0 8px; font-size: 14px; }
.credit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; }
.pay b { color: var(--sky); font-size: 16px; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions a, .actions button { flex: 1; text-align: center; text-decoration: none; }

@media (max-width: 980px) {
    .filters, .grid, .steps, .rules, .footer-grid, .modal-layout { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .header-inner { align-items: flex-start; padding: 12px 0; }
    .rate-line { display: none; }
    .hero h1 { max-width: none; }
    .rules, .filters, .grid, .steps, .footer-grid, .modal-layout, .form-row, .credit-grid { grid-template-columns: 1fr; }
    .stage { height: 230px; }
    .header-side { flex-direction: column; align-items: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
