/**
 * Основные стили для лендинга OilFusion
 * Balance in every drop
 */

/* ===== Переменные ===== */
:root {
    /* Цветовая палитра - "Натуральная элегантность" */
    --primary-color: #A67C52;
    --primary-dark: #8B6B47;
    --primary-light: #B8956B;
    --secondary-color: #E5DED3;
    --secondary-dark: #D4C4B0;
    --accent-color: #3C2F2F;
    
    --text-primary: #1C1C1C;
    --text-secondary: #4A5568;
    --text-light: #718096;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8F5F0;
    --bg-alt: #E5DED3;
    --bg-gradient: linear-gradient(135deg, #A67C52 0%, #E5DED3 100%);
    
    --border-color: #E5DED3;
    --shadow-sm: 0 1px 3px rgba(166, 124, 82, 0.1);
    --shadow-md: 0 4px 6px rgba(166, 124, 82, 0.15);
    --shadow-lg: 0 10px 15px rgba(166, 124, 82, 0.2);
    
    /* Типография */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Размеры */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 12px;
    
    /* Переходы */
    --transition: all 0.3s ease;
}

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ===== Контейнер ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Секции ===== */
.section {
    padding: var(--section-padding);
    overflow-x: hidden;
}

.section-alt {
    background: var(--bg-gradient);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 0;
}

.section-alt > * {
    position: relative;
    z-index: 1;
}

/* ===== О компании - растянуть на всю ширину ===== */
.about-section .container {
    max-width: 100%;
    padding: 0 40px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    width: 100%;
    padding-right: 0;
}

.about-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start; /* align visual and features to top */
    width: 100%;
}

.about-features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: flex-start !important; /* выравнивание по верхнему краю */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start !important; /* keep image aligned to top */
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-self: flex-start !important; /* выравнивание по верхнему краю */
}

.about-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important; /* убираем отрицательное смещение */
    align-self: flex-start !important; /* выравнивание по верхнему краю */
    position: relative !important;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-features {
    margin-top: 0 !important;
    margin-bottom: 0;
    padding-top: 0 !important;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start; /* выравнивание элементов по верхнему краю */
    align-self: flex-start !important; /* выравнивание по верхнему краю в родительском контейнере */
}

.about-features > .feature-item:first-child {
    margin-top: 0 !important;
    padding-top: 20px; /* сохраняем padding, но убираем margin */
}

.feature-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    transition: var(--transition);
    align-self: start; /* выравнивание по верхнему краю */
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-cta {
    margin-top: 0;
}

