.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Темний фон: синій + зображення */
  background:
    linear-gradient(135deg, rgba(12,31,63,0.9), rgba(8,23,54,0.9)),
    url('@{/media-resources/hero-bg.jpg}') no-repeat center center/cover;
}

/* Контейнер усередині hero */
.hero-inner {
  display: flex;
  justify-content: space-between; /* ліва / права колонки */
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Ліва колонка (картинка) */
.hero-left {
  flex: 0 0 35%; /* приблизно половина */
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-left img {
  width: 100%;
  max-width: 500px; /* щоб не розтягувалася забагато */
  object-fit: cover;
}

/* Права колонка (текст і кнопки) */
.hero-right {
  flex: 0 0 55%;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left; /* Текст буде ліворуч у колонці */
  opacity: 0; /* для fade-in */
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.hero-right.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-right h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Пошук домену */
.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-search input[type="text"] {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 1rem;
}
.hero-search-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}
.hero-search-btn:hover {
  background-color: #249e5e;
  transform: translateY(-2px);
}

/* Кнопки після пошуку */
.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Приклад додаткової кнопки */
.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: var(--white);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Стилі для кнопок в hero секції */
.hero-right .btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin: 10px;
  font-size: 1rem;
}

.hero-right .btn-hero {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  margin: 10px;
  font-size: 1rem;
}

@media (max-width: 992px) {
  .hero-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-left, .hero-right {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
  }
  .hero-right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-right h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-search {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: flex-end; /* текст праворуч */
  align-items: center;

  /* Фон: градієнт + синій */
  background:
    linear-gradient(135deg, rgba(12,31,63,0.95), rgba(8,23,54,0.9)),
    url('@{/media-resources/hero-bg.jpg}') no-repeat center center/cover;
}

.hero-content {
  max-width: 600px;
  margin-right: 5%;
  color: var(--white);
  opacity: 0;            /* Початково для fade-in */
  transform: translateY(20px);
  transition: opacity var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}

.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero {
    margin-top: -2vh;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-left, .hero-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .hero-left img {
    margin-top: 2vh;
    max-width: 80%;
    height: auto;
  }

  .hero-right h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 5vh;
  }
}

@media (max-width: 480px) {
  .hero-right h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .btn-hero, .btn-secondary {
    width: 100%;
    padding: 0.8rem;
  }
}
