:root {
    --primary: #0f3b63;
    --primary-dark: #092842;
    --accent: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f3f6fa;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--primary);
}

.logo-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.main-nav {
    margin-left: auto;
    display: flex;
    gap: 22px;
    font-weight: 600;
}

.main-nav a:hover {
    color: var(--accent);
}

.header-phone {
    background: linear-gradient(135deg, #ef4444, var(--accent));
    color: var(--white);
    padding: 11px 17px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(239, 68, 68, .22);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 20px;
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 74px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
}

.hero h1,
.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    margin: 10px 0 18px;
}

.hero-text {
    max-width: 660px;
    font-size: 18px;
    color: rgba(255,255,255,.86);
}

.hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    padding: 28px;
    border-radius: 24px;
}

.hero-card li {
    margin-bottom: 10px;
}

.hero-actions,
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-outline {
    border-color: rgba(255,255,255,.55);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: var(--soft);
}

.section-title {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: 34px;
    line-height: 1.2;
    margin: 8px 0;
}

.card-grid,
.project-grid,
.feature-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.service-card,
.project-card,
.feature-grid > div,
.contact-form,
.contact-info {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 59, 99, .06);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 16px;
}

.service-card a,
.project-card a {
    color: var(--primary);
    font-weight: 800;
}

.project-image {
    height: 180px;
    margin: -24px -24px 18px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
}

.project-body span {
    color: var(--accent);
    font-weight: 800;
}

.cta {
    background: var(--accent);
    color: var(--white);
    padding: 48px 0;
}

.cta-inner {
    justify-content: space-between;
}

.site-footer {
    background: #061827;
    color: rgba(255,255,255,.8);
    padding: 46px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

.page-hero {
    background: var(--soft);
    padding: 70px 0;
}

.prose {
    max-width: 860px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr;
    gap: 26px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.flash-wrap {
    padding-top: 18px;
}

.flash {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
}

.floating-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 10px;
    z-index: 60;
}

.floating-contact a {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.floating-contact a:first-child {
    background: #dc2626;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
    }

    .main-nav.is-open {
        display: flex;
    }

    .header-phone {
        display: none;
    }

    .hero-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .project-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0;
    }

    .logo-img {
        width: 46px;
        height: 46px;
    }
    
    .logo-text {
        font-size: 16px;
    }
}

.admin-login-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    background: var(--soft);
}

.admin-login-box {
    width: min(460px, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(15, 59, 99, .12);
}

.admin-login-box h1 {
    margin-top: 0;
}

.admin-login-box label,
.admin-panel label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-login-box input,
.admin-panel input,
.admin-panel textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font: inherit;
    margin-bottom: 16px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-sidebar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    position: sticky;
    top: 96px;
}

.admin-sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    color: var(--primary);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--soft);
    color: var(--accent);
}

.admin-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 59, 99, .06);
}

.admin-panel h2 {
    margin-top: 0;
}

.admin-panel hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.toast-wrap {
    position: fixed;
    right: 20px;
    top: 90px;
    z-index: 9999;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: 260px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .2);
    opacity: 0;
    transform: translateY(-8px);
    transition: .25s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

@media (max-width: 800px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-body {
    background: #f3f6fa;
}

.admin-topbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 80;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar-actions a {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary);
    font-weight: 700;
}

.admin-topbar-actions a:last-child {
    background: #fee2e2;
    color: #b91c1c;
}

.admin-body .page-hero {
    padding: 48px 0;
}

.admin-body .section {
    padding: 40px 0 70px;
}

.admin-body .floating-contact,
.admin-body .site-header,
.admin-body .site-footer {
    display: none !important;
}

.admin-panel .feature-grid {
    margin-bottom: 28px;
}

