@charset "UTF-8";

/*
Theme Name: XD Minh Thanh Construction
Theme URI: https://example.com/
Author: XD Minh Thanh
Description: Theme WordPress dành cho doanh nghiệp thiết kế và thi công xây dựng.
Version: 1.0.2
Text Domain: xdminhthanh-construction
*/
:root {
    --font-body: Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
    --primary: #f58220;
    --dark: #17212b;
    --ink: #26323d;
    --muted: #66727d;
    --light: #f5f7f9;
    --white: #fff;
    --line: #e7eaed;
    --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    word-break: normal;
    color: var(--ink);
    line-height: 1.65;
    background: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #ad4b00;
    outline-offset: 3px;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: auto;
}

section[id] { scroll-margin-top: 90px; }
.admin-bar section[id] { scroll-margin-top: 122px; }

/* Truy cập bằng bàn phím */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 12px 18px;
    background: var(--dark);
    color: white;
    transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

/* Thanh thông tin */
.topbar {
    background: var(--dark);
    color: white;
    font-size: 14px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    gap: 16px;
}

.topbar span { overflow-wrap: anywhere; }
.topbar span a + a { margin-left: 12px; }

/* Header */
.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 16px #00000012;
}

.admin-bar .site-header { top: 32px; }

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.brand, .brand-home {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    font-weight: 700;
    font-size: 22px;
    color: var(--dark);
    min-width: 0;
}

.brand-name { overflow-wrap: anywhere; }

.brand-mark {
    flex: none;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    clip-path: polygon(
        50% 0,
        100% 35%,
        85% 100%,
        15% 100%,
        0 35%
    );
}

.custom-logo-link {
    display: flex;
    flex-shrink: 0;
}

.custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 56px;
}

/* Menu */
.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.menu a {
    display: block;
    transition: color .2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: #ad4b00;
}

.menu li { position: relative; }

.menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    padding: 12px;
    list-style: none;
    box-shadow: 0 8px 24px #0002;
    text-transform: none;
}

.menu .sub-menu li { margin: 6px 0; }

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
    display: block;
}

.menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
    flex: none;
}

/* Hero */
.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: -1;
}

.hero-inner {
    max-width: 760px;
    padding: 88px 0;
}

.eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ad4b00;
    font-size: 13px;
}

.hero .eyebrow,
.estimate .eyebrow {
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.25;
    margin: 12px 0 20px;
    overflow-wrap: anywhere;
}

.hero p {
    font-size: 19px;
    max-width: 650px;
    color: #eef2f4;
}

/* Nút */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 13px 22px;
    border-radius: 4px;
    font-weight: 700;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: opacity .2s ease;
}

.btn:hover { opacity: .92; }

.btn.alt {
    background: transparent;
    color: white;
    border-color: white;
    margin-left: 8px;
}

.btn-dark {
    background: var(--dark);
    border-color: var(--dark);
    color: white;
}

/* Thanh tư vấn */
.quote-strip {
    background: var(--primary);
    color: var(--dark);
}

.quote-strip .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.quote-strip strong { font-size: 21px; }

/* Các section */
.section { padding: 76px 0; }
.section.soft { background: var(--light); }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}

.section-head h1,
.section-head h2 {
    font-size: 36px;
    line-height: 1.2;
    margin: 8px 0 12px;
    color: var(--dark);
    overflow-wrap: anywhere;
}

.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Ô ưu điểm */
.feature {
    padding: 26px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.feature, .card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.feature .icon { font-size: 30px; }

.feature h3 {
    margin: 12px 0 8px;
    color: var(--dark);
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Thẻ nội dung */
.card {
    background: white;
    border: 1px solid var(--line);
    overflow: hidden;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #00000012;
}

.card-media-link, .card-media { display: block; }

.card-media {
    width: 100%;
    aspect-ratio: 16/10;
    background: #dfe5e8 center/cover no-repeat;
}

.card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-body { padding: 20px; }

.card h3 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--dark);
}

.card h3 a:hover { color: #ad4b00; }

.card p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* Giới thiệu */
.split {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);
    gap: 50px;
    align-items: center;
}

.split-image {
    min-height: 480px;
    background: #dfe5e8 center/cover no-repeat;
    border-radius: 8px;
}

.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 24px 0;
}

.checklist div::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    margin-right: 8px;
}

/* Dự toán */
.estimate {
    background: var(--dark);
    color: white;
}

.estimate-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.2fr);
    gap: 44px;
    align-items: start;
}

.estimate h2 { color: white; }

