.head-solutions-section {
    padding: 8px 0 0;
}

.head-content {
    align-items: flex-start;
}

@media (min-width: 1201px) {
    .head-content {
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 36px;
    }

    .head-text {
        flex: 1 1 56%;
        max-width: 56%;
        margin-left: 0;
        padding-left: clamp(16px, 2.2vw, 36px);
    }

    .head-image {
        flex: 1 1 44%;
        max-width: 44%;
        margin: 0;
        text-align: right;
    }
}

.head-solutions-wrap {
    width: 100%;
    margin: 20px auto 0;
}

.head-solution-copy {
    min-width: 0;
    text-align: left;
    padding-top: 12px;
}

.head-solution-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 700;
    line-height: 1.24;
    color: var(--main-color);
}

.head-solution-copy h2 br {
    display: none;
}

.head-solution-copy p {
    margin: 0;
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--color-text);
}

.head-solution-copy .sec1-items {
    margin-top: 20px;
    max-width: none;
    gap: 18px;
}

.head-solution-copy .sec1-item {
    gap: 12px;
}

.head-solution-copy .sec1-img {
    width: 54px;
    height: 54px;
    padding: 13px;
}

.head-solution-copy .sec1-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.head-solution-copy .sec1-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .head-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .head-text {
        max-width: 100%;
        margin-left: 0;
    }

    .head-image {
        max-width: 680px;
        margin: 0 auto 18px;
        text-align: center;
    }

    .head-image img {
        margin: 0 auto;
    }

    .head-solution-copy .sec1-items {
        margin: 20px auto 0;
        max-width: 680px;
    }
}

@media (max-width: 1320px) {
    .head-solution-copy { text-align: center; padding-top: 0; }
}

/* Мобильная шапка: подпись «Автоматизация бизнеса» рядом с логотипом вместо надзаголовка в первом экране,
   кнопка меню выровнена по надписи A1Y (она в нижней части логотипа, ниже центра шапки) */
.header-tagline {
    display: none;
}

@media (max-width: 992px) {
    .header-tagline {
        display: block;
        margin-top: 14px;
        padding-left: 10px;
        border-left: 1px solid #B9CDE3;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1.3;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--review-blue);
    }

    .hero--animated .eyebrow {
        display: none;
    }

    .burger-menu {
        top: 8px;
    }
}

/* Мобильный первый экран: больше воздуха между заголовком, головоломкой, кнопкой и текстом.
   .hero.hero--animated — чтобы перебить те же правила в hero-motion.css, который подключён позже */
@media (max-width: 992px) {
    .hero.hero--animated #hero-title {
        line-height: 1.18;
    }

    .hero.hero--animated .head-image {
        margin: 28px auto 6px;
    }

    .hero.hero--animated .puzzle-heading {
        margin-bottom: 14px;
    }

    .hero.hero--animated .puzzle-caption {
        margin-top: 6px;
    }

    .hero.hero--animated #hero-cta {
        margin-top: 22px;
    }

    .hero.hero--animated #hero-subtitle {
        margin: 32px 0 22px;
        line-height: 1.6;
    }

    .hero.hero--animated .hero-proof {
        gap: 16px;
    }

    /* Выглядит как ссылка: цвет ссылки, подчёркивание и стрелка вниз */
    .hero.hero--animated .hero-case-link {
        align-self: center;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-align: center;
        color: var(--review-blue);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
    }

    .hero.hero--animated .hero-case-link::after {
        content: "↓";
        font-size: 16px;
        text-decoration: none;
    }
}

@media (max-width: 992px) and (prefers-reduced-motion: no-preference) {
    .hero.hero--animated .hero-case-link::after {
        animation: hero-case-arrow 1.4s ease-in-out infinite;
    }
}

@keyframes hero-case-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
