/* =========================================
   LARGE TABLETS
========================================= */

@media (max-width: 1100px) {

    .site-branding {
        min-width: auto;
    }

    .site-branding__name {
        font-size: 19px;
    }

    .primary-menu {
        gap: 18px;
    }

    .primary-menu a {
        font-size: 13px;
    }

    .main-header__navigation-wrapper {
        gap: 20px;
    }

    .home-hero__container {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
        gap: 45px;
    }

    .home-hero__title {
        font-size: clamp(40px, 4.7vw, 54px);
    }

    .home-hero__image-wrapper {
        height: 450px;
    }

    .home-hero__floating-card--available {
        right: -5px;
    }

    .equipment-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .equipment-card__media {
        height: 280px;
    }

    .staff-preview__introduction {
        gap: 45px;
    }
    
    .staff-preview__main-image,
    .staff-preview__main-image img {
        min-height: 470px;
    }
    
    .staff-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-choose-us__showcase {
        grid-template-columns:
            minmax(230px, 1fr)
            minmax(280px, 0.85fr)
            minmax(230px, 1fr);
        gap: 22px 28px;
    }
    
    .why-choose-us__image {
        height: 540px;
    }
    
    .why-benefit {
        padding: 20px;
    }
    
    .why-benefit--top-left::after,
    .why-benefit--middle-left::after,
    .why-benefit--bottom-left::after {
        right: -29px;
        width: 29px;
    }
    
    .why-benefit--top-right::before,
    .why-benefit--middle-right::before,
    .why-benefit--bottom-right::before {
        left: -29px;
        width: 29px;
    }
}

/* =========================================
   TABLETS AND MOBILE NAVIGATION
========================================= */