.calc {
    background: white;
    color: var(--ink);
    padding: 26px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.calc label {
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
}

.calc input,
.calc select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd2d7;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 15px;
    background: white;
    color: var(--ink);
}

.calc .full { grid-column: 1/-1; }

.result {
    background: #fff3e9;
    border-left: 4px solid var(--primary);
    padding: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.posts .card-media,
.posts .card-image {
    aspect-ratio: 16/9;
}

/* Khối liên hệ */
.cta {
    padding: 52px 0;
    background: var(--primary);
    color: var(--dark);
    text-align: center;
}

.cta h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.cta p { margin: 0 0 22px; }

/* Footer */
.footer {
    background: #111920;
    color: #cbd2d8;
    padding: 58px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 42px;
}

.footer-grid > div { overflow-wrap: anywhere; }
.footer h3 { color: white; }

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li { margin: 8px 0; }
.footer a:hover { color: var(--primary); }
.footer .sub-menu { padding-left: 16px; }

.copyright {
    border-top: 1px solid #ffffff18;
    margin-top: 38px;
    padding-top: 20px;
    font-size: 13px;
}

/* Trang nội dung */
.content-area { padding: 60px 0; }

.entry {
    max-width: 850px;
    margin: auto;
}

.entry-header { margin-bottom: 24px; }

.entry h1, .entry-title {
    line-height: 1.2;
    color: var(--dark);
    overflow-wrap: anywhere;
}

.entry-title { margin-top: 0; }

.entry-content {
    line-height: 1.8;
    overflow-wrap: anywhere;
    display: flow-root;
}

.entry-content p { margin-bottom: 20px; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--dark);
    line-height: 1.3;
}

.entry-meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.entry-thumbnail { margin: 24px 0 32px; }

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.entry-categories, .entry-tags { margin-top: 8px; }

.entry-categories a,
.entry-tags a {
    color: #ad4b00;
}

/* Điều hướng bài */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post-navigation > div {
    flex: 1;
    min-width: 0;
}

.post-next { text-align: right; }

.post-navigation a {
    font-weight: 700;
    color: var(--dark);
}

