:root {
    --ink: #07142e;
    --navy: #001440;
    --blue: #003070;
    --cyan: #28b6d8;
    --muted: #68738a;
    --line: #dce4ef;
    --soft: #f4f8fc;
    --white: #ffffff;
    --success: #0b7a53;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

main,
section,
article,
div,
p,
h1,
h2,
h3,
a,
span,
strong {
    min-width: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav {
    position: fixed;
    top: 16px;
    right: clamp(18px, 5vw, 72px);
    z-index: 101;
}

.brand,
.nav,
.footer-links,
.actions,
.meta-row,
.tag-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 800;
    color: var(--navy);
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: var(--navy);
}

.nav a {
    color: #26344e;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-toggle-button,
.nav-backdrop,
.nav-close {
    display: none;
}

.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 8px;
    border: 0;
    color: var(--white);
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.nav .nav-cta {
    color: var(--white);
}

.button.secondary {
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero {
    position: relative;
    min-height: 380px;
    display: grid;
    align-items: center;
    padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
    color: var(--white);
    background:
        linear-gradient(135deg, var(--navy) 0%, var(--blue) 62%, #001020 100%);
}

.hero-content {
    width: min(680px, 100%);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.8rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.1rem);
}

h3 {
    font-size: 1.18rem;
}

.hero p {
    max-width: 600px;
    margin: 16px 0 22px;
    color: #dceaff;
    font-size: 1rem;
}

.section {
    padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
    background: var(--navy);
    color: var(--white);
}

.section.white {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 68%, #001020 100%);
    color: var(--white);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head p {
    max-width: 620px;
    color: #dceaff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.service-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card,
.form-panel,
.article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.card {
    padding: 24px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p,
.muted,
.article-excerpt {
    color: var(--muted);
}

.service-card,
.pricing-card,
.service-detail-card,
.related-panel {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.service-card::before,
.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.service-card,
.pricing-card {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 24px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card {
    overflow: hidden;
    padding: 0;
}

.service-card:hover,
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 182, 216, 0.45);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.26);
}

.service-card-top,
.pricing-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-right: 4px;
}

.service-card-top {
    padding: 24px 24px 0;
}

.service-card-media {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--navy);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 20, 64, 0.08), rgba(0, 20, 64, 0.72));
}

.service-card-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.service-card-body {
    padding: 22px 24px;
}

.service-card-body h3,
.pricing-card h3 {
    margin-bottom: 10px;
    color: var(--navy);
    font-size: 1.35rem;
}

.service-card-body p,
.pricing-card p {
    color: var(--muted);
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    font-weight: 900;
}

.service-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.service-icon.large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.service-icon.small {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
}

.mini-price {
    color: var(--navy);
    font-weight: 900;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
}

.pricing-card.highlighted {
    border-color: rgba(40, 182, 216, 0.58);
}

.pricing-card .button {
    margin-top: auto;
}

.pricing-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.icon-chip,
.tag,
.status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--blue);
    background: #e6f6fb;
    font-weight: 800;
    font-size: 0.85rem;
}

.price {
    color: var(--navy);
    font-size: 2.2rem;
    font-weight: 900;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--cyan) 100%);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0, 48, 112, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.price-badge::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.price-badge .currency {
    font-size: 1.2rem;
    opacity: 0.9;
}

.price-badge .amount {
    font-size: 2.2rem;
    line-height: 1;
}

.price-badge .period {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
}

.package-card {
    display: flex;
    flex-direction: column;
}

.package-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card .button {
    margin-top: 0;
}

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

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #dceaff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.filter-pill.active,
.filter-pill:hover {
    color: var(--navy);
    background: var(--white);
}

.service-package-section {
    margin-bottom: 42px;
}

.service-package-section:last-child {
    margin-bottom: 0;
}

.feature-list {
    padding: 0;
    margin: 18px 0;
    list-style: none;
}

.feature-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.compare-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: var(--ink);
}

.compare-table th,
.compare-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    color: var(--navy);
    background: #edf5fb;
}

.compare-table tr:last-child td {
    border-bottom: 0;
}

