/* ============================================= */
/*                BASE RESET                     */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.4;
    font-weight: 300;
}

/* ============================================= */
/*           NAVIGATION DOTS                     */
/* ============================================= */
.nav-dots {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(212,175,55,0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: #d4af37;
    border-color: #d4af37;
    transform: scale(1.3);
}

/* ============================================= */
/*              SECTIONS                         */
/* ============================================= */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ============================================= */
/*              TYPOGRAPHY                       */
/* ============================================= */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 400;
}

.section-text {
    font-size: 1.4rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: rgba(255,255,255,0.9);
}

.accent {
    color: #d4af37;
}

/* ============================================= */
/*                 HERO                          */
/* ============================================= */
.hero {
    min-height: 100vh;
    background: url('images/hero/atelier-bg.jpg') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
}

.hero-logo {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #d4af37;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.hero-tagline {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.8);
}

.hero-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-phone {
    font-size: 1.4rem;
    color: #d4af37;
    text-decoration: none;
}

/* ============================================= */
/*                BUTTONS                        */
/* ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border: 1px solid;
    background: transparent;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-telegram {
    border-color: #0088cc;
    color: #0088cc;
}

.btn-gold {
    border-color: #d4af37;
    color: #d4af37;
}

/* ============================================= */
/*           BACKGROUND SECTIONS                  */
/* ============================================= */
#philosophy1 { background: url('images/philosophy/philosophy.jpg') center / cover no-repeat; }
#philosophy2 { background: url('images/philosophy/private-atelier.jpg') center / cover no-repeat; }
#philosophy3 { background: url('images/philosophy/technology.jpg') center / cover no-repeat; }
#philosophy4 { background: url('images/philosophy/individuality.jpg') center / cover no-repeat; }
#philosophy5 { background: url('images/philosophy/baraka2_v2.jpg') center / cover no-repeat; }
#philosophy6 { background: url('images/philosophy/diamonds-bg.jpg') center / cover no-repeat; }
#philosophy10 { background: url('images/philosophy/timeless-bg.jpg') center / cover no-repeat; }
#categories { background: url('images/categories.jpg') center / cover no-repeat; }
#contact { background: url('images/philosophy/moscow-map-bg.jpg') center / cover no-repeat; }

#philosophy1::before,
#philosophy2::before,
#philosophy3::before,
#philosophy4::before,
#philosophy5::before,
#philosophy6::before,
#philosophy10::before,
#categories::before,
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

/* ============================================= */
/*              FOOTER                           */
/* ============================================= */
.footer {
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================= */
/*               RESPONSIVE                      */
/* ============================================= */
@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-text {
        font-size: 1.2rem;
    }

    .hero-logo {
        font-size: 3rem;
        letter-spacing: 5px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 2.3rem;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1.05rem;
    }
}

/* ========================================= */
/* MOBILE — PRODUCTS IMAGE SIZE FIX          */
/* ========================================= */

@media (max-width: 768px) {

    /* Ограничиваем высоту секции с фото */
    #products .section-content {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Сетка фото */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 30px auto;
    }

    /* Сами изображения — НЕ на весь экран */
    .products-grid img {
        width: 100%;
        height: auto;
        max-height: 45vh;          /* 🔥 КЛЮЧ */
        object-fit: cover;
        border-radius: 6px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {

    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .products-grid img {
        max-height: 40vh;
    }
}

/* ========================================= */
/* PROCESS VIDEO — SIZE CONTROL (DESKTOP)    */
/* ========================================= */

/* Ограничиваем высоту блока "Процесс" */
#process {
    min-height: 70vh;   /* было 100vh */
    height: 70vh;
    overflow: hidden;
}

/* Видео подстраивается под уменьшенную высоту */
#process .video-bg {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Контент по центру */
#process .section-content {
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================= */
/* PROCESS — VERTICAL & SMALL (FINAL)        */
/* ========================================= */

/* Убираем full-screen у блока */
#process {
    min-height: auto;
    padding: 80px 20px;
}

/* Контент — обычный столбик */
#process .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Видео — НЕ фон, а элемент */
#process .video-bg {
    position: relative;
    width: 100%;
    max-width: 520px;     /* 🔥 КЛЮЧ: ОГРАНИЧЕНИЕ РАЗМЕРА */
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Текст */
#process .section-title {
    margin-top: 20px;
}

#process .section-text {
    max-width: 600px;
}

/* Кнопка */
#process .btn {
    margin-top: 20px;
}

/* Мобила — ещё компактнее */
@media (max-width: 768px) {

    #process {
        padding: 60px 16px;
    }

    #process .video-bg {
        max-width: 100%;
        max-height: 220px;
    }
}

/* ========================================= */
/* PROCESS — VIDEO PLAYER (FINAL)            */
/* ========================================= */

.process-video {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
    border-radius: 10px;
    background: #000;
}

/* Мобила */
@media (max-width: 768px) {
    .process-video {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

/* ========================================= */
/* FIX: SHOW PROCESS VIDEO (PLAYER MODE)     */
/* ========================================= */

#process {
    position: relative;
    overflow: visible;
}

#process .process-video {
    position: relative !important;
    display: block !important;
    width: 100%;
    max-width: 900px;
    height: auto;

    margin: 0 auto 40px;

    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;

    background: #000;
    border-radius: 10px;
}

/* УБИВАЕМ все затемняющие слои В ЭТОМ БЛОКЕ */
#process::before,
#process::after {
    display: none !important;
}

/* ========================================= */
/* MOBILE — FIX LARGE GAPS BETWEEN SECTIONS  */
/* ========================================= */

@media (max-width: 768px) {

    /* Убираем экранную высоту у блоков */
    .section {
        min-height: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* После HERO — ещё компактнее */
    .section:not(.hero) {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Текстовые блоки — плотнее */
    .section-text {
        margin-bottom: 20px;
    }

    /* Заголовки — без лишнего воздуха */
    .section-title {
        margin-bottom: 25px;
    }
}

/* ============================== */
/* CONTACT — EMPTY BACKGROUND    */
/* ============================== */

#contact {
    position: relative;
    background: url("images/philosophy/moscow-map-bg.jpg") center / cover no-repeat;
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

#contact .section-content {
    position: relative;
    z-index: 2;
}

/* ============================== */
/* FIX: PROCESS → CONTACT BORDER */
/* ============================== */

/* Чётко ограничиваем блок "Процесс" */
#process {
    padding-bottom: 60px !important;
}

/* Кнопка процесса — только внутри process */
#process .btn {
    margin-bottom: 0 !important;
}

/* Контакты начинаются с чистого экрана */
#contact {
    margin-top: 0 !important;
    padding-top: 80px;
}

/* FINAL: одна кнопка Telegram — только в контактах */
#process .btn {
    display: none !important;
}

