:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --sea: #0f766e;
    --sea-deep: #115e59;
    --sand: #fff8ef;
    --sun: #f59e0b;
    --card: #ffffff;
    --line: #dbe4ea;
    --danger: #b91c1c;
    --success: #0a7a54;
    --bg: radial-gradient(circle at 10% 10%, #fff6dd 0%, #f6fbff 45%, #eff6ff 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

@keyframes bgDrift {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 60%;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes panelFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -12px, 0) scale(1.04);
    }
}

@keyframes glowSweep {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes navItemIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileCardPulse {
    0%,
    100% {
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
    }
    50% {
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    }
}

@keyframes cardFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuTogglePulse {
    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.88;
    }
    50% {
        transform: scaleX(1.18);
        opacity: 1;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(0.95rem, 0.92rem + 0.22vw, 1.05rem);
    background: var(--bg);
    background-size: 180% 180%;
    animation: bgDrift 22s ease infinite;
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}

h1 {
    font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.2rem);
    line-height: 1.12;
}

h2 {
    font-size: clamp(1.4rem, 1.08rem + 1.85vw, 2.35rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.1rem, 0.98rem + 1.05vw, 1.55rem);
    line-height: 1.26;
}

p {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

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

img {
    max-width: 100%;
    display: block;
}

.page {
    padding-top: clamp(0.75rem, 1vw, 1.1rem);
    flex: 1;
    width: 100%;
    overflow-x: clip;
}

.page.compact-top {
    padding-top: clamp(0.9rem, 1.2vw, 1.3rem);
}

.shell {
    width: min(94%, 100vw);
    max-width: 70rem;
    margin: 0 auto;
}

.narrow {
    width: min(42.5rem, 94%);
}

.section {
    padding: 2.2rem 0;
}

.section-tint {
    background: linear-gradient(145deg, rgba(255, 243, 222, 0.75), rgba(235, 250, 247, 0.7));
    border-top: 1px solid rgba(17, 24, 39, 0.05);
    border-bottom: 1px solid rgba(17, 24, 39, 0.05);
}

.section-head {
    margin-bottom: 1.25rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--sea);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    z-index: 100;
    isolation: isolate;
    will-change: backdrop-filter;
    width: 100%;
    max-width: 100vw;
    overflow: visible;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.625rem;
    gap: 0.9rem;
    position: relative;
    z-index: 102;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: var(--ink);
}

.brand-logo {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.13);
}

.brand-text {
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 101;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.main-nav > a,
.main-nav > form > .btn {
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    color: var(--ink-soft);
    font-weight: 600;
    transition: all 0.2s ease;
    min-block-size: 3rem;
}

.main-nav > a.active,
.main-nav > a:hover,
.main-nav > form > .btn:hover {
    color: var(--ink);
    background: rgba(15, 118, 110, 0.1);
}

.main-nav > form {
    margin: 0;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0.35rem;
    cursor: pointer;
    min-width: 3rem;
    min-height: 3rem;
}

.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 0.125rem;
    margin: 0.3125rem 0;
    border-radius: 0.3125rem;
    background: var(--ink);
}

.menu-toggle.is-open span {
    animation: menuTogglePulse 1.08s ease-in-out infinite;
}

.menu-toggle.is-open span:nth-child(2) {
    animation-delay: 0.08s;
}

.menu-toggle.is-open span:nth-child(3) {
    animation-delay: 0.16s;
}

.hero {
    padding: 2.4rem 0 1.2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.hero-copy {
    max-width: 64ch;
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-panel {
    background: linear-gradient(170deg, #0f766e 0%, #134e4a 55%, #0f172a 100%);
    color: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    animation: panelFloat 7s ease-in-out infinite;
}

.hero-panel ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.hero-panel li {
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.9);
}

.home-page {
    position: relative;
    overflow-x: clip;
}

.home-hero {
    position: relative;
    padding: 2.5rem 0 1.8rem;
    overflow-x: clip;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.home-hero::before {
    width: 21.25rem;
    height: 21.25rem;
    top: -8.125rem;
    right: -6.875rem;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.26), rgba(14, 165, 233, 0));
}

.home-hero::after {
    width: 17.5rem;
    height: 17.5rem;
    bottom: -7.5rem;
    left: -5rem;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0));
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 1.2rem;
    align-items: center;
}

.home-hero-copy h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.04;
    max-width: 17ch;
}

.home-hero-copy .hero-copy {
    max-width: 62ch;
    margin-top: 0.7rem;
}

