:root {
    --home-surface: rgba(9, 10, 11, .9);
    --home-line: rgba(207, 211, 216, .14);
    --home-line-strong: rgba(207, 211, 216, .22);
    --home-text: #f4f6f8;
    --home-muted: #aeb6bf;
    --home-accent: #cfd3d8;
    --home-accent-strong: #f4f6f8;
    --home-warm: #cfd3d8;
    --home-dark: #0b0a08;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.home-page {
    margin: 0;
    min-height: 100vh;
    color: var(--home-text);
    background: linear-gradient(135deg, #050505 0%, #101113 48%, #08090a 100%);
    font-family: Arial, "Helvetica Neue", sans-serif;
    letter-spacing: 0;
}

body.home-page a { color: inherit; }

.home-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
}

.home-hero {
    position: relative;
    min-height: min(760px, calc(100svh - 96px));
    border: 1px solid var(--home-line);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    align-items: end;
    background: #08090a;
    box-shadow: 0 26px 78px rgba(0, 0, 0, .34);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, .93) 0%, rgba(5, 5, 5, .7) 43%, rgba(5, 5, 5, .2) 100%),
        linear-gradient(0deg, rgba(5, 5, 5, .88) 0%, rgba(5, 5, 5, .06) 44%);
    z-index: 1;
}

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

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    padding: clamp(28px, 5vw, 64px);
}

