/* ===== БиоАзот — поле пшеницы, колосья, солнце: светлые тёплые тона + золотой акцент ===== */
:root {
  --dark: #2e2920;
  --dark-mid: #3a342a;
  --dark-card: #464035;
  --forest: #554c3e;
  --forest-mid: #6b5e4d;
  --teal: #3d3628;
  --lime: #c99838;
  --lime-dim: #b88830;
  --lime-glow: rgba(212, 168, 75, 0.35);
  --white: #ffffff;
  --text: #ebe6dc;
  --text-muted: #b5a890;
  --text-dim: #8b7d6b;
  /* Светлые страницы: пшеничные, кремовые оттенки */
  --page-light: #f7f4ed;
  --page-light-warm: #f8f6f0;
  --gold: #c9a227;
  --gold-soft: #e8d9a0;
  --green-soft: #8b7355;
  --green-soft-dim: #6b5a42;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-hero: 'Forest Smooth', sans-serif;
  --index: calc(1vw + 1vh);
  --move-x: 0deg;
  --move-y: 0deg;
  --transition-3d: 1.5s cubic-bezier(0.05, 0.5, 0, 1);
}

@font-face {
  font-family: 'Forest Smooth';
  src: url('../fonts/ForestSmooth.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: kamerik-3d;
  src: url('../fonts/kamerik205-heavy.woff2') format('woff2');
  font-weight: 900;
}
@font-face {
  font-family: merriweather-italic-3d;
  src: url('../fonts/merriweather-regular-italic.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  /* Firefox: тонкий скролл в стиле сайта */
  scrollbar-width: thin;
  scrollbar-color: var(--forest-mid) var(--dark-mid);
}

#about,
#products,
#articles {
  padding-top: 4.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  min-height: 100vh;
  box-sizing: border-box;
}

#contacts {
  scroll-margin-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
}

/* Скроллбар в стиле сайта (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-mid);
}

::-webkit-scrollbar-thumb {
  background: var(--forest-mid);
  border-radius: 5px;
  border: 2px solid var(--dark-mid);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lime-dim);
}

::-webkit-scrollbar-thumb:active {
  background: var(--lime);
}

::-webkit-scrollbar-corner {
  background: var(--dark-mid);
}

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

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

a:hover {
  color: var(--lime-dim);
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(85, 78, 68, 0.38);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.logo-wrap:hover {
  color: var(--white);
  opacity: 0.95;
}

.logo-wrap:hover .logo-icon {
  color: #eed97a;
  filter: drop-shadow(0 0 8px rgba(229, 201, 92, 0.6)) drop-shadow(0 0 16px rgba(238, 217, 122, 0.35));
}

.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--white);
  transition: color var(--transition), filter var(--transition);
  align-self: center;
}

.logo-text {
  font-family: var(--font-hero), var(--font-body);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.header .nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition), background var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header .nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 0.25rem;
  border-radius: 1px;
}

.header .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white) !important;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 168, 75, 0.5);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header .btn-outline:hover {
  background: rgba(229, 201, 92, 0.22);
  border-color: #e5c95c;
  color: #eed97a !important;
  box-shadow: 0 0 16px rgba(229, 201, 92, 0.3);
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5e8f06 0%, #517805 100%);
  color: #fff !important;
  border: 2px solid rgba(81, 120, 5, 0.8);
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  box-shadow: 0 0 22px rgba(81, 120, 5, 0.45);
}

.btn-consult:hover {
  background: linear-gradient(135deg, #6a9e07 0%, #5e8f06 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(81, 120, 5, 0.5);
  border-color: #517805;
  filter: brightness(1.08);
}

.header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header .nav-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.header-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 15%, var(--lime-dim) 50%, var(--lime) 85%, transparent 100%);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .logo-icon { width: 36px; height: 36px; }
  .logo-text { font-size: 1.35rem; }
  .header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    position: relative;
    color: var(--white);
  }
  .header .nav-toggle .nav-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .header .nav-toggle::before {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 6px 0 currentColor;
  }
  .header .nav-toggle::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
  }
  .nav-divider { display: none; }
  .header .btn-outline,
  .header .btn-consult { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    margin-top: 0.5rem;
    background: rgba(55, 50, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    flex-direction: column;
    padding: 1rem;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 1rem; min-height: 44px; display: flex; align-items: center; }
  .nav .btn-outline,
  .nav .btn-consult { display: inline-flex; justify-content: center; }
  .nav .btn-consult { margin-top: 0.5rem; }
}

/* ----- Скролл-снап: по одному блоку на экран ----- */
/* Привязка к блокам — плавная, через scroll-smooth-snap.js */