.home-kpi-row {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.home-kpi {
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(6px);
    padding: 0.7rem 0.78rem;
}

.home-kpi h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #0f172a;
}

.home-kpi p {
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-hero-showcase {
    position: relative;
    min-height: 21.25rem;
    display: grid;
    place-items: center;
}

.home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: orbFloat 8s ease-in-out infinite;
}

.home-orb-one {
    width: 11.875rem;
    height: 11.875rem;
    top: 8%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.75), rgba(15, 118, 110, 0.12));
}

.home-orb-two {
    width: 10.625rem;
    height: 10.625rem;
    bottom: 2%;
    left: 4%;
    animation-delay: -2.2s;
    background: radial-gradient(circle at 35% 35%, rgba(14, 165, 233, 0.75), rgba(14, 165, 233, 0.1));
}

.home-console {
    position: relative;
    width: min(100%, 26.875rem);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(17, 94, 89, 0.9));
    color: #e2fef8;
    padding: 1rem;
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.27);
    transform-style: preserve-3d;
    transition: transform 0.25s ease;
}

.home-console::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.home-console-head {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #99f6e4;
}

.home-console-item {
    margin-top: 0.62rem;
    border: 1px solid rgba(153, 246, 228, 0.2);
    border-radius: 12px;
    padding: 0.62rem 0.65rem;
    background: rgba(15, 23, 42, 0.33);
}

.home-console-item span {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(204, 251, 241, 0.8);
}

.home-console-item strong {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.95rem;
    color: #f8fafc;
}

.home-console-foot {
    margin-top: 0.72rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fef9c3;
}

.home-strip {
    margin: 0.5rem 0 0.3rem;
}

.home-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-strip-item {
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    padding: 0.9rem 0.85rem;
    box-shadow: var(--shadow);
}

.home-strip-item .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f766e;
    font-weight: 700;
}

.home-strip-item h3 {
    margin: 0.3rem 0 0.28rem;
    font-size: 1.02rem;
}

.home-strip-item p {
    font-size: 0.88rem;
    line-height: 1.45;
}

.home-headline {
    max-width: 70ch;
}

.home-headline p {
    line-height: 1.5;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0.95rem;
}

.home-service-card {
    position: relative;
    border: 1px solid #d7e2ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.home-service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 0.1875rem;
    background: linear-gradient(90deg, #14b8a6, #0284c7, #14b8a6);
    background-size: 200% 100%;
    animation: glowSweep 7s linear infinite;
}

.home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.14);
    border-color: rgba(14, 116, 144, 0.34);
}

.home-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-weight: 700;
    color: #0f5f82;
    background: rgba(14, 165, 233, 0.16);
}

.home-service-card h3 {
    margin: 0.6rem 0 0.3rem;
}

.home-service-card p {
    line-height: 1.45;
}

.home-price {
    margin-top: 0.74rem;
    color: #0f766e;
    font-weight: 800;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-step {
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.9rem;
}

.home-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    min-width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    color: #155e75;
    font-weight: 800;
    background: rgba(34, 211, 238, 0.18);
}

.home-step h3 {
    margin-top: 0.55rem;
}