.home-eyebrow,
.home-kicker {
    margin: 0 0 12px;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-hero h1,
.home-section-head h2,
.home-cta h2 {
    margin: 0;
    color: var(--home-text);
    font-weight: 800;
    line-height: 1.04;
}

.home-hero h1 {
    max-width: 720px;
    font-size: clamp(34px, 5.8vw, 68px);
}

.home-lead {
    margin: 18px 0 0;
    max-width: 660px;
    color: var(--home-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-action,
.home-action-secondary {
    min-height: 46px;
    border: 1px solid var(--home-line-strong);
    border-radius: 10px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.home-action,
.home-action:hover,
.home-action:focus-visible {
    color: var(--home-dark);
    border-color: rgba(244, 246, 248, .72);
    background: linear-gradient(135deg, #f4f6f8, #cfd3d8);
    box-shadow: 0 12px 30px rgba(207, 211, 216, .22);
}

.home-action,
.home-action:visited,
.home-action:hover,
.home-action:focus-visible,
.home-action i,
.home-action span {
    color: var(--home-dark) !important;
}

.home-action-secondary {
    color: var(--home-text);
    background: rgba(255, 255, 255, .07);
}

.home-metrics,
.home-grid,
.home-payment-grid,
.home-tariff-grid,
.home-market-grid {
    display: grid;
    gap: 12px;
}

.home-action:hover,
.home-action-secondary:hover,
.home-quick-nav a:hover,
.home-card a:hover,
.home-card-link:hover {
    border-color: rgba(244, 246, 248, .52);
    box-shadow: 0 16px 34px rgba(207, 211, 216, .16);
}

.home-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 34px;
}

.home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-tariff-grid,
.home-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-grid,
.home-payment-grid,
.home-tariff-grid,
.home-market-grid {
    align-items: start;
}

.home-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.home-quick-nav a {
    min-height: 36px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-muted);
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.home-metric,
.home-card,
.home-process-panel,
.home-cta,
.home-footer,
.home-tariff-card,
.home-market-card {
    border: 1px solid var(--home-line);
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
}

.home-metric,
.home-card {
    border-radius: 14px;
    padding: 18px;
    align-self: start;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.home-metric:hover,
.home-card:hover,
.home-tariff-card:hover,
.home-market-card:hover {
    border-color: rgba(244, 246, 248, .32);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .34);
}

.home-metric strong {
    display: block;
    font-size: 21px;
    line-height: 1.1;
}

.home-metric span,
.home-card p,
.home-step p,
.home-cta p,
.home-footer p,
.home-footer a,
.home-tariff-card p,
.home-market-card p {
    color: var(--home-muted);
    line-height: 1.55;
}

.home-metric span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.home-section { padding: clamp(42px, 7vw, 82px) 0 0; }

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

.home-section-head h2 {
    max-width: 690px;
    font-size: clamp(26px, 3.4vw, 44px);
}

.home-section-head p {
    margin: 0;
    max-width: 400px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
}

.home-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-card i,
.home-step-index {
    width: 42px;
    height: 42px;
    border: 1px solid var(--home-line-strong);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--home-text);
    background: rgba(255, 255, 255, .06);
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.home-card:hover i,
.home-step:hover .home-step-index {
    border-color: rgba(244, 246, 248, .42);
    background: rgba(255, 255, 255, .1);
}

.home-card h3,
.home-step h3,
.home-tariff-card h3,
.home-market-card h3 {
    margin: 18px 0 0;
    color: var(--home-text);
    font-size: 18px;
    line-height: 1.25;
}

.home-card p,
.home-step p,
.home-cta p,
.home-tariff-card p,
.home-market-card p {
    margin: 10px 0 0;
    font-size: 14px;
}

.home-card a,
.home-card-link {
    min-height: 40px;
    margin-top: auto;
    border: 1px solid var(--home-line-strong);
    border-radius: 10px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--home-dark) !important;
    background: linear-gradient(135deg, #f4f6f8, #cfd3d8);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.home-card p + a,
.home-card p + .home-card-link {
    margin-top: 18px;
}

.home-card a::after,
.home-card-link::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    opacity: .72;
}

.home-card a:hover,
.home-card a:focus-visible,
.home-card-link:hover,
.home-card-link:focus-visible {
    color: var(--home-dark) !important;
    border-color: rgba(244, 246, 248, .6);
    background-position: -40% 0;
    outline: none;
}

.home-tariff-card,
.home-market-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.home-tariff-card {
    min-height: 0;
    align-self: start;
    overflow: visible;
}

.home-market-card {
    min-height: 100%;
}

.home-tariff-card > img,
.home-market-card > img,
.home-card-placeholder {
    width: 100%;
    height: 178px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
}

.home-card-placeholder i {
    color: var(--home-text);
    font-size: 26px;
}

.home-tariff-body,
.home-market-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.home-tariff-body {
    flex: none;
    min-height: 0;
    overflow: visible;
}

.home-tariff-card p,
.home-tariff-card ul,
.home-tariff-card li {
    max-height: none;
    overflow: visible;
}

.home-market-body {
    flex: 1;
}

.home-tariff-card span,
.home-market-card span {
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-tariff-card strong,
.home-market-meta strong {
    margin-top: 12px;
    display: block;
    color: var(--home-text);
    font-size: 24px;
}

.home-tariff-card ul {
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.home-tariff-card li {
    border-top: 1px solid var(--home-line);
    padding-top: 8px;
    color: var(--home-muted);
    font-size: 13px;
}

.home-tariff-card .home-card-link {
    width: 100%;
    flex: none;
    margin-top: 18px;
    position: static;
    align-self: stretch;
    line-height: 1.2;
}

.home-tariff-card ul + .home-card-link {
    margin-top: 20px;
}

.home-market-meta {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.home-market-meta em {
    color: var(--home-muted);
    font-size: 12px;
    font-style: normal;
    text-align: right;
}

.home-process-panel {
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.home-process-media {
    min-height: 460px;
    background: #08090a;
}

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

.home-steps {
    padding: clamp(22px, 4vw, 42px);
    display: grid;
    align-content: center;
}

.home-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--home-line);
}

.home-step:last-child { border-bottom: 0; }

.home-step-index {
    font-size: 13px;
    font-weight: 800;
}

.home-step h3 { margin-top: 0; }

.home-cta {
    border-radius: 18px;
    padding: clamp(24px, 5vw, 46px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.home-cta h2 { font-size: clamp(24px, 3.2vw, 40px); }

.home-footer {
    margin: clamp(42px, 7vw, 82px) 0 28px;
    border-radius: 18px;
    padding: clamp(24px, 4vw, 40px);
}

.home-footer-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.home-footer-grid > div {
    min-width: 0;
    grid-column: span 2;
}

.home-footer-grid > div:first-child {
    grid-column: span 4;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
    font-weight: 800;
    min-width: 0;
}

.home-footer-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-footer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}

.home-footer h3 {
    margin: 0 0 12px;
    color: var(--home-text);
    font-size: 14px;
}

.home-footer p {
    margin: 14px 0 0;
    max-width: 430px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.home-footer nav {
    display: grid;
    gap: 9px;
}

.home-footer a {
    font-size: 13px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.home-footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--home-line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--home-muted);
    font-size: 12px;
}

.seo-hero {
    position: relative;
    min-height: 520px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    padding: clamp(28px, 5vw, 58px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: end;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(244, 246, 248, .11), rgba(207, 211, 216, .03) 38%, rgba(255, 255, 255, .06)),
        #08090a;
    box-shadow: 0 26px 78px rgba(0, 0, 0, .34);
}

.seo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 18%, rgba(244, 246, 248, .16), transparent 32%),
        linear-gradient(0deg, rgba(5, 5, 5, .72), rgba(5, 5, 5, .16));
    pointer-events: none;
}

.seo-hero-content,
.seo-hero-panel {
    position: relative;
    z-index: 1;
}

.seo-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--home-text);
    font-size: clamp(34px, 5.4vw, 66px);
    line-height: 1.04;
}

.seo-hero-panel {
    border: 1px solid rgba(244, 246, 248, .16);
    border-radius: 16px;
    padding: 0;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .25);
    backdrop-filter: blur(14px);
}

.seo-hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seo-card-grid,
.seo-faq-list,
.seo-variant-grid {
    display: grid;
    gap: 12px;
    align-items: start;
}

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

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

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

.seo-faq-item,
.seo-variant-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 18px;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .22);
    align-self: start;
}