.post-navigation a:hover { color: #ad4b00; }

/* Phân trang */
.pagination { margin-top: 36px; }

.pagination .nav-links,
.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.page-links { margin-top: 24px; }

.page-numbers,
.post-page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.page-numbers.current,
.post-page-numbers.current {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tìm kiếm */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.search-field {
    padding: 10px;
    max-width: 100%;
    border: 1px solid #ccd2d7;
    border-radius: 4px;
}

.search-submit {
    padding: 10px 16px;
    background: var(--dark);
    color: white;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

/* Nút nổi */
.floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    box-shadow: 0 5px 18px #0003;
}

/* Căn ảnh WordPress */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption { max-width: 100%; }

.wp-caption-text {
    color: var(--muted);
    font-size: 13px;
}

/* Bài viết nổi bật */
.featured-post-media {
    display: block;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #dfe5e8;
}

.featured-post-media .featured-post-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.featured-posts .card-body { padding: 18px; }

.featured-posts h3 {
    font-size: 18px;
    margin: 0;
}

.featured-post a:focus-visible {
    outline: 3px solid var(--dark);
    outline-offset: -3px;
}

/* Tablet và menu mobile */
@media (max-width: 900px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

    .primary-navigation { width: 100%; }

    .site-header .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .site-header.has-js .primary-navigation {
        width: auto;
    }

    .site-header.has-js .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 100;
        background: white;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 10px 20px #00000012;
    }

    .site-header.has-js .menu.open { display: flex; }
    .site-header.has-js .nav-toggle { display: block; }

    .menu .sub-menu,
    .menu .sub-menu .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 0 16px;
        box-shadow: none;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split, .estimate-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .hero { min-height: 540px; }
    .split-image { min-height: 400px; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar section[id] { scroll-margin-top: 136px; }
}

/* Điện thoại */
@media (max-width: 600px) {
    .container {
        width: min(var(--max), calc(100% - 24px));
    }

    .topbar .container {
        flex-direction: column;
        gap: 0;
    }

    .admin-bar .site-header { top: 0; }
    .admin-bar section[id] { scroll-margin-top: 90px; }
    .nav-wrap { min-height: 68px; }

    .brand {
        font-size: 18px;
        max-width: calc(100% - 52px);
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .custom-logo {
        max-width: 100px;
        max-height: 44px;
    }

    .grid-3,
    .grid-4,
    .footer-grid,
    .calc {
        grid-template-columns: minmax(0, 1fr);
    }

    .calc .full { grid-column: auto; }
    .section { padding: 55px 0; }
    .section-head { margin-bottom: 30px; }

    .section-head h1,
    .section-head h2 {
        font-size: 30px;
    }

    .hero { min-height: 500px; }
    .hero-inner { padding: 65px 0; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 17px; }

    .quote-strip .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .quote-strip strong { font-size: 18px; }
    .btn.alt { margin: 8px 0 0; }
    .checklist { grid-template-columns: 1fr; }
    .split-image { min-height: 320px; }
    .estimate-grid { gap: 30px; }
    .cta h2 { font-size: 28px; }
    .post-navigation { flex-direction: column; }
    .post-next { text-align: left; }

    .floating {
        right: 12px;
        bottom: 12px;
    }

    .floating a {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .btn, .menu a { transition: none; }
    .card:hover { transform: none; }
}

/* Năm nhóm dịch vụ */
.service-topic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.service-topic-grid .service-topic-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
}

.service-topic-grid .service-topic-link:hover,
.service-topic-grid .service-topic-link:focus-visible {
    color: #ad4b00;
    border-color: var(--primary);
}

.service-topic-grid .service-topic-link.is-current {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.service-topic-navigation { margin-bottom: 36px; }
.site-header .sub-menu { text-transform: none; }
.site-header .sub-menu a { padding: 6px 8px; }

.site-header .sub-menu .current-menu-item > a {
    color: #ad4b00;
}

.footer .service-topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .service-topic-list li { margin: 8px 0; }

@media (max-width: 900px) {
    .service-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .service-topic-grid {
        grid-template-columns: 1fr;
    }

    .service-topic-grid .service-topic-link {
        min-height: 70px;
        padding: 20px 16px;
    }
}

/* Căn giữa sáu ô ưu điểm */
.feature { text-align: center; }

/* Menu chính tám mục */
.site-header .menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 16px;
    row-gap: 8px;
    font-size: 13px;
}

.site-header .primary-navigation { min-width: 0; }
.site-header .menu > li > a { padding: 8px 0; }

.site-header .menu-dropdown-arrow {
    display: inline-block;
    margin-left: 3px;
}

.site-header .menu .sub-menu {
    min-width: 240px;
    z-index: 100;
}

.site-header .menu > li:last-child > .sub-menu {
    left: auto;
    right: 0;
}

.site-header .menu > li:last-child .sub-menu .sub-menu {
    left: auto;
    right: 100%;
}

.site-header .menu .current-menu-item > a {
    color: #ad4b00;
}

@media (max-width: 900px) {
    .site-header .menu {
        justify-content: flex-start;
        align-items: flex-start;
        font-size: 14px;
    }

    .site-header .menu .sub-menu,
    .site-header .menu .sub-menu .sub-menu {
        position: static;
        min-width: 0;
        padding-left: 16px;
    }
}

/* Tiêu đề Hero chia thành hai ý */
.hero h1.hero-title {
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-title-line {
    display: block;
    text-wrap: balance;
}

.hero-title-line + .hero-title-line {
    margin-top: 6px;
}

@media (max-width: 600px) {
    .hero h1.hero-title {
        font-size: clamp(20px, 5vw, 30px);
        line-height: 1.3;
    }
}
/* Phân cấp tiêu đề và nội dung, hỗ trợ dấu tiếng Việt */
:root {
    --text-body: 16px;
    --title-page: clamp(32px, 4vw, 48px);
    --title-section: clamp(28px, 3.2vw, 38px);
    --title-card: clamp(21px, 2vw, 24px);
}
body { font-size: var(--text-body); }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    margin: 0 0 16px;
}
h1 { font-size: var(--title-page); }
h2 { font-size: var(--title-section); }
h3 { font-size: var(--title-card); }
h4 { font-size: 20px; }
h5 { font-size: 19px; }
h6 { font-size: 18px; }
.hero h1,
.hero h1.hero-title {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.25;
    margin: 14px 0 24px;
    overflow-wrap: break-word;
}
.hero p {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.75;
}
.section-head h1,
.entry h1,
.entry-title { font-size: var(--title-page); line-height: 1.3; }
.section-head h2,
.split h2,
.estimate h2,
.cta h2,
.entry-content h2 {
    font-size: var(--title-section);
    line-height: 1.35;
    margin-bottom: 18px;
}
.feature h3,
.card h3,
.featured-posts h3,
.entry-content h3 {
    font-size: var(--title-card);
    line-height: 1.4;
    margin-bottom: 12px;
}
.entry-content h4 { font-size: 20px; line-height: 1.4; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 32px; }
.section-head p,
.feature p,
.card p,
.split p,
.estimate p,
.cta p,
.entry-content p,
.entry-content li {
    font-size: var(--text-body);
    line-height: 1.8;
}
.footer h3 { font-size: 22px; line-height: 1.4; margin-bottom: 16px; }
.quote-strip strong { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.4; }
.service-topic-grid .service-topic-link { font-size: 20px; line-height: 1.45; }
/* Nhãn dẫn nhỏ phía trên tiêu đề */
.eyebrow { font-size: 14px; line-height: 1.6; letter-spacing: 1.2px; }
@media (max-width: 600px) {
    .hero h1,
    .hero h1.hero-title { font-size: clamp(32px, 8vw, 40px); line-height: 1.3; }
    .footer h3 { font-size: 21px; }
    .service-topic-grid .service-topic-link { font-size: 20px; }
}

/* Mobile/tablet refinements; desktop above 900px remains unchanged. */
@media (max-width: 900px) {
    .brand-home, .brand-name,
    .split > *, .estimate-grid > *, .footer-grid > * {
        min-width: 0;
    }
    .brand-home { max-width: 100%; }
    .brand-name { overflow-wrap: anywhere; }

    /* Prevent a height-limited mobile menu from wrapping into columns. */
    .site-header .menu {
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .site-header .menu > li { min-width: 0; width: 100%; }
    .site-header .menu a {
        min-height: 44px;
        overflow-wrap: anywhere;
    }
    .site-header .menu > li > a,
    .site-header .sub-menu a {
        padding-top: 11px;
        padding-bottom: 11px;
    }
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 4px;
        line-height: 1;
    }
    .site-header.has-js .menu {
        max-height: 70vh;
        max-height: 70dvh;
        overscroll-behavior-y: contain;
    }
    .calc input, .calc select {
        font-size: 16px;
        min-width: 0;
    }
    .entry-content iframe, .entry-content video { max-width: 100%; }
    .entry-content pre, .entry-content .wp-block-table {
        max-width: 100%;
        overflow-x: auto;
    }
    /* Classic-editor tables can scroll without widening the page. */
    .entry-content > table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
    }
}
@media (max-width: 600px) {
    .calc { padding: 20px; }
    .entry-content .alignleft, .entry-content .alignright {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }
    .btn {
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }
    .floating {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* Viền cam khi hover vào ô ưu điểm */
.feature {
    transition: border-color 0.2s ease;
}
.feature:hover {
    border-color: var(--primary);
}

/* Làm nổi bật chữ trong phần Lĩnh vực hoạt động */
.service-topic-grid .service-topic-link,
.service-topic-grid .service-topic-link.is-current {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9),
                 0 0 12px rgba(0, 0, 0, 0.6);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.service-topic-grid .service-topic-link:hover,
.service-topic-grid .service-topic-link:focus-visible {
    color: #ffe0a3;
    border-color: var(--primary);
}
.service-topic-grid .service-topic-link > span {
    position: relative;
    z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
    .feature,
    .service-topic-grid .service-topic-link {
        transition: none;
    }
}

/* Căn giữa nhãn và nút trong phần Về chúng tôi */
.split > div:last-child > .eyebrow {
    text-align: center;
}
.split > div:last-child > .btn {
    display: table;
    margin: 24px auto 0;
    max-width: 100%;
    text-align: center;
}

/* Mobile/tablet: chỉ áp dụng từ 900px trở xuống */
@media (max-width: 900px) {
    .nav-wrap { gap: 12px; }
    .brand { flex: 1; min-width: 0; }
    .brand-home { min-width: 0; }
    .brand-name { overflow-wrap: anywhere; }
    .site-header.has-js .primary-navigation { flex: 0 0 auto; }
    .site-header .menu { flex-wrap: nowrap; align-items: stretch; }
    .site-header .menu > li { width: 100%; min-width: 0; }
    .site-header .menu a { min-height: 44px; }
    .site-header.has-js .menu { max-height: 65dvh; overflow-y: auto; }
    .split, .estimate-grid { gap: 28px; }
    .split > *, .estimate-grid > *, .footer-grid > * { min-width: 0; }
    .service-topic-grid .service-topic-link {
        min-height: 150px;
        background-position: center;
        background-size: cover;
    }
}

/* Điện thoại */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 32px); }
    .section { padding: 40px 0; }
    .section-head { margin-bottom: 24px; }
    .eyebrow { font-size: 12px; letter-spacing: 1px; }
    .section-head h1, .entry h1, .entry-title {
        font-size: clamp(28px, 7vw, 34px);
        line-height: 1.3;
    }
    .section-head h2, .split h2, .estimate h2,
    .cta h2, .entry-content h2 {
        font-size: clamp(25px, 6.5vw, 30px);
        line-height: 1.35;
        margin-bottom: 14px;
    }
    .feature h3, .card h3, .featured-posts h3, .entry-content h3 {
        font-size: 20px;
        line-height: 1.4;
    }
    .section-head p, .feature p, .card p, .split p,
    .estimate p, .cta p, .entry-content p, .entry-content li {
        font-size: 16px;
        line-height: 1.7;
    }
    .topbar { font-size: 12px; }
    .topbar .container { padding: 6px 0; gap: 4px; }
    .nav-wrap { min-height: 64px; padding: 8px 0; }
    .brand { font-size: 16px; gap: 8px; }
    .brand-home { gap: 8px; }
    .custom-logo { max-width: 90px; max-height: 42px; }
    .nav-toggle { min-width: 44px; min-height: 44px; }
    .site-header .menu { gap: 2px; padding: 12px; }
    .site-header .menu > li > a, .site-header .sub-menu a {
        padding: 12px 8px;
    }
    .hero { min-height: 420px; }
    .hero-inner { padding: 48px 0; }
    .hero h1, .hero h1.hero-title {
        font-size: clamp(28px, 7.5vw, 36px);
        line-height: 1.3;
        margin: 12px 0 18px;
    }
    .hero p { font-size: 16px; line-height: 1.7; }
    .btn { min-height: 48px; padding: 11px 18px; font-size: 16px; }
    .hero .btn { display: block; width: 100%; text-align: center; }
    .hero .btn.alt { margin: 12px 0 0; }
    .quote-strip .container { gap: 14px; padding: 20px 0; }
    .quote-strip strong { font-size: 20px; line-height: 1.45; }
    .quote-strip .btn { width: 100%; text-align: center; }
    .grid { gap: 16px; }
    .feature { padding: 22px 18px; }
    .feature .icon { font-size: 30px; line-height: 1.4; }
    .feature h3 { margin: 10px 0; }
    .feature p { margin: 0; }
    .service-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .service-topic-grid .service-topic-link {
        min-height: 140px;
        padding: 16px 10px;
        font-size: 18px;
        line-height: 1.4;
    }
    .service-topic-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .split-image { min-height: 0; aspect-ratio: 4 / 3; }
    .split > div:last-child > .eyebrow { text-align: center; }
    .split h2 { text-align: center; }
    .checklist { grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
    .checklist > div { display: flex; align-items: baseline; }
    .checklist div::before { flex-shrink: 0; }
    .split > div:last-child > .btn {
        display: block; width: 100%; margin: 22px auto 0;
    }
    .card-body, .featured-posts .card-body { padding: 18px; }
    .calc { padding: 20px 16px; gap: 16px; }
    .calc label { font-size: 14px; }
    .calc input, .calc select {
        min-height: 48px; font-size: 16px; padding: 12px;
    }
    .calc button { width: 100%; }
    .result { padding: 14px; font-size: 16px; }
    .cta { padding: 36px 0; }
    .footer { padding: 36px 0 88px; }
    .footer-grid { gap: 24px; }
    .footer h3 { font-size: 20px; margin: 0 0 12px; }
    .footer li { margin: 0; }
    .footer li a { display: inline-block; padding: 9px 0; }
    .copyright { margin-top: 24px; padding-top: 18px; }
    .content-area { padding: 32px 0; }
    .entry-content img { max-width: 100%; height: auto; }
    .post-navigation { gap: 20px; }
    .post-navigation a { display: inline-block; padding: 10px 0; }
    .page-numbers, .post-page-numbers { min-width: 44px; min-height: 44px; text-align: center; }
    .search-field { width: 100%; min-height: 48px; font-size: 16px; }
    .search-submit { min-height: 48px; }
    .floating {
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
    }
    .floating a { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
    .container { width: calc(100% - 24px); }
    .service-topic-grid { grid-template-columns: 1fr; }
    .service-topic-grid .service-topic-link { min-height: 150px; }
    .brand { font-size: 14px; }
    .custom-logo { max-width: 76px; }
}

/* Vì sao chọn chúng tôi: bố cục gọn trên điện thoại */
@media (max-width: 600px) {
    .feature {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 5px;
        align-content: start;
        padding: 18px 16px;
        text-align: left;
        border-radius: 10px;
    }
    .feature .icon {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        min-height: 40px;
        font-size: 28px;
        line-height: 1.4;
    }
    .feature h3 {
        grid-column: 2;
        margin: 0;
        font-size: 18px;
        line-height: 1.45;
        overflow-wrap: break-word;
    }
    .feature p {
        grid-column: 2;
        margin: 0;
        font-size: 15px;
        line-height: 1.65;
        color: #53616d;
        overflow-wrap: break-word;
    }
}
@media (max-width: 360px) {
    .feature {
        grid-template-columns: 32px minmax(0, 1fr);
        column-gap: 10px;
        padding: 16px 12px;
    }
    .feature .icon { width: 32px; font-size: 25px; }
    .feature h3 { font-size: 17px; }
}

/* Ưu điểm trên mobile: chỉ icon và tiêu đề, hai cột */
@media (max-width: 600px) {
    .grid-3:has(> .feature) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 10px;
        text-align: center;
    }
    .feature .icon {
        width: auto;
        min-height: 0;
        font-size: 26px;
    }
    .feature h3 {
        margin: 0;
        font-size: 16px;
        line-height: 1.4;
    }
    .feature p { display: none; }
}

/* Banner mobile: nội dung gọn, nút dễ thao tác */
@media (max-width: 600px) {
    .hero { min-height: 340px; }
    .hero-inner { padding: 36px 0; text-align: center; }
    .hero .eyebrow {
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: 1px;
    }
    .hero h1, .hero h1.hero-title {
        font-size: clamp(25px, 6.5vw, 32px);
        line-height: 1.3;
        margin: 10px 0 14px;
        text-wrap: balance;
    }
    .hero-title-line + .hero-title-line { margin-top: 4px; }
    .hero p {
        max-width: 36ch;
        margin: 0 auto 20px;
        font-size: 15px;
        line-height: 1.6;
        text-wrap: pretty;
    }
    .hero .btn, .hero .btn.alt {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: calc(50% - 6px);
        min-height: 48px;
        margin: 0;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 1.4;
        vertical-align: middle;
    }
    .hero .btn.alt { margin-left: 6px; }
}
@media (max-width: 360px) {
    .hero { min-height: 320px; }
    .hero-inner { padding: 30px 0; }
    .hero .btn, .hero .btn.alt {
        display: flex;
        width: 100%;
        margin: 0;
    }
    .hero .btn.alt { margin-top: 10px; }
}

/* Thanh tư vấn trên mobile */
@media (max-width: 600px) {
    .quote-strip {
        background: #fff5eb;
        color: var(--dark);
        border-top: 1px solid #ffe1c4;
        border-bottom: 1px solid #ffe1c4;
    }
    .quote-strip .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 0;
        text-align: left;
    }
    .quote-strip strong {
        display: block;
        max-width: none;
        margin: 0;
        padding: 0 0 0 12px;
        border-left: 3px solid var(--primary);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.55;
        text-wrap: pretty;
    }
    .quote-strip .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 16px;
        border: 2px solid var(--primary);
        border-radius: 8px;
        background: var(--primary);
        color: var(--dark);
        box-shadow: 0 3px 8px rgba(172, 78, 0, .12);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        flex-wrap: wrap;
        column-gap: 5px;
    }
}

