/* ==================== ОСНОВНЫЕ СТИЛИ ==================== */
:root {
    /* Эко-палитра цветов */
    --primary-green: #4a7c59;
    --light-green: #7fb069;
    --accent-green: #90c695;
    --soft-beige: #f8f6f0;
    --cream-white: #fefefe;
    --warm-grey: #e8e6e0;
    --text-dark: #2c3e2d;
    --text-light: #6b7c6e;
    --shadow-light: rgba(74, 124, 89, 0.1);
    --shadow-medium: rgba(74, 124, 89, 0.2);
    /* Матовый зелёный градиент — как в sertpdf.css */
    --gradient-primary: linear-gradient(135deg, rgba(47, 111, 78, 0.16) 0%, rgba(47, 111, 78, 0.24) 100%);
    --gradient-soft: linear-gradient(135deg, #f8f6f0 0%, #fefefe 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Alegreya', serif;
    background: var(--cream-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
  }

/* ==================== BOOTSTRAP НАВИГАЦИЯ ==================== */

/* Основной navbar: стеклянный как на главной */
.navbar.ecodom-navbar {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: none;
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1400px;
  z-index: 1030;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
  min-height: auto;
}

.navbar.ecodom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  border-radius: 0 0 32px 32px;
}

/* Доп. стеклянный слой */
.navbar.ecodom-navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%);
  border-radius: 0 0 28px 28px;
  pointer-events: none;
}

.navbar.ecodom-navbar.scrolled::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.02) 100%);
  border-radius: 0 0 32px 32px;
}

/* Container настройки (как на главной) */
.navbar .container-fluid {
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Адаптивные настройки контейнера */
@media (max-width: 991.98px) {
  .navbar .container-fluid { padding: 0 1.5rem; }
}
@media (max-width: 767.98px) {
  .navbar .container-fluid { padding: 0 1rem; }
}
@media (max-width: 575.98px) {
  .navbar .container-fluid { padding: 0 0.8rem; }
}

/* Простой логотип EcoDom */
.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  padding: 0;
  margin-right: 2rem;
}

.navbar-brand:hover {
  text-decoration: none !important;
}

.logo-container {
  display: flex;
  align-items: center;
}

/* Анимация логотипа как на главной */
.logo-svg .svg-elem-1 {
  stroke-dashoffset: 672.049560546875px;
  stroke-dasharray: 672.049560546875px;
  fill: var(--primary-green);
  stroke: var(--primary-green);
  stroke-width: 2;
  transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0s,
              fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
}
.navbar-brand:hover .logo-svg .svg-elem-1 {
  stroke-dashoffset: 0;
  fill: var(--light-green);
  stroke: var(--light-green);
}
.logo-svg .svg-elem-2 {
  stroke-dashoffset: 248.2175750732422px;
  stroke-dasharray: 248.2175750732422px;
  fill: var(--text-dark);
  stroke: var(--text-dark);
  stroke-width: 2;
  transition: stroke-dashoffset 1s cubic-bezier(0.47, 0, 0.745, 0.715) 0.12s,
              fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s;
}
.navbar-brand:hover .logo-svg .svg-elem-2 {
  stroke-dashoffset: 0;
  fill: var(--text-light);
  stroke: var(--text-light);
}

.company-name {
  font-family: 'Alegreya', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0;
  transition: color 0.3s ease;
}

.navbar-brand:hover .company-name {
  color: var(--light-green);
}

/* Navbar Toggle Button */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  background: var(--gradient-primary);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.navbar-toggler:focus {
  box-shadow: 0 2px 8px var(--shadow-light);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}

/* Navbar Collapse */
.navbar-collapse {
  flex-grow: 1;
  justify-content: center;
}

/* Navbar Nav */
.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

.navbar-nav .nav-item {
  margin: 0;
}

/* Кнопки навигации (стеклянные как на главной) */
.navbar-nav .nav-link {
  color: rgba(0, 0, 0, 0.8) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1rem !important;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  margin: 0 0.2rem;
}