.home-step p {
    line-height: 1.44;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-review-card {
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.home-review-head {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    margin-bottom: 0.56rem;
}

.home-review-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d1e2e8;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-review-avatar-fallback {
    font-weight: 800;
    color: #0f766e;
    background: linear-gradient(145deg, #dff4ef 0%, #e6f7ff 100%);
}

.home-review-card .meta {
    margin: 0;
    font-weight: 700;
    color: #334155;
}

.home-review-card .quote {
    color: #0f172a;
    line-height: 1.55;
    margin-top: 0.2rem;
}

.home-cta-card {
    border-radius: 20px;
    border: 1px solid rgba(15, 118, 110, 0.3);
    background: linear-gradient(145deg, #0f172a 0%, #115e59 65%, #0f766e 100%);
    color: #f0fdfa;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28);
}

.home-cta-card p,
.home-cta-card h2 {
    color: #f0fdfa;
}

.home-cta-actions {
    display: grid;
    gap: 0.55rem;
    min-width: 11.875rem;
}

.home-cta-card .btn-line {
    border-color: rgba(204, 251, 241, 0.45);
    color: #e6fffa;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.56rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-block-size: 3rem;
    min-inline-size: 3rem;
}

.btn-solid {
    background: linear-gradient(135deg, var(--sea), var(--sea-deep));
    color: white;
    border-color: transparent;
}

.btn-line {
    border-color: rgba(15, 118, 110, 0.45);
    color: var(--sea-deep);
    background: transparent;
}

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

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn:active,
.card:active,
.home-service-card:active,
.home-review-card:active,
.home-step:active,
.home-strip-item:active {
    transform: scale(0.98);
    filter: brightness(0.98);
}

.main-nav > a:active,
.admin-nav a:active {
    background: rgba(15, 118, 110, 0.16);
}

.btn.full {
    width: 100%;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 118, 110, 0.24);
}

.card.large {
    padding: 1.2rem;
}

.section-card {
    margin-bottom: 1.1rem;
}

.review .quote {
    color: var(--ink);
    line-height: 1.5;
}

.review .meta,
.meta,
.small {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #64748b;
}

.review-admin-text {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.5;
    color: #1f2937;
}

.price {
    margin-top: 0.85rem;
    color: var(--sea-deep);
    font-weight: 700;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--sea-deep);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.services-page {
    background: linear-gradient(180deg, #f1f6fb 0%, #f8fbfd 34%, #ffffff 100%);
}

.services-hero {
    padding: 1rem 0 0.75rem;
}

.services-hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(196, 214, 228, 0.7);
    background:
        linear-gradient(120deg, rgba(13, 27, 55, 0.86) 0%, rgba(20, 39, 71, 0.82) 38%, rgba(13, 35, 70, 0.8) 100%),
        radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 56%),
        radial-gradient(circle at 8% 78%, rgba(14, 165, 233, 0.16) 0%, rgba(14, 165, 233, 0) 48%);
    padding: 2.3rem 2.1rem;
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.2);
}

.services-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
}

.services-hero-panel > * {
    position: relative;
    z-index: 1;
}

.services-hero-kicker {
    color: rgba(191, 219, 254, 0.95);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.76rem;
    margin-bottom: 0.48rem;
}

.services-hero-panel h1 {
    color: #f8fafc;
    margin: 0;
    max-width: 54.375rem;
    font-size: clamp(2rem, 4.7vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.services-hero-panel p {
    margin-top: 0.75rem;
    color: rgba(226, 232, 240, 0.95);
    max-width: 49rem;
    font-size: clamp(1rem, 1.85vw, 1.72rem);
    line-height: 1.42;
}

.services-hero-line {
    display: block;
    width: min(52rem, 92%);
    height: 2px;
    margin: 1.08rem 0 1rem;
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.95) 0%, rgba(239, 68, 68, 0.85) 55%, rgba(239, 68, 68, 0.1) 100%);
}

.services-hero-btn {
    min-width: 12rem;
    color: #e2e8f0;
    border-color: rgba(191, 219, 254, 0.55);
    background: rgba(15, 23, 42, 0.28);
}

.services-hero-btn:hover {
    border-color: rgba(255, 255, 255, 0.82);
    color: #ffffff;
}

.services-list-section {
    padding-top: 0.9rem;
}

.services-headline {
    margin-bottom: 0.9rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.services-card {
    border-radius: 16px;
    border: 1px solid #d6e3ec;
    background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
}

.services-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.services-tag {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
    color: #0f4c81;
    font-weight: 700;
    text-transform: uppercase;
}

.services-card h3 {
    margin: 0.18rem 0 0.35rem;
}

.services-desc {
    margin: 0;
}

.services-card-action {
    margin-top: 0.82rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.careers-head {
    text-align: center;
    max-width: 61.25rem;
    margin-left: auto;
    margin-right: auto;
}

.career-list {
    display: grid;
    gap: 1rem;
}

.career-list-polished {
    gap: 1.2rem;
}

.career-card {
    background: #fff;
}

.careers-showcase {
    background: linear-gradient(180deg, #eef5fb 0%, #f8fbfd 72%, #ffffff 100%);
}

.careers-head h1 {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
    letter-spacing: -0.02em;
}

.careers-head p {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.career-card-polished {
    border-radius: 18px;
    border: 1px solid #d7e5ee;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    padding: 1.12rem;
}

.career-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
}

.career-role {
    margin-bottom: 0.5rem;
    color: #0f3d73;
}

.career-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
    margin-bottom: 0.46rem;
}

.career-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    background: #ebf5ff;
    border: 1px solid #d4e7f8;
    color: #0f4c81;
    font-size: 0.79rem;
    font-weight: 700;
}

.career-location {
    color: #0d9488;
    font-weight: 700;
    margin-bottom: 0.56rem;
}

.career-meta-grid-polished {
    margin: 0.2rem 0 0.65rem;
}

.career-detail {
    margin: 0.45rem 0 0.24rem;
}

.career-detail-text {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: #1f2937;
}

.career-card-action {
    display: grid;
    justify-items: end;
    gap: 0.45rem;
    min-width: 14rem;
}

.career-apply-btn {
    min-width: 12.2rem;
    min-height: 2.95rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d9ad1 0%, #0f5e9f 100%);
    border-color: rgba(10, 66, 124, 0.45);
    box-shadow: 0 14px 24px rgba(13, 103, 170, 0.25);
}

.career-apply-link {
    font-weight: 700;
    color: #0f5e9f;
    font-size: 0.86rem;
    text-decoration: none;
}

.career-apply-link:hover {
    text-decoration: underline;
}

.career-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.career-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.8rem;
    margin-bottom: 0.65rem;
}