/* Về chúng tôi trên mobile: ảnh gọn, nội dung rõ ràng */
@media (max-width: 600px) {
    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .split > .split-image {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 10;
        background-position: center;
        background-size: cover;
        border-radius: 12px;
    }
    .split > div:last-child { min-width: 0; }
    .split > div:last-child > .eyebrow {
        margin-bottom: 8px;
        text-align: center;
        font-size: 12px;
        letter-spacing: 1px;
    }
    .split > div:last-child > h2 {
        margin: 0 0 14px;
        font-size: clamp(24px, 6.2vw, 28px);
        line-height: 1.35;
        text-align: center;
        text-wrap: balance;
    }
    .split > div:last-child > p {
        margin: 0;
        font-size: 15px;
        line-height: 1.7;
        color: #53616d;
        text-align: left;
    }
    .split .checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 20px 0;
    }
    .split .checklist > div {
        display: flex;
        align-items: baseline;
        min-width: 0;
        padding: 10px;
        border-radius: 6px;
        background: var(--light);
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        overflow-wrap: break-word;
    }
    .split .checklist > div::before {
        flex-shrink: 0;
        margin-right: 6px;
    }
    .split > div:last-child > .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 18px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.4;
        text-align: center;
    }
}
@media (max-width: 360px) {
    .split .checklist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* Công trình tiêu biểu trên mobile: lưới ảnh gọn */
@media (max-width: 600px) {
    #du-an .section-head { margin-bottom: 22px; }
    #du-an .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    #du-an .card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(23, 33, 43, .04);
    }
    #du-an .card:hover { transform: none; }
    #du-an .card-media,
    #du-an .card-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    #du-an .card-image { object-fit: cover; }
    #du-an .card-body { padding: 12px; }
    #du-an .card h3 {
        margin: 0;
        font-size: 16px;
        line-height: 1.45;
        overflow-wrap: break-word;
    }
    #du-an .card h3 a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    #du-an .card p { display: none; }
    /* Giữ hướng dẫn khi chưa có công trình */
    #du-an .card:not(:has(.card-media, .card-image, .card-media-link)) {
        grid-column: 1 / -1;
    }
    #du-an .card:not(:has(.card-media, .card-image, .card-media-link)) p {
        display: block;
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.6;
    }
}
@media (max-width: 360px) {
    #du-an .grid { grid-template-columns: minmax(0, 1fr); }
    #du-an .card-body { padding: 14px; }
    #du-an .card h3 { font-size: 17px; }
}

