/* ============================================
   RITZ MEBEL - СТИЛИ САЙТА
   BRANDING BY ICE IN ART STUDIO® 2025
   ============================================ */

/* === ШРИФТ ЗАГРУЖАЕТСЯ ЧЕРЕЗ LINK В HEADER (оптимизация скорости) === */

/* === CSS ПЕРЕМЕННЫЕ RITZ MEBEL === */
/* Оптимизация для мобильных устройств */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Отключение backdrop-filter на слабых устройствах */
@supports not (backdrop-filter: blur(10px)) {
    .header,
    .filter-btn,
    .timeline-card,
    .carousel-prev,
    .carousel-next,
    .lightbox,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .lightbox-counter {
        background: rgba(0, 0, 0, 0.8) !important;
    }
}

:root {
    /* Фирменная палитра RITZ MEBEL */
    --color-charcoal: #2F2F2F;           /* Charcoal - темный антрацитовый */
    --color-slate-forest: #8A9A8E;       /* Slate Forest Fern - серо-зелёный */
    --color-ash-wood: #B89C82;           /* Ash Wood - древесный оттенок */
    --color-clay-beige: #E0D7CE;         /* Clay Beige - нейтральный тёплый */
    
    /* Яркие версии для акцентов */
    --color-forest-bright: #6B8E6F;      /* Более яркий зеленый */
    --color-wood-bright: #A67C52;        /* Более яркий древесный */
    --color-forest-light: #A8B8AC;       /* Светлый зеленый */
    --color-wood-light: #D4B89A;         /* Светлый древесный */
    
    /* Акцентные цвета для CTA и УТП */
    --color-cta-primary: #5A8B5F;        /* Яркий зеленый для CTA */
    --color-cta-secondary: #9D6B47;      /* Теплый коричневый для CTA */
    --color-cta-accent: #7FA084;         /* Светлый зеленый акцент */
    --color-utp-highlight: #C4A882;      /* Золотистый для УТП */
    --color-utp-text: #4A6B4E;           /* Темно-зеленый для УТП текста */
    --color-utp-bg: #F0F5F1;             /* Светло-зеленый фон для УТП */
    --color-badge: #8B6F47;              /* Коричневый для бейджей */
    
    /* Основные цвета на основе палитры - более яркие */
    --color-primary: var(--color-forest-bright);
    --color-primary-hover: #5a7a5e;
    --color-primary-light: #E8F0EA;
    --color-secondary: var(--color-charcoal);
    --color-accent: var(--color-wood-bright);
    --color-accent-light: var(--color-wood-light);
    --color-text: var(--color-charcoal);
    --color-text-secondary: #4a4a4a;
    --color-text-light: #7a7a7a;
    --color-bg: #E0E0E0;
    --color-bg-alt: #D0D0D0;
    --color-border: #D4C4B8;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --header-height: 70px;
    --container-width: 1200px;
    --container-padding: 20px;
}

/* === ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ === */
/* Оптимизация рендеринга для больших секций */
.value,
.portfolio,
.services,
.process,
.testimonials,
.stats,
.cta,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Оптимизация шрифтов */
@font-face {
    font-display: swap;
}

/* === СБРОС СТИЛЕЙ === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: -0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* === КОНТЕЙНЕР === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* === УТИЛИТЫ === */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Переопределение для темных секций */
.process .section-title,
.services .section-title,
.testimonials .section-title,
.value .section-title,
.cta .section-title,
.footer .section-title {
    color: white;
}

