:root {
    --forest-950: #0d2519;
    --forest-900: #123321;
    --forest-800: #17452d;
    --forest-700: #1c5737;
    --forest-600: #287147;
    --gold: #d5ad3c;
    --gold-soft: #ecd77f;
    --cream: #f5f0e4;
    --paper: #fbfaf6;
    --ink: #17251c;
    --muted: #657168;
    --line: rgba(18, 51, 33, .14);
    --shadow: 0 24px 64px rgba(13, 37, 25, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
    height: 106px;
    padding: 12px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(251, 250, 246, .96);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 10;
}
.site-header--compact { height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 76px; height: 68px; object-fit: contain; }
.brand span {
    color: var(--forest-900);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.05;
}
.brand small {
    display: block;
    margin-bottom: 6px;
    color: var(--forest-600);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.back-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--forest-700);
    font-size: .88rem;
    font-weight: 750;
    text-decoration: none;
}
.back-link:hover { color: var(--gold); }

.hero {
    min-height: 570px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 76% 48%, rgba(213, 173, 60, .17), transparent 26%),
        linear-gradient(120deg, rgba(9, 30, 19, .98), rgba(23, 69, 45, .95)),
        var(--forest-900);
}
.hero::before, .category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(30deg, transparent 47%, rgba(255,255,255,.09) 48%, transparent 49%),
        linear-gradient(150deg, transparent 47%, rgba(255,255,255,.07) 48%, transparent 49%);
    background-size: 74px 74px;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--gold), #f2dc74, var(--gold));
}
.hero__inner { width: min(1180px, calc(100% - 48px)); position: relative; z-index: 1; }
.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.hero h1, .category-hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6.7vw, 6.4rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .94;
}
.hero h1 em { color: var(--gold-soft); font-weight: 400; }
.hero__copy { max-width: 550px; margin: 30px 0; color: rgba(255,255,255,.76); font-size: 1.08rem; line-height: 1.7; }
.hero__action {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    color: white;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}
.hero__action span { color: var(--gold); font-size: 1.35rem; }
.hero__mark {
    width: 460px;
    height: 460px;
    position: absolute;
    right: max(0px, calc((100vw - 1240px) / 2));
    display: grid;
    place-items: center;
    border: 1px solid rgba(236, 215, 127, .22);
    border-radius: 50%;
    transform: rotate(-8deg);
}
.hero__mark::before, .hero__mark::after { content: ""; position: absolute; border: 1px solid rgba(236, 215, 127, .12); border-radius: 50%; }
.hero__mark::before { inset: 28px; }
.hero__mark::after { inset: 72px; }
.hero__mark span { color: rgba(236, 215, 127, .10); font-family: Georgia, serif; font-size: 15rem; }

