:root {
    --bg: #12100e;
    --bg-elevated: #1c1815;
    --bg-card: #1a1613;
    --hairline: rgba(244, 239, 230, 0.1);
    --text: #f4efe6;
    --text-muted: #a89e8f;
    --amber: #d8a24a;
    --coral: #c9694f;
    --teal: #4fa9a3;
    --focus: #f4efe6;
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --gap: 28px;
    --radius: 14px;
    --side-pad: 20px;
}
* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(216, 162, 74, 0.08), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(79, 169, 163, 0.06), transparent 40%);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--side-pad);
}
a {
    color: inherit;
}
::selection {
    background: var(--amber);
    color: #1a1613;
}
/* ---------- custom cursor ---------- */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    a,
    button,
    .reel-card,
    .tab {
        cursor: none;
    }
}
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--amber);
    transition: opacity .2s ease;
}
.cursor-ring {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244, 239, 230, 0.45);
    transition: width .22s ease, height .22s ease, border-color .22s ease, background-color .22s ease, opacity .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: transparent;
    white-space: nowrap;
    padding: 0;
}
.cursor-ring.is-hover {
    width: 54px;
    height: 54px;
    border-color: rgba(244, 239, 230, 0.7);
}
.cursor-ring.is-hover-label {
    width: 86px;
    height: 86px;
    border-color: var(--amber);
    background: rgba(216, 162, 74, 0.14);
    color: var(--amber);
}
.cursor-dot.is-hidden,
.cursor-ring.is-hidden {
    opacity: 0;
}
/* ---------- draft preview ribbon (admin's own browser only) ---------- */
.draft-ribbon {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--amber);
    color: #1a1613;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    text-align: center;
}
.draft-ribbon code {
    background: rgba(26, 22, 19, 0.15);
    padding: 1px 5px;
    border-radius: 4px;
}
.draft-ribbon button {
    appearance: none;
    border: none;
    background: transparent;
    color: #1a1613;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .draft-ribbon {
        font-size: 11px;
        padding: 8px 14px;
        text-align: left;
    }
}
/* ---------- header ---------- */
.site-header {
    padding: 32px 0 8px;
}
.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: .01em;
    text-transform: uppercase;
}
.logo span {
    color: var(--amber);
}
/* ---------- reels section ---------- */
.reels-section {
    padding: 56px 0 90px;
}
.reels-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1;
    margin: 0 0 40px;
    text-transform: uppercase;
}
.reels-title .t-right {
    color: var(--amber);
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 24px;
}
.tab {
    appearance: none;
    border: 1px solid var(--hairline);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 999px;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tab.is-active {
    color: #1a1613;
    background: var(--tab-color, var(--amber));
    border-color: var(--tab-color, var(--amber));
}
.tab:not(.is-active):hover {
    border-color: rgba(244, 239, 230, 0.35);
    color: var(--text);
}
/* ---------- reel grid ---------- */
.reel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}
.reel-card {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    aspect-ratio: 16 / 10;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    vertical-align: top;
    --mx: 50%;
    --my: 50%;
    opacity: 0;
    transform: translateY(22px);
    animation: reelCardIn .55s cubic-bezier(.19, 1, .22, 1) forwards;
    animation-delay: var(--reel-delay, 0s);
}
@keyframes reelCardIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reel-card__thumb {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .5s ease, filter .5s ease;
    filter: saturate(.85) brightness(.8);
}
.reel-card:hover .reel-card__thumb {
    transform: scale(1.08);
    filter: saturate(1) brightness(.9);
}
.reel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 220px at var(--mx) var(--my), rgba(216, 162, 74, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(18, 16, 14, 0) 40%, rgba(18, 16, 14, 0.85) 100%);
    transition: opacity .3s ease;
}
.reel-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(.9);
    border-radius: 50%;
    border: 1px solid rgba(244, 239, 230, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    background: rgba(18, 16, 14, 0.35);
    backdrop-filter: blur(3px);
}
.reel-card:hover .reel-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.reel-card__play svg {
    width: 16px;
    height: 16px;
    fill: var(--text);
    margin-left: 2px;
}
.reel-card__meta {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.reel-card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}
.reel-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.reel-card__badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(244, 239, 230, 0.35);
    color: var(--text-muted);
    white-space: nowrap;
}
.grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px dashed var(--hairline);
    border-radius: var(--radius);
}
/* ---------- footer ---------- */
.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 28px 0 40px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.copyright {
    font-size: 13px;
    color: var(--text-muted);
}
.footer-contacts {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-contacts a,
.footer-contacts span {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
}
.footer-contacts a:hover {
    color: var(--amber);
}
.footer-contacts .fc-label {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 10px;
    color: rgba(168, 158, 143, 0.6);
    margin-right: 6px;
}
/* ---------- modal / slider ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 9, 8, 0.92);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s ease;
}
.modal.is-open {
    display: flex;
    opacity: 1;
}
.modal-stage {
    width: min(92vw, 1400px);
    height: min(88vh, 787px);
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--hairline);
}
.modal-video {
    width: 100%;
    height: 100%;
}
.modal-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.modal-close,
.modal-arrow {
    position: absolute;
    background: rgba(28, 24, 21, 0.7);
    border: 1px solid var(--hairline);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.modal-close:hover,
.modal-arrow:hover {
    background: rgba(216, 162, 74, 0.18);
    border-color: var(--amber);
}
.modal-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 22px;
    line-height: 1;
}
.modal-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 26px;
}
.modal-arrow--prev {
    left: 20px;
}
.modal-arrow--next {
    right: 20px;
}
.modal-arrow:active {
    transform: translateY(-50%) scale(.92);
}
/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .reel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reels-title {
        font-size: clamp(34px, 8vw, 56px);
    }
}
@media (max-width: 640px) {
    :root {
        --side-pad: 15px;
    }
    .site-header {
      text-align: center;
    }
    .reel-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .reels-title {
        flex-direction: row;
        font-size: clamp(32px, 8vw, 56px);
    }
    .footer-inner,
    .footer-contacts {
        flex-direction: column;
        align-items: center;
    }
    .footer-contacts {
        gap: 5px;
    }
    .modal-arrow {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .modal-arrow--prev {
        left: 8px;
    }
    .modal-arrow--next {
        right: 8px;
    }
    .modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
    .modal-stage {
        width: 96vw;
        height: 54vw;
        max-height: 78vh;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}