@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');

:root {
    --bg: rgb(27, 27, 27);
    --bg-elevated: rgba(40, 40, 40, 0.85);
    --card-bg: rgba(40, 40, 40, 0.85);
    --accent: rgb(200, 200, 200);
    --accent-light: rgb(220, 220, 220);
    --accent-dark: rgb(180, 180, 180);
    --text: rgb(200, 200, 200);
    --text-muted: rgba(200, 200, 200, 0.6);
    --border: rgba(200, 200, 200, 0.1);
    --border-hover: rgba(200, 200, 200, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}

.cursor-glow { display: none; }

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: rgba(27, 27, 27, 0.8);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; color: var(--text); }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 8px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(200, 200, 200, 0.1); }

header { min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.hero { max-width: 900px; }
.hero h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.tagline { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 48px; line-height: 1.8; }

.skills-wrapper { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.skill-group { display: flex; flex-direction: column; align-items: center; }
.skill-label { font-size: 0.75rem; color: var(--accent); margin-bottom: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }
.tech-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tech-tag { padding: 8px 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 6px; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); transition: all 0.25s ease; }
.tech-tag:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(200, 200, 200, 0.08); transform: translateY(-2px); }

.section { padding: 100px 10%; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-bottom: 40px; text-align: center; letter-spacing: 3px; }

.glass-card { background: var(--card-bg); border: 1px solid var(--border); padding: 32px; border-radius: 16px; transition: all 0.3s ease; position: relative; }

.tabs { margin-bottom: 32px; display: flex; gap: 12px; background: var(--bg-elevated); padding: 6px; border-radius: 12px; width: fit-content; margin-left:auto;margin-right:auto; }
.tab-btn { background: transparent; border: none; color: var(--text-muted); padding: 12px 24px; cursor: pointer; font-family: inherit; font-size: 0.875rem; font-weight: 500; transition: all 0.25s ease; border-radius: 8px; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(200, 200, 200, 0.3); }



.grid { display: none; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top:32px;}
.grid.active-tab { display: grid; }

.grid .glass-card video,
.grid .glass-card img { width: 100%; display: block; border-radius: 0; border: none; aspect-ratio: 16/9; object-fit: cover; }
.grid .glass-card h4 { padding: 20px 24px 8px; color: var(--text); font-size: 1rem; font-weight: 600; }
.grid .glass-card p { padding: 0 24px 24px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.grid .glass-card .btn { margin: 0 24px 24px; }

.project-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.project-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(200,200,200,0.2);
}

.project-btn img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-text {
    display: flex;
    flex-direction: column;
}

.project-text h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.project-frame-bottom {
    width: 100%;
    background: rgb(27,27,27);
    color: rgb(200,200,200);
    padding: 24px;
    border-radius: 16px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    cursor: pointer; /* весь фрейм кликабельный */
}

.project-frame-bottom .close-frame {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-light);
}

.project-frame-bottom .btn {
    align-self: flex-start;
    margin-top: 12px;
}

.solo-btn {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(96, 165, 250, 0.15);
    color: rgb(96, 165, 250);
    border: 1px solid rgba(96, 165, 250, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 24px;
    max-width: 1000px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent-light);
}
.modal-body {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.modal-mechanics, .modal-libs {
    flex: 1 1 200px;
    background: rgb(50,50,50);
    padding: 12px;
    border-radius: 8px;
}
.frame-small {
    display: inline-block;
    margin: 2px;
    padding: 4px 8px;
    background: rgb(70,70,70);
    border-radius: 4px;
    font-size: 0.85rem;
}
.modal-video iframe {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    margin-top: 12px;
}

.pricing-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 28px;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    background: rgba(200,200,200,0.05);
}
.pricing-card h4 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.pricing-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.pricing-card span {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}
.pricing-note {
    font-size: 0.8rem;
    margin-top: 24px;
    color: var(--text-muted);
    text-align: center;
}

.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 24px; max-width:900px; margin-left:auto;margin-right:auto; }
.payment-method { padding: 28px; }
.payment-header { margin-bottom: 20px; }
.payment-icon { font-size: 1.1rem; font-weight: 700; color: var(--accent-light); }
.payment-method ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.payment-method li { font-size: 0.9rem; color: var(--text-muted); padding-left: 20px; position: relative; }
.payment-method li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.payment-method li strong { color: var(--warning); }
.payment-restriction { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.2); max-width: 600px; margin-left:auto;margin-right:auto; }
.payment-restriction p { font-size: 0.9rem; color: var(--text-muted); }
.payment-restriction strong { color: var(--error); }

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,200,200,0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-platform {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 1rem;
}

.contact-username {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