.catalog { padding-block: 110px 120px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-heading .eyebrow { color: var(--forest-600); }
.section-heading h2 { margin: 0; color: var(--forest-950); font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 400; }
.section-heading > p { max-width: 480px; margin: 0 0 7px; color: var(--muted); line-height: 1.8; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.category-card {
    min-height: 190px;
    padding: 32px 34px;
    position: relative;
    display: grid;
    grid-template-columns: 42px 68px 1fr 34px;
    gap: 22px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}
.category-card:nth-child(odd) { border-right: 1px solid var(--line); }
.category-card:hover { z-index: 1; color: white; background: var(--forest-800); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card__number { align-self: start; color: var(--gold); font-size: .68rem; font-weight: 850; letter-spacing: .12em; }
.category-card__icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.category-card__icon svg { width: 35px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.category-card:hover .category-card__icon { border-color: rgba(255,255,255,.2); color: var(--gold-soft); }
.category-card__content { display: flex; flex-direction: column; gap: 9px; }
.category-card__content strong { font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.category-card__content small { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-card:hover small { color: rgba(255,255,255,.55); }
.category-card__arrow { color: var(--gold); font-size: 1.5rem; transition: transform .25s ease; }
.category-card:hover .category-card__arrow { transform: translateX(6px); }

.category-hero { min-height: 310px; padding-block: 70px; position: relative; overflow: hidden; color: white; background: linear-gradient(115deg, var(--forest-950), var(--forest-700)); }
.category-hero .section-shell { position: relative; z-index: 1; }
.category-hero h1 { font-size: clamp(2.8rem, 6vw, 5.6rem); }
.category-hero p:last-child { margin: 22px 0 0; color: rgba(255,255,255,.62); font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.video-section { min-height: 520px; padding-block: 80px 120px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-card {
    overflow: hidden;
    background: white;
    border: 1px solid rgba(18, 51, 33, .1);
    box-shadow: 0 10px 34px rgba(13, 37, 25, .06);
    animation: card-in .55s both;
    animation-delay: var(--delay);
}
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.video-card__preview { width: 100%; aspect-ratio: 16 / 9; padding: 0; position: relative; overflow: hidden; border: 0; color: white; cursor: pointer; background: linear-gradient(135deg, #102d1d, #286344); }
.video-card__pattern { position: absolute; inset: 0; opacity: .3; background: radial-gradient(circle at 70% 20%, rgba(236,215,127,.65), transparent 28%), repeating-linear-gradient(125deg, transparent 0 30px, rgba(255,255,255,.04) 31px 32px); transition: transform .5s ease; }
.video-card__preview:hover .video-card__pattern { transform: scale(1.08); }
.play-button { width: 62px; height: 62px; position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.52); border-radius: 50%; background: rgba(8, 26, 17, .35); backdrop-filter: blur(8px); transform: translate(-50%, -50%); transition: background .2s ease, transform .2s ease; }
.play-button span { width: 0; height: 0; margin-left: 4px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid white; }
.video-card__preview:hover .play-button { background: var(--gold); transform: translate(-50%, -50%) scale(1.08); }
.video-card__duration { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 2px; color: white; background: rgba(8, 26, 17, .78); font-size: .7rem; font-weight: 800; }
.video-card__body { padding: 26px 26px 28px; }
.video-card__meta { margin: 0 0 14px; display: flex; justify-content: space-between; color: var(--forest-600); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.video-card__meta span:last-child { color: #8b938d; }
.video-card h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.video-card__description { min-height: 4.5em; margin: 0 0 22px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .88rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.text-loading { color: #a0a8a2; }
.text-button { padding: 0; display: inline-flex; gap: 12px; border: 0; color: var(--forest-700); background: none; cursor: pointer; font-size: .72rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.text-button:hover { color: var(--gold); }

.video-grid--loading[hidden] { display: none; }
.skeleton-card { height: 390px; padding-top: 56%; background: linear-gradient(100deg, #eceee9 25%, #f7f7f3 38%, #eceee9 62%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
.skeleton-card span { height: 14px; margin: 20px 26px 0; display: block; background: rgba(255,255,255,.72); }
.skeleton-card span:nth-child(2) { width: 70%; }
.skeleton-card span:nth-child(3) { width: 52%; }
@keyframes shimmer { to { background-position-x: -300%; } }
.load-sentinel { min-height: 100px; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); font-size: .78rem; }
.load-sentinel:not(.is-loading) .loader { opacity: 0; }
.loader { width: 19px; height: 19px; border: 2px solid rgba(28,87,55,.2); border-top-color: var(--forest-600); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.video-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.video-dialog::backdrop { background: rgba(5, 19, 12, .88); backdrop-filter: blur(5px); }
.video-dialog__close { width: 44px; height: 44px; position: absolute; top: 12px; right: 12px; z-index: 2; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(0,0,0,.35); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.video-dialog__stage { background: #050706; }
.video-dialog video { width: 100%; max-height: 68vh; display: block; }
.video-dialog__content { padding: 34px 40px 42px; }
.video-dialog__content .eyebrow { color: var(--forest-600); }
.video-dialog__content h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; }
.video-dialog__content > p:last-child { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.7; }

.empty-state { padding: 70px 30px; text-align: center; border: 1px solid var(--line); background: white; }
.empty-state__icon { color: var(--gold); font-family: Georgia, serif; font-size: 4rem; }
.empty-state h2 { margin: 8px 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.empty-state p { max-width: 560px; margin: 0 auto; color: var(--muted); line-height: 1.7; }
.site-footer { min-height: 150px; padding: 24px; display: flex; gap: 20px; align-items: center; justify-content: center; color: rgba(255,255,255,.58); background: var(--forest-950); font-size: .76rem; }
.site-footer img { width: 56px; height: 52px; object-fit: contain; filter: saturate(.85); }

@media (max-width: 940px) {
    .hero__mark { right: -220px; opacity: .8; }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .category-card { grid-template-columns: 34px 1fr 28px; }
    .category-card__icon { display: none; }
}
@media (max-width: 720px) {
    .section-shell, .hero__inner { width: min(100% - 30px, 1180px); }
    .site-header { height: 84px; padding: 8px 15px; }
    .brand img { width: 58px; height: 56px; }
    .brand span { font-size: .98rem; }
    .brand small { font-size: .52rem; }
    .back-link { font-size: 0; }
    .back-link span { font-size: 1.4rem; }
    .hero { min-height: 530px; }
    .hero h1 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
    .hero__copy { font-size: .98rem; }
    .hero__mark { width: 360px; height: 360px; right: -230px; }
    .catalog { padding-block: 76px 86px; }
    .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card, .category-card:nth-child(odd) { min-height: 140px; padding: 24px 18px; grid-template-columns: 30px 1fr 24px; border-right: 0; }
    .category-card__content strong { font-size: 1.3rem; }
    .category-hero { min-height: 270px; padding-block: 62px; }
    .video-section { padding-block: 46px 80px; }
    .video-grid { grid-template-columns: 1fr; }
    .skeleton-card:nth-child(n+3) { display: none; }
    .video-dialog__content { padding: 26px 22px 32px; }
    .site-footer { flex-direction: column; gap: 4px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
