/* Hero entrance animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Hero Section === */
.hero-section {
    background-color: #fff;
    padding-top: 48px;
}

.hero-content {
    max-width: 700px;
    position: relative;
}

.hero-gears {
    position: absolute;
    right: -390px;
    top: 20px;
    width: 340px;
    height: auto;
    opacity: 0.08;
    pointer-events: none;
}

.hero-title {
    font-size: 53px;
    line-height: 1.15;
    color: #000;
    margin-bottom: 28px;
    margin-top: -8px;
    animation: fadeInUp 0.7s ease both;
}

.hero-content .btn-navy {
    animation: fadeInUp 0.7s ease 0.2s both;
}

/* Shared highlight mark (hero + about) */
.hero-title mark,
.about-title mark {
    background: linear-gradient(
        to top,
        var(--bs-secondary-bg) 95%,
        transparent 95%
    );
    padding: 0 8px;
    color: inherit;
}

/* === Hero Categories === */
.hero-categories {
    gap: 27px;
    padding-top: 88px;
    padding-bottom: 0;
}

.hero-cat-card {
    flex: 1;
    height: 290px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-cat-card--blue {
    background-color: var(--bs-primary);
}

.hero-cat-card--photo {
    background-size: cover;
    background-position: center;
}

.hero-cat-card--overlay {
    filter: grayscale(1) brightness(1.15) contrast(1.1);
}

.hero-cat-card--overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(91, 91, 147, 0.45);
    z-index: 1;
}

.hero-cat-card--overlay > * {
    position: relative;
    z-index: 2;
}

.hero-cat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

.hero-cat-name {
    font-family: 'Fira Sans', sans-serif;
    font-size: 27px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    width: 100%;
    margin: 0;
}

/* === О компании === */
.about-section {
    padding: 85px 0 50px;
}

.about-row {
    display: flex;
}

.about-left {
    flex: 0 0 57%;
    padding-right: 0;
}

.about-title {
    font-size: 52px;
    line-height: 1.2;
    letter-spacing: -0.4px;
    color: #000;
    margin-bottom: 32px;
}

.about-divider {
    width: 1px;
    background-color: var(--bs-border-color);
    margin: 0 37px 0 15px;
    flex-shrink: 0;
}

.about-right {
    flex: 1;
    padding-top: 8px;
}

.about-right-body {
    padding-left: 97px;
}

.about-right p {
    font-size: 16px;
    color: var(--bs-secondary-color);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-categories {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-cat-card {
        flex: 0 0 calc(50% - 8px);
        height: 220px;
    }

    .hero-cat-name {
        font-size: 20px;
    }

    .hero-cat-icon {
        width: 120px;
        height: 120px;
    }

    .about-row {
        flex-direction: column;
    }

    .about-left {
        flex: none;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .about-title {
        font-size: 30px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 16px;
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .btn-navy,
    .btn-light-navy {
        min-width: auto;
        width: 100%;
        padding: 14px 24px;
    }

    .hero-categories {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 32px;
    }

    .hero-cat-card {
        flex: 0 0 calc(50% - 6px);
        height: 160px;
    }

    .hero-cat-name {
        font-size: 16px;
    }

    .hero-cat-icon {
        width: 70px;
        height: 70px;
    }

    .hero-cat-card {
        padding: 16px 20px;
    }

    .about-section {
        padding: 24px 0 0;
    }
}
