:root {
    --primary: #d97706; 
    --primary-hover: #b45309;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --white: #ffffff;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Навигация */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.menu { display: flex; list-style: none; gap: 2rem; }
.menu a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.menu a:hover { color: var(--primary); }
.logo-link { display: block; text-decoration: none; padding: 10px 0; }
.logo-img { height: 60px; width: auto; display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

/* Премиальный Главный экран */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 70px; background: #ffffff; overflow: hidden; }
.hero-wrap { display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 2; width: 100%; }
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; color: var(--dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--gray); margin-bottom: 2rem; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.hero-img-main { max-width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease; }
.hero-img-main:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }

/* Кнопки */
.btn { display: inline-block; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; cursor: pointer; text-align: center; border: none; }
.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); margin-left: 1rem; }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.w-100 { width: 100%; }

/* Секции */
.section { padding: 6rem 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 3rem; }

/* Карточки */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--white); padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Видео-полоска */
.brand-strip { width: 100%; height: 250px; position: relative; overflow: hidden; margin: 4rem 0 0 0; background: var(--dark); }
.brand-video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; opacity: 0.6; }
.brand-overlay { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(31,41,55,0.8) 0%, rgba(31,41,55,0.2) 50%, rgba(31,41,55,0.8) 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.brand-overlay span { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Цветная Галерея (Сетка) */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; max-height: 800px; overflow-y: auto; padding: 10px; border-radius: 20px; background: #f1f5f9; }
.gallery-container::-webkit-scrollbar { width: 6px; }
.gallery-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.gallery-item { aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 16px; background: transparent; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.gallery-item:hover, .gallery-item:active { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.gallery-item:hover .gallery-img, .gallery-item:active .gallery-img { transform: scale(1.1); }

/* Отзывы Яндекса */
.reviews-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
.yandex-rating-badge { display: flex; align-items: center; gap: 0.75rem; background: var(--white); padding: 0.75rem 1.5rem; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); margin: 1rem 0; }
.ya-logo { background: #fc3f1d; color: white; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; }
.ya-score { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.ya-stars { color: #f59e0b; letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.review-card { background: var(--white); padding: 2rem; border-radius: 16px; border: 1px solid #e5e7eb; }
.review-head { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.review-text { font-size: 0.95rem; color: #4b5563; font-style: italic; }

/* 2 Колонки: Контакты и Карта */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: stretch; }
.contact-info { background: #374151; padding: 2.5rem; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; }
.contact-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-map { border-radius: 16px; overflow: hidden; background: #374151; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; display: block; }

/* Кнопки Мессенджеров */
.contacts-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-family: system-ui, -apple-system, sans-serif; }
.btn-contact { display: block; text-align: center; padding: 14px 10px; border-radius: 8px; text-decoration: none; color: #ffffff; font-size: 15px; font-weight: 600; transition: all 0.2s ease-in-out; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.btn-contact:active { transform: translateY(0); }
.btn-wa { background-color: #25D366; }
.btn-tg { background-color: #229ED9; }
.btn-max { background-color: #4B5563; } /* Графитовый серый для Max */
.btn-call { background-color: #2C3E50; }

footer { background: #111827; color: var(--gray); padding: 2rem 0; border-top: 1px solid #374151; }

/* Анимации */
.fade-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Адаптив */
@media (max-width: 992px) {
    .hero-wrap { flex-direction: column; text-align: center; padding-top: 3rem; }
    .hero-image { margin-top: 2rem; justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-map iframe { min-height: 350px; }
}

@media (max-width: 768px) {
    .menu { display: none; }
    .hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
    .btn-outline { margin-left: 0; }
    .contact-info { padding: 1.5rem; }
    .brand-overlay span { font-size: 1.25rem; }
    .logo-img { height: 45px; }
}

@media (max-width: 480px) {
    .gallery-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .contacts-wrapper { grid-template-columns: 1fr; } /* Кнопки в столбик на смартфонах */
}
.btn-max { 
    background-color: #5D5FEF; /* Фирменный сиренево-синий цвет мессенджера Max */
}

:root {
    --primary: #d97706; 
    --primary-hover: #b45309;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --white: #ffffff;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Навигация */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 100; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.menu { display: flex; list-style: none; gap: 2rem; }
.menu a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
.menu a:hover { color: var(--primary); }

/* Исправление пропорций логотипа */
.logo-link { display: block; text-decoration: none; padding: 10px 0; }
.logo-img { height: 60px; width: auto; object-fit: contain; display: block; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }

/* Главный экран */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 70px; background: #ffffff; overflow: hidden; }
.hero-wrap { display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 2; width: 100%; }
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; color: var(--dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.25rem; color: var(--gray); margin-bottom: 2rem; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.hero-img-main { max-width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease; }
.hero-img-main:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }

/* Кнопки */
.btn { display: inline-block; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; cursor: pointer; text-align: center; border: none; }
.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--dark); border: 2px solid var(--dark); margin-left: 1rem; }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.w-100 { width: 100%; }

/* Секции */
.section { padding: 6rem 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--dark); color: var(--white); }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 3rem; }

/* Карточки */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: var(--white); padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }

/* Видео-полоска */
.brand-strip { width: 100%; height: 250px; position: relative; overflow: hidden; margin: 4rem 0 0 0; background: var(--dark); }
.brand-video { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; opacity: 0.6; }
.brand-overlay { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(31,41,55,0.8) 0%, rgba(31,41,55,0.2) 50%, rgba(31,41,55,0.8) 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.brand-overlay span { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

/* Галерея (Сетка) */
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; max-height: 800px; overflow-y: auto; padding: 10px; border-radius: 20px; background: #f1f5f9; }
.gallery-container::-webkit-scrollbar { width: 6px; }
.gallery-container::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.gallery-item { aspect-ratio: 1 / 1; position: relative; overflow: hidden; border-radius: 16px; background: transparent; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.05); transition: box-shadow 0.6s ease; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover, .gallery-item:active { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.gallery-item:hover .gallery-img, .gallery-item:active .gallery-img { transform: scale(1.1); }

/* Всплывающая Галерея (Lightbox) */
.lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); user-select: none; animation: fadeIn 0.3s ease; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; transition: 0.3s; z-index: 10000; }
.lightbox-close:hover { color: var(--primary); transform: scale(1.1); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: #fff; border: none; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: 0.3s; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: var(--primary); }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }
.lightbox-counter { position: absolute; top: 30px; left: 30px; color: #fff; font-size: 1.1rem; font-weight: 600; letter-spacing: 1px; }

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

/* Отзывы Яндекса */
.reviews-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
.yandex-rating-badge { display: flex; align-items: center; gap: 0.75rem; background: var(--white); padding: 0.75rem 1.5rem; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); margin: 1rem 0; }
.ya-logo { background: #fc3f1d; color: white; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; }
.ya-score { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.ya-stars { color: #f59e0b; letter-spacing: 2px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.review-card { background: var(--white); padding: 2rem; border-radius: 16px; border: 1px solid #e5e7eb; }
.review-head { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: center; }
.review-avatar { width: 48px; height: 48px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.review-text { font-size: 0.95rem; color: #4b5563; font-style: italic; }

/* 2 Колонки: Контакты и Карта */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: stretch; }
.contact-info { background: #374151; padding: 2.5rem; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; }
.contact-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-map { border-radius: 16px; overflow: hidden; background: #374151; }
.contact-map iframe { width: 100%; height: 100%; min-height: 400px; display: block; }

/* Кнопки Мессенджеров */
.contacts-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-family: system-ui, -apple-system, sans-serif; }
.btn-contact { display: block; text-align: center; padding: 14px 10px; border-radius: 8px; text-decoration: none; color: #ffffff; font-size: 15px; font-weight: 600; transition: all 0.2s ease-in-out; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.btn-contact:active { transform: translateY(0); }
.btn-wa { background-color: #25D366; }
.btn-tg { background-color: #229ED9; }
.btn-max { background-color: #5D5FEF; }
.btn-call { background-color: #2C3E50; }

footer { background: #111827; color: var(--gray); padding: 2rem 0; border-top: 1px solid #374151; }

/* Анимации */
.fade-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Адаптив */
@media (max-width: 992px) {
    .hero-wrap { flex-direction: column; text-align: center; padding-top: 3rem; }
    .hero-image { margin-top: 2rem; justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-map iframe { min-height: 350px; }
}

@media (max-width: 768px) {
    .menu { display: none; }
    .logo-img { height: 45px; }
    .hero-buttons { display: flex; flex-direction: column; gap: 1rem; }
    .btn-outline { margin-left: 0; }
    .contact-info { padding: 1.5rem; }
    .brand-overlay span { font-size: 1.25rem; }
    
    /* Адаптив Lightbox */
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 20px; }
    .lightbox-counter { top: 20px; left: 20px; }
    .lightbox-img { max-width: 100%; max-height: 75vh; border-radius: 0; }
}

@media (max-width: 480px) {
    .gallery-container { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .contacts-wrapper { grid-template-columns: 1fr; }
}
/* Галерея (Сетка) - Теперь крутится естественно вместе со страницей */
.gallery-container { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 15px; 
    padding: 10px; 
    border-radius: 20px; 
    background: #f1f5f9; 
}
/* Адаптив Lightbox для мобильных (удобные кнопки) */
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; background: rgba(0,0,0,0.6); }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 15px; right: 15px; font-size: 35px; }
    .lightbox-counter { top: 20px; left: 15px; }
    .lightbox-img { max-width: 100%; max-height: 70vh; border-radius: 8px; }

    /* Навигация */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    border-bottom: 1px solid #f1f5f9; 
}

.nav-wrap { 
    display: flex; 
    justify-content: center; /* Центр для ПК */
    align-items: center; 
    height: 60px; 
}

.menu { 
    display: flex; 
    list-style: none; 
    gap: 2.5rem; 
    margin: 0; 
    padding: 0;
}

.menu a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    font-size: 0.85rem;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    white-space: nowrap; /* Не дает тексту переноситься */
}

.menu a:hover, .menu a.active { 
    color: var(--primary); 
}

/* Мобильная адаптация меню */
@media (max-width: 768px) {
    .nav-wrap {
        justify-content: flex-start; /* Прижимаем к началу для скролла */
        overflow-x: auto; /* Включаем горизонтальный скролл */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Плавность на iOS */
        padding: 0 20px;
        /* Скрываем полосу прокрутки */
        scrollbar-width: none; 
    }
    .nav-wrap::-webkit-scrollbar { display: none; }

    .menu {
        gap: 1.5rem;
        padding-right: 20px; /* Отступ в конце скролла */
    }

    /* Эффект прозрачных краев (подсказка скролла) */
    .nav-wrap {
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
}