.article-list {
    display: grid;
    gap: 18px;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.service-detail-card,
.related-panel {
    padding: clamp(22px, 4vw, 34px);
}

.service-detail-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

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

.service-detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--navy);
}

.service-detail-body {
    padding-top: 24px;
}

.related-panel h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 1.45rem;
}

.related-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.related-card strong,
.related-card small {
    display: block;
}

.related-card strong {
    color: var(--navy);
}

.related-card small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.blog-side-card {
    align-items: center;
}

.side-post-image {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
    background: var(--navy);
}

.article {
    overflow: hidden;
}

.article-body {
    padding: 24px;
    color: var(--ink);
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: var(--navy);
}

.blog-content {
    margin-top: 20px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.78;
}

.blog-content p {
    margin: 0 0 18px;
    color: var(--ink);
}

.article-action {
    margin-top: 22px;
}

.article-body .tag-row {
    margin-top: 14px;
    margin-bottom: 8px;
}

.article-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: var(--navy);
}

.meta-row {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-panel {
    width: min(780px, 100%);
    padding: clamp(22px, 4vw, 38px);
}

.form-panel.full {
    width: 100%;
}

form p {
    margin: 0 0 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d4e4;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
}

.messages {
    padding: 18px clamp(18px, 5vw, 72px) 0;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--success);
    background: #e9f8f1;
    border: 1px solid #bfe8d4;
    font-weight: 800;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.searchbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.searchbar input {
    flex: 1 1 260px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 72px);
    background: var(--navy);
    color: var(--white);
}

.dashboard-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    min-height: calc(100vh - 72px);
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: #000f32;
}

.dashboard-sidebar h2 {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.dashboard-nav {
    display: grid;
    gap: 8px;
}

.dashboard-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #dceaff;
    font-weight: 800;
}

.dashboard-nav a:hover {
    background: rgba(40, 182, 216, 0.14);
    color: var(--white);
}

.dashboard-main {
    padding: clamp(22px, 4vw, 44px);
}

.dashboard-hero {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(135deg, #001440 0%, #003070 100%);
}

.dashboard-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card,
.dashboard-panel,
.table-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--blue);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.dashboard-panel {
    grid-column: span 6;
    padding: 20px;
}

.dashboard-panel.wide {
    grid-column: span 12;
}

.dashboard-panel.third {
    grid-column: span 4;
}

.dashboard-panel h2 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.data-list {
    display: grid;
    gap: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.data-row strong {
    color: var(--navy);
}

details.data-row {
    display: block;
}

details.data-row summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
}

details.data-row p {
    margin-top: 10px;
}

.client-project-list {
    display: grid;
    gap: 18px;
}

.client-project-card,
.client-project-empty {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.client-project-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 18px;
    align-items: start;
}

.client-project-head h3 {
    margin-top: 10px;
    color: var(--navy);
}

.client-project-head p,
.client-quote-note,
.client-project-empty p {
    color: var(--muted);
}

.client-project-price {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-left: 5px solid var(--cyan);
    border-radius: 8px;
    background: var(--white);
}

.client-project-price span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-project-price strong {
    color: var(--navy);
    font-size: 1.2rem;
}

.client-quote-note {
    margin: 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--white);
}

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

.installment-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.installment-card span {
    color: var(--cyan);
    font-weight: 900;
}

.installment-card strong {
    color: var(--navy);
    font-size: 1.16rem;
}

.payment-paid,
.payment-pending {
    width: fit-content;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 900;
}

.payment-paid {
    color: var(--success);
    background: #e9f8f1;
}

.payment-pending {
    color: #7a5a00;
    background: #fff6d8;
}

.project-progress {
    display: grid;
    gap: 14px;
}

.project-progress > h3 {
    color: var(--navy);
}

.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.phase-card,
.phase-empty {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-left: 5px solid #c9d4e4;
    border-radius: 8px;
    background: var(--white);
}

.phase-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--muted);
    background: #eef3f8;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.phase-card h3 {
    color: var(--navy);
}

.phase-card p,
.phase-empty p {
    margin: 0;
    color: var(--muted);
}

.phase-in_progress {
    border-left-color: var(--blue);
}