/* ----- Hero (без 3D) ----- */
.layers {
  overflow: hidden;
  height: 100vh;
  min-height: 500px;
  min-height: 100dvh;
}

.layers__container {
  height: 100%;
  position: relative;
}

.layers__item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layer-1 {
  background-image: url('../img/hero/layer-7.jpg');
  background-size: cover;
  background-position: 50% 42%;
}
.layer-2 {
  background-image: url('../img/hero/layer-2.png');
}
.layer-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 1.5rem;
  background: none;
}

.layer-3-content {
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  padding: 0 1rem;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: none;
  pointer-events: auto;
  box-sizing: border-box;
}

.layer-3-content .hero-left {
  justify-self: end;
  padding-right: clamp(1rem, 3vw, 2rem);
}

.layer-3-content .hero-content {
  grid-column: 2;
  margin-top: 0;
}

.layer-4 {
  visibility: hidden; /* убрано движение (дождь) на герое */
}
.layer-5 {
  background-image: url('../img/hero/layer-5.png');
}
.layer-6 {
  background-image: url('../img/hero/layer-6.png');
}

.layer-4, .layer-5, .layer-6 { pointer-events: none; }

.hero-side {
  flex-shrink: 0;
  z-index: 1;
  min-width: 140px;
}

.hero-left {
  text-align: left;
  padding-left: 1rem;
  border-left: 3px solid rgba(212, 168, 75, 0.5);
}

.hero-right .hero-metrics {
  min-width: 160px;
}

.hero-tagline {
  font-family: var(--font-hero), var(--font-body);
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35em;
  line-height: 1.3;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.8),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline-accent {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.8),
    0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-tagline:last-child {
  margin-bottom: 0;
}

.hero-right {
  text-align: right;
  padding-right: 1rem;
  border-right: 3px solid rgba(212, 168, 75, 0.5);
}

.hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 180px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-metric-value {
  font-family: var(--font-hero), var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--lime);
  line-height: 1.2;
  text-shadow: 0 0 20px var(--lime-glow);
}

