﻿/* ===== Cài đặt chung ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #fff;
}

a {
    text-decoration: none;
}

:root {
    --do: #a20e0e;
    --vang: #c8a122; /* vàng gold */
    --vang-sang: #caa014; /* vàng gold sáng (hover) */
}

/* =========================================================
   LAYOUT: TÁCH HEADER - BODY - FOOTER
========================================================= */
html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header,
.footer,
.copyright {
    flex-shrink: 0;
}

.page-content {
    flex: 1 0 auto;
    padding: 50px 0; /* khoảng cách trên/dưới so với header, footer */
    min-height: 60vh;
}

@media (max-width: 700px) {
    .page-content {
        padding: 30px 0;
    }
}

/* ===== 1. Thanh trên cùng ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px max(4%, calc((100% - 1460px) / 2));
    font-size: 18px;
    background: var(--vang);
}

.chay-chu {
    flex: 1;
    overflow: hidden;
    margin-right: 20px;
}

    .chay-chu p {
        display: inline-block;
        white-space: nowrap;
        padding-left: 100%;
        animation: chay-chu 15s linear infinite;
    }

    .chay-chu:hover p {
        animation-play-state: paused;
    }

@keyframes chay-chu {
    to {
        transform: translateX(-100%);
    }
}

/* ===== 2. Header ===== */
.header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 8px max(4%, calc((100% - 1460px) / 2));
}

.logo {
    position: relative;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 14px;
    overflow: hidden;
    transform: translateY(10px);
    right: 30px;
    transition: transform .4s ease, box-shadow .4s ease;
}

    /* Viền vàng chạy */
    .logo::before {
        content: "";
        position: absolute;
        inset: -120%;
        background: conic-gradient( transparent 0deg, transparent 200deg, var(--vang) 250deg, #fff4b0 280deg, var(--vang) 310deg, transparent 360deg );
        animation: chay-vien 2.5s linear infinite;
    }

    /* Nền trắng */
    .logo::after {
        content: "";
        position: absolute;
        inset: 7px;
        background: #fff;
        border-radius: 10px;
    }

    .logo img {
        position: relative;
        z-index: 2;
        display: block;
        height: 150px;
        width: auto;
        padding: 5px;
    }

@keyframes chay-vien {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo:hover {
    transform: translateY(5px) scale(1.06);
    box-shadow: 0 0 12px rgba(212,175,55,.5), 0 0 25px rgba(212,175,55,.7);
}

    .logo:hover::before {
        animation-duration: 1s;
    }

/* ----- Tên công ty ----- */
.company {
    text-align: center;
}

    /* CÔNG TY TNHH TRANG TRÍ NỘI THẤT: chỉ dày hơn, KHÔNG viền vàng */
    .company h2 {
        font-size: 26px;
        font-weight: 700;
        color: #222;
        -webkit-text-stroke: 0.6px #222;
        text-shadow: none;
    }

    /* HOÀNG LINH: dày hơn + viền vàng hơi sáng */
    .company h1 {
        font-size: 64px;
        line-height: 1.1;
        font-weight: 700;
        color: var(--do);
        -webkit-text-stroke: 2px var(--vang);
        paint-order: stroke fill;
        text-shadow: 0 0 4px rgba(246, 215, 106, .7), 0 0 8px rgba(230, 194, 0, .4);
        transition: .3s;
    }

    .company:hover h1 {
        color: var(--vang);
        transform: scale(1.05);
    }

/* ----- Hotline ----- */
.hotline {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-tel {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--do);
    color: var(--vang-sang);
    font-size: 30px;
    box-shadow: 0 0 0 5px #fbe3e5;
}

/* Chữ "HOTLINE TƯ VẤN" giữ nguyên */
.hotline i {
    display: block;
    font-size: 13px;
    font-weight: bold;
}

/* SỐ ĐIỆN THOẠI: vàng gold, hover đỏ */
.hotline a {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--vang) !important;
    transition: color .3s ease, transform .3s ease;
}

    .hotline a:hover {
        color: var(--do) !important;
        transform: translateX(8px);
    }

/* =========================================================
   3. MENU
========================================================= */
.menu-wrap {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    margin-top: 10px;
    padding: 5px;
    border-radius: 32px;
    overflow: visible;
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212,175,55,.6), 0 0 18px rgba(212,175,55,.35), 0 3px 12px rgba(0,0,0,.18);
    box-sizing: border-box;
}

.menu {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 14px 35px;
    background: var(--do);
    border-radius: 24px;
    box-sizing: border-box;
}

    /* Các mục menu chính */
    .menu > a {
        position: relative;
        padding: 0 42px 7px;
        flex: 0 0 auto;
        text-align: center;
        color: #fff;
        font-weight: bold;
        white-space: nowrap;
        text-decoration: none;
        transition: color .3s ease, transform .3s ease, text-shadow .3s ease;
    }

        /* Gạch gold ngăn cách */
        .menu > a + a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 2px;
            bottom: 7px;
            width: 1px;
            background: #d4af37;
            box-shadow: 0 0 4px rgba(212,175,55,.6);
        }

        /* Gạch chân menu */
        .menu > a::after {
            content: "";
            position: absolute;
            left: 35%;
            bottom: 0;
            width: 0;
            height: 3px;
            background: #f6d76a;
            border-radius: 10px;
            box-shadow: 0 0 5px rgba(246,215,106,.7);
            transition: width .3s ease, left .3s ease;
        }

        /* Hover + Active (trang đang mở) */
        .menu > a:hover,
        .menu > a.active {
            color: #f6d76a;
            transform: translateY(-2px);
            text-shadow: 0 0 6px rgba(246,215,106,.45);
        }

            .menu > a:hover::after,
            .menu > a.active::after {
                width: 30%;
                left: 35%;
            }

/* ----- Dropdown SẢN PHẨM (nếu dùng lại) ----- */
.menu-dropdown {
    position: relative;
    z-index: 10000;
    flex: 0 0 auto;
    height: 100%;
}

    .menu-dropdown .dropdown-title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0 42px 7px;
        color: #fff;
        font-weight: bold;
        white-space: nowrap;
        text-decoration: none;
        cursor: pointer;
        transition: color .3s ease, transform .3s ease, text-shadow .3s ease;
    }

        .menu-dropdown .dropdown-title::after {
            content: "";
            position: absolute;
            left: 35%;
            bottom: 0;
            width: 0;
            height: 3px;
            background: #f6d76a;
            border-radius: 10px;
            box-shadow: 0 0 5px rgba(246,215,106,.7);
            transition: width .3s ease, left .3s ease;
        }

        .menu-dropdown:hover .dropdown-title,
        .menu-dropdown .dropdown-title.active {
            color: #f6d76a;
            transform: translateY(-2px);
            text-shadow: 0 0 6px rgba(246,215,106,.45);
        }

            .menu-dropdown:hover .dropdown-title::after,
            .menu-dropdown .dropdown-title.active::after {
                width: 30%;
                left: 35%;
            }

