:root {
    --bg: #090909;
    --bg-soft: #111111;
    --panel: #141414;
    --line: #2a2a2a;
    --text: #f0f0f0;
    --muted: #b6b6b6;
    --red: #ff3b3b;
    --red-soft: #8d1f1f;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.45;
    color: var(--text);
    background: linear-gradient(180deg, #0b0b0b 0%, #070707 100%);
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 16px;
}

.nav-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 0 0 auto;
}

.nav-shell {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.logo img {
    height: 34px;
    width: auto;
    display: block;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffdede;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    list-style: none;
    cursor: pointer;
    user-select: none;
    color: #e8e8e8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 4px solid var(--red);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.45rem 0.75rem;
    font-size: 0.94rem;
    line-height: 1;
}

.nav-toggle::-webkit-details-marker {
    display: none;
}

.nav-links a {
    color: #d8d8d8;
    border: 0;
    border-bottom: 4px solid transparent;
    border-radius: 0;
    background: transparent;
    padding: 0.45rem 0.7rem;
    font-size: 0.94rem;
    transition: border-bottom-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
}

.nav-links a.active {
    border-bottom-color: var(--red);
    background: transparent;
}

.nav-toggle::after {
    content: '▾';
    display: inline-block;
    margin-left: 0.45rem;
    transition: transform 0.2s ease;
}

.nav-shell.is-open .nav-toggle::after {
    transform: rotate(180deg);
}

.section {
    padding: 2rem 0;
}

.hero {
    padding: 2.2rem 0 2rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #2e0c0c 0%, #150b0b 55%, #0b0b0b 100%);
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.hero .subtitle {
    color: #d5c7c7;
    max-width: 760px;
    margin-bottom: 0.9rem;
}

.button,
.cta-button {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--red);
    background: #111;
    color: #ffe1e1;
    font-weight: 700;
    font-size: 0.92rem;
}

.button:hover,
.cta-button:hover {
    background: #220f0f;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.feature-card {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #1b0e0e 0%, #101010 100%);
    padding: 0.9rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    margin-bottom: 0.4rem;
}

.page-intro {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 1rem;
}

.project-group {
    border: 1px solid var(--line);
    background: #0f0f0f;
    margin-bottom: 0.9rem;
    padding: 0.8rem;
}

.project-group h3 {
    margin-bottom: 0.35rem;
    color: #ffd7d7;
    font-size: 1.08rem;
}

.project-group-intro {
    color: var(--muted);
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.7rem;
}

.project-link {
    display: block;
    border: 1px solid #2f1f1f;
    background: linear-gradient(145deg, #1e0f0f 0%, #100c0c 65%, #0a0a0a 100%);
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-media {
    height: 120px;
    border-bottom: 1px solid #312222;
    background: linear-gradient(145deg, #4e1717 0%, #251010 62%, #0b0b0b 100%);
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-media.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2c8c8;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.project-content {
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    min-height: 155px;
}

.project-content h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.project-content p {
    color: #d6d6d6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-tag {
    color: #ffb7b7;
    font-size: 0.76rem;
    margin-bottom: 0.4rem;
}

.project-cta {
    margin-top: auto;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.project-link:hover {
    border-color: var(--red);
    background: linear-gradient(145deg, #2b1010 0%, #130c0c 65%, #090909 100%);
}

.copy-block {
    border: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 0.9rem;
}

.copy-block p + p {
    margin-top: 0.7rem;
}

.contact-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.55rem;
}

.contact-links a {
    display: block;
    border: 1px solid #3a2424;
    background: #130d0d;
    padding: 0.6rem;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
}

.contact-links a:hover {
    border-color: var(--red);
    background: #201212;
}

footer {
    border-top: 1px solid var(--line);
    background: #050505;
    color: #b8b8b8;
    text-align: center;
    padding: 1rem 16px;
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .navbar .container {
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-top {
        width: 100%;
        justify-content: space-between;
    }

    .nav-shell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        margin-top: 0.45rem;
        padding: 0.25rem 0 0.15rem;
        gap: 0.3rem;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-shell.is-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
    }

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

    .nav-links {
        gap: 0.25rem;
    }

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

    .nav-links a {
        padding: 0.42rem 0.6rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 920px) {
    .nav-links {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }
}
