
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #101113;
    --text: #f5f2ec;
    --muted: #96969b;
    --gold: #d6b47a;
    --border: #303034;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Шапка */

.header {
    height: 90px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span,
.gold {
    color: var(--gold);
}

nav {
    display: flex;
    gap: 38px;
}

nav a {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

/* Главный экран */

.hero {
    min-height: calc(100vh - 90px);
    padding: 10vh 7% 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(58px, 9vw, 150px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -6px;
}

.hero h1 span {
    color: var(--gold);
}

.description {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin-top: 35px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 45px;
    padding: 19px 27px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    margin-top: 40px;
    transition: 0.3s;
}

.hero-button:hover {
    background: var(--gold);
    color: var(--bg);
}

.hero-bottom {
    width: 86%;
    position: absolute;
    bottom: 35px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
}

/* Разделы */

.section {
    min-height: 65vh;
    padding: 120px 7%;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: clamp(36px, 5vw, 75px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.section > p:last-child {
    color: var(--muted);
    line-height: 1.8;
}

/* Телефоны */

@media (max-width: 700px) {
    .header {
        height: 75px;
        padding: 0 5%;
    }

    .logo {
        font-size: 16px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 10px;
    }

    .hero {
        min-height: calc(100svh - 75px);
        padding: 90px 5% 110px;
    }

    .hero h1 {
        font-size: clamp(42px, 10vw, 75px);
        letter-spacing: -2px;
    }

    .description {
        font-size: 14px;
    }

    .hero-bottom {
        width: 90%;
        font-size: 8px;
        gap: 15px;
    }

    .section {
        padding: 90px 5%;
    }
}

/* CREATIVE LAB */

.projects-section {
    padding-top: 130px;
    padding-bottom: 100px;
    overflow: hidden;
}

.projects-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 65px;
}

.projects-intro {
    max-width: 430px;
    color: var(--muted);
    line-height: 1.8;
}

.lab-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    50% { opacity: 0.3; }
}

/* Асимметричная галерея */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
    gap: 16px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 27px;
    overflow: hidden;
    border: 1px solid #343438;
    background: #1b1c20;
    transition: transform 0.4s, border-color 0.4s,
                background 0.4s;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
    background: #272521;
}

.project-large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-tall {
    grid-row: span 2;
}

.project-wide {
    grid-column: span 2;
}

.project-number {
    position: relative;
    z-index: 2;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
}

.project-symbol {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(65px, 10vw, 180px);
    font-weight: 800;
    color: rgba(214, 180, 122, 0.08);
    transition: transform 0.5s, color 0.5s;
    pointer-events: none;
}

.project-card:hover .project-symbol {
    transform: translateY(-50%) scale(1.15) rotate(-8deg);
    color: rgba(214, 180, 122, 0.22);
}

.project-info {
    position: relative;
    z-index: 2;
}

.project-category {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
}

.project-info h3 {
    margin: 12px 0;
    font-size: clamp(25px, 3vw, 48px);
    letter-spacing: -1px;
}

.project-info p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.lab-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
}

/* Адаптация */

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 240px;
    }

    .project-tall {
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .projects-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(240px, auto);
    }

    .project-large,
    .project-tall,
    .project-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .lab-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-symbol {
        transition: none;
    }

    .status-dot {
        animation: none;
    }
}

/* Изображения проектов */

.project-card {
    isolation: isolate;
}

.project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.65;
    filter: saturate(0.65);
    transition: transform 0.7s ease,
                filter 0.7s ease,
                opacity 0.7s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(12, 13, 15, 0.45) 0%,
        rgba(12, 13, 15, 0.12) 35%,
        rgba(12, 13, 15, 0.92) 100%
    );
    pointer-events: none;
}

.project-card:hover .project-image {
    transform: scale(1.08);
    opacity: 0.85;
    filter: saturate(1);
}

.project-card:hover .project-info p {
    color: #e0dcd5;
}

@media (prefers-reduced-motion: reduce) {
    .project-image {
        transition: none;
    }
}

/* Интерактивные карточки */

.project-card {
    cursor: pointer;
}

.project-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Модальное окно */

.project-modal[hidden] {
    display: none;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    padding: clamp(30px, 6vw, 65px);
    background: #1b1c20;
    border: 1px solid #514630;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 38px;
    cursor: pointer;
}

.modal-label {
    display: block;
    margin-bottom: 25px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: clamp(35px, 5vw, 65px);
    letter-spacing: -2px;
}

.modal-content > p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 65px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 1px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .modal-footer {
        flex-direction: column;
    }
}

/* CINEMATIC PROJECT VIEW */

.project-modal {
    overflow-y: auto;
    align-items: safe center;
}

.cinema-modal {
    width: min(1100px, 100%);
    max-height: calc(100dvh - 40px);
    padding: 0;
    overflow-y: auto;
    background: #141518;
    border: 1px solid #514630;
    animation: cinemaEnter 0.45s ease both;
}

@keyframes cinemaEnter {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cinema-cover {
    height: clamp(280px, 50vw, 550px);
    position: relative;
    overflow: hidden;
    background: #25262b;
}

.cinema-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: cinemaZoom 1.5s ease-out both;
}

@keyframes cinemaZoom {
    from {
        transform: scale(1.13);
        opacity: 0.4;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cinema-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.cinema-heading {
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 10%;
    z-index: 2;
    animation: cinemaText 0.7s 0.15s both;
}

.cinema-heading .modal-label {
    margin-bottom: 15px;
}

.cinema-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 7vw, 100px);
    line-height: 1;
    letter-spacing: -3px;
}

@keyframes cinemaText {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cinema-body {
    padding: 35px 6% 40px;
    animation: cinemaText 0.7s 0.3s both;
}

.cinema-body > p {
    max-width: 750px;
    color: #b8b8bd;
    font-size: 16px;
    line-height: 1.9;
}

.cinema-body .modal-footer {
    margin-top: 45px;
}

.cinema-modal .modal-close {
    position: sticky;
    top: 15px;
    float: right;
    margin-bottom: -56px;
    margin-right: 15px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.cinema-modal .modal-close:hover {
    background: var(--gold);
    color: #111;
}

@media (max-width: 600px) {
    .cinema-cover {
        height: 350px;
    }

    .cinema-heading h2 {
        letter-spacing: -1px;
    }

    .cinema-body {
        padding: 25px 6%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinema-modal,
    .cinema-cover img,
    .cinema-heading,
    .cinema-body {
        animation: none;
    }
}

/* PERSONAL SIGNATURE */

.signature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 35px 7%;
    border-top: 1px solid var(--border);
}

.signature-footer span {
    color: #77777c;
    font-size: 10px;
    letter-spacing: 2px;
}

.signature-footer p {
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

@media (max-width: 700px) {
    .signature-footer {
        flex-direction: column;
        gap: 15px;
        padding: 35px 5%;
    }
}
