/* Стили для лендинга пшеничной муки «Сибирская» */

/* CSS-переменные и дизайн-токены */
:root {
    /* Цветовая палитра: Теплый премиум-органик */
    --bg-primary: #FAF9F5;
    --bg-secondary: #F4F1E8;
    --bg-dark: #1E1711;
    --bg-dark-secondary: #16100B;
    --text-dark: #2A2016;
    --text-muted: #6E5E4E;
    --text-light: #FAF9F5;
    
    /* Акцентные цвета */
    --accent-gold: #D4AF37;
    --accent-gold-hover: #E5C158;
    
    /* Специфические цвета сортов (по Pantone из макета) */
    --color-higher: #0056B3; /* Синий Pantone 286 C */
    --color-higher-light: rgba(0, 86, 179, 0.1);
    --color-first: #C82333;  /* Красный Pantone 2347 C */
    --color-first-light: rgba(200, 35, 51, 0.1);
    --color-second: #218838; /* Зеленый Pantone 2418 C */
    --color-second-light: rgba(33, 136, 56, 0.1);
    
    --border-color: rgba(42, 32, 22, 0.08);
    --border-dark: rgba(250, 249, 245, 0.1);
    
    /* Шрифты */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Анимации и переходы */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    --box-shadow-soft: 0 10px 30px rgba(42, 32, 22, 0.04);
    --box-shadow-hover: 0 20px 40px rgba(42, 32, 22, 0.09);
}

/* Базовый сброс стилей */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

section {
    scroll-margin-top: 90px;
}

@keyframes pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    animation: pageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition-fast);
}

/* Контейнеры */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.btn-secondary {
    background-color: rgba(250, 249, 245, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(250, 249, 245, 0.2);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(250, 249, 245, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
    transform: translateY(-2px);
}

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

.btn-blue-accent {
    background-color: var(--color-higher);
    color: white;
}
.btn-blue-accent:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
}

.btn-red-accent {
    background-color: var(--color-first);
    color: white;
}
.btn-red-accent:hover {
    background-color: #a71d2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 35, 51, 0.3);
}

.btn-green-accent {
    background-color: var(--color-second);
    color: white;
}
.btn-green-accent:hover {
    background-color: #1a6b2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 136, 56, 0.3);
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(22, 16, 11, 0.9) 0%, rgba(22, 16, 11, 0.6) 60%, rgba(22, 16, 11, 0) 100%);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.header.scrolled {
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(22, 16, 11, 0.98) 0%, rgba(22, 16, 11, 0.92) 100%);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(250, 249, 245, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header.scrolled .nav-link {
    color: var(--text-light);
}
.header.scrolled .logo-text {
    color: var(--text-light);
}
.header.scrolled .phone-link {
    color: var(--text-light);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-light); /* На светлом фоне в Hero */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(250, 249, 245, 0.85); /* Светлый по умолчанию для Hero */
    position: relative;
    padding: 6px 0;
}

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

.nav-link:hover {
    color: var(--text-light);
}

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

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

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
}

.phone-divider {
    display: none;
}

.phone-link {
    font-weight: 600;
    color: var(--text-light);
}

.phone-link:hover {
    color: var(--accent-gold);
}

.header .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.header .btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    z-index: 105;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Мобильное меню */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
}

.mobile-nav-link:hover {
    color: var(--accent-gold);
}

