/*--------------*/
/* == THEMES == */
/*--------------*/

/* PRIMARY BG STYLES - Subtle Primary Gradient */
.primary-background {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.primary-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 20%,
      var(--secondary-color) 8%,
      transparent 8%
    ),
    radial-gradient(circle at 75% 80%, var(--light-color) 6%, transparent 6%),
    radial-gradient(
      circle at 60% 15%,
      var(--secondary-color) 4%,
      transparent 4%
    ),
    radial-gradient(circle at 15% 70%, var(--light-color) 5%, transparent 5%),
    radial-gradient(
      circle at 85% 40%,
      var(--secondary-color) 3%,
      transparent 3%
    );
  opacity: 0.08;
  z-index: 1;
}

.primary-background > * {
  position: relative;
  z-index: 2;
}

.primary-background p,
.primary-background ol,
.primary-background ul {
  color: var(--light-color);
  text-shadow: 0 1px 2px var(--shadow-light);
}

.primary-background h1,
.primary-background h2,
.primary-background h3,
.primary-background h4 {
  background: linear-gradient(45deg, var(--white), var(--light-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px var(--shadow-medium));
}

.primary-background ul,
.primary-background ol {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-hover) 100%
  );
  border-radius: 0;
  padding: 20px 25px;
  margin: 15px 0;
  border-left: 4px solid var(--light-color);
  box-shadow: 0 2px 8px var(--shadow-medium);
}

.primary-background ul li,
.primary-background ol li {
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}

.primary-background ul li::marker {
  color: var(--light-color);
}

.primary-background ol li::marker {
  color: var(--light-color);
  font-weight: bold;
}

.primary-background a {
  background: var(--light-color);
  color: var(--primary-color);
}

.primary-background a:hover {
  background: var(--primary-dark);
}

/* DARK BG STYLES - Shadow with Secondary Accents */
.dark-background {
  background: var(--shadow-color);
  position: relative;
  overflow: hidden;
}

/* Вариант 1: Максимально четкие радиальные пятна */
.dark-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 20%,
      var(--secondary-color) 8%,
      transparent 8%
    ),
    radial-gradient(
      circle at 75% 80%,
      var(--secondary-light) 6%,
      transparent 6%
    ),
    radial-gradient(circle at 60% 15%, var(--secondary-dark) 4%, transparent 4%),
    radial-gradient(
      circle at 15% 70%,
      var(--secondary-color) 5%,
      transparent 5%
    ),
    radial-gradient(
      circle at 85% 40%,
      var(--secondary-light) 3%,
      transparent 3%
    );
  opacity: 0.07;
  z-index: 1;
}

.dark-background > * {
  position: relative;
  z-index: 2;
}

.dark-background p,
.dark-background ol,
.dark-background ul {
  color: var(--light-color);
  text-shadow: 0 1px 2px var(--shadow-dark);
}

.dark-background ul,
.dark-background ol {
  background: linear-gradient(
    135deg,
    var(--shadow-color) 0%,
    var(--secondary-dark) 100%
  );
  border-radius: 0;
  padding: 20px 25px;
  margin: 15px 0;
  border-left: 4px solid var(--secondary-light);
  box-shadow: 0 2px 8px var(--shadow-medium);
}

.dark-background ul li,
.dark-background ol li {
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}

.dark-background ul li::marker {
  color: var(--secondary-light);
}

.dark-background ol li::marker {
  color: var(--secondary-light);
  font-weight: bold;
}

.dark-background h1,
.dark-background h2,
.dark-background h3,
.dark-background h4 {
  background: var(--secondary-light);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 4px var(--shadow-dark));
}

.dark-background a {
  background: var(--secondary-color);
  color: var(--light-color);
}

.dark-background a:hover {
  background: var(--secondary-dark);
}

/* LIGHT BG STYLES - Clean Light Gradient */
.light-background {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-color) 100%);
  position: relative;
  overflow: hidden;
}

.light-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 20%,
      var(--tertiary-color) 8%,
      transparent 8%
    ),
    radial-gradient(circle at 75% 80%, var(--tertiary-light) 6%, transparent 6%),
    radial-gradient(circle at 60% 15%, var(--tertiary-dark) 4%, transparent 4%),
    radial-gradient(circle at 15% 70%, var(--tertiary-color) 5%, transparent 5%),
    radial-gradient(circle at 85% 40%, var(--tertiary-light) 3%, transparent 3%);
  opacity: 0.03;
  z-index: 1;
}

