/* ============================================================
   RESPONSIVE.CSS ? Tyson Moving
   Breakpoints:
     1500px  ? large desktops
     1100px  ? tablet / collapsed nav
      720px  ? mobile
      420px  ? small phones
   ============================================================ */

/* ?????????????????????????????????????????????
   GLOBAL ? prevent horizontal scroll
????????????????????????????????????????????? */

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

/* ?????????????????????????????????????????????
   MOBILE MENU
   Floating card, ??????? ???????
   ?????? ?? ??? <header>
????????????????????????????????????????????? */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    background: rgba(17, 35, 57, 0.38);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
}

.mobile-menu-drawer {
    position: absolute;
    top: 12px;
    right: 12px;

    width: min(300px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;

    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 16px rgba(17, 35, 57, 0.06),
    0 24px 70px rgba(17, 35, 57, 0.2);

    display: flex;
    flex-direction: column;

    transform: translateY(-8px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.22s ease;
}

body.menu-open .mobile-menu-drawer {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-menu-header {
    height: 62px;
    padding: 0 16px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(31, 53, 82, 0.07);
}

.mobile-menu-logo {
    width: 108px;
    display: block;
}

.mobile-menu-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    background: #f4eadc;
    cursor: pointer;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.15s ease;
}

.mobile-menu-close:hover {
    background: #eddfc8;
}

.mobile-menu-close svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: var(--primary-dark);
    stroke-width: 2.2;
    stroke-linecap: round;
    fill: none;
    pointer-events: none;
}

.mobile-menu-nav {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 10px;

    height: 44px;
    padding: 0 12px;
    border-radius: 10px;

    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;

    transition: background 0.15s ease;
}

.mobile-menu-nav a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.35;
    flex-shrink: 0;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    background: #f7efe6;
}

