:root {
    --bg-main: #101112;
    --bg-deep: radial-gradient(
        circle at top,
        #1b1d1f 0%,
        #111214 40%,
        #0b0c0d 100%
    );
    --accent: #8b1e1e;
    --text-main: #eaeaea;
    --text-muted: #b8b8b8;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #121314, #0d0e0f);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}


/* ---------- HERO ---------- */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.7), rgba(10,10,10,0.9)),
        url("images/hero.jpg") center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
    z-index: -1;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

/* ---------- BUTTON ---------- */

.btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--accent);
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent);
}

/* ---------- SECTIONS ---------- */

section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 30px;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: auto;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- MODELS ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    position: relative;
    background: linear-gradient(180deg, #141414, #0b0b0b);
    border: 1px solid #1f1f1f;
    padding: 30px;
    border-radius: 14px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.3s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* ---------- PREMIUM HOVER ---------- */
.card.show:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 60px rgba(180, 40, 40, 0.25);
}

/* ---------- GRADIENT OVERLAY ---------- */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(255,255,255,0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card.show:hover::before {
    opacity: 1;
}

/* ---------- SHINE EFFECT ---------- */
.card::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.25) 0%,
        rgba(255,255,255,0.05) 30%,
        rgba(255,255,255,0) 60%
    );
    transform: rotate(25deg) translateX(-120%);
    transition: transform 0.9s ease;
    pointer-events: none;
}

.card.show:hover::after {
    transform: rotate(25deg) translateX(120%);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: var(--accent);
    letter-spacing: 1px;
}

.card p {
    color: var(--text-muted);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

/* ---------- CONTACT ---------- */

.contact {
    text-align: center;
}

.contact a {
    color: var(--accent);
    text-decoration: none;
}

/* ---------- FOOTER ---------- */

footer {
    padding: 30px;
    text-align: center;
    color: #666;
    border-top: 1px solid #111;
}

/* ---------- REVEAL ANIMATION ---------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.logo {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    display: inline-flex;
    align-items: center;
    position: relative;
    perspective: 800px;
}

/* Металлический градиент */
.logo span {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        120deg,
        #ac936d,
        #dad5d2,
        #f5d9b1,
        #9c9c9c,
        #e6e6e6
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    transform-origin: center bottom;
    animation: stringVibe 1.2s ease-out;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.2),
        0 6px 14px rgba(0,0,0,0.6);
}

/* перебор струн */
.logo span:nth-child(1) { animation-delay: 0.1s; }
.logo span:nth-child(2) { animation-delay: 0.2s; }
.logo span:nth-child(3) { animation-delay: 0.3s; }
.logo span:nth-child(4) { animation-delay: 0.4s; }
.logo span:nth-child(5) { animation-delay: 0.5s; }

@keyframes stringVibe {
    0% {
        transform: translateY(-20px) rotateX(40deg);
        opacity: 0;
    }
    20% {
        transform: translateY(0) rotateX(-25deg);
        opacity: 1;
    }
    40% {
        transform: rotateX(15deg);
    }
    60% {
        transform: rotateX(-8deg);
    }
    80% {
        transform: rotateX(4deg);
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

@keyframes logoReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-inner::after {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 40px auto 0;
    opacity: 0.6;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 10px;
}

.card-image:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.card:hover img {
    transform: scale(1.08);
    filter: contrast(1.1);
}

/* ---------- INFO OVERLAY ---------- */
.card-info {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-size: 0.9rem;
}

.card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    border-radius: 8px;
}


.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 22px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}

.category-btn.active,
.category-btn:hover {
    background: var(--accent);
    color: #fff;
}

.logo span.vibe {
    animation: stringVibe 0.9s ease-out;
}