﻿/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3e24;    
    --secondary-color: #2d5a3d;  
    --accent-color: #4a7c59;     
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(255, 245, 150, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 60%, rgba(255, 230, 100, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 30% 85%, rgba(255, 235, 120, 0.1) 0%, transparent 40%);
    filter: blur(80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(42, 85, 50, 0.95); 
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5rem; /* Увеличили отступы */
    max-width: 1400px; /* Увеличили максимальную ширину */
    margin: 0 auto;
    transition: var(--transition);
}

.header.scrolled .nav-container {
    padding: 1.5rem 3rem; /* Уменьшили меньше при скролле */
}

.logo {
    flex: 1;
    min-width: 300px; /* Минимальная ширина для лого */
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.logo h1 {
    font-size: 1.3rem; /* Увеличили размер шрифта */
    font-weight: 400; /* Немного увеличили жирность */
    color: var(--white);
    transition: var(--transition);
    line-height: 1.4;
    letter-spacing: 0.5px; /* Добавили межбуквенный интервал */
}

.header.scrolled .logo h1 {
    font-size: 1.2rem; /* Меньше уменьшаем при скролле */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem; /* Увеличили расстояние между пунктами меню */
    align-items: center;
    margin-left: auto; /* Прижимаем меню к правому краю */
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1rem; /* Увеличили размер шрифта меню */
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 0; /* Увеличили вертикальные отступы */
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Запрещаем перенос текста */
}

.nav-link:hover {
    color: var(--white);
    opacity: 1;
    transform: translateY(-2px); /* Увеличили анимацию при наведении */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, #ffeb3b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 2rem; /* Отступ от меню */
}

.hamburger span {
    width: 30px; /* Увеличили ширину */
    height: 3px;
    background: var(--white);
    margin: 4px 0; /* Увеличили отступы между полосками */
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Герой секция - ОБНОВЛЕННАЯ ВЕРСИЯ */
.hero {
    height: 100vh;
    background: #0a160e; /* Темно-зеленый, почти черный */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Контейнер для системы труб */
.pipes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pipe-system {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Общие стили для труб - УБРАНЫ ТЕНИ */
.pipe-line {
    position: absolute;
    background: #000000; /* Черные трубы */
    border-radius: 2px;
    z-index: 1;
}

/* Хаотичное расположение труб как на референсе */
.pipe-1 {
    width: 140%;
    height: 3px;
    top: 20%;
    left: -20%;
    transform: rotate(-5deg);
}

.pipe-2 {
    width: 130%;
    height: 3px;
    top: 35%;
    left: -15%;
    transform: rotate(2deg);
}

.pipe-3 {
    width: 120%;
    height: 3px;
    top: 55%;
    left: -10%;
    transform: rotate(-3deg);
}

.pipe-4 {
    width: 125%;
    height: 3px;
    top: 70%;
    left: -12%;
    transform: rotate(4deg);
}

.pipe-5 {
    width: 3px;
    height: 140%;
    top: -20%;
    left: 25%;
    transform: rotate(3deg);
}

.pipe-6 {
    width: 3px;
    height: 130%;
    top: -15%;
    left: 45%;
    transform: rotate(-2deg);
}

.pipe-7 {
    width: 3px;
    height: 120%;
    top: -10%;
    left: 65%;
    transform: rotate(1deg);
}

.pipe-8 {
    width: 3px;
    height: 125%;
    top: -12%;
    left: 85%;
    transform: rotate(-4deg);
}

/* Диагональные трубы для большей хаотичности */
.pipe-9 {
    width: 160%;
    height: 3px;
    top: 40%;
    left: -30%;
    transform: rotate(25deg);
}

.pipe-10 {
    width: 150%;
    height: 3px;
    top: 65%;
    left: -25%;
    transform: rotate(-20deg);
}

.pipe-11 {
    width: 140%;
    height: 3px;
    top: 80%;
    left: 10%;
    transform: rotate(15deg);
}

/* Световые частицы энергии */
.energy-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, 
        #ffeb3b 0%, 
        #ff9800 50%, 
        transparent 70%);
    border-radius: 50%;
    box-shadow: 
        0 0 15px #ffeb3b,
        0 0 30px #ff9800,
        0 0 45px rgba(255, 152, 0, 0.3);
    z-index: 2;
    filter: blur(0.5px);
}

/* Точное позиционирование частиц на трубах */
.pipe-1 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveRight 8s linear infinite;
}

.pipe-2 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveRight 7s linear infinite 1s;
}

.pipe-3 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveRight 9s linear infinite 2s;
}