.phase-in_progress span {
    color: var(--blue);
    background: #e6f0fb;
}

.phase-review {
    border-left-color: #f59e0b;
}

.phase-review span {
    color: #7a5a00;
    background: #fff6d8;
}

.phase-completed {
    border-left-color: var(--success);
}

.phase-completed span {
    color: var(--success);
    background: #e9f8f1;
}

.phase-paused {
    border-left-color: #9b1020;
}

.phase-paused span {
    color: #9b1020;
    background: #ffe1e6;
}

.testimonial-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: start;
}

.testimonial-form,
.client-testimonial-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.testimonial-form textarea {
    min-height: 120px;
}

.client-testimonial-list {
    display: grid;
    gap: 14px;
}

.client-testimonial-card {
    display: grid;
    gap: 8px;
}

.client-testimonial-card p {
    margin: 0;
    color: var(--muted);
}

.client-testimonial-card strong {
    color: var(--navy);
}

.client-testimonial-card span {
    color: var(--muted);
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #d9e4f2;
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.table-card {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--navy);
    background: #edf5fb;
}

.priority-low,
.priority-medium,
.priority-high,
.priority-urgent {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
}

.priority-low {
    color: #0b7a53;
    background: #e9f8f1;
}

.priority-medium {
    color: #7a5a00;
    background: #fff6d8;
}

.priority-high {
    color: #9b3d00;
    background: #ffe9d7;
}

.priority-urgent {
    color: #9b1020;
    background: #ffe1e6;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding: 48px clamp(18px, 5vw, 72px);
    color: #dbe7f8;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer strong {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.site-footer p {
    margin: 0;
    color: #aebcce;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #dbe7f8;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-contact p {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact p br {
    display: none;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 9vw, 132px) clamp(18px, 6vw, 86px);
    color: var(--white);
    background: var(--navy);
}

.home-hero-media,
.home-hero-media img,
.home-cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-media img,
.home-cta img {
    object-fit: cover;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 20, 64, 0.94), rgba(0, 48, 112, 0.72), rgba(0, 16, 32, 0.36));
}

.home-hero-content {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
}

.home-badge,
.home-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 820px;
    font-size: clamp(2.15rem, 5.2vw, 4.35rem);
}

.home-hero p {
    max-width: 650px;
    margin: 22px 0 30px;
    color: #e6f2ff;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.home-stats div {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 28px 16px;
    background: var(--white);
}

.home-stats strong {
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
}

.home-stats span {
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.home-section,
.home-about {
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background: var(--white);
    color: var(--ink);
}

.home-section-soft {
    background: #f6f9fd;
}

.home-section-head {
    width: min(760px, 100%);
    margin: 0 auto 36px;
    text-align: center;
}

.home-section-head h2,
.home-about-copy h2,
.home-cta h2 {
    color: var(--navy);
}

.home-section-head p,
.home-about-copy p,
.home-list span {
    color: var(--muted);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 360px));
    justify-content: center;
    gap: 20px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 360px));
    justify-content: center;
    gap: 20px;
}

.home-service-card,
.testimonial-card,
.process-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.home-service-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.home-service-media {
    position: relative;
    width: 100%;
    height: 190px;
    background: var(--navy);
}

.home-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 20, 64, 0.08), rgba(0, 20, 64, 0.72));
}

.home-service-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.home-service-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.home-service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.home-service-body h3 {
    color: var(--navy);
}

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

.testimonial-card,
.process-grid article {
    padding: 26px;
}

.testimonial-client {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.testimonial-client img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.testimonial-card p {
    color: #39445a;
}

.testimonial-card strong,
.testimonial-card span {
    display: block;
}

.testimonial-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.stars {
    color: #f59e0b;
    font-weight: 900;
}

.home-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}

.home-tech-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0, 20, 64, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 182, 216, 0.42);
    box-shadow: 0 18px 44px rgba(0, 20, 64, 0.12);
}

.home-tech-card strong {
    color: var(--navy);
    font-size: 0.92rem;
    text-align: center;
}

.home-tech-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    font-size: 0.92rem;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.12);
}