.mobile-menu-lang {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.mobile-menu-lang a,
.mobile-menu-lang span {
    flex: 1;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f4eadc;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
    transition: background 0.15s ease;
}

.mobile-menu-lang a:hover {
    background: #eddfc8;
}

.mobile-menu-lang .active {
    background: linear-gradient(180deg, #376da3, #244f80);
    color: #ffffff;
}

.mobile-menu-footer {
    padding: 12px;
    flex-shrink: 0;

    display: grid;
    gap: 8px;

    border-top: 1px solid rgba(31, 53, 82, 0.07);
}

.mobile-menu-phone,
.mobile-menu-whatsapp {
    height: 44px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
}

.mobile-menu-phone {
    background: #f4eadc;
    color: var(--primary-dark);
    font-size: 15px;
}

.mobile-menu-whatsapp {
    gap: 8px;
    background: linear-gradient(180deg, #214a78 0%, #14385f 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 53, 82, 0.18);
}

.mobile-menu-whatsapp img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    display: block;
}


/* ?????????????????????????????????????????????
   1500px ? large desktop fine-tuning
????????????????????????????????????????????? */

@media (max-width: 1500px) {

    .hero h1 {
        font-size: clamp(50px, 5vw, 76px);
    }

    body.landing-he .hero-image img {
        width: clamp(700px, 56vw, 900px);
    }

    body.landing-en .hero-image {
        transform: translate(-30px, -28px);
    }

    body.landing-en .hero-image img {
        width: clamp(640px, 50vw, 860px);
    }

    .hero-image::after {
        width: clamp(300px, 26vw, 440px);
        height: 48px;
    }
}


/* ?????????????????????????????????????????????
   1100px ? Tablet
????????????????????????????????????????????? */

@media (max-width: 1100px) {

    /* Header */
    .nav,
    .header-actions {
        display: none;
    }

    .burger {
        display: block;
    }

    .header-inner {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .header-inner > .logo {
        margin-inline-end: auto;
    }

    .header-inner .lang-chip {
        display: block;
    }

    /* Hero */
    body.landing-en .hero-inner,
    body.landing-he .hero-inner {
        transform: none;
    }

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

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        direction: inherit;
    }

    .hero-content,
    body.landing-en .hero-content,
    body.landing-he .hero-content {
        max-width: 580px;
        margin-inline: auto;
        text-align: center;
    }

    .hero p,
    body.landing-en .hero p,
    body.landing-he .hero p {
        margin: 0 auto 34px;
    }

    .hero-buttons,
    .hero-points,
    body.landing-en .hero-buttons,
    body.landing-en .hero-points,
    body.landing-he .hero-buttons,
    body.landing-he .hero-points {
        justify-content: center;
    }

    .hero-image,
    body.landing-en .hero-image,
    body.landing-he .hero-image {
        transform: translateY(-12px);
    }

    .hero-image img,
    body.landing-en .hero-image img,
    body.landing-he .hero-image img {
        width: clamp(420px, 76vw, 680px);
        max-width: 140%;
    }

    .hero-image::after {
        width: clamp(280px, 52vw, 440px);
        height: 44px;
    }

    /* Benefits ? 3 ???????, WhatsApp ?? ??? ??? */
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefit-card-whatsapp {
        grid-column: 1 / -1;
        flex-direction: row;
        min-height: auto;
        padding: 22px 28px;
    }

    .benefit-card-whatsapp .benefit-icon {
        margin: 0;
        flex-shrink: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 42px 36px;
        gap: 28px;
    }

    .contact-content h2,
    .contact-content p {
        max-width: 100%;
    }

    .contact-points {
        justify-content: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* ?????????????????????????????????????????????
   720px ? Mobile
????????????????????????????????????????????? */

@media (max-width: 720px) {

    .container {
        width: min(100% - 24px, var(--container));
    }

    /*  варианты "что перевозим" ? в один столбец */
    .move-size {
        grid-template-columns: 1fr;
    }

    .quote-section {
        padding: 38px 0 48px;
    }

    .quote-content {
        padding: 20px 16px 14px;
    }

    .quote-field.wide {
        grid-column: 1 / -1;
    }

    /* ?? Hero ?? */

    body.landing-en .hero-inner,
    body.landing-he .hero-inner {
        transform: none;
    }

    .hero {
        padding: 28px 0 44px;
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* display:contents ? ????? ???????? ??????? ? flex ???? */
    .hero-content {
        display: contents;
    }

    /* ?????: badge ? h1 ? subtitle ? image ? buttons ? points */

    .hero-badge {
        order: 1;
        margin-bottom: 14px;
        font-size: 13px;
        padding: 7px 16px;
    }

    .hero h1,
    body.landing-en .hero h1,
    body.landing-he .hero h1 {
        order: 2;
        max-width: 340px;
        text-align: center;
        font-size: 34px;
        line-height: 1.08;
        letter-spacing: -0.5px;
        margin-bottom: 10px;
    }

    .hero p,
    body.landing-en .hero p,
    body.landing-he .hero p {
        order: 3;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-image,
    body.landing-en .hero-image,
    body.landing-he .hero-image {
        order: 4;
        transform: none !important;
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .hero-image img,
    body.landing-en .hero-image img,
    body.landing-he .hero-image img {
        width: 92%;
        max-width: 360px;
    }

    .hero-image::after {
        width: 220px;
        height: 24px;
    }

    .hero-buttons,
    body.landing-en .hero-buttons,
    body.landing-he .hero-buttons {
        order: 5;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 18px;
        gap: 10px;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 50px;
        border-radius: 10px;
        font-size: 14px;
    }

    /* Hero-points ? 3 ? ??, ????? ??? ?? ????? */
    .hero-points,
    body.landing-en .hero-points,
    body.landing-he .hero-points {
        order: 6;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
        font-size: 13px;
        font-weight: 800;
        width: 100%;
        margin: 0 auto;
    }

    .hero-points span {
        position: relative;
        white-space: nowrap;
        padding-right: 20px;
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        min-height: auto;
        display: inline;
    }

    .hero-points span::before {
        content: "";
        position: absolute;
        right: 0;
        top: 6px;
        width: 10px;
        height: 6px;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        transform: rotate(-45deg);
    }

    /* ???? 4-? ? ??????? ??? 3 */
    .hero-points span:nth-child(4) {
        display: none;
    }

    /* ?? Benefits ?? */

    .benefits {
        padding: 44px 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* WhatsApp ????? ? ?? ??? ??? */
    .benefit-card-whatsapp {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        text-align: left;
        min-height: auto;
        padding: 18px 22px;
    }

    .benefit-card-whatsapp .benefit-icon {
        margin: 0;
        flex-shrink: 0;
        width: 56px;
        height: 56px;
    }

    .benefit-card-whatsapp h3 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .benefit-card-whatsapp p {
        font-size: 13px;
    }

    .benefit-card {
        min-height: auto;
        padding: 18px 14px;
    }

    .benefit-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 9px;
    }

    .benefit-icon svg {
        width: 30px;
        height: 30px;
    }

    .benefit-card h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .benefit-card p {
        font-size: 13px;
    }

    /* ?? Services ?? */

    .services {
        padding: 44px 0 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        min-height: auto;
        padding: 22px 20px 20px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 15px;
        max-width: 100%;
    }

    /* ?? Reviews ?? */

    .reviews {
        padding: 52px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 22px 20px;
    }

    .review-card p {
        font-size: 15px;
    }

    /* ?? Contact ?? */

    .contact-section {
        padding: 8px 0 48px;
    }

    .contact-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px 26px;
        border-radius: 18px;
        gap: 20px;
    }

    .contact-content > span {
        font-size: 12px;
    }

    .contact-content h2 {
        font-size: 24px;
        line-height: 1.12;
        max-width: 100%;
    }

    .contact-content p {
        font-size: 14px;
        max-width: 100%;
    }

    .contact-points {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-points span {
        font-size: 13px;
    }

    /* ??? ?????? ??? */
    .contact-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-button {
        min-width: auto;
        width: 100%;
        min-height: 62px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .contact-button small {
        font-size: 11px;
    }

    .contact-button strong {
        font-size: 14px;
        gap: 4px;
    }

    .contact-phone strong {
        font-size: 14px;
    }

    .contact-button img {
        width: 14px;
        height: 14px;
    }

    /* ?? Footer ?? */

    .footer {
        padding: 36px 0 14px;
    }

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

    /* ??? ? ?? ??? ??? */
    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
        margin-top: 10px;
        font-size: 13px;
    }

    .footer-logo {
        width: 105px;
        margin-bottom: 10px;
    }

    .footer-socials {
        margin-top: 12px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }

    .footer-column h4,
    .footer h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-links {
        gap: 6px;
    }

    .footer a {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .footer p {
        font-size: 13px;
    }

    .footer-bottom {
        margin-top: 18px;
        padding-top: 12px;
        font-size: 12px;
    }

    /* ?? Section titles ?? */

    .section-title {
        margin-bottom: 24px;
    }

    .section-title h2 {
        font-size: 25px;
    }
}


/* ?????????????????????????????????????????????
   420px ? Small phones
????????????????????????????????????????????? */

@media (max-width: 420px) {

    .hero h1,
    body.landing-en .hero h1,
    body.landing-he .hero h1 {
        font-size: 30px;
    }

    .hero p,
    body.landing-en .hero p,
    body.landing-he .hero p {
        font-size: 14px;
    }

    .hero-points,
    body.landing-en .hero-points,
    body.landing-he .hero-points {
        gap: 14px;
        font-size: 12px;
    }

    /* Benefits ? ???? ??????? */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card-whatsapp {
        grid-column: 1 / -1;
    }

    /* Footer ? ???? ??????? */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .contact-content h2 {
        font-size: 22px;
    }

    /* ?????? ????? ? ???? ??? ???? */
    .contact-buttons {
        grid-template-columns: 1fr;
    }
}


/* LANGUAGE CHIP (mobile header) */

.lang-chip {
    display: none;
    position: relative;
}

.lang-chip-toggle {
    display: flex;
    align-items: center;
    gap: 5px;

    height: 34px;
    padding: 0 10px;
    border: none;
    border-radius: 10px;

    background: #e6d5bd;
    color: var(--primary-deep);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;

    transition: background 0.15s ease;
}

.lang-chip-toggle:hover {
    background: #dcc6a6;
}

.lang-chip-caret {
    width: 10px;
    height: 6px;
    fill: none;
    stroke: var(--primary-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.lang-chip.open .lang-chip-caret {
    transform: rotate(180deg);
}

.lang-chip-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 100%;

    display: grid;
    gap: 4px;
    padding: 6px;

    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(17, 35, 57, 0.06),
    0 18px 50px rgba(17, 35, 57, 0.18);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s ease,
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    visibility 0.18s ease;

    z-index: 200;
}

.lang-chip.open .lang-chip-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-chip-menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 36px;
    padding: 0 16px;
    border-radius: 9px;

    background: #e6d5bd;
    color: var(--primary-deep);
    font-size: 13px;
    font-weight: 500;

    transition: background 0.15s ease;
}

.lang-chip-menu a:hover {
    background: #dcc6a6;
}

.quote-section {
    scroll-margin-top: 96px;
}

/* hero pattern ? чуть заметнее */
.hero-pattern {
    opacity: 0.55;
}

/* порядок иконок: 1-я = квартира, 2-я = мебель */
.move-option:nth-child(1) span::before {
    background-image: url("../assets/apartment.svg");
}

.move-option:nth-child(2) span::before {
    background-image: url("../assets/furniture.svg");
}