/* ==========================================================================
   Vancore — Premium Gaming Portal
   Глубокий графит · холодный белый · приглушённое золото и красное вино
   ========================================================================== */

:root {
    --c-bg: #0A0B0E;
    --c-text: #ECEEF2;
    --c-muted: #9AA1AD;
    --c-border: rgba(255, 255, 255, .08);
    --c-border-strong: rgba(255, 255, 255, .18);
    --c-surface: rgba(255, 255, 255, .03);

    --f-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --header-h: 56px;
    --gutter: 24px;
    --max-w: 1400px;
    --radius: 18px;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --t: .25s var(--ease);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Атмосферный фон: тёплое свечение слева, холодно-алое справа */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1000px 560px at 15% -10%, rgba(201, 169, 107, .09), transparent 60%),
        radial-gradient(1000px 560px at 85% -10%, rgba(176, 85, 85, .09), transparent 60%),
        radial-gradient(1200px 700px at 50% 115%, rgba(255, 255, 255, .04), transparent 65%);
}

/* Desktop: строгий один экран */
@media (min-width: 961px) and (min-height: 640px) {
    body { overflow: hidden; }
}
/* Низкие окна: позволяем прокрутку, чтобы ничего не обрезалось */
@media (min-width: 961px) and (max-height: 639.5px) {
    body { overflow: auto; }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: fixed;
    top: -48px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    background: #C9A96B;
    color: #15100A;
    font-weight: 700;
    border-radius: 8px;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(10, 11, 14, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.logo { display: flex; align-items: center; }
.logo svg {
    display: block;
    height: 30px;
    width: auto;
    transition: filter var(--t);
}
.logo:hover svg { filter: brightness(1.15); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color var(--t), background-color var(--t);
}
.nav__link:hover { color: var(--c-text); background: var(--c-surface); }

.header__social { display: flex; gap: 16px; }
.header__social a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color var(--t);
}
.header__social a:hover { color: var(--c-text); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 38px;
    margin-left: auto;
    border: 1px solid var(--c-border-strong);
    border-radius: 8px;
    background: var(--c-surface);
    padding: 0 10px;
    transition: border-color var(--t);
}
.burger:hover { border-color: rgba(201, 169, 107, .5); }
.burger__line {
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    border-top: 1px solid var(--c-border);
    background: rgba(12, 13, 17, .97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav {
    max-width: var(--max-w);
    margin-inline: auto;
    padding: 8px var(--gutter) 14px;
}
.mobile-nav__list { display: grid; }
.mobile-nav__link {
    display: block;
    padding: 12px 2px;
    border-bottom: 1px solid var(--c-border);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color var(--t);
}
.mobile-nav__link:hover { color: var(--c-text); }
.mobile-nav__social { display: flex; gap: 18px; padding-top: 12px; }
.mobile-nav__social a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color var(--t);
}
.mobile-nav__social a:hover { color: var(--c-text); }

/* ---------- Hero ---------- */
.hero {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(14px, 2.4vh, 28px);
    width: 100%;
    max-width: var(--max-w);
    margin-inline: auto;
    padding: clamp(20px, 3.5vh, 40px) var(--gutter) clamp(18px, 3vh, 32px);
    min-height: 0;
}

.hero__head {
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.4vh, 14px);
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.hero__eyebrow::before,
.hero__eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--c-border-strong);
}

.hero__brand {
    margin: 0;
    display: flex;
    justify-content: center;
}

.hero__brand svg {
    display: block;
    width: clamp(280px, 34vw, 560px);
    height: auto;
}

/* ---------- Направления ---------- */
.directions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 2vw, 22px);
    min-height: 0;
}

.direction {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-surface);
    transition: border-color var(--t), box-shadow var(--t);
    animation: rise .7s var(--ease) both;
}
.direction:nth-child(2) { animation-delay: .12s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.direction:hover {
    border-color: var(--acc-soft);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

/* собственная идентичность каждого направления */
.direction--gold {
    --acc: #C9A96B;
    --acc-soft: rgba(201, 169, 107, .4);
    --acc-ink: #15100A;
    --glow: rgba(201, 169, 107, .16);
}
.direction--red {
    --acc: #B05555;
    --acc-soft: rgba(176, 85, 85, .45);
    --acc-ink: #FFF5F5;
    --glow: rgba(176, 85, 85, .16);
}

.direction__body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.direction__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.85) contrast(1.05) brightness(.72);
    transform: scale(1.02);
    transition: transform .8s var(--ease), filter var(--t);
}

/* центрирование ключевого содержимого каждого арта */
.direction--gold .direction__bg { object-position: 60% 25%; }
.direction--red .direction__bg { object-position: 50% 55%; }
.direction:hover .direction__bg {
    transform: scale(1.06);
    filter: saturate(1) contrast(1.05) brightness(.8);
}

/* деликатное свечение в цвет направления */
.direction__body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(70% 55% at 78% 8%, var(--glow), transparent 70%);
    opacity: .6;
    transition: opacity var(--t);
    pointer-events: none;
}
.direction:hover .direction__body::before { opacity: 1; }

/* затемнение для читаемости */
.direction__body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 11, 14, .18) 0%, rgba(10, 11, 14, .5) 55%, rgba(10, 11, 14, .93) 100%);
    pointer-events: none;
}

.direction__content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: clamp(16px, 2.6vh, 28px);
}

.direction__tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--acc);
    padding: 4px 10px;
    border: 1px solid var(--acc-soft);
    border-radius: 999px;
    background: rgba(10, 11, 14, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.direction__title {
    margin: 0;
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(22px, 3.4vh, 34px);
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--c-text);
}

.direction__text {
    margin: 0;
    color: #B9BFC9;
    font-size: 13px;
    line-height: 1.5;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.direction__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px clamp(16px, 2.6vh, 28px);
    border-top: 1px solid var(--c-border);
    background: rgba(10, 11, 14, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--f-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: transform var(--t), filter var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--acc, #C9A96B); outline-offset: 3px; }

.btn--primary {
    background: var(--acc);
    color: var(--acc-ink);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}
.btn--primary:hover { filter: brightness(1.07); }

.btn--ghost {
    border-color: var(--c-border-strong);
    color: var(--c-text);
    background: var(--c-surface);
}
.btn--ghost:hover { border-color: var(--acc-soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-border); }

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    max-width: var(--max-w);
    margin-inline: auto;
    padding: 14px var(--gutter);
}

.footer__copy {
    margin: 0;
    color: var(--c-muted);
    font-size: 12px;
}

.footer__links { display: flex; gap: 16px; }
.footer__links a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color var(--t);
}
.footer__links a:hover { color: var(--c-text); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav,
    .header__social { display: none; }
    .burger { display: flex; }

    .hero { grid-template-rows: auto auto; }
    .directions { grid-template-columns: 1fr; }
    .direction { min-height: 320px; }
    .direction__text { -webkit-line-clamp: 3; }
}

@media (max-width: 430px) {
    :root { --gutter: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .direction { animation: none; }
    .direction__bg,
    .btn,
    .burger__line { transition: none; }
}