.admin-panel .feature-grid > div strong {
    display: block;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

@media (max-width: 800px) {
    .admin-topbar {
        height: auto;
        padding: 14px 16px;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .admin-topbar-actions {
        flex-wrap: wrap;
    }
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-panel-head h2 {
    margin-bottom: 4px;
}

.admin-panel-head p {
    margin: 0;
    color: var(--muted);
}

.admin-muted {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions button {
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--primary);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 700;
    cursor: pointer;
}

.table-actions button:hover {
    background: var(--soft);
}

.table-actions button.danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff7f7;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #f1f5f9;
    color: #475569;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}

.admin-modal.is-open {
    display: block;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .48);
}

.admin-modal-box {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.admin-modal-head h2 {
    margin: 0;
}

.admin-modal-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.admin-modal .btn-light {
    background: var(--soft);
    color: var(--primary);
}

@media (max-width: 800px) {
    .admin-panel-head {
        flex-direction: column;
    }

    .admin-modal-actions {
        flex-direction: column;
    }

    .admin-modal-actions .btn {
        justify-content: center;
    }
}

.admin-thumb {
    width: 86px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--soft);
    display: block;
}

.admin-thumb.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

.admin-editor {
    background: #ffffff;
    margin-bottom: 64px;
}

.admin-editor .ql-toolbar.ql-snow {
    border-radius: 14px 14px 0 0;
    border-color: var(--border);
}

.admin-editor .ql-container.ql-snow {
    border-radius: 0 0 14px 14px;
    border-color: var(--border);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    min-height: 220px;
}

.admin-editor .ql-editor {
    min-height: 220px;
}

.upload-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.upload-button {
    justify-content: center;
    white-space: nowrap;
}

.image-preview-wrap {
    margin-top: 12px;
}

.image-preview {
    width: 220px;
    max-width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--soft);
}

.check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 800px) {
    .upload-line {
        grid-template-columns: 1fr;
    }
}



.project-list-hero {
    background:
        linear-gradient(135deg, rgba(15, 59, 99, .95), rgba(9, 40, 66, .92)),
        linear-gradient(135deg, #dbeafe, #fef3c7);
    color: var(--white);
}

.project-list-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
}

.project-list-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.project-filter-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 59, 99, .05);
    transition: .2s ease;
}

.project-filter-link:hover,
.project-filter-link.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.project-list-grid {
    align-items: stretch;
}

.project-list-card {
    padding: 0;
    overflow: hidden;
    transition: .2s ease;
}

.project-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 59, 99, .12);
}

.project-card-image-link {
    display: block;
}

.project-list-card .project-image {
    height: 220px;
    margin: 0;
    border-radius: 22px 22px 0 0;
    background-size: cover;
    background-position: center;
}

.project-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #fef3c7);
}

.project-image-empty span {
    color: var(--primary);
    font-weight: 900;
    letter-spacing: .08em;
}

.project-list-card .project-body {
    padding: 22px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.project-meta span {
    color: var(--accent);
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.project-meta small {
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}

.project-list-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

.project-list-card h3 a:hover {
    color: var(--accent);
}

.project-list-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.project-more {
    display: inline-flex;
    color: var(--primary);
    font-weight: 900;
}

.project-more:hover {
    color: var(--accent);
}

.project-empty {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 59, 99, .06);
}

.project-empty h3 {
    margin-top: 0;
}

.project-empty p {
    color: var(--muted);
}

@media (max-width: 860px) {
    .project-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
    }

    .project-filter-link {
        white-space: nowrap;
    }

    .project-list-card .project-image {
        height: 210px;
    }

    .project-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-meta small {
        text-align: left;
    }
}












.project-image {
    background-size: cover;
    background-position: center;
}

.project-detail-image {
    margin-bottom: 24px;
}

.project-detail-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid var(--border);
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-table-wrap {
    margin-top: 24px;
}

#categoryModal .admin-modal-box {
    width: min(920px, calc(100% - 32px));
}

#categoryDescription {
    min-height: 90px;
}

.gallery-modal-box {
    width: min(1040px, calc(100% - 32px));
}

.gallery-upload-box {
    border: 1px dashed var(--border);
    background: var(--soft);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.gallery-upload-box label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
}

.gallery-list {
    display: grid;
    gap: 16px;
}

.gallery-empty {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    color: var(--muted);
    background: #ffffff;
}

.gallery-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--soft);
}

.gallery-item-body label {
    margin-top: 10px;
}

.gallery-item-body input {
    margin-bottom: 10px;
}

.gallery-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gallery-actions {
    margin-top: 8px;
}

@media (max-width: 800px) {
    .gallery-item {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 210px;
    }
}

/* =========================
   HOME PAGE UPGRADE
========================= */

.home-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, .24), transparent 34%),
        linear-gradient(135deg, #06233c 0%, #0f3b63 48%, #071b2d 100%);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: 1.15fr .85fr;
}

.home-hero-content h1 {
    max-width: 660px;
    font-size: clamp(34px, 4.2vw, 52px);
    letter-spacing: -0.035em;
}

