/* --- Главный экран (Hero Section) --- */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at 100% 0%, rgba(168, 132, 20, 0.05) 0%, var(--color-bg-alt) 50%);
    overflow: hidden;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero__content {
    flex: 1;
    max-width: 800px;
    text-align: left;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(168, 132, 20, 0.1);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 54px;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
        text-wrap: balance;
        word-break: break-word;
    }
}

.hero__title--no-balance {
    text-wrap: initial;
}

.hero__title-company {
    display: block;
    margin-bottom: 10px;
}

.hero__title-desc {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .hero__title-desc {
        font-size: 24px;
    }
}

.hero__subtitle {
    font-size: 22px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    text-wrap: balance;
}

@media (max-width: 768px) {
    .hero__subtitle {
        font-size: 18px;
    }
}

.hero__actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .hero__actions {
        justify-content: center;
    }
}

.hero__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(168,132,20,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.hero__image {
    max-width: 100%;
    height: auto;
    position: relative;
    filter: drop-shadow(0 20px 30px rgba(168, 132, 20, 0.2));
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1.1); }
    50% { transform: translateY(-15px) scale(1.12); }
    100% { transform: translateY(0px) scale(1.1); }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__image {
        animation: none;
    }
}

@media (max-width: 992px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }
    .hero__content {
        max-width: 100%;
        padding: 0 10px;
    }
    .hero__image-wrapper {
        justify-content: center;
        margin-top: 30px;
    }
}

/* --- Чем мы занимаемся? (Features) --- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    background: var(--color-bg-light);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
}

a.feature-card {
    text-decoration: none;
    color: inherit;
}

.feature-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 0;
}

.feature-card__text {
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Наши услуги --- */
.services__list {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Как мы работаем (Steps) --- */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
}

.step-card__img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.step-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.step-card:hover .step-card__img {
    transform: scale(1.05);
}

.step-card__title {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

/* --- Клиенты (Brands) --- */
.brands__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.brand-item {
    display: block;
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-item img {
    max-height: 175px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Наши преимущества --- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.advantage-card {
    background: var(--color-bg-light);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 0;
}

.advantage-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.advantage-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.advantage-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

/* --- Блок заявки (CTA) --- */
.cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: var(--color-bg-light);
    text-align: center;
    border-radius: 8px;
    padding: 50px 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(168, 132, 20, 0.2);
}

.cta-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
}

.cta__title {
    color: var(--color-bg-light);
    margin-bottom: 25px;
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contacts__form {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form__row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Контакты и Карта --- */
.contacts__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 380px;
    background: var(--color-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contacts__info-card {
    background: var(--color-bg-light);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts__info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contacts__item:hover {
    background-color: var(--color-bg-alt);
    transform: translateX(5px);
}

.contacts__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(168, 132, 20, 0.1), rgba(168, 132, 20, 0.2));
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacts__item:hover .contacts__icon {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(168, 132, 20, 0.2);
}

.contacts__icon-img {
    width: 24px;
    height: 24px;
}

.contacts__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contacts__info-label {
    color: var(--color-text-muted);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.contacts__info-value {
    color: var(--color-text-dark);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.contacts__phone-link {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts__email-link {
    font-size: 18px;
    color: var(--color-text-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

@media (max-width: 992px) {
    .contacts__grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 300px;
        order: 2;
    }

    .cta__title {
        font-size: 1.6rem;
    }
}