.hero-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-stat {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.hero-stat:last-child {
  margin-bottom: 0;
}

.hero-stat-arrow,
.hero-stat-plus {
  color: var(--lime);
  font-weight: 700;
}

.hero-stat-minus {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero-content {
  font-family: var(--font-hero), var(--font-body);
  text-align: center;
  margin-top: calc(var(--index) * 3);
  color: #fff;
  max-width: 92%;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-content::before {
  content: '';
  position: absolute;
  inset: -2rem -1rem 0;
  z-index: -1;
  /* Затемнение только в центре; к краям блока — уже полная прозрачность, рамка не видна */
  background: radial-gradient(
    ellipse 100% 90% at 50% 42%,
    rgba(0, 0, 0, 0.36) 0%,
    rgba(0, 0, 0, 0.16) 28%,
    rgba(0, 0, 0, 0.04) 48%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-content h1 {
  margin: 0 0 0.2em;
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 0, 0, 0.35);
}

/* Заголовок «БИОАЗОТ» — шрифт Forest Smooth */
.hero-content h1.hero-title-font,
.hero-title-font {
  font-family: 'Forest Smooth', var(--font-hero), var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero-content h1 .hero-title-main,
.hero-content h1 > .hero-title-main {
  display: block;
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #fff;
}

.hero-content h1 span,
.hero-content h1 .hero-title-sub {
  display: block;
  color: var(--lime);
  font-size: clamp(1.35rem, 4.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2em;
  line-height: 1.25;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 30px var(--lime-glow);
}

.hero-content__p {
  text-transform: none;
  font-family: var(--font-hero), var(--font-body);
  font-style: normal;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 auto 1.5rem;
  max-width: 26em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.8),
    0 1px 4px rgba(0, 0, 0, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero-content .button-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5e8f06 0%, #517805 100%);
  color: #fff !important;
  border: 2px solid rgba(81, 120, 5, 0.8);
  outline: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  margin-top: 0.75rem;
  box-shadow: 0 0 22px rgba(81, 120, 5, 0.45);
}

.hero-content .button-start:hover {
  background: linear-gradient(135deg, #6a9e07 0%, #5e8f06 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(81, 120, 5, 0.5);
  border-color: #517805;
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .layer-3-content {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    gap: 1.5rem;
  }
  .layer-3-content .hero-content {
    grid-column: 1;
    margin-top: 0;
    order: 1;
  }
  .hero-left {
    text-align: center;
    justify-self: center;
    order: 2;
    margin-top: 0.5rem;
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
  .hero-right {
    text-align: center;
  }
  .hero-glass-card,
  .hero-metrics { min-width: 200px; }
  .hero-metrics { align-items: center; }
  .hero-metric { align-items: center; }
}

@media (max-width: 600px) {
  .layers { min-height: 100svh; min-height: 100dvh; }
  .layer-3-content {
    padding: 0 0.75rem;
    padding-top: 18vh;
    gap: 1.25rem;
  }
  .hero-content {
    padding: 1.25rem 1rem;
    max-width: 100%;
    margin-top: 0;
  }
  .hero-content h1,
  .hero-content h1 .hero-title-main,
  .hero-content h1 > .hero-title-main {
    font-size: clamp(3rem, 12vw, 5rem);
  }
  .hero-subtitle { font-size: clamp(0.9rem, 2.2vw, 1.15rem); margin-bottom: 0.75rem; }
  .hero-tagline { font-size: clamp(1.4rem, 4.5vw, 2rem); }
  .hero-left {
    margin-top: 1rem;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-content .button-start {
    width: 100%;
    max-width: 280px;
    margin-top: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* ----- Секции (тёмный фон) ----- */
.page-section {
  padding: 5rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
}

@media (max-width: 768px) {
  .page-section {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .page-section {
    padding: 2rem 0.75rem;
  }
  .section-title {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    margin-bottom: 0.75rem;
  }
  .section-subtitle { margin-bottom: 1.5rem; font-size: 0.95rem; }
}

/* ----- О проекте: светлая панель в стиле референса ----- */
#about {
  position: relative;
  background: var(--page-light-warm);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Мягкое декоративное пятно (жёлтое) */
.about-grid-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(238, 217, 122, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.about-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}

.about-glow-orb--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(229, 201, 92, 0.2) 0%, transparent 70%);
  top: -80px;
  right: -60px;
}

.about-glow-orb--2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(180, 200, 160, 0.15) 0%, transparent 70%);
  bottom: 15%;
  left: -40px;
}

/* Панель: большие скругления, белый фон, мягкая тень */
#about .page-section.about-section {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 48px rgba(0, 0, 0, 0.04);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  #about .page-section.about-section {
    border-radius: 20px;
    padding: 1.75rem 1rem;
  }
  .about-philosophy { padding-left: 0.75rem; }
  .about-philosophy::before { bottom: 1rem; }
  .about-text { font-size: 1rem; margin-bottom: 1.25rem; line-height: 1.7; }
  .about-to-articles { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.about-cols--single {
  grid-template-columns: 1fr;
}

/* Левая колонка — философия */
.about-philosophy {
  position: relative;
  padding-left: 1.75rem;
}

.about-philosophy::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 1.5rem;
  width: 4px;
  background: linear-gradient(180deg, var(--lime) 0%, var(--lime-dim) 40%, rgba(212, 168, 75, 0.15) 100%);
  border-radius: 3px;
  box-shadow: 0 0 16px var(--lime-glow), 0 0 0 1px rgba(212, 168, 75, 0.2);
}

.about-philosophy .section-label {
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
}

.about-title {
  margin-bottom: 1.25rem;
  color: var(--dark);
  font-weight: 600;
}

.about-text {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--dark-mid);
  max-width: none;
  font-weight: 450;
}

.about-to-articles {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #e5c95c 0%, #d4a838 100%);
  color: var(--dark) !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(229, 201, 92, 0.35);
}

.about-to-articles:hover {
  background: linear-gradient(135deg, #eed97a 0%, #e2c94a 100%);
  color: var(--dark) !important;
  box-shadow: 0 6px 24px rgba(229, 201, 92, 0.45);
  transform: translateY(-1px);
}

.about-to-articles::after {
  content: '→';
}

.about-accent-line {
  position: relative;
  height: 2px;
  width: 100px;
  margin-bottom: 1.75rem;
  background: linear-gradient(90deg, var(--lime) 0%, rgba(212, 168, 75, 0.3) 70%, transparent 100%);
  box-shadow: 0 0 14px var(--lime-glow);
  border-radius: 1px;
}

.about-accent-line::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime), 0 0 24px var(--lime-glow);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-list-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, padding-left 0.25s ease;
}

.about-list-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.5;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}

.about-list-item:hover {
  border-left-color: rgba(212, 168, 75, 0.4);
  padding-left: 1.15rem;
}

.about-list-item:hover::before {
  opacity: 1;
  box-shadow: 0 0 10px var(--lime-glow);
}

.about-list-item:last-child {
  margin-bottom: 0;
}

.about-list-num {
  flex-shrink: 0;
  width: 2.25em;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.02em;
  transition: opacity 0.3s ease;
}

.about-list-item:hover .about-list-num {
  opacity: 0.85;
}

.about-list-text {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Правая колонка — стеклянная карточка с цифрами */
.about-stats {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(212, 168, 75, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 168, 75, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 20%, var(--lime-dim) 80%, transparent 100%);
  opacity: 0.9;
}

.about-card:hover {
  border-color: rgba(212, 168, 75, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(212, 168, 75, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.about-card-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.about-card-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--lime), var(--lime-dim));
  border-radius: 0 2px 2px 0;
  transition: height 0.25s ease;
}

.about-card-row:hover {
  background: rgba(212, 168, 75, 0.04);
}

.about-card-row:hover::before {
  height: 60%;
}

.about-card-row:last-child {
  border-bottom: none;
}

.about-card-row:first-child {
  padding-top: 1.5rem;
}

.about-card-value {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--lime);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(212, 168, 75, 0.2);
}

.about-card-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Появление при скролле */
.about-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#about.is-inview .about-reveal {
  opacity: 1;
  transform: translateY(0);
}

#about.is-inview .about-philosophy {
  transition-delay: 0.05s;
}

#about.is-inview .about-list-item:nth-child(1) { transition-delay: 0.12s; }
#about.is-inview .about-list-item:nth-child(2) { transition-delay: 0.2s; }
#about.is-inview .about-list-item:nth-child(3) { transition-delay: 0.28s; }

#about.is-inview .about-stats {
  transition-delay: 0.2s;
}

@media (max-width: 900px) {
  .about-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .about-philosophy {
    padding-left: 1rem;
  }

  .about-text {
    max-width: none;
  }

  .about-stats {
    justify-content: flex-start;
  }

  .about-card {
    max-width: none;
  }
}

/* ----- Каталог: светлая панель в стиле референса (карточку товара не меняем) ----- */
#products {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--page-light-warm);
  overflow: hidden;
}