.home-hero-content .hero-text {
    max-width: 620px;
    font-size: 17px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-stats div {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 16px;
}

.hero-stats strong {
    display: block;
    color: var(--accent);
    font-size: 26px;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stats span {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.home-hero-panel {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .09);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
}

.hero-logo-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.hero-logo-card img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 20px;
    padding: 8px;
}

.hero-logo-card h3 {
    margin: 0 0 4px;
}

.hero-logo-card p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
}

.hero-service-list {
    display: grid;
    gap: 12px;
}

.hero-service-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
}

.hero-service-list span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 900;
}

.hero-service-list p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
}

.hero-hotline-box {
    display: block;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ef4444, var(--accent));
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(239, 68, 68, .24);
}

.hero-hotline-box small {
    display: block;
    opacity: .9;
    margin-bottom: 4px;
}

.hero-hotline-box strong {
    display: block;
    font-size: 24px;
}

.section-title-row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.section-title-row > p {
    max-width: 430px;
    color: var(--muted);
    margin: 0 0 8px;
}

.section-link {
    color: var(--primary);
    font-weight: 900;
}

.section-link:hover {
    color: var(--accent);
}

.home-services-section {
    background: #ffffff;
}

.service-grid {
    align-items: stretch;
}

.home-service-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    transition: .2s ease;
}

.home-service-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
}

.home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 59, 99, .12);
}

.home-service-card .service-icon {
    color: var(--primary);
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
}

.home-service-card h3 {
    margin-top: 0;
}

.home-service-card p {
    color: var(--muted);
}

.home-why-section {
    background:
        linear-gradient(180deg, #f3f6fa 0%, #eef4fb 100%);
}

.home-feature-grid > div {
    transition: .2s ease;
}

.home-feature-grid > div:hover {
    transform: translateY(-4px);
}

.home-feature-grid strong {
    color: var(--accent);
}

.home-project-section {
    background: #ffffff;
}

.home-project-card {
    padding: 0;
    overflow: hidden;
    transition: .2s ease;
}

.home-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 59, 99, .12);
}

.home-project-card .project-image {
    margin: 0;
    height: 220px;
    border-radius: 22px 22px 0 0;
}

.home-project-card .project-body {
    padding: 22px;
}

.home-project-card h3 {
    margin: 8px 0 10px;
    line-height: 1.35;
}

.home-project-card p {
    color: var(--muted);
}

.project-short {
    font-size: 15px;
}

.home-cta {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .26), transparent 30%),
        linear-gradient(135deg, var(--accent), #ef4444);
}

.home-cta .eyebrow {
    color: rgba(255, 255, 255, .9);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer {
    padding: 42px 0 18px;
}
.footer-grid a {
    display: block;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-brand p {
    max-width: 420px;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    font-weight: 900;
    margin-bottom: 14px !important;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 14px;
    padding: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.floating-contact {
    right: 16px;
    bottom: 16px;
}

.floating-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    padding: 10px 14px;
    font-size: 15px;
}

.floating-contact span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    font-size: 13px;
    font-weight: 900;
}

.floating-call {
    background: #dc2626 !important;
}

.floating-zalo {
    background: #0f3b63 !important;
}

@media (max-width: 860px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-panel {
        padding: 20px;
    }

    .hero-logo-card {
        grid-template-columns: 60px 1fr;
    }

    .hero-logo-card img {
        width: 60px;
        height: 60px;
    }

    .section-title-row {
        display: block;
    }

    .section-title-row > p {
        margin-top: 10px;
    }

    .home-project-card .project-image {
        height: 210px;
    }

    .cta-actions {
        width: 100%;
    }

    .cta-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom p + p {
        margin-top: 8px;
    }
}

@media (min-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-service-card {
        min-height: 270px;
    }
}

@media (max-width: 600px) {
    .floating-contact {
        right: 12px;
        bottom: 12px;
    }

    .floating-contact a {
        min-width: auto;
        padding: 10px 12px;
        font-size: 14px;
    }
}

.home-project-grid {
    align-items: stretch;
}

.home-project-card {
    display: flex;
    flex-direction: column;
}

.home-project-card > a {
    display: block;
}

.home-project-card .project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.home-project-card .project-body > a {
    margin-top: auto;
}

.home-project-card .project-body span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 6px;
}

