/* ===== СЕЛЬХОЗТЕХНИКА — СТИЛИ HERO-БЛОКА ДЛЯ JOOMLA ===== */
/* Вставьте в поле "Custom CSS" страницы Page Builder */
/* или в файл templates/ВАШ_ШАБЛОН/css/custom.css */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
  --sht-accent: #ff8a00;
  --sht-accent-2: #ffb347;
  --sht-dark: #0a0f1a;
  --sht-white: #ffffff;
}

/* ---------- HERO КОНТЕЙНЕР ---------- */
.sht-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--sht-white);
  margin: 0;
  padding: 0;
}

/* ---------- ФОНОВОЕ ИЗОБРАЖЕНИЕ ---------- */
.sht-hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1625246333195-239057c8f52f?w=1920&q=80') center / cover no-repeat;
  animation: sht-kenburns 20s ease-in-out infinite alternate;
  z-index: 0;
}

/* Замените URL выше на путь к вашей картинке, например:
   background: url('/images/hero/farm-bg.jpg') center / cover no-repeat; */

@keyframes sht-kenburns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}

/* ---------- ЗАТЕМНЕНИЕ ---------- */
.sht-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- КОНТЕНТ ---------- */
.sht-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
}

/* ---------- НАВБАР ---------- */
.sht-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 0;
  transition: padding 0.3s, background 0.3s, backdrop-filter 0.3s;
}

.sht-nav.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  padding: 14px 32px;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.sht-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.sht-nav__logo-icon {
  color: var(--sht-accent);
  animation: sht-spin 8s linear infinite;
}

@keyframes sht-spin {
  to { transform: rotate(360deg); }
}

.sht-nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sht-nav__menu a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.sht-nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--sht-accent);
  transition: width 0.3s, left 0.3s;
}

.sht-nav__menu a:hover {
  color: var(--sht-white);
}

.sht-nav__menu a:hover::after {
  width: 100%;
  left: 0;
}

/* ---------- БУРГЕР ---------- */
.sht-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.sht-burger span {
  width: 28px;
  height: 3px;
  background: var(--sht-white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- МОБИЛЬНОЕ МЕНЮ ---------- */
.sht-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background: rgba(10,15,26,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
}

.sht-mobile-menu.open {
  right: 0;
}

.sht-mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--sht-white);
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.sht-mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.sht-mobile-menu a {
  color: var(--sht-white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
}

.sht-mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sht-mobile-menu__backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- ГЛАВНЫЙ БЛОК ---------- */
.sht-hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0px 0 60px;
  max-width: 760px;
}

/* ---------- ЗАГОЛОВОК ---------- */
.sht-hero__title {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

/* ---------- ПОДЗАГОЛОВОК ---------- */
.sht-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--sht-accent-2);
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.sht-features {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  flex-wrap: wrap;
}

.sht-features__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.4;
}

.sht-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255,138,0,0.15);
  border: 1px solid rgba(255,138,0,0.35);
  border-radius: 12px;
  color: var(--sht-accent-2);
  transition: transform 0.3s, background 0.3s;
}

.sht-features__item:hover .sht-features__icon {
  transform: translateY(-4px);
  background: rgba(255,138,0,0.25);
}

/* ---------- КНОПКИ ---------- */
.sht-hero__buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sht-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: inherit;
}

.sht-btn--download {
  background: linear-gradient(135deg, var(--sht-accent), var(--sht-accent-2));
  color: var(--sht-dark);
  box-shadow: 0 6px 25px rgba(255,138,0,0.45);
}

.sht-btn--download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255,138,0,0.6);
}

.sht-btn--open {
  background: transparent;
  color: var(--sht-white);
  border: 2px solid rgba(255,255,255,0.5);
}

.sht-btn--open:hover {
  transform: translateY(-3px);
  border-color: var(--sht-white);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(255,255,255,0.15);
}

/* Ripple */
.sht-btn .sht-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  pointer-events: none;
  animation: sht-ripple 0.6s ease-out;
}

@keyframes sht-ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(4); opacity: 0; }
}

/* ---------- СКРОЛЛ ИНДИКАТОР ---------- */
.sht-hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
  padding-bottom: 20px;
}

.sht-hero__scroll svg {
  animation: sht-bounce 2s ease-in-out infinite;
}

@keyframes sht-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* ---------- АНИМАЦИЯ ПОЯВЛЕНИЯ ---------- */
.sht-animate {
  opacity: 0;
  transform: translateY(40px);
}

.sht-animate.sht-visible {
  animation: sht-fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sht-fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/* ---------- АДАПТИВНОСТЬ ---------- */
/* ============================================= */

/* Планшеты */
@media (max-width: 900px) {
  .sht-features {
    gap: 20px;
  }
  .sht-features__item {
    font-size: 0.85rem;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .sht-hero__content {
    padding: 0 20px;
  }
  .sht-nav__menu {
    display: none;
  }
  .sht-burger {
    display: flex;
  }
  .sht-hero__main {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .sht-features {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .sht-hero__buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
  }
  .sht-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
  .sht-hero__title {
    font-size: 1.6rem;
  }
  .sht-hero__subtitle {
    font-size: 1rem;
  }
  .sht-features__icon {
    width: 40px;
    height: 40px;
  }
  .sht-features__item {
    font-size: 0.8rem;
  }
  .sht-btn {
    padding: 13px 24px;
    font-size: 0.9rem;
  }
  .sht-hero__scroll {
    display: none;
  }
}

/* ---------- КОНЕЦ СТИЛЕЙ ---------- */

/* ВАЖНО: Если шаблон Joomla добавляет свои отступы или рамки
   к секции Page Builder, добавьте сюда:
   .sht-hero { margin: 0 !important; padding: 0 !important; border: none !important; }
*/