#products::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 20% 80%, rgba(238, 217, 122, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

#products .page-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 48px rgba(0, 0, 0, 0.04);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
  #products .page-section {
    border-radius: 20px;
    padding: 1.75rem 1rem;
  }
  .products-title { font-size: 1.6rem; margin-bottom: 0.5rem; }
  .products-cols--center .market-card { max-width: 100%; }
  .market-block { padding: 0.85rem 1rem; }
  .market-block-product { padding-top: 1.1rem; }
  .market-card-title { font-size: 1.15rem; }
  .market-card-desc { font-size: 0.9rem; }
}

.products-title {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.products-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 1.5rem;
}

.products-cols--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.products-cols--center .market-badge {
  justify-content: center;
}

.products-cols--center .market-card {
  text-align: left;
  width: 100%;
  max-width: 420px;
}

.products-col-left {
  color: var(--text);
}

.products-subtitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lime);
  margin: 0 0 0.85rem;
  letter-spacing: 0.03em;
}

.products-description p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.products-advantages {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.products-advantages li {
  margin-bottom: 0.45rem;
}

.products-advantages li::marker {
  color: var(--lime);
}

.products-science {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* Бейдж в стиле Яндекса: тёплый градиент + «Я» */
.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, #fff8e6 0%, #ffecd0 50%, #ffe4b8 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c4a2d;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.market-badge-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Карточка товара: читаемый текст на светлом фоне секции */
.market-card {
  background: rgba(255, 250, 238, 0.98);
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(212, 168, 75, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(212, 168, 75, 0.15);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.market-card:hover {
  border-color: rgba(212, 168, 75, 0.65);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 168, 75, 0.25);
}

.market-block {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: transparent;
}

.market-block:last-child {
  border-bottom: none;
}

.market-block-product {
  padding-top: 1.35rem;
}

.market-block-price {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.market-block-delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.market-block-seller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.9rem 1.35rem;
}

.market-card-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}

.market-card-desc {
  margin: 0;
  color: var(--dark-mid);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Цена и данные — крупно белым, подписи серым */
.market-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.market-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.market-price-old {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.market-price-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  background: rgba(229, 201, 92, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 168, 75, 0.3);
}

/* Кнопки: жёлтая главная + полупрозрачная вторая */
/* Кнопка «В каталог Маркета» — выделенная, бросается в глаза */
.market-btn-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #e5c95c 0%, #d4a838 100%);
  color: var(--dark) !important;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(229, 201, 92, 0.35);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.market-btn-catalog::after {
  content: '→';
  font-size: 1.1em;
  font-weight: 700;
}

.market-btn-catalog:hover {
  background: linear-gradient(135deg, #eed97a 0%, #e2c94a 100%);
  color: var(--dark) !important;
  box-shadow: 0 6px 24px rgba(229, 201, 92, 0.45);
  transform: translateY(-2px);
}

.market-btn-catalog:active {
  transform: translateY(0);
}

/* Доставка */
.market-delivery-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.market-block-delivery strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.market-block-delivery p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--dark-mid);
  line-height: 1.45;
}

.market-seller-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
}

.market-seller-meta {
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Блок «Почвоулучшитель» (в О проекте — с ограничением ширины) */
.product-soil {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: rgba(248, 246, 240, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  max-width: 720px;
  box-sizing: border-box;
}

.about-cols .product-soil {
  margin-top: 0;
  max-width: none;
}

/* В каталоге: на всю ширину панели, без ограничения */
#products .page-section .product-soil.product-soil--catalog {
  margin-top: 2rem;
  max-width: none;
  width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}

.product-soil-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.product-soil-desc {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-mid);
}

.product-soil-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--dark-mid);
  font-size: 0.98rem;
  line-height: 1.75;
}