.home-project-card .project-image-empty {
    min-height: 220px;
}

/* =========================
   SERVICE PAGE UPGRADE
========================= */

.service-list-hero {
    background:
        linear-gradient(135deg, rgba(15, 59, 99, .94), rgba(9, 40, 66, .92)),
        linear-gradient(135deg, #dbeafe, #fef3c7);
    color: #ffffff;
}

.service-list-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .84);
}

.service-list-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.service-list-grid {
    align-items: stretch;
}

.service-list-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: .2s ease;
}

.service-list-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .13);
}

.service-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 59, 99, .12);
}

.service-list-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.service-list-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.service-card-footer {
    margin-top: auto;
}

.service-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .16), transparent 32%),
        linear-gradient(135deg, #f3f6fa 0%, #eef4fb 100%);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 28px;
    align-items: center;
}

.service-hero-grid h1 {
    max-width: 760px;
}

.service-hero-grid > div > p {
    max-width: 760px;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.service-hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 42px rgba(15, 59, 99, .09);
}

.service-detail-icon {
    background: linear-gradient(135deg, #e0f2fe, #fef3c7);
}

.service-detail-section {
    background: #ffffff;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.service-detail-main {
    display: grid;
    gap: 28px;
}

.service-block {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(15, 59, 99, .06);
}

.service-block h2 {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.25;
}

.service-content p {
    color: #334155;
    margin-bottom: 14px;
}

.service-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-benefit-grid > div {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.service-benefit-grid strong {
    color: var(--accent);
    font-size: 22px;
    font-weight: 900;
}

.service-benefit-grid h3 {
    margin: 8px 0;
}

.service-benefit-grid p {
    margin: 0;
    color: var(--muted);
}

.service-process {
    display: grid;
    gap: 12px;
}

.service-process div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}

.service-process span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.service-process p {
    margin: 0;
    color: #334155;
}

.service-detail-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

.service-contact-box,
.service-note-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 59, 99, .06);
}

.service-contact-box {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .16), transparent 38%),
        #ffffff;
}

.service-contact-box h3,
.service-note-box h3 {
    margin-top: 0;
}

.service-contact-box p {
    color: var(--muted);
}

.service-contact-box .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.service-note-box ul {
    padding-left: 18px;
    margin-bottom: 0;
    color: #334155;
}

.service-note-box li {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .service-hero-grid,
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        position: static;
    }

    .service-benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HOME HERO SOLUTION PANEL
========================= */

.home-solution-panel {
    padding: 28px;
}

.solution-panel-head {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.solution-panel-head img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 22px;
    padding: 8px;
}

.solution-panel-head p {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.solution-panel-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.25;
}

.solution-check-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.solution-check-list div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
}

.solution-check-list span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.solution-check-list p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
}

.solution-service-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.solution-service-mini a {
    padding: 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .2s ease;
}

.solution-service-mini a:hover {
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

.solution-service-mini strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 4px;
}

.solution-service-mini small {
    display: block;
    color: rgba(255, 255, 255, .72);
    line-height: 1.45;
}

.solution-hotline-box {
    margin-top: 0;
}

