/* Общие стили */
body {
  margin: 0;
  padding: 0;
  direction: rtl;
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* === Логотип в меню (адаптивный и аккуратный) === */
.menu-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;           /* высота области под логотип */
  padding: 0 10px;        /* небольшой отступ */
}

.menu-logo img {
  height: 200px;           /* видимый, но не громоздкий */
  width: auto;            /* сохраняет пропорции */
  display: block;
  object-fit: contain;    /* аккуратно вписывается в область */
}

@media (max-width: 768px) {
  .menu-logo {
    height: 50px;
  }

  .menu-logo img {
    height: 120px;         /* чуть меньше на телефоне */
  }
}


/* Меню */
.menu {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #222121;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.nav-item {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 12px 18px;
}

.whatsapp-btn {
  background-color: white;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

/* Контейнер для ширины сайта */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  text-align: right;
  padding: 280px 20px 200px 20px;
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("img/gb.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.header-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 30px;
  color: #fff;
  margin-bottom: 15px;
}

.header-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 700px;
}

/* Кнопка */
.header .button {
  display: inline-block;
  background-color: #fcf4baef;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.header .button:hover {
  transform: scale(1.05);
}

/* Плавающая кнопка WhatsApp */
.whatsapp-float {
  position: fixed;
  text-decoration: none;
  bottom: 20px;
  left: 20px;
  width: 70px;
  height: 70px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.whatsapp-float i {
  font-size: 38px;
  color: white;
  line-height: 1;
}

/* === Плавающая кнопка телефона === */
.phone-float {
  position: fixed;
  text-decoration: none;
  bottom: 110px; /* чуть выше WhatsApp */
  left: 20px;
  width: 70px;
  height: 70px;
  background-color: #25a6d9; /* синий цвет телефона */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.phone-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.phone-float i {
  font-size: 38px;
  color: white;
  line-height: 1;
}

/* === Номер в меню (ПК) === */
.menu-phone-desktop {
  color: #fff;
  font-size: 18px;
  margin-right: 15px;
  font-weight: 600;
  direction: ltr;
}

/* === Номер в меню (мобильная версия) === */
.menu-phone-mobile {
  display: none;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  font-weight: 600;
  direction: ltr;
}

/* === Мобильные стили === */
@media (max-width: 768px) {
  .menu-phone-desktop {
    display: none;
  }

  .menu-phone-mobile {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .phone-float,
  .whatsapp-float {
    width: 55px;
    height: 55px;
  }

  .phone-float i,
  .whatsapp-float i {
    font-size: 28px;
  }

  .phone-float {
    bottom: 90px; /* чуть выше WhatsApp на телефонах */
  }

  .whatsapp-float {
    bottom: 20px;
  }
}

/* Анимация появления текста */
.animate-header {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-out;
}

.animate-header.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Header Button */
.button {
  background-color: #fcf4baef;
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  cursor: pointer;
}

.description {
  padding: 50px 0;
  background-color: #f4f4f4;
}

.section-title {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: right;
}

.description .section-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
}

.description .section-text:first-of-type + .section-text {
  font-weight: 500;
  color: #222;
}

.team {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  padding: 0 20px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;
  flex-wrap: wrap;
}

.team-member.row-reverse {
  flex-direction: row-reverse;
}

.team-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-info {
  max-width: calc(100% - 140px);
}

.trees-pruning {
  width: 100%;
  padding: 50px 0;
  background-color: #fff;
  color: #333;
}

.trees-pruning h1 {
  font-size: 28px;
  margin-bottom: 15px;
  text-align: right;
}

.trees-pruning ul {
  list-style-type: "• ";
  padding-right: 20px;
  line-height: 1.8;
}

.trees-pruning li {
  margin-bottom: 5px;
}

.trees-pruning h2 {
  color: #222121;
  font-weight: 600;
}

.trees-pruning .tree-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trees-pruning .tree-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.intro-text {
  font-size: 16px;
  margin-bottom: 30px;
  text-align: right;
}

.tree-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f4f4f4;
  border-radius: 8px;
}

.tree-item h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.tree-item p {
  font-size: 14px;
  margin: 0;
}