.career-meta-grid p,
.career-card p {
    line-height: 1.45;
}

.case-admin-form textarea {
    min-height: 11.5rem;
}

.case-admin-grid {
    display: grid;
    gap: 0.9rem;
}

.case-admin-card {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.case-admin-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d7e4ec;
    background: #f8fbff;
    aspect-ratio: 4 / 3;
}

.case-admin-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-admin-body {
    display: grid;
    gap: 0.5rem;
}

.case-admin-body h4 {
    margin: 0;
}

.case-admin-text {
    margin: 0;
    color: #334155;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.case-public-page {
    background: linear-gradient(180deg, #f3f6fb 0%, #f7f9fc 45%, #ffffff 100%);
}

.case-public-hero {
    padding-bottom: 0.4rem;
}

.case-public-head {
    text-align: center;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.case-public-list-wrap {
    padding-top: 0.25rem;
}

.case-public-item {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.72fr);
    gap: 1rem;
    align-items: start;
    border-radius: 20px;
    border: 1px solid #dae3ec;
    background: linear-gradient(180deg, #f9fbfd 0%, #f1f4f8 100%);
    padding: 1.5rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.1rem;
}

.case-public-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(circle at -5% 42%, rgba(255, 255, 255, 0.75) 0 3px, rgba(255, 255, 255, 0) 3px 18px);
    opacity: 0.35;
    pointer-events: none;
}

.case-public-content,
.case-public-media {
    position: relative;
    z-index: 1;
}

.case-public-content h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.1vw, 2.95rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.case-public-byline {
    margin: 0.75rem 0 0.12rem;
    font-size: 1.02rem;
    color: #1f2937;
}

.case-public-date {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.case-public-divider {
    width: min(100%, 42rem);
    height: 2px;
    margin: 0.8rem 0 0.9rem;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.92) 0%, rgba(239, 68, 68, 0.06) 100%);
}

.case-public-content h3 {
    margin-bottom: 0.45rem;
    color: #ef4444;
    font-size: 1.04rem;
}

