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

:root {
    --primary: #000000;
    --accent: #2563eb;
    --bg-site: #ffffff;
    --zinc-900: #18181b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-site);
    color: var(--primary);
    overflow-x: hidden;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ЕДИНЫЙ СТИЛЬ ЗАГОЛОВКОВ БЛОКОВ */
.section-title {
    font-size: clamp(1rem, 10vw, 6rem);
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/Cultura/chistota-4.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.9);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
}

.huge-title-static {
    font-size: clamp(2rem, 14vw, 8rem);
    line-height: 0.8;
    letter-spacing: -0.07em;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
}

.huge-title-dynamic {
    font-size: clamp(1rem, 10vw, 6rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
}

#dynamic-word {
    display: inline-block;
    color: var(--accent);
    min-width: 250px;
}

.fade-in-out {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.vertical-text {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    font-weight: 900;
}

.btn-industrial {
    background: var(--primary);
    color: white;
    padding: 2rem 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    cursor: pointer;
    z-index: 10;
}

.btn-industrial:hover {
    background: var(--accent);
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
}

.manifesto-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.manifesto-card:hover {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.05);
}

.grid-bg {
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 30px 30px;
}

.blueprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 2;
}

/* КУЛЬТУРА ПРОИЗВОДСТВА - СЕТКА */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.culture-grid-item {
    position: relative;
    overflow: hidden;
    background: #111;
}

/* Управление размерами блоков в сетке */
.item-lg {
    grid-column: span 3;
    grid-row: span 2;
}

/* Большой квадрат */
.item-wd {
    grid-column: span 2;
    grid-row: span 1;
}

.item-wd-2 {
    grid-column: span 2;
    grid-row: span 2;
}

/* Широкий */
.item-sm {
    grid-column: span 1;
    grid-row: span 1;
}

/* Малый */

@media (max-width: 1024px) {
    .culture-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .item-lg {
        grid-column: span 4;
    }

    .item-wd, .item-wd-2 {
        grid-column: span 4;
    }

    .item-sm {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .culture-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .item-lg,
    .item-wd,
    .item-wd-2,
    .item-sm {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.culture-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.culture-grid-item:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.culture-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.culture-grid-item:hover .culture-overlay {
    opacity: 1;
}

.service-item {
    display: flex;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.service-number {
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 4px;
}

.work-card {
    border: 1px solid #eee;
    background: white;
    transition: transform 0.3s ease;
}

.work-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f3f4f6;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.work-card:hover img {
    filter: grayscale(0%);
}

.review-box {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 1rem;
    right: 0;
    font-size: 4rem;
    line-height: 1;
    font-family: serif;
    color: #f0f0f0;
    z-index: 0;
}

.status-badge {
    background: black;
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    display: inline-block;
}

.dot-pattern {
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 8px 8px;
}

/* Модалка */
#success-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* МОДАЛКА (SPLIT VIEW) */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 10000;
    overflow: hidden;
}

.modal-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Левая часть: Галерея */
.modal-left {
    flex: 1;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Правая часть: Инфо */
.modal-right {
    width: 450px;
    background: white;
    border-left: 1px solid #eee;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

#gallery-content-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* СКРОЛЛ ДЛЯ ОТЗЫВА */
.review-slide {
    padding: 1rem;
    color: white;
    max-width: 95vh;
    max-height: 80%;
    overflow-y: auto;
    text-align: left;
}

/* Стилизация HTML тегов внутри отзыва */
.review-slide h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
}

.review-slide b,
.review-slide strong {
    color: var(--accent);
}

/* Кастомный скроллбар для темной темы отзыва */
.review-slide::-webkit-scrollbar {
    width: 4px;
}

.review-slide::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.review-slide::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.nav-btn:hover {
    background: var(--accent);
}

.close-modal-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    z-index: 100;
    background: black;
    color: white;
    padding: 10px 20px;
}

@media (max-width: 1024px) {
    .manifesto-card { padding: 1.3rem; }
    section.px-10{
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .modal-container { flex-direction: column; }
    .modal-left { height: 60vh; flex: none; }
    .modal-right { 
        display: block;
        width: 100%; 
        height: 40vh; 
        padding: 1.5rem; 
        border-left: none;
        border-top: 1px solid #eee;
    }
    #modal-title { font-size: 1.2rem !important; margin-bottom: 1rem !important; }
    .modal-right .space-y-6 { 
        margin-top: 1rem !important; 
        margin-bottom: 1rem !important; 
        padding-top: 1rem !important; 
        padding-bottom: 1rem !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        space-y: 0 !important;
    }
    .modal-right .space-y-6 > div { margin-top: 0 !important; }
    .modal-right .text-xl { font-size: 0.875rem !important; }
    .modal-right .status-badge { margin-bottom: 0.5rem !important; }
    .params-title, .modal-offer{ display: none !important; }
    .btn-industrial { padding: 1rem 1.5rem !important; width: 100%; font-size: 1.2rem !important; }
    .close-modal-btn { top: 1rem; right: 1rem; font-size: 10px; padding: 8px 12px; }
    .nav-btn { width: 40px; height: 40px; }
    #gallery-content-area { padding: 1rem; }
    .review-slide { padding: 1rem; }
    .review-slide h2 { font-size: 1.1rem; }
    .review-slide .text-lg { font-size: 0.9rem; }
}