/* ==================================================
ADAPTIV.CSS
Mobile / Tablet overrides for Ikira
================================================== */

/* ==================================================
TABLET
================================================== */

@media (max-width: 1024px) {

    .section-inner {
        padding: 0 30px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-inner--split {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-left .section-title {
        position: static;
    }

    .works-track.is-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .txt-box1 {
        width: 60%;
        top: 22%;
    }
}

/* ==================================================
MOBILE
================================================== */

@media (max-width: 768px) {

    /* ---------- HEADER ---------- */

    header {
        height: 60px;
        padding: 10px 14px;
    }

    .header {
        padding: 0 16px;
        border-radius: 16px;
        justify-content: space-between;

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav {
        display: none;
    }

    .nav-logo {
        font-size: 14px;
    }

    .lang-switch {
        display: none;
    }

    .lang-btn {
        font-size: 10px;
    }

    /* ---------- BURGER ---------- */

    .burger {
        width: 42px;
        height: 42px;

        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;

        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
    }
    
    .burger span {
        display: block;
        width: 18px;
        height: 2px;
        margin: 0 auto;

        border-radius: 999px;
        background: #fff;

        transition:
            transform .25s ease,
            opacity .25s ease;
    }

    .burger.is-active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .burger.is-active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    /* ---------- MOBILE MENU ---------- */

    .mobile-menu {
        position: fixed;
        top: 78px;

        right: 14px;      /* меню справа */
        left: auto;       /* убираем левую привязку */

        width: 260px;     /* фикс ширина */
        max-width: calc(100vw - 28px);

        padding: 18px;
        border-radius: 18px;

        background: var(--surface);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border: 1px solid rgba(255,255,255,.08);
        box-shadow: var(--shadow);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px) scale(.98);

        pointer-events: none;

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;

        z-index: 999;
    }

    .mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-link {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;

        display: flex;
        justify-content: center;   /* кнопки по центру */
        align-items: center;

        text-align: center;        /* текст по центру */

        font-size: 11px;
        letter-spacing: .14em;
        text-transform: uppercase;
        text-decoration: none;

        color: #fff;
        background: rgba(255,255,255,.03);
    }

    .mobile-lang {
        margin-top: 14px;

        display: flex;
        justify-content: center;   /* язык по центру */
        gap: 6px;
    }
    /* ---------- HERO ---------- */

    .box {
        height: 100svh;
        padding: 0 14px 14px;
    }

    .video-wrap {
        border-radius: 0 0 34px 34px;
        filter: none;
        transform: none;
        opacity: 1;
    }

    .txt-box1 {
        width: 90%;
        left: 5%;
        top: 16%;
        height: auto;
        font-size: 16px;
    }

    .h-1 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .p1 {
        font-size: 13px;
        line-height: 1.6;
        max-width: 100%;
    }

    /* ---------- SECTION ---------- */

    .section {
        padding: 80px 0;
    }

    .section--last {
        padding-bottom: 100px;
    }

    .section-inner {
        padding: 0 18px;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 32px;
        line-height: 1.1;
    }

    .section-label {
        font-size: 10px;
        letter-spacing: .18em;
    }

    /* ---------- SERVICES ---------- */

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

    .card {
        min-height: auto;
        padding: 24px;
        gap: 14px;
        border-radius: 16px;
    }

    /* ---------- ABOUT ---------- */

    .section-inner--split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-stats {
        flex-direction: column;
        gap: 22px;
        margin-top: 36px;
        padding-top: 26px;
    }

    /* ---------- WORKS ---------- */

    .works-wrap::before,
    .works-wrap::after {
        display: none;
    }

    .works-track,
    .works-track.is-grid,
    .works-track.is-marquee {
        display: flex;
        flex-direction: column;
        gap: 16px;
        animation: none;
        width: 100%;
    }

    .work-card {
        flex: none;
        width: 100%;
        min-height: auto;
        padding: 24px;
        border-radius: 18px;
        gap: 14px;
    }

    .work-title {
        font-size: 24px;
    }

    /* ---------- TECH ---------- */

    .tech-item {
        font-size: 10px;
        padding: 9px 14px;
        letter-spacing: .08em;
    }

    /* ---------- CONTACT ---------- */

    .contact-link {
        font-size: 24px;
        margin-bottom: 26px;
        word-break: break-word;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .social-link {
        font-size: 10px;
        letter-spacing: .14em;
    }

    /* ---------- MOBILE FIXES ---------- */

    html {
        scroll-padding-top: 80px;
    }

    #services,
    #about,
    #works,
    #tech,
    #contact {
        scroll-margin-top: 80px;
    }

    .card:hover,
    .work-card:hover,
    .contact-link:hover,
    .social-link:hover {
        transform: none;
    }

    .card:hover::before,
    .work-card:hover::before,
    .header:hover::before {
        opacity: 0;
    }
}

/* ==================================================
DESKTOP
================================================== */

@media (min-width: 769px) {

    .burger,
    .mobile-menu {
        display: none;
    }
}

/* ==================================================
SMALL PHONES
================================================== */

@media (max-width: 480px) {

    .h-1 {
        font-size: 24px;
    }

    .p1 {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }

    .card,
    .work-card {
        padding: 20px;
    }

    .contact-link {
        font-size: 20px;
    }
}

/* ==================================================
VERY SMALL
================================================== */

@media (max-width: 380px) {

    header {
        padding: 8px 10px;
    }

    .header {
        padding: 0 12px;
    }

    .nav-logo {
        font-size: 13px;
    }

    .txt-box1 {
        top: 14%;
    }

    .h-1 {
        font-size: 22px;
    }

    .section-title {
        font-size: 24px;
    }

    .work-title {
        font-size: 20px;
    }

    .contact-link {
        font-size: 18px;
    }

    .mobile-link {
        min-width: 160px;
        font-size: 10px;
    }
}