/* ============================================
   HERO SECTION — Split-screen layout
   ============================================ */
.hero {
    position: relative;
    padding: 120px 0 80px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Затемнение фона */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

/* Split-screen grid */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    justify-content: normal;
}

/* Левая колонка — текст */
.hero-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    justify-self: start;
    max-width: 100%;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.03em;
}

.hero-utp {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    line-height: 1.7;
    text-align: left;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    justify-content: flex-start;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--color-green-deep) 0%, var(--color-green-light) 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(44,85,48,0.4);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44,85,48,0.5);
}

.hero-actions .btn-outline {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.hero-actions .btn-outline:hover {
    background: var(--color-white);
    color: var(--color-green-deep);
    border-color: var(--color-white);
}

.hero-phone {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.hero-phone a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    transition: color var(--transition);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-phone a:hover {
    color: rgba(255,255,255,0.8);
}

.hero-phone span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Правая колонка — изображение */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-image-wrapper img,
.hero-image-wrapper img[loading="eager"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prevent CLS for hero images */
.hero-image-wrapper {
    contain: layout;
}

/* Декоративный элемент — плашка с бонусом */
.hero-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, var(--color-green-deep) 0%, var(--color-green-light) 100%);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-width: 260px;
}

.hero-badge strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.hero-badge span {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Фоновый слайдер */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
}

.hero-bg-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-bg-img,
.hero-main-img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg-img picture,
.hero-main-img picture {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-bg-img img,
.hero-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки и точки слайдера — поверх оверлея */
.hero-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-controls .hero-slider-btn {
    pointer-events: auto;
}

.hero-controls .hero-slider-dots {
    pointer-events: auto;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 2;
    border: none;
    color: var(--color-green-deep);
}

.hero-slider-btn:hover {
    background-color: var(--color-green-deep);
    color: var(--color-white);
}

.hero-slider-prev {
    left: 16px;
}

.hero-slider-next {
    right: 16px;
}

.hero-slider-btn svg {
    width: 24px;
    height: 24px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dot.active {
    background-color: var(--color-green-deep);
    border-color: var(--color-green-deep);
    transform: scale(1.2);
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}
