:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #8c8c8c;
    --accent-color: #4db8a1;
    /* Light cyan/green for links */
    --hero-text: #f5f5f5;

    --font-main: 'Inter', sans-serif;
    --font-script: 'Send Flowers', cursive;
    /* Использован красивый курсивный шрифт */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 5rem;
    color: var(--hero-text);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg video.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-top-nav {
    align-self: flex-end;
    z-index: 1;
}

.hero-top-nav a {
    color: var(--accent-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-top-nav a:hover {
    color: #fff;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1;
    padding-bottom: 1rem;
}

.hero-info h1 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.hero-info p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.hero-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.hero-logos img {
    height: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.hero-logos img:hover {
    opacity: 1;
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* --- PORTFOLIO GRID --- */
.portfolio-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 4rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
}

.card-image-wrapper img,
.card-image-wrapper video.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .card-image-wrapper img,
.project-card:hover .card-image-wrapper video.card-video {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card:hover .card-title {
    color: var(--accent-color);
}

.card-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.card-year {
    color: var(--text-secondary);
}

.card-link {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.card-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.card-link:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .portfolio-grid-container {
        padding: 4rem 2rem;
    }
}

/* --- PROJECT PAGE --- */
.project-page {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 5rem;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
}

.project-top-nav a {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5rem 6rem;
}

.project-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.project-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description p {
    margin-bottom: 1.5rem;
}

.project-video-wrapper {
    width: 100%;
    max-width: 900px;
}

.project-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background-color: #000;
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

@media (max-width: 900px) {

    .project-header,
    .project-content {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.8rem;
    }
}

.project-awards {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    align-items: center;
}

.project-awards img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* --- ABOUT PAGE --- */
.about-header {
    align-items: flex-start;
}

.about-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.about-contacts a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.about-contacts a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5rem 6rem;
}

.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-header-text {
    margin-bottom: 3.5rem;
}

.about-header-text .project-title {
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
}

@media (max-width: 900px) {
    .about-header-text .project-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    .about-photo {
        width: 130px;
        height: 130px;
    }
}

.about-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-weight: 300;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- PROJECT MEDIA GRID --- */
.project-media-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.project-media-grid .project-video-wrapper {
    max-width: none;
    width: 100%;
}

.project-stills {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
}

.project-stills img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .project-media-grid {
        grid-template-columns: 1fr;
    }
    .project-stills {
        margin-top: 2rem;
    }
}

/* --- ADVANTAGES SECTION --- */
.advantages-section {
    background-color: #000;
    color: #fff;
    width: 100%;
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5rem;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.advantage-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.advantage-item p {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 900px) {
    .advantages-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 4rem 2rem;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .advantages-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}