.mui-ten {
    font-size: 16px;
    line-height: 1;
    transition: transform .3s ease;
}

.menu-dropdown:hover .mui-ten {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: calc(50% + 100px);
    width: 240px;
    padding: 8px 0;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(212,175,55,.8);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.20), 0 0 12px rgba(212,175,55,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    z-index: 99999;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

    .dropdown-content::before {
        content: "";
        position: absolute;
        top: -7px;
        left: 50%;
        width: 13px;
        height: 13px;
        background: rgba(255,255,255,.72);
        border-left: 1px solid rgba(212,175,55,.8);
        border-top: 1px solid rgba(212,175,55,.8);
        transform: translateX(-50%) rotate(45deg);
    }

.menu-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    display: block;
    width: 100%;
    padding: 10px 22px;
    box-sizing: border-box;
    color: #222 !important;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
    background: transparent;
    border-radius: 20px;
    border-bottom: 1px solid rgba(212,175,55,.22);
    transition: background .25s ease, color .25s ease, padding-left .25s ease;
}

/* 2 thanh gold hai bên SẢN PHẨM */
.menu-dropdown::before,
.menu-dropdown::after {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 7px;
    width: 1px;
    background: #d4af37;
    box-shadow: 0 0 4px rgba(212,175,55,.7);
    pointer-events: none;
}

.menu-dropdown::before {
    left: 0;
}

.menu-dropdown::after {
    right: 0;
}

/* Xóa gạch của menu chính trong dropdown */
.dropdown-content a::before,
.dropdown-content a::after {
    display: none !important;
    content: none !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(162, 3, 22, 0.88);
    color: #fff !important;
    padding-left: 28px;
}

.dropdown-content::-webkit-scrollbar {
    width: 5px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,.65);
    border-radius: 10px;
}

/* Khi menu dính trên đầu */
.menu-wrap.dinh {
    margin-top: 0;
    background: #d4af37;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(212,175,55,.45);
}

    .menu-wrap.dinh .menu {
        width: 100%;
        border-radius: 0;
    }

.menu-wrap:hover {
    box-shadow: 0 0 10px rgba(212,175,55,.65), 0 0 20px rgba(212,175,55,.3), 0 4px 15px rgba(0,0,0,.2);
}

/* Responsive menu */
@media (max-width: 1200px) {
    .menu > a {
        padding: 0 28px 7px;
    }

    .menu-dropdown .dropdown-title {
        padding: 0 28px 7px;
    }

    .dropdown-content {
        left: calc(50% + 80px);
    }
}

@media (max-width: 900px) {
    .menu {
        padding: 12px 15px;
    }

        .menu > a {
            padding: 0 18px 7px;
            font-size: 14px;
        }

    .menu-dropdown .dropdown-title {
        padding: 0 18px 7px;
        font-size: 14px;
    }

    .dropdown-content {
        left: calc(50% + 60px);
        width: 220px;
    }
}

@media (max-width: 700px) {
    .menu-wrap {
        margin-top: 10px;
        border-radius: 20px;
    }

    .menu {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px 10px;
        scrollbar-width: none;
        border-radius: 17px;
    }

        .menu::-webkit-scrollbar {
            display: none;
        }

        .menu > a {
            padding: 0 18px 6px;
            font-size: 13px;
        }

    .menu-dropdown .dropdown-title {
        padding: 0 18px 6px;
        font-size: 13px;
    }

    .dropdown-content {
        width: 210px;
        left: calc(50% + 50px);
        max-height: 420px;
    }
}

/* ===== 4. Banner ===== */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform .4s ease;
}

    .slides img {
        flex: 0 0 100%;
        width: 100%;
        height: 600px;
        display: block;
        object-fit: cover;
        object-position: center;
    }

/* Nút chuyển ảnh */
.nut {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #000000;
    font-size: 32px;
    font-weight: 300;
    line-height: 46px;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, color .3s ease;
}

    .nut:hover {
        background: var(--do);
        color: #fff;
        transform: translateY(-50%) scale(1.15);
    }

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Dấu chấm */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

    .dots span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,.6);
        cursor: pointer;
        transition: .3s;
    }

        .dots span:hover {
            background: var(--vang-sang);
            transform: scale(1.3);
        }

        .dots span.on {
            width: 30px;
            border-radius: 10px;
            background: var(--vang);
        }

/* ===== 5. Dịch vụ ===== */
.dichvu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
    width: min(1300px, 92%);
    margin: 70px auto;
}

    .dichvu .tieu-de {
        grid-column: 1 / -1;
        text-align: center;
    }

.the {
    position: relative;
    padding-left: 44px;
    padding-top: 12px;
}

    .the::before {
        content: "TRANG TRÍ NỘI THẤT HOÀNG LINH";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 78px;
        width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        border: 1px solid var(--do);
        border-radius: 0 0 0 20px;
        color: var(--do);
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .the img {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
        transition: transform .5s;
    }

    .the:hover img {
        transform: translateY(-6px) scale(1.03);
    }

    .the p {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 16px;
        font-family: Times New Roman, serif;
        font-size: 15px;
        font-weight: bold;
        text-transform: uppercase;
        color: #333;
        transition: .3s;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .the b {
        font-size: 34px;
        font-weight: 300;
        color: var(--do);
        flex-shrink: 0;
    }

        .the b::after {
            content: "──▸";
            margin-left: 8px;
            font-size: 14px;
            letter-spacing: -2px;
        }

    .the:hover p {
        color: var(--do);
    }

/* ===== 6. Dự án (nền kem) ===== */
.khu-kem {
    --do: #a20e0e;
    --vang: #c9a227;
    padding: 60px 0;
    background: #fbf5ee;
}

.khung {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.tieu-de {
    text-align: center;
    margin-bottom: 36px;
}

    .tieu-de h2 {
        font-family: 'Playfair Display', serif;
        font-size: 32px;
        color: var(--do);
        text-transform: uppercase;
    }

    .tieu-de p {
        margin-top: 6px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--vang);
        text-transform: uppercase;
    }

.san-khau {
    position: relative;
    height: 440px;
    overflow: hidden;
    touch-action: pan-y;
}

.luoi-duan {
    position: relative;
    width: 100%;
    height: 100%;
}

.duan {
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #999;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .6s, filter .6s, box-shadow .6s;
}

    .duan img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s;
    }

    .duan[data-vt="giua"] {
        z-index: 3;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    }

    .duan[data-vt="trai"] {
        z-index: 2;
        transform: translateX(-90%) scale(.7);
        filter: brightness(.6);
        cursor: pointer;
    }

    .duan[data-vt="phai"] {
        z-index: 2;
        transform: translateX(90%) scale(.7);
        filter: brightness(.6);
        cursor: pointer;
    }

    .duan[data-vt="an"] {
        z-index: 1;
        opacity: 0;
        pointer-events: none;
        transform: scale(.5);
    }

    .duan[data-vt="trai"]:hover,
    .duan[data-vt="phai"]:hover {
        filter: brightness(.9);
    }

    .duan .nd {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 60px 20px 18px;
        color: #fff;
        background: linear-gradient(transparent, rgba(0, 0, 0, .75));
        transition: .4s;
    }

    .duan h3 {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.4;
    }

    .duan p {
        max-height: 0;
        overflow: hidden;
        font-size: 13px;
        opacity: 0;
        transition: .4s;
    }

    .duan[data-vt="giua"]:hover img {
        transform: scale(1.08);
    }

    .duan[data-vt="giua"]:hover .nd {
        background: linear-gradient(transparent, rgba(215, 0, 30, .95) 70%);
        padding-top: 130px;
    }

    .duan[data-vt="giua"]:hover p {
        max-height: 70px;
        margin-top: 6px;
        opacity: 1;
    }

    .duan[data-vt="trai"] .nd,
    .duan[data-vt="phai"] .nd {
        opacity: 0;
    }

/* Nút chuyển hình (carousel dự án) */
.nut {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: background .25s, transform .25s;
}

    .nut svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: var(--do);
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke .25s;
    }

    .nut:hover {
        background: var(--do);
        transform: scale(1.08);
    }

        .nut:hover svg {
            stroke: #fff;
        }

    .nut:focus-visible {
        outline: 3px solid var(--vang);
        outline-offset: 2px;
    }