@media (max-width: 992px) {
    .about-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-section .container {
        padding: 0 20px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* ===== Навигация ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    transform: translateY(0);
    opacity: 1;
}

.header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header.hero-active {
    background: transparent;
    box-shadow: none;
}

.header.section-active {
    background: linear-gradient(180deg, rgba(235, 208, 182, 0.5) 0%, rgba(216, 169, 127, 0.5) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: linear-gradient(180deg, rgba(235, 208, 182, 0.5) 0%, rgba(216, 169, 127, 0.5) 100%);
}

/* Стили для navbar - всегда прозрачный */
.header .nav-link {
    color: #3C2F2F;
    text-shadow: none;
}

.header.section-active .nav-link {
    color: #3B2A1E;
}

.header .nav-link:hover {
    color: #A67C52;
    background-color: rgba(166, 124, 82, 0.1);
}

.header.section-active .nav-link:hover {
    color: #8C5A2B;
    background-color: rgba(140, 90, 43, 0.1);
}

.header .navbar-toggle span {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.navbar {
    padding: 0;
    position: relative;
    min-height: auto;
}

.navbar .container {
    position: relative;
}

.navbar-layout {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    min-height: 86px; /* увеличен на 25% для опускания логотипа */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 20px;
    background: transparent;
    z-index: 1002;
}

/* Бургер меню слева */
.navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-brand {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
    left: auto;
    transform: none;
}

.logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    transition: var(--transition);
    margin-top: 0;
    margin-bottom: 0;
}

.logo-image:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Выдвижное меню */
.navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, #EBD0B6 0%, #D8A97F 100%);
    backdrop-filter: blur(7px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.navbar-menu.active {
    right: 0;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin-bottom: 8px;
}

.navbar-menu .nav-link {
    display: block;
    padding: 12px 16px;
    color: #3B2A1E;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-shadow: none;
}

.navbar-menu .nav-link:hover {
    color: #8C5A2B;
    opacity: 0.85;
    transform: translateX(5px);
}

.navbar-menu .nav-link.active {
    color: #8C5A2B;
    font-weight: 600;
    opacity: 0.85;
}

/* Переключатель языка в sidebar */
.navbar-menu .language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(194, 138, 90, 0.2);
}

.lang-btn {
    background: transparent;
    border: 1px solid #C28A5A;
    color: #5A3B24;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    min-width: 50px;
}

.lang-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #C28A5A;
    color: #FFFFFF;
    border-color: #C28A5A;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(194, 138, 90, 0.3);
}

/* Адаптивность для основного сайта */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }
    
    .navbar-layout {
        min-height: 73px; /* увеличен на 25% для мобильной версии */
    }
    
    .navbar-menu {
        width: 100%;
        right: -100%;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .language-switcher {
        margin-right: 12px;
        gap: 6px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.navbar-toggle:hover span {
    background-color: #F1E6D8;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Hero секция ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 100;
    position: relative;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.hero-content h1,
.hero-content p,
.hero-content .hero-cta {
    position: relative;
    z-index: 100;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
    z-index: 100;
    position: relative;
}

.hero-cta .btn {
    margin: 10px;
    min-width: 200px;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.95) 0%, rgba(139, 107, 71, 0.95) 100%); /* 5% transparency только для фона */
    color: white; /* текст остается непрозрачным */
}

.hero-cta .btn-outline {
    border-width: 2px;
    border-color: #A67C52; /* такой же как у btn-primary */
    background: linear-gradient(135deg, rgba(166, 124, 82, 0.5) 0%, rgba(139, 107, 71, 0.5) 100%); /* 50% transparency только для фона */
    font-size: 1rem;
    font-weight: 600;
    color: white; /* текст остается непрозрачным */
}

.hero-cta .btn:hover {
    opacity: 1;
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, rgba(139, 107, 71, 1) 0%, rgba(107, 91, 63, 1) 100%);
}

.hero-cta .btn-outline:hover {
    background: linear-gradient(135deg, rgba(139, 107, 71, 0.9) 0%, rgba(107, 91, 63, 0.9) 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    margin-top: 50px;
}

.scroll-text {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.8;
}

.scroll-arrow {
    display: block;
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* ===== Изображение флакона ===== */
.hero-bottle {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 500px;
    width: 40%;
}

.hero-bottle-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 1200px) {
    .hero-bottle {
        max-width: 400px;
        width: 35%;
        right: 2%;
    }
}

@media (max-width: 768px) {
    .hero-bottle {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 40px auto 0;
        max-width: 300px;
        width: 80%;
        display: flex;
        justify-content: center;
    }
    
    .hero-content {
        margin-bottom: 20px;
    }
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #A67C52 0%, #8B6B47 100%);
    color: white;
    border-color: #A67C52;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8B6B47 0%, #6B5B3F 100%);
    border-color: #8B6B47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: linear-gradient(135deg, #A67C52 0%, #8B6B47 100%);
    color: white;
    border-color: #A67C52;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #8B6B47 0%, #6B5B3F 100%);
    border-color: #8B6B47;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.2);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Карточки ===== */
.product-card,
.service-card,
.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.service-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ===== Сетки ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.products-grid .product-card {
    height: 520px;
}

.services-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-slider .product-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
        height: 500px;
    }
    
    .product-card .product-image {
        height: 220px;
    }
    
    .product-card .product-title {
        min-height: 50px;
        font-size: 1.1rem;
    }
    
    .product-card .product-description {
        min-height: 60px;
        font-size: 0.9rem;
    }
}