/* Эффект при наведении */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: rgba(74, 124, 89, 0.9) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Анимация иконок */
.navbar-nav .nav-link i {
  margin-right: 0.4rem;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover i {
  transform: scale(1.1);
  color: var(--light-green);
}

/* Тонкая пульсация для каталога */
.navbar-nav .nav-link[href*="catalog"] {
  animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    background: transparent;
  }
  50% {
    background: rgba(127, 176, 105, 0.05);
  }
}

/* Right side items */
.navbar-nav.ms-auto {
  flex-direction: row;
  gap: 1rem;
}

/* ==================== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ==================== */
.language-switcher {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.lang-toggle {
  position: relative;
  display: inline-block;
}

.lang-checkbox {
  display: none;
}

.lang-label {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 95px;
  height: 36px;
}

.lang-label:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  transform: translateY(-1px);
}

.lang-option {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  padding: 8px 12px;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-option.active {
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 43px;
  height: 30px;
  background: linear-gradient(135deg, #4a7c59 0%, #7fb069 100%);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 2px 8px rgba(74, 124, 89, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.lang-checkbox:checked + .lang-label .lang-slider {
  transform: translateX(43px);
  background: linear-gradient(135deg, #7fb069 0%, #90c695 100%);
}

.lang-checkbox:checked + .lang-label .lang-ru {
  color: #6c757d;
  font-weight: 600;
  text-shadow: none;
}

.lang-checkbox:checked + .lang-label .lang-en {
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Анимация при переключении */
.lang-label::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.06), rgba(127, 176, 105, 0.03));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lang-label:active::after {
  opacity: 1;
}

/* Эффекты при наведении */
.lang-toggle:hover .lang-slider {
  box-shadow:
    0 3px 10px rgba(74, 124, 89, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Адаптация для светлой темы */
.light-theme .lang-label {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-color: rgba(74, 124, 89, 0.35);
  box-shadow: 0 3px 12px rgba(74, 124, 89, 0.12);
}

.light-theme .lang-option {
  color: #495057;
}

.light-theme .lang-option.active {
  color: white;
}

/* Уведомления о смене языка */
.lang-notification { font-family: 'Inter', sans-serif; }
.notification-content { display: flex; align-items: center; justify-content: center; }
.lang-text { font-weight: 600; letter-spacing: 0.5px; }

/* Компактные адаптивные стили для переключателя языков */
@media (max-width: 991.98px) {
  .language-switcher { margin-right: 0.3rem; }
  .lang-label { width: 80px; height: 34px; }
  .lang-slider { width: 36px; height: 28px; }
  .lang-checkbox:checked + .lang-label .lang-slider { transform: translateX(36px); }
}

@media (max-width: 767.98px) {
  .language-switcher { margin-right: 0.2rem; }
  .lang-label { width: 70px; height: 30px; padding: 2px; }
  .lang-slider { width: 32px; height: 26px; top: 2px; left: 2px; }
  .lang-checkbox:checked + .lang-label .lang-slider { transform: translateX(32px); }
  .lang-option { font-size: 0.7rem; padding: 6px 8px; }
}

@media (max-width: 575.98px) {
  .language-switcher { margin-right: 0.1rem; }
  .lang-label { width: 60px; height: 28px; padding: 2px; }
  .lang-slider { width: 28px; height: 24px; top: 2px; left: 2px; }
  .lang-checkbox:checked + .lang-label .lang-slider { transform: translateX(28px); }
  .lang-option { font-size: 0.65rem; padding: 5px 6px; }
}

/* Дополнительные Bootstrap переопределения */
.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0.8rem;
  padding-left: 0.8rem;
}

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

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--primary-green);
}

.navbar-light .navbar-toggler {
  border-color: transparent;
}

/* Фиксация z-index для корректной работы */
.navbar {
  z-index: 1030;
}

/* ==================== HERO СЕКЦИЯ СЕРТИФИКАТОВ ==================== */
.certificates-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Матовый зелёный фон как на sertpdf */
    background: rgba(74, 124, 89, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    color: var(--text-dark);
    overflow: hidden;
}

/* ==================== Verified Badge Styles ==================== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 18px !important;
  color: #4a7c59 !important;
  vertical-align: middle;
  animation: verifiedPulse 2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(74, 124, 89, 0.4);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes verifiedPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(74, 124, 89, 0.4));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(74, 124, 89, 0.6));
  }
}

.nav-link:hover .verified-badge {
  color: #2c5530 !important;
  animation: verifiedSpin 0.6s ease-in-out;
}

@keyframes verifiedSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ==================== Glass Nav Overrides (as on Index) ==================== */
.navbar.ecodom-navbar {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.navbar.ecodom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(0, 0, 0, 0.12);
}

.navbar-nav .nav-link {
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  color: rgba(0, 0, 0, 0.85) !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.45) !important;
  color: rgba(0, 0, 0, 0.85) !important;
  transform: none !important;
}
.navbar-nav .nav-link i {
  transition: none !important;
}
.navbar-nav .nav-link:hover i {
  transform: none !important;
  color: inherit !important;
}
.navbar-nav .nav-link[href*="catalog"] {
  animation: none !important;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(74, 124, 89, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(127, 176, 105, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(144, 198, 149, 0.02) 0%, transparent 80%);
    opacity: 0.8;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-cert {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1), rgba(127, 176, 105, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(74, 124, 89, 0.15);
    animation: floating 6s ease-in-out infinite;
}

.floating-cert::before {
    content: '📜';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.cert-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.cert-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.cert-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(50px);
    /* Ускоряем анимацию в 2 раза */
    animation: heroFadeInUp 0.6s ease-out 0.25s forwards;
}

@keyframes heroFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.1), rgba(127, 176, 105, 0.05));
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(74, 124, 89, 0.2);
    margin-bottom: 30px;
    opacity: 0;
    animation: badgeSlideIn 0.8s ease-out 0.8s forwards;
}