.pipe-4 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveRight 6s linear infinite 0.5s;
}

.pipe-5 .energy-particle {
    top: 0;
    left: -2.5px;
    animation: moveDown 8s linear infinite 1.5s;
}

.pipe-6 .energy-particle {
    top: 0;
    left: -2.5px;
    animation: moveDown 7s linear infinite 0.8s;
}

.pipe-7 .energy-particle {
    top: 0;
    left: -2.5px;
    animation: moveDown 9s linear infinite 2.5s;
}

.pipe-8 .energy-particle {
    top: 0;
    left: -2.5px;
    animation: moveDown 6s linear infinite 1.2s;
}

/* Анимации для диагональных труб */
.pipe-9 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveDiagonalRight 10s linear infinite 0.3s;
}

.pipe-10 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveDiagonalLeft 11s linear infinite 1.8s;
}

.pipe-11 .energy-particle {
    top: -2.5px;
    left: 0;
    animation: moveDiagonalRight2 9s linear infinite 3s;
}

/* Ключевые кадры анимаций */
@keyframes moveRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

@keyframes moveDiagonalRight {
    0% {
        transform: translate(-100px, -50px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100vw + 100px), calc(100vh * 0.7));
        opacity: 0;
    }
}

@keyframes moveDiagonalLeft {
    0% {
        transform: translate(100px, -50px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(-100vw - 100px), calc(100vh * 0.6));
        opacity: 0;
    }
}

@keyframes moveDiagonalRight2 {
    0% {
        transform: translate(-50px, -30px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100vw + 50px), calc(100vh * 0.4));
        opacity: 0;
    }
}

/* Контент поверх анимации */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}



/* Секции */

/* Стили для обновленного блока "О нас" */
.about-content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 4rem;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    min-height: 450px; /* Увеличил минимальную высоту */
}

.about-text-block {
    flex: 1;
    position: relative;
    z-index: 2;
    
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 20px 0;
    padding-right: 30rem;
    font-weight: 40;
}

/* ПОЛНОСТЬЮ ПЕРЕРАБОТАННЫЙ БЛОК ИЗОБРАЖЕНИЯ */
.engineer-image-wrapper {
    position: absolute; /* АБСОЛЮТНОЕ ПОЗИЦИОНИРОВАНИЕ */
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 400px; /* Фиксированная ширина */
    height: 600px; /* Фиксированная высота больше контейнера */
}

.engineer-image {
    position: absolute;
    bottom: 0; /* Прижимаем к низу */
    right: 30px; 
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.engineer-image img {
    width: auto;
    height: 130%; /* Изображение БОЛЬШЕ контейнера */
    max-width: none;
    object-fit: contain;
    object-position: bottom; /* Важно: выравнивание по низу */
    padding-bottom: 20px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    transform: translateY(20px); /* Небольшой подъем */
}

/* Отступ для заголовка "О НАС" */
.about-section h2 {
    margin-bottom: 1rem; /* Увеличил отступ */
    font-size: 2.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 4;
}

/* Анимация появления */
.about-content-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about-content-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--background-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000; 
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    padding: 0 3rem;
   
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title::before {
    right: 100%;  
    margin-right: -20rem;
}

.section-title::after {
    left: 100%;   
    margin-left: -20rem;
}

/* Анимация появления полос при скролле */
.section-title.visible::before,
.section-title.visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.section-title.visible::before {
    transition-delay: 0.3s;
}

.section-title.visible::after {
    transition-delay: 0.5s;
}

/* Блоки контента */
.content-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
}

/* Обновленные стили для блока "Наша миссия" */
.mission-block {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    text-align: center;
    z-index: 3;
}

/* Стили для заголовка "Наша миссия" */
.mission-block h3 {
    color: #000000;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: block; 
    text-align: center;
    
}

.mission-block h3::before {
    right: 100%;
    margin-right: -20rem;
    transform-origin: right center;
}

