/* ============================================
   СПК «Риск» — премиальный редизайн
   Типографика: Unbounded (дисплей) + Manrope (текст)
   Палитра: брендовый зелёный + пшеничное золото
            + глубокий лесной тёмный + тёплый крем
   ============================================ */

:root {
    /* Зелёный (фирменный, углублённый) */
    --c-brand:        #4BAE57;
    --c-brand-600:    #3E9A4C;
    --c-brand-700:    #2E7D40;
    --c-brand-800:    #1F5C30;

    /* Тёмная лесная база (hero / footer / cta) */
    --c-forest:       #0E2017;
    --c-forest-2:     #163525;
    --c-forest-3:     #1E4630;

    /* Пшеничное золото (акцент) */
    --c-gold:         #E3A82B;
    --c-gold-soft:    #F4C95B;
    --c-gold-deep:    #B5821B;

    /* Текст */
    --c-ink:          #15241B;
    --c-ink-muted:    #51635A;

    /* Поверхности */
    --c-white:        #FFFFFF;
    --c-cream:        #F6F4EB;
    --c-cream-2:      #FBFAF3;
    --c-mint:         #EAF6EC;
    --c-border:       #E6EAE2;
    --c-border-strong:#D6DCCF;

    /* Совместимость со старыми именами переменных */
    --color-primary:        var(--c-brand);
    --color-primary-dark:   var(--c-brand-700);
    --color-primary-light:  #74C480;
    --color-primary-bg:     var(--c-mint);
    --color-accent:         var(--c-gold);
    --color-text:           var(--c-ink);
    --color-text-muted:     var(--c-ink-muted);
    --color-bg:             var(--c-white);
    --color-bg-alt:         var(--c-cream);
    --color-bg-dark:        var(--c-forest);
    --color-border:         var(--c-border);

    --shadow-xs: 0 1px 2px rgba(15, 35, 24, 0.05);
    --shadow-sm: 0 4px 16px rgba(15, 35, 24, 0.06);
    --shadow-md: 0 16px 40px rgba(15, 35, 24, 0.10);
    --shadow-lg: 0 30px 70px rgba(15, 35, 24, 0.16);
    --shadow-gold: 0 14px 30px rgba(227, 168, 43, 0.30);
    --shadow-green: 0 14px 30px rgba(46, 125, 64, 0.28);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --radius-pill: 999px;

    --max-width: 1280px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --header-height: 88px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--c-ink);
    background-color: var(--c-white);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 500;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--c-brand-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--c-brand); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul { list-style: none; }