@media (max-width: 860px) {
    .solution-panel-head {
        grid-template-columns: 60px 1fr;
    }

    .solution-panel-head img {
        width: 60px;
        height: 60px;
    }

    .solution-panel-head h3 {
        font-size: 20px;
    }

    .solution-service-mini {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MOBILE FIX - HOME PAGE
========================= */

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

img {
    max-width: 100%;
}

@media (max-width: 860px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .site-header {
        overflow: hidden;
    }

    .header-inner {
        min-height: 72px;
        gap: 12px;
    }

    .logo {
        min-width: 0;
    }

    .logo-img {
        width: 46px;
        height: 46px;
        flex: 0 0 auto;
    }

    .logo-text {
        font-size: 16px;
        white-space: nowrap;
    }

    .home-hero {
        padding: 46px 0 52px;
        overflow: hidden;
    }

    .home-hero::after {
        right: -190px;
        top: -120px;
        width: 320px;
        height: 320px;
    }

    .home-hero-grid {
        display: block;
    }

    .home-hero-content {
        max-width: 100%;
        overflow: hidden;
    }

    .home-hero-content h1 {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.12;
        letter-spacing: -0.04em;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .home-hero-content .hero-text {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.65;
        overflow-wrap: break-word;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
    }

    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 26px;
    }

    .hero-stats div {
        padding: 16px 18px;
    }

    .home-solution-panel {
        width: 100%;
        margin-top: 28px;
        padding: 18px;
        border-radius: 22px;
        overflow: hidden;
    }

    .solution-panel-head {
        grid-template-columns: 54px 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .solution-panel-head img {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .solution-panel-head h3 {
        font-size: 19px;
        line-height: 1.3;
    }

    .solution-check-list div {
        grid-template-columns: 30px 1fr;
        padding: 12px;
    }

    .solution-check-list span {
        width: 30px;
        height: 30px;
    }

    .solution-check-list p {
        font-size: 14px;
        line-height: 1.55;
    }

    .solution-service-mini {
        grid-template-columns: 1fr;
    }

    .solution-service-mini a {
        padding: 12px;
    }

    .hero-hotline-box strong {
        font-size: 22px;
    }

    .section {
        padding: 54px 0;
    }

    .section-title h2 {
        font-size: clamp(30px, 8vw, 38px);
        line-height: 1.18;
    }

    .section-title-row {
        display: block;
    }

    .section-title-row > p {
        max-width: 100%;
        margin-top: 12px;
    }

    .service-card,
    .project-card,
    .feature-grid > div {
        min-width: 0;
        overflow: hidden;
    }

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

    .home-service-card h3,
    .home-service-card p {
        overflow-wrap: break-word;
    }

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

    .floating-contact a {
        min-width: 96px;
        padding: 10px 13px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .home-hero-content h1 {
        font-size: 38px;
    }

    .home-hero-content .hero-text {
        font-size: 16px;
    }

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

    .logo-text {
        font-size: 15px;
    }

    .menu-toggle {
        padding: 8px 11px;
    }
}

/* =========================
   HOME CONVERSION SECTIONS
========================= */

.service-area-section {
    background: #ffffff;
    padding-top: 0;
}

.service-area-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .12), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 14px 36px rgba(15, 59, 99, .07);
}

.service-area-grid h2 {
    margin: 8px 0 12px;
    font-size: 32px;
    line-height: 1.25;
}

.service-area-grid p {
    color: var(--muted);
    margin-bottom: 0;
}

.service-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-area-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 59, 99, .05);
}

.real-work-section {
    background: #ffffff;
}

.real-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.real-work-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 230px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px rgba(15, 59, 99, .08);
}

.real-work-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: .25s ease;
}

.real-work-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(6, 24, 39, .82));
}

.real-work-item span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.35;
}

.real-work-item:hover img {
    transform: scale(1.04);
}

.quote-section {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, .16), transparent 32%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.quote-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 32px;
    align-items: center;
}

.quote-content h2 {
    margin: 8px 0 14px;
    font-size: 36px;
    line-height: 1.2;
}

.quote-content p {
    color: var(--muted);
}

.quote-points {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.quote-points div {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
}

.quote-points strong {
    color: var(--accent);
    font-size: 22px;
    font-weight: 900;
}

.quote-points span {
    color: #334155;
}

.quote-form {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 18px 48px rgba(15, 59, 99, .11);
}

.quote-form h3 {
    margin: 0 0 18px;
    font-size: 26px;
    color: var(--primary);
}

.quote-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quote-form-grid textarea {
    grid-column: 1 / -1;
    resize: vertical;
}

.quote-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}

.quote-form-note {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
}

.quote-form-note a {
    color: var(--primary);
    font-weight: 900;
}

@media (max-width: 860px) {
    .service-area-section {
        padding-top: 0;
    }

    .service-area-grid,
    .quote-grid {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .service-area-grid h2,
    .quote-content h2 {
        font-size: 30px;
    }

    .real-work-grid {
        grid-template-columns: 1fr;
    }

    .real-work-item img {
        height: 240px;
    }

    .quote-form {
        padding: 22px;
    }

    .quote-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   ADMIN CONTACTS
========================= */

.status-new {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.contact-modal-box {
    width: min(820px, calc(100% - 32px));
}

.contact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-detail-grid .full {
    grid-column: 1 / -1;
}

.contact-detail-grid label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--primary);
}

.contact-detail-grid p {
    margin: 0;
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    color: #334155;
}

#contactStatus,
#contactNote {
    margin-bottom: 14px;
}

@media (max-width: 800px) {
    .contact-detail-grid {
        grid-template-columns: 1fr;
    }
}