.mission-block h3::after {
    left: 100%;
    margin-left: -20rem;
    transform-origin: left center;
}

.mission-block h3::before,
.mission-block h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transform: scaleX(0);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Анимация появления полос при скролле */
.mission-block.visible h3::before,
.mission-block.visible h3::after {
    opacity: 1;
    transform: scaleX(1);
}

.mission-block.visible h3::before {
    transition-delay: 0.3s;
}

.mission-block.visible h3::after {
    transition-delay: 0.5s;
}



/* Анимация появления волн при скролле */
.mission-block.visible .wave {
    opacity: 1;
    transform: scaleX(1);
}

.mission-block.visible .wave-left {
    transition-delay: 0.3s;
}

.mission-block.visible .wave-right {
    transition-delay: 0.5s;
}

/* Центрируем сетку миссии */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Обновляем стили для карточек миссии */
.mission-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #e8f5e8;
    position: relative;
    overflow: hidden;
}

.mission-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mission-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mission-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.mission-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}


.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.goals-block {
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 100px;
    padding-top: 10rem;
    padding-bottom: 10rem;
    background: linear-gradient(180deg, #fffef9 0%, #fffdf3 100%);
}

/* Контейнер */
.goals-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 90px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Колонки */
.goals-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 45%;
    max-width: 380px;
    gap: 60px;
    z-index: 5;
}

.goal-item {
    position: relative;
    padding-left: 1.5rem;
    font-size: 17px;
    line-height: 1.8;
    color: #185029;
}

.goal-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color, #2e8b57);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Лёгкая асимметрия */
.goals-left {
    transform: translateY(100px);
}
.goals-right {
    transform: translateY(200px);
}

/* Центральная градирня */
.cooling-tower-container {
  position: relative;
  text-align: center;
  flex: 0 0 300px;
  z-index: 2;
}
.cooling-tower-container::before {
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3500px;
    height: 2000px;
    
    
   background:
    conic-gradient(
        from 5deg, /* общий лёгкий наклон вверх-вправо */
        
        /* --- правая сторона --- */
        transparent 0deg 45deg,
        rgba(255, 245, 200, 0.65) 47deg,
        rgba(255, 245, 200, 0.15) 51deg,
        transparent 55deg 75deg,
        rgba(255, 245, 200, 0.65) 80deg,
        rgba(255, 245, 200, 0.15) 83deg,
        transparent 85deg 150deg,

        /* --- левая сторона (теперь выше) --- */
        rgba(255, 245, 200, 0.65) 230deg,  /* ↑ было 200deg */
        rgba(255, 245, 200, 0.15) 235deg,
        transparent 230deg 255deg,          /* ↑ было 210–240 */
        rgba(255, 245, 200, 0.65) 260deg,
        rgba(255, 245, 200, 0.15) 264deg,
        transparent 270deg 360deg
    ),
    radial-gradient(
        circle at center,
        rgba(255,255,255,1) 60%,
        rgba(255,255,255,0) 110%
    );

background-blend-mode: multiply;
filter: blur(20px);
border-radius: 50%;
z-index: -10;
pointer-events: none;
}

/* Тень градирни остаётся позади лучей */
.cooling-tower {
  width: 700px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 100px rgba(59, 202, 135, 0.5));
}


/* Надпись */
.goals-word {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 72px;
  font-weight: 900;
  color: #0a2a0a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  pointer-events: none;
}

/* ЦЕЛИ — позади башни */
.goals-word-back {
  z-index: 1; /* ниже башни */
  opacity: 0.9;
  transform: translate(-140%, -60%); /* чуть левее */
  
}

/* СОЮЗА — поверх башни */
.goals-word-front {
  z-index: 4; /* выше башни */
  transform: translate(15%, -60%);
  
  /* Градиент для текста */
  background: linear-gradient(90deg, #2e8b57 0%, #a8e063 50%, #f7ff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;

  /* Небольшое свечение для выразительности */
  text-shadow: 0 0 20px rgba(80, 255, 150, 0.4);
}



/* Фикс выравнивания блока целей */
.goals-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Контейнер внутри */
.goals-content-wrapper {
    display: flex;
    justify-content: center; /* <-- выравниваем всё по центру */
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 60px; /* больше воздуха */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* баланс с .container */
}

/* Левая и правая колонка — одинаковая ширина */
.goals-column {
    flex: 0 0 360px;
}

/* Контейнер блока */
.goals-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 90px; /* ← больше расстояние между колонками и градирней */
    max-width: 1300px; /* ← немного шире */
    margin: 0 auto;
    padding: 0 40px; /* ← уменьшено, чтобы текст был ближе к краям */
}