/* Галерея */
.gallery {
  width: 100%;
  padding: 50px 0;
  background-color: #fff;
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 15px;
}

.gallery-controls button {
  background-color: #222121;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

.gallery-grid {
  display: flex;
  overflow: hidden;
  gap: 10px;
}

.gallery-grid img {
  flex: 0 0 calc(25% - 7.5px);
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.mobile-swipe-indicator {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  display: none;
}

/* FAQ */
.faq {
  width: 100%;
  padding: 50px 20px;
  background-color: #f4f4f4;
}

.faq h1.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
}

.faq-item {
  background-color: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}

.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: #555;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 15px 20px;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

/* Контакты */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 50px 20px;
}

.contact-main-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #222121;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-info {
  text-align: center;
  max-width: 600px;
}

.contact-info .section-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info .button {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 30px;
  color: #222121;
  transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #0077ff;
}

.animate-contact {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.animate-contact.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #fcf4ba;
}

.footer-copy {
  font-size: 14px;
  color: #ccc;
}

.footer-copy span {
  color: #fff;
  font-weight: 600;
}


/* Анимация */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.whatsapp-float {
  animation: pulse 2s infinite ease-in-out;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-title {
    font-size: 36px;
  }
  .header-subtitle {
    font-size: 24px;
  }
  .header-text {
    font-size: 14px;
  }

  .navigation {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #222121;
  }
  .navigation.mobile-active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .menu {
    justify-content: space-between;
  }

  .gallery-controls {
    display: none;
  }
  .gallery-grid {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-grid img {
    flex: 0 0 80%;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: center;
  }
  .mobile-swipe-indicator {
    display: block;
  }

  .contact-image img {
    width: 150px;
    height: 150px;
  }

  .footer-menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* Lightbox затемнение */
#lightbox {
  display: none; /* скрыт по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Активный lightbox */
#lightbox.active {
  display: flex;
  cursor: pointer;
}

/* === Красивая форма комментариев === */
/* === Красивая форма комментариев (адаптивная) === */
/* === Центрированная красивая форма комментариев === */
#comment-form {
  margin: 60px auto;
  max-width: 480px;
  background: #fdfdfd;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: inherit;
  direction: rtl;
  text-align: right;
  align-items: center; /* центрируем всё горизонтально */
}

#comment-form input[type="text"] {
  width: 100%;
  max-width: 350px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  transition: border-color 0.3s;
}

#comment-form input[type="text"]:focus {
  border-color: #25a6d9;
  outline: none;
}

#comment-form textarea {
  width: 100%;
  max-width: 350px;
  min-height: 100px;
  max-height: 180px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.3s;
}

#comment-form textarea:focus {
  border-color: #25a6d9;
  outline: none;
}

/* === Рейтинг (звёзды) === */
#comment-form label {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#comment-form select {
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 15px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

#comment-form select:focus {
  border-color: #25a6d9;
  outline: none;
}

/* === Кнопка отправки === */
#comment-form button {
  background: linear-gradient(135deg, #25a6d9, #1e90ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

#comment-form button:hover {
  background: linear-gradient(135deg, #1c8ac0, #0077ff);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* === Список комментариев === */
#comments-list {
  max-width: 1200px; /* ограничим ширину для больших экранов */
  margin: 20px auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 колонки на десктопе, меньше на маленьких экранах */
  gap: 20px;
  direction: rtl; /* сохраняем твоё выравнивание */
}

/* Отдельный комментарий */
.comment {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: right;
}

.comment strong {
  font-size: 16px;
  color: #333;
}

.stars {
  color: #ffb400;
  font-size: 18px;
  margin-right: 8px;
}

/* === Мобильная адаптация === */
@media (max-width: 600px) {
  #comment-form {
    width: 90%;
    padding: 20px;
    border-radius: 12px;
    gap: 12px;
    align-items: stretch;
  }

  #comment-form input[type="text"],
  #comment-form textarea {
    max-width: 100%;
  }

  #comment-form button {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  #comment-form label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
  }

.comment-header {
  display: flex;
  justify-content: space-between; /* имя слева, звёзды справа */
  align-items: center;
}

.stars {
  font-size: 16px;
  color: gold;
}
}