.seo-faq-item h3,
.seo-variant-card h3 {
    margin: 0;
    color: var(--home-text);
    font-size: 16px;
}

.seo-faq-item p,
.seo-variant-card p {
    margin: 10px 0 0;
    color: var(--home-muted);
    line-height: 1.58;
}


.home-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.home-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.home-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(10px);
}

.home-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    border: 1px solid var(--home-line-strong);
    border-radius: 18px;
    padding: 24px;
    color: var(--home-text);
    background: rgba(9, 10, 11, .96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
    transform: translateY(14px) scale(.98);
    transition: transform .22s ease;
}

.home-modal.is-open .home-modal-dialog {
    transform: translateY(0) scale(1);
}

.home-modal-dialog h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.home-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
}

.home-contact-options {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.home-contact-options a {
    min-height: 58px;
    border: 1px solid var(--home-line);
    border-radius: 12px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.home-contact-options a:hover,
.home-contact-options a:focus-visible {
    border-color: rgba(244, 246, 248, .52);
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.home-contact-options i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
}

.home-contact-options strong {
    grid-column: 2;
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 700;
}

body.home-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 1040px) {
    .home-grid,
    .home-tariff-grid,
    .home-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-footer-grid > div,
    .home-footer-grid > div:first-child { grid-column: auto; }
}

@media (max-width: 900px) {
    .home-section-head,
    .home-cta,
    .home-process-panel { grid-template-columns: 1fr; }
    .home-section-head { display: grid; }
    .home-metrics,
    .home-payment-grid { grid-template-columns: 1fr; }
    .home-process-media { min-height: 300px; }
}

@media (max-width: 640px) {
    .home-shell { width: min(100% - 20px, 1180px); }
    .home-hero { min-height: 700px; }
    .home-hero-content { padding: 24px 18px; }
    .home-action,
    .home-action-secondary,
    .home-quick-nav a { width: 100%; }
    .home-grid,
    .home-tariff-grid,
    .home-market-grid,
    .home-footer-grid { grid-template-columns: 1fr; }
    .home-footer-grid > div,
    .home-footer-grid > div:first-child { grid-column: auto; }
    .home-footer-bottom { display: grid; }
}

.public-market-hero {
    min-height: 420px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    padding: clamp(28px, 5vw, 54px);
    display: grid;
    align-content: end;
    gap: 18px;
    background: linear-gradient(90deg, rgba(5,5,5,.92), rgba(8,9,10,.78)), url('/assets/img/home-process.png') center/cover no-repeat;
    box-shadow: 0 26px 78px rgba(0, 0, 0, .34);
}

.public-market-hero h1 {
    margin: 0;
    max-width: 760px;
    color: var(--home-text);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
}

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

.public-market-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
}