@keyframes badgeSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark); /* как в sertpdf.css */
    margin-bottom: 25px;
    position: relative;
    opacity: 0;
    animation: titleScale 1s ease-out 1s forwards;
}

@keyframes titleScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
    from {
        opacity: 0;
        transform: scale(0.8);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease-out 1.2s forwards;
}

@keyframes subtitleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.hero-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: statSlideUp 0.8s ease-out forwards;
}

/* ====== Hero stats: outlined chips per request ====== */
.certificates-hero .hero-stat {
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 14px;
    padding: 12px 18px;
}
.certificates-hero .stat-number {
    /* override gradient text */
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #2F6F4E !important;
    color: #2F6F4E !important;
    font-weight: 800;
}
.certificates-hero .stat-label {
    color: #2F6F4E !important;
    font-weight: 700;
}

/* ==================== HERO — OUTLINED CONCEPT (more presentable) ==================== */
.certificates-hero .hero-title {
    /* Subtle green outline + layered shadows for premium look */
    -webkit-text-stroke: 1px rgba(47, 111, 78, 0.30);
    text-shadow:
        0 1px 0 #ffffff,
        0 2px 8px rgba(74, 124, 89, 0.18),
        0 10px 28px rgba(74, 124, 89, 0.12);
    letter-spacing: 0.5px;
}

/* Убрать подчеркивание под заголовком */
.certificates-hero .hero-title::after { display: none; }

/* Цвет подзаголовка */
.certificates-hero .hero-subtitle { color: #2F6F4E !important; }

.certificates-hero .hero-badge {
    background: #ffffff !important;
    border: 1px solid #000 !important;
    box-shadow: none;
    color: #2F6F4E !important;
}

.certificates-hero .hero-badge i { display: none !important; }

.certificates-hero .hero-badge i::after {
    /* Soft conic glow ring behind the icon */
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
      rgba(74,124,89,0.00), rgba(74,124,89,0.18), rgba(127,176,105,0.20), rgba(144,198,149,0.18), rgba(74,124,89,0.00));
    filter: blur(6px);
    z-index: -1;
}