/* Колонки */
.goals-column {
    flex: 0 0 380px; /* ← чуть шире, текст читается лучше */
}

/* Башня */
.cooling-tower-container {
    flex: 0 0 260px; /* ← чуть меньше, чтобы не съедала место у текста */
    text-align: center;
    position: relative;
}

/* Заголовок по центру */
.goals-title-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    color: #0a2a0a;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
    width: max-content;
}


/* Участники */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;

}

.member-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* было: .member-card h3 { color: var(--primary-color); } */
.member-card h3:not(.member-hero__title) {
  color: var(--primary-color);
}

.member-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.member-link:hover {
    text-decoration: underline;
}

.services h4 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem 0;
}

.services ul {
    list-style: none;
    padding-left: 0;
}

.services li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.file-download {
    margin-top: 3.5rem;
    padding: 2.5rem 3rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f6fbf8 0%, #ecf3ed 100%);
    border: 1px solid rgba(42, 85, 50, 0.12);
    box-shadow: 0 18px 38px rgba(34, 64, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

.file-download h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.04em;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.9rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 12px 28px rgba(30, 62, 36, 0.22);
}

.download-btn::after {
    content: '↓';
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.download-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(30, 62, 36, 0.26);
}

.download-btn:hover::after {
    transform: translateY(2px);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(30, 62, 36, 0.2);
}

.download-btn:focus-visible {
    outline: 2px solid rgba(42, 85, 50, 0.4);
    outline-offset: 4px;
}

/* База знаний */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.knowledge-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

.knowledge-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.knowledge-item {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.knowledge-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.summary {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.knowledge-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

/* Контакты */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    text-align: left;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Футер */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Анимации */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Стили для блока "Наша миссия" */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mission-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mission-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mission-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Анимация манометра и графика */
.gauge-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-circle {
    width: 80px;
    height: 80px;
    border: 8px solid #f0f0f0;
    border-radius: 50%;
    position: relative;
    border-top: 8px solid var(--accent-color);
    border-right: 8px solid var(--accent-color);
    transform: rotate(-45deg);
}

.gauge-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 4px;
    background: var(--primary-color);
    transform-origin: left center;
    animation: gaugeNeedle 3s ease-in-out infinite;
}

.gauge-background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #4a7c59 0% 70%,
        #8fb996 70% 85%,
        #f0f0f0 85% 100%
    );
    opacity: 0.1;
}

.chart-growth {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
}

.chart-bar {
    width: 6px;
    background: var(--secondary-color);
    border-radius: 2px 2px 0 0;
    animation: chartGrow 2s ease-in-out infinite;
}

.chart-bar-1 { height: 15px; animation-delay: 0.1s; }
.chart-bar-2 { height: 25px; animation-delay: 0.2s; }
.chart-bar-3 { height: 35px; animation-delay: 0.3s; }
.chart-bar-4 { height: 20px; animation-delay: 0.4s; }

/* Анимация документов и шестеренок */
/* Анимация документов с PNG шестеренками */
.policy-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documents-stack {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 1;
}

.document {
    position: absolute;
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 8px;
}

.doc-1 {
    width: 60px;
    height: 70px;
    top: 5px;
    left: 10px;
    z-index: 3;
    animation: docFloat 4s ease-in-out infinite;
}

.doc-2 {
    width: 55px;
    height: 65px;
    top: 8px;
    left: 12px;
    z-index: 2;
    animation: docFloat 4s ease-in-out infinite 1s;
    transform: rotate(3deg);
}

.doc-3 {
    width: 50px;
    height: 60px;
    top: 12px;
    left: 15px;
    z-index: 1;
    animation: docFloat 4s ease-in-out infinite 2s;
    transform: rotate(-2deg);
}

