/* ============================================
   HERO (главная)
   ============================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000000;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; display: block; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; }

.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 240px; z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.7) 65%, rgba(0, 0, 0, 0.95) 90%, #000000 100%);
    pointer-events: none;
}

.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__content { max-width: 620px; }
.hero__subtitle { font-size: clamp(20px, 3vw, 42px); font-weight: var(--font-weight-light); color: rgba(255, 255, 255, 0.85); line-height: 1.2; margin-bottom: 8px; }
.hero__title { font-size: clamp(32px, 5vw, 68px); font-weight: var(--font-weight-bold); color: var(--color-white); line-height: 1.1; letter-spacing: 0.5px; margin-bottom: 48px; text-transform: uppercase; white-space: normal; /* Разрешаем перенос */ }
.hero__content .btn { min-width: 180px; padding: 16px 42px; font-size: 16px; border-radius: 4px; }

@media (max-width: 1024px) {
    .hero { min-height: 75vh; padding-top: 110px; padding-bottom: 40px; }
    .hero__bg-img { object-position: right; }
    .hero::after { height: 180px; }
    .hero__title { font-size: 42px; }
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; padding-top: 100px; padding-bottom: 40px; }
    .hero__title { font-size: 32px; margin-bottom: 24px; }
    .hero__subtitle { font-size: 15px; margin-bottom: 12px; }
    .hero__content .btn { width: 100%; text-align: center; min-width: auto; }
    .hero::after { height: 140px; }
    .hero__bg-img { object-position: 90% center; }
}

@media (max-width: 520px) {
    .hero { min-height: 55vh; }
    .hero__bg-img { object-position: 85% center;}
}

/* ============================================
   ABOUT (главная)
   ============================================ */