.nut-truoc {
    left: 8px;
}

.nut-sau {
    right: 8px;
}

@media (max-width: 800px) {
    .san-khau {
        height: 340px;
    }

    .duan {
        left: 11%;
        width: 78%;
    }

        .duan[data-vt="trai"] {
            transform: translateX(-100%) scale(.8);
            opacity: .6;
        }

        .duan[data-vt="phai"] {
            transform: translateX(100%) scale(.8);
            opacity: .6;
        }

    .nut {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .nut-truoc {
        left: 4px;
    }

    .nut-sau {
        right: 4px;
    }

    .tieu-de h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .duan, .duan img, .duan .nd, .duan p {
        transition: none;
    }
}

/* =========================================================
   8. QUY TRÌNH LÀM VIỆC
========================================================= */
.quytrinh {
    --do: #a20e0e;
    --vang: #e6c200;
    --vang-chu: #c9a227;
    position: relative;
    padding: 56px 20px 48px;
    color: #fff;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("img/10.jpg") center / cover no-repeat;
}

.quytrinh-tieude h2 {
    margin: 0 0 6px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--vang-chu);
}

.quytrinh-tieude p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--vang-chu);
}

.buoc-luoi {
    width: 100%;
    max-width: 1450px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.buoc {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    cursor: pointer;
    transition: transform .4s ease;
}

    .buoc:hover {
        transform: translateY(-5px);
    }

.tron {
    position: relative;
    width: 156px;
    height: 156px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--do);
    display: grid;
    place-items: center;
    transition: transform .4s ease, box-shadow .4s ease;
}

    .tron::before {
        content: "";
        position: absolute;
        inset: -18px;
        border: 1px dashed var(--vang);
        border-radius: 50%;
        clip-path: inset(0 0 50% 0);
        pointer-events: none;
        transition: border-color .4s ease, filter .4s ease, transform .4s ease;
    }

.buoc:nth-child(even) .tron::before {
    clip-path: inset(50% 0 0 0);
}

.tron svg {
    width: 68px;
    height: 68px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .4s ease, filter .4s ease;
}

.buoc:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 70px;
    right: -9px;
    z-index: 5;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vang);
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.cham {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--do);
    border: 4px solid var(--vang);
    box-sizing: content-box;
    transition: transform .4s ease, box-shadow .4s ease;
}

.buoc h4 {
    width: max-content;
    margin: 16px 0 0;
    padding: 14px 10px 0;
    border-top: 1px solid var(--vang);
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap !important;
    overflow: visible;
    text-align: center;
    box-sizing: border-box;
    transition: color .4s ease, text-shadow .4s ease, transform .4s ease, border-color .4s ease;
}

/* Hover + chọn */
.buoc:hover .tron,
.buoc.chon .tron {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(230,194,0,.15), 0 0 25px rgba(230,194,0,.55), 0 0 45px rgba(232,0,28,.35);
}

    .buoc:hover .tron svg,
    .buoc.chon .tron svg {
        transform: scale(1.12);
        filter: drop-shadow(0 0 5px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.5));
    }

    .buoc:hover .tron::before,
    .buoc.chon .tron::before {
        border-color: #fff;
        filter: drop-shadow(0 0 5px rgba(230,194,0,.9));
        transform: scale(1.04);
    }

.buoc:hover .cham,
.buoc.chon .cham {
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--vang), 0 0 18px rgba(230,194,0,.8), 0 0 28px rgba(230,194,0,.4);
}

.buoc:hover h4,
.buoc.chon h4 {
    color: var(--vang);
    text-shadow: 0 0 6px rgba(230,194,0,.5), 0 0 12px rgba(230,194,0,.25);
    transform: translateY(-3px);
    border-top-color: #fff;
    white-space: nowrap !important;
}

.buoc:hover:not(:last-child)::after,
.buoc.chon:not(:last-child)::after {
    background: #fff;
    color: var(--do);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--vang), 0 0 15px rgba(230,194,0,.7);
}

.buoc.chon {
    transform: translateY(-5px);
}

@keyframes sang-vong {
    0% {
        box-shadow: 0 0 0 5px rgba(230,194,0,.10), 0 0 15px rgba(230,194,0,.25);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(230,194,0,.20), 0 0 30px rgba(230,194,0,.55);
    }

    100% {
        box-shadow: 0 0 0 5px rgba(230,194,0,.10), 0 0 15px rgba(230,194,0,.25);
    }
}

.buoc.chon .tron {
    animation: sang-vong 2s ease-in-out infinite;
}

@media (max-width: 1100px) {
    .buoc-luoi {
        max-width: 1200px;
        gap: 3px;
    }

    .tron {
        width: 135px;
        height: 135px;
    }

        .tron svg {
            width: 60px;
            height: 60px;
        }

    .buoc h4 {
        font-size: 13px;
        white-space: nowrap !important;
    }
}

@media (max-width: 860px) {
    .quytrinh {
        overflow-x: auto;
    }

    .buoc-luoi {
        width: 850px;
        max-width: none;
        grid-template-columns: repeat(5, minmax(160px, 1fr));
        gap: 5px;
    }

    .tron {
        width: 130px;
        height: 130px;
    }

        .tron svg {
            width: 55px;
            height: 55px;
        }

    .buoc h4 {
        font-size: 12px;
        white-space: nowrap !important;
    }

    .buoc:not(:last-child)::after {
        display: block;
    }
}