.product-soil-list li {
  margin-bottom: 0.5rem;
}

.product-soil-list li::marker {
  color: var(--lime);
}

.product-soil-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-soil-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-soil-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.product-soil-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-mid);
}

@media (max-width: 640px) {
  .product-soil-meta {
    grid-template-columns: 1fr;
  }
}

/* Связка с блоком статей */
.products-to-articles {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.products-to-articles-text {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  color: var(--dark-mid);
  letter-spacing: 0.02em;
}

.btn-to-articles {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #e5c95c 0%, #d4a838 100%);
  color: var(--dark) !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(229, 201, 92, 0.35);
}

.btn-to-articles:hover {
  background: linear-gradient(135deg, #eed97a 0%, #e2c94a 100%);
  color: var(--dark) !important;
  box-shadow: 0 6px 24px rgba(229, 201, 92, 0.45);
  transform: translateY(-1px);
}

.btn-to-articles::after {
  content: '→';
}

@media (max-width: 900px) {
  .products-cols {
    grid-template-columns: 1fr;
  }

  .products-col-right {
    order: -1;
  }

  .market-badge {
    margin-bottom: 0.5rem;
  }
}

/* Старые классы для совместимости (если где-то остались) */
.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.product-card-body { padding: 2rem; }

.btn-market {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lime);
  color: var(--dark) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--transition), transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px var(--lime-glow);
}

.btn-market:hover {
  background: var(--lime-dim);
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--lime-glow);
}

.btn-market::after {
  content: '→';
  font-size: 1.05em;
}

/* ----- Статьи: светлая панель в стиле референса (карточки статей не меняем) ----- */
#articles {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--page-light-warm);
  overflow: hidden;
}

#articles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 75% 25%, rgba(180, 200, 160, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

#articles::after {
  content: none;
}

#articles .page-section {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 48px rgba(0, 0, 0, 0.04);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.articles-heading {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
  color: var(--dark);
}