.certificates-hero .floating-cert {
    /* Crisper border + subtle glow for floating elements */
    border: 1.5px solid rgba(74, 124, 89, 0.35);
    box-shadow: 0 6px 16px rgba(74, 124, 89, 0.12);
}

.hero-stat:nth-child(1) { animation-delay: 1.4s; }
.hero-stat:nth-child(2) { animation-delay: 1.6s; }
.hero-stat:nth-child(3) { animation-delay: 1.8s; }

@keyframes statSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a7c59, #90c695);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== СЕКЦИЯ СЕРТИФИКАТОВ ==================== */
.certificates-section {
    padding: 120px 0;
    background: var(--cream-white);
    position: relative;
}

/* Единый стиль: убрать анимации в сетке сертификатов */
.certificates-section *,
.certificates-section *::before,
.certificates-section *::after {
  animation: none !important;
  transition: none !important;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-size: 3.2rem;
    font-weight: 700;
    /* Уведомлено: привести к стилю hero — сплошной цвет текста */
    color: var(--text-dark);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    margin-bottom: 20px;
    position: relative;
}

/* Убрать подчеркивание под заголовком в секции */
.section-header h2::after { display: none; }

/* Цвет подзаголовка как в hero */
.section-subtitle {
    font-size: 1.2rem;
    color: #2F6F4E !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    background: rgba(74, 124, 89, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #000;
    border-radius: 16px;
}

.certificate-card {
    background: #fff;
    border: 1px solid #000;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: none !important;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
}

.certificate-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.certificate-card.featured {
    border: 1px solid #000;
    transform: none;
    box-shadow: none;
}

