/* баннер главной — макет «Поощряй обучение» */

.home-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 12px 24px;
    align-items: center;
    padding: 40px 36px 28px 44px;
    border-radius: 24px;
    background: #fff3e9;
    border: 1px solid rgba(255, 170, 120, 0.22);
    overflow: visible;
    margin: 0 0 28px;
}

.home-banner__text {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}

.home-banner__eyebrow {
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ff6b00;
}

.home-banner__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #1a1a1a;
}

.home-banner__desc {
    margin: 14px 0 0;
    max-width: 40ch;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #6b7280;
}

.home-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.home-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.home-banner__btn--primary {
    background: #ff6b00;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(255, 107, 0, 0.28);
}

.home-banner__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 107, 0, 0.34);
    text-decoration: none !important;
}

.home-banner__btn--ghost {
    background: #fff;
    color: #374151 !important;
    border: 1.5px solid #e5e7eb;
}

.home-banner__btn--ghost:hover {
    background: #fffaf7;
    border-color: #ffc9a0;
    color: #ff6b00 !important;
}

.home-banner__btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-banner__art {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: end center;
    min-height: 320px;
    align-self: stretch;
    pointer-events: none;
    overflow: visible;
}

.home-banner__cat {
    width: min(145%, 580px);
    max-width: none;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 16px 28px rgba(120, 60, 20, 0.14));
    transform-origin: center bottom;
    animation: cat-bob 4.6s ease-in-out infinite;
}

/* ряд заголовка работ + кнопка теста */
.works-gallery__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 18px;
}

.works-gallery__top .works-gallery__head {
    margin: 0;
    flex: 1 1 240px;
}

.works-test-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px 14px 14px;
    border-radius: 18px;
    background: #fff7f0;
    border: 1px solid rgba(255, 140, 60, 0.2);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
    flex: 0 1 340px;
    max-width: 100%;
    box-shadow: 0 4px 14px rgba(255, 140, 60, 0.06);
}

.works-test-card:hover {
    transform: translateY(-1px);
    background: #ffefe3;
    box-shadow: 0 10px 24px rgba(255, 120, 40, 0.12);
    text-decoration: none !important;
}

.works-test-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #ff6b00;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.12);
}

.works-test-card__icon svg {
    width: 22px;
    height: 22px;
}

.works-test-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.works-test-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #171717;
    line-height: 1.2;
}

.works-test-card__sub {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #8a8f9a;
    line-height: 1.3;
}

.works-test-card__arrow {
    width: 18px;
    height: 18px;
    color: #ff6b00;
    flex-shrink: 0;
    margin-left: 4px;
}

@media (max-width: 900px) {
    .home-banner {
        grid-template-columns: 1fr;
        padding: 28px 22px 8px;
        text-align: left;
        overflow: hidden;
    }

    .home-banner__art {
        order: -1;
        min-height: 220px;
    }

    .home-banner__cat {
        width: min(100%, 360px);
        animation: cat-bob-m 4.6s ease-in-out infinite;
    }

    .works-gallery__top {
        flex-direction: column;
        align-items: stretch;
    }

    .works-test-card {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .home-banner {
        padding: 22px 16px 4px;
        border-radius: 22px;
    }

    .home-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-banner__btn {
        justify-content: center;
    }
}

/* старый плавающий котик-туториал больше не показываем */
#tutorialIcon {
    display: none !important;
}

.works-gallery__intro {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 16px;
}

@keyframes cat-bob {
    0%, 100% { transform: translate(10px, 36px) scale(1.22); }
    50% { transform: translate(10px, 18px) scale(1.22); }
}

@keyframes cat-bob-m {
    0%, 100% { transform: translateY(14px) scale(1.06); }
    50% { transform: translateY(4px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner__cat {
        animation: none;
        transform: translate(10px, 36px) scale(1.22);
    }
}
