/* Header + banner responsive */

@media (max-width: 1299.98px) {
    .site-nav__item,
    .site-nav > a {
        margin: 0 6px;
    }

    .site-nav__link,
    .site-nav a.site-nav__link,
    .site-nav > a {
        font-size: 12px;
    }

    .site-header__cta {
        padding: 10px 12px;
        font-size: 11px;
    }

    .site-header__logo {
        width: 90px;
    }

    .home-banner__title {
        font-size: clamp(2.2rem, 5vw, 48px);
    }
}

@media (max-width: 991.98px) {
    .site-header {
        padding: 10px 0;
    }

    .site-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header__toggle {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .site-header__logo {
        order: 1;
        width: 84px;
    }

    .site-header__right {
        display: flex;
        position: fixed;
        inset: 0 0 0 auto;
        width: min(100%, 360px);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1.25rem;
        padding: 5.5rem 1.25rem 1.5rem;
        background: #100e12;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 110;
    }

    .site-header__right.is-open {
        transform: translateX(0);
    }

    .site-nav {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        grid-column: auto;
        justify-self: stretch;
    }

    .site-nav__item,
    .site-nav > a {
        margin: 0;
    }

    .site-nav__link,
    .site-nav a.site-nav__link,
    .site-nav > a,
    .site-nav__toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0.25rem;
        font-size: 1rem;
        line-height: 1.4;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav__dropdown {
        position: static;
        left: auto;
        min-width: 0;
        margin: 0 0 0.4rem;
        padding: 0.25rem 0;
        background: transparent;
        border: 0;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .site-nav__item--dropdown.is-open .site-nav__dropdown {
        display: block;
    }

    .site-nav__item--dropdown.is-open .site-nav__toggle i {
        transform: rotate(180deg);
    }

    .site-nav__dropdown a {
        color: rgba(255, 255, 255, 0.78);
        padding: 0.6rem 0.35rem 0.6rem 1rem;
        border-left: 2px solid rgba(255, 255, 255, 0.12);
        font-size: 0.95rem;
    }

    .site-nav__dropdown a:hover,
    .site-nav__dropdown a.is-active {
        color: #ffffff;
        background: transparent;
        border-left-color: var(--rr-red);
        padding-left: 1.15rem;
    }

    .site-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-top: auto;
        grid-column: auto;
        justify-self: stretch;
    }

    .site-header__cta {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1rem;
        font-size: 0.78rem;
    }

    .home-banner {
        min-height: 650px;
        padding: 130px 0 40px;
    }

    .home-banner__btn {
        min-width: 0;
        width: min(100%, 280px);
        font-size: 16px;
        padding: 16px 22px;
    }

    .home-banner__tagline {
        font-size: 16px;
        margin-bottom: 0;
    }

    .home-brands {
        padding: 22px 0;
    }

    .home-brands__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-brands__heading {
        text-align: center;
    }

    .home-brands__track {
        padding-left: 0;
        border-left: 0;
        border-top: 2px solid #d9d9d9;
        padding-top: 16px;
    }

    .home-brands__brand {
        min-height: 56px;
        padding: 8px 14px;
    }

    .home-brands__brand img {
        height: 32px;
        max-width: 100px;
    }
}

@media (max-width: 575.98px) {
    .home-banner {
        min-height: 580px;
        padding: 110px 0 32px;
    }

    .home-banner__title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .home-banner__actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .home-banner__btn {
        width: 100%;
        max-width: 320px;
    }

    .home-banner__tagline {
        font-size: 15px;
        padding: 0 8px;
        margin-bottom: 0;
    }

    .home-brands__brand img {
        height: 26px;
        max-width: 90px;
    }
}

@media (max-width: 991.98px) {
    .times-square__eyebrow {
        font-size: 22px;
    }

    .times-square__title {
        font-size: 30px;
    }

    .times-square__text {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .times-square__slider .swiper-slide {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    .times-square {
        padding: 40px 0;
    }

    .times-square__eyebrow {
        font-size: 16px;
    }

    .times-square__title {
        font-size: 24px;
    }

    .times-square__text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .times-square__slider .swiper-slide {
        height: 420px;
    }
}

@media (max-width: 991.98px) {
    .home-about__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-about__card,
    .home-about__card--featured {
        min-height: 360px;
    }

    .home-about__title {
        font-size: 28px;
    }

    .home-about__subtitle {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .home-about {
        padding: 30px 0 40px;
    }

    .home-about__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-about__card,
    .home-about__card--featured {
        min-height: 0;
        padding: 28px 22px;
    }

    .home-about__card--featured {
        padding-bottom: 140px;
        background-size: 75% auto;
    }

    .home-about__title {
        font-size: 26px;
    }

    .home-about__subtitle {
        font-size: 17px;
    }

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

@media (max-width: 1199.98px) {
    .home-cta__touch-row {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .home-cta__touch-title {
        text-align: center;
        white-space: normal;
    }

    .home-cta__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta__submit {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .home-cta__top {
        padding: 50px 1rem 36px;
    }

    .home-cta__title {
        font-size: 28px;
    }

    .home-cta__btn {
        width: min(100%, 280px);
    }

    .home-cta__touch {
        padding: 24px 20px;
    }

    .home-cta__touch-title {
        font-size: 26px;
    }

    .home-cta__form {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    .story-perfect {
        padding: 40px 0;
    }

    .story-perfect__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .story-perfect__media {
        max-width: 520px;
        margin: 0 auto;
        aspect-ratio: 4 / 3;
    }

    .story-perfect__badge {
        font-size: 22px;
        padding: 10px 14px;
    }

    .story-perfect__title {
        font-size: 20px;
    }
}

@media (max-width: 575.98px) {
    .story-perfect__actions {
        flex-direction: column;
    }

    .story-perfect__btn {
        width: 100%;
    }

    .story-perfect__badge {
        font-size: 18px;
    }
}

@media (max-width: 1199.98px) {
    .pub-workflow__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .edit-process__heading {
        font-size: clamp(28px, 3.4vw, 40px);
    }

    .edit-process__top {
        gap: 28px;
    }

    .edit-process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .portfolio-gallery__grid {
        gap: 18px;
    }

    .portfolio-gallery__item {
        flex: 0 1 220px;
        max-width: 240px;
    }
}

@media (max-width: 991.98px) {
    .pub-workflow {
        padding: 50px 0 60px;
    }

    .pub-workflow__heading {
        margin-bottom: 30px;
    }

    .pub-workflow__step {
        font-size: 20px;
        padding: 9px 18px;
    }

    .pub-workflow__title {
        font-size: 20px;
    }

    .edit-process {
        padding: 60px 0 70px;
    }

    .edit-process__top {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 36px;
    }
}

@media (max-width: 575.98px) {
    .pub-workflow__grid {
        grid-template-columns: 1fr;
    }

    .pub-workflow__card {
        padding: 24px 18px 26px;
    }

    .edit-process__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .edit-process__item {
        padding: 24px 20px 22px;
    }

    .edit-process__cta {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .home-portfolio {
        padding: 50px 0 90px;
    }

    .home-portfolio__swiper .swiper-slide {
        width: 170px;
    }

    .home-portfolio__swiper .swiper-slide img {
        width: 170px;
        height: 246px;
    }

    .home-portfolio__nav--prev {
        left: 8px;
    }

    .home-portfolio__nav--next {
        right: 8px;
    }
}

@media (max-width: 575.98px) {
    .home-portfolio__title {
        font-size: 26px;
    }

    .home-portfolio__nav {
        width: 44px;
        height: 44px;
    }

    .home-portfolio__swiper .swiper-slide {
        width: 150px;
    }

    .home-portfolio__swiper .swiper-slide img {
        width: 150px;
        height: 218px;
        border-radius: 12px;
    }
}

@media (max-width: 991.98px) {
    .book-fair {
        padding: 50px 0 60px;
    }

    .book-fair__text {
        margin-bottom: 22px;
    }

    .book-fair__media {
        margin-bottom: 22px;
    }
}

@media (max-width: 575.98px) {
    .book-fair__title {
        font-size: 22px;
    }

    .book-fair__btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 991.98px) {
    .home-faq {
        padding: 50px 0 70px;
    }

    .home-faq__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .home-faq__heading {
        margin-bottom: 18px;
    }
}

@media (max-width: 575.98px) {
    .home-faq__fields {
        grid-template-columns: 1fr;
    }

    .home-faq__form {
        padding: 20px 16px;
    }

    .home-faq__submit {
        width: 100%;
    }

    .home-faq__question {
        font-size: 13px;
        padding: 12px 14px;
    }
}

@media (max-width: 991.98px) {
    .site-footer__contact {
        padding: 45px 0;
    }

    .site-footer__contact-inner,
    .site-footer__main-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .site-footer__main {
        padding: 50px 0 40px;
    }

    .site-footer__project-title {
        font-size: 28px;
    }

    .site-footer__touch-title,
    .site-footer__form-title {
        font-size: 26px;
    }
}

@media (max-width: 575.98px) {
    .site-footer__form-row,
    .site-footer__bottom-cols {
        grid-template-columns: 1fr;
    }

    .site-footer__project-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__chat {
        width: 100%;
        max-width: 280px;
    }

    .site-footer__copy p {
        font-size: 12px;
    }
}

@media (max-width: 767.98px) {
    .get-started-modal__dialog {
        max-width: 500px;
    }

    .get-started-modal__content {
        flex-direction: column;
        border-radius: 20px;
    }

    .get-started-modal__aside {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 30px 26px;
    }

    .get-started-modal__benefits {
        margin-bottom: 0;
    }

    .get-started-modal__aside-title {
        font-size: 24px;
    }

    .get-started-modal__main {
        padding: 30px 26px 28px;
    }

    .get-started-modal__title {
        font-size: 24px;
    }
}

@media (max-width: 575.98px) {
    .get-started-modal__aside {
        display: none;
    }

    .get-started-modal__main {
        padding: 42px 22px 26px;
    }

    .get-started-modal__header {
        padding-right: 28px;
    }

    .get-started-modal__desc {
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .about-hero {
        min-height: 520px;
        padding: 130px 0 60px;
    }

    .about-journey,
    .about-apart,
    .about-why,
    .about-values,
    .about-advantages {
        padding: 55px 0;
    }

    .about-journey__stats,
    .about-apart__grid,
    .about-values__grid {
        grid-template-columns: 1fr;
    }

    .about-why__inner,
    .about-advantages__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-why__heading,
    .about-advantages__heading {
        text-align: center;
    }

    .about-why__media img {
        min-height: 280px;
    }
}

@media (max-width: 575.98px) {
    .about-hero__actions,
    .about-advantages__actions {
        flex-direction: column;
    }

    .about-hero__btn,
    .about-advantages__btn {
        width: 100%;
        max-width: 320px;
    }

    .about-apart__card,
    .about-values__card {
        padding: 22px 18px;
    }
}

@media (max-width: 991.98px) {
    .service-hero {
        min-height: 480px;
        padding: 130px 0 70px;
    }

    .author-stories {
        padding: 60px 0 55px;
    }

    .author-stories__list {
        gap: 32px;
    }

    .author-stories__row,
    .author-stories__row--reverse {
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
    }

    .author-stories__row--reverse .author-stories__cover,
    .author-stories__row--reverse .author-stories__card {
        order: initial;
    }

    .author-stories__cover {
        width: min(220px, 70%);
    }

    .portfolio-gallery {
        padding: 55px 0 65px;
    }

    .portfolio-gallery__head {
        margin-bottom: 36px;
    }

    .portfolio-gallery__grid {
        gap: 16px;
    }

    .portfolio-gallery__item {
        flex: 0 1 180px;
        max-width: 200px;
    }

    .contact-main {
        padding: 55px 0 65px;
    }

    .contact-main__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .legal-hero {
        padding: 130px 0 55px;
    }

    .legal-content {
        padding: 50px 0 65px;
    }

    .legal-content__inner {
        padding: 28px 22px;
    }

    .thankyou-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .thankyou-card {
        padding: 32px 22px 28px;
    }

    .review-trust__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .review-why,
    .review-steps,
    .review-legit,
    .review-enroll {
        padding: 3.5rem 0;
    }

    .review-why__inner,
    .review-enroll__inner,
    .review-legit__grid,
    .review-steps__top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-steps__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .service-hero__actions {
        flex-direction: column;
    }

    .service-hero__btn {
        width: 100%;
        max-width: 320px;
    }

    .author-stories__foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-stories__actions {
        width: 100%;
    }

    .author-stories__btn {
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .portfolio-gallery {
        padding: 45px 0 55px;
    }

    .portfolio-gallery__grid {
        gap: 12px;
    }

    .portfolio-gallery__item {
        flex: 0 1 calc(50% - 6px);
        max-width: none;
    }

    .contact-main__form-wrap {
        padding: 24px 18px;
    }

    .contact-main__fields {
        grid-template-columns: 1fr;
    }

    .thankyou-card__actions {
        flex-direction: column;
    }

    .thankyou-card__btn {
        width: 100%;
    }

    .review-trust__grid,
    .review-steps__grid {
        grid-template-columns: 1fr;
    }

    .review-hero__chips {
        gap: 0.4rem;
    }
}