/* Ước tính chi phí trên mobile: form gọn, dễ nhập */
@media (max-width: 600px) {
    #du-toan .estimate-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    #du-toan .estimate-grid > div > .eyebrow { text-align: center; }
    #du-toan h2 {
        margin: 6px 0 12px;
        font-size: 25px;
        line-height: 1.35;
        text-align: center;
        text-wrap: balance;
    }
    #du-toan .estimate-grid > div > p {
        margin: 8px 0 0;
        font-size: 14px;
        line-height: 1.6;
        color: #dce3e9;
    }
    #kaCalc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        padding: 20px 16px;
        border-radius: 12px;
    }
    #kaCalc > label { min-width: 0; font-size: 13px; line-height: 1.5; }
    #kaCalc > label:has(select) { grid-column: 1 / -1; }
    #kaCalc > label:has(input[name="floors"]) { grid-column: 1 / -1; }
    #kaCalc input, #kaCalc select {
        display: block;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin-top: 6px;
        padding: 11px 12px;
        border: 1px solid #b9c4cd;
        border-radius: 7px;
        background: #fff;
        color: var(--dark);
        font-size: 16px;
        line-height: 1.4;
    }
    #kaCalc input { font-variant-numeric: tabular-nums; }
    #kaCalc input:focus, #kaCalc select:focus { border-color: #ad4b00; }
    #kaCalc > .full, #kaCalc > noscript { grid-column: 1 / -1; }
    #kaCalc > button {
        width: 100%;
        min-height: 50px;
        margin-top: 4px;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 16px;
        line-height: 1.4;
    }
    #kaResult {
        padding: 14px;
        border-radius: 6px;
        font-size: 16px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
    #kaCalc noscript p { margin: 0; font-size: 14px; }
}
@media (max-width: 360px) {
    #kaCalc { padding: 16px 12px; gap: 12px 10px; }
}