.case-public-text {
    margin: 0;
    color: #374151;
    line-height: 1.52;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.case-public-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d8e4ed;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.case-public-media img {
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    display: block;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.map-frame {
    width: 100%;
    height: 20rem;
    border: 0;
    border-radius: var(--radius-sm);
    margin-top: 0.6rem;
    box-shadow: var(--shadow);
}

.profile .avatar {
    width: 3.625rem;
    height: 3.625rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dceef2;
    color: var(--sea);
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page-grid {
    align-items: start;
}

.profile-card {
    display: grid;
    gap: 0.75rem;
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.profile-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #cfd9e2;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-fallback {
    color: #0f766e;
    font-weight: 800;
    font-size: 1.55rem;
    background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
}

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.form-grid > .btn {
    grid-column: span 2;
    justify-self: flex-start;
}

.form-grid .span-2 {
    grid-column: span 2;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.94rem;
    min-width: 0;
}

input,
select,
textarea {
    border: 1px solid #cfd9e2;
    border-radius: var(--radius-sm);
    padding: 0.66rem 0.72rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.career-apply-form {
    min-width: 0;
}

.career-apply-form label,
.career-apply-form .span-2 {
    min-width: 0;
}

.career-apply-form input,
.career-apply-form select,
.career-apply-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.career-position-select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 118, 110, 0.2);
    border-color: var(--sea);
}

.error {
    color: var(--danger);
    font-size: 0.8rem;
    font-weight: 600;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.alert.success {
    background: rgba(16, 185, 129, 0.14);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.alert.error {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--sea-deep);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 43.75rem;
}

th,
td {
    padding: 0.72rem;
    border-bottom: 1px solid #e5ebf0;
    text-align: left;
    vertical-align: top;
}

th {
    font-family: "Space Grotesk", sans-serif;
    color: #1e293b;
    background: #f7fbff;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.offer-preview {
    max-width: 57.5rem;
    margin: 0 auto;
    border: 1px solid #d8e3ea;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 1.15rem 1.3rem;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.offer-logo {
    width: 10.625rem;
    height: auto;
}

.offer-contact {
    text-align: right;
}

.offer-contact p {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 700;
}

.offer-divider {
    height: 0.125rem;
    margin: 0.9rem 0 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2ac8bc, #0f766e);
}

.offer-body {
    display: grid;
    gap: 0.6rem;
}

.offer-body p {
    color: #1f2937;
    line-height: 1.56;
}

.offer-body h3 {
    margin: 0.45rem 0 0.15rem;
    font-size: 1.02rem;
}

.offer-body ul {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.28rem;
}

.offer-body li {
    color: #1f2937;
    line-height: 1.45;
}

.offer-date {
    text-align: right;
    color: #0f172a;
    font-weight: 700;
}

.inline-form,
.upload-inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.customer-inline-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
}

.customer-mini {
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.customer-mini-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #c7dce4;
    background: #eff5f9;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-mini-avatar-fallback {
    color: #0f766e;
    font-weight: 800;
    background: linear-gradient(145deg, #dff4ef 0%, #e6f7ff 100%);
}

.customer-mini-meta {
    display: grid;
    gap: 0.08rem;
}

.customer-mini-meta strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.customer-mini-meta span {
    font-size: 0.83rem;
    color: #64748b;
}

.status {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
}

.status-assigned {
    background: rgba(245, 158, 11, 0.18);
    color: #9a6700;
}

.status-in_progress {
    background: rgba(14, 165, 233, 0.18);
    color: #0369a1;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.footer-shell {
    min-height: 4.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.86rem;
    flex-wrap: wrap;
    padding: 0.7rem 0;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    color: var(--ink);
    font-family: "Space Grotesk", sans-serif;
}

.admin-layout {
    display: grid;
    grid-template-columns: 17.5rem 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: linear-gradient(170deg, #0f172a 0%, #0b3a36 100%);
    color: #d3f7f2;
    padding: 1.2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    margin-bottom: 1rem;
    color: #ecfeff;
}

.admin-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.admin-brand .brand-logo {
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
}

.admin-brand .brand-text {
    color: #ecfeff;
}

.admin-menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.55rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    line-height: 1;
}

.admin-menu-toggle span {
    display: block;
    width: 1.28rem;
    height: 0.14rem;
    border-radius: 999px;
    background: #d7fcf7;
    margin: 0;
}

.admin-menu-toggle.is-open span {
    animation: menuTogglePulse 1.08s ease-in-out infinite;
}

.admin-menu-toggle.is-open span:nth-child(2) {
    animation-delay: 0.08s;
}

.admin-menu-toggle.is-open span:nth-child(3) {
    animation-delay: 0.16s;
}

.admin-sidebar-menu {
    display: block;
}

.admin-nav {
    display: grid;
    gap: 0.34rem;
}

.admin-nav a {
    padding: 0.56rem 0.7rem;
    border-radius: 10px;
    color: #d3f7f2;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.admin-logout {
    margin-top: 1rem;
}

.admin-main {
    padding: 1.3rem;
}

.avatar-mini {
    width: 2.625rem;
    height: 2.625rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.chat-admin-layout {
    display: grid;
    grid-template-columns: 18.125rem 1fr;
    gap: 1rem;
    align-items: start;
}

.thread-list {
    position: sticky;
    top: 1rem;
}

.thread-list-body {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thread-item {
    display: grid;
    gap: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.65rem 0.7rem;
    background: #fff;
    transition: all 0.2s ease;
}

.thread-item span,
.thread-item small {
    color: #64748b;
    font-size: 0.85rem;
}

.thread-item.active,
.thread-item:hover {
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(15, 118, 110, 0.08);
}

.thread-item.disabled {
    pointer-events: none;
    color: #94a3b8;
}

.chat-card {
    display: grid;
    gap: 0.8rem;
}

.chat-history {
    display: grid;
    gap: 0.72rem;
    max-height: 56vh;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.chat-row {
    display: flex;
}

.chat-row.self {
    justify-content: flex-end;
}

.chat-row.admin,
.chat-row.customer {
    justify-content: flex-start;
}

.chat-bubble {
    width: min(100%, 38.75rem);
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.68rem 0.78rem;
}

.chat-row.self .chat-bubble {
    background: rgba(15, 118, 110, 0.12);
    border-color: rgba(15, 118, 110, 0.3);
}

.chat-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.3rem;
}

.chat-time {
    margin-top: 0.45rem;
    font-size: 0.76rem;
    color: #64748b;
}

.chat-attachment {
    display: inline-flex;
    margin-top: 0.45rem;
    padding: 0.24rem 0.52rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f5f82;
    background: rgba(14, 165, 233, 0.14);
}

.chat-form {
    display: grid;
    gap: 0.6rem;
    border-top: 1px solid var(--line);
    padding-top: 0.8rem;
}

.chat-form-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-form-row input[type=\"file\"] {
    flex: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.54s ease, transform 0.54s ease;
}

.card.reveal.is-visible,
.home-service-card.reveal.is-visible,
.home-review-card.reveal.is-visible,
.home-step.reveal.is-visible {
    animation: cardFadeUp 0.46s ease both;
}

@media (max-width: 64rem) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-hero-panel {
        padding: 1.5rem 1.15rem;
    }

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

    .home-hero-grid,
    .home-cta-card {
        grid-template-columns: 1fr;
    }

    .home-cta-actions {
        min-width: 0;
        width: 100%;
    }

    .home-cta-actions .btn {
        width: 100%;
    }

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

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

    .home-service-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    }

    .case-admin-card,
    .case-public-item {
        grid-template-columns: 1fr;
    }

    .case-public-media {
        order: -1;
    }

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

    .career-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 190;
        border-right: 0;
        border-bottom: 1px solid rgba(236, 254, 255, 0.14);
        padding: 0.72rem 0.78rem;
        overflow: visible;
    }

    .admin-sidebar-top {
        min-height: 3rem;
        width: 100%;
    }

    .admin-sidebar-top .admin-brand {
        margin-bottom: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .admin-brand .brand-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        flex: 0 0 auto;
        background: rgba(236, 254, 255, 0.18);
        border-color: rgba(236, 254, 255, 0.45);
    }

    .admin-sidebar-menu {
        position: absolute;
        left: 0.55rem;
        right: 0.55rem;
        top: calc(100% - 0.1rem);
        background: linear-gradient(170deg, #0f172a 0%, #0b3a36 100%);
        border: 1px solid rgba(236, 254, 255, 0.18);
        border-radius: 0.85rem;
        box-shadow: 0 0.9rem 1.6rem rgba(15, 23, 42, 0.34);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-0.35rem) scale(0.985);
        transform-origin: top;
        transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
        margin-top: 0;
        padding: 0;
    }

    .admin-sidebar-menu.open {
        max-height: min(70dvh, 32rem);
        opacity: 1;
        overflow-y: auto;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        padding: 0.4rem;
    }

    .admin-main {
        padding: 1rem 0.8rem;
    }

    .admin-main .stat-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .admin-main .stat-card {
        min-height: 0;
        padding: 0.85rem;
    }

    .admin-main .stat-card h3 {
        font-size: 1.75rem;
    }

    .admin-main .card,
    .admin-main .form-card {
        padding: 0.9rem;
    }

    .admin-main .action-row {
        flex-wrap: wrap;
    }

    .footer-shell {
        justify-content: center;
        text-align: center;
    }

    .chat-admin-layout {
        grid-template-columns: 1fr;
    }

    .thread-list {
        position: relative;
        top: auto;
    }
}

@media (max-width: 51.25rem) {
    .site-header .shell.nav-shell {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .site-header {
        z-index: 160;
    }

    .shell {
        width: min(94%, 100vw);
    }

    .admin-sidebar {
        padding: 0.75rem 0.65rem;
        position: sticky;
        top: 0;
        z-index: 190;
    }

    .admin-sidebar-top {
        min-height: 3rem;
    }

    .admin-menu-toggle {
        min-width: 3rem;
        min-height: 3rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 180;
    }

    .admin-sidebar-menu {
        left: 0.4rem;
        right: 0.4rem;
        top: calc(100% - 0.06rem);
        margin-top: 0;
    }

    .admin-nav a {
        min-height: 3rem;
        display: flex;
        align-items: center;
    }

    .admin-main {
        padding: 1rem 0.75rem;
    }

    .admin-main .stat-card {
        min-height: 0;
    }

    .admin-main .section-head h1,
    .page .section-head h1 {
        line-height: 1.15;
    }

    .admin-main .section-head,
    .page .section-head {
        margin-bottom: 0.85rem;
    }

    .admin-main .table-wrap,
    .page .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-main table,
    .page table {
        min-width: 34rem;
    }

    .section {
        padding: 1.45rem 0;
    }

    .section-head {
        margin-bottom: 0.95rem;
    }

    p {
        line-height: 1.6;
    }

    .card,
    .form-card,
    .home-service-card,
    .home-review-card,
    .home-strip-item,
    .home-step {
        padding: 0.9rem;
    }

    .card p,
    .form-card p,
    .section-head p,
    .meta,
    .small {
        overflow-wrap: anywhere;
    }

    .hero-actions,
    .home-cta-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .home-cta-actions .btn {
        width: 100%;
    }

    .map-frame {
        height: 15.625rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: fixed;
        top: 4.875rem;
        left: max(0.75rem, env(safe-area-inset-left));
        right: max(0.75rem, env(safe-area-inset-right));
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 0.75rem;
        box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: auto;
        display: flex;
        max-height: calc(100dvh - 5.75rem);
        overflow-y: auto;
        opacity: 0;
        transform-origin: top right;
        transform: translateY(-8px) scale(0.95);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 170;
    }

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

    .main-nav.open > a,
    .main-nav.open > form {
        animation: navItemIn 0.25s ease both;
    }

    .main-nav.open > *:nth-child(1) {
        animation-delay: 0.02s;
    }

    .main-nav.open > *:nth-child(2) {
        animation-delay: 0.04s;
    }

    .main-nav.open > *:nth-child(3) {
        animation-delay: 0.06s;
    }

    .main-nav.open > *:nth-child(4) {
        animation-delay: 0.08s;
    }

    .main-nav.open > *:nth-child(5) {
        animation-delay: 0.1s;
    }

    .main-nav.open > *:nth-child(6) {
        animation-delay: 0.12s;
    }

    .main-nav.open > *:nth-child(7) {
        animation-delay: 0.14s;
    }

    .main-nav.open > *:nth-child(8) {
        animation-delay: 0.16s;
    }

    .main-nav.open > *:nth-child(9) {
        animation-delay: 0.18s;
    }

    .main-nav.open > *:nth-child(10) {
        animation-delay: 0.2s;
    }

    .main-nav > a,
    .main-nav > form > .btn {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        min-height: 3rem;
        padding-left: 0.85rem;
    }

    .main-nav > form {
        width: 100%;
    }

    .main-nav > form > .btn {
        border-radius: 12px;
    }

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

    .customer-mini {
        align-items: flex-start;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .form-grid .span-2 {
        grid-column: span 1;
    }

    .form-grid > .btn {
        grid-column: span 1;
        width: 100%;
    }

    .footer-shell {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 0;
    }

    .card-grid.three,
    .contact-cards,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        grid-template-columns: 1fr;
        gap: 0.42rem;
    }

    .admin-nav a {
        text-align: center;
        font-size: 0.9rem;
    }

    .chat-history {
        max-height: 52vh;
    }

    .chat-bubble {
        width: min(100%, 88vw);
    }

    .career-card-main {
        grid-template-columns: 1fr;
    }

    .career-card-action {
        justify-items: stretch;
        min-width: 0;
    }

    .career-apply-btn {
        width: 100%;
    }

    .chat-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-form-row .btn {
        width: 100%;
    }

    .home-kpi-row,
    .home-strip-grid,
    .home-process-grid,
    .home-reviews-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.3rem;
        gap: 0.72rem;
        -webkit-overflow-scrolling: touch;
    }

    .home-kpi-row::-webkit-scrollbar,
    .home-strip-grid::-webkit-scrollbar,
    .home-process-grid::-webkit-scrollbar,
    .home-reviews-grid::-webkit-scrollbar {
        height: 0.375rem;
    }

    .home-kpi-row::-webkit-scrollbar-thumb,
    .home-strip-grid::-webkit-scrollbar-thumb,
    .home-process-grid::-webkit-scrollbar-thumb,
    .home-reviews-grid::-webkit-scrollbar-thumb {
        background: rgba(15, 118, 110, 0.3);
        border-radius: 999px;
    }

    .home-kpi-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.6rem;
    }

    .home-kpi {
        min-width: 8.875rem;
        scroll-snap-align: start;
    }

    .home-strip-item,
    .home-step,
    .home-review-card {
        min-width: min(84vw, 20rem);
        scroll-snap-align: start;
        animation: mobileCardPulse 6.2s ease-in-out infinite;
    }

    .home-step {
        min-width: min(84vw, 17.5rem);
    }

    .home-service-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    }

    .home-console {
        width: 100%;
    }

    .home-hero-showcase {
        min-height: 18.75rem;
    }

    .home-orb {
        animation-duration: 16s;
        opacity: 0.64;
    }

    .table-wrap {
        border-radius: 12px;
        border: 1px solid #dbe4ea;
        padding: 0.1rem;
        background: #fff;
    }

    .offer-preview {
        padding: 0.95rem;
    }

    .offer-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .offer-contact {
        text-align: left;
    }

    .offer-logo {
        width: 9.0625rem;
    }
}