.certificate-card:hover {
  transform: none;
  border-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.cert-header {
    /* Как в sertpdf.css: более выраженный матовый градиент */
    background: linear-gradient(135deg, rgba(47, 111, 78, 0.22) 0%, rgba(127, 176, 105, 0.18) 100%);
    padding: 30px;
    border-bottom: 1px solid rgba(74, 124, 89, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.cert-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7c59, #7fb069);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.3);
    transition: all 0.3s ease;
}

.certificate-card:hover .cert-icon { transform: none; }

.cert-header .cert-icon { display: none; }

.cert-type {
    background: #ffffff;
    color: #2F6F4E;
    padding: 8px 16px;
    border: 1px solid #000;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    text-align: center;
}

.cert-content {
    padding: 35px;
}

.cert-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2F6F4E;
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    background: #ffffff;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px 12px;
}

.cert-content h3::after { display: none; }

.cert-content p {
    color: #4C6A5C; /* как в sertpdf */
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
}

.cert-features {
    margin-bottom: 25px;
    background: transparent;
    border: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.feature-item + .feature-item { margin-top: 6px; }

.feature-item:hover { transform: none; color: inherit; }

.feature-item i {
    color: #2F6F4E; /* глубокий зелёный как в sertpdf */
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease, filter 0.25s ease, color 0.25s ease;
    will-change: transform;
}

/* Нежная анимация иконки при наведении на пункт */
.feature-item:hover i {
    transform: translateY(-2px) scale(1.12);
    color: #4a7c59;
    filter: drop-shadow(0 4px 10px rgba(74, 124, 89, 0.2));
}

/* Иконки с тематическими анимациями */
@keyframes icon-spin {
  to { transform: rotate(360deg); }
}
@keyframes icon-sway {
  0% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
  100% { transform: rotate(-6deg); }
}
@keyframes icon-wave {
  0% { transform: skewX(0deg) translateY(0); }
  25% { transform: skewX(8deg) translateY(-1px); }
  50% { transform: skewX(0deg) translateY(0); }
  75% { transform: skewX(-8deg) translateY(1px); }
  100% { transform: skewX(0deg) translateY(0); }
}
@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes icon-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Привязка анимаций к конкретным иконкам при наведении строки */
.feature-item:hover i.fa-cogs,
.feature-item:hover i.fa-gear { animation: icon-spin 1s linear infinite; }

.feature-item:hover i.fa-leaf { animation: icon-sway 1.2s ease-in-out infinite; }

.feature-item:hover i.fa-flag { animation: icon-wave 1s ease-in-out infinite; }

.feature-item:hover i.fa-globe { animation: icon-spin 1.4s linear infinite; }

.feature-item:hover i.fa-microscope { animation: icon-sway 0.9s ease-in-out infinite; }

.feature-item:hover i.fa-stamp { animation: icon-bounce 0.9s ease-in-out infinite; }

.feature-item:hover i.fa-industry,
.feature-item:hover i.fa-factory { animation: icon-shake 0.5s ease-in-out infinite; }

.feature-item:hover i.fa-check-circle,
.feature-item:hover i.fa-clipboard-check { animation: icon-pulse 0.9s ease-in-out infinite; }

.feature-item:hover i.fa-chart-line { animation: icon-pulse 1s ease-in-out infinite; }

.feature-item:hover i.fa-shield-virus { animation: icon-pulse 1s ease-in-out infinite; }

/* Календарь в блоке валидности */
.cert-validity:hover i.fa-calendar-alt { animation: icon-bob 1.1s ease-in-out infinite; }

/* Prefers-reduced-motion: отключаем анимации */
@media (prefers-reduced-motion: reduce) {
  .feature-item:hover i,
  .cert-validity:hover i { animation: none !important; transform: none !important; }
}

/* Уважение предпочтений пользователя по снижению анимации */
@media (prefers-reduced-motion: reduce) {
  .feature-item i, .feature-item:hover i {
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

.cert-validity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    background: #ffffff;
    border-radius: 0;
    border: none;
    font-weight: 500;
    color: var(--text-dark);
}

.cert-validity i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.cert-actions {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
}

.cert-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: none !important;
    border: 1px solid #000 !important;
    cursor: pointer;
    box-shadow: none !important;
    background: #fff;
    color: #2F6F4E !important;
}
.cert-btn.secondary {
  background: rgba(74, 124, 89, 0.14) !important; /* матовое зеленое стекло */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #2F6F4E !important;
}

.cert-btn.primary, .cert-btn.secondary { background: #fff; }
.cert-btn:hover { text-decoration: none !important; }

/* (удалены стили секции статистики/достижений по требованию) */

/* ==================== CTA СЕКЦИЯ ==================== */
.certificates-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.08), rgba(127, 176, 105, 0.05));
    border-radius: 30px;
    border: 2px solid rgba(74, 124, 89, 0.15);
    backdrop-filter: blur(10px);
    gap: 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.certificates-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cta-btn.primary {
    background: linear-gradient(135deg, #4a7c59, #7fb069);
    color: white;
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #7fb069, #90c695);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 124, 89, 0.3);
    color: white;
    text-decoration: none;
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-green);
    border: 2px solid rgba(74, 124, 89, 0.2);
}

.cta-btn.secondary:hover {
    background: rgba(74, 124, 89, 0.1);
    border-color: rgba(74, 124, 89, 0.4);
    transform: translateY(-3px);
    color: var(--primary-green);
    text-decoration: none;
}

/* (удалены стили модального окна сертификатов и их адаптивность) */

/* ==================== ЭКО-ФУТЕР ==================== */
.eco-footer {
  background: linear-gradient(135deg,
    rgba(74, 124, 89, 0.15) 0%,
    rgba(127, 176, 105, 0.12) 50%,
    rgba(144, 198, 149, 0.1) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(74, 124, 89, 0.2);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  box-shadow:
    0 -8px 32px rgba(74, 124, 89, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
  
  .eco-footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
  }
  
  .eco-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
      radial-gradient(circle at 25% 25%, rgba(127, 176, 105, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 75% 75%, rgba(144, 198, 149, 0.08) 0%, transparent 50%);
    opacity: 0.7;
  }
  
  .eco-leaves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,20 Q30,10 40,20 Q30,30 20,20' fill='%23ffffff' opacity='0.03'/%3E%3Cpath d='M60,60 Q70,50 80,60 Q70,70 60,60' fill='%23ffffff' opacity='0.02'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    opacity: 0.5;
  }
  
  .eco-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
  }
  
  .eco-footer-brand {
    grid-column: span 1;
  }
  
  .eco-footer-logo {
    margin-bottom: 20px;
  }
  
  .eco-footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
    transition: all 0.3s ease;
  }
  
  .eco-footer-logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
  
