/* =========================
   GLOBAL RESET
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    background: radial-gradient(circle at top, #101827 0%, #050509 55%, #020308 100%);
    font-family: "Segoe UI", sans-serif;
    color: #eaeaea;
    overflow-x: hidden;
}

/* =========================
   SIDE CHARACTERS (как на Jut.su)
   ========================= */
.side-character {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 80vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.5;
    filter: brightness(0.7);
    pointer-events: none;
    z-index: 1;
}

.side-character.left {
    left: 0;
    background-image: url('/assets/images/sasuke.jpg');
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

.side-character.right {
    right: 0;
    background-image: url('/assets/images/naruto.jpg');
    mask-image: linear-gradient(to left, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 40%);
}

/* На планшетах/телефонах арты убираем */
@media (max-width: 1200px) {
    .side-character {
        display: none;
    }
}

/* =========================
   HEADER
   ========================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: linear-gradient(to bottom, #151826, #0a0b12);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
    z-index: 20;
}

/* ЛОГО слева */
.logo {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.4px;

    background: linear-gradient(180deg, #ffd4a3, #ff8b4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 10px rgba(255,160,90,0.6),
        0 0 20px rgba(255,110,60,0.3);
}

/* =========================
   MENU — компактные капсулы
   ========================= */
.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links a {
    position: relative;
    padding: 7px 16px;
    border-radius: 999px;

    background: rgba(255,255,255,0.06);
    color: #fdfdfd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.9px;

    opacity: 0.9;
    transition: 0.2s ease;
}

/* чтобы underline цеплялся к каждой кнопке, а не к whole menu */
.nav-links a {
    position: relative;
}

/* hover */
.nav-links a:hover {
    opacity: 1;
    background: rgba(255,140,90,0.25);
    box-shadow: 0 0 10px rgba(255,120,70,0.5);
}

/* animated underline только под кнопкой */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #ff9358;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 60%;
}

/* =========================
   BURGER — только мобила
   ========================= */
.menu-btn {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
}

.menu-icon {
    width: 20px;
    height: 2px;
    background: #ffffff;
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #ffffff;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* Только до 900px показываем бургер, скрываем обычное меню */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .menu-btn {
        display: flex;
    }
}

/* =========================
   MOBILE SIDEBAR MENU
   ========================= */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 240px;
    height: 100vh;
    background: #0c0d13;
    padding-top: 90px;
    border-left: 1px solid #26293a;
    box-shadow: -6px 0 16px rgba(0,0,0,0.7);
    z-index: 30;
    transition: right 0.25s ease;
}

.sidebar-menu a {
    display: block;
    padding: 14px 18px;
    color: #ffd0ae;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu a:hover {
    background: rgba(255,140,90,0.2);
}

.sidebar-menu.active {
    right: 0;
}

.overlay {
    display: none;
}

.overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 25;
}

/* =========================
   MAIN WRAPPER
   ========================= */
.main-wrapper {
    position: relative;
    max-width: 900px;
    margin: 140px auto 0 auto;
    padding: 0 24px;
    z-index: 5;
}

/* чтобы текст не заезжал на арты на больших экранах */
@media (min-width: 1400px) {
    .main-wrapper {
        margin-left: calc(50% - 430px);
        margin-right: calc(50% - 430px);
    }
}

/* =========================
   HERO
   ========================= */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.8px;

    background: linear-gradient(180deg, #ffd2a6, #ff8855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 14px rgba(255,150,100,0.5),
        0 0 26px rgba(255,110,60,0.35);

    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопка — ниже, не залезает на текст */
.btn-primary {
    display: inline-block;
    margin-top: 22px;
    padding: 11px 26px;
    border-radius: 999px;

    background: linear-gradient(90deg, #ff6f3c, #ff955e);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 0 14px rgba(255,120,80,0.5);
    transition: 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(255,130,90,0.7);
}

/* На мобильном hero уменьшить, чтобы не выглядел громоздко */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
    }
    .hero p {
        font-size: 16px;
    }
    .btn-primary {
        font-size: 14px;
        padding: 10px 22px;
    }
}

/* =========================
   SECTIONS / CARDS
   ========================= */
.section-block {
    margin-top: 64px;
}

.section-block h2 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #ffb487;
    text-shadow: 0 0 10px rgba(255,150,100,0.4);
}

.card-list {
    background: rgba(13,16,28,0.94);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 0 18px rgba(0,0,0,0.55);
}

.card-item {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-item:last-child {
    border-bottom: none;
}

/* =========================
   FOOTER
   ========================= */
footer {
    margin-top: 80px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 14px;
    color: #939393;
}

/* =========================
   MOBILE LAYOUT
   ========================= */
@media (max-width: 900px) {
    header {
        padding: 0 18px;
    }

    .logo {
        font-size: 22px;
    }

    .main-wrapper {
        margin-top: 110px;
        padding: 0 14px;
    }

    .section-block {
        margin-top: 50px;
    }

    .card-list {
        padding: 16px 18px;
    }
}

/* =========================
   CUSTOM SCROLLBAR (тонкий)
   ========================= */
::-webkit-scrollbar {
    width: 8px;
    background: #050710;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff7a48, #ff9f72);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(255,120,80,0.6);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffa576, #ffc0a0);
}
/* =========================
   АНИМАЦИЯ ПОЯВЛЕНИЯ БЛОКОВ
   ========================= */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.6s ease-out forwards;
}

.fade-up.delay-1 {
    animation-delay: 0.15s;
}

.fade-up.delay-2 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Немного hover для карточек */
.card-list {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(0,0,0,0.7);
}

.card-item {
    transition: background 0.2s ease;
}

.card-item:hover {
    background: rgba(255,255,255,0.03);
}

/* Чуть уменьшим glow у Hero, чтобы текст не выглядел «перегоревшим» */
.hero h1 {
    text-shadow:
        0 0 10px rgba(255,150,100,0.45),
        0 0 18px rgba(255,110,60,0.28);
}
