:root {
    --primary-dark: #0b2b26; /* Обновленный темно-зеленый цвет */
    --text-main: #333;
    --text-light: #666;
    --bg-light: #fbfbfb;
    --transition: all 0.4s ease;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--text-main); background: var(--bg-light); line-height: 1.7; overflow-x: hidden; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; } 
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Прелоадер */
.preloader { position: fixed; inset: 0; background: #111; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }

/* Логотип */
.logo { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 2px; font-family: var(--font-serif); }
.logo-sub { font-size: 12px; font-family: var(--font-sans); font-weight: 400; opacity: 0.7; letter-spacing: 1px; }
.logo-dark { color: #111; }
.logo-dark .logo-sub { color: #555; }

/* Навигация с разделителем */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: transform 0.4s ease, background 0.4s ease, padding 0.4s ease, border-color 0.4s ease; background: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Полоса под шапкой */ }
.navbar.scrolled { background: #111; padding: 15px 0; border-bottom-color: rgba(255, 255, 255, 0.05); }
.navbar.hidden { transform: translateY(-100%); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 40px; }
.lang-selector { color: #fff; font-size: 12px; font-weight: 500; cursor: pointer; letter-spacing: 1px; }
.lang-link { opacity: 0.5; transition: var(--transition); }
.lang-link:hover, .lang-link.active { opacity: 1; }
.lang-sep { margin: 0 5px; opacity: 0.3; }

.menu-btn { display: flex; align-items: center; gap: 15px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.burger-icon { display: flex; flex-direction: column; gap: 6px; }
.burger-icon span { display: block; width: 30px; height: 1px; background: #fff; transition: var(--transition); }
.menu-btn:hover .burger-icon span:last-child { width: 20px; }

/* Боковое меню */
.sidebar { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh; background: #fff; z-index: 2000; padding: 60px; transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1); color: #111; }
.sidebar.active { right: 0; }
[dir="rtl"] .sidebar { right: auto; left: -450px; }
[dir="rtl"] .sidebar.active { left: 0; }

/* Исправленный крестик */
.sidebar-header { text-align: right; margin-bottom: 50px; }
.close-btn { font-size: 32px; cursor: pointer; color: #111; transition: transform 0.3s ease; display: inline-block; font-weight: 300; line-height: 1; }
.close-btn:hover { transform: rotate(90deg); }

.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 25px; }
.sidebar-nav > ul > li > a { font-family: var(--font-serif); font-size: 26px; color: #111; transition: var(--transition); }
.sidebar-nav > ul > li > a:hover { opacity: 0.6; }
.side-sep { width: 100%; height: 1px; background: #eee; margin: 40px 0; }

/* Подменю (меньше и тусклее) */
.sub-nav li { margin-bottom: 15px; }
.sub-nav a { font-size: 13px; color: #888; font-weight: 400; transition: var(--transition); letter-spacing: 0.5px; }
.sub-nav a:hover { color: #333; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(3px); }
.overlay.active { opacity: 1; visibility: visible; }

/* Герой-секция */
.hero-editorial { position: relative; height: 100vh; display: flex; align-items: center; overflow: hidden; background: #111; }
.hero-bg-slider { position: absolute; inset: 0; z-index: 1; }
.hero-bg-slider .slide { 
    position: absolute; inset: 0; background-size: cover; background-position: center; 
    opacity: 0; transform: scale(1); transition: opacity 2.5s ease-in-out, transform 6s linear; 
}
.hero-bg-slider .slide.active { opacity: 1; transform: scale(1.08); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 2; }

/* Опустили текст ниже */
.hero-inner { position: relative; z-index: 3; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 3.5%; }

.hero-text-box { color: #fff; width: 100%; max-width: 1400px; margin: 0 auto; }
.sub-label { font-size: 11px; letter-spacing: 3px; margin-bottom: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 15px; opacity: 0.9; }
.line-deco-vertical { width: 1px; height: 16px; background: #fff; display: inline-block; } 

.main-title { font-family: var(--font-serif); font-size: 6.5rem; font-weight: 400; line-height: 1; margin-bottom: 30px; }
.hero-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.3); margin-bottom: 30px; } 

.hero-bottom-grid { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-desc { font-size: 1.1rem; color: #e0e0e0; max-width: 650px; font-weight: 300; }
.scroll-down-btn { border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; transition: var(--transition); color: #fff; margin-top: 10px; }
.scroll-down-btn:hover { background: #fff; color: #111; }

section { padding: 120px 0; }
.section-title { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 400; color: #111; margin-bottom: 80px; text-align: center; }
.section-title.left-align { text-align: left; }
[dir="rtl"] .section-title.left-align { text-align: right; }
.text-white { color: #fff !important; }

/* Эффекты при наведении */
.gray-hover, .obj-image img, .map-container iframe { filter: grayscale(100%); transition: filter 0.6s ease, transform 0.8s ease; }
.editorial-item:hover .obj-image img { filter: grayscale(0%); transform: scale(1.08); } 
.gray-hover:hover, .map-container:hover iframe { filter: grayscale(0%); }

.editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.editorial-item { background: #fff; padding: 40px; }
.obj-image { width: 100%; height: 250px; overflow: hidden; margin-bottom: 30px; }
.obj-image img { width: 100%; height: 100%; object-fit: cover; }
.item-header h3 { font-family: var(--font-serif); font-size: 1.8rem; color: #111; margin-bottom: 20px; font-weight: 400; }
.editorial-item p { color: var(--text-light); font-size: 0.95rem; }

.dark-green-section { background: var(--primary-dark); color: #fff; padding-bottom: 150px;}
.services-list { border-top: 1px solid rgba(255,255,255,0.1); }
.service-row { padding: 35px 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.service-row:hover { padding-left: 20px; border-bottom-color: rgba(255,255,255,0.4); }
[dir="rtl"] .service-row:hover { padding-left: 0; padding-right: 20px; }
.service-name { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 400; }

.cert-section { background: var(--bg-light); text-align: center; }
.cert-wrapper { max-width: 600px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }

.feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.feedback-desc { font-size: 1.1rem; color: var(--text-light); max-width: 400px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.minimal-form input, .minimal-form textarea { width: 100%; padding: 15px 0; background: transparent; border: none; border-bottom: 1px solid #ddd; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; border-radius: 0; }
.minimal-form textarea { height: 100px; resize: none; margin-bottom: 30px; }
.minimal-form input:focus, .minimal-form textarea:focus { border-bottom-color: #111; outline: none; }
.btn-solid { background: #111; color: #fff; padding: 20px 40px; border: none; font-size: 0.85rem; letter-spacing: 2px; font-weight: 500; cursor: pointer; transition: background 0.3s; display: inline-flex; align-items: center; gap: 15px; }
.btn-solid:hover { background: #333; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer-minimal { background: var(--bg-light); padding: 80px 0 40px; border-top: 1px solid #eee; }
.footer-top { margin-bottom: 60px; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.contact-label { color: #999; font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase; }
.contact-val { font-size: 1.1rem; color: #111; }
.map-container { margin-bottom: 60px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 40px; }
.social-links { display: flex; gap: 30px; }
.social-links a { color: #666; font-size: 0.9rem; transition: color 0.3s; }
.social-links a:hover { color: #111; }
.copyright { color: #999; font-size: 0.9rem; }

/* WhatsApp Кнопка с анимацией пульсации */
.floating-whatsapp { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background: #25d366; 
    color: white; 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 100; 
    transition: transform 0.3s; 
    animation: pulse-whatsapp 2s infinite; 
}

.floating-whatsapp:hover { 
    transform: scale(1.1); 
    animation: none; 
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

[dir="rtl"] .floating-whatsapp { right: auto; left: 30px; }

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.cookie-banner { position: fixed; bottom: -100px; left: 0; width: 100%; background: #111; color: #fff; padding: 20px 0; z-index: 9000; transition: bottom 0.5s; }
.cookie-banner.active { bottom: 0; }
.cookie-content { display: flex; justify-content: space-between; align-items: center; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Адаптивность */
@media (max-width: 992px) {
    .main-title { font-size: 4.5rem; }
    .hero-desc { max-width: 100%; padding-right: 20px; }
    .feedback-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .main-title { font-size: 3rem; margin-bottom: 20px; }
    .hero-inner { padding-bottom: 80px; justify-content: center; } 
    .hero-bottom-grid { flex-direction: column; align-items: flex-start; gap: 30px; }
    
    .nav-right { gap: 20px; }
    .lang-selector { display: none; } 
    
    section { padding: 80px 0; }
    .section-title { font-size: 2.2rem; margin-bottom: 50px; }
    
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-item { padding: 25px 15px; }
    .obj-image { height: 200px; }
    
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
    .social-links { flex-wrap: wrap; gap: 15px; }
}