/* Blog trên mobile: danh sách ảnh trái, nội dung phải */
@media (max-width: 600px) {
    #tin-tuc .section-head { margin-bottom: 22px; }
    #tin-tuc .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    #tin-tuc .card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: stretch;
        border-radius: 10px;
    }
    #tin-tuc .card:hover { transform: none; }
    #tin-tuc .card > .card-media-link,
    #tin-tuc .card > .card-media,
    #tin-tuc .card > .card-image {
        min-width: 0;
        height: 100%;
    }
    #tin-tuc .card-media,
    #tin-tuc .card-image {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 128px;
        aspect-ratio: auto;
        object-fit: cover;
        background-position: center;
        background-size: cover;
    }
    #tin-tuc .card-body { min-width: 0; padding: 12px; }
    #tin-tuc .card h3 {
        margin: 0 0 6px;
        font-size: 16px;
        line-height: 1.45;
        overflow-wrap: break-word;
    }
    #tin-tuc .card h3 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    #tin-tuc .card p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin: 0;
        font-size: 14px;
        line-height: 1.55;
        color: #53616d;
    }
    #tin-tuc .card:not(:has(.card-media-link, .card-media, .card-image)) {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 360px) {
    #tin-tuc .card { grid-template-columns: 88px minmax(0, 1fr); }
    #tin-tuc .card-body { padding: 10px; }
    #tin-tuc .card h3 { font-size: 15px; }
}