.mobile-phones {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-phone-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

/* Герой-секция */
.hero {
    position: relative;
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-image: url('assets/images/wheat_field.png');
    color: var(--text-light);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(22, 16, 11, 0.7) 0%, rgba(22, 16, 11, 0.85) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(250, 249, 245, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.h-feature {
    display: flex;
    gap: 12px;
}

.h-feature-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.h-feature-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.h-feature-info p {
    font-size: 0.75rem;
    color: rgba(250, 249, 245, 0.6);
    line-height: 1.3;
}

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

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

.play-icon {
    font-size: 0.8rem;
}

.hero-bottom-bar {
    position: relative;
    z-index: 2;
    background-color: rgba(22, 16, 11, 0.9);
    border-top: 1px solid var(--border-dark);
    padding: 20px 0;
    margin-top: 60px;
}

.hero-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bar-item {
    font-size: 0.9rem;
    color: rgba(250, 249, 245, 0.8);
}

/* Шапка секции */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.section-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-line.left {
    margin: 16px 0 0;
}

.section-subtitle {
    max-width: 650px;
    margin: 20px auto 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* О производстве / Полный цикл */
.production {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.production-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.about-img {
    width: 100%;
    object-fit: cover;
    height: 520px;
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

@media (min-width: 992px) {
    .production-grid {
        align-items: stretch;
    }
    .about-image-wrapper {
        height: 100%;
        display: flex;
    }
    .about-img {
        height: 100%;
        object-fit: cover;
    }
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-dark);
    color: var(--accent-gold);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    cursor: pointer;
}

.step-item:hover, .step-item.active {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
    box-shadow: var(--box-shadow-soft);
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(42, 32, 22, 0.15);
    line-height: 1.2;
    transition: var(--transition-fast);
}

.step-item.active .step-num {
    color: var(--accent-gold);
}

.step-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Баннер с видео */
.video-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.video-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: var(--transition-smooth);
}

.video-banner:hover .video-banner-bg {
    transform: scale(1.02);
}

.video-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 23, 17, 0.8);
    z-index: 2;
}

.video-banner-container {
    position: relative;
    z-index: 3;
}

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

.video-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.video-banner-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.video-banner-content p {
    color: rgba(250, 249, 245, 0.8);
    margin-bottom: 35px;
}

.play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

.play-btn-icon {
    margin-left: 5px;
}

.play-btn:hover {
    background-color: var(--accent-gold-hover);
    transform: scale(1.08);
}

.play-btn-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Каталог сортов */
.catalog {
    padding: 60px 0;
}

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

.catalog-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--box-shadow-soft);
}

.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(42, 32, 22, 0.15);
}

.card-accent-bar {
    height: 6px;
    width: 100%;
}

.card-accent-bar.blue { background-color: var(--color-higher); }
.card-accent-bar.red { background-color: var(--color-first); }
.card-accent-bar.green { background-color: var(--color-second); }

.card-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-blue { background-color: var(--color-higher-light); color: var(--color-higher); }
.badge-red { background-color: var(--color-first-light); color: var(--color-first); }
.badge-green { background-color: var(--color-second-light); color: var(--color-second); }

.card-image-section {
    background-color: #ffffff;
    padding: 0;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Стилизация мешка муки на CSS */
.bag-mockup {
    width: 110px;
    height: 170px;
    background-color: #FDFCF7;
    border: 2px solid #E4E0D2;
    border-radius: 8px 8px 12px 12px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bag-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(90deg, #E4E0D2, #E4E0D2 4px, #FDFCF7 4px, #FDFCF7 8px);
    border-bottom: 2px solid #D1CBB8;
}

.bag-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 85%;
    height: 80%;
    border: 1px dashed #D1CBB8;
    padding: 10px 5px;
    justify-content: space-between;
}

.bag-logo-img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold);
    margin-bottom: 4px;
    background-color: white;
}

.bag-mockup.blue .bag-logo-img { border-color: var(--color-higher); }
.bag-mockup.red .bag-logo-img { border-color: var(--color-first); }
.bag-mockup.green .bag-logo-img { border-color: var(--color-second); }

.b-grade {
    font-size: 0.55rem;
    font-weight: 700;
    border-top: 1px solid #E4E0D2;
    border-bottom: 1px solid #E4E0D2;
    padding: 2px 0;
    width: 100%;
    text-transform: uppercase;
}

.b-weight {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    color: #4A3E30;
}

