/* =====================================================
   ОЭК — Стили Hero-секции с видео
   ===================================================== */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 860px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Видео-фон */
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Многослойный оверлей */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.35) 0%,
            rgba(1, 30, 45, 0.55) 60%,
            rgba(1, 20, 30, 0.80) 100%
        );
}

/* Тонкая линия фирменного цвета снизу */
.hero__accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 3;
}

/* Контент поверх видео */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 860px;
    animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 18px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.3s both;
}

.hero__title {
    font-size: clamp(28px, 5vw, 54px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.5s both;
}

.hero__title span {
    color: var(--color-accent);
}

.hero__desc {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.7s both;
}

/* Кнопки в hero */
.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 0.9s both;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}
.hero__btn:active { transform: translateY(1px); }

.hero__btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.hero__btn--primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 6px 20px rgba(239,82,7,0.4);
    color: #fff;
}

.hero__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.45);
}
.hero__btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.75);
    color: #fff;
}

/* Индикатор скролла */
.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: heroFadeIn 0.8s ease 1.2s both;
    cursor: pointer;
}
.hero__scroll-text {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.hero__scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.35);
    border-bottom: 2px solid rgba(255,255,255,0.35);
    transform: rotate(45deg);
    animation: scrollBounce 1.5s ease infinite;
    margin-top: -6px;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50%       { transform: rotate(45deg) translateY(5px); }
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: var(--color-white);
    padding: 0;
    position: relative;
    z-index: 2;
}

.stats-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 36px 28px;
    border-right: 1px solid #e8edf3;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}
.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.stat-item:hover::after { transform: scaleX(1); }
.stat-item:hover { background: #f7fafe; }
.stat-item:last-child { border-right: none; }

.stat-item__value {
    font-size: 44px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.stat-item__value span {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-accent);
    margin-left: 3px;
}
.stat-item__label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.stat-item__desc {
    font-size: 13px;
    color: var(--color-text-mid);
    margin-top: 6px;
    line-height: 1.45;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--color-bg);
    padding: 72px 0;
    border-top: 1px solid #eaecf0;
}
.about-section__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.about-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.35;
    margin-bottom: 16px;
}
.about-section__text {
    font-size: 15px;
    color: var(--color-text-mid);
    line-height: 1.75;
    margin-bottom: 14px;
}
.about-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 8px;
    transition: gap 0.2s;
}
.about-section__link::after {
    content: '→';
    transition: transform 0.2s;
}
.about-section__link:hover { gap: 10px; }

/* Дополнительные блоки справа */
.about-section__cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-card {
    background: var(--color-white);
    border: 1px solid #e4e9f0;
    border-left: 4px solid var(--color-primary);
    border-radius: 2px;
    padding: 20px 22px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}
.about-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(1,105,141,0.10);
    color: var(--color-primary);
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.about-card:hover .about-card__icon { background: rgba(1,105,141,0.18); transform: scale(1.08); }
.about-card__icon--accent {
    background: rgba(239,82,7,0.10);
    color: var(--color-accent);
}
.about-card:hover .about-card__icon--accent { background: rgba(239,82,7,0.18); }
.about-card__icon--dark {
    background: rgba(26,26,26,0.07);
    color: var(--color-text-dark);
}
.about-card:hover .about-card__icon--dark { background: rgba(26,26,26,0.13); }

.about-card__text {
    font-size: 13px;
    color: var(--color-text-mid);
    line-height: 1.55;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .stats-section__inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) { border-bottom: 1px solid #e8edf3; }
    .about-section__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
    .stats-section__inner { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 24px 16px; }
    .stat-item__value { font-size: 30px; }
    .hero__title { font-size: 26px; }
    .hero__desc { font-size: 14px; }
}
@media (max-width: 400px) {
    .stats-section__inner { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid #e8edf3; }
}