.eco-footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #4a7c59;
  margin-bottom: 15px;
}
  
.eco-mission {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 25px;
}
  
  .eco-certifications {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .eco-cert {
    background: linear-gradient(135deg, #7fb069, #90c695);
    color: #2c3e2d;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(127, 176, 105, 0.3);
  }
  
.eco-footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4a7c59;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
  
  .eco-footer-section h4 i {
    font-size: 1.1rem;
  }
  
.eco-locations,
.eco-contacts,
.eco-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
.eco-location,
.eco-contact,
.eco-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  color: #4a7c59;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(74, 124, 89, 0.15);
  box-shadow: 0 2px 8px rgba(74, 124, 89, 0.05);
}
  
.eco-location:hover,
.eco-contact:hover,
.eco-social-link:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #4a7c59;
  text-decoration: none;
  transform: translateX(5px);
  border-color: rgba(74, 124, 89, 0.3);
  box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}
  
.eco-location i,
.eco-contact i,
.eco-social-link i {
    color: #4a7c59;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
  }
  
  .eco-social-link i {
    font-size: 1.3rem;
  }

  .eco-social-icon-image {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .eco-promise {
    margin-top: 25px;
  }
  
.eco-promise-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
  
.eco-promise-item i {
  color: #4a7c59;
  font-size: 1rem;
}
  
.eco-footer-bottom {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(74, 124, 89, 0.2);
  padding: 25px 0;
  position: relative;
  z-index: 2;
}
  
  .eco-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
.eco-footer-bottom p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  opacity: 0.8;
}
  
  .eco-footer-links {
    display: flex;
    gap: 25px;
  }
  
.eco-footer-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}
  
.eco-footer-links a:hover {
  color: #4a7c59;
  text-decoration: none;
  opacity: 1;
}
  
/* ==================== АДАПТИВНОСТЬ ==================== */
  @media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .eco-footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }
    
    .eco-footer-brand {
      grid-column: span 2;
    }
    
    .certificates-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-actions {
        justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .certificates-grid {
      grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .certificate-card {
        border-radius: 20px;
    }
    
    .cert-header {
        padding: 25px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cert-content {
        padding: 25px;
    }
    
    .cert-actions {
        padding: 0 25px 25px;
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    /* removed responsive rules of deleted certification-stats section */
    
    .eco-footer-content {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    
    .eco-footer-brand {
      grid-column: span 1;
      text-align: center;
    }
    
    .eco-footer-bottom-content {
      flex-direction: column;
      gap: 20px;
      text-align: center;
    }
    
    .eco-footer-links {
      justify-content: center;
      flex-wrap: wrap;
    }
  }
  
  @media (max-width: 576px) {
    .certificates-hero {
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
      padding: 0 15px;
    }
    
    .certificates-section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .certificates-grid {
        padding: 0 10px;
        gap: 25px;
    }
    
    .certificate-card {
        border-radius: 15px;
    }
    
    .cert-header {
        padding: 20px;
    }
    
    .cert-content {
        padding: 20px;
    }
    
    .cert-content h3 {
        font-size: 1.5rem;
    }
    
    .cert-actions {
        padding: 0 20px 20px;
    }
    
    /* removed responsive rules of deleted certification-stats section */
    
    .certificates-cta {
        margin: 60px 15px 0;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .eco-footer {
        margin-top: 80px;
        padding: 60px 0 0;
    }
    
    .eco-footer-content {
        padding-bottom: 50px;
    }
}
  