.home-tech-icon.python {
    color: #ffd43b;
    background: #306998;
}

.home-tech-icon.django {
    background: #0c4b33;
}

.home-tech-icon.javascript {
    color: #323330;
    background: #f0db4f;
}

.home-tech-icon.typescript {
    background: #007acc;
}

.home-tech-icon.react {
    color: #07142e;
    background: #61dafb;
}

.home-tech-icon.next {
    background: #111111;
}

.home-tech-icon.flutter {
    background: #54c5f8;
}

.home-tech-icon.postgres {
    background: #336791;
}

.home-tech-icon.mongo {
    background: #4db33d;
}

.home-tech-icon.redis {
    background: #d82c20;
}

.home-tech-icon.aws {
    color: #232f3e;
    background: #ff9900;
}

.home-tech-icon.docker {
    background: #2496ed;
}

/* Shop Styles */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 48px) clamp(18px, 5vw, 72px);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.shop-container h1 {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 36px);
    color: var(--navy);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 182, 216, 0.45);
    box-shadow: 0 24px 62px rgba(0, 20, 64, 0.18);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--navy);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 800;
}

.product-info {
    padding: 24px;
}

.product-info h2 {
    margin: 0 0 12px 0;
    color: var(--navy);
    font-size: 1.35rem;
}

.product-description {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--blue);
}

.product-order-button {
    padding: 10px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .product-details {
        align-items: stretch;
        flex-direction: column;
    }

    .product-order-button {
        width: 100%;
        text-align: center;
    }
}

.no-products {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    padding: 48px 24px;
}

.home-tech-icon.kube {
    background: #326de6;
}

.home-tech-icon.tensor {
    background: #ff6f00;
}

.home-tech-icon.torch {
    background: #ee4c2c;
}

.home-tech-icon.github {
    background: #181717;
}

.home-about {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.home-about-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(0, 20, 64, 0.16);
}

.home-about-media img {
    width: 100%;
    height: min(560px, 70vh);
    object-fit: cover;
}

.home-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
}

.home-list li {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.home-list strong,
.process-grid h3 {
    color: var(--navy);
}

.process-grid article span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--cyan);
    font-weight: 900;
}

.process-grid article p {
    color: var(--muted);
}

.home-message {
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    text-align: center;
    color: var(--white);
    background: #07142e;
}

.home-message blockquote {
    width: min(820px, 100%);
    margin: 0 auto 26px;
    color: #e2e8f0;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-style: italic;
    line-height: 1.65;
}

.home-message strong,
.home-message span {
    display: block;
}

.home-message span {
    color: #aebcce;
}

.home-cta {
    position: relative;
    display: grid;
    min-height: 420px;
    place-items: center;
    overflow: hidden;
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    color: var(--white);
    text-align: center;
    background: var(--navy);
}

.home-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 20, 64, 0.78);
}

.home-cta > div {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
}

.home-cta h2 {
    color: var(--white);
}

.home-cta p {
    color: #e6f2ff;
}

.home-cta .actions {
    justify-content: center;
}

.auth-panel {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.auth-panel.small {
    width: min(520px, 100%);
}

.auth-panel h1 {
    color: var(--navy);
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.auth-form {
    display: grid;
    gap: 2px;
    margin-top: 22px;
}

.auth-form .errorlist {
    margin: 0 0 8px;
    padding-left: 18px;
    color: #9b1020;
    font-weight: 800;
}

.google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: var(--white);
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 20, 64, 0.08);
}

.user-profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile-hero img,
.profile-placeholder {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    border-radius: 8px;
}

.user-profile-hero img {
    object-fit: cover;
}

.profile-placeholder {
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 2.4rem;
    font-weight: 900;
}

.about-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: clamp(72px, 9vw, 132px) clamp(18px, 6vw, 86px);
    color: var(--white);
    background: var(--navy);
}

.about-hero > img,
.about-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-hero > img {
    object-fit: cover;
}

.about-hero-shade {
    background: linear-gradient(90deg, rgba(0, 20, 64, 0.94), rgba(0, 48, 112, 0.76), rgba(7, 20, 46, 0.34));
}