@media (max-width: 480px) {
    .quytrinh {
        padding: 45px 10px 40px;
        overflow-x: auto;
    }

    .quytrinh-tieude h2 {
        font-size: 26px;
    }

    .quytrinh-tieude p {
        font-size: 11px;
    }

    .buoc-luoi {
        width: 850px;
        max-width: none;
        margin-top: 40px;
        grid-template-columns: repeat(5, 160px);
        gap: 5px;
    }

    .tron {
        width: 120px;
        height: 120px;
    }

        .tron svg {
            width: 52px;
            height: 52px;
        }

    .buoc h4 {
        font-size: 12px;
        white-space: nowrap !important;
    }

    .cham {
        margin-top: 35px;
    }
}

/* ===== Đăng ký tư vấn ===== */
.dangky {
    --do: #a20e0e;
    --vang: #e6c200;
    --vang-chu: #c9a227;
    margin-top: 10px;
    padding: 64px 20px;
    color: #fff;
    background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url("img/11.jpg") center / cover no-repeat;
}

.dangky-noidung {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.dangky-chu h2 {
    margin: 0 0 14px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--vang-chu);
}

.dangky-chu p {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.6;
}

.dangky-chu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dangky-chu li {
    position: relative;
    padding: 6px 0 6px 26px;
    font-weight: 600;
}

    .dangky-chu li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 11px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--do);
        border: 3px solid var(--vang);
        box-sizing: content-box;
    }

.dangky-form {
    padding: 28px;
    border: 1px solid var(--vang);
    border-radius: 12px;
    background: rgba(0, 0, 0, .45);
}

    .dangky-form label {
        display: block;
        margin: 0 0 6px;
        font-size: 14px;
        font-weight: 600;
    }

    .dangky-form input,
    .dangky-form select,
    .dangky-form textarea {
        width: 100%;
        margin: 0 0 16px;
        padding: 11px 14px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 8px;
        background: rgba(255, 255, 255, .95);
        color: #222;
        font: inherit;
        box-sizing: border-box;
    }

    .dangky-form textarea {
        resize: vertical;
    }

        .dangky-form input:focus,
        .dangky-form select:focus,
        .dangky-form textarea:focus {
            outline: 2px solid var(--vang);
            outline-offset: 1px;
        }

    .dangky-form button {
        width: 100%;
        padding: 14px;
        border: 0;
        border-radius: 999px;
        background: var(--do);
        color: #fff;
        font: inherit;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        transition: background .2s;
    }

        .dangky-form button:hover {
            background: #a20e0e;
        }

        .dangky-form button:focus-visible {
            outline: 2px solid var(--vang);
            outline-offset: 3px;
        }

