@media (max-width: 1399px) {
    .container {
        max-width: 1180px !important;
    }

    .home-banner__title {
        font-size: 46px;
    }

    .home-banner__watermark {
        font-size: 90px;
    }
}

@media (max-width: 1199px) {
    .container {
        max-width: 980px !important;
    }

    .header-nav {
        gap: 18px;
    }

    .header-nav a {
        font-size: 14px;
    }

    .header-brand__tagline {
        max-width: 140px;
        font-size: 10px;
    }

    .home-banner__hero {
        min-height: 0;
        padding: 40px 0 48px;
    }

    .home-banner__title {
        font-size: 40px;
    }

    .home-banner__form-wrap {
        max-width: 360px;
    }

    .banner-form__title {
        font-size: 15px;
    }

    .home-banner__watermark {
        font-size: 72px;
    }

    .index-3__title {
        font-size: 36px;
    }
}

@media (max-width: 991px) {
    .header-main__inner {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-brand__tagline {
        display: none;
    }

    .header-toggle {
        display: flex;
        order: 2;
    }

    .header-actions {
        order: 3;
        margin-left: 0;
    }

    .header-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: 1200;
        background: rgba(4, 20, 28, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .header-nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.nav-open .site-header {
        z-index: 1202;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 82vw);
        height: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        padding: 118px 18px 28px;
        margin: 0;
        background: #062f36;
        z-index: 1201;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
    }

    .header-nav.is-open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .header-nav a {
        padding: 13px 14px;
        border-radius: 10px;
        color: #fff;
        font-size: 15px;
    }

    .header-nav a:hover,
    .header-nav a.is-active {
        background: rgba(253, 190, 0, 0.18);
        color: var(--isp-yellow);
    }

    html.nav-open,
    body.nav-open {
        overflow: hidden;
    }

    .home-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .home-banner__content {
        max-width: none;
        text-align: center;
    }

    .home-banner__text {
        margin-left: auto;
        margin-right: auto;
    }

    .home-banner__actions {
        justify-content: center;
    }

    .home-banner__form-wrap {
        max-width: 400px;
        margin: 0 auto;
    }

    .service-banner__row {
        flex-direction: column;
        gap: 32px;
    }

    .service-banner__content,
    .service-banner__media {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .service-banner__media {
        justify-content: center;
    }

    .service-banner__media img {
        max-width: 400px;
    }

    .service-banner__title {
        font-size: 40px;
    }

    .index-3-service {
        padding: 56px 0 64px;
    }

    .index-3-service__title {
        font-size: 36px;
    }

    .index-4-service {
        padding: 56px 0 64px;
    }

    .index-4-service__title {
        font-size: 36px;
    }

    .index-5-service {
        padding: 56px 0 64px;
    }

    .index-5-service__row {
        flex-direction: column;
        gap: 36px;
    }

    .index-5-service__content,
    .index-5-service__cards {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .index-5-service__title-main {
        font-size: 36px;
    }

    .home-banner__watermark {
        font-size: 56px;
        left: 50%;
        transform: translateX(-50%);
    }

    .get-started-modal__content {
        flex-direction: column;
    }

    .get-started-modal__aside {
        max-width: none;
        flex: none;
    }

    .site-footer {
        padding: 48px 0 18px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 36px;
        text-align: center;
    }

    .site-footer__col--contact .site-footer__heading,
    .site-footer__col--merchants {
        text-align: center;
    }

    .site-footer__contact {
        display: inline-block;
        text-align: left;
    }

    .site-footer__pay {
        justify-content: center;
        margin: 0 auto;
    }

    .site-footer__bar {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
        text-align: center;
    }

    .site-footer__bar-start {
        flex-direction: column;
        justify-content: center;
    }

    .site-footer__legal {
        text-align: center;
    }

    .thankyou-hero__body {
        min-height: 520px;
        padding: 48px 0 56px;
    }

    .thankyou-card {
        padding: 40px 28px 36px;
    }

    .thankyou-card__title {
        font-size: 36px;
    }

    .index-3 {
        padding: 56px 0 64px;
    }

    .index-3__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .index-3__content {
        flex: none;
        text-align: center;
    }

    .index-3__title {
        font-size: 32px;
    }

    .index-3__actions {
        justify-content: center;
    }

    .index-3__tags {
        align-items: center;
    }

    .index-3__tags-row {
        justify-content: center;
    }

    .index-3__tags-row:nth-child(even) {
        padding-right: 0;
    }

    .index-4 {
        padding: 56px 0 64px;
    }

    .index-4__title {
        font-size: 32px;
    }

    .index-5 {
        padding: 56px 0 64px;
    }

    .index-5__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .index-5__content {
        max-width: none;
        text-align: center;
    }

    .index-5__title {
        font-size: 32px;
    }

    .index-5__actions {
        justify-content: center;
    }

    .index-6 {
        padding: 56px 0 64px;
    }

    .index-6__title {
        font-size: 32px;
    }

    .index-6__sliders {
        padding-left: 12px;
        padding-right: 12px;
        gap: 12px;
    }

    .index-7 {
        padding: 56px 0 64px;
    }

    .index-7__title {
        font-size: 32px;
        margin-bottom: 36px;
    }

    .index-7__steps {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 28px;
        column-gap: 0;
    }

    .index-7__step {
        flex: 0 0 42%;
    }

    .index-7__arrow {
        display: none;
    }

    .index-8 {
        padding: 56px 0;
    }

    .index-8__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
    }

    .index-8__content {
        max-width: none;
        text-align: center;
    }

    .index-8__title {
        font-size: 32px;
    }

    .index-8__actions {
        justify-content: center;
    }

    .index-8__form-card {
        max-width: none;
    }

    .index-9 {
        padding: 56px 0 64px;
    }

    .index-9__title {
        font-size: 32px;
    }

    .index-9__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 575px) {
    .index-2 {
        padding: 18px 0;
    }

    .index-2__logo {
        min-height: 56px;
        padding: 8px 12px;
    }

    .index-2__logo img {
        max-width: 110px;
        height: 28px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-logo img {
        width: 132px;
    }

    .header-cta {
        min-height: 38px;
        padding: 0 14px;
        font-size: 12px;
    }

    .home-banner__hero {
        padding: 32px 0 40px;
        background-position: center right;
    }

    .home-banner__title {
        font-size: 32px;
    }

    .home-banner__text {
        font-size: 14px;
    }

    .banner-chat-btn,
    .banner-expert-btn {
        min-height: 44px;
        padding: 0 16px;
        font-size: 13px;
    }

    .home-banner__form-wrap {
        max-width: 360px;
    }

    .service-banner__hero {
        padding: 40px 0 48px;
    }

    .service-banner__title {
        font-size: 32px;
    }

    .service-banner__text {
        font-size: 14px;
    }

    .service-banner__media img {
        max-width: 300px;
    }

    .index-3-service__title {
        font-size: 28px;
    }

    .index-3-service__text {
        font-size: 14px;
    }

    .index-3-service__card {
        min-height: 0;
        padding: 28px 24px 32px;
        border-radius: 24px;
    }

    .index-3-service__num {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .index-3-service__card-title {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .index-3-service__card-text {
        font-size: 14px;
        line-height: 1.5;
    }

    .index-4-service__title {
        font-size: 28px;
    }

    .index-4-service__text {
        font-size: 14px;
    }

    .index-5-service__title-top {
        font-size: 18px;
    }

    .index-5-service__title-main {
        font-size: 28px;
    }

    .index-5-service__card {
        align-items: flex-start;
        gap: 20px;
        min-height: 0;
        padding: 28px 24px;
        border-radius: 18px;
    }

    .index-5-service__num {
        flex: 0 0 72px;
        max-width: none;
        font-size: 64px;
    }

    /* Mobile: flow layout so textarea + button never overflow the card */
    .banner-form {
        background: #fff;
        border-radius: 28px;
        padding: 0 0 22px;
        overflow: visible;
    }

    .banner-form__bg {
        display: none;
    }

    .banner-form__body {
        position: relative;
        inset: auto;
        padding: 28px 22px 0;
    }

    .banner-form__title {
        margin: 0 0 8px;
        font-size: 15px;
    }

    .banner-form__title strong {
        font-size: 17px;
    }

    .banner-form__subtitle {
        margin: 0 auto 14px;
        max-width: 260px;
        font-size: 12px;
    }

    .banner-form__field {
        margin-bottom: 12px;
    }

    .banner-form__field input {
        height: 42px;
        font-size: 13px;
    }

    .banner-form__field--message {
        flex: none;
        display: block;
        margin-bottom: 18px;
    }

    .banner-form__field textarea {
        height: 96px;
        flex: none;
        font-size: 13px;
        border-radius: 16px;
    }

    .banner-form__submit {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        display: block;
        width: 72%;
        max-width: 240px;
        height: 46px;
        margin: 0 auto;
        padding: 0 12px;
        font-size: 12px;
        background-color: #111;
        background-image: url(/assets/images/form-btn-bg.webp);
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .get-started-modal__main,
    .get-started-modal__aside {
        padding: 24px 18px;
    }

    .index-3__title {
        font-size: 26px;
    }

    .index-3__btn {
        min-height: 44px;
        padding: 0 16px;
        font-size: 13px;
    }

    .index-3__tag {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .index-4__title {
        font-size: 26px;
    }

    .index-4__text {
        font-size: 14px;
    }

    .index-4__play {
        width: 52px;
        height: 52px;
        font-size: 16px;
    }

    .index-5__title {
        font-size: 26px;
    }

    .index-5__text {
        font-size: 14px;
    }

    .index-6__title {
        font-size: 26px;
    }

    .index-6__text {
        font-size: 14px;
    }

    .index-6__sliders {
        padding-left: 10px;
        padding-right: 10px;
        gap: 10px;
    }

    .index-6__card {
        border-radius: 14px;
    }

    .index-7__title {
        font-size: 26px;
        margin-bottom: 28px;
    }

    .index-7__step {
        flex: 0 0 100%;
    }

    .index-7__icon {
        width: 100px;
        height: 100px;
    }

    .index-7__step-title {
        font-size: 15px;
    }

    .index-8__title {
        font-size: 26px;
    }

    .index-8__subtitle {
        font-size: 17px;
    }

    .index-8__text,
    .index-8__form-text {
        font-size: 14px;
    }

    .index-8__form-card {
        padding: 24px 18px;
    }

    .index-8__form-top {
        grid-template-columns: 1fr;
    }

    .index-8__message textarea {
        min-height: 110px;
    }

    .index-8__submit {
        width: 100%;
    }

    .index-9__title {
        font-size: 26px;
    }

    .index-9__text {
        font-size: 14px;
    }

    .index-9__question {
        font-size: 14px;
        min-height: 52px;
    }

    .thankyou-hero__body {
        min-height: 0;
        padding: 40px 0 48px;
    }

    .thankyou-card {
        padding: 36px 22px 32px;
        border-radius: 18px;
    }

    .thankyou-card__icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
        margin-bottom: 16px;
    }

    .thankyou-card__title {
        font-size: 32px;
    }

    .thankyou-card__message {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .thankyou-card__btn {
        width: 100%;
        min-height: 46px;
    }
}