.process .section-subtitle,
.services .section-subtitle,
.testimonials .section-subtitle,
.value .section-subtitle,
.cta .section-subtitle,
.footer .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-base);
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-forest-bright) 100%);
    color: white;
    border-color: var(--color-cta-primary);
    box-shadow: 0 4px 16px rgba(90, 139, 95, 0.4);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-cta-primary) 100%);
    border-color: var(--color-cta-primary);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 32px rgba(90, 139, 95, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-charcoal) 0%, #3a3a3a 100%);
    color: white;
    border-color: var(--color-charcoal);
    box-shadow: 0 4px 12px rgba(47, 47, 47, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, var(--color-charcoal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 47, 47, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: #F0F0F0;
    color: var(--color-secondary);
}

.btn-white {
    background: linear-gradient(135deg, #F0F0F0 0%, #E8E8E8 100%);
    color: var(--color-utp-text);
    border-color: #E0E0E0;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(90, 139, 95, 0.3);
}

.btn-white:hover {
    background: linear-gradient(135deg, #E8E8E8 0%, #F0F0F0 100%);
    color: var(--color-cta-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(90, 139, 95, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* === ХЕДЕР / НАВИГАЦИЯ === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(47, 47, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition);
}

.nav-phone:hover {
    color: rgba(255, 255, 255, 1);
}

.phone-icon {
    font-size: 1.25rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.95);
    transition: all var(--transition);
}

/* === HERO СЕКЦИЯ === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-video-wrapper.video-error .hero-video {
    display: none;
}

.hero-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-slate-forest) 50%, var(--color-ash-wood) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    z-index: 1;
}

.hero-video-wrapper video {
    position: relative;
    z-index: 2;
}

.hero-video-wrapper.video-error::before {
    z-index: 2;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: calc(var(--header-height) + 40px) 20px 40px;
}

.hero-logo {
    display: block;
    margin: 0 auto 2rem;
    max-width: 300px;
    width: 100%;
    height: auto;
    min-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: float 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 30px rgba(90, 139, 95, 0.4));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    animation: slide-in-left 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 0.95;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-feature:hover::before {
    left: 100%;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-feature:nth-child(1) {
    animation: float 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 0s;
}

.hero-feature:nth-child(2) {
    animation: float 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 0.7s;
}

.hero-feature:nth-child(3) {
    animation: float 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 1.4s;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-utp-highlight);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(196, 168, 130, 0.5);
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-icon {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    animation: scroll-bounce 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.6; }
}

/* === ЦЕННОСТНАЯ ПРОПОЗИЦИЯ === */
.value {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.value::before {
    display: none;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    color: var(--color-text);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.1) 0%, rgba(184, 156, 130, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}

.value-card:hover::before {
    opacity: 1;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cta-primary) 0%, var(--color-utp-highlight) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.value-card:nth-child(1) {
    animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:nth-child(2) {
    animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}

.value-card:nth-child(3) {
    animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.value-card:nth-child(4) {
    animation: slide-in-left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s both;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.3) 0%, rgba(184, 156, 130, 0.2) 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.3);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.value-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cta-primary), var(--color-utp-highlight));
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.value-card:hover .value-icon {
    transform: rotate(360deg) scale(1.08);
    box-shadow: 0 8px 24px rgba(90, 139, 95, 0.4);
}

.value-card:hover .value-icon::before {
    opacity: 0.3;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-secondary);
    position: relative;
    z-index: 1;
}

.value-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.value-text strong {
    color: var(--color-secondary);
    font-weight: 600;
}

/* === ПОРТФОЛИО === */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, #1f1f1f 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradient-shift 13s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.portfolio .section-title {
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: white;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-forest-bright) 100%);
    border-color: var(--color-cta-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(90, 139, 95, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

/* Гарантируем, что скрытые элементы действительно скрыты */
.gallery-item-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    overflow: hidden !important;
    height: 0 !important;
}

/* Убеждаемся, что видимые элементы отображаются правильно */
.gallery-item:not(.gallery-item-hidden) {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.2) 0%, rgba(196, 168, 130, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.gallery-overlay p {
    font-size: 0.875rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.portfolio-cta .btn {
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(90, 139, 95, 0.5);
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-forest-bright) 100%);
}

.portfolio-cta .btn:hover {
    box-shadow: 0 12px 32px rgba(90, 139, 95, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-cta-primary) 100%);
}

/* === УСЛУГИ === */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.services::before {
    display: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--color-border);
    position: relative;
    color: var(--color-text);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(184, 156, 130, 0.1) 0%, rgba(90, 139, 95, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--color-primary);
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-image {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.1) 0%, rgba(196, 168, 130, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

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

.service-content {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-charcoal);
}

.service-text {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 20px;
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 24px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-forest-bright);
    font-weight: bold;
    font-size: 1.1em;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-wood-bright);
    margin-bottom: 16px;
}

/* === ПРОЦЕСС РАБОТЫ === */
.process {
    padding: 120px 0;
    background: linear-gradient(135deg, #1f1f1f 0%, #252525 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 9s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradient-shift 13s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.process-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.process .section-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.timeline-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(90, 139, 95, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:hover::after {
    width: 300px;
    height: 300px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-forest-bright) 0%, var(--color-wood-bright) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(90, 139, 95, 0.3);
}