.about-hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
}

.about-hero h1 {
    max-width: 900px;
    font-size: clamp(2.15rem, 5vw, 4.25rem);
}

.about-hero p {
    max-width: 680px;
    margin: 22px 0 30px;
    color: #e6f2ff;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.about-snapshot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.about-snapshot article {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 30px 16px;
    background: var(--white);
    text-align: center;
}

.about-snapshot strong {
    color: var(--blue);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1;
}

.about-snapshot span {
    max-width: 220px;
    color: var(--muted);
    font-weight: 800;
}

.about-story,
.about-values,
.about-focus,
.about-promise {
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background: var(--white);
    color: var(--ink);
}

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 6vw, 72px);
    align-items: start;
}

.about-story h2,
.about-focus h2,
.about-promise h2,
.about-values h2 {
    color: var(--navy);
}

.about-story-copy p,
.about-promise p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

.about-c-shape {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
}

.about-c-shape::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: min(180px, 42%);
    border: 12px solid var(--cyan);
    border-right: 0;
    border-radius: 46px 0 0 46px;
    opacity: 0.9;
}

.about-c-shape p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-left: clamp(18px, 5vw, 56px);
}

.about-values {
    background: #f6f9fd;
}

.about-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.about-value-grid article {
    min-height: 260px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.about-value-grid span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--cyan);
    font-weight: 900;
}

.about-value-grid h3 {
    color: var(--navy);
}

.about-value-grid p {
    color: var(--muted);
}

.about-focus {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.about-focus-media {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 54px rgba(0, 20, 64, 0.16);
}

.about-focus-media img {
    width: 100%;
    height: min(560px, 70vh);
    object-fit: cover;
}

.about-promise {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 6vw, 72px);
    align-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 70%, #001020 100%);
}

.about-promise h2 {
    color: var(--white);
}

.about-promise p {
    color: #e6f2ff;
}

.team-hero {
    min-height: 54vh;
    display: flex;
    align-items: end;
    padding: 120px 7vw 70px;
    color: var(--white);
    background:
        linear-gradient(110deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.5)),
        url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1600&auto=format&fit=crop&q=80") center/cover;
}

.team-hero > div {
    max-width: 850px;
}

.team-hero h1 {
    max-width: 780px;
    margin: 16px 0;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 0.95;
    color: var(--white);
}

.team-hero p {
    max-width: 720px;
    font-size: 1.08rem;
    color: #e2e8f0;
}

.team-section {
    padding: 78px 7vw;
    background: #f8fafc;
}

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

.team-card {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(0, 20, 64, 0.08);
}

.team-card-featured {
    grid-column: 1 / -1;
}

.team-card-half {
    grid-template-columns: 1fr;
}

.team-card-half .team-photo img {
    height: 360px;
    min-height: 0;
    object-fit: contain;
    background: #e2e8f0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

.team-photo {
    min-height: 100%;
    background: #e2e8f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.team-copy {
    padding: 30px;
}

.team-copy span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.team-copy h2 {
    margin: 0 0 14px;
    color: var(--navy);
}

.team-copy p {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.75;
}

.portfolio-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 6vw, 72px);
    align-items: end;
    padding: clamp(46px, 7vw, 82px) clamp(18px, 5vw, 72px);
    color: var(--ink);
    background: var(--white);
}

.portfolio-intro h1 {
    color: var(--navy);
    font-size: clamp(2rem, 4.4vw, 3.7rem);
}

.portfolio-angle-title {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: clamp(18px, 3vw, 28px) clamp(24px, 4vw, 40px) clamp(22px, 3.5vw, 34px);
}

.portfolio-angle-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 12px solid var(--cyan);
    border-top: 0;
    border-radius: 0 0 48px 48px;
    opacity: 0.9;
}