.about { background: #000000; padding: 100px 0; }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; margin: 0 auto; }
.about__media { position: relative; }
.about__video { width: 100%; height: auto; display: block; border-radius: 24px 0 24px 0; background: #1A1A1A; aspect-ratio: 16 / 9; object-fit: cover; overflow: hidden; }
.about__content { max-width: 560px; }
.about__title { font-size: clamp(32px, 3.2vw, 48px); font-weight: var(--font-weight-light); color: var(--color-white); line-height: 1.2; margin-bottom: 36px; }
.about__lead { font-size: 15px; color: var(--color-white); font-weight: var(--font-weight-regular); margin-bottom: 6px; opacity: 0.95; }
.about__text { font-size: 15px; color: rgba(255, 255, 255, 0.75); line-height: 1.7; margin: 0; max-width: 560px; }

@media (max-width: 1024px) {
    .about { padding: 80px 0 60px; }
    .about__inner { display: flex; flex-direction: column; gap: 40px; max-width: 100%; }
    .about__media { width: 100%; order: -1; max-width: 100%; overflow: hidden; border-radius: 16px; }
    .about__video { width: 100%; height: auto; display: block; max-width: 100%; object-fit: cover; }
    .about__content { width: 100%; max-width: 100%; }
    .about__title { font-size: 28px; }
}

/* ============================================
   ADVANTAGES
   ============================================ */
.advantages { background: #000000; padding: 0 0 120px; }
.advantages__card { margin: 0 auto; background: #2A2A2A; border-radius: 20px; padding: 60px 70px 50px; }
.advantages__slider { width: 100%; }
.advantages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.advantages__item { display: flex; flex-direction: column; }
.advantages__title { font-size: 24px; font-weight: var(--font-weight-regular); color: var(--color-primary); line-height: 1.3; margin-bottom: 20px; max-width: 240px; }
.advantages__text { font-size: 14px; color: rgba(255, 255, 255, 0.85); line-height: 1.55; margin: 0; }

.advantages__dots { display: flex; gap: 50px; padding: 0 70px; justify-content: space-around; }
.advantages__dot { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--color-primary); justify-self: start; border: none; cursor: pointer; padding: 0; opacity: 0.35; transition: opacity 0.3s ease, transform 0.3s ease; margin-top: -10px; }
.advantages__dot.is-active { opacity: 1; transform: scale(1.1); }

@media (min-width: 1025px) {
    .advantages__dot { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .advantages { padding: 0 0 60px; }
    .advantages__card { padding: 0; background: transparent; border-radius: 0; }
    .advantages__slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 24px; gap: 16px; }
    .advantages__slider::-webkit-scrollbar { display: none; }
    .advantages__grid { display: flex; gap: 16px; }
    .advantages__item { flex: 0 0 85vw; max-width: 340px; scroll-snap-align: center; background: #2A2A2A; border-radius: 16px; padding: 40px 32px 36px; box-sizing: border-box; }
    .advantages__title { font-size: 22px; margin-bottom: 16px; max-width: none; }
    .advantages__text { font-size: 14px; line-height: 1.55; }
    .advantages__dots { display: flex; justify-content: center; gap: 12px; margin: 24px auto 0; padding: 0; max-width: none; }
    .advantages__dot { justify-self: auto; opacity: 0.35; }
    .advantages__dot.is-active { opacity: 1; }
}

@media (max-width: 600px) {
    .advantages__slider { padding: 0 16px; }
    .advantages__item { flex: 0 0 88vw; padding: 32px 24px 28px; }
    .advantages__title { font-size: 20px; }
    .advantages__text { font-size: 13px; }
}

/* ============================================
   HOME PRODUCTS / SLIDER
   ============================================ */
.home-products { background: #000; padding: 100px 0; }
.home-products__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.home-products__title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; color: #fff; line-height: 1.2; text-transform: uppercase; margin: 0; }
.home-products__all { font-size: 15px; color: var(--color-primary, #7CB342); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.home-products__all:hover { color: #9CCC65; }

.home-slider { position: relative; display: flex; align-items: center; gap: 24px; padding: 0 20px; max-width: 800px; margin: 0 auto; }
.home-slider__track { display: flex; gap: 0; width: 100%; overflow: hidden; transition: transform 0.4s ease; }
.home-slider__slide { flex: 0 0 100%; padding: 0 10px; box-sizing: border-box; }

.home-product-card { display: flex; flex-direction: column; height: 100%; background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 20px; overflow: hidden; text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; max-width: 400px; margin: 0 auto; }
.home-product-card:hover { border-color: var(--color-primary, #7CB342); transform: translateY(-4px); }
.home-product-card__media { height: 300px; background: #0F0F0F; display: flex; align-items: center; justify-content: center; padding: 40px; overflow: hidden; }
.home-product-card__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.home-product-card:hover .home-product-card__img { transform: scale(1.05); }
.home-product-card__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; text-align: center; }
.home-product-card__title { font-size: 28px; font-weight: 600; color: #FFF; margin: 0; line-height: 1.25; }
.home-product-card__desc { font-size: 16px; color: rgba(255, 255, 255, 0.65); line-height: 1.55; margin: 0; flex: 1; }
.home-product-card__link { font-size: 16px; font-weight: 600; color: var(--color-primary, #7CB342); margin-top: 8px; }

.home-slider__arrow { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #1A1A1A; color: #FFF; border: 1px solid #2A2A2A; font-size: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; z-index: 10; }
.home-slider__arrow:hover { background: var(--color-primary, #7CB342); border-color: var(--color-primary, #7CB342); }

@media (max-width: 600px) {
    .home-slider { gap: 12px; padding: 0 10px; }
    .home-slider__arrow { display: none; }
    .home-product-card__media { height: 200px; padding: 20px; }
    .home-product-card__title { font-size: 22px; }
    .home-product-card__body { padding: 20px; }
}

/* ============================================
   HOME NEWS (3D Карусель)
   ============================================ */
.home-news { background: #000; padding: 100px 0 120px; }
.home-news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.home-news__title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; color: #fff; line-height: 1.2; text-transform: uppercase; margin: 0; }
.home-news__all { font-size: 15px; color: var(--color-primary, #7CB342); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.2s ease; }
.home-news__all:hover { color: #9CCC65; }

.home-carousel { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 520px; }
.home-carousel__stage { position: relative; width: 100%; max-width: 900px; height: 500px; perspective: 1200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.home-carousel__item { position: absolute; top: 50%; left: 50%; width: 340px; height: 460px; transform: translate(-50%, -50%) scale(0.7); opacity: 0; pointer-events: none; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, filter 0.5s ease; filter: brightness(0.5); will-change: transform, opacity; }
.home-carousel__item.is-active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; z-index: 3; filter: brightness(1); }
.home-carousel__item.is-prev { transform: translate(-115%, -50%) scale(0.75); opacity: 0.6; pointer-events: auto; z-index: 2; filter: brightness(0.6); }
.home-carousel__item.is-next { transform: translate(15%, -50%) scale(0.75); opacity: 0.6; pointer-events: auto; z-index: 2; filter: brightness(0.6); }

.home-carousel__card { display: flex; flex-direction: column; width: 100%; height: 100%; background: #1A1A1A; border: 1px solid #2A2A2A; border-radius: 20px; overflow: hidden; text-decoration: none; transition: border-color 0.25s ease; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.home-carousel__item.is-active .home-carousel__card { border-color: var(--color-primary, #7CB342); box-shadow: 0 20px 60px rgba(124, 179, 66, 0.25); }

.home-news-card__media { width: 100%; height: 240px; background: #0F0F0F; overflow: hidden; }
.home-news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.home-news-card:hover .home-news-card__img { transform: scale(1.05); }
.home-news-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%); }
.home-news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.home-news-card__date { font-size: 13px; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.home-news-card__title { font-size: 20px; font-weight: 500; color: #FFF; line-height: 1.35; margin: 0; transition: color 0.2s ease; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-carousel__item.is-active .home-news-card:hover .home-news-card__title { color: var(--color-primary, #7CB342); }
.home-news-card__excerpt { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.home-carousel__arrow { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: #1A1A1A; color: #FFF; border: 1px solid #2A2A2A; font-size: 28px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; z-index: 10; }
.home-carousel__arrow:hover { background: var(--color-primary, #7CB342); border-color: var(--color-primary, #7CB342); }

@media (max-width: 768px) {
    .home-carousel__arrow { display: none; }
    .home-carousel__item { width: 85vw; height: 420px; }
    .home-carousel__stage { height: 460px; }
    .home-carousel { min-height: 480px; }
    .home-product-card__title { font-size: 18px; }
    .home-news-card__title { font-size: 18px; }
}