.timeline-item:hover::before {
    transform: scaleX(1);
}

.timeline-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-wood-bright) 100%);
    border-radius: 16px;
    color: white;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(107, 142, 111, 0.3);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 32px rgba(90, 139, 95, 0.6);
    animation: glow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-icon svg {
    width: 28px;
    height: 28px;
}

.timeline-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.timeline-content {
    position: relative;
    z-index: 2;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-weight: 300;
}

.timeline-item:not(:last-child)::after {
    display: none;
}

.process-cta {
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.process-cta .btn {
    padding: 18px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(90, 139, 95, 0.5);
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-forest-bright) 100%);
}

.process-cta .btn:hover {
    box-shadow: 0 12px 32px rgba(90, 139, 95, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-cta-primary) 100%);
}

/* === ОТЗЫВЫ === */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 50%, #2f2f2f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(196, 168, 130, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(107, 142, 111, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    min-height: 300px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-card {
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-wood-bright);
    border: 1px solid var(--color-border);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: var(--color-text);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.05) 0%, rgba(184, 156, 130, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-cta-primary) 0%, var(--color-utp-highlight) 100%);
    transition: height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover::before {
    height: 100%;
}

.testimonial-card:hover {
    transform: translateX(6px) scale(1.015);
    box-shadow: 0 16px 32px rgba(90, 139, 95, 0.15);
    border-color: var(--color-forest-light);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-secondary);
    position: relative;
    z-index: 1;
}

.testimonial-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

.testimonial-rating {
    color: var(--color-wood-bright);
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(184, 156, 130, 0.2);
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    border-left: 3px solid var(--color-forest-bright);
    padding-left: 20px;
    position: relative;
    z-index: 1;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-slate-forest) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.4);
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.carousel-dot.active {
    background: var(--color-forest-bright);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(107, 142, 111, 0.5);
}

/* === СТАТИСТИКА === */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-slate-forest) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 10s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* === CTA БЛОК === */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #2f2f2f 0%, #252525 50%, #2a2a2a 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(90, 139, 95, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 50% 70%, rgba(196, 168, 130, 0.15) 0%, transparent 60%);
    pointer-events: none;
    animation: gradient-shift 19s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-utp-highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(196, 168, 130, 0.3);
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-text strong {
    color: var(--color-utp-highlight);
    font-weight: 600;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
}

.cta-icon {
    font-size: 1.25rem;
}

