@media(min-width:1600px) {
    .ne-container {
        width: 75.833333%
    }
}

@media(max-width:1599px) {
    .navbar {
        min-height: 110px
    }

    .brand img:first-child {
        width: 100px;
        height: 67px
    }

    .brand img:nth-child(2) {
        width: 67px;
        height: 67px
    }

    .nav-links {
        gap: 28px
    }

    .nav-links button,
    .nav-links .pill {
        font-size: 18px
    }

    .hero {
        height: 570px
    }

    .hero-content {
        padding-top: 75px
    }

    .hero h1 {
        font-size: 76px
    }

    .history {
        padding-left: 28px;
        gap: 15px
    }

    .history>img {
        width: 155px;
        height: auto
    }

    .history .since {
        font-size: 34px
    }

    .history p {
        font-size: 21px
    }

    .offer-card {
        min-height: 550px;
        padding: 25px 22px 35px
    }

    .offer-card .pill {
        font-size: 23px
    }

    .testimonial-card {
        padding: 30px 28px;
        min-height: 550px
    }

    .footer-brands>img:first-child {
        max-width: 240px
    }

    .footer-grid {
        gap: 22px
    }

    .footer-legal,
    .footer-legal button {
        font-size: 13px
    }
}

@media(max-width:1100px) {
    .nav-links {
        gap: 18px
    }

    .nav-links button,
    .nav-links .pill {
        font-size: 16px
    }

    .hero h1 {
        font-size: 65px
    }

    .hero p {
        font-size: 22px
    }

    .about-grid {
        gap: 28px
    }

    h2 {
        font-size: 29px
    }

    h2>img {
        max-width: 53px;
        max-height: 53px
    }

    .history {
        padding-left: 20px
    }

    .history>img {
        width: 120px
    }

    .history p {
        font-size: 18px
    }

    .history .since {
        font-size: 29px
    }

    .offer-grid {
        gap: 20px
    }

    .offer-card {
        padding: 20px 18px 28px;
        min-height: 480px
    }

    .offer-card h3 {
        font-size: 19px;
        min-height: 115px
    }

    .offer-card .pill {
        font-size: 18px;
        min-height: 54px
    }

    .trailer {
        font-size: 17px;
        margin-bottom: 26px
    }

    .work-card {
        padding: 25px 18px;
        grid-template-columns: 1fr;
        gap: 14px
    }

    .work-art img {
        max-height: 190px;
        width: auto;
        max-width: 100%
    }

    .work-card h3 {
        font-size: 22px;
        margin-bottom: 12px
    }

    .work-card p {
        font-size: 16px
    }

    .portrait {
        width: 145px;
        height: 145px
    }

    .testimonial-card {
        padding: 28px 22px
    }

    .testimonial-card blockquote {
        font-size: 16px
    }

    .testimonial-card h3 {
        font-size: 17px
    }

    .quote-icon {
        width: 40px;
        height: auto;
        right: 15px
    }

    .contact-grid {
        gap: 40px
    }

    .contact h2 {
        font-size: 32px
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start
    }

    .footer-brands>img:first-child {
        max-width: 300px
    }

    .client-grid {
        grid-template-rows: repeat(var(--rows), 110px)
    }
}