.doc-line {
    height: 3px;
    background: var(--accent-color);
    margin-bottom: 5px;
    border-radius: 1px;
}

.doc-line:nth-child(1) { width: 90%; }
.doc-line:nth-child(2) { width: 70%; }
.doc-line:nth-child(3) { width: 80%; }

.gears-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 0;
}

.gear-icon {
    position: absolute;
    filter: invert(24%) sepia(30%) saturate(1000%) hue-rotate(100deg) brightness(40%) contrast(90%);
}

.gear-large {
    width: 45px;
    height: 45px;
    top: 5px;
    right: 0;
    animation: gearRotate 6s linear infinite;
}

.gear-small {
    width: 30px;
    height: 30px;
    bottom: 10px;
    left: 5px;
    animation: gearRotate 4s linear infinite reverse;
}

/* Анимации */
@keyframes docFloat {
    0%, 100% { 
        transform: translateY(0) rotate(var(--rotation, 0deg)); 
    }
    50% { 
        transform: translateY(-5px) rotate(calc(var(--rotation, 0deg) + 2deg)); 
    }
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Устанавливаем индивидуальные rotation для документов */
.doc-1 { --rotation: 0deg; }
.doc-2 { --rotation: 3deg; }
.doc-3 { --rotation: -2deg; }


/* Анимация атома и лампочки */
.development-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atom-icon {
    position: relative;
    width: 80px;
    height: 80px;
}

.atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.atom-orbit {
    position: absolute;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: orbitRotate 4s linear infinite;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-duration: 3s;
}

.orbit-2 {
    width: 70px;
    height: 40px;
    top: 20px;
    left: 5px;
    animation-duration: 4s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 40px;
    height: 70px;
    top: 5px;
    left: 20px;
    animation-duration: 5s;
}

.atom-electron {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.lightbulb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: bulbGlow 3s ease-in-out infinite 1s;
}

.bulb {
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50% 50% 40% 40%;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.bulb::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, #b0b0b0, #e0e0e0);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    z-index: -1;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
}

/* Анимации */
@keyframes gaugeRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

@keyframes gaugeNeedle {
    0%, 100% { transform: rotate(-30deg); }
    50% { transform: rotate(30deg); }
}

@keyframes chartGrow {
    0%, 100% { 
        transform: scaleY(0.8); 
    }
    50% { 
        transform: scaleY(1.2); 
    }
}

.chart-bar {
    width: 6px;
    background: var(--secondary-color);
    border-radius: 2px 2px 0 0;
    transform-origin: bottom center; /* Добавляем эту строку */
    animation: chartGrow 2s ease-in-out infinite;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bulbGlow {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}



/* Грид оставляем, но поджимаем карточки */
/* ← ЗАМЕНИ этот блок целиком */
.members-grid--heroheads{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 колонки на десктопе */
  gap: 2rem;
}


/* Карточка: верх — кликабельная «шапка» со скрином */
.member-hero {
  display:flex;                 /* NEW */
  align-items:center;           /* вертикальный центр */
  justify-content:center;       /* горизонтальный центр */
  text-decoration:none;         /* убрать подчёркивание у <a> */
  position: relative;
  height: 180px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: var(--bg) center/cover no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
  will-change: transform;
}

.member-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65); /* ← равномерное тёмное затемнение */
  z-index: 1;
}
.member-hero:hover{ transform: translateY(-4px); box-shadow:0 14px 36px rgba(0,0,0,.14); filter:saturate(1.05)}
.member-hero:hover::before{opacity:.6}

/* для шапки поверх затемнения */
.member-hero__title{
  position:relative;            /* поверх затемнения */
  z-index:2;
  margin:0;
  padding:0 16px;               /* чтобы текст не лип к краям на узких экранах */
  color:#fff;
  text-align:center;            /* на всякий случай */
  text-decoration:none;         /* страховка от подчёркивания */
  text-shadow:
    0 1px 2px rgba(0,0,0,.3),   /* лёгкая чёрная тень */
    0 6px 20px rgba(0,0,0,.25); /* мягкое свечение */
  font-weight: 450; /* ← средний, выглядит аккуратнее */
}