@media (max-width: 800px) {
    .dangky-noidung {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== 10. Chân trang ===== */
.footer {
    padding: 44px 20px 56px;
    color: #fff;
    background: radial-gradient(circle at 12% 8%, rgba(255, 110, 90, .55), transparent 38%), radial-gradient(circle at 85% 90%, rgba(255, 60, 60, .35), transparent 40%), linear-gradient(135deg, #a20e0e, #a80a16);
}

.footer-luoi {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.1fr;
    gap: 56px;
}

.footer h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--vang);
}

    .footer h3::after {
        content: "";
        display: block;
        width: 36px;
        height: 2px;
        margin-top: 8px;
        background: var(--vang);
    }

    .footer h3.gian {
        margin-top: 26px;
    }

.footer p {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

    .footer p b {
        font-weight: 700;
    }

.footer .sdt span {
    display: inline-block;
    vertical-align: top;
}

.footer .sdt a {
    display: block;
    margin-bottom: 14px;
}

    .footer .sdt a:last-child {
        margin-bottom: 0;
    }

.footer p a {
    color: #fff;
    text-decoration: none;
}

    .footer p a:hover {
        color: var(--vang);
    }

    .footer p a.web {
        color: #5b6bff;
    }

        .footer p a.web:hover {
            color: var(--vang);
        }

.footer a.cs {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

    .footer a.cs:hover {
        color: var(--vang);
        transform: translateX(4px);
    }

.mxh {
    display: flex;
    gap: 14px;
}

    .mxh a {
        width: 32px;
        height: 32px;
        display: block;
        transition: transform .2s;
    }

        .mxh a:hover {
            transform: scale(1.12);
        }

    .mxh svg {
        width: 100%;
        height: 100%;
        fill: #fff;
    }

.ban-do {
    height: 226px;
    overflow: hidden;
    border-radius: 14px;
    background: #e7da1c;
}

    .ban-do iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

/* Thanh copyright */
.copyright {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 14px max(20px, calc((100% - 1100px) / 2));
    background: var(--do);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* Nút liên hệ nổi */
.noi {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .noi a {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
        transition: transform .2s;
    }

        .noi a:hover {
            transform: scale(1.1);
        }

    .noi svg {
        width: 26px;
        height: 26px;
        fill: #fff;
    }

    .noi .tt {
        background: #111;
    }

    .noi .fb {
        background: #1877f2;
    }

    .noi .bd {
        background: var(--do);
    }

/* Nút lên đầu trang */
.len-dau {
    position: fixed;
    right: 18px;
    bottom: 28px;
    z-index: 50;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--do);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}

    .len-dau.hien {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .len-dau:hover {
        background: #a20e0e;
    }

    .noi a:focus-visible, .len-dau:focus-visible {
        outline: 3px solid var(--vang);
        outline-offset: 2px;
    }

@media (max-width: 860px) {
    .footer-luoi {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }
}

.page-content {
    position: relative !important;
    display: flow-root !important; /* ôm trọn cả phần tử float */
    padding: 50px 0 !important;
    min-height: 60vh !important;
}

main[role="main"] {
    position: relative !important;
    display: block !important;
}


/* =====================================================
   ====== PHẦN THÊM: ĐIỆN THOẠI + IPAD (layout chung) ======
   ===================================================== */

/* =====================================================
   CSS THÊM - ĐIỆN THOẠI + IPAD  (layout chung: header, menu,
   banner, dịch vụ, dự án, quy trình, đăng ký, footer, nút nổi)
   CÁCH DÙNG: dán nguyên đoạn này vào CUỐI file CSS hiện tại.
   KHÔNG xóa gì ở file cũ. Đoạn này nằm sau nên sẽ ghi đè các
   @media cũ ở chỗ cần thiết.

   GHI CHÚ: các khối 1200px / 1024px chỉ chạy trên máy cảm ứng (iPad),
   nên màn hình máy tính / laptop giữ nguyên giao diện gốc của bạn.

   Điểm dừng:
   - iPad ngang (cảm ứng)    : <= 1200px, <= 1024px
   - iPad dọc                : <= 900px
   - Điện thoại lớn          : <= 700px
   - Điện thoại              : <= 560px, <= 480px
   - Điện thoại bé           : <= 380px
   ===================================================== */

/* Chỉ áp dụng cho màn hình nhỏ (không đụng giao diện máy tính) */
@media (max-width: 1024px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        /* clip thay vì hidden để menu sticky vẫn dính trên đầu trang */
        overflow-x: clip;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ---------- Cảm ứng: bỏ hover bị "dính" ---------- */
@media (hover: none) {
    .logo:hover {
        transform: translateY(10px);
        box-shadow: none;
    }

    .company:hover h1 {
        color: var(--do);
        transform: none;
    }

    .hotline a:hover {
        color: var(--vang) !important;
        transform: none;
    }

    .the:hover img {
        transform: none;
    }

    .the:hover p {
        color: #333;
    }

    .buoc:hover {
        transform: none;
    }

    .footer a.cs:hover,
    .mxh a:hover,
    .noi a:hover {
        transform: none;
    }

    .nut:hover {
        background: #fff;
        transform: none;
    }

        .nut:hover svg {
            stroke: var(--do);
        }
}

/* ================= <= 1200px ================= */
@media (max-width: 1200px) and (hover: none) and (pointer: coarse) {
    .logo {
        right: 10px;
    }

        .logo img {
            height: 120px;
        }

    .company h2 {
        font-size: 22px;
    }

    .company h1 {
        font-size: 52px;
    }

    .icon-tel {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .hotline a {
        font-size: 19px;
    }

    .slides img {
        height: 480px;
    }

    .dichvu {
        gap: 20px;
        margin: 56px auto;
    }

    .the {
        padding-left: 36px;
    }

        .the::before {
            width: 30px;
            font-size: 11px;
        }

        .the p {
            font-size: 13px;
            white-space: normal;
            flex-wrap: wrap;
        }

    .san-khau {
        height: 400px;
    }

    .footer-luoi {
        gap: 36px;
    }
}

/* ================= <= 1024px : iPad ================= */
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    .topbar {
        font-size: 16px;
    }

    .logo img {
        height: 100px;
    }

    .company h2 {
        font-size: 18px;
    }

    .company h1 {
        font-size: 44px;
        -webkit-text-stroke-width: 1.5px;
    }

    .slides img {
        height: 420px;
    }

    .khu-kem {
        padding: 50px 0;
    }

    .san-khau {
        height: 380px;
    }

    .quytrinh {
        padding: 48px 20px 44px;
    }

    .page-content {
        padding: 40px 0 !important;
    }
}

/* ================= <= 900px : iPad dọc ================= */
@media (max-width: 900px) {
    .topbar {
        padding-top: 5px;
        padding-bottom: 5px;
        font-size: 15px;
    }

    /* Header: logo - tên công ty - hotline vừa nội dung */
    .header {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .logo {
        right: 0;
        transform: none;
        padding: 6px;
    }

        .logo::after {
            inset: 5px;
        }

        .logo img {
            height: 84px;
            padding: 3px;
        }

    .company h2 {
        font-size: 15px;
    }

    .company h1 {
        font-size: 36px;
    }

    .icon-tel {
        width: 44px;
        height: 44px;
        font-size: 22px;
        box-shadow: 0 0 0 4px #fbe3e5;
    }

    .hotline {
        gap: 8px;
    }

        .hotline i {
            font-size: 11px;
        }

        .hotline a {
            font-size: 16px;
        }

    /* Menu: thu gọn khoảng cách để vừa một hàng */
    .menu {
        padding: 11px 10px;
    }

        .menu > a,
        .menu-dropdown .dropdown-title {
            padding: 0 13px 7px;
            font-size: 13px;
        }

    .slides img {
        height: 360px;
    }

    .nut {
        width: 42px;
        height: 42px;
        margin-top: -21px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    /* Dịch vụ: 2 cột */
    .dichvu {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
        margin: 48px auto;
    }

    .the {
        padding-left: 40px;
    }

        .the::before {
            width: 32px;
        }

        .the p {
            font-size: 14px;
        }

    .tieu-de h2 {
        font-size: 28px;
    }

    .quytrinh-tieude h2,
    .dangky-chu h2 {
        font-size: 32px;
    }

    /* Quy trình: 5 bước vừa một hàng, không cuộn ngang nữa */
    .quytrinh {
        overflow-x: visible;
    }

    .buoc-luoi {
        width: 100%;
        max-width: 100%;
        margin-top: 44px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .tron {
        width: 104px;
        height: 104px;
    }

        .tron::before {
            inset: -12px;
        }

        .tron svg {
            width: 46px;
            height: 46px;
        }

    .buoc:not(:last-child)::after {
        top: 44px;
    }

    .cham {
        margin-top: 30px;
    }

    .buoc h4,
    .buoc:hover h4,
    .buoc.chon h4 {
        width: auto;
        max-width: 100%;
        padding: 12px 4px 0;
        font-size: 11.5px;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* Đăng ký */
    .dangky {
        padding: 52px 24px;
    }

    .dangky-noidung {
        gap: 28px;
    }

    /* Footer: cột đầu rộng cả hàng, hai cột còn lại nằm cạnh nhau */
    .footer-luoi {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
    }

        .footer-luoi > :first-child {
            grid-column: 1 / -1;
        }

    .copyright {
        flex-direction: row;
        text-align: left;
    }
}

/* ================= <= 700px : điện thoại lớn ================= */
@media (max-width: 700px) {
    .topbar {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .chay-chu {
        margin-right: 0;
    }

    /* Header xếp dọc, căn giữa */
    .header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 6px;
        padding: 10px 12px 4px;
        text-align: center;
    }

    .logo {
        justify-self: center;
        transform: none;
    }

        .logo img {
            height: 76px;
        }

    .company h2 {
        font-size: 13px;
        letter-spacing: .3px;
    }

    .company h1 {
        font-size: 34px;
    }

    .hotline {
        justify-self: center;
    }

    /* Menu: vuốt ngang (khối cũ), vì container cuộn nên ẩn dropdown
       (bị cắt) - bấm "Sản phẩm" sẽ vào thẳng trang danh sách */
    .menu-wrap {
        margin-left: 8px;
        margin-right: 8px;
        width: auto;
        padding: 4px;
    }

    .menu-dropdown .dropdown-content,
    .menu-dropdown .mui-ten {
        display: none;
    }

    .menu > a,
    .menu-dropdown .dropdown-title {
        padding: 0 16px 6px;
        font-size: 13px;
    }

    .menu {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

        .menu > a,
        .menu-dropdown {
            scroll-snap-align: start;
        }

    .slides img {
        height: 280px;
    }

    .dots {
        bottom: 10px;
        gap: 8px;
    }

        .dots span {
            width: 10px;
            height: 10px;
        }

            .dots span.on {
                width: 24px;
            }

    .dichvu {
        gap: 24px 16px;
        margin: 40px auto;
    }

    .khu-kem {
        padding: 40px 0;
    }

    .tieu-de {
        margin-bottom: 26px;
    }

        .tieu-de h2 {
            font-size: 24px;
        }

    .san-khau {
        height: 300px;
    }

    /* Quy trình: xếp lưới, không cần cuộn ngang */
    .quytrinh {
        padding: 44px 14px 40px;
    }

    .buoc-luoi {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 36px 10px;
        margin-top: 40px;
    }

    .buoc {
        flex: 0 0 calc(33.333% - 10px);
    }

        .buoc:not(:last-child)::after {
            display: none;
        }

    .tron {
        width: 96px;
        height: 96px;
    }

    .cham {
        display: none;
    }

    .buoc h4,
    .buoc:hover h4,
    .buoc.chon h4 {
        margin-top: 26px;
        font-size: 12px;
    }

    /* Đăng ký */
    .dangky {
        padding: 44px 16px;
    }

    .dangky-chu h2 {
        font-size: 28px;
    }

    .dangky-chu p {
        font-size: 15px;
    }

    .dangky-form {
        padding: 22px 18px;
    }

        /* Chữ >= 16px để iPhone không tự phóng to khi bấm vào ô nhập */
        .dangky-form input,
        .dangky-form select,
        .dangky-form textarea {
            font-size: 16px;
        }

    /* Footer */
    .footer {
        padding: 36px 16px 44px;
    }

    .footer-luoi {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ban-do {
        height: 240px;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
        font-size: 12px;
    }

    /* Nút nổi nhỏ gọn, tránh tai thỏ / thanh home iPhone */
    .noi {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(80px + env(safe-area-inset-bottom));
        gap: 8px;
    }

        .noi a {
            width: 42px;
            height: 42px;
        }

    .len-dau {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(22px + env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
    }

    .page-content {
        padding: 28px 0 !important;
    }
}

/* ================= <= 560px ================= */
@media (max-width: 560px) {
    /* Dịch vụ: bỏ nhãn dọc cho ảnh đủ rộng */
    .dichvu {
        gap: 22px 12px;
    }

    .the {
        padding-left: 0;
        padding-top: 0;
    }

        .the::before {
            display: none;
        }

        .the p {
            margin-top: 10px;
            gap: 6px;
            font-size: 12px;
        }

        .the b {
            font-size: 26px;
        }

            .the b::after {
                display: none;
            }
}

/* ================= <= 480px : điện thoại ================= */
@media (max-width: 480px) {
    .slides img {
        height: 230px;
    }

    .nut {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

        .nut svg {
            width: 18px;
            height: 18px;
        }

    .prev {
        left: 6px;
    }

    .next {
        right: 6px;
    }

    .company h1 {
        font-size: 30px;
    }

    .san-khau {
        height: 260px;
    }

    .duan h3 {
        font-size: 15px;
    }

    .duan .nd {
        padding: 40px 14px 14px;
    }

    .quytrinh-tieude h2,
    .dangky-chu h2 {
        font-size: 24px;
    }

    .buoc {
        flex: 0 0 calc(50% - 10px);
    }

    .tron {
        width: 104px;
        height: 104px;
    }

        .tron svg {
            width: 46px;
            height: 46px;
        }
}

/* ================= <= 380px : điện thoại bé ================= */
@media (max-width: 380px) {
    .company h1 {
        font-size: 26px;
        -webkit-text-stroke-width: 1.2px;
    }

    .company h2 {
        font-size: 12px;
    }

    .hotline a {
        font-size: 15px;
    }

    .slides img {
        height: 200px;
    }

    .tieu-de h2 {
        font-size: 21px;
    }

    .dangky-form {
        padding: 18px 14px;
    }
}

/* ================= XOAY NGANG ĐIỆN THOẠI + TAI THỎ ================= */
@media (orientation: landscape) and (max-height: 480px) and (max-width: 950px) {
    .topbar,
    .header {
        padding-left: max(4%, env(safe-area-inset-left));
        padding-right: max(4%, env(safe-area-inset-right));
    }

    .slides img {
        height: 240px;
    }

    .san-khau {
        height: 240px;
    }
}


/* =====================================================
   HEADER HOÀNG LINH - BẢN RESPONSIVE ĐÃ GỘP
   Giữ nguyên CSS phía trên; chỉ thay phần vá header cuối file.
   Máy tính không bị ảnh hưởng.
   ===================================================== */

/* iPad và điện thoại ngang: logo trái - tên giữa - hotline phải */
@media (min-width: 701px) and (max-width: 900px) {
    .header {
        display: grid !important;
        grid-template-columns: minmax(100px, 0.9fr) minmax(220px, 1.8fr) minmax(150px, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 12px !important;
    }

        .header .logo {
            right: 0 !important;
            transform: none !important;
            justify-self: center !important;
            padding: 5px !important;
            min-width: 0;
        }

            .header .logo img {
                width: 100% !important;
                max-width: 150px !important;
                height: auto !important;
                max-height: 95px !important;
                object-fit: contain;
            }

        .header .company {
            text-align: center !important;
            min-width: 0;
        }

            .header .company h2 {
                font-size: clamp(12px, 1.7vw, 16px) !important;
                line-height: 1.35 !important;
            }

            .header .company h1 {
                font-size: clamp(27px, 4vw, 38px) !important;
                line-height: 1.1 !important;
                -webkit-text-stroke-width: 1px !important;
            }

        .header .hotline {
            gap: 7px !important;
            min-width: 0;
        }

        .header .icon-tel {
            width: 38px !important;
            height: 38px !important;
            font-size: 20px !important;
        }

        .header .hotline i {
            font-size: 10px !important;
        }

        .header .hotline a {
            font-size: 14px !important;
            line-height: 1.35 !important;
            white-space: nowrap !important;
        }
}

/* Điện thoại lớn: vẫn ưu tiên bố cục ngang như website */
@media (min-width: 481px) and (max-width: 700px) {
    .topbar {
        width: 100%;
        padding: 7px 10px !important;
        font-size: 12px !important;
        text-align: center;
    }

    .chay-chu {
        margin-right: 0 !important;
    }

    .header {
        display: grid !important;
        grid-template-columns: minmax(90px, 0.85fr) minmax(180px, 1.6fr) minmax(125px, 1fr) !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 10px 8px !important;
    }

        .header .logo {
            justify-self: center !important;
            right: 0 !important;
            padding: 3px !important;
            transform: none !important;
            min-width: 0;
        }

            .header .logo img {
                width: 100% !important;
                max-width: 115px !important;
                height: auto !important;
                max-height: 78px !important;
                padding: 2px !important;
                object-fit: contain;
            }

        .header .company {
            min-width: 0;
            text-align: center !important;
        }

            .header .company h2 {
                font-size: clamp(9px, 2vw, 12px) !important;
                line-height: 1.35 !important;
                letter-spacing: 0 !important;
            }

            .header .company h1 {
                font-size: clamp(21px, 5vw, 30px) !important;
                line-height: 1.15 !important;
                -webkit-text-stroke-width: 1px !important;
            }

        .header .hotline {
            justify-self: center !important;
            gap: 5px !important;
            min-width: 0;
        }

        .header .icon-tel {
            width: 30px !important;
            height: 30px !important;
            font-size: 16px !important;
            box-shadow: 0 0 0 2px #fbe3e5 !important;
        }

        .header .hotline i {
            font-size: 9px !important;
        }

        .header .hotline a {
            font-size: 11px !important;
            line-height: 1.4 !important;
            white-space: nowrap !important;
        }
}

/* Điện thoại nhỏ: logo và tên ở hàng đầu, hotline ở hàng kế tiếp */
@media (max-width: 480px) {
    .topbar {
        width: 100%;
        padding: 7px 10px !important;
        font-size: 12px !important;
        text-align: center;
    }

    .chay-chu {
        margin-right: 0 !important;
    }

    .header {
        display: grid !important;
        grid-template-columns: minmax(80px, 0.8fr) minmax(0, 1.6fr) !important;
        grid-template-areas: "logo company" "hotline hotline" !important;
        align-items: center !important;
        justify-items: center !important;
        gap: 8px !important;
        padding: 10px 8px !important;
        text-align: center !important;
    }

        .header .logo {
            grid-area: logo;
            justify-self: center !important;
            right: 0 !important;
            padding: 3px !important;
            transform: none !important;
            min-width: 0;
        }

            .header .logo::after {
                inset: 4px !important;
            }

            .header .logo img {
                display: block;
                width: 100% !important;
                max-width: 115px !important;
                height: auto !important;
                max-height: 78px !important;
                padding: 2px !important;
                object-fit: contain;
            }

        .header .company {
            grid-area: company;
            width: 100% !important;
            min-width: 0;
            text-align: center !important;
        }

            .header .company h2 {
                font-size: clamp(9px, 2.8vw, 12px) !important;
                line-height: 1.4 !important;
                letter-spacing: 0 !important;
            }

            .header .company h1 {
                font-size: clamp(21px, 6.8vw, 30px) !important;
                line-height: 1.15 !important;
                -webkit-text-stroke-width: 1px !important;
                word-break: keep-all !important;
            }

        .header .hotline {
            grid-area: hotline;
            justify-self: center !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 9px !important;
            text-align: left !important;
        }

        .header .icon-tel {
            width: 38px !important;
            height: 38px !important;
            flex-shrink: 0 !important;
            font-size: 19px !important;
            box-shadow: 0 0 0 3px #fbe3e5 !important;
        }

        .header .hotline i {
            font-size: 10px !important;
        }

        .header .hotline a {
            font-size: 14px !important;
            line-height: 1.35 !important;
            white-space: nowrap !important;
        }
}

/* Menu đỏ đô viền vàng, cuộn ngang nếu màn hình hẹp */
@media (max-width: 700px) {
    .menu-wrap {
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100% !important;
        margin: 0 !important;
        padding: 4px !important;
        border-radius: 22px !important;
        box-sizing: border-box;
    }

    .menu {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
        padding: 12px 5px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px !important;
    }

        .menu::-webkit-scrollbar {
            display: none;
        }

        .menu > a,
        .menu-dropdown .dropdown-title {
            flex: 0 0 auto !important;
            padding: 0 10px 6px !important;
            font-size: 11px !important;
            white-space: nowrap !important;
        }

    /* Ẩn dropdown trên mobile để không bị cắt trong thanh cuộn */
    .menu-dropdown .dropdown-content,
    .menu-dropdown .mui-ten {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .header .logo img {
        max-width: 95px !important;
        max-height: 68px !important;
    }

    .header .company h2 {
        font-size: 9px !important;
    }

    .header .company h1 {
        font-size: 21px !important;
    }

    .header .hotline {
        gap: 7px !important;
    }

        .header .hotline a {
            font-size: 13px !important;
        }

    .header .icon-tel {
        width: 34px !important;
        height: 34px !important;
        font-size: 17px !important;
    }

    .menu > a,
    .menu-dropdown .dropdown-title {
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 10px !important;
    }
}

/* =========================================================
   FIX CUỐI: MENU CĂN GIỮA TRÊN ĐIỆN THOẠI + FOOTER RESPONSIVE
   Ghi đè các quy tắc responsive cũ ở phía trên.
========================================================= */

/* Menu: trên máy tính giữ nguyên thiết kế cũ */
.menu-wrap {
    max-width: 100%;
}

/* Tablet và điện thoại: các mục menu nằm giữa, tự xuống dòng nếu cần */
@media (max-width: 700px) {
    .menu-wrap {
        position: sticky;
        top: 0;
        z-index: 9999;
        width: 100% !important;
        margin: 8px auto 0 !important;
        padding: 4px !important;
        border-radius: 22px !important;
        overflow: visible !important;
    }

    .menu {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 10px 6px !important;
        overflow: visible !important;
        border-radius: 18px !important;
        scrollbar-width: none;
        scroll-snap-type: none !important;
    }

        .menu::-webkit-scrollbar {
            display: none !important;
        }

        .menu > a,
        .menu-dropdown,
        .menu-dropdown .dropdown-title {
            flex: 0 0 auto !important;
            margin: 2px 0 !important;
            padding: 7px 10px 9px !important;
            font-size: 12px !important;
            line-height: 1.35 !important;
            text-align: center !important;
            white-space: nowrap !important;
        }

            .menu-dropdown .dropdown-title {
                justify-content: center !important;
            }

            /* Giữ thanh phân cách nhưng không làm lệch menu */
            .menu > a + a::before,
            .menu-dropdown::before,
            .menu-dropdown::after {
                top: 7px !important;
                bottom: 9px !important;
            }

            /* Trên điện thoại không bật dropdown hover bị cắt */
            .menu-dropdown .dropdown-content,
            .menu-dropdown .mui-ten {
                display: none !important;
            }
}

@media (max-width: 480px) {
    .menu-wrap {
        width: 100% !important;
        margin: 6px auto 0 !important;
        padding: 4px !important;
        border-radius: 20px !important;
    }

    .menu {
        justify-content: center !important;
        padding: 8px 4px !important;
        border-radius: 16px !important;
    }

        .menu > a,
        .menu-dropdown,
        .menu-dropdown .dropdown-title {
            padding: 7px 7px 8px !important;
            font-size: 10.5px !important;
        }
}

@media (max-width: 380px) {
    .menu > a,
    .menu-dropdown,
    .menu-dropdown .dropdown-title {
        padding: 6px 5px 8px !important;
        font-size: 9.5px !important;
    }
}

/* ================= FOOTER MÁY TÍNH ================= */
.footer {
    width: 100%;
    padding: 44px 20px 56px;
    color: #fff;
    background: radial-gradient(circle at 12% 8%, rgba(255, 110, 90, .55), transparent 38%), radial-gradient(circle at 85% 90%, rgba(255, 60, 60, .35), transparent 40%), linear-gradient(135deg, #a20e0e, #a80a16);
}

.footer-luoi {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

    .footer-luoi > * {
        min-width: 0;
    }

.footer h3 {
    margin: 0 0 18px;
    color: var(--vang);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

    .footer h3::after {
        content: "";
        display: block;
        width: 36px;
        height: 2px;
        margin-top: 8px;
        background: var(--vang);
    }

    .footer h3.gian {
        margin-top: 26px;
    }

.footer p {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

    .footer p b {
        font-weight: 700;
    }

.footer .sdt span {
    display: inline-block;
    vertical-align: top;
}

.footer .sdt a {
    display: block;
    margin-bottom: 14px;
}

    .footer .sdt a:last-child {
        margin-bottom: 0;
    }

.footer p a {
    color: #fff;
    text-decoration: none;
}

    .footer p a:hover {
        color: var(--vang);
    }

    .footer p a.web {
        color: #6d8cff;
    }

        .footer p a.web:hover {
            color: var(--vang);
        }

.footer a.cs {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

    .footer a.cs:hover {
        color: var(--vang);
        transform: translateX(4px);
    }

.mxh {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .mxh a {
        display: block;
        width: 32px;
        height: 32px;
        transition: transform .2s;
    }

        .mxh a:hover {
            transform: scale(1.12);
        }

    .mxh svg {
        width: 100%;
        height: 100%;
        fill: #fff;
    }

.ban-do {
    width: 100%;
    height: 226px;
    overflow: hidden;
    border-radius: 14px;
    background: #e7da1c;
}

    .ban-do iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 14px max(20px, calc((100% - 1100px) / 2));
    background: var(--do);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

/* ================= FOOTER TABLET ================= */
@media (min-width: 701px) and (max-width: 1000px) {
    .footer {
        padding: 38px 24px 42px;
    }

    .footer-luoi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 26px;
    }

        .footer-luoi > :first-child {
            grid-column: 1 / -1;
        }

    .ban-do {
        height: 230px;
    }
}

/* ================= FOOTER ĐIỆN THOẠI ================= */
@media (max-width: 700px) {
    .footer {
        padding: 34px 18px 38px;
    }

    .footer-luoi {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 28px !important;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

        .footer-luoi > :first-child {
            grid-column: auto !important;
        }

        .footer-luoi > * {
            width: 100%;
            min-width: 0;
        }

    /* Nội dung footer căn trái như ảnh điện thoại bạn gửi */
    .footer h3 {
        margin-bottom: 16px;
        font-size: 15px;
        text-align: left;
    }

        .footer h3::after {
            margin-left: 0;
            margin-right: 0;
        }

    .footer p,
    .footer a.cs {
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .footer p {
        margin-bottom: 12px;
    }

    .footer .sdt a {
        margin-bottom: 10px;
    }

    .mxh {
        justify-content: flex-start;
        gap: 14px;
    }

    .ban-do {
        width: 100%;
        height: clamp(210px, 58vw, 280px);
        border-radius: 12px;
    }

    .copyright {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 13px 12px;
        text-align: center;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .footer {
        padding: 28px 14px 32px;
    }

    .footer-luoi {
        gap: 24px !important;
    }

    .footer p,
    .footer a.cs {
        font-size: 12px;
    }

    .ban-do {
        height: 210px;
    }
}


/* =====================================================
   ĐIỆN THOẠI XOAY NGANG - FOOTER 3 CỘT NHƯ MÁY TÍNH
   Chỉ áp dụng cho màn hình thấp khi xoay ngang
===================================================== */
@media screen and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .footer {
        padding: 24px 18px 28px;
    }

    .footer-luoi {
        display: grid !important;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr) !important;
        align-items: start;
        gap: 18px !important;
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
    }

        .footer-luoi > :first-child {
            grid-column: auto !important;
        }

        .footer-luoi > * {
            width: 100%;
            min-width: 0;
        }

    .footer h3 {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.4;
    }

    .footer p,
    .footer a.cs {
        font-size: 10px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .footer p {
        margin-bottom: 8px;
    }

    .footer .sdt a {
        margin-bottom: 7px;
    }

    .footer h3.gian {
        margin-top: 18px;
    }

    .mxh {
        gap: 10px;
    }

        .mxh a {
            width: 26px;
            height: 26px;
        }

    .ban-do {
        height: 155px;
        border-radius: 10px;
    }

    .copyright {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px 16px;
        padding: 10px 18px;
        font-size: 10px;
        text-align: left;
    }

    /* Menu căn giữa khi điện thoại nằm ngang */
    .menu-wrap {
        margin-top: 6px;
        padding: 4px;
        border-radius: 18px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px 0;
        overflow-x: visible;
        padding: 9px 8px;
        border-radius: 14px;
    }

        .menu > a {
            padding: 4px 10px 7px;
            font-size: 11px;
        }

    .menu-dropdown .dropdown-title {
        padding: 4px 10px 7px;
        font-size: 11px;
    }

    .dropdown-content {
        left: 50%;
        width: 190px;
        max-height: 240px;
        overflow-y: auto;
    }
}

/* Điện thoại ngang rất hẹp */
@media screen and (max-width: 680px) and (max-height: 430px) and (orientation: landscape) {
    .footer-luoi {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .footer {
        padding: 20px 12px 22px;
    }

        .footer h3 {
            font-size: 10px;
        }

        .footer p,
        .footer a.cs {
            font-size: 9px;
        }

    .ban-do {
        height: 125px;
    }

    .menu > a,
    .menu-dropdown .dropdown-title {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 10px;
    }
}

/* ========================================
   RESPONSIVE CHO ĐIỆN THOẠI
   ======================================== */
@media screen and (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Phần tiêu đề đầu trang */
    .banner-dau,
    .header-container,
    .header-main {
        max-width: 100%;
    }

    /* Logo và tên công ty */
    .logo img {
        max-width: 180px;
        height: auto;
    }

    /* Thanh menu */
    #menuWrap,
    .menu-wrap {
        width: 100%;
        max-width: 100%;
    }

        #menuWrap nav,
        .menu-wrap nav {
            width: 100%;
        }

    /* Banner */
    .banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .slides {
        display: flex;
        width: 100%;
    }

        .slides img {
            flex: 0 0 100%;
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }

    .banner .nut {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    /* Phần dịch vụ */
    .dichvu {
        width: 100%;
        padding: 30px 16px;
        box-sizing: border-box;
    }

        .dichvu .the {
            max-width: 100%;
            box-sizing: border-box;
        }

            .dichvu .the img {
                max-width: 100%;
                height: auto;
                object-fit: cover;
            }

    /* Ẩn tràn ngang do các thành phần con */
    img,
    video,
    iframe {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .banner .nut {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .dichvu .tieu-de h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .dichvu .tieu-de p {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 8px;
    }
}