/* ===== Слайдер продуктов ===== */
.products-slider-container {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 1200px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

.products-slider .product-card {
    flex: 0 0 350px;
    min-width: 350px;
    max-width: 350px;
    height: 520px;
    scroll-snap-align: start;
}

/* Фиксированные размеры для элементов карточки продукта */
.product-card .product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--bg-light);
    margin-top: auto;
}

.product-card .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-badge,
.product-featured-badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge {
    display: none; /* скрыто полностью */
}

.product-featured-badge {
    display: none !important;
}

/* Навигация слайдера */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #A67C52;
    background: transparent;
    color: #A67C52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #A67C52;
    color: white;
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Индикаторы слайдера */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(166, 124, 82, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #A67C52;
    transform: scale(1.2);
}

/* Бейдж "Избранное" */
.product-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #A67C52, #CFAE6D);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* ===== Подвал ===== */
.footer {
    background-color: #2B2B2B;
    color: #FFFFFF;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 24px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .footer-copyright {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 0 20px;
    }

    .footer-content {
        gap: 20px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

/* ===== Кнопка "Наверх" ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Утилиты ===== */
.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.placeholder {
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.placeholder-icon {
    font-size: 4rem;
}

/* ===== Персонализация ===== */
.personalization-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.personalization-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.personalization-block-reverse {
    grid-template-columns: 1fr 1fr;
}

.personalization-block-reverse .personalization-visual {
    order: 2;
}

.personalization-block-reverse .personalization-text {
    order: 1;
}

.personalization-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.personalization-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.personalization-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.visual-placeholder {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    color: var(--primary-color);
}

.personalization-text {
    padding: 20px;
}

.personalization-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.personalization-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.personalization-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.personalization-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.personalization-features svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.personalization-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.personalization-info {
    margin-top: 60px;
}

.info-card {
    background: rgba(166, 124, 82, 0.1);
    border: 1px solid rgba(166, 124, 82, 0.2);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
}

.info-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.info-card p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.info-link:hover {
    gap: 12px;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .personalization-block,
    .personalization-block-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .personalization-block-reverse .personalization-visual,
    .personalization-block-reverse .personalization-text {
        order: unset;
    }
    
    .personalization-image {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .personalization-image {
        max-width: 100%;
    }
    
    .visual-placeholder {
        width: 300px;
        height: 300px;
    }
    
    .personalization-title {
        font-size: 1.75rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
}

/* ===== Слайдер До/После ===== */
.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    cursor: ew-resize;
    user-select: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

/* Начальная позиция слайдера по центру */
#auracloudSlider .slider-handle {
    left: 50%;
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 10;
}

.before-label {
    left: 20px;
}

.after-label {
    right: 20px;
    text-align: right;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.slider-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    cursor: ew-resize;
}

.slider-button svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .slider-button {
        width: 40px;
        height: 40px;
    }
    
    .slider-label {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ===== Каталог продукции ===== */
.catalog-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.catalog-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.catalog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.catalog-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.catalog-hero__content h1,
.catalog-hero__content p,
.catalog-hero__content .catalog-hero__actions {
    position: relative;
    z-index: 100;
    color: white;
}

.catalog-hero__title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.catalog-hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.catalog-hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog-hero__actions .btn {
    opacity: 0.54; /* match hero buttons transparency */
}

.catalog-hero__actions .btn:hover {
    opacity: 1;
}

.catalog-section {
    padding: 80px 0;
}

.catalog-section__header {
    text-align: center;
    margin-bottom: 60px;
}

.catalog-section__eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.catalog-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.catalog-section__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.catalog-grid .product-card {
    height: 520px;
}

.catalog-section--cta {
    background: var(--bg-gradient);
    position: relative;
}

.catalog-section--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
}

.catalog-section__cta {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.catalog-section__cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.catalog-section__cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .catalog-hero__title {
        font-size: 2.5rem;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-hero__title {
        font-size: 2rem;
    }
    
    .catalog-hero__subtitle {
        font-size: 1rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-section__title {
        font-size: 2rem;
    }
}




