/* basic */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 400;

  scroll-behavior: smooth;
}

html {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

body.flex-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  /* background-color: #f8f9fa; */
  padding: 10px 0;
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  align-items: center;
}

main {
  flex-grow: 1;
  padding: 20px;
}

footer {
  /* background-color: #f8f9fa; */
  padding: 10px;
  text-align: center;

  display: flex;
  flex-direction: column;
  font-size: 20px;
}

footer p:first-child{
  font-size: 24px;
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  opacity: 0.8;
}

section {
  margin-bottom: 50px;
}

/* utils */
.container {
  max-width: 1420px;
  padding: 0 10px;
  margin: 0 auto;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-right {
  text-align: right;
}

.section__green {
  background-color: #F7FCF6;
  padding: 50px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  color: #092F11;
  margin-bottom: 30px;
}

.section-info {
  color: #092F11;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
}

.green-container {
  display: grid;
  background-color: #F7FCF6;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px;
  gap: 20px;
}

.green-container .green-title {
  font-size: 24px;
  font-weight: 500;
  margin: 20px 0;

  color: #092F11;
}

.green-container .green-content {
  line-height: 140%;
  font-size: 16px;
}


.green-container img {
  max-height: 100%;
  max-width: 100%;
}

.span-green {
  color: #092F11;
}

/* sections */
.banner-section img {
  max-width: 100%;
}

/* navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav ul{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.nav ul li{
  list-style-type: none;
}


.nav__logo {
  margin: 0 20px;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #000;
  margin-bottom: 5px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(-45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(45deg);
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: none;
}

@media screen and (max-width: 1024px) {
  .nav-toggle {
      display: block;
  }

  .nav-menu {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: #fff;
      padding-top: 60px;
      z-index: 9;
  }

  .nav-menu.open {
      display: block;
  }

  .close-menu {
      display: block;
  }

  .nav-menu ul {
      list-style-type: none;
      padding: 0;
      margin: 0;
  }

  .nav-menu li {
      margin-bottom: 15px;
  }

  .nav-menu a {
      font-size: 18px;
      color: #000;
      text-decoration: none;
  }
}

/* philosophy */
.philosophy-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.philosophy-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.philosophy-wrapper p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  
  margin-bottom: 20px;
}

.philosophy-wrapper img {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* targets */

.targets-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 20px;
}

.targets-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.targets-wrapper p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  max-width: 190px;
  min-width: 190px;
}

.targets-wrapper img {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 78px;
  height: 78px;
}

/* carousel */
.flickity-viewport {
  transition: height 0.2s;
}

.carousel-cell {
  width: 30%;
  margin-right: 80px;
  height: 400px;
  counter-increment: carousel-cell;
}

.carousel-cell__centered {
  display: flex;
  justify-content: center;
}

.carousel-cell__full-img img {
  width: 100%;
  margin-bottom: 20px;
}

.carousel-cell img,
.carousel-cell a {
  max-width: 100%;
  max-height: 100%;
}

.carousel_description {
  display: flex;
  flex-direction: column;
  gap: 20px 0;
}

.carousel_description-name {
  text-align: center;
  font-weight: 400;
}

.carousel_description-separator {
  height: 1px;
  width: 100%;
  background-color: #092F11;
}

.carousel_description-profession {
  text-align: right;
}

/* contacts */ 

.contacts {
  font-size: 18px;
}

.contacts-description {
  margin-bottom: 30px;
  gap: 20px;
  flex-direction: column-reverse;
  text-align: center;
}

/* gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;

  padding: 0 50px;
}

.gallery img {
  height: 100%;
  width: 100%;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #092F11;
    color: #F7FCF6;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-text {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-link {
    color: #F7FCF6;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    background: #F7FCF6;
    color: #092F11;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.cookie-btn.more {
    background: transparent;
    color: #F7FCF6;
    border: 1px solid #F7FCF6;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 1024px) {
    .container {
      padding: 0;
    }

    .nav ul {
      flex-direction: column;
    }

    .carousel-cell {
      width: 100%;
    }
    
    .banner-section img {
      min-height: 150px;
    }

    .green-container {
      text-align: center;
    }

    .green-container .green-title {
      margin: 0 0 10px 0;
    }

    .text-right {
      text-align: center;
    }

    .philosophy-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .philosophy-wrapper img {
        max-width: 100px;
    }
    
    .targets-container {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .green-container {
      grid-template-columns: repeat(1, 1fr);
    }
}