@media screen and (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 54px 0 42px;
    }

    .hero::before {
        inset: 14px;
        border-radius: 30px;
    }

    .hero__grid,
    .section-heading,
    .story-card,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero__content,
    .section-heading,
    .story-card__content,
    .contact-card,
    .feature-card {
        min-width: 0;
    }

    .hero__content {
        width: 100%;
        max-width: calc(100vw - 32px);
    }

    .hero__media {
        min-height: 560px;
        order: -1;
    }

    .hero__image--main {
        right: 0;
        width: 82%;
        height: 455px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .story-card__image img {
        min-height: 420px;
    }
}

@media screen and (max-width: 768px) {
    .container-modern {
        width: calc(100% - 32px);
        max-width: 540px;
    }

    .hero {
        padding: 34px 0 28px;
    }

    .hero::before {
        display: none;
    }

    .hero__logo {
        width: min(245px, 78vw);
        margin-bottom: 24px;
    }

    h1 {
        max-width: min(100%, 340px);
        font-size: 1.34rem;
        line-height: 1.1;
        letter-spacing: -0.015em;
    }

    h2 {
        font-size: 2.35rem;
    }

    .hero__lead {
        max-width: min(100%, 340px);
        font-size: 0.95rem;
        line-height: 1.68;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
        min-height: 54px;
    }

    .hero__media {
        min-height: 430px;
        overflow: hidden;
    }

    .hero__image {
        border-width: 7px;
    }

    .hero__image--main {
        top: 42px;
        right: 10px;
        width: 82%;
        height: 340px;
        border-radius: 44% 44% 24px 24px;
    }

    .hero__image--small {
        width: 150px;
        height: 150px;
    }

    .hero__image--bottom {
        right: 22px;
        bottom: 4px;
    }

    .content-section,
    .story-section,
    .contact-section {
        padding: 26px 0;
    }

    .section-heading {
        gap: 12px;
        margin-bottom: 22px;
    }

    .feature-card {
        min-height: auto;
        padding: 30px;
        border-radius: 26px;
    }

    .story-card {
        padding: 12px;
        border-radius: 30px;
    }

    .story-card__image img {
        min-height: 300px;
        border-radius: 22px;
    }

    .story-card__content {
        padding: 22px 12px 14px;
    }

    .contact-card {
        padding: 30px;
        border-radius: 26px;
    }
}

@media screen and (max-width: 420px) {
    h1 {
        font-size: 1.22rem;
        line-height: 1.12;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero__media {
        min-height: 382px;
    }

    .hero__image--main {
        height: 300px;
    }

    .hero__image--small {
        width: 118px;
        height: 118px;
    }

    .feature-card,
    .contact-card {
        padding: 24px;
    }

    .contact-section {
        padding-bottom: 6px;
    }
}