.public-market-card > img,
.public-market-card .home-card-placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.public-market-card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.public-market-card-body > span {
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-market-card h3 {
    margin: 14px 0 0;
    color: var(--home-text);
    font-size: 19px;
    line-height: 1.25;
}

.public-market-card p {
    margin: 10px 0 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.55;
}

.public-market-empty { margin-top: 18px; }

@media (max-width: 1040px) {
    .public-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .public-market-grid { grid-template-columns: 1fr; }
    .public-market-hero { min-height: 520px; }
}
.public-project-page {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: start;
}

.public-project-gallery,
.public-project-summary,
.public-project-description {
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.public-project-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
}

.public-project-media-button {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0;
    min-width: 0;
    display: block;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255,255,255,.06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.public-project-media-button.is-primary,
.public-project-media-video:first-child,
.public-project-gallery .home-card-placeholder:first-child {
    grid-column: 1 / -1;
}

.public-project-media-button:hover,
.public-project-media-button:focus-visible {
    border-color: rgba(255, 255, 255, .32);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
    transform: translateY(-2px);
    outline: none;
}

.public-project-gallery img,
.public-project-gallery video,
.public-project-gallery .home-card-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    background: rgba(255,255,255,.06);
}

.public-project-media-button.is-primary img,
.public-project-media-video:first-child,
.public-project-gallery .home-card-placeholder:first-child {
    aspect-ratio: 16 / 9;
    max-height: 560px;
}

.public-project-summary {
    position: sticky;
    top: 14px;
    padding: clamp(22px, 4vw, 34px);
}

.public-project-summary h1 {
    margin: 0;
    color: var(--home-text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.public-project-summary p,
.public-project-description div {
    color: var(--home-muted);
    line-height: 1.65;
}

.public-project-description {
    grid-column: 1 / -1;
    padding: clamp(22px, 4vw, 34px);
}

@media (max-width: 900px) {
    .public-project-page { grid-template-columns: 1fr; }
    .public-project-summary { position: static; }
}

@media (max-width: 640px) {
    .public-project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
    .public-project-gallery { grid-template-columns: 1fr; }
}
.public-reviews .home-section-head > p {
    max-width: 520px;
    color: var(--home-muted);
    line-height: 1.65;
}

.public-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.public-review-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 18px;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .24);
}

.public-review-top {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
}

.public-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #fff;
    font-weight: 900;
}

.public-review-card h3 {
    margin: 0;
    color: var(--home-text);
    font-size: 16px;
}

.public-review-card p {
    margin: 0;
}

.public-review-top p,
.public-review-text {
    color: var(--home-muted);
    line-height: 1.55;
}

.public-review-stars {
    margin: 16px 0 10px;
    display: flex;
    gap: 4px;
    color: #fff;
    font-size: 13px;
}

.public-comment-strip {
    margin-top: 12px;
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(255, 255, 255, .04);
}

.public-comment-strip span {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
    font-weight: 800;
}

.public-comment-strip i {
    margin-right: 6px;
    color: var(--home-text);
}

@media (max-width: 1040px) {
    .public-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .public-review-grid { grid-template-columns: 1fr; }
    .public-comment-strip span { width: 100%; }
}
.public-review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.public-comment-list {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-comment-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    background: rgba(255, 255, 255, .04);
}

.public-comment-card h3 {
    margin: 0;
    color: var(--home-text);
    font-size: 15px;
}

.public-comment-card p {
    margin: 6px 0 8px;
    color: var(--home-muted);
    line-height: 1.55;
}

.public-comment-card span {
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 800;
}

.public-feedback-empty {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    padding: 18px;
    color: var(--home-muted);
    background: rgba(255, 255, 255, .04);
}

@media (max-width: 1040px) {
    .public-comment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .public-comment-list { grid-template-columns: 1fr; }
}
.portfolio-hero {
    background: linear-gradient(90deg, rgba(5,5,5,.92), rgba(8,9,10,.78)), url('/assets/img/home-process.png') center/cover no-repeat;
}

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