.portfolio-intro-result {
    display: grid;
    gap: 8px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #bfe8f3;
    border-left: 6px solid var(--cyan);
    border-radius: 8px;
    background: #f0f8fc;
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.portfolio-intro-result span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-intro-result p {
    margin: 0;
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
}

.portfolio-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.portfolio-proof article {
    min-height: 170px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 28px 22px;
    background: var(--white);
}

.portfolio-proof strong {
    color: var(--blue);
    font-size: 1.28rem;
}

.portfolio-proof span {
    color: var(--muted);
    font-weight: 700;
}

.portfolio-case-study,
.portfolio-gallery,
.portfolio-convince {
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    background: var(--white);
    color: var(--ink);
}

.portfolio-case-study {
    background: #f6f9fd;
}

.portfolio-grid {
    display: grid;
    gap: 22px;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-case-card,
.portfolio-card,
.portfolio-empty {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 42px rgba(0, 20, 64, 0.08);
}

.portfolio-case-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    max-width: 1180px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 24px 64px rgba(0, 20, 64, 0.14);
}

.portfolio-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.portfolio-card-media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--navy);
}

.portfolio-case-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.portfolio-card-body,
.portfolio-case-content,
.portfolio-empty {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: clamp(22px, 4vw, 34px);
}

.portfolio-case-content {
    align-content: center;
}

.portfolio-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
}

.portfolio-card-head span,
.portfolio-card-head strong {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-card-body h3,
.portfolio-case-content h3,
.portfolio-empty h3,
.portfolio-convince h2 {
    color: var(--navy);
}

.portfolio-card-body p,
.portfolio-case-detail p,
.portfolio-empty p,
.portfolio-convince p {
    margin: 0;
    color: var(--muted);
}

.portfolio-case-content h3 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.portfolio-case-detail {
    display: grid;
    gap: 6px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.portfolio-case-detail span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-case-detail strong {
    color: var(--navy);
}

.portfolio-result {
    display: block;
    padding: 14px 16px;
    border-left: 5px solid var(--cyan);
    border-radius: 8px;
    color: var(--navy);
    background: #f0f8fc;
}

.portfolio-meta {
    display: grid;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.portfolio-meta span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-meta strong {
    color: var(--navy);
}

.portfolio-case-result {
    padding: 16px;
    border: 1px solid #bfe8f3;
    border-left: 5px solid var(--cyan);
    border-radius: 8px;
    background: #f0f8fc;
}

.portfolio-convince {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 6vw, 72px);
    align-items: center;
    background: #f6f9fd;
}

.portfolio-convince p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.portfolio-next {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
    color: var(--white);
    text-align: center;
    background: var(--navy);
}

.portfolio-next img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-next::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 20, 64, 0.8);
}

.portfolio-next > div {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
}

.portfolio-next h2 {
    color: var(--white);
}

.portfolio-next p {
    color: #e6f2ff;
}

.live-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 850;
}

.live-chat-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.live-chat-button {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(0, 20, 64, 0.28);
    cursor: pointer;
}

