/* =======================
   VARIABLES
======================= */
:root {
    --gold: #c9a24d;
    --dark: #0b0d0f;
    --gray: #14171a;
    --text: #e6e6e6;
}

/* =======================
   RESET & BASE
======================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
}

/* =======================
   NAVIGATION
======================= */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0));
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(11,13,15,0.95);
}

.logo {
    width: 300px;
    height: auto;
}

/* MENU */
.nav ul.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav li {
    position: relative;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--gold);
}

/* SUBMENU */
.submenu {
    position: absolute;
    top: 30px;
    left: 0;
    background: rgba(10,10,10,0.95);
    border: 1px solid rgba(201,162,77,0.3);
    padding: 20px;
    min-width: 260px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.nav li:hover .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu h3 {
    margin-top: 0;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
}

.submenu p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

.nav-menu.open {
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(11,13,15,0.95);
    padding: 20px;
    border-radius: 8px;
}

/* =======================
   HERO SECTION
======================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(5,5,5,0.1), rgba(5,5,5,0.3)),
        url('forest-owl.png') center / cover no-repeat;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: clamp(40px,6vw,72px);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

h1 span { color: var(--gold); }

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

.private {
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid rgba(201,162,77,0.4);
    padding: 10px 20px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.private:hover {
    background: var(--gold);
    color: var(--dark);
}

/* =======================
   FOOTER
======================= */
footer {
    background: #000;
    text-align: center;
    padding: 25px 20px 40px 20px;
    font-size: 13px;
    color: #aaa;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    position: relative; 
    z-index: 1;
}

/* =======================
   SVG OWL
======================= */
.owl {
    display: block;
    width: 100%;
    height: auto;
}

.owl path,
.owl circle {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.1em;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Анимация рисования тела и головы */
.owl path.body {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 1.5s ease forwards;
}
.owl path.head {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw 1.5s ease forwards 1.5s;
}

/* Анимация букв */
.owl path.char {
    stroke-dasharray: 550;
    stroke-dashoffset: 550;
    animation: draw 1.5s ease forwards 1.5s;
}

/* Глаз с миганием */
.owl circle.eye {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: draw 1s ease forwards 3s, glow 2s ease-in-out infinite 4s;
}

/* =======================
   KEYFRAMES
======================= */
@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes glow {
    0%,100% { filter: drop-shadow(0 0 10px rgba(201,162,77,0.6)); }
    50% { filter: drop-shadow(0 0 25px rgba(201,162,77,1)); }
}

/* =======================
   ADAPTIVE / MOBILE
======================= */
@media(max-width: 768px) {
    .nav { padding: 15px 20px; }
    .nav ul.nav-menu { gap: 15px; }
    h1 { font-size: clamp(28px,10vw,60px); }
    .nav .logo { width: 200px; }
    .mobile-menu-toggle { display: block; }
    .nav ul.nav-menu { display: none; }
    .nav ul.nav-menu.open { display: flex; }
}