/* Низ карточки */
.member-card{
  padding:0; /* уже есть шапка */
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e8efe8;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease;
}
.member-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(0,0,0,.10)}

/* Сервисы */
.member-card .services{
  padding:1.2rem 1.4rem 1.6rem;
}
.member-card .services ul{list-style:none;margin:0;padding:0}
.member-card .services li{
  position:relative;padding-left:1.25rem;margin:.45rem 0;line-height:1.55;font-size:.95rem;color:#2e2e2e
}
.member-card .services li::before{
  content:'•';position:absolute;left:0;top:0;color:var(--accent-color);font-weight:700
}


.docs-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.doc-showcase-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.doc-showcase-image {
  position: relative;
  width: 100%;
  padding-top: 140%; /* пропорции документа */
  border-radius: 10px;
  background: linear-gradient(180deg, #1f4b2c 0%, #14311f 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Задние декоративные элементы */
.doc-showcase-image::before,
.doc-showcase-image::after {
  content: "";
  position: absolute;
  border-radius: 12px;
}

.doc-showcase-image::before {
  inset: -10px -10px auto auto;
  width: 100%;
  height: 100%;
  background: #2d5a3d;
  transform: translate(-10px, 10px);
  z-index: -1;
}

.doc-showcase-image::after {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 4px solid #d4b83f;
  transform: translate(14px, -14px);
  z-index: -2;
}

.doc-showcase-card:hover .doc-showcase-image {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.doc-showcase-cover {
  position: absolute;
  inset: 8% 9%;
  border-radius: 12px;
  background: var(--doc-cover) center/cover no-repeat;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.doc-showcase-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 29, 19, 0) 0%, rgba(14, 29, 19, 0.16) 55%, rgba(14, 29, 19, 0.46) 100%);
  pointer-events: none;
}

.doc-showcase-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, rgba(10, 12, 14, 0) 0%, rgba(10, 12, 14, 0.78) 100%);
}

.doc-showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.9rem;
  border-radius: 999px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(30, 62, 36, 0.25);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.doc-showcase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(30, 62, 36, 0.28);
  background: var(--secondary-color);
}

.doc-showcase-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(30, 62, 36, 0.22);
}

/* --- БАЗА ЗНАНИЙ: свежий минималистичный вид --- */
.knowledge-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  align-items:stretch;
}

/* Колонка-карточка */
.kcard{
  opacity: 1 !important; 
  transform: none !important; 
  --card-bg: rgba(255,255,255,0.75);
  --card-bd: rgba(30,62,36,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), var(--card-bg));
  border:1px solid var(--card-bd);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  backdrop-filter:saturate(120%) blur(6px);
  padding:1.25rem 1.25rem 1.5rem;
  transition:transform .25s ease, box-shadow .25s ease;
}
.kcard:hover{ transform:translateY(-3px); box-shadow:0 18px 40px rgba(0,0,0,.10); }

/* Шапка колонки */
.kcard__head{
  position:relative;
  padding: .25rem .25rem 1.25rem;
  margin-bottom:.25rem;
}
.kcard__head::after{
  content:"";
  position:absolute;
  left:6px; right:6px; bottom:.6rem;
  height:2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity:.25;
}
.kcard__title{
  margin:0;
  text-align:center;
  font-size:1.25rem;
  font-weight:650;
  color:#20462a;
}

