/* Media: 768px */
@media (max-width: 768px) {
    .header__nav, .header__copyright {
        display: none;
    }
    .header__menu-btn {
        display: flex;
    }
    .header__logo {
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: 400;
        font-style: Regular;
        font-size: 22px;
        leading-trim: NONE;
        line-height: 26px;
        letter-spacing: -0.56px;
        vertical-align: middle;
        text-transform: uppercase;
        color: #fff
    }
    .header__menu-btn-text {
        font-family: Inter;
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 17.16px;
        letter-spacing: -0.26px;
        text-align: center;
        vertical-align: middle;
        text-transform: uppercase;
    }
    header {
        padding-top: 70px;
        padding-bottom: 16px;
    }

    /* Боковые отступы контейнера на мобилке */
    .container {
        padding: 0 20px;
    }
    .hero__title {
        flex-direction: column;
        gap: 370px;
        align-items: flex-start;
    }

    .hero__title span {
        font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 58.65px;
        leading-trim: none;
        line-height: 86%;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .hero__title span:last-child {
        align-self: flex-end;
    }
    .hero__inner {
        margin-top: 100px
    }
    .hero__video {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        pointer-events: none;
        width: 200%;
        height: auto;
    }

    /*
     * Backup: позиції hero «скляних» плашок (max-width: 768px). Не видаляти — для відкату після змін.
     * .hero__glass--1 { left: 0; top: 13%; }
     * .hero__glass--2 { right: 0; top: 34%; left: unset; transform: translate(0px); }
     * .hero__glass--3 { left: 0; top: 43%; }
     */
    /* Овали тільки на мобільній */
    .hero__glass--1 {
        left: 0;
        top: 13%;
    }
    .hero__glass--2 {
        right: 0;
        top: 34%;
        left: unset;
        transform: translate(0px);
    }
    .hero__glass--3 {
        left: 0;
        top: 43%;
    }
    .hero__glass {
        padding: 12px 23px;
        font-family: Inter;
        font-weight: 400;
        font-style: Regular;
        font-size: 15.98px;
        leading-trim: NONE;
        line-height: 100%;
        letter-spacing: 0%;
        vertical-align: middle;

    }
    .team__item-button,
    .team-alt__item-button,
    .service__item-button {
        font-weight: 400;
        font-style: Roman;
        font-size: 20.25px;
        leading-trim: NONE;
        line-height: 20.25px;
        letter-spacing: -0.81px;
        vertical-align: middle;
        text-transform: uppercase;
        padding-bottom: 8px;
    }
    .team__item-button img,
    .team__item-button-icon,
    .team-alt__item-button img,
    .team-alt__item-button-icon,
    .service__item-button img,
    .service__item-button-icon {
        width: 16px;
    }
    .hero {
        padding-bottom: 100px;
    }
    .about__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
        gap: 40px 24px;
    }
    .about__item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    .about__item .about__number {
        font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 90px;
        leading-trim: CAP_HEIGHT;
        line-height: 100%;
        letter-spacing: -0.02em;
    }
    .about__item .about__label {
        font-family: Inter, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 15px;
        leading-trim: CAP_HEIGHT;
        line-height: 100%;
        letter-spacing: 0;
        text-align: center;
    }
    .about__inner.animated .about__item {
        gap: 25px
    }
    .about {
        padding-bottom: 100px;
    }
    .service__head {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
        gap: 24px;
    }
    .service__title {
        font-size: 57.79px;
        line-height: 39.54px;
        letter-spacing: -2.13px;
    }
    .service__nav {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap;
        flex: none;
        gap: 7.5px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
    }
    .service__nav::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    .service__nav span,
    .service__nav-item {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 16px;
        padding: 14px 22px;
    }
    .service__item-title,
    .service__item-title-accent,
    .service__item-title-rest {
        font-size: 38px;
        line-height: 44px;
    }
    .service__item-text {
        font-size: 15px;
    }
    .service__item-content {
        flex: 0 1 auto;
        max-width: 100%;
        min-height: 0;
        gap: 20px;
    }
    .service__item {
        align-items: flex-start;
        gap: 24px;
        padding-bottom: 40px;
        flex-direction: column;
    }
    .service__item-list,
    .service__item-list--cols-2 {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    .service-card {
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
        min-height: 0;
        padding: 0 0 0 24px;
        gap: 12px;
    }
    .service-card--row2 {
        max-width: 100%;
    }
    .service-card__title {
        font-size: 11.68px;
        line-height: 14.59px;
        leading-trim: none;
        letter-spacing: 0;
    }
    .service-card__text {
        font-size: 9.08px;
        line-height: 14.76px;
        leading-trim: none;
        letter-spacing: 0;
        color: rgba(217, 209, 250, 1);
    }
    .service-card__copy {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex: 1 1 0;
        min-width: 0;
        max-width: 100%;
        padding: 12px 0 14px;
    }
    .service-card__media {
        flex: 1 1 0;
        align-self: stretch;
        min-width: 0;
        min-height: 118px;
        max-height: none;
    }
    .service-card__media::before {
        right: -8%;
        bottom: 2%;
        width: min(85%, 160px);
        height: min(70%, 100px);
        filter: blur(16px);
    }
    .service-card__media img {
        object-fit: contain;
        object-position: right bottom;
        width: 100%;
        height: 100%;
    }
    .service {
        padding-bottom: 110px;
    }
    .cases__title h2 {
        font-family: Inter;
        font-weight: 400;
        font-style: Regular;
        font-size: 76.95px;
        leading-trim: NONE;
        line-height: 101.36px;
        letter-spacing: -3.12px;
        vertical-align: middle;

    }
    .cases__title span {
        font-family: Inter;
        font-weight: 300;
        font-style: Light;
        font-size: 57.33px;
        leading-trim: NONE;
        line-height: 75.51px;
        letter-spacing: -2.32px;
        vertical-align: middle;
    }
    .cases__title {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    .cases__title h2 {
        text-align: left;
    }
    .cases__view-button {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
    .case-modal__dialog {
        width: min(935px, calc(100vw - 32px));
        margin: 40px auto;
    }
    .case-modal__scroll {
        padding: 20px 16px;
    }
    .case-modal__dialog-surface {
        padding: 0 30px;
    }
    .case-modal__close {
        top: 20px;
        right: 30px;
    }
    .case-modal__title {
        font-size: clamp(28px, 9vw, 67.5px);
        line-height: 1.1;
        letter-spacing: -0.06em;
        margin: 0;
        padding: 36px 0 15px;
    }
    .case-modal__brand {
        font-size: clamp(32px, 12vw, 157.75px);
        line-height: 1.15;
    }
    .case-modal__gallery.is-two {
        grid-template-columns: 1fr;
    }
    .case-modal__gallery.is-two .case-modal__gallery-cell:nth-child(2) {
        margin-top: 0;
    }
    /* Кейси на мобільному: 1 слайд на сторінку (6 кейсів) */
    .cases__list[data-page="0"] .cases__slide { display: none !important; }
    .cases__list[data-page="0"] .cases__slide:nth-child(1) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    .cases__list[data-page="1"] .cases__slide { display: none !important; }
    .cases__list[data-page="1"] .cases__slide:nth-child(2) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    .cases__list[data-page="2"] .cases__slide { display: none !important; }
    .cases__list[data-page="2"] .cases__slide:nth-child(3) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    .cases__list[data-page="3"] .cases__slide { display: none !important; }
    .cases__list[data-page="3"] .cases__slide:nth-child(4) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    .cases__list[data-page="4"] .cases__slide { display: none !important; }
    .cases__list[data-page="4"] .cases__slide:nth-child(5) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    .cases__list[data-page="5"] .cases__slide { display: none !important; }
    .cases__list[data-page="5"] .cases__slide:nth-child(6) { display: flex !important; flex: 1 1 100%; min-width: 0; }
    /* Десктоп: лише 2 точки (2 сторінки) */
    .cases__pagination-item-line span:nth-child(n+3) {
        display: block;
    }
    .cases__pagination {
        margin-top: 30px;
    }
    .cases__list-item {
        padding: 24px 20px;
    }
    .cases__pagination-item-line {
        height: 3px;
        gap: 5px;
    }
    .cases__pagination-item-line span.active {
        width: 40px;
        height: 3px;
    }
    .cases__pagination-item-line span {
        width: 22.5px;
        height: 1.5px;
    }
    .cases__pagination-button-prev, .cases__pagination-button-next {
        width: 45px;
        height: 45px;
    }
    .cases__pagination-button {
        gap: 5px;
    }
    .cases__pagination-item {
        gap: 15px;
    }
    .cases__pagination-item-number {
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: 300;
        font-style: Light;
        font-size: 12px;
        leading-trim: CAP_HEIGHT;
        line-height: 100%;
        letter-spacing: 0%;

    }
    .review {
        padding: 40px 0 60px;
    }
    .review_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }
    .team .container {
        padding: 0;
    }
    .team__inner .team__item:first-child p.team__item-text {
        display: none !important;
    }
    .team__item.second {
        width: 100%;
    }
    .team__inner {
        padding: 106px 11px 106px 20px;
        background-color: rgba(255, 255, 255, 1);
        color: rgba(118, 118, 118, 1);
        border-radius: 30px;
        display: flex;
        justify-content: space-between;
        gap: 30px;
        margin-bottom: 110px;
        flex-direction: column;
    }
    .team__item-title {
        font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 66.27px;
        line-height: 49.45px;
        letter-spacing: -2.95px;
        vertical-align: middle;
    }
    .team__item-text.second {
        margin-top: 0;
        margin-bottom: 0;
    }
    .team__item.second {
        gap: 40px;
        min-width: 100%;
    }
    .team__item-list {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .team__item-text.second {
        font-family: Inter;
        font-weight: 400;
        font-style: Regular;
        font-size: 16px;
        leading-trim: NONE;
        line-height: 100%;
        letter-spacing: 0%;
        vertical-align: middle;

    }
    .process__steps {
        font-family: Inter;
        font-weight: 300;
        font-style: Light;
        font-size: 57.33px;
        line-height: 75.51px;
        letter-spacing: -2.32px;
        margin-bottom: 20px;
    }
    .process__steps-list {
        grid-template-columns: repeat(1, 1fr);
    }
    .process__steps-list-item {
        padding: 20px;
    }
    .process {
        margin-bottom: 110px;
    }
    .team-alt .container { 
        padding: 0;
    }
    .team-alt__inner {
        padding: 100px 14px;
        background-color: rgba(255, 255, 255, 1);
        color: rgba(118, 118, 118, 1);
        border-radius: 30px;
        display: flex;
        FONT-VARIANT: JIS04;
        gap: 50px;
        margin-bottom: 100px;
        flex-direction: column;
    }
    .team-alt__item-title {
        font-family: 'HelveticaNeueCyr', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 66.27px;
        line-height: 49.5px;
        letter-spacing: -2.95px;
        vertical-align: middle;
    }
    .team-alt__item:first-child {
        display: contents;
    }
    .team-alt__item:first-child .team-alt__item-title {
        order: 1;
    }
    .team-alt__item.second {
        order: 2;
    }
    .team-alt__item:first-child .team-alt__item-text {
        order: 3;
    }
    .team-alt__item.second {
        display: flex;
        flex-direction: column;
        gap: 45px;
        width: 100%;
        min-width: 100%;
    }
    .team-alt__item-form-item-buttons {
        display: flex;
        gap: 7px;
        flex-wrap: wrap;
    }
    .team-alt__item-form-item {
        gap: 18px;
    }
    .team-alt__item-form-item-content {
        gap: 10px;
    }
    .team-alt__item-form {
        gap: 28px;
    }
    .team-alt__item-form .team-alt__item-form-item:nth-of-type(3) {
        margin-bottom: 8px;
    }
    .team-alt__item-button {
        margin-top: 10px;
    }
    .footer__inner {
        display: flex;
        flex: 1;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 40px;
        align-items: center;
        align-content: center;
        text-align: center;
        padding-top: 0;
        border-top: 0;
    }
    .footer__item.logo {
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: 300;
        font-style: Light;
        font-size: 20px;
        leading-trim: NONE;
        line-height: 38px;
        letter-spacing: -1.56px;
        vertical-align: middle;
        text-transform: uppercase;

    }
    .footer__item.nav {
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: 300;
        font-style: Light;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 35px;
        letter-spacing: -1.4px;
        vertical-align: middle;
        text-transform: uppercase;
        gap: 10px;
    }
    .footer__meta {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .footer__item.social {
        margin-bottom: 0;
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: 300;
        font-style: Light;
        font-size: 18px;
        leading-trim: NONE;
        line-height: 35px;
        letter-spacing: -1.4px;
        text-align: center;
        vertical-align: middle;
        text-transform: uppercase;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .footer__lang {
        font-size: 18px;
        line-height: 35px;
        letter-spacing: -1.4px;
        justify-content: center;
    }
}

/* Media: 600px */
@media (max-width: 600px) {
    .header__logo {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -0.9px;
    }

    .footer__item.logo {
        font-size: 14px;
        line-height: 24px;
        letter-spacing: -0.9px;
    }
}