.live-chat-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(360px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 64px rgba(0, 20, 64, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.live-chat-toggle:checked ~ .live-chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.live-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    color: var(--white);
    background: var(--navy);
}

.live-chat-head strong,
.live-chat-head span {
    display: block;
}

.live-chat-head span {
    color: #dceaff;
    font-size: 0.86rem;
}

.live-chat-head label {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
    cursor: pointer;
}

.live-chat-messages {
    display: grid;
    gap: 10px;
    max-height: 300px;
    min-height: 220px;
    overflow-y: auto;
    padding: 16px;
    background: #f8fbff;
}

.live-chat-message {
    width: fit-content;
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.94rem;
}

.live-chat-message.bot {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.live-chat-message.user {
    justify-self: end;
    color: var(--white);
    background: var(--blue);
}

.live-chat-message.staff {
    color: var(--navy);
    background: #e6f6fb;
    border: 1px solid #bfe8f3;
}

.live-chat-message a {
    color: var(--blue);
    font-weight: 900;
    text-decoration: underline;
}

.live-chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.live-chat-form textarea {
    min-height: 46px;
    max-height: 110px;
    resize: vertical;
}

.live-chat-form .button {
    align-self: end;
}

.staff-live-chat-list {
    display: grid;
    gap: 18px;
}

.staff-live-chat-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.staff-live-chat-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: 16px;
    align-items: start;
}

.staff-live-chat-head h3 {
    margin-top: 8px;
    color: var(--navy);
}

.staff-live-chat-head p,
.staff-live-message p {
    margin: 0;
    color: var(--muted);
}

.staff-live-owner {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-left: 5px solid var(--cyan);
    border-radius: 8px;
    background: var(--white);
}

.staff-live-owner span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.staff-live-owner strong {
    color: var(--navy);
}

.staff-live-messages {
    display: grid;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding: 14px;
    border-radius: 8px;
    background: var(--white);
}

.staff-live-message {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.staff-live-message.user {
    border-color: #bfe8f3;
    background: #f0f8fc;
}

.staff-live-message.staff {
    border-color: #c9d4e4;
    background: #eef3f8;
}

.staff-live-message.system {
    border-color: #fff0b8;
    background: #fff9e8;
}

.staff-live-message strong {
    color: var(--navy);
}

.staff-live-actions,
.staff-live-reply {
    display: grid;
    gap: 10px;
}

@media (max-width: 820px) {
    .site-footer,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        align-items: center;
        flex-direction: row;
        gap: 14px;
        padding: 14px 16px;
    }

    .brand {
        width: auto;
        flex: 1;
        overflow: hidden;
    }

    .brand-logo {
        height: 48px;
        width: 48px;
    }

    .nav-toggle-button {
        display: grid;
        flex: 0 0 auto;
        gap: 5px;
        place-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        cursor: pointer;
    }

    .nav-toggle-button span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: var(--navy);
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(0, 20, 64, 0.34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, visibility 180ms ease;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        z-index: 901;
        width: min(68vw, 260px);
        max-width: calc(100vw - 42px);
        height: 100dvh;
        max-height: 100vh;
        align-content: start;
        align-items: stretch;
        display: grid;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 68px 14px 18px;
        background: rgba(255, 255, 255, 0.96);
        border-left: 1px solid var(--line);
        box-shadow: -18px 0 44px rgba(0, 20, 64, 0.16);
        backdrop-filter: blur(18px);
        overflow-y: auto;
        visibility: hidden;
        transform: translate3d(105%, 0, 0);
        transition: transform 220ms ease, visibility 220ms ease;
    }

    .nav-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--navy);
        background: #f8fbff;
        font-size: 1.55rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .nav a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 8px;
        color: var(--navy);
        background: transparent;
        font-size: 0.95rem;
    }

    .nav a:hover {
        background: #f0f8fc;
    }

    .nav .nav-cta {
        justify-content: center;
        margin-top: 6px;
        color: var(--white);
        background: var(--blue);
    }

    .nav-toggle:checked ~ .nav-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-toggle:checked ~ .nav {
        visibility: visible;
        transform: translate3d(0, 0, 0);
    }

    .nav-toggle:checked ~ .live-chat {
        display: none;
    }

    h1 {
        font-size: clamp(1.95rem, 9vw, 3rem);
    }

    h2 {
        font-size: clamp(1.65rem, 7vw, 2.45rem);
    }

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

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

    .service-card-footer,
    .pricing-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 340px;
    }

    .section,
    .home-section,
    .home-about,
    .about-story,
    .about-values,
    .about-focus,
    .about-promise,
    .team-section,
    .portfolio-intro,
    .portfolio-case-study,
    .portfolio-gallery,
    .portfolio-convince,
    .portfolio-next,
    .home-message,
    .home-cta {
        padding-right: 16px;
        padding-left: 16px;
    }

    .service-grid,
    .pricing-grid,
    .grid,
    .home-service-grid,
    .testimonial-grid,
    .process-grid,
    .about-value-grid,
    .team-grid,
    .portfolio-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        min-height: auto;
        padding: 18px 16px;
    }

    .dashboard-nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .dashboard-main {
        padding: 18px 16px;
    }

    .dashboard-panel,
    .dashboard-panel.third {
        grid-column: span 12;
    }

    .home-stats,
    .home-about,
    .about-snapshot,
    .about-story,
    .about-focus,
    .about-promise,
    .team-card,
    .portfolio-intro,
    .portfolio-proof,
    .portfolio-case-card,
    .portfolio-convince {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .about-hero,
    .team-hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-hero h1,
    .about-hero h1,
    .team-hero h1 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .home-about-media img,
    .about-focus-media img {
        height: 320px;
    }

    .team-card-featured .team-photo img {
        width: 100%;
        height: 380px;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: center top;
        min-height: 0;
    }

    .team-card-half .team-photo img {
        height: 320px;
        min-height: 0;
    }

    .portfolio-case-media img {
        min-height: 0;
        height: 300px;
    }

    .user-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-detail-head,
    .data-row,
    .related-card {
        flex-direction: column;
    }

    .data-table,
    .compare-table {
        min-width: 680px;
    }

    .client-project-head,
    .installment-grid,
    .phase-grid,
    .testimonial-dashboard-grid,
    .staff-live-chat-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .home-stats,
    .about-snapshot,
    .portfolio-proof {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-service-grid,
    .testimonial-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .home-tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .home-tech-card {
        min-height: 104px;
        gap: 8px;
        padding: 10px 6px;
    }

    .home-tech-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .home-tech-card strong {
        font-size: 0.78rem;
    }

    .brand {
        gap: 10px;
        font-size: 0.98rem;
        max-width: calc(100vw - 82px);
    }

    .brand-logo {
        height: 42px;
        width: 42px;
    }

    .nav a,
    .nav-cta,
    .button,
    .google-button {
        width: 100%;
        text-align: center;
    }

    .actions,
    .searchbar,
    .footer-links {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .hero,
    .home-hero,
    .about-hero,
    .team-hero,
    .home-cta,
    .portfolio-next {
        text-align: left;
    }

    .home-cta .actions {
        align-items: stretch;
    }

    .home-stats,
    .about-snapshot,
    .portfolio-proof {
        grid-template-columns: 1fr;
    }

    .home-stats div,
    .about-snapshot article,
    .portfolio-proof article {
        min-height: auto;
        padding: 22px 14px;
    }

    .home-section-head {
        margin-bottom: 26px;
        text-align: left;
    }

    .card,
    .service-card,
    .pricing-card,
    .home-service-body,
    .testimonial-card,
    .process-grid article,
    .about-value-grid article,
    .team-copy,
    .portfolio-card-body,
    .portfolio-case-content,
    .portfolio-empty,
    .auth-panel,
    .form-panel,
    .service-detail-card,
    .related-panel,
    .article-body {
        padding: 18px;
    }

    .service-card,
    .pricing-card {
        min-height: auto;
    }

    .service-card {
        padding: 0;
    }

    .service-card-top {
        padding: 18px 18px 0;
    }

    .service-card-body {
        padding: 20px 18px;
    }

    .service-card-footer {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 18px 18px;
    }

    .pricing-card-footer {
        justify-content: space-between;
        width: 100%;
    }

    .pricing-card-footer .button {
        width: auto;
    }

    .home-service-media,
    .service-card-media,
    .article-image,
    .service-detail-image,
    .portfolio-card-media img {
        height: 210px;
    }

    .home-about-media img,
    .about-focus-media img,
    .team-card-featured .team-photo img,
    .portfolio-case-media img {
        height: 320px;
    }

    .team-card-half .team-photo img {
        height: 260px;
    }

    .about-c-shape {
        padding: 18px;
    }

    .about-c-shape::before {
        width: 46%;
        border-width: 8px;
        border-radius: 32px 0 0 32px;
    }

    .about-c-shape p {
        margin-left: 18px;
    }

    .portfolio-angle-title {
        padding: 16px 18px 22px;
    }

    .portfolio-angle-title::after {
        border-width: 8px;
        border-radius: 0 0 32px 32px;
    }

    .live-chat {
        right: 14px;
        bottom: 14px;
    }

    .live-chat-button {
        width: 52px;
        height: 52px;
    }

    .live-chat-panel {
        bottom: 64px;
        width: calc(100vw - 28px);
    }

    .live-chat-messages {
        max-height: 260px;
        min-height: 190px;
    }

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

    .portfolio-intro-result p {
        font-size: 1rem;
    }

    .dashboard-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat-card strong {
        font-size: 1.65rem;
    }
}
