/* Рамка по периметру всего градиента*/
/* .hero-container {
    max-width: 1200px;
    width: 100%;
    background:
        linear-gradient(to bottom, white 0%, transparent 20px),
        linear-gradient(to top, white 0%, transparent 20px),
        linear-gradient(to right, white 0%, transparent 20px),
        linear-gradient(to left, white 0%, transparent 20px),
        linear-gradient(135deg, #202E56, #00747D);
    position: relative;
    margin: 0 auto;
} */

/* Размытие только по бокам */
/* .hero-container {
    max-width: 1200px;
    width: 100%;
    background:

        linear-gradient(to right, white 0%, transparent 20px, transparent calc(100% - 20px), white 100%),

        linear-gradient(135deg, #00747D, #202E56);
    position: relative;
    margin: 0 auto;
} */

.hero-container {
    max-width: 1200px;
    width: 100%;
    height: 660px;
    position: relative;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background-image: url('/static/frames/images/mantlepice4.png');
    background-size: cover;
    background-position: center;
}

.hero-container::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -20%;
    width: 140%;
    height: 80%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        transparent 80%
    );
    filter: blur(12px);
    transform: rotate(3deg) skewX(-4deg);
    pointer-events: none;
    z-index: 1;
}

/* .hero-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/frames/images/mantlepice.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 100%
    );
    z-index: 2;
    pointer-events: none;
} */

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-text {
    /* background: rgba(0, 0, 0, 0.5); */
    border-radius: 20px;
    padding: 30px;
    margin: 40px;
    color: #FFDF70;
    max-width: 500px;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Comfortaa', sans-serif !important;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #FFDF70;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-image {
    display: none; /* скрываем фото */
}

.people-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    top: 1px; /* ← Микро-коррекция против полоски */
    filter: drop-shadow(0 0 2px rgba(0, 116, 125, 0.3));
}

/* Адаптивность */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: auto;
        background-size: contain;   /* вместо cover — вписываем по ширине */
        background-repeat: no-repeat;
        background-position: center;
        aspect-ratio: 16 / 9;       /* сохраняем пропорции, подбери под свою картинку */
    }
    .hero-text {
        padding: 20px;
        margin: 20px;
        max-width: 90%;
    }
    .hero-text h1 {
        font-size: 1.5rem;
    }
    .hero-text p {
        font-size: 0.9rem;
    }
}