/* === CSS Custom Properties === */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --accent: #ffaa00;
    --accent-glow: rgba(255, 170, 0, 0.3);
    --accent-strong: rgba(255, 170, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
    --header-height: 72px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: var(--bg-dark);
}

/* === Container === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Section Common === */
section {
    padding: 100px 0;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-badge--center {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-title--center {
    text-align: center;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn i {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    background: #ffbb22;
    box-shadow: 0 6px 32px var(--accent-strong);
    transform: translateY(-2px);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn--secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 170, 0, 0.05);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ========================================
   БЛОК 0: ШАПКА
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
}

.header__logo-text {
    color: var(--accent);
}

.header__menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.header__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.header__link:hover,
.header__link:focus-visible {
    color: var(--text-primary);
}

.header__link:hover::after,
.header__link:focus-visible::after {
    width: 100%;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.header__burger i {
    width: 28px;
    height: 28px;
}

/* === Mobile Menu === */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu__close i {
    width: 28px;
    height: 28px;
}

.mobile-menu__list {
    list-style: none;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu__link {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.mobile-menu__link:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

/* ========================================
   БЛОК 1: HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('http://static.photos/event/1200x630/42') center/cover no-repeat;
    filter: brightness(0.3) blur(2px);
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.95) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero__title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
}

.hero__title--accent {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 500px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   БЛОК 2: ОБО МНЕ
   ======================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.about__image-glow {
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 3px);
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

.about__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about__stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.about__stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.about__stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.about__stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========================================
   БЛОК 3: ПОРТФОЛИО
   ======================================== */
.portfolio__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.portfolio__item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-card);
}

.portfolio__item--video {
    aspect-ratio: 16/9;
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio__item:hover .portfolio__img {
    transform: scale(1.05);
}

.portfolio__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__overlay i {
    width: 36px;
    height: 36px;
    color: #fff;
}

.portfolio__overlay--video .portfolio__play-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
    opacity: 0.9;
}

/* === Modal === */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 10;
    transition: var(--transition);
}

.modal__close:hover {
    background: #222;
    border-color: var(--border-hover);
}

.modal__close i {
    width: 22px;
    height: 22px;
}

.modal__content img,
.modal__content video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-sm);
}

/* ========================================
   БЛОК 4: СЕТ
   ======================================== */
.set__info {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.set__player {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.set__player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.set__equalizer {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}

.set__equalizer span {
    display: block;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    animation: equalize 0.8s ease-in-out infinite alternate;
}

.set__equalizer span:nth-child(1) { height: 10px; animation-delay: 0s; }
.set__equalizer span:nth-child(2) { height: 20px; animation-delay: 0.2s; }
.set__equalizer span:nth-child(3) { height: 14px; animation-delay: 0.4s; }
.set__equalizer span:nth-child(4) { height: 18px; animation-delay: 0.6s; }
.set__equalizer span:nth-child(5) { height: 8px; animation-delay: 0.3s; }

@keyframes equalize {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1); }
}

.set__now-playing {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.set__track-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.set__track-artist {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.set__wave {
    height: 40px;
    background: linear-gradient(90deg, 
        var(--accent) 0%, 
        var(--accent) 20%, 
        rgba(255,170,0,0.3) 20%, 
        rgba(255,170,0,0.3) 40%,
        var(--accent) 40%, 
        var(--accent) 60%,
        rgba(255,170,0,0.3) 60%, 
        rgba(255,170,0,0.3) 80%,
        var(--accent) 80%, 
        var(--accent) 100%
    );
    border-radius: 4px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.set__audio {
    width: 100%;
    margin-bottom: 24px;
    border-radius: var(--radius-xs);
}

.set__audio::-webkit-media-controls-panel {
    background: var(--bg-dark);
}

.set__audio::-webkit-media-controls-current-time-display,
.set__audio::-webkit-media-controls-time-remaining-display {
    color: var(--text-primary);
}

.set__download {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ========================================
   БЛОК 5: КОНТАКТЫ
   ======================================== */
.contacts__intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.contacts__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
}

.contacts__card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contacts__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.contacts__icon i {
    width: 24px;
    height: 24px;
}

.contacts__icon--telegram {
    background: rgba(0, 136, 204, 0.15);
    color: #0088cc;
}

.contacts__icon--tiktok {
    background: rgba(255, 0, 80, 0.15);
    color: #ff0050;
}

.contacts__icon--phone {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.contacts__icon--email {
    background: rgba(255, 170, 0, 0.15);
    color: var(--accent);
}

.contacts__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contacts__value {
    font-size: 0.95rem;
    font-weight: 600;
}

.contacts__cta {
    text-align: center;
}

/* ========================================
   БЛОК 6: ФУТЕР
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer__logo {
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 16px;
}

.footer__logo-accent {
    color: var(--accent);
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer__madeby {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .header__menu {
        display: none;
    }

    .header__burger {
        display: block;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero__buttons .btn {
        justify-content: center;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }

    .about__image {
        aspect-ratio: 1/1;
    }

    .about__stats {
        justify-content: center;
    }

    .portfolio__gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .set__player {
        padding: 20px;
    }

    .contacts__grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal__content img,
    .modal__content video {
        max-width: 95vw;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .portfolio__gallery {
        grid-template-columns: 1fr;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .about__stats {
        flex-direction: column;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__buttons {
        max-width: 100%;
    }
}