/* ==========================================================
   main.css — aikochetkov.ru
   Общие стили: reset, переменные, фон, nav, footer, утилиты
   Подключать на КАЖДОЙ странице сайта
   ========================================================== */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS VARIABLES ── */
:root {
    --gold:       #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark:  #A07830;
    --gold-glow:  rgba(201,168,76,0.3);
    --bg:         #080808;
    --bg-card:    #0F0F0F;
    --bg-card2:   #141414;
    --text:       #F0EAD6;
    --muted:      #8A8070;
    --border:     rgba(201,168,76,0.15);
    --font-h:     'Cormorant Garamond', Georgia, serif;
    --font-b:     'Manrope', system-ui, sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; font-size: 18px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-b);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Сетка-фон */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.028) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ── ORBS ── */
.orb { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.orb-1 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(201,168,76,0.22), transparent 70%); top: -180px; right: 0; }
.orb-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(100,60,160,0.18), transparent 70%); bottom: 10%; left: -120px; }

/* ── LAYOUT ── */
.wrap    { max-width: 1380px; margin: 0 auto; padding: 0 56px; position: relative; z-index: 1; }
.section { padding: 104px 0; position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
.eyebrow {
    display: block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 18px;
}
.h2 {
    font-family: var(--font-h);
    font-size: clamp(2.1rem, 3.2vw, 3.2rem);
    font-weight: 700; line-height: 1.15;
    color: var(--text); margin-bottom: 16px;
}
.h2 em { font-style: italic; color: var(--gold-light); }
.sub { font-size: 1rem; color: var(--muted); line-height: 1.82; max-width: 580px; margin-bottom: 52px; }

/* ── BUTTONS ── */
.btn-gold {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: #080808; font-family: var(--font-b); font-size: 0.92rem; font-weight: 700;
    padding: 16px 36px; border-radius: 3px; text-decoration: none;
    transition: box-shadow .3s, transform .2s;
}
.btn-gold:hover { box-shadow: 0 8px 28px var(--gold-glow); transform: translateY(-2px); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 0.92rem; font-weight: 500; text-decoration: none;
    border: 1px solid var(--border); padding: 15px 30px; border-radius: 3px;
    transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold); }
.btn-ghost svg { width: 14px; height: 14px; fill: currentColor; }

/* ── ANIMATIONS ── */
@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

.anim { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================
   NAV
   ========================================================== */
nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(8,8,8,0.90);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1380px; margin: 0 auto; padding: 0 56px;
    display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.nav-logo {
    font-family: var(--font-h); font-size: 1.55rem; font-weight: 700;
    color: var(--text); text-decoration: none; letter-spacing: 0.03em;
    flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
    font-size: 0.88rem; font-weight: 600;
    color: var(--muted); text-decoration: none; transition: color .2s;
    letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--gold); }

/* Dropdown menu */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px;
    background: rgba(18,18,18,0.98);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    list-style: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { padding: 0; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
}
.nav-dropdown-menu a:hover {
    background: rgba(201,168,76,0.1);
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: #080808 !important; font-weight: 700 !important; font-size: 0.88rem !important;
    padding: 12px 26px !important; border-radius: 3px;
}
.nav-cta:hover { box-shadow: 0 0 18px var(--gold-glow) !important; }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--muted); margin: 6px 0; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
    display: none; flex-direction: column; gap: 4px;
    padding: 16px 56px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(8,8,8,0.97);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 0.95rem; font-weight: 500; color: var(--muted);
    text-decoration: none; padding: 10px 0;
    border-bottom: 1px solid rgba(201,168,76,0.07); transition: color .2s;
}
.nav-mobile a:hover,
.nav-mobile a.nav-active { color: var(--gold); }
.nav-mobile .nav-cta { border-radius: 3px; padding: 14px 20px !important; text-align: center; margin-top: 10px; }

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 36px;
    position: relative; z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 52px; margin-bottom: 52px;
}
.footer-logo {
    font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
    color: var(--text); text-decoration: none; display: block; margin-bottom: 14px;
}
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.85rem; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }

.footer-social { display: flex; gap: 10px; }
.soc-btn {
    width: 40px; height: 40px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.soc-btn:hover { border-color: var(--gold-dark); box-shadow: 0 0 12px var(--gold-glow); }
.soc-btn svg { width: 17px; height: 17px; fill: var(--muted); }

.footer-col h4 {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 26px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.75rem; color: #3A3028; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.75rem; color: #3A3028; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--muted); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1280px) {
    .wrap        { padding: 0 40px; max-width: 100%; }
    .nav-inner   { padding: 0 40px; max-width: 100%; }
    .nav-mobile  { padding: 16px 40px 22px; }
}
@media (max-width: 1024px) {
    .wrap        { padding: 0 32px; }
    .nav-inner   { padding: 0 32px; height: 72px; }
    .nav-mobile  { padding: 16px 32px 20px; }
    .nav-links   { display: none; }
    .nav-burger  { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section     { padding: 80px 0; }
}
@media (max-width: 700px) {
    .wrap        { padding: 0 20px; }
    .nav-inner   { padding: 0 20px; height: 64px; }
    .nav-mobile  { padding: 16px 20px 20px; }
    html         { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section     { padding: 64px 0; }
    .nav-logo    { font-size: 1.25rem; }
}

/* ─── IMAGES ─── */
.artifact img {
    object-fit: cover;
    object-position: top center;
    width: 100%; height: 100%;
    display: block;
}
.artifact .img-contain {
    object-fit: contain;
    object-position: center;
    background: #0A0800;
    padding: 8px;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}