/* Блок з фото */

/* 🔹 Ховаємо блок на великих екранах */
.mobile-photo-grid {
  display: none;
}

/* 🔹 Відображаємо тільки на мобільних */
@media (max-width: 768px) {
  .mobile-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 19px 0;
    padding: 0 20px;
  }

  .mobile-photo-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
  }

  .mobile-photo-grid img:hover {
    transform: scale(1.03);
  }
}

/* Приховано на десктопі */
.mobile-comments {
  display: none;
}

@media (max-width: 768px) {
  .mobile-comments {
    display: block;
    font-family: 'Segoe UI', Arial, sans-serif;
  }

  .mobile-comments .media {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
  }

  /* Відступ для відповіді */

  /* Аватари */
  .mobile-comments .avatar img {
    width: 40px;
    height: 40px;

    object-fit: cover;
  }

  /* Тіло коментаря */
  .mobile-comments .media-body.comment {
    flex: 1;
  }

  /* Ім'я користувача */
  .mobile-comments .name {
    font-weight: 600;
    font-size: 14px;
    color: #385898;
    margin-bottom: 2px;
  }

  /* Текст коментаря */
  .mobile-comments .text {
    font-size: 14px;
    color: #050505;
    line-height: 1.4;
  }

  /* Метадані коментаря */
  .mobile-comments .meta {
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
  }

  .mobile-comments .meta .reply {
    color: #385898;
    cursor: pointer;
    margin-right: 8px;
  }

  .mobile-comments .meta .likes,
  .mobile-comments .meta .time {
    margin-left: 8px;
  }
}

/* Notify */
.add-comment {
  display: none; /* приховано за замовчуванням */
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.add-comment textarea {
  width: 100%;
  height: 40px;
  padding: 10px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box; /* ✅ гарантує, що ширина не вийде за межі контейнера */
}

.add-comment button {
  margin-top: 8px;
  padding: 10px 14px;
  background-color: #1e3694; /* як у Facebook */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

.add-comment button:hover {
  background-color: #166fe5;
}

/* Сповіщення */
.notification {
  display: none;
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
}

/* 🔹 Показуємо тільки на мобільних */
@media (max-width: 768px) {
  .add-comment {
    display: block;
  }
}

/* Modern Form Styles */

.hero_form_inner,
.inveastors_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero_form_inner h2,
.inveastors_form h3 {
  text-align: center;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.inveastors_form h3 {
  font-size: 20px;
  text-align: center;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: var(--text-black);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: #999;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(208, 166, 47, 0.1);
}

.form-submit {
  padding: 16px 32px;
  background: #1e3694;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(208, 166, 47, 0.25);
  font-family: 'Montserrat', sans-serif;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(208, 166, 47, 0.35);
}

.form-submit:active {
  transform: translateY(0);
}

.hero_form_text,
.form-agreement {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.hero_form_text a,
.form-agreement a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero_form_text a:hover,
.form-agreement a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

/* Hero form specific styles */
.hero_form {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form counter styles - Inside hero_form */
.form-counter {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
  margin: -40px -40px 25px -40px;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid #f0f0f0;
}

.counter-slots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.counter-label {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.counter-number {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--main-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  margin: 0;
  line-height: 1;
}

.form-down {
  margin: 0 30px;
  padding: 20px 30px;
  border: 1px solid gray;
  border-radius: 15px;
  margin-bottom: 20px;
}