/* Микро-карточка записи */
.kitem{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:space-between;
  gap:1.1rem;
  background:#f7faf7;
  border:1px solid #e8efe8;
  border-radius:14px;
  padding:1.25rem 1.35rem 1.4rem;
  margin:.9rem 0;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kitem:hover{
  transform:translateY(-2px);
  border-color:#dfe9df;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.kitem__main{ flex:1 1 auto; min-width:0; }
.kitem__title{
  font-size:1rem; font-weight:650; margin:0 0 .35rem 0; color:#1e3e24;
}
.kitem__meta{
  margin:0 0 .5rem 0;
  font-size:.92rem;
  color:rgba(30,62,36,0.75);
  font-weight:550;
}
.kitem__desc{
  margin:0; color:#5b6b5f; font-size:.95rem; line-height:1.55;
}

/* Кнопки */
.kitem__actions{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  flex-wrap:wrap;
  margin-top:1.1rem;
  width:100%;
}
.kitem__actions .kbtn{
  flex:1 1 48%;
  justify-content:center;
  padding:.6rem 1.4rem;
}
.kbtn{
  --btn-px: 14px;
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.55rem var(--btn-px);
  border-radius:999px;
  font-size:.9rem; font-weight:600;
  text-decoration:none; cursor:pointer; white-space:nowrap;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

/* Солидная зелёная */
.kbtn--primary{
  background:var(--primary-color);
  color:#fff; border:1px solid rgba(0,0,0,.05);
}
.kbtn--primary::after{ content:"↘"; opacity:.9; transform: translateY(1px); }
.kbtn--primary:hover{ transform:translateY(-1px); box-shadow:0 8px 18px rgba(30,62,36,.25); }

/* Воздушная/прозрачная */
.kbtn--ghost{
  background:#fff; color:#1e3e24; border:1px solid #dfe9df;
}
.kbtn--ghost::after{ content:"→"; }
.kbtn--ghost:hover{ background:#f4faf4; }

/* Ссылка как кнопка */
.kbtn--link{
  background:#f0f6f1; color:#1e3e24; border:1px solid #e1efe3;
}
.kbtn--link::after{ content:"↗"; }
.kbtn--link:hover{ background:#e8f3ea; }

/* Скрытые резервные колонки */
.kcard--hidden{ display:none !important; }


/* вертикальные отступы вокруг Базы знаний */
#knowledge .knowledge-grid{ 
  margin-bottom: 64px;   /* отступ снизу перед следующей секцией */
}

/* небольшой нижний отступ для каждой колонки на случай узких экранов */
.kcard{ margin-bottom: 24px; }

/* можно слегка поднять «Контакты», если хочется ещё больше воздуха */
/* футер — без собственной картинки */
.footer{
  padding: 0;
  background: none;
  color: inherit;
}
.footer-legal{
  background: linear-gradient(180deg, #fffef9 0%, #fff8e1 100%);
  color:#333;
  text-align:center;
  padding:16px 0;
  border-top:1px solid rgba(0,0,0,.06);
}

/* ФОН ТОЛЬКО У КОНТАКТОВ */
#contacts {
  position: relative;
  padding: 880px 0 0;
  min-height: clamp(320px, 75vh, 960px);
  overflow: hidden;
  color: #fff;
}
#contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(24, 52, 32, 0.92), rgba(20, 44, 28, 0.94)), 
              url("images/podval.png") 30% 150% / cover no-repeat;
  z-index: 0;
  mix-blend-mode: normal;
}

.contacts-heading {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  margin-bottom: 2.5rem;
}

.contacts-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: clamp(48px, 8vw, 96px) clamp(28px, 10vw, 160px);
  background: linear-gradient(115deg, rgba(18, 40, 25, 0.85), rgba(36, 74, 45, 0.85));
  color: rgba(255,255,255,0.92);
  border-radius: 0;
  backdrop-filter: blur(0);
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contacts-info {
  display: grid;
  gap: 1.2rem;
  max-width: 520px;
}

.contacts-panel h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.contacts-panel p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  color: rgba(255,255,255,0.86);
  max-width: 560px;
}

.contacts-panel .contact-details {
  display: grid;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 520px;
}

.contacts-panel .contact-details p {
  font-size: 1.02rem;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}

.contacts-panel .contact-details p strong,
.contacts-panel .contact-details p a {
  font-weight: 600;
  color: #ffffff;
}

/* заголовок/линии на тёмном фоне */
#contacts .section-title{ color:#fff; }
#contacts .section-title::before,
#contacts .section-title::after{
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  opacity: .65;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.footer { margin-top: auto; background: transparent; }
.footer-legal {
  background: #dce8dc;
  color: #333;
  text-align: center;
  padding: 16px 0;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,.06);
}

/* === ДЕСKTOP-ВСТАВКА ФОНА МЕЖДУ РЕЕСТРОМ И БАЗОЙ ЗНАНИЙ === */
@media (min-width: 1024px) {
  /* Родитель для псевдо-элемента с фоном */
  #members {
    position: relative;
    /* чуть меньше «воздуха» снизу, чтобы секции сблизить */
    padding-bottom: 48px;
  }

  /* Большая фоновая картинка, «свисающая» под секцию участников */
  #members::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -220px;                  /* насколько глубоко заходит под следующую секцию */
    transform: translateX(-50%);
    width: min(1280px, 92vw);        /* ширина фона */
    height: 720px;                   /* высота фона */
    background: url("images/heatingnetworks.png") center/contain no-repeat;
    opacity: 0.12;                   /* прозрачность водяного знака */
    filter: saturate(90%) contrast(105%);
    pointer-events: none;
    z-index: 0;                      /* фон под контентом */
  }

  /* Слой контента «Реестра» над фоном */
  .file-download {
    position: relative;
    z-index: 1;
    margin-top: 24px;                /* чтобы не прилипало к сетке выше */
  }

  /* Чуть сдвигаем вверх «Базу знаний» и поднимаем её над фоном */
  #knowledge {
    position: relative;
    z-index: 1;
    padding-top: 64px;               /* компактнее, чем общий .section */
  }
  #knowledge .section-title,
  #knowledge .knowledge-grid,
  #knowledge .kcard,
  #knowledge .kitem {
    position: relative;
    z-index: 1;                      /* на всякий случай, чтобы все карточки были выше фона */
  }
}