/* Tinh chỉnh chữ blog mobile */
@media (max-width: 600px) {
    #tin-tuc .card {
        grid-template-columns: 100px minmax(0, 1fr);
    }
    #tin-tuc .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 12px 14px;
    }
    #tin-tuc .card h3 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: left;
        text-transform: none;
        word-break: normal;
        overflow-wrap: break-word;
        text-wrap: pretty;
        color: #243240;
    }
    #tin-tuc .card h3 a {
        -webkit-line-clamp: 3;
        color: inherit;
    }
    #tin-tuc .card p {
        margin: 0;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.6;
        letter-spacing: normal;
        text-align: left;
        word-break: normal;
        overflow-wrap: break-word;
        text-wrap: pretty;
        color: #63707c;
        -webkit-line-clamp: 2;
    }
    #tin-tuc .card-media,
    #tin-tuc .card-image { min-height: 120px; }
}
@media (max-width: 360px) {
    #tin-tuc .card { grid-template-columns: 84px minmax(0, 1fr); }
    #tin-tuc .card-body { padding: 10px; gap: 5px; }
    #tin-tuc .card h3 { font-size: 14px; }
}

/* Blog mobile: ảnh nhỏ và khoảng cách gọn hơn */
@media (max-width: 600px) {
    #tin-tuc .grid { gap: 10px; }
    #tin-tuc .card {
        grid-template-columns: 80px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 10px;
    }
    #tin-tuc .card > .card-media-link,
    #tin-tuc .card > .card-media,
    #tin-tuc .card > .card-image {
        width: 80px;
        height: 80px;
        min-height: 0;
        align-self: center;
        border-radius: 6px;
        overflow: hidden;
    }
    #tin-tuc .card-media,
    #tin-tuc .card-image {
        width: 100%;
        height: 80px;
        min-height: 0;
        aspect-ratio: 1;
        object-fit: cover;
    }
    #tin-tuc .card-body { padding: 0; gap: 4px; }
    #tin-tuc .card h3 a { -webkit-line-clamp: 2; }
    #tin-tuc .card p { -webkit-line-clamp: 2; }
}
@media (max-width: 360px) {
    #tin-tuc .card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 10px;
    }
    #tin-tuc .card > .card-media-link,
    #tin-tuc .card > .card-media,
    #tin-tuc .card > .card-image { width: 70px; height: 70px; }
    #tin-tuc .card-media, #tin-tuc .card-image { height: 70px; }
    #tin-tuc .card-body { padding: 0; }
}