::selection {
    background-color: var(--c-brand);
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    color: var(--c-ink);
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

/* Карточные/мелкие заголовки — на Manrope для читаемости длинных слов */
h3, h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

p { color: var(--c-ink-muted); }
strong { color: var(--c-ink); }

/* ============================================
   Контейнер и общие классы
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: clamp(64px, 8vw, 132px) 0; }
.section-alt { background-color: var(--c-cream); }

.section-title { text-align: center; margin-bottom: 18px; }

.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
    font-size: 1.0625rem;
    color: var(--c-ink-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-brand-700);
    margin-bottom: 20px;
    padding: 8px 16px 8px 14px;
    background-color: var(--c-mint);
    border: 1px solid rgba(46, 125, 64, 0.12);
    border-radius: var(--radius-pill);
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(227, 168, 43, 0.22);
}

.text-center { text-align: center; }

/* ============================================
   Кнопки
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    border: 1.5px solid transparent;
}

.btn-primary {
    background-color: var(--c-brand);
    color: #fff;
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    background-color: var(--c-brand-700);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(46, 125, 64, 0.34);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-brand-700);
    border-color: var(--c-border-strong);
}

.btn-outline:hover {
    background-color: var(--c-brand);
    border-color: var(--c-brand);
    color: #fff;
    transform: translateY(-3px);
}

.btn-light {
    background-color: #fff;
    color: var(--c-brand-700);
}

.btn-light:hover {
    background-color: var(--c-gold);
    color: var(--c-forest);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Стрелки делаем диагональными (↗) в духе референса */
.btn .arrow {
    transition: transform var(--transition);
    transform: rotate(-45deg);
}

.btn:hover .arrow { transform: rotate(-45deg) translateX(3px); }

/* ============================================
   Шапка / Навигация (прозрачная над тёмным hero)
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--c-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }

.logo-mark {
    height: 56px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
    transition: transform 0.35s ease;
}

.logo:hover .logo-mark { transform: scale(1.04); }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--c-ink);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.logo-desc {
    font-size: 0.68rem;
    color: var(--c-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    transition: color var(--transition);
}

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

.nav-link {
    position: relative;
    padding: 10px 18px;
    color: var(--c-ink);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-link:hover { color: var(--c-brand-700); background-color: var(--c-mint); }
.nav-link.active { color: var(--c-brand-700); background-color: var(--c-mint); }

.header-cta { margin-left: 18px; padding: 13px 26px; }

/* Прозрачная шапка над тёмным hero → светлый текст */
.header:not(.scrolled) .logo-name { color: #fff; }
.header:not(.scrolled) .logo-desc { color: rgba(255, 255, 255, 0.7); }
.header:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.88); }
.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    display: none;
    width: 48px; height: 48px;
    border-radius: 14px;
    background-color: var(--c-mint);
    color: var(--c-brand-700);
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.header:not(.scrolled) .menu-toggle {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 84px;
    background:
        linear-gradient(102deg, rgba(9, 22, 15, 0.93) 0%, rgba(12, 28, 19, 0.82) 42%, rgba(14, 32, 23, 0.5) 100%),
        url('../images/hero-rice.jpg') center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 22, 15, 0.55) 0%, transparent 26%, transparent 66%, rgba(9, 22, 15, 0.62) 100%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: block;
}

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

.hero-content .eyebrow {
    margin-bottom: 26px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero-title {
    font-size: clamp(2.3rem, 5.2vw, 4.1rem);
    line-height: 1.06;
    margin-bottom: 26px;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--c-gold-soft);
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.12rem;
    margin-bottom: 40px;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}
.hero-actions .btn-outline:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--c-brand-700);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-value {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--c-brand-700);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label { font-size: 0.875rem; color: var(--c-ink-muted); }

.hero-visual {
    position: relative;
    aspect-ratio: 4/3.4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}
.hero-visual:hover img { transform: scale(1.05); }

.hero-badge {
    position: absolute;
    bottom: 22px; left: 22px; right: 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-md);
}

.hero-badge-icon {
    width: 50px; height: 50px;
    background: linear-gradient(140deg, var(--c-gold) 0%, var(--c-gold-deep) 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.hero-badge-text strong { display: block; color: var(--c-ink); font-size: 0.96rem; font-weight: 800; }
.hero-badge-text span { font-size: 0.82rem; color: var(--c-ink-muted); }

/* ============================================
   Бегущая строка культур (marquee)
   ============================================ */
.marquee {
    background: var(--c-forest);
    color: #fff;
    padding: 22px 0;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
}

.marquee-item::after {
    content: '';
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--c-gold);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================
   Page Header (внутренние страницы)
   ============================================ */
.page-header {
    position: relative;
    padding: calc(var(--header-height) + 80px) 0 96px;
    background:
        linear-gradient(150deg, rgba(14, 32, 23, 0.86) 0%, rgba(22, 53, 37, 0.82) 100%),
        url('https://images.unsplash.com/photo-1574323347407-f5e1ad6d020b?w=1600&q=80') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--c-white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-header.over-alt::after { background: var(--c-cream); }

.page-header h1 { color: #fff; margin-bottom: 18px; }

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
    z-index: 1;
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.82); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { color: rgba(255, 255, 255, 0.45); }

/* ============================================
   Карточки преимуществ
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    background-color: #fff;
    padding: 38px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-brand), var(--c-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 66px; height: 66px;
    border-radius: 18px;
    background: var(--c-mint);
    color: var(--c-brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    color: #fff;
    transform: scale(1.06) rotate(-3deg);
}

.feature-icon svg { width: 32px; height: 32px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.feature-card p { font-size: 0.94rem; }

/* ============================================
   Two-column блок (текст + изображение)
   ============================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 84px;
    align-items: center;
}

.split-reverse .split-image { order: 2; }

.split-image {
    position: relative;
    aspect-ratio: 4/3.2;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(15, 35, 24, 0.06);
    border-radius: inherit;
    pointer-events: none;
}

.split-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.split-image:hover img { transform: scale(1.05); }

.split-content h2 { margin-bottom: 24px; }
.split-content p { margin-bottom: 16px; font-size: 1.05rem; }

.split-list { margin-top: 28px; display: grid; gap: 0; }

.split-list li {
    position: relative;
    padding: 16px 0 16px 40px;
    color: var(--c-ink);
    font-weight: 600;
    border-bottom: 1px solid var(--c-border);
}
.split-list li:first-child { border-top: 1px solid var(--c-border); }

.split-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background-color: var(--c-brand);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   Карточки продукции
   ============================================ */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background-color: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.product-image { aspect-ratio: 4/3; overflow: hidden; background: var(--c-cream); }

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.product-card:hover .product-image img { transform: scale(1.07); }

.product-body { padding: 30px 28px; }

.product-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gold-deep);
    background: rgba(227, 168, 43, 0.14);
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.product-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.product-card p { font-size: 0.94rem; }

/* ============================================
   CTA секция
   ============================================ */
.cta {
    position: relative;
    padding: clamp(56px, 7vw, 88px) 0;
    margin: 0 24px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 85% 15%, rgba(227, 168, 43, 0.22) 0%, transparent 50%),
        linear-gradient(140deg, var(--c-forest) 0%, var(--c-forest-2) 60%, var(--c-brand-800) 100%);
    color: #fff;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(75, 174, 87, 0.22) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 44px;
    align-items: center;
}

.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }

.cta-actions { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; }

.cta-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
}
.cta-actions .btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--c-brand-700);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--c-forest);
    color: rgba(255, 255, 255, 0.72);
    padding: 96px 0 32px;
    margin-top: clamp(64px, 8vw, 132px);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer h4 {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 22px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
    margin-top: 22px;
    max-width: 340px;
}

.footer .logo-name { color: #fff; }
.footer .logo-desc { color: rgba(255, 255, 255, 0.55); }

.footer-links { display: flex; flex-direction: column; gap: 13px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color var(--transition);
    width: fit-content;
}
.footer-links a:hover { color: var(--c-gold-soft); }

.footer-contact-item {
    margin-bottom: 18px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.55;
}

.footer-contact-item strong {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Галерея
   ============================================ */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 52px;
}

.filter-btn {
    padding: 11px 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-ink-muted);
    background: var(--c-cream);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.filter-btn:hover { color: var(--c-brand-700); background: var(--c-mint); border-color: transparent; }
.filter-btn.active { color: #fff; background: var(--c-brand); border-color: transparent; box-shadow: var(--shadow-green); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    background: var(--c-cream);
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(14, 32, 23, 0.82) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px;
    color: #fff;
    font-weight: 700;
    z-index: 2;
    transform: translateY(16px);
    opacity: 0;
    transition: all var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(9, 18, 13, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.lightbox-close:hover { background: var(--c-gold); color: var(--c-forest); transform: rotate(90deg); }

/* ============================================
   Контакты
   ============================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-blocks { margin-top: 38px; display: grid; gap: 16px; }

.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--c-cream);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.contact-block:hover { background: #fff; transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: var(--c-brand); }

.contact-block-icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-green);
}
.contact-block-icon svg { width: 22px; height: 22px; }

.contact-block-text strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gold-deep);
    margin-bottom: 6px;
}
.contact-block-text p, .contact-block-text a { font-size: 1rem; color: var(--c-ink); margin: 0; }
.contact-block-text a:hover { color: var(--c-brand); }

.contact-form {
    background: #fff;
    padding: 44px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

.contact-form h3 { margin-bottom: 8px; }
.contact-form-desc { margin-bottom: 30px; font-size: 0.96rem; }

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

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--c-ink);
    margin-bottom: 9px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-ink);
    background: var(--c-cream-2);
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--c-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(75, 174, 87, 0.12);
}

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

.form-note { font-size: 0.82rem; color: var(--c-ink-muted); margin-top: 16px; }
.form-note a { color: var(--c-brand-700); text-decoration: underline; }

.map-wrap {
    margin-top: 64px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/7;
    background: var(--c-cream);
    border: 1px solid var(--c-border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================================
   Production / технологический процесс
   ============================================ */
.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.process-card {
    position: relative;
    padding: 40px 30px 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.process-num {
    position: absolute;
    top: -18px; left: 30px;
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-green);
}

.process-card:hover .process-num {
    background: linear-gradient(140deg, var(--c-gold) 0%, var(--c-gold-deep) 100%);
    box-shadow: var(--shadow-gold);
}

.process-card h3 { font-size: 1.18rem; margin: 26px 0 12px; }
.process-card p { font-size: 0.94rem; }

/* Сертификаты / документы / ОКВЭД */
.docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.doc-card:hover { border-color: var(--c-brand); transform: translateX(6px); box-shadow: var(--shadow-sm); }

.doc-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--c-mint);
    color: var(--c-brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.doc-card:hover .doc-icon { background: linear-gradient(140deg, var(--c-brand), var(--c-brand-700)); color: #fff; }

.doc-info { flex: 1; min-width: 0; }
.doc-title { display: block; font-weight: 700; color: var(--c-ink); font-size: 0.98rem; margin-bottom: 4px; }
.doc-size { font-size: 0.82rem; color: var(--c-ink-muted); }

/* ============================================
   Команда
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.team-card {
    text-align: center;
    background: #fff;
    padding: 36px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.team-photo {
    width: 110px; height: 110px;
    border-radius: 50%;
    margin: 0 auto 22px;
    overflow: hidden;
    background: linear-gradient(140deg, var(--c-brand) 0%, var(--c-brand-700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    box-shadow: var(--shadow-green);
}

.team-card h4 { font-size: 1.08rem; margin-bottom: 6px; }

.team-role {
    font-size: 0.8rem;
    color: var(--c-gold-deep);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   Цифры / показатели
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    text-align: center;
}

.stats-grid > div {
    padding: 40px 24px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.stats-grid > div:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.stats-grid .stat-value {
    font-size: clamp(2.4rem, 4.4vw, 3.4rem);
    background: linear-gradient(120deg, var(--c-brand-700) 0%, var(--c-gold-deep) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--c-brand-700);
}

.section-alt .stats-grid > div { background: #fff; }

/* ============================================
   Анимации появления
   ============================================ */
.js-loaded .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-loaded .fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .js-loaded .fade-in { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .split { grid-template-columns: 1fr; gap: 44px; }
    .split-reverse .split-image { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .cta-inner { grid-template-columns: 1fr; text-align: center; }
    .cta-actions { justify-content: center; }
    .contacts-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
    :root { --header-height: 74px; }

    .nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }

    .nav.is-open {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 16px; right: 16px;
        background: #fff;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        border: 1px solid var(--c-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease;
    }
    .nav.is-open .nav-link { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); color: var(--c-ink); }
    .nav.is-open .nav-link.active { color: var(--c-brand-700); background: var(--c-mint); }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-12px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .hero { padding-top: calc(var(--header-height) + 50px); padding-bottom: 70px; }
    .hero-title { font-size: clamp(2rem, 8.5vw, 2.9rem); }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

    .cta { margin: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding: 64px 0 26px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .gallery-item.wide, .gallery-item.tall {
        grid-column: span 1; grid-row: span 1; aspect-ratio: 1/1;
    }

    .contact-form { padding: 30px 24px; }
    .page-header { padding: calc(var(--header-height) + 56px) 0 76px; }
    .hero-actions { gap: 12px; }
    .hero-actions .btn { width: 100%; }
    .marquee-item { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .logo-name { font-size: 1.04rem; }
    .logo-desc { font-size: 0.6rem; }
    .logo-mark { height: 46px; width: auto; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-card, .product-body { padding: 26px 22px; }
    .hero-badge { left: 16px; right: 16px; bottom: 16px; padding: 13px 16px; }
    .btn { padding: 14px 24px; }
}