#articles .section-subtitle {
  color: var(--dark-mid);
}

/* Сетка: большая карточка слева, две поменьше справа */
.articles-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 420px;
  margin-top: 1.5rem;
}

.article-tile-featured {
  grid-column: 1;
  grid-row: 1 / -1;
}

.article-tile-side:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.article-tile-side:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

/* Карточка статьи: фон-картинка, overlay, текст, кнопка */
.article-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--forest);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.article-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.article-tile-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.35rem 0.6rem;
  background: rgba(212, 168, 75, 0.25);
  border: 1px solid rgba(212, 168, 75, 0.5);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.02em;
}

.article-tile-content {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 3.5rem;
  z-index: 2;
}

.article-tile h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  margin: 0 0 0.35rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.article-tile-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.article-tile-side .article-tile-excerpt {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

/* Круглая кнопка «Читать» справа внизу */
.article-tile-btn {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.article-tile:hover .article-tile-btn {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* Дополнительные статьи (4–6) */
.articles-grid-extra {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.article-tile-extra {
  min-height: 220px;
}

.article-tile-extra .article-tile-content {
  bottom: 3rem;
}

.article-tile-extra .article-tile-excerpt {
  display: none;
}

@media (max-width: 768px) {
  .articles-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .article-tile-featured {
    grid-column: 1;
    grid-row: auto;
    min-height: 320px;
  }

  .article-tile-side:nth-child(2),
  .article-tile-side:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    min-height: 240px;
  }
}

@media (max-width: 600px) {
  #articles .page-section { padding: 2rem 0.75rem; }
  .articles-heading { font-size: 1.6rem; }
  .articles-layout { gap: 0.75rem; }
  .article-tile-featured { min-height: 280px; }
  .article-tile-side:nth-child(2),
  .article-tile-side:nth-child(3) { min-height: 200px; }
  .article-tile-content { left: 1rem; right: 1rem; bottom: 3rem; }
  .article-tile h3 { font-size: 1.05rem; }
  .article-tile-excerpt { font-size: 0.85rem; }
  .article-tile-btn { right: 0.75rem; bottom: 0.75rem; padding: 0.45rem 0.85rem; font-size: 0.8rem; min-width: 44px; }
  .articles-grid-extra { grid-template-columns: 1fr; margin-top: 1rem; }
  .article-tile-extra { min-height: 200px; }
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ----- Модальное окно статьи (90% экрана) ----- */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(15, 31, 24, 0.4), rgba(0, 0, 0, 0.85));
  backdrop-filter: blur(10px);
  transition: backdrop-filter 0.3s ease;
}

.article-modal-box {
  position: relative;
  width: 90vw;
  max-width: 100%;
  height: 90vh;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--dark-mid) 0%, var(--dark) 50%, #252219 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.article-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--lime) 20%, var(--lime-dim) 80%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}

.article-modal-box--light {
  background: linear-gradient(165deg, #f8faf8 0%, #f0f4f0 50%, #e8eee8 100%);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.article-modal-box--light::before {
  background: linear-gradient(90deg, transparent 0%, var(--lime) 25%, var(--lime-dim) 75%, transparent 100%);
  opacity: 0.7;
}

/* Тема «Для чтения»: тёплый кремовый фон, мягкий контраст */
.article-modal-box--reading {
  background: linear-gradient(165deg, #f5f1e8 0%, #f2efe6 50%, #ebe6dc 100%);
  border-color: rgba(94, 82, 65, 0.15);
  box-shadow:
    0 0 0 1px rgba(94, 82, 65, 0.1),
    0 4px 24px rgba(94, 82, 65, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.article-modal-box--reading::before {
  background: linear-gradient(90deg, transparent 0%, #8b7355 30%, #5e5241 70%, transparent 100%);
  opacity: 0.6;
}

.article-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.12) 100%);
  position: relative;
}

.article-modal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 75, 0.15), transparent);
  opacity: 0.8;
}

.article-modal-box--light .article-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
}

.article-modal-box--light .article-modal-header::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.article-modal-box--reading .article-modal-header {
  border-bottom-color: rgba(94, 82, 65, 0.15);
  background: linear-gradient(180deg, rgba(94, 82, 65, 0.08) 0%, transparent 100%);
}

.article-modal-box--reading .article-modal-header::after {
  background: linear-gradient(90deg, transparent, rgba(94, 82, 65, 0.2), transparent);
}