@media(max-width:767px) {
    body {
        font-size: 16px
    }

    .ne-container {
        width: calc(100% - 40px)
    }

    .navbar {
        padding: 15px 20px;
        min-height: 88px;
        position: relative;
        gap: 12px
    }

    .brand {
        gap: 12px
    }

    .brand img:first-child {
        width: 78px;
        height: 52px
    }

    .brand img:nth-child(2) {
        width: 52px;
        height: 52px
    }

    .menu-toggle {
        display: block;
        background: #eff2ff;
        border-radius: 9px;
        color: var(--blue);
        font-size: 25px;
        padding: 5px 12px
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        z-index: 10;
        padding: 22px;
        box-shadow: 0 10px 15px #12164610;
        align-items: stretch
    }

    .nav-links.open {
        display: flex;
        flex-direction: column
    }

    .nav-links button {
        padding: 10px;
        text-align: left
    }

    .nav-links .pill {
        justify-content: center
    }

    .hero {
        height: 570px
    }

    .hero-content {
        padding-top: 80px
    }

    .hero h1 {
        font-size: clamp(43px, 8.8vw, 65px);
        letter-spacing: -1px;
        margin-bottom: 25px
    }

    .hero p {
        font-size: 18px;
        line-height: 1.45
    }

    .hero-overlay {
        background: linear-gradient(90deg, #002cffe6, #002cff85)
    }

    .sence {
        width: 155px;
        height: 63px
    }

    .about {
        padding: 40px 0
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .about h2 {
        margin-bottom: 20px
    }

    .history {
        border-left: 0;
        border-top: 1px solid #002cff44;
        padding: 25px 0 0;
        justify-content: center
    }

    .history>img {
        width: 120px
    }

    .history .since {
        font-size: 30px
    }

    .history p {
        font-size: 18px
    }

    .section {
        padding-top: 40px
    }

    h2 {
        font-size: 26px;
        gap: 12px;
        line-height: 1.15;
        margin-bottom: 25px
    }

    h2>img {
        max-width: 43px;
        max-height: 43px
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .offer-card {
        max-width: 460px;
        width: 100%;
        margin: auto;
        min-height: 0;
        padding: 26px
    }

    .offer-card h3 {
        font-size: 23px;
        min-height: 0;
        margin: 22px 0
    }

    .offer-card .pill {
        font-size: 22px;
        min-height: 56px
    }

    .trailer {
        font-size: 18px;
        margin: 4px 0 26px
    }

    .section-intro {
        line-height: 1.55;
        margin-bottom: 26px
    }

    .section-rule {
        padding-top: 35px
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .work-card {
        grid-template-columns: 42% 1fr;
        min-height: 260px;
        padding: 20px 15px;
        gap: 12px
    }

    .work-card h3 {
        font-size: 20px
    }

    .work-card p {
        font-size: 15px
    }

    .client-grid {
        grid-template-rows: repeat(var(--rows), 90px);
        gap: 24px 22px;
        padding: 12px 5px
    }

    .client-logo {
        max-height: 85px
    }

    .testimonial-grid {
        grid-template-columns: 1fr
    }

    .testimonial-card {
        min-height: 520px;
        padding: 30px 35px
    }

    .portrait {
        width: 165px;
        height: 165px
    }

    .testimonial-card blockquote {
        font-size: 17px
    }

    .testimonial-card h3 {
        font-size: 18px
    }

    .quote-icon {
        width: 50px;
        right: 23px
    }

    .contact {
        padding: 48px 0;
        border-bottom-right-radius: 65px
    }

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

    .contact h2 {
        font-size: 30px;
        margin-bottom: 23px
    }

    .contact p {
        font-size: 16px
    }

    .form-control {
        font-size: 16px
    }

    .field label {
        font-size: 16px
    }

    .footer-brands {
        gap: 13px;
        flex-wrap: wrap
    }

    .footer-brands>img:first-child {
        max-width: 210px
    }

    .footer-brands>img:nth-child(2),
    .footer-brands .footer-hours {
        width: 65px;
        height: 65px
    }

    .footer-brands a {
        --linkedin-size: 36px;
    }

    .footer-legal button {
        display: block;
        margin-bottom: 8px;
        text-align: left
    }

    .footer-legal p {
        margin-bottom: 15px
    }

    .footer-grid {
        gap: 25px
    }

    #main {
        --section-closing-space: 40px;
    }
}

@media(max-width:400px) {
    .work-card {
        grid-template-columns: 1fr
    }

    .work-art img {
        max-height: 165px
    }

    .hero p {
        font-size: 16px
    }

    .hero h1 {
        font-size: 43px
    }

    h2 {
        font-size: 24px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }

    .hero-video {
        visibility: hidden
    }

    .hero {
        background: var(--blue) url('../img/banner_aprendizaje.png') center/cover
    }
}