/* Khối tư vấn cuối trang: gọn và rõ trên mobile */
@media (max-width: 600px) {
    .cta {
        padding: 26px 0;
        background: #fff5eb;
        color: var(--dark);
        border-top: 1px solid #ffe1c4;
    }
    .cta .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .cta h2 {
        max-width: 26ch;
        margin: 0;
        font-size: clamp(22px, 5.8vw, 26px);
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        text-wrap: balance;
        overflow-wrap: break-word;
    }
    .cta p {
        max-width: 36ch;
        margin: 0;
        color: #53616d;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        text-wrap: pretty;
    }
    .cta .btn.btn-dark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 340px;
        min-height: 48px;
        margin: 6px 0 0;
        padding: 12px 16px;
        border: 2px solid var(--primary);
        border-radius: 8px;
        background: var(--primary);
        color: var(--dark);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Footer mobile: thông tin công ty trên, hai cột liên kết dưới */
@media (max-width: 600px) {
    .footer {
        padding: 28px 0 calc(76px + env(safe-area-inset-bottom, 0px));
        font-size: 14px;
        line-height: 1.6;
    }
    .footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 20px;
        align-items: start;
    }
    .footer .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer .footer-grid > div { min-width: 0; }
    .footer .footer-grid > div > h3 {
        margin: 0 0 8px;
        font-size: 17px;
        line-height: 1.4;
        overflow-wrap: break-word;
    }
    .footer .footer-grid > div:first-child > h3 { font-size: 19px; }
    .footer .service-topic-list,
    .footer .footer-menu {
        display: block;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .footer .service-topic-list li,
    .footer .footer-menu li { margin: 0; padding: 0; }
    .footer .service-topic-list a,
    .footer .footer-menu a {
        display: block;
        min-height: 0;
        margin: 0;
        padding: 6px 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.45;
        text-transform: none;
        word-break: normal;
        overflow-wrap: break-word;
    }
    .footer .footer-menu .sub-menu { margin: 0; padding-left: 10px; }
    .footer .footer-grid > div:first-child p {
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }
    .footer .footer-grid > div:first-child p:last-child { margin-bottom: 0; }
    .footer .footer-grid > div:first-child p a {
        display: inline-block;
        max-width: 100%;
        padding: 3px 0;
        overflow-wrap: anywhere;
    }
    .footer .copyright {
        margin-top: 20px;
        padding-top: 14px;
        font-size: 12px;
        line-height: 1.6;
        text-align: center;
        overflow-wrap: break-word;
    }
}