.portfolio-card {
    border: 1px solid var(--home-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
}

.portfolio-card > img,
.portfolio-card .home-card-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.portfolio-card-body > span {
    color: var(--home-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portfolio-card h3 {
    margin: 14px 0 0;
    color: var(--home-text);
    font-size: 20px;
    line-height: 1.25;
}

.portfolio-card p {
    margin: 10px 0 0;
    color: var(--home-muted);
    line-height: 1.55;
}

.portfolio-detail {
    display: grid;
    gap: 18px;
}

.portfolio-detail-hero,
.portfolio-detail-body {
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.portfolio-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: stretch;
}

.portfolio-detail-hero img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.portfolio-detail-hero > div,
.portfolio-detail-body {
    padding: clamp(24px, 5vw, 48px);
}

.portfolio-detail h1 {
    margin: 0;
    color: var(--home-text);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
}

.portfolio-detail-hero p,
.portfolio-detail-body div {
    color: var(--home-muted);
    line-height: 1.65;
}

.portfolio-meta-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-meta-row span {
    border: 1px solid var(--home-line);
    border-radius: 999px;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--home-text);
    background: rgba(255, 255, 255, .05);
    font-size: 13px;
    font-weight: 800;
}

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

@media (max-width: 760px) {
    .portfolio-detail-hero { grid-template-columns: 1fr; }
    .portfolio-detail-hero img { min-height: 260px; }
}

@media (max-width: 640px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-gallery {
    border: 1px solid var(--home-line);
    border-radius: 18px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    background: var(--home-surface);
    box-shadow: 0 18px 56px rgba(0, 0, 0, .28);
}

.portfolio-gallery-item {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0;
    display: block;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.portfolio-gallery-item:hover,
.portfolio-gallery-item:focus-visible {
    border-color: rgba(255, 255, 255, .32);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
    transform: translateY(-2px);
    outline: none;
}

.portfolio-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    background: rgba(255, 255, 255, .06);
}

@media (max-width: 760px) {
    .portfolio-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .portfolio-gallery { grid-template-columns: 1fr; }
}
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 36px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.portfolio-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-lightbox-open {
    overflow: hidden;
}

.portfolio-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: zoom-out;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(8px);
}

.portfolio-lightbox-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: 86vh;
    display: grid;
    place-items: start center;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .72) rgba(255, 255, 255, .12);
}

.portfolio-lightbox-dialog::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.portfolio-lightbox-dialog::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.portfolio-lightbox-dialog::-webkit-scrollbar-thumb {
    border: 2px solid rgba(12, 12, 12, .86);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
}

.portfolio-lightbox-dialog::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

.portfolio-lightbox-dialog > img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    background: #090909;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .52);
}

.portfolio-lightbox-close,
.portfolio-lightbox-nav {
    position: fixed;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #111;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
    transition: transform .18s ease, background .18s ease;
}

.portfolio-lightbox-close:hover,
.portfolio-lightbox-nav:hover,
.portfolio-lightbox-close:focus-visible,
.portfolio-lightbox-nav:focus-visible {
    transform: translateY(-1px) scale(1.04);
    background: #f4f4f4;
    outline: none;
}

.portfolio-lightbox-close {
    top: clamp(14px, 3vw, 28px);
    right: clamp(14px, 3vw, 28px);
}