/* === ФУТЕР === */
.footer {
    padding: 80px 0 30px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    background-size: 200% 200%;
    animation: gradient-shift 20s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 0% 0%, rgba(90, 139, 95, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(184, 156, 130, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: gradient-shift 22s cubic-bezier(0.4, 0, 0.6, 1) infinite reverse;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-logo-img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.footer-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-wood-bright) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.3);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contacts {
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.contact-item:hover {
    color: white;
}

.contact-icon {
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* === МОДАЛЬНЫЕ ОКНА === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #F0F0F0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-lg {
    max-width: 600px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-base);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
}

.modal-subtitle {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* === ФОРМЫ === */
/* Honeypot поля - полностью скрыты от пользователей */
.h-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition);
    background: #F0F0F0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--color-error);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input {
    padding-right: 80px;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.error-message {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: 6px;
}

.form-error-message {
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: var(--radius-base);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    border: 1px solid #fecaca;
}

.form-success-message {
    background-color: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: var(--radius-base);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    border: 1px solid #bbf7d0;
}

/* === ЧЕКБОКСЫ И РАДИО === */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.checkbox-policy {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.checkbox-policy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group-inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    transition: all var(--transition);
}

.radio-group-inline .radio-label {
    padding: 10px 16px;
}

.radio-label:hover {
    border-color: var(--color-primary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
    margin-top: 2px;
}

.radio-label input[type="radio"]:checked + .radio-box {
    border-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked + .radio-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-text strong {
    font-weight: 500;
}

.radio-text small {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* === РЕЗУЛЬТАТ КАЛЬКУЛЯТОРА === */
.calc-result {
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
}

.calc-result-content {
    text-align: center;
    margin-bottom: 20px;
}

.calc-result-label {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.calc-result-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.calc-result-note {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* === ЛАЙТБОКС === */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.open .lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.lightbox-image.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-image.fade-in {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 20;
    opacity: 0;
    transform: scale(0.7) translateY(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox.open .lightbox-close,
.lightbox.open .lightbox-prev,
.lightbox.open .lightbox-next {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.08) translateY(0);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.96) translateY(0);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 56px;
    height: 56px;
    font-size: 0;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
    left: 24px;
    transform: translateY(-50%) scale(0.7) translateX(-10px);
}

.lightbox-next {
    right: 24px;
    transform: translateY(-50%) scale(0.7) translateX(10px);
}

.lightbox.open .lightbox-prev {
    transform: translateY(-50%) scale(1) translateX(0);
}

.lightbox.open .lightbox-next {
    transform: translateY(-50%) scale(1) translateX(0);
}

.lightbox-prev::before,
.lightbox-next::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transition: all 0.3s ease;
}

.lightbox-prev::before {
    transform: rotate(-135deg);
    left: 20px;
}

.lightbox-next::before {
    transform: rotate(45deg);
    right: 20px;
}

.lightbox-prev:hover::before,
.lightbox-next:hover::before {
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.lightbox-prev:hover::before {
    transform: rotate(-135deg) scale(1.2);
}

.lightbox-next:hover::before {
    transform: rotate(45deg) scale(1.2);
}

.lightbox-counter .lightbox-current {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.lightbox-counter {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 20;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox.open .lightbox-counter {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.lightbox-counter .lightbox-current {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
}

.lightbox-counter .lightbox-total {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* === УТИЛИТЫ ДЛЯ BODY === */
body.modal-open {
    overflow: hidden;
}

body.lightbox-open {
    overflow: hidden;
}

/* Адаптивность для lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98vh;
    }
    
    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
    }
    
    .lightbox-prev {
        left: 16px;
    }
    
    .lightbox-next {
        right: 16px;
    }
    
    .lightbox-prev::before,
    .lightbox-next::before {
        width: 10px;
        height: 10px;
    }
    
    .lightbox-prev::before {
        left: 16px;
    }
    
    .lightbox-next::before {
        right: 16px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-image {
        max-height: 85vh;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.875rem;
        padding: 8px 20px;
    }
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) {
    .carousel-prev {
        left: -20px;
    }
    
    .carousel-next {
        right: -20px;
    }
}

@media (max-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .process .section-title {
        font-size: 2.25rem;
    }
    
    .process .section-subtitle {
        font-size: 1.125rem;
    }
    
    .timeline-item {
        padding: 30px 24px;
    }
    
    .timeline-icon {
        width: 56px;
        height: 56px;
    }
    
    .timeline-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .timeline-content p {
        font-size: 0.9375rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Оптимизация для мобильных - отключаем тяжелые эффекты */
    .header,
    .filter-btn,
    .timeline-card,
    .carousel-prev,
    .carousel-next,
    .lightbox,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .lightbox-counter {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Упрощаем анимации на мобильных */
    .value-card,
    .service-card,
    .timeline-item,
    .gallery-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        will-change: auto;
    }
    
    /* Оптимизация изображений для мобильных */
    img {
        max-width: 100%;
        height: auto;
        image-rendering: -webkit-optimize-contrast;
    }
    
    /* Предотвращение задержек при touch */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    button,
    .btn,
    a,
    .gallery-item,
    .value-card,
    .service-card {
        touch-action: manipulation;
        -webkit-touch-callout: none;
    }
    
    /* Отключаем сложные градиентные анимации на мобильных */
    .value,
    .portfolio,
    .services,
    .process,
    .testimonials,
    .stats,
    .cta,
    .footer {
        animation: none !important;
    }
    
    .value::before,
    .portfolio::before,
    .portfolio::after,
    .services::before,
    .process::before,
    .process::after {
        animation: none !important;
    }
    
    /* Оптимизация touch событий */
    button,
    .btn,
    a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    :root {
        --header-height: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Навигация */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(47, 47, 47, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .phone-number {
        display: none;
    }
    
    /* Hero */
    .hero-logo {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Секции */
    .value,
    .portfolio,
    .services,
    .process,
    .testimonials,
    .cta {
        padding: 60px 0;
    }
    
    .value-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process {
        padding: 80px 0;
    }
    
    .process-header {
        margin-bottom: 50px;
    }
    
    .process .section-title {
        font-size: 2rem;
    }
    
    .process .section-subtitle {
        font-size: 1rem;
    }
    
    .timeline-item {
        padding: 32px 20px;
    }
    
    .timeline-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    
    .timeline-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
        top: 16px;
        right: 16px;
    }
    
    .timeline-content h3 {
        font-size: 1.125rem;
        margin-bottom: 12px;
    }
    
    .timeline-content p {
        font-size: 0.875rem;
    }
    
    .process-cta {
        margin-top: 50px;
    }
    
    /* Карусель */
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .cta-content .btn {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        font-size: 0.9375rem;
        padding: 14px 20px;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        text-align: center;
    }
    
    .portfolio-cta .btn {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        font-size: 0.9375rem;
        padding: 14px 20px;
        white-space: normal;
        word-wrap: break-word;
        box-sizing: border-box;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        text-align: center;
    }
    
    /* Футер */
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Модальные окна */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group-inline {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 150px;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    /* CTA кнопка на маленьких экранах */
    .cta-content .btn {
        font-size: 0.875rem;
        padding: 12px 16px;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0 auto;
        display: flex;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .portfolio-cta .btn {
        font-size: 0.875rem;
        padding: 12px 16px;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0 auto;
        display: flex;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }
}

/* === АНИМАЦИИ ПРИ СКРОЛЛЕ === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* === ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ === */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.03);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(90, 139, 95, 0.4);
    }
    50% {
        box-shadow: 0 0 28px rgba(90, 139, 95, 0.5), 0 0 36px rgba(196, 168, 130, 0.3);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === PLACEHOLDER ИЗОБРАЖЕНИЯ === */
.gallery-item img,
.service-image img,
.testimonial-avatar img {
    position: relative;
    min-height: 200px;
}

.gallery-item img:not([src]),
.gallery-item img[src=""],
.service-image img:not([src]),
.service-image img[src=""],
.testimonial-avatar img:not([src]),
.testimonial-avatar img[src=""] {
    background: linear-gradient(135deg, var(--color-clay-beige) 0%, var(--color-forest-light) 50%, var(--color-wood-light) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img:not([src])::before,
.gallery-item img[src=""]::before,
.service-image img:not([src])::before,
.service-image img[src=""]::before {
    content: '📷';
    font-size: 3rem;
    opacity: 0.4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gallery-item img:not([src])::after,
.gallery-item img[src=""]::after,
.service-image img:not([src])::after,
.service-image img[src=""]::after {
    content: attr(alt);
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-charcoal);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Специфичные placeholder'ы для разных категорий */
.gallery-item[data-category="kitchen"] img:not([src]),
.gallery-item[data-category="kitchen"] img[src=""] {
    background: linear-gradient(135deg, #E8D5C4 0%, #D4B89A 50%, #C4A882 100%);
}

.gallery-item[data-category="kitchen"] img:not([src])::before,
.gallery-item[data-category="kitchen"] img[src=""]::before {
    content: '🍽️';
}

.gallery-item[data-category="wardrobe"] img:not([src]),
.gallery-item[data-category="wardrobe"] img[src=""] {
    background: linear-gradient(135deg, #A8B8AC 0%, #8A9A8E 50%, #6B8E6F 100%);
}

.gallery-item[data-category="wardrobe"] img:not([src])::before,
.gallery-item[data-category="wardrobe"] img[src=""]::before {
    content: '🚪';
}

.gallery-item[data-category="closet"] img:not([src]),
.gallery-item[data-category="closet"] img[src=""] {
    background: linear-gradient(135deg, #D4C4B8 0%, #B89C82 50%, #9D6B47 100%);
}

.gallery-item[data-category="closet"] img:not([src])::before,
.gallery-item[data-category="closet"] img[src=""]::before {
    content: '👔';
}

.gallery-item[data-category="office"] img:not([src]),
.gallery-item[data-category="office"] img[src=""] {
    background: linear-gradient(135deg, #C4C4B4 0%, #A8A898 50%, #8A8A7A 100%);
}

.gallery-item[data-category="office"] img:not([src])::before,
.gallery-item[data-category="office"] img[src=""]::before {
    content: '💼';
}

.service-image img:not([src]),
.service-image img[src=""] {
    background: linear-gradient(135deg, var(--color-clay-beige) 0%, var(--color-forest-light) 100%);
}

.testimonial-avatar img:not([src]),
.testimonial-avatar img[src=""] {
    background: linear-gradient(135deg, var(--color-utp-highlight) 0%, var(--color-wood-bright) 100%);
    border: 3px solid var(--color-forest-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.testimonial-avatar img:not([src])::before,
.testimonial-avatar img[src=""]::before {
    content: '👤';
    font-size: 2rem;
    opacity: 0.8;
}

/* === БЛОГ: ПРЕМИАЛЬНАЯ ТИПОГРАФИКА === */
/* Основано на принципах World-Class чтения (Stripe/Linear/Medium) */

.blog-post-page {
    padding: 80px 0 120px;
    background: #FAFAFA;
}

.blog-post {
    max-width: 680px;
    margin: 0 auto;
}

/* Заголовок поста */
.blog-post-header {
    margin-bottom: 64px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-family: 'Inter', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 32px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--color-primary);
}

.blog-post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-charcoal);
    margin-bottom: 24px;
}


.blog-post-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.75rem;
    font-family: 'Inter', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.blog-post-meta .date,
.blog-post-meta .category {
    position: relative;
}

.blog-post-meta .date::after {
    content: '•';
    margin-left: 24px;
    opacity: 0.5;
}

/* Контент поста */
.blog-post-content {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(47, 47, 47, 0.85);
    font-weight: 400;
}

/* Lead абзац */
.blog-post-content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-charcoal);
    font-weight: 400;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Заголовки */
.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
    margin-top: 64px;
    margin-bottom: 24px;
}


.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-charcoal);
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-charcoal);
    margin-top: 36px;
    margin-bottom: 16px;
}

/* Параграфы */
.blog-post-content p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(47, 47, 47, 0.85);
}

/* Списки */
.blog-post-content ul,
.blog-post-content ol {
    margin: 24px 0;
    padding-left: 32px;
    list-style: disc;
}

.blog-post-content ol {
    list-style: decimal;
}

.blog-post-content li {
    margin-bottom: 12px;
    line-height: 1.75;
    color: rgba(47, 47, 47, 0.85);
}

.blog-post-content li::marker {
    color: var(--color-primary);
}

.blog-post-content ul ul,
.blog-post-content ol ol {
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Цитаты */
.blog-post-content blockquote {
    margin: 48px 0;
    padding-left: 32px;
    border-left: 4px solid var(--color-primary);
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(47, 47, 47, 0.75);
}

/* Код */
.blog-post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-charcoal);
}

.blog-post-content pre {
    margin: 32px 0;
    padding: 24px;
    background: #1e1e1e;
    border-radius: 12px;
    overflow-x: auto;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: #d4d4d4;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Изображения */
.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 48px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-post-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 32px 0;
}

/* CTA блок */
.blog-post-content .cta-block {
    margin: 64px 0;
    padding: 40px;
    background: linear-gradient(135deg, rgba(90, 139, 95, 0.05) 0%, rgba(184, 156, 130, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(90, 139, 95, 0.2);
    text-align: center;
}

.blog-post-content .cta-block h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 12px;
}

.blog-post-content .cta-block p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.blog-post-content .cta-block .btn {
    color: white !important;
    background: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-forest-bright) 100%) !important;
    border-color: var(--color-cta-primary) !important;
    box-shadow: 0 4px 16px rgba(90, 139, 95, 0.4) !important;
}

.blog-post-content .cta-block .btn:hover {
    color: white !important;
    background: linear-gradient(135deg, var(--color-forest-bright) 0%, var(--color-cta-primary) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(90, 139, 95, 0.5) !important;
}

/* Сильные выделения */
.blog-post-content strong {
    font-weight: 600;
    color: var(--color-charcoal);
}

/* Ссылки */
.blog-post-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.blog-post-content a:hover {
    color: var(--color-forest-bright);
}

/* Список блогов */
.blog-listing {
    padding: 100px 0;
    background: #FAFAFA;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}


.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

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

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-family: 'Inter', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.blog-date,
.blog-category {
    position: relative;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
    margin-bottom: 12px;
}

.blog-card-title a {
    color: inherit;
    transition: color var(--transition);
}

.blog-card-title a:hover {
    color: var(--color-primary);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(47, 47, 47, 0.7);
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: gap var(--transition);
}

.blog-card-link:hover {
    gap: 12px;
    color: var(--color-forest-bright);
}

/* === МОБИЛЬНАЯ ОПТИМИЗАЦИЯ БЛОГА === */
@media (max-width: 768px) {
    .blog-post-page {
        padding: 60px 0 80px;
    }
    
    .blog-post {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .blog-post-header {
        margin-bottom: 48px;
        padding-bottom: 24px;
    }
    
    .back-link {
        font-size: 0.8125rem;
        margin-bottom: 24px;
    }
    
    .blog-post-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .blog-post-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.6875rem;
    }
    
    .blog-post-meta .date::after {
        display: none;
    }
    
    .blog-post-content {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .blog-post-content .lead {
        font-size: 1.125rem;
        line-height: 1.65;
        margin-bottom: 36px;
        padding-bottom: 24px;
    }
    
    .blog-post-content h2 {
        font-size: 1.625rem;
        line-height: 1.25;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    
    .blog-post-content h3 {
        font-size: 1.375rem;
        margin-top: 36px;
        margin-bottom: 16px;
    }
    
    .blog-post-content h4 {
        font-size: 1.125rem;
        margin-top: 28px;
        margin-bottom: 12px;
    }
    
    .blog-post-content p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.7;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        margin: 20px 0;
        padding-left: 24px;
    }
    
    .blog-post-content li {
        margin-bottom: 10px;
        line-height: 1.7;
    }
    
    .blog-post-content blockquote {
        margin: 32px 0;
        padding-left: 20px;
        font-size: 1rem;
    }
    
    .blog-post-content code {
        font-size: 0.875em;
        padding: 2px 5px;
    }
    
    .blog-post-content pre {
        margin: 24px -16px;
        padding: 20px 16px;
        border-radius: 8px;
        font-size: 0.8125rem;
    }
    
    .blog-post-image {
        margin: 32px -16px;
        border-radius: 12px;
    }
    
    .blog-post-content img {
        margin: 24px -16px;
        border-radius: 8px;
    }
    
    .blog-post-content .cta-block {
        margin: 48px -16px;
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .blog-post-content .cta-block h3 {
        font-size: 1.375rem;
    }
    
    .blog-post-content .cta-block p {
        font-size: 0.9375rem;
    }
    
    .blog-listing {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 24px;
    }
    
    .blog-meta {
        gap: 12px;
        font-size: 0.6875rem;
        margin-bottom: 12px;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .blog-card-excerpt {
        font-size: 0.9375rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .blog-post-page {
        padding: 40px 0 60px;
    }
    
    .blog-post {
        padding: 0 12px;
    }
    
    .blog-post-header {
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .back-link {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .blog-post-meta {
        font-size: 0.625rem;
        gap: 8px;
    }
    
    .blog-post-content {
        font-size: 15px;
    }
    
    .blog-post-content .lead {
        font-size: 1.0625rem;
        margin-bottom: 32px;
        padding-bottom: 20px;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
        margin-top: 32px;
        margin-bottom: 16px;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
        margin-top: 28px;
        margin-bottom: 12px;
    }
    
    .blog-post-content h4 {
        font-size: 1.0625rem;
        margin-top: 24px;
        margin-bottom: 10px;
    }
    
    .blog-post-content p {
        font-size: 15px;
        margin-bottom: 18px;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        padding-left: 20px;
        margin: 18px 0;
    }
    
    .blog-post-content blockquote {
        margin: 28px -12px;
        padding-left: 16px;
        font-size: 0.9375rem;
    }
    
    .blog-post-content pre {
        margin: 20px -12px;
        padding: 16px 12px;
        font-size: 0.75rem;
    }
    
    .blog-post-image {
        margin: 28px -12px;
        border-radius: 8px;
    }
    
    .blog-post-content img {
        margin: 20px -12px;
        border-radius: 6px;
    }
    
    .blog-post-content .cta-block {
        margin: 40px -12px;
        padding: 24px 20px;
        border-radius: 10px;
    }
    
    .blog-post-content .cta-block h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .blog-post-content .cta-block p {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .blog-grid {
        gap: 24px;
        margin-top: 32px;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 1.125rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.875rem;
    }
    
    .blog-card-link {
        font-size: 0.875rem;
    }
}