/* === HEATINGNETWORKS: плотная подложка между Реестром и Базой знаний (desktop) === */
@media (min-width: 1024px) {
  /* Тюнинговые переменные — подбирать под макет при необходимости */
  #members{
    position: relative;
    --img-max-w: min(1400px, 96vw); /* ширина картинки */
    --img-aspect: 16/9;             /* реальное соотношение сторон изображения */
    --img-bottom: -140px;           /* насколько "заходит" под секцию Базы знаний */
    padding-bottom: 48px;           /* компактнее снизу у Реестра */
  }

  /* Собственно картинка как водяной знак, НО без прозрачности и целиком видимая */
  #members::after{
    content:"";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--img-bottom);         /* кромка уходит под следующую секцию */
    width: var(--img-max-w);
    aspect-ratio: var(--img-aspect);   /* сохраняем пропорции, чтобы картинка целиком влезла */
    background: url("images/heatingnetworks.png") top center / contain no-repeat;
    opacity: 1;                         /* без прозрачности */
    pointer-events: none;
    z-index: 0;
  }

  /* Контент Реестра всегда сверху */
  .file-download{ position: relative; z-index: 1; }

  /* Чуть прижмём Базу знаний к картинке и гарантированно держим её выше */
  #knowledge{
    position: relative;
    z-index: 1;
    padding-top: 56px;                 /* подогнано под высоту изображения */
  }
  #knowledge .section-title,
  #knowledge .knowledge-grid,
#knowledge .kcard,
  #knowledge .kitem{ position: relative; z-index: 1; }
}

/* === Updated heating networks layout (desktop) === */
@media (min-width: 1024px) {
  :root {
    --knowledge-bg-width: min(1500px, 95vw);
  }

  #members {
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
  }

  #members .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
  }

  #members::after {
    content: none;
  }

  #members .section-title {
    color: var(--text-dark);
  }

  #members .section-title::before,
  #members .section-title::after {
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  }

  #knowledge {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: clamp(140px, 14vw, 200px);
    padding-bottom: clamp(140px, 16vw, 220px);
    margin-bottom: clamp(100px, 10vw, 160px);
    background: transparent;
  }

  #knowledge::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: var(--knowledge-bg-width);
    background:
      linear-gradient(180deg, rgba(10, 24, 16, 0.82), rgba(10, 24, 16, 0.64)),
      url("images/heatingnetworks.png") center/cover no-repeat;
    border-radius: 42px;
    box-shadow: 0 38px 120px rgba(0, 0, 0, 0.36);
    pointer-events: none;
    z-index: 0;
  }

  #knowledge .container,
  #knowledge .section-title,
  #knowledge .knowledge-grid,
  #knowledge .kcard,
  #knowledge .kitem {
    position: relative;
    z-index: 1;
  }

  #knowledge .section-title {
    color: #ffffff;
  }

  #knowledge .section-title::before,
  #knowledge .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  }

  #knowledge .kcard {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  }
}