.article-modal-title {
  flex: 1;
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.35;
  min-width: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.article-modal-box--light .article-modal-title {
  color: #1a1a1a;
}

.article-modal-box--reading .article-modal-title {
  color: #2c2922;
}

.article-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-modal-box--light .article-modal-toolbar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.article-modal-box--reading .article-modal-toolbar {
  background: rgba(94, 82, 65, 0.08);
  border-color: rgba(94, 82, 65, 0.12);
}

.article-modal-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 0.35rem;
  padding-left: 0.4rem;
}

.article-modal-box--light .article-modal-label {
  color: #666;
}

.article-modal-box--reading .article-modal-label {
  color: #5e5241;
}

.article-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s ease;
}

.article-modal-btn:hover {
  background: rgba(212, 168, 75, 0.12);
  border-color: rgba(212, 168, 75, 0.25);
  color: var(--lime);
}

.article-modal-box--light .article-modal-btn {
  background: rgba(0, 0, 0, 0.04);
  color: #1a1a1a;
}

.article-modal-box--light .article-modal-btn:hover {
  background: rgba(212, 168, 75, 0.2);
  border-color: rgba(212, 168, 75, 0.35);
  color: #8b6914;
}

.article-modal-box--reading .article-modal-btn {
  background: rgba(94, 82, 65, 0.08);
  color: #2c2922;
}

.article-modal-box--reading .article-modal-btn:hover {
  background: rgba(94, 82, 65, 0.18);
  border-color: rgba(94, 82, 65, 0.35);
  color: #2c2922;
}

.article-modal-theme {
  min-width: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.article-modal-divider {
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0.2rem;
  border-radius: 1px;
}

.article-modal-box--light .article-modal-divider {
  background: rgba(0, 0, 0, 0.12);
}

.article-modal-box--reading .article-modal-divider {
  background: rgba(94, 82, 65, 0.25);
}

.article-modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s ease;
}

.article-modal-close:hover {
  background: rgba(212, 168, 75, 0.15);
  border-color: rgba(212, 168, 75, 0.4);
  color: var(--lime);
  transform: scale(1.05);
}

.article-modal-box--light .article-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

.article-modal-box--light .article-modal-close:hover {
  background: rgba(212, 168, 75, 0.2);
  border-color: var(--lime);
  color: #6b5410;
}

.article-modal-box--reading .article-modal-close {
  background: rgba(94, 82, 65, 0.1);
  border-color: rgba(94, 82, 65, 0.2);
  color: #2c2922;
}

.article-modal-box--reading .article-modal-close:hover {
  background: rgba(94, 82, 65, 0.22);
  border-color: rgba(94, 82, 65, 0.4);
  color: #2c2922;
  transform: scale(1.05);
}

.article-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 2rem;
  -webkit-overflow-scrolling: touch;
  background: 
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(212, 168, 75, 0.02) 0%, transparent 50%),
    transparent;
}

.article-modal-box--light .article-modal-body {
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(212, 168, 75, 0.03) 0%, transparent 45%);
}

.article-modal-box--reading .article-modal-body {
  background: transparent;
}