@media (max-width: 960px) {

    .top-bar__inner {
        justify-content: center;
    }

    .top-bar__message {
        display: none;
    }

    .main-header__inner {
        min-height: 82px;
    }

    .site-branding__logo,
    .site-branding__logo .custom-logo-link {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .site-branding__logo .custom-logo {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-header__navigation-wrapper {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 20px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        background-color: var(--nnc-white);
        border-top: 1px solid var(--nnc-border);
        box-shadow: var(--nnc-shadow);
    }

    .main-header__navigation-wrapper.is-open {
        display: flex;
    }

    .primary-navigation {
        width: 100%;
    }

    .primary-menu {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid var(--nnc-border);
    }

    .primary-menu a {
        min-height: auto;
        padding: 14px 3px;
        font-size: 15px;
    }

    .primary-menu a::after {
        display: none;
    }

    .header-actions {
        width: 100%;
    }

    .header-whatsapp-button {
        width: 48px;
        height: 48px;
    }

    .header-contact-button {
        flex: 1;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero__container {
        padding-top: 65px;
        padding-bottom: 75px;
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .home-hero__content {
        max-width: 720px;
        text-align: center;
        margin-inline: auto;
    }

    .home-hero__eyebrow {
        margin-inline: auto;
    }

    .home-hero__title {
        max-width: 720px;
    }

    .home-hero__description {
        margin-right: auto;
        margin-left: auto;
    }

    .home-hero__actions {
        justify-content: center;
    }

    .home-hero__trust-list {
        justify-content: center;
    }

    .home-hero__visual {
        max-width: 610px;
        margin-inline: auto;
    }

    .home-hero__image-wrapper {
        height: 500px;
    }

    .home-hero__floating-card--care {
        left: -5px;
    }

    .home-hero__floating-card--available {
        right: -5px;
    }

    .trust-stats__container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-stats__item:nth-child(2)::after {
        display: none;
    }
    
    .trust-stats__item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .services-preview {
        padding: 85px 0 95px;
    }
    
    .services-preview__header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-preview__introduction {
        max-width: 650px;
    }
    
    .services-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .service-card__media {
        height: 230px;
    }

    .equipment-preview {
        padding: 85px 0 90px;
    }
    
    .equipment-preview__header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .equipment-preview__introduction {
        max-width: 650px;
    }
    
    .equipment-preview__footer {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .equipment-preview__contact-button {
        margin-left: 66px;
    }

    .staff-preview {
        padding: 85px 0 90px;
    }
    
    .staff-preview__introduction {
        grid-template-columns: 1fr;
    }
    
    .staff-preview__main-image {
        min-height: auto;
    }
    
    .staff-preview__main-image img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    
    .staff-preview__content {
        max-width: 720px;
    }
    
    .staff-preview__featured-header {
        margin-top: 75px;
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .staff-preview__featured-header p {
        max-width: 650px;
    }
    
    .staff-preview__additional {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .why-choose-us {
        padding: 85px 0 90px;
    }
    
    .why-choose-us__header {
        margin-bottom: 50px;
    }
    
    .why-choose-us__showcase {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 22px;
    }
    
    .why-choose-us__image-wrap {
        grid-column: 1 / 3;
        grid-row: auto;
        max-width: 430px;
        margin-bottom: 20px;
        order: -1;
    }
    
    .why-choose-us__image {
        height: 560px;
    }
    
    .why-benefit--top-left,
    .why-benefit--middle-left,
    .why-benefit--bottom-left,
    .why-benefit--top-right,
    .why-benefit--middle-right,
    .why-benefit--bottom-right {
        grid-column: auto;
        grid-row: auto;
    }
    
    .why-benefit::before,
    .why-benefit::after {
        display: none;
    }
}

/* =========================================
   SMALL TABLETS
========================================= */

@media (max-width: 720px) {

    .home-hero__container {
        padding-top: 50px;
        padding-bottom: 65px;
    }

    .home-hero__title {
        font-size: clamp(38px, 8vw, 49px);
        letter-spacing: -1.2px;
    }

    .home-hero__description {
        font-size: 16px;
    }

    .home-hero__trust-list {
        gap: 13px 18px;
    }

    .home-hero__image-wrapper {
        height: 430px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {

    .site-container {
        width: min(100% - 28px, 1180px);
    }

    .top-bar__inner {
        min-height: 38px;
    }

    .top-bar__contact {
        width: 100%;
        justify-content: center;
        gap: 14px;
    }

    .top-bar__link {
        font-size: 12px;
    }

    .top-bar__link:nth-child(2) {
        display: none;
    }

    .site-branding {
        gap: 10px;
    }

    .site-branding__logo,
    .site-branding__logo .custom-logo-link {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .site-branding__logo .custom-logo {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .site-branding__name {
        font-size: 17px;
    }

    .site-branding__tagline {
        font-size: 10px;
    }

    .mobile-menu-toggle {
        width: 43px;
        height: 43px;
    }

    .home-hero__container {
        padding-top: 43px;
        padding-bottom: 55px;
        gap: 48px;
    }

    .home-hero__eyebrow {
        margin-bottom: 18px;
        font-size: 12px;
    }

    .home-hero__title {
        font-size: clamp(34px, 10vw, 43px);
        line-height: 1.1;
        letter-spacing: -0.9px;
    }

    .home-hero__description {
        margin-top: 20px;
        font-size: 15px;
        line-height: 1.7;
    }

    .home-hero__actions {
        margin-top: 27px;
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__button {
        width: 100%;
    }

    .home-hero__trust-list {
        margin-top: 28px;
        padding-top: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero__visual {
        padding: 12px 3px 20px 9px;
    }

    .home-hero__image-wrapper {
        height: 370px;
        border-width: 5px;
        border-radius: 21px;
    }

    .home-hero__image-accent {
        right: -7px;
        border-radius: 23px;
    }

    .home-hero__floating-card {
        padding: 10px 12px;
    }

    .home-hero__floating-card--care {
        left: -3px;
        bottom: 38px;
    }

    .home-hero__floating-card--available {
        top: 30px;
        right: -3px;
    }

    .home-hero__floating-icon {
        width: 37px;
        height: 37px;
    }

    .home-hero__floating-text strong {
        font-size: 12px;
    }

    .home-hero__floating-text small {
        font-size: 10px;
    }

    .trust-stats__container {
        grid-template-columns: 1fr;
    }
    
    .trust-stats__item {
        padding: 26px 20px;
    }
    
    .trust-stats__item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .trust-stats__item::after {
        display: none;
    }
    
    .trust-stats__number {
        font-size: 33px;
    }
    
    .trust-stats__label {
        margin-top: 10px;
    }

    .services-preview {
        padding: 70px 0 75px;
    }
    
    .services-preview__header {
        margin-bottom: 35px;
    }
    
    .section-title {
        font-size: 34px;
        letter-spacing: -0.8px;
    }
    
    .services-preview__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .service-card__media {
        height: 220px;
    }
    
    .service-card__content {
        min-height: auto;
        padding: 45px 25px 27px;
    }
    
    .service-card__icon {
        left: 25px;
    }
    
    .service-card__description {
        margin-bottom: 22px;
    }

    .equipment-preview {
        padding: 70px 0 75px;
    }
    
    .equipment-preview__header {
        margin-bottom: 35px;
    }
    
    .equipment-preview__grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-card__media {
        height: 260px;
    }
    
    .equipment-card__content {
        min-height: auto;
    }
    
    .equipment-preview__footer {
        margin-top: 26px;
        padding: 22px;
        gap: 20px;
    }
    
    .equipment-preview__support {
        align-items: flex-start;
    }
    
    .equipment-preview__support-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
    
    .equipment-preview__contact-button {
        width: 100%;
        margin-left: 0;
    }

    .staff-preview {
        padding: 70px 0 75px;
    }
    
    .staff-preview__main-image {
        border-radius: 20px;
    }
    
    .staff-preview__main-image img {
        aspect-ratio: 4 / 3;
    }
    
    .staff-preview__image-badge {
        right: 15px;
        left: 15px;
        bottom: 15px;
    }
    
    .staff-preview__title {
        font-size: 36px;
        letter-spacing: -0.9px;
    }
    
    .staff-preview__features {
        grid-template-columns: 1fr;
    }
    
    .staff-preview__actions {
        align-items: stretch;
        flex-direction: column;
    }
    
    .staff-preview__primary-button,
    .staff-preview__secondary-button {
        width: 100%;
    }
    
    .staff-preview__featured-header {
        margin-top: 65px;
    }
    
    .staff-preview__grid {
        grid-template-columns: 1fr;
    }
    
    .staff-card__media {
        height: 310px;
    }
    
    .staff-card__content {
        min-height: auto;
    }
    
    .staff-preview__additional {
        margin-top: 26px;
        padding: 24px 20px;
    }
    
    .staff-preview__roles {
        gap: 8px;
    }
    
    .staff-preview__roles span {
        padding: 9px 12px;
    }

    .why-choose-us {
        padding: 70px 0 75px;
    }
    
    .why-choose-us__header {
        margin-bottom: 40px;
    }
    
    .why-choose-us__showcase {
        grid-template-columns: 1fr;
    }
    
    .why-choose-us__image-wrap {
        grid-column: 1;
        max-width: 360px;
    }
    
    .why-choose-us__image {
        height: 480px;
        border-width: 7px;
    }
    
    .why-choose-us__image-ring {
        inset: -12px;
    }
    
    .why-choose-us__center-badge {
        right: -5px;
        bottom: 38px;
        width: 92px;
        height: 92px;
        border-width: 5px;
    }
    
    .why-choose-us__center-badge-number {
        font-size: 21px;
    }
    
    .why-benefit {
        padding: 20px;
    }
    
    .why-benefit__icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
    
    .why-choose-us__footer {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }
    
    .why-choose-us__button {
        width: 100%;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 410px) {

    .site-branding__name {
        max-width: 165px;
        white-space: normal;
    }

    .site-branding__tagline {
        display: none;
    }

    .home-hero__title {
        font-size: 34px;
    }

    .home-hero__image-wrapper {
        height: 325px;
    }

    .home-hero__floating-card--available {
        display: none;
    }

    .home-hero__floating-card--care {
        right: 8px;
        left: 8px;
        bottom: 28px;
        justify-content: center;
    }
}