@media (max-width: 35rem) {
    .site-header .shell.nav-shell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .shell {
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .section {
        padding: 1.25rem 0;
    }

    .page {
        padding-top: 0.85rem;
    }

    .page.compact-top {
        padding-top: 1rem;
    }

    .main-nav {
        top: 4.5rem;
        left: max(0.5rem, env(safe-area-inset-left));
        right: max(0.5rem, env(safe-area-inset-right));
        max-height: calc(100dvh - 5.25rem);
    }

    .brand-logo {
        width: 2rem;
        height: 2rem;
        border-radius: 9px;
    }

    .brand-text {
        font-size: 0.97rem;
        letter-spacing: -0.03em;
    }

    .admin-brand .brand-text {
        font-size: 0.92rem;
    }

    .admin-sidebar {
        padding: 0.62rem 0.5rem;
    }

    .admin-sidebar-menu {
        left: 0.3rem;
        right: 0.3rem;
    }

    .admin-main {
        padding: 0.85rem 0.5rem;
    }

    .admin-main .section-head h1 {
        font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.8rem);
    }

    .profile-avatar {
        width: 4.25rem;
        height: 4.25rem;
    }

    .admin-main table,
    .page table {
        min-width: 30rem;
    }

    .admin-main .stat-grid {
        gap: 0.55rem;
    }

    .admin-main .stat-card {
        min-height: 0;
        padding: 0.75rem;
    }

    .admin-main .stat-card h3 {
        font-size: 1.55rem;
    }

    .home-hero {
        padding-top: 1.6rem;
    }

    .home-hero-copy h1 {
        font-size: clamp(1.65rem, 1.25rem + 2.4vw, 2.1rem);
        line-height: 1.08;
    }

    .home-kpi-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
        gap: 0.5rem;
    }

    .home-kpi {
        min-width: 0;
        padding: 0.6rem 0.5rem;
    }

    .home-kpi h3 {
        font-size: 1.45rem;
    }

    .home-kpi p {
        font-size: 0.74rem;
        letter-spacing: 0.045em;
    }

    .home-console {
        padding: 0.82rem;
        border-radius: 16px;
    }

    .home-console-item strong {
        font-size: 0.9rem;
    }

    .home-hero-showcase {
        min-height: 16.25rem;
    }

    .home-strip-item,
    .home-step,
    .home-service-card,
    .home-review-card,
    .card,
    .form-card {
        border-radius: 12px;
    }

    .home-strip-item,
    .home-service-card,
    .home-step,
    .home-review-card {
        min-width: 86vw;
    }

    .stat-grid,
    .home-service-grid {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        scroll-snap-type: none;
    }

    .stat-card,
    .home-service-card {
        min-height: 10.625rem;
    }

    .home-service-card {
        min-width: 0;
        animation-duration: 7.2s;
    }

    .home-orb {
        animation-duration: 20s;
        opacity: 0.5;
    }

    .map-frame {
        height: 13.75rem;
    }

    .admin-main {
        padding: 0.85rem 0.5rem;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-main .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-main .action-row .btn {
        width: 100%;
    }
}

@media (pointer: coarse) {
    .btn {
        padding: 0.75rem 1.25rem;
        min-height: 3rem;
        min-width: 3rem;
    }

    input,
    select,
    textarea {
        padding: 0.75rem 1.25rem;
        min-height: 3rem;
    }

    .menu-toggle,
    .main-nav > a,
    .main-nav > form > .btn,
    .admin-nav a {
        min-width: 3rem;
        min-height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
