:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #d4af37;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition-slow: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- BACKGROUND TYPOGRAPHY (The Depth) --- */
.bg-text {
    position: fixed;
    font-family: var(--font-heading);
    font-size: 25vw;
    color: rgba(255,255,255,0.03);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.bg-text-1 { top: 10%; left: -5%; }
.bg-text-2 { bottom: 10%; right: -5%; }

/* --- HERO SECTION (Ken Burns Effect) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 100px;
    z-index: 10;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 30px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    font-weight: 400;
}

.hero-content .divider {
    width: 80px;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 30px;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(40%) brightness(0.7);
    animation: kenburns 30s infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) translate(-2%, -2%); }
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 5;
}

/* --- QUOTE SECTION (Modern Minimal) --- */
.quote {
    padding: 200px 0;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--accent-color);
    line-height: 0;
    margin-bottom: 40px;
    opacity: 0.5;
}

.quote h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-style: italic;
    font-weight: 400;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- GALLERY (Masonry-inspired) --- */
.gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #0a0a0a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Custom Grid Positions for "Sasser" feel */
.item-1 { grid-column: 1 / 7; grid-row: span 8; height: 800px; }
.item-2 { grid-column: 7 / 13; grid-row: span 4; height: 400px; margin-top: 100px; }
.item-3 { grid-column: 7 / 10; grid-row: span 4; height: 500px; }
.item-4 { grid-column: 10 / 13; grid-row: span 4; height: 500px; margin-top: -50px; }
.item-5 { grid-column: 2 / 6; grid-row: span 6; height: 700px; }
.item-6 { grid-column: 6 / 12; grid-row: span 6; height: 600px; margin-top: 50px; }
.item-7 { grid-column: 1 / 5; grid-row: span 4; height: 450px; }
.item-8 { grid-column: 5 / 13; grid-row: span 8; height: 750px; }
.item-9 { grid-column: 1 / 8; grid-row: span 6; height: 650px; margin-top: -100px; }
.item-10 { grid-column: 8 / 13; grid-row: span 6; height: 650px; }
.item-11 { grid-column: 2 / 7; grid-row: span 5; height: 550px; }
.item-12 { grid-column: 7 / 12; grid-row: span 5; height: 550px; margin-top: 80px; }
.item-13 { grid-column: 1 / 6; grid-row: span 7; height: 700px; }
.item-14 { grid-column: 6 / 10; grid-row: span 4; height: 400px; }
.item-15 { grid-column: 10 / 13; grid-row: span 4; height: 400px; margin-top: 50px; }
.item-16 { grid-column: 3 / 11; grid-row: span 8; height: 800px; }
.item-17 { grid-column: 1 / 13; grid-row: span 4; height: 450px; margin-top: 40px; }

/* --- EXPERIENCE SECTION --- */
.experience {
    padding: 200px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 120px;
    align-items: center;
}

.experience-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 40px;
}

.experience-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}

.experience-image {
    position: relative;
}

.experience-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
}

.experience-image img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.experience-image:hover img {
    filter: grayscale(0%);
}

/* --- BUTTONS & FOOTER --- */
.btn {
    display: inline-block;
    padding: 20px 40px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    transition: var(--transition-slow);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
}

.btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

footer {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .container { padding: 0 30px; } /* Увеличил базовый отступ контейнера */
    .hero-content { padding: 0 30px; }
    .hero-image-wrapper { width: 100%; opacity: 0.4; }
    .hero::after { background: linear-gradient(0deg, rgba(0,0,0,1) 25%, transparent 100%); }
    .gallery-grid { grid-template-columns: 1fr; grid-gap: 30px; }
    .gallery-item { grid-column: span 1 !important; grid-row: auto !important; height: 450px !important; margin: 0 !important; }
    .experience-grid { grid-template-columns: 1fr; gap: 40px; }
    .experience { padding: 80px 0; }
    .experience-text { text-align: center; padding: 0 10px; } /* Дополнительный зазор внутри текста */
    .experience-text h2 { font-size: 2.4rem; line-height: 1.1; margin-bottom: 25px; }
    .experience-image { padding: 0; }
    .experience-image::before { top: -15px; left: -15px; width: 100%; height: 100%; }
    .cta-group { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 15px; 
        margin-top: 35px; 
        padding: 0 10px; /* Принудительный отступ для группы кнопок */
    }
    .bg-text { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 25px; } /* Четкие поля для самых маленьких экранов */
    .hero-content { padding: 0 20px; }
    .hero-content h1 { font-size: 2rem; }
    .quote { padding: 80px 0; }
    .quote h2 { font-size: 1.4rem; line-height: 1.5; }
    .experience { padding: 60px 0; }
    .experience-text h2 { font-size: 2rem; }
    .experience-text p { font-size: 0.95rem; margin-bottom: 15px; line-height: 1.5; }
    .btn { 
        padding: 18px 20px; 
        width: 100%; 
        box-sizing: border-box; /* Гарантируем, что паддинги не расширяют кнопку */
        text-align: center; 
        font-size: 0.7rem; 
        letter-spacing: 2px; 
    }
}

@media (max-width: 370px) {
    .hero-content h1 { font-size: 1.8rem; }
    .experience-text h2 { font-size: 1.7rem; }
    .quote h2 { font-size: 1.2rem; }
}
