* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  background: #223422;
  color: #223422;
}

.montserrat-regular {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* Regular */
  font-style: normal;
}


.open-sans-italic {
  font-family: "Open Sans", italic;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
  font-variation-settings:
    "wdth" 100;
}

/* Логотип + название в одну линию */
.brand {
    display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
   border-radius: 10px;
  /* не переносить название */
}

/* Общий стиль */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

nav.menu {
  display: flex;
  gap: 15px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  top: 100%;
  left: 0;
  min-width: 150px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Иконка меню */
.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Чекбокс скрытый */
.menu-toggle {
  display: none;
}

/* Для мобильных */
@media (max-width: 768px) {
  nav.menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border: 1px solid #ddd;
  }

  /* показываем бургер */
  .menu-icon {
    display: block;
  }

  /* если чекбокс активен — показываем меню */
  .menu-toggle:checked+.menu-icon+nav.menu {
    display: flex;
  }
}


header {
  background: #fff;
  color:#355735 ;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  border-radius: 10%;
  font-size: 1.2em;
}

nav a {
  color: #355735;
  margin-left: 20px;
  text-decoration: none;
}

.hero {
  background: rgb(255, 255, 255);
  color: #355735;
  text-align: center;
  padding: 30px 30px;
}

.hero .btn {
  display: inline-block;
  margin: 10px;
  /* отступы между кнопками */
}

.hero img {
  display: block;
  /* убираем лишние пробелы */
  margin: 30px auto 0;
  /* сверху 30px, авто по бокам → по центру */
  max-width: 100%;
  /* картинка адаптивная */
  height: auto;
}


.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #355735;
  color: rgb(255, 255, 255);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 30px;
  display: inline-block;
}

.btn:hover {
  background: #5c8b71;
}

.modules {
  padding: 60px 20px;
  text-align: left;
  background: #4b654b;
}

.modules h2 {
  margin-bottom: 40px;
  font-size: 28px;
  color: #cfcfcf;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* по умолчанию 2 в ряд */
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card.wide {
  grid-column: span 2; /* занимает две колонки */
}


.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Карточка с каруселью */
.card .carousel {
  max-width: 100%;
}

/* Каркас карусели */
.carousel {
  position: relative;
  width: 100%;
  margin: 0 auto 14px;
  user-select: none;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  /* подстрой под свои фото, можно 4/3 */
  background: #111;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Кнопки навигации */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #549370;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.carousel__btn:hover {
  background: #549370;
}

.carousel__btn.prev {
  left: 10px;
}

.carousel__btn.next {
  right: 10px;
}

/* ---- Мобильная адаптация ---- */
@media (max-width: 768px) {
  .carousel__btn {
    width: 28px; /* делаем кнопки меньше */
    height: 28px;
    top: auto; /* убираем центрирование */
    bottom: 10px; /* переносим вниз */
    transform: none; /* отключаем смещение по Y */
  }

  .carousel__btn.prev {
    left: 10%;
  }

  .carousel__btn.next {
    right: 10%;
  }
}

/* Точки */
.carousel__dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 0 0;
}

.carousel__dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #cfcfcf;
  cursor: pointer;
}

.carousel__dots .dot.is-active {
  background: #549370;
}


footer {
  padding: 30px;
  background: #fefbfb;
  color: #549370;
  text-align: center;
}


nav {
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #154f30;
  font-weight: 500;
  position: relative;
}

/* Контейнер для выпадающего меню */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Выпадающее меню */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  /* сразу под ссылкой */
  left: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Ссылки внутри подменю */
.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #154f30;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* Показать меню при наведении */
.dropdown:hover .dropdown-content {
  display: block;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

/* бренд в одну линию (desktop) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand img {
    width: 70px;                /* адаптивная маленькая версия логотипа */
  height: auto;
  flex-shrink: 0;             /* НЕ сжимать логотип */
}

.brand .logo {
  white-space: normal;        /* разрешить перенос строк */
  line-height: 1.2;
  flex: 1;                    /* текст занимает всё оставшееся место */
  min-width: 0;               /* позволяет тексту переноситься */
  font-size: 14px;
}

/* бургер */
.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

/* меню */
nav.menu {
  display: flex;
  gap: 15px;
}

/* мобильные стили */
@media (max-width: 1292px) {
  header {
    align-items: flex-start;
  }

  .brand {
    flex-direction: column;
    /* уходим в колонку */
    align-items: flex-start;
  }

  .logo {
    margin-top: 5px;
    font-size: 16px;
  }

  .menu-icon {
    display: block;
    margin-left: auto;
    /* бургер вправо */
  }

  nav.menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 15px;
    border: 1px solid #ddd;
  }

  .menu-toggle:checked+.menu-icon+nav.menu {
    display: flex;
  }

  /* подменю */
  .dropdown {
    position: static;
  }

  .dropdown-content {
    position: static;
    border: none;
    padding-left: 15px;
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.contacts-wrapper {
  display: flex;
  flex-wrap: wrap; /* <-- позволяет колонкам переноситься */
  gap: 20px;
  padding: 10px 10px;
  box-sizing: border-box;
}

#contacts .container {
  flex: 1 1 300px; /* гибкая ширина — адаптируется */
  min-width: 250px;
  box-sizing: border-box;
}

/* Первая колонка — немного шире на больших экранах */
#contacts .container:first-child {
  flex: 2;
}

/* Вторая колонка — чуть меньше */
#contacts .container:last-child {
  flex: 1;
}

/* --- Мобильная версия --- */
@media (max-width: 768px) {
  .contacts-wrapper {
    flex-direction: column; /* колонки становятся вертикально */
    padding: 15px;
    gap: 10px;
  }

  #contacts .container {
    width: 100%; /* каждая занимает всю ширину */
  }

  #contacts h4,
  #contacts h5 {
    font-size: 14px;
    line-height: 1.4;
  }

  #contacts h4 {
    margin-bottom: 5px;
  }
}