.card-specs {
    padding: 20px 24px 10px;
    border-bottom: 1px solid var(--border-color);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.spec-row span {
    color: var(--text-muted);
}

.spec-row strong {
    color: var(--text-dark);
}

.card-body {
    padding: 20px 24px;
    flex-grow: 1;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.use-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.use-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.use-list li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.use-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.card-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

/* Калькулятор стоимости */
.calculator {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-options-panel {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--box-shadow-soft);
}

.calc-group {
    margin-bottom: 35px;
}

.calc-group:last-child {
    margin-bottom: 0;
}

.calc-group-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.grade-selector-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grade-tab-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.grade-tab-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.grade-tab-btn.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.tab-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.tab-color-dot.blue { background-color: var(--color-higher); }
.tab-color-dot.red { background-color: var(--color-first); }
.tab-color-dot.green { background-color: var(--color-second); }

.tab-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-align: center;
}

.tab-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.volume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.volume-inputs input[type="number"] {
    width: 80px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    background-color: var(--bg-secondary);
}

.unit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-container {
    margin-bottom: 15px;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.volume-conversion-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
}

.volume-conversion-note strong {
    color: var(--text-dark);
}

.delivery-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background-color: var(--bg-primary);
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-card.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.delivery-card-content {
    display: flex;
    gap: 12px;
}

.delivery-icon {
    font-size: 1.5rem;
}

.delivery-card-content h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.delivery-card-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Правая панель калькулятора - смета */
.calc-summary-panel {
    position: sticky;
    top: 100px;
}

.summary-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 12px;
    padding: 35px;
    box-shadow: var(--box-shadow-hover);
    position: relative;
    overflow: hidden;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-divider {
    height: 1px;
    background-color: var(--border-dark);
    margin: 20px 0;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(250, 249, 245, 0.7);
}

.summary-value {
    font-weight: 600;
    color: var(--text-light);
}

.text-discount {
    color: #28A745;
}

.text-discount .summary-value {
    color: #28A745;
}

.summary-total-block {
    margin: 25px 0;
}

.total-label {
    font-size: 0.85rem;
    color: rgba(250, 249, 245, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.wholesale-notice {
    font-size: 0.75rem;
    color: rgba(250, 249, 245, 0.5);
    margin-top: 6px;
}

/* Форма в смете */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    background-color: rgba(250, 249, 245, 0.05);
    color: var(--text-light);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-gold);
    background-color: rgba(250, 249, 245, 0.1);
}

.form-agreement {
    font-size: 0.7rem;
    color: rgba(250, 249, 245, 0.4);
    text-align: center;
    line-height: 1.3;
}

/* Экран успешной отправки */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    text-align: center;
    z-index: 5;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #28A745;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 0.9rem;
    color: rgba(250, 249, 245, 0.7);
    margin-bottom: 25px;
}

.success-message .btn {
    border-color: var(--border-dark);
    color: var(--text-light);
}

.success-message .btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Преимущества */
.benefits {
    padding: 60px 0;
}

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

.benefit-item {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition-smooth);
    box-shadow: var(--box-shadow-soft);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1;
}

.benefit-item h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.benefits-callout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
}

.callout-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.callout-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.callout-content p {
    color: rgba(250, 249, 245, 0.7);
    margin-bottom: 30px;
}

.callout-content .btn {
    align-self: flex-start;
}

.callout-image {
    position: relative;
    overflow: hidden;
}

.callout-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    transition: var(--transition-smooth);
}

.benefits-callout:hover .callout-img {
    transform: scale(1.03);
}

/* Контакты */
.contacts {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

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

.contacts-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contacts-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
}

.detail-icon {
    font-size: 1.6rem;
    line-height: 1.2;
}

.detail-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pdf-download-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.pdf-icon {
    font-size: 2.2rem;
}

.pdf-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.pdf-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.btn-pdf-download {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-higher);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pdf-download:hover {
    color: #003366;
    text-decoration: underline;
}

/* Стилизованная графическая карта */
.map-wrapper {
    box-shadow: var(--box-shadow-hover);
    border-radius: 12px;
    overflow: hidden;
}

.map-placeholder {
    height: 480px;
    background-color: #E6E2D8;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 5;
    max-width: 280px;
    border: 1px solid var(--border-dark);
}

.map-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.map-overlay p {
    font-size: 0.8rem;
    color: rgba(250, 249, 245, 0.7);
    margin-bottom: 12px;
}

.map-badge {
    display: inline-block;
    font-size: 0.7rem;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 4px 8px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 16px;
}

.graphic-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #E2DDD5;
}

