html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f4f4f4;
  color: #333;
}
#top {
  height: 34px;
  width: 80%;
  display: block;
  background: rgba(102, 153, 51, 1);
  color: #f0f0f0;
  padding-left: 10%;
  padding-right: 10%;

  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
  opacity: 1;
}
.hidden {
  max-height: 0;
  opacity: 0;
}
#top span {
  font: 13px / 34px "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  margin-right: 20px;
  display: block;
  width: auto;
  float: left;
}
#top span i{
  line-height: 34px;
  width: 15px;
  height: 34px;
  float: left;
  display: block;
  margin-right: 5px;
}
#top .right-widgets {
  float: right;
  text-align: center;
}
#top .right-widgets a{
  font: 13px / 34px "Open Sans", Helvetica, Arial, Verdana, sans-serif;
  margin-right: 0px;
  margin-left: 2px;
  display: block;
  width: 34px;
  height: 34px;
  background-color: rgba(153, 204, 102, 0.5);
  float: right;
  text-decoration: none;
  font-weight: bolder;
  color: #ffffff;
}
header {
  height: 65px;
  width: 80%;
  background: #ffffff;
  color: rgba(102, 153, 51, 1);
  padding-top: 7.5px;
  padding-bottom: 7.5px;
  padding-left: 10%;
  padding-right: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* default */
  z-index: 10;
}
.fixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}
.logo{
  width:197px;
  height: 65px;
  display: block;
  cursor: pointer;
}
nav {
  margin-left: auto;
}
nav a {
  color: #345c34;
  margin: 0 1em;
  text-decoration: none;
  font: normal 600 18px / 22px "Open Sans", Helvetica, Arial, Verdana, sans-serif;
}
nav a:hover {
  color: #99cc66;
}
#aboutLink, #productsLink, #projectsLink, #newsLink, #contactLink{
  width: 100%;
  height: 25px;
  }
.section {
  padding: 2em;
  background: white;
  margin-bottom: 1em;
  width: 80%;
  padding-left: 10%;
  padding-right: 10%;
  scroll-margin-top: 100px;
}
.footer {
  background: rgba(102, 153, 51, 1);
  color: white;
  text-align: center;
  padding: 1em;
}
.lang-switcher {
  margin-left: 18px;
}
.lang-switcher select {
  padding: 0.2em;
  border-radius: 4px;
  border: none;
}

.slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 0;
  pointer-events: none;
}

.slide.active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
    z-index: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-content {
  position: absolute;
  right: 200px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  max-width: 40%;
  opacity: 0;
  animation: fadeInRight 1s forwards;
  animation-delay: 0.3s;
  font-size: xx-large;
}
.text-content p{
  margin-top: 10px;
}
.text-content h2{
  margin-bottom: 10px;
}
.text-content-black{
  color: rgba(0, 0, 0, 1);
  text-shadow: 1px 1px 3px  rgba(255, 255, 255, 1);
}
.text-content-white{
  color: rgba(255, 255, 255, 1);
  text-shadow: 1px 1px 3px  rgba(0, 0, 0, 1);
}
.slide:not(.active) .text-content {
  opacity: 0;
  animation: none;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate(50px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #345c34;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  z-index: 5;
}

.nav.prev {
  left: 20px;
}
.nav.next {
  right: 20px;
}

.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 10px 0;
}
.slider-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
#services{
  width: 100% !important;
    padding-left: 0 !important;
  padding-right: 0 !important;
}
.slider-box{
  position: relative;
  width: 80%;
  max-width: 80%;
  padding-left: 10%;
  padding-right: 10%;
  overflow-x: hidden;
}
.slide-services {
  flex: 1 0 300px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  scroll-snap-align: start;
}

.slide-services h3 {
  color: #003366;
  margin-bottom: 15px;
}

.slide-services ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
}
.arrow {
  transform: translateY(-50%);
  width: 30px;
  height: 60px;
  background: none;
  color: #99cc66;
  font-size: 40px;
  border: none;
  cursor: pointer;
  z-index: 99;
}
.arrow:hover {
  color: #345c34;
}
.arrow.left {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.arrow.right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#contact, #about, #projects {
  display: flex;
  flex-wrap: wrap; /* для адаптивности */
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#left, #right {
  flex: 1 0 50%;
  padding: 30px;
  box-sizing: border-box;
}

#left {
  background-color: rgba(242, 250, 230, 1);
}

#right {
  background-color: #fff;
}

#left h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

#left p, #left li {
  font-size: 16px;
  color: #333;
}

#left ul {
  list-style: none;
  padding-left: 0;
}

#left li {
  margin-bottom: 12px;
}

#left a {
  color: #336633;
  text-decoration: none;
}

#left a:hover {
  text-decoration: underline;
}
#right img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* Форма */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.contact-form button {
  background-color: rgba(153, 204, 102, 1);
  color: #fff;
  padding: 12px 24px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: rgba(102, 153, 51, 1);
}
/* Меню в обычном виде */
#main-nav {
  display: flex;
  gap: 1em;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  line-height: 28px;
  cursor: pointer;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 12px;
  padding-right: 12px;
  color: #345c34;
  border: 1px solid #345c34;
    border-radius: 10px;
}

/* Адаптивное поведение */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 85px; /* под шапкой */
    right: 10%;
    left: 10%;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
  }

  #main-nav.active {
    display: flex;
  }

  #main-nav a {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  #main-nav a:last-child {
    border-bottom: none;
  }

  #contact, #about, #projects  {
    flex-direction: column;
  }
  #left, #right {
    flex: 1 1 100%;
    padding: 20px;
  }
    #right img {
    max-height: 300px;
    object-fit: contain;
  }
  .text-content{
    font-size: large;
      max-width: 80%;
      right: 50px;
        top: 35%;
  }
  nav, .lang-switcher{
    display: none;
  }
  .slide-services {
    flex: 1 0 270px;
  }
  .arrow.left {
    left: 10px;
  }
  .arrow.right {
    right: 10px;
  }
  .nav.prev {
    left: 10px;
  }
  .nav.next {
    right: 10px;
  }
}
