/* === Общие настройки === */
body {
  background: #f8f5e9;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232323;
}

html {
  scroll-behavior: smooth;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  background: #f8f5e9;
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(34,40,49,0.04);
  transition: all 0.28s cubic-bezier(.4,0,.2,1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 220px;
  transition: min-height 0.28s cubic-bezier(.4,0,.2,1);
}
.site-logo {
  height: 200px;
  transition: height 0.28s cubic-bezier(.4,0,.2,1);
}
.main-nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  text-decoration: none;
  color: #232323;
  font-weight: 500;
  font-size: 1.14rem;
  padding: 6px 2px;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.2s;
}
.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  border-bottom: 2.5px solid #1a4731;
}
.header-scrolled .header-inner {
  min-height: 70px;
}
.header-scrolled .site-logo {
  height: 42px;
}

/* --- Side-block секции (hero, leistungen, konzept, anlagen и т.д.) --- */
.sideblock {
  display: flex;
  align-items: stretch;
  width: 100vw;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.sideblock-image {
  width: 48%;
  min-height: 540px;
  
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sideblock-image img {
  max-width: 92%;
  max-height: 88%;
  border-radius: 36px;
  object-fit: contain;
  display: block;
}
.sideblock-content {
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 60px 7vw;
  z-index: 2;
  color: #1a4731;
  min-height: 480px;
}
.sideblock-content h1,
.sideblock-content h2,
.sideblock-content h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #1a4731;
  font-weight: 700;
}
.sideblock-content h1 { font-size: 3rem; font-weight: 900; }
.sideblock-content h2 { font-size: 2.1rem; }
.sideblock-content h3 { font-size: 1.38rem; }
.sideblock-content p {
  font-size: 1.16rem;
  line-height: 1.63;
  color: #232323;
  margin: 0;
}
.sideblock-content ul {
  list-style: disc inside;
  margin-bottom: 24px;
  font-size: 1.13rem;
  color: #232323;
}
.sideblock.reverse {
  flex-direction: row-reverse;
}
.sideblock.reverse .sideblock-image img {
  object-position: right center;
}

/* --- Адаптация для мобильных --- */
@media (max-width: 1000px) {
  .sideblock, .sideblock.reverse {
    flex-direction: column;
    min-height: auto;
  }
  .sideblock-image, .sideblock-content {
    width: 100%;
    min-height: 220px;
    padding: 36px 16px;
  }
  .sideblock-image img {
    min-width: 0;
    max-width: 94vw;
    max-height: 220px;
    border-radius: 22px;
  }
}
/* Анимация появления слева */
.sideblock.animated-from-left {
  opacity: 0;
  transform: translateX(-180px);   /* больше сдвиг! */
  transition: opacity 0.95s cubic-bezier(.34,1.56,.64,1), transform 0.95s cubic-bezier(.34,1.56,.64,1);
}
.sideblock.visible.animated-from-left {
  opacity: 1;
  transform: translateX(0);
}

/* Анимация появления справа */
.sideblock.animated-from-right {
  opacity: 0;
  transform: translateX(180px);    /* больше сдвиг! */
  transition: opacity 0.95s cubic-bezier(.34,1.56,.64,1), transform 0.95s cubic-bezier(.34,1.56,.64,1);
}
.sideblock.visible.animated-from-right {
  opacity: 1;
  transform: translateX(0);
}
/* --- Остальные элементы и секционные заголовки --- */
main {
  padding-top: 0;
}
.site-footer {
  background: #e7e1ce;
  color: #232323;
  font-size: 1rem;
  padding: 36px 0 24px 0;
  text-align: center;
  margin-top: 120px;
  position: relative;
  z-index: 1;
}
.site-footer a {
  color: #1a4731;
  text-decoration: underline dotted;
}
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ede3c6;
  color: #232323;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  gap: 18px;
  font-size: 1rem;
  box-shadow: 0 -2px 14px rgba(50,50,50,0.07);
  transition: transform 0.35s;
}
.cookie-banner[hidden] {
  transform: translateY(120%);
}
.cookie-banner button {
  background: #1a4731;
  color: #fff;
  border: none;
  padding: 7px 26px;
  border-radius: 24px;
  font-size: 1.02rem;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.15s;
}
.cookie-banner button:hover {
  background: #388c3c;
}

/* --- Section Divider --- */
.section-divider {
  width: 100vw;
  text-align: center;
  padding: 56px 0 28px 0;
  background: transparent;
  position: relative;
  z-index: 2;
}
.section-divider:first-of-type::before {
  content: "";
  display: block;
  height: 350px; /* или столько, сколько твой header */
  margin-top: -220px;
  width: 1px;
  pointer-events: none;
}
.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: #1a4731;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.1;
}
.section-subtitle {
  font-size: 1.45rem;
  color: #388c3c;
  margin: 18px 0 0 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  .section-title {
    font-size: 2rem;
    padding: 0 8px;
  }
  .section-divider {
    padding: 28px 0 14px 0;
  }
  .section-subtitle { font-size: 1.08rem; }
}

/* --- Контактная форма --- */
.kontakt-section {
  width: 100vw;
  background: #f4efe3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 54px 0 70px 0;
}
.kontakt-form {
  background: rgba(248,245,233,0.97);
  padding: 42px 36px 36px 36px;
  border-radius: 28px;
  box-shadow: 0 2px 38px -16px rgba(34,40,49,0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  gap: 22px;
}
.form-row {
  display: flex;
  gap: 14px;
}
.kontakt-form input,
.kontakt-form textarea {
  font-family: inherit;
  font-size: 1.06rem;
  border: 1.4px solid #c9c1a4;
  border-radius: 9px;
  padding: 11px 15px;
  background: #fffefa;
  color: #232323;
  outline: none;
  width: 100%;
  transition: border 0.17s;
  resize: none;
}
.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border-color: #1a4731;
}
.kontakt-form textarea {
  min-height: 100px;
  font-size: 1.08rem;
}
.kontakt-form button {
  background: #1a4731;
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 20px;
  font-size: 1.13rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.18s;
}
.kontakt-form button:hover {
  background: #388c3c;
}
.form-success {
  background: #e1f5d8;
  color: #267c27;
  border-radius: 7px;
  padding: 14px 9px;
  text-align: center;
  font-size: 1.08rem;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .kontakt-form {
    padding: 22px 6vw 24px 6vw;
    border-radius: 18px;
    max-width: 98vw;
    gap: 14px;
  }
  .form-row {
    flex-direction: column;
    gap: 11px;
  }
}
.fade-up {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.78s cubic-bezier(.34,1.56,.64,1), transform 0.78s cubic-bezier(.34,1.56,.64,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}