:root {
    --bg-color: #0b0c10;
    --text-main: #ffffff;
    --text-muted: #888890;
    --accent: #45f3ff; /* Неоновый голубой */
    --accent-gold: #c6a87c;
    
    --font-main: 'Manrope', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    
    --container: 1300px;
    --gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Скрываем стандартный курсор */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Эффект при наведении */
body.hovered .cursor-outline {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    mix-blend-mode: difference;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader__text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.preloader__line {
    width: 200px;
    height: 2px;
    background: #222;
    overflow: hidden;
}

.preloader__line-inner {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.5s;
}

/* --- Typography & Utils --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--accent-gold);
}

.section-padding { padding: 150px 0; }

.section-title {
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1;
    margin-bottom: 40px;
}

.label {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}

.nav__logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}
.dot { color: var(--accent); }

.nav__menu {
    display: flex;
    gap: 40px;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
}

.nav__burger { display: none; font-size: 1.5rem; }

/* --- Hero --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1599696847847-920f01f705d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    filter: brightness(0.4);
    z-index: -2;
    transform: scale(1.1); /* Для параллакса */
}

/* Эффект зернистости */
.hero__noise {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://raw.githubusercontent.com/klowns/grain/master/grain-dark.png');
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.hero__container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero__tags span {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 10px;
    backdrop-filter: blur(5px);
}

.hero__title {
    font-size: clamp(4rem, 8vw, 9rem);
    text-transform: uppercase;
    line-height: 0.9;
    margin: 40px 0;
    font-weight: 800;
}

/* Маска для появления текста */
.line {
    overflow: hidden;
}

.hero__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero__desc {
    max-width: 400px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.circle-btn {
    width: 80px; height: 80px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    transition: 0.3s;
}
.circle-btn:hover {
    background: var(--text-main);
    color: #000;
}

/* --- Marquee --- */
.marquee {
    padding: 30px 0;
    background: var(--accent);
    color: #000;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05); /* Легкий наклон */
}

.marquee__inner {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee__inner span {
    font-size: 2rem;
    font-weight: 800;
    padding-right: 50px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about__img {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.about__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* Для параллакса */
}

.stats {
    margin-top: 60px;
    display: flex;
    gap: 60px;
}

.stat-num {
    display: block;
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--accent-gold);
    line-height: 1;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Gallery (Horizontal) --- */
.gallery {
    overflow: hidden; /* Важно для горизонтального скролла */
    padding-top: 100px;
    padding-bottom: 100px;
}

.gallery__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.gallery__wrapper {
    display: flex;
    width: 400%; /* Ширина = кол-во слайдов * 100% */
    height: 70vh;
}

.gallery__item {
    width: 100%;
    height: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery__card {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.gallery__card:hover img {
    filter: grayscale(0%);
}

.gallery__info {
    position: absolute;
    bottom: 40px; left: 40px;
    z-index: 2;
    mix-blend-mode: difference;
}

.gallery__info h3 {
    font-size: 3rem;
    font-family: var(--font-serif);
    font-style: italic;
}

/* --- Contact --- */
.contact {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to top, #000, var(--bg-color));
}

.contact__title {
    font-size: clamp(3rem, 6vw, 7rem);
    line-height: 1;
    margin-bottom: 60px;
}

.contact__form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 40px;
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-main);
}
.form-group input:focus { outline: none; border-color: var(--accent); }

/* Слайдер */
input[type=range] {
    width: 100%;
    background: transparent;
    cursor: pointer;
}

.btn-submit {
    position: relative;
    padding: 20px 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.3s;
}

.btn-submit:hover { border-color: var(--accent); color: #000; }

.btn-fill {
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: width 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.btn-submit:hover .btn-fill { width: 100%; }

.footer-bottom {
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

.socials a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
}

/* Mobile Adaptive */
@media (max-width: 768px) {
    .nav__menu { display: none; }
    .nav__burger { display: block; }
    .nav { padding: 20px; }
    
    .about__grid { grid-template-columns: 1fr; gap: 50px; }
    .about__img { height: 400px; }
    
    .gallery__wrapper {
        /* На мобильном отключаем сложный скролл, делаем вертикальным */
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .gallery__item { height: 400px; margin-bottom: 20px; padding: 0;}
    
    .cursor-dot, .cursor-outline { display: none; } /* Отключаем кастомный курсор на тач-экранах */
    * { cursor: auto; }
}