.article-modal-date {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-modal-box--light .article-modal-date {
  color: #666;
}

.article-modal-box--reading .article-modal-date {
  color: #5e5241;
}

.article-modal-content {
  font-size: calc(1rem * var(--article-modal-font-scale, 1));
  line-height: 1.75;
  color: var(--text);
}

.article-modal-box--light .article-modal-content {
  color: #1a1a1a;
}

.article-modal-box--reading .article-modal-content {
  color: #2c2922;
}

.article-modal-content p {
  margin: 0 0 1rem;
}

.article-modal-content p:last-child {
  margin-bottom: 0;
}

.article-modal-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.article-modal-box--light .article-modal-image {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.article-modal-box--reading .article-modal-image {
  box-shadow: 0 6px 20px rgba(94, 82, 65, 0.12);
  border-color: rgba(94, 82, 65, 0.15);
}

.article-modal-loading,
.article-modal-error {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.article-modal-box--light .article-modal-loading,
.article-modal-box--light .article-modal-error {
  color: #666;
}

.article-modal-box--reading .article-modal-loading,
.article-modal-box--reading .article-modal-error {
  color: #5e5241;
}

@media (max-width: 768px) {
  .article-modal-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .article-modal-title {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 0;
  }
  .article-modal-toolbar {
    flex-wrap: wrap;
    flex-shrink: 0;
  }
  .article-modal-close {
    margin-left: auto;
  }

  .article-modal-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .article-modal {
    padding: 0.5rem;
    align-items: stretch;
  }
  .article-modal-box {
    width: 100%;
    max-width: none;
    height: 95vh;
    max-height: 95vh;
    border-radius: 16px;
  }
  .article-modal-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .article-modal-title {
    font-size: 1.1rem;
    flex: 1 1 100%;
    width: 100%;
  }
  .article-modal-body { padding: 0 1rem 1rem; overflow: auto; -webkit-overflow-scrolling: touch; }
}

/* ----- Футер (контакты) — в стиле сайта: светлая панель, тёмный текст ----- */
.site-footer {
  background: var(--page-light-warm);
  position: relative;
  padding: 2rem 0.75rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  padding-left: max(0.75rem, env(safe-area-inset-left));
  padding-right: max(0.75rem, env(safe-area-inset-right));
}

.footer-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5c95c 20%, #d4a838 50%, #e5c95c 80%, transparent 100%);
  opacity: 0.9;
  max-width: 1280px;
  margin: 0 auto 0;
}

.footer-inner {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 48px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-top: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-logo {
  font-family: var(--font-hero), var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--dark);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--dark-mid);
  line-height: 1.35;
  margin: 0;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.footer-contacts-title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.footer-contacts-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  line-height: 1.3;
}

.footer-address,
.footer-company,
.footer-ogrn {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dark-mid);
  text-align: right;
}

.footer-contacts-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem 0.6rem;
  margin-top: 0.1rem;
}

.footer-contacts-links a {
  font-size: 0.9rem;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contacts-links a:hover {
  color: var(--lime-dim);
}

.footer-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
  user-select: none;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
  color: var(--dark) !important;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid rgba(102, 187, 106, 0.6);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(129, 199, 132, 0.35);
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  justify-content: flex-end;
}

.contacts-list li {
  margin: 0;
}

.contacts-list a {
  font-size: 0.9rem;
  color: var(--dark);
  transition: color var(--transition);
}

.contacts-list a:hover {
  color: var(--lime-dim);
}

.footer-btn:hover {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  color: var(--dark) !important;
  box-shadow: 0 6px 24px rgba(129, 199, 132, 0.45);
  transform: translateY(-1px);
  border-color: #66bb6a;
}

.footer-fasie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-fasie-logo {
  flex-shrink: 0;
  width: 160px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.92;
}

.footer-fasie-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--dark-mid);
  max-width: 560px;
  text-align: center;
}

.footer-bottom {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-contacts {
    align-items: center;
    gap: 0.25rem;
  }

  .footer-contacts-block {
    align-items: center;
  }

  .footer-address,
  .footer-company,
  .footer-ogrn {
    text-align: center;
  }

  .footer-contacts-links {
    justify-content: center;
    margin-top: 0.2rem;
  }

  .contacts-list {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }

  .footer-btn {
    align-self: center;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1.5rem 0.75rem 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .footer-fasie {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .footer-fasie-text {
    text-align: center;
    font-size: 0.82rem;
  }

  .footer-inner {
    padding: 1.25rem 1rem 1rem;
  }

  .footer-btn {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
  }
}

/* ----- Внутренние страницы: светлый фон, зелёный/золотой/белый, агро-стиль ----- */
body.page-inner {
  background: var(--page-light);
}

.article-page {
  padding: 7rem 1.5rem 5rem;
  max-width: 680px;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
}

.article-page h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  color: #2c2518;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.article-page .date {
  font-size: 0.9rem;
  color: #6b5d4a;
  margin-bottom: 1.75rem;
}

.article-page .content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3d3528;
}

.article-page .content p {
  margin: 0 0 1.25rem;
}

.article-page .content p:last-child {
  margin-bottom: 0;
}

.article-page img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.article-page .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  color: var(--green-soft);
  transition: gap 0.2s ease, color var(--transition);
}

.article-page .back:hover {
  color: var(--green-soft-dim);
  gap: 0.6rem;
}

.article-page .back::before {
  content: '←';
}