.light-background > * {
  position: relative;
  z-index: 2;
}

.light-background p,
.light-background ol,
.light-background ul {
  color: var(--shadow-color);
  text-shadow: 0 1px 1px var(--white);
}

.light-background h1,
.light-background h2,
.light-background h3,
.light-background h4 {
  background: linear-gradient(45deg, var(--tertiary-dark), var(--shadow-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px var(--white));
}

.light-background ul,
.light-background ol {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border-radius: 0;
  padding: 20px 25px;
  margin: 15px 0;
  border-left: 4px solid var(--tertiary-color);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.light-background ul li,
.light-background ol li {
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}

.light-background ul li::marker {
  color: var(--tertiary-color);
}

.light-background ol li::marker {
  color: var(--tertiary-color);
  font-weight: bold;
}

.light-background a {
  background: var(--primary-color);
  color: var(--light-color);
}

.light-background a:hover {
  background: var(--primary-dark);
}

/* Subtle hover effects */
.primary-background:hover::before {
  opacity: 0.11;
  transition: opacity 0.3s ease;
}

.dark-background:hover::before {
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

.light-background:hover::before {
  opacity: 0.05;
  transition: opacity 0.3s ease;
}

/*---------------------*/
/* == ABOUT SECTION == */
/*---------------------*/
.basic-section {
  width: 100vw;
  height: 100vh;

  /* layout */
  display: flex;
}

.section-content {
  max-width: 1200px;
  margin: 80px auto;

  /* layout */
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Контейнер с текстом */
.content-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  padding: 50px 20px;
  width: 60%;
  max-width: 800px;
  color: var(--shadow-color);
}

.section-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.section-text-content h2,
p {
  color: var(--shadow-color);
}

.section-text-content h2 {
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 1.4;
}

.section-text-content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: justify;
}

/* CTA */
.section-content-cta {
  margin-top: 6px;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: 0.4s;
}

/* Изображение */
.section-image {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  width: 40%;
  height: 60%;
  min-width: 220px;
  border-radius: 0;
}

.section-image img {
  width: 80%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0; /* никаких border-radius */
  box-shadow: none; /* без теней */
}

/* Сброс радиусов/теней внутри секции на всякий случай */
.about-overview * {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/*----------------------------*/
/* == GRAIN DRYERS SECTION == */
/*----------------------------*/

.graindryer-image {
  width: 50%;
  height: auto;
}

.graindryer-image img {
  width: 100%;
  max-height: 800px;
  height: auto;
  object-fit: contain;
}

/* Responsive: стек на мобильных */
@media (max-width: 800px) {
  .about-overview .section-content,
  .heatgenerator-overview .section-content,
  .agro-kaolinite-overview .section-content {
    flex-direction: column-reverse !important;
    align-items: center;
    justify-content: flex-end;
  }

  .graindryer-overview .section-content,
  .wind-machines-overview .section-content {
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
  }

  .section-content {
    margin: 60px auto;
  }

  .content-container {
    padding-right: 0;
    text-align: center;
    width: 80%;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
  }

  .section-text-content {
    align-items: center;
  }

  .section-image,
  .graindryer-image {
    align-items: center;
    justify-content: center;
    width: 50%;
    max-height: 300px;
    padding-bottom: 50px;
  }

  .section-image,
  .graindryer-image img {
    max-height: 100%;
  }

  .section-text-content h2 {
    font-size: 30px;
  }

  .section-text-content p {
    font-size: 16px;
  }

  .cta-button {
    padding: 10px 18px;
  }
}

@media (max-width: 500px) {
  .section-content {
    margin: 50px auto;
  }

  .section-image,
  .graindryer-image {
    padding-bottom: 10px;
  }

  .section-text-content h2 {
    font-size: 26px;
  }

  .section-text-content p {
    font-size: 16px;
  }

  .section-image,
  .graindryer-image {
    max-height: 180px;
  }

  .section-image,
  .graindryer-image img {
    max-height: 100%;
  }
}