.map-pin {
    position: absolute;
    top: 55%;
    left: 60%;
    font-size: 2.2rem;
    z-index: 3;
    animation: bounce 2.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.road {
    position: absolute;
    background-color: #FFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.road.r1 {
    top: 56%;
    left: 0;
    width: 100%;
    height: 8px;
    transform: rotate(-5deg);
}

.road.r2 {
    top: 0;
    left: 60%;
    width: 8px;
    height: 100%;
    transform: rotate(15deg);
}

.river {
    position: absolute;
    top: 30%;
    left: 0;
    width: 120%;
    height: 25px;
    background-color: #B4CBE2;
    transform: rotate(25deg);
    opacity: 0.8;
}

.map-landscape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(42, 32, 22, 0.04) 10%, transparent 10%);
    background-size: 20px 20px;
}

/* Подвал */
.footer {
    background-color: var(--bg-dark-secondary);
    color: rgba(250, 249, 245, 0.6);
    padding: 40px 0;
    border-top: 1px solid var(--border-dark);
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo-section {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-legal {
    text-align: right;
}

/* Модалка с видео */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 23, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-modal-container {
    position: relative;
    z-index: 1001;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background-color: #1e1711;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(250, 249, 245, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(30, 23, 17, 0.6);
    color: var(--text-light);
    border: 1px solid rgba(250, 249, 245, 0.15);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
}

.video-iframe-wrapper {
    width: 100%;
    height: 100%;
}

#video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

.bag-image {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: var(--transition-smooth);
}

.catalog-card:hover .bag-image {
    transform: translateY(-5px) scale(1.03);
}

/* Кнопка Наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(250, 249, 245, 0.1);
}

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

.back-to-top:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* Адаптивность */
@media (max-width: 991px) {
    .header .btn {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .production-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img {
        height: 380px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-callout {
        grid-template-columns: 1fr;
    }
    
    .callout-image {
        display: none;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        height: 350px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .phone-block {
        display: none;
    }
    
    .grade-selector-tabs {
        grid-template-columns: 1fr;
    }
    
    .delivery-options-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .callout-content {
        padding: 30px;
    }
    
    .map-overlay {
        top: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .pdf-download-block {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Боковая панель социальных сетей (зафиксирована по центру слева с анимацией)
   ========================================================================== */
.social-sidebar {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(-120px); /* Вынесена за экран слева */
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.8s ease,
                visibility 0.8s ease;
}

.social-sidebar.visible {
    transform: translateY(-50%) translateX(0); /* Появление на экране */
    opacity: 1;
    visibility: visible;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--bg-dark); /* Высококонтрастный темный фон */
    border: 2px solid var(--accent-gold); /* Золотая обводка для контраста */
    box-shadow: 0 10px 25px rgba(22, 16, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold); /* Золотая иконка */
    transition: var(--transition-smooth);
    cursor: pointer;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-fast);
}

/* Оптическое выравнивание иконок строго по центру */
.social-btn.btn-telegram svg {
    transform: translateX(-1.5px) translateY(0.5px);
}

.social-btn.btn-vk svg {
    transform: translateX(-0.5px);
}

/* Эффекты при наведении */
.social-btn:hover {
    transform: translateX(6px) scale(1.05); /* Сдвиг вправо (так как панель слева) */
    box-shadow: 0 15px 35px rgba(22, 16, 11, 0.45);
    color: var(--text-light);
}

.social-btn.btn-telegram:hover {
    background-color: #0088cc;
    border-color: #0088cc;
}

.social-btn.btn-vk:hover {
    background-color: #4c75a3;
    border-color: #4c75a3;
}

/* Адаптивность для мобильных и планшетов */
@media (max-width: 992px) {
    .social-sidebar {
        left: 16px;
        gap: 10px;
    }
    
    .social-btn {
        width: 46px;
        height: 46px;
    }
    
    .social-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .social-sidebar {
        left: 10px;
        gap: 8px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    
    /* Скрываем/уменьшаем сдвиг на мобильных, чтобы не вылезали за экран */
    .social-btn:hover {
        transform: scale(1.08);
    }
}