.portfolio-lightbox-prev {
    left: clamp(14px, 3vw, 28px);
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-lightbox-next {
    right: clamp(14px, 3vw, 28px);
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-lightbox-prev:hover,
.portfolio-lightbox-prev:focus-visible,
.portfolio-lightbox-next:hover,
.portfolio-lightbox-next:focus-visible {
    transform: translateY(-50%) scale(1.04);
}

.portfolio-lightbox-counter {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 9px 14px;
    color: #111;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

@media (max-width: 760px) {
    .portfolio-lightbox {
        padding: 12px;
    }

    .portfolio-lightbox-dialog {
        max-height: 84vh;
        padding: 54px 0 58px;
    }

    .portfolio-lightbox-close {
        top: 2px;
        right: 2px;
    }

    .portfolio-lightbox-prev,
    .portfolio-lightbox-next {
        top: auto;
        bottom: 2px;
        transform: none;
    }

    .portfolio-lightbox-prev:hover,
    .portfolio-lightbox-prev:focus-visible,
    .portfolio-lightbox-next:hover,
    .portfolio-lightbox-next:focus-visible {
        transform: scale(1.04);
    }

    .portfolio-lightbox-prev {
        left: 0;
    }

    .portfolio-lightbox-next {
        right: 0;
    }
}

@media (max-width: 1040px) {
    .seo-hero { grid-template-columns: 1fr; min-height: auto; }
    .seo-card-grid,
    .seo-variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .seo-hero { padding: 24px; border-radius: 16px; }
    .seo-card-grid,
    .seo-faq-list,
    .seo-variant-grid { grid-template-columns: 1fr; }
    .seo-hero-panel { width: min(100%, 360px); justify-self: center; }
}

@media (max-width: 760px) {
    body.home-page {
        overflow-x: hidden;
    }

    .home-shell {
        width: min(100% - 16px, 1180px);
    }

    .home-section {
        padding-top: 34px;
    }

    .home-section-head {
        gap: 12px;
        margin-bottom: 14px;
    }

    .home-section-head h2,
    .home-cta h2,
    .public-market-hero h1,
    .public-project-summary h1,
    .portfolio-detail h1,
    .seo-hero h1 {
        overflow-wrap: anywhere;
    }

    .home-lead,
    .home-section-head p,
    .home-card p,
    .home-step p,
    .home-cta p,
    .public-market-card p,
    .public-project-summary p,
    .public-project-description div,
    .portfolio-card p,
    .portfolio-detail-hero p,
    .portfolio-detail-body div,
    .seo-faq-item p,
    .seo-variant-card p {
        overflow-wrap: anywhere;
    }

    .home-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-action,
    .home-action-secondary,
    .home-card a,
    .home-card-link,
    .public-btn,
    .public-btn-secondary,
    .public-user {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .home-card a,
    .home-card-link {
        min-height: 44px;
        justify-content: center;
    }

    .home-card a::after,
    .home-card-link::after {
        flex: 0 0 auto;
    }

    .home-hero,
    .public-market-hero,
    .seo-hero {
        min-height: auto;
        border-radius: 16px;
    }

    .home-hero {
        align-items: end;
    }

    .home-hero-content,
    .public-market-hero,
    .seo-hero {
        padding: 22px 16px;
    }

    .seo-hero {
        gap: 18px;
    }

    .seo-hero-panel {
        width: min(100%, 320px);
    }

    .home-cta {
        padding: 22px 16px;
        border-radius: 16px;
        grid-template-columns: 1fr;
    }

    .home-process-panel,
    .public-project-summary,
    .public-project-description,
    .portfolio-detail-hero,
    .portfolio-detail-body {
        border-radius: 16px;
    }

    .home-process-media,
    .portfolio-detail-hero img {
        min-height: 240px;
    }

    .home-step {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }

    .home-step-index {
        width: 36px;
        height: 36px;
    }

    .public-market-card-body,
    .portfolio-card-body,
    .public-project-summary,
    .public-project-description,
    .portfolio-detail-hero > div,
    .portfolio-detail-body,
    .seo-faq-item,
    .seo-variant-card,
    .public-review-card,
    .public-comment-card {
        padding: 16px;
    }

    .public-market-card > img,
    .public-market-card .home-card-placeholder,
    .portfolio-card > img,
    .portfolio-card .home-card-placeholder {
        height: 180px;
    }

    .public-project-page,
    .portfolio-detail,
    .portfolio-detail-hero {
        gap: 12px;
    }

    .public-project-gallery,
    .portfolio-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .public-project-media-button.is-primary,
    .public-project-media-video:first-child,
    .public-project-gallery .home-card-placeholder:first-child,
    .portfolio-gallery-item:first-child {
        grid-column: 1 / -1;
    }

    .public-project-gallery img,
    .public-project-gallery video,
    .public-project-gallery .home-card-placeholder,
    .portfolio-gallery img {
        height: 150px;
    }

    .public-project-media-button.is-primary img,
    .public-project-media-video:first-child,
    .public-project-gallery .home-card-placeholder:first-child,
    .portfolio-gallery-item:first-child img {
        height: 230px;
    }

    .portfolio-meta-row,
    .public-comment-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

    .portfolio-meta-row span,
    .public-comment-strip span {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .home-footer {
        margin: 34px 0 16px;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .home-footer-grid {
        gap: 18px;
    }

    .home-footer-bottom {
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .home-shell {
        width: min(100% - 12px, 1180px);
    }

    .public-market-top {
        margin-top: 6px;
        border-radius: 14px;
    }

    .home-hero-content,
    .public-market-hero,
    .seo-hero,
    .home-cta,
    .public-market-card-body,
    .portfolio-card-body,
    .public-project-summary,
    .public-project-description,
    .portfolio-detail-hero > div,
    .portfolio-detail-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .public-project-gallery,
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .public-project-gallery img,
    .public-project-gallery video,
    .public-project-gallery .home-card-placeholder,
    .portfolio-gallery img,
    .public-project-media-button.is-primary img,
    .public-project-media-video:first-child,
    .public-project-gallery .home-card-placeholder:first-child,
    .portfolio-gallery-item:first-child img {
        height: 220px;
    }

    .portfolio-lightbox-dialog {
        width: 100%;
    }
}
