:root {
    --paper: #fbfaf7;
    --surface: #ffffff;
    --ink: #151412;
    --muted: #5d5a55;
    --line: #e6e0d7;
    --ivory: #f4efe6;
    --coffee: #3a2a22;
    --gold: #b8893d;
    --sage: #5d6f61;
    --teal: #0e7681;
    --teal-dark: #073f46;
    --rose: #8f3b50;
    --mist: #eaf1ee;
    --charcoal: #111615;
    --danger: #b2382f;
    --success: #2f6d4f;
    --shadow: 0 18px 45px rgba(26, 22, 18, .09);
    --shadow-deep: 0 30px 80px rgba(9, 15, 14, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Pretendard", "SUIT", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 40px;
    background: rgba(251, 250, 247, .93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ink);
    font-weight: 800;
    font-size: 20px;
}

.brand-mark span::after {
    content: ".com";
    color: var(--gold);
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--muted);
    font-size: 15px;
}

.site-nav a:hover {
    color: var(--ink);
}

.header-cta,
.primary-button,
.ghost-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
}

.header-cta,
.primary-button,
.small-button {
    background: var(--ink);
    color: #fff;
}

.primary-button:hover,
.small-button:hover,
.header-cta:hover {
    background: #000;
}

.ghost-button {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
}

.ghost-button.dark {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

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

.narrow {
    width: min(780px, calc(100% - 40px));
}

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #201a16;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 13, 10, .82), rgba(16, 13, 10, .42), rgba(16, 13, 10, .18));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    margin-left: max(40px, calc((100% - 1120px) / 2));
    padding: 72px 0 92px;
    color: #fff;
}

.hero-content h1 {
    margin: 12px 0 20px;
    font-size: 52px;
    line-height: 1.13;
    letter-spacing: 0;
}

.hero-content p {
    width: min(620px, 100%);
    color: rgba(255, 255, 255, .86);
    font-size: 19px;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.section {
    padding: 88px 0;
}

.muted {
    background: var(--ivory);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 48px;
    align-items: start;
}

.section h2,
.sub-hero h1,
.centered-page h1 {
    margin: 0 0 18px;
    font-size: 38px;
    line-height: 1.25;
    letter-spacing: 0;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

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

.section-head h2 {
    margin: 0;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-list span,
.card-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--coffee);
    font-size: 14px;
    font-weight: 800;
}

.estimate-form,
.info-card,
.brand-card,
.content-card,
.faq-item,
.admin-panel,
.stat-card,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.estimate-form {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-color: rgba(14, 118, 129, .18);
}

.estimate-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--rose));
}

.form-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.form-heading p:last-child {
    margin: 0 0 18px;
    color: var(--muted);
}

.form-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 22px;
}

.form-steps span {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(14, 118, 129, .16);
    border-radius: 8px;
    background: #f7fbfa;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

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

label {
    display: grid;
    gap: 8px;
    color: var(--coffee);
    font-size: 14px;
    font-weight: 800;
}

.field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.field-label em {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(143, 59, 80, .1);
    color: var(--rose);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8d0c4;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #9b958e;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 137, 61, .16);
}

.full-field {
    margin-top: 16px;
}

.full-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.upload-field {
    position: relative;
}

.upload-box {
    display: grid;
    gap: 4px;
    min-height: 112px;
    padding: 22px;
    place-items: center;
    border: 1px dashed rgba(14, 118, 129, .42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(14, 118, 129, .08), rgba(184, 137, 61, .08)),
        #fff;
    color: var(--teal-dark);
    text-align: center;
}

.upload-box strong {
    font-size: 17px;
}

.upload-box small {
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.file-control {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 112px;
    cursor: pointer;
    opacity: 0;
}

.file-summary {
    min-height: 22px;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.file-preview-item {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    border: 1px solid rgba(14, 118, 129, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(26, 22, 18, .08);
}

.file-preview-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.file-preview-meta {
    display: grid;
    gap: 1px;
    padding: 7px 8px 8px;
}

.file-preview-meta strong,
.file-preview-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-meta strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.25;
}

.file-preview-meta span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.file-remove-button {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: rgba(8, 13, 12, .72);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.file-remove-button:hover {
    background: var(--danger);
}

.check-row {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-weight: 700;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.submit-row {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.submit-row .primary-button {
    width: 100%;
}

.submit-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert p {
    margin: 0;
}

.alert-error {
    background: #fff3f1;
    border: 1px solid #f0c3be;
    color: var(--danger);
}

.alert-success {
    background: #eef8f2;
    border: 1px solid #c4e4d0;
    color: var(--success);
}

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

.info-card,
.content-card,
.brand-card {
    padding: 24px;
}

.info-card h2 {
    margin-top: 14px;
    font-size: 22px;
}

.info-card p,
.content-card p,
.brand-card span {
    color: var(--muted);
}

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

.brand-card {
    display: grid;
    gap: 6px;
    min-height: 140px;
}

.brand-card strong,
.content-card strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.35;
}

.content-card span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.wide-card {
    grid-column: 1 / -1;
}

.spotlight {
    background: #171513;
    color: #fff;
}

.spotlight .lead {
    color: rgba(255, 255, 255, .78);
}

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

.process-list div {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.process-list span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--gold);
    color: #171513;
    font-weight: 900;
}

.process-list p {
    margin: 0;
}

.faq-wrap {
    width: min(900px, calc(100% - 40px));
}

.faq-item {
    padding: 20px 24px;
    margin-top: 12px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.bottom-cta {
    padding: 72px 0;
    background: var(--coffee);
    color: #fff;
}

.bottom-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bottom-cta h2 {
    margin: 0;
    max-width: 720px;
}

.sub-hero {
    padding: 96px 0 72px;
    background: #171513;
    color: #fff;
}

.sub-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .78);
}

.centered-page {
    min-height: 560px;
    display: flex;
    align-items: center;
    text-align: center;
}

.article-page {
    padding: 92px 0;
}

.page-copy-section {
    padding-bottom: 0;
}

.article-page h1 {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.22;
}

.article-body {
    margin: 34px 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: #2b2925;
    font-size: 18px;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.case-meta span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--coffee);
    font-size: 14px;
    font-weight: 800;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 44px 40px 86px;
    background: #111;
    color: rgba(255, 255, 255, .78);
}

.site-footer strong {
    color: #fff;
}

.site-footer p {
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.mobile-sticky-cta {
    display: none;
}

.header-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.header-logout span {
    max-width: 120px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout button {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.auth-section {
    background:
        radial-gradient(circle at 18% 8%, rgba(14, 118, 129, .12), transparent 34%),
        #f7f5f0;
}

.auth-wrap {
    display: grid;
    place-items: center;
}

.auth-card {
    display: grid;
    gap: 16px;
    width: min(560px, 100%);
    padding: 32px;
    border: 1px solid rgba(14, 118, 129, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-card h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.auth-card > p {
    margin: 0 0 6px;
    color: var(--muted);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.auth-links a {
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 900;
}

.portal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.portal-head h2 {
    margin: 0;
}

.portal-head > span {
    color: var(--muted);
    font-weight: 900;
}

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

.portal-card,
.portal-empty,
.quote-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.portal-card {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.portal-card:hover {
    border-color: rgba(14, 118, 129, .36);
    transform: translateY(-2px);
}

.portal-card strong {
    font-size: 22px;
    line-height: 1.3;
}

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

.status-pill {
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(14, 118, 129, .1);
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 900;
}

.portal-empty {
    padding: 28px;
}

.portal-empty p {
    margin: 8px 0 0;
    color: var(--muted);
}

.member-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

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

.quote-card {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.quote-card span {
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 900;
}

.quote-card strong {
    font-size: 24px;
    line-height: 1.2;
}

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

.quote-admin-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.admin-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f6f5f1;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    background: #151412;
    color: #fff;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
    margin: 28px 0;
}

.admin-sidebar nav a {
    padding: 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
}

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

.admin-main {
    padding: 32px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.admin-panel {
    padding: 24px;
    margin-bottom: 20px;
}

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

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

.admin-help {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.filter-tabs a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

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

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

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.admin-form {
    display: grid;
    gap: 16px;
}

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

.delete-form {
    margin-top: 10px;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 800;
}

.danger {
    color: var(--danger);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

.detail-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 18px;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 900;
}

.detail-list dd {
    margin: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #171513;
}

.login-panel {
    width: min(420px, 100%);
    padding: 32px;
}

.login-panel h1 {
    margin: 0 0 22px;
}

@media (max-width: 920px) {
    .site-header {
        padding: 14px 20px;
    }

    .site-nav {
        display: none;
    }

    .header-cta,
    .header-logout button {
        min-height: 42px;
        padding: 0 14px;
        font-size: 14px;
    }

    .header-logout span {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        margin-left: 20px;
        padding: 64px 0 78px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .section {
        padding: 64px 0;
    }

    .two-column,
    .card-grid,
    .brand-grid,
    .admin-body,
    .detail-grid,
    .member-detail-grid {
        grid-template-columns: 1fr;
    }

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

    .section h2,
    .sub-hero h1,
    .centered-page h1 {
        font-size: 30px;
    }

    .article-page h1 {
        font-size: 32px;
    }

    .bottom-cta .container,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

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

    .admin-main {
        padding: 20px;
    }

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

    .mobile-sticky-cta {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 30;
        display: block;
    }

    .mobile-sticky-cta a {
        display: grid;
        place-items: center;
        min-height: 52px;
        border-radius: 8px;
        background: var(--ink);
        color: #fff;
        font-weight: 900;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    }
}

/* Home refresh */
body {
    background:
        linear-gradient(180deg, #fbfaf7 0, #f7f5f0 44%, #fff 100%);
}

.header-cta,
.primary-button,
.ghost-button,
.small-button,
.content-card,
.brand-card,
.condition-tile,
.guide-card {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease, color .22s ease;
}

.site-header .header-cta,
.form-section .primary-button {
    background: var(--teal-dark);
}

.site-header .header-cta:hover,
.form-section .primary-button:hover {
    background: #052d32;
    transform: translateY(-1px);
}

.hero {
    min-height: clamp(620px, calc(100svh - 74px), 760px);
    align-items: flex-end;
    background: var(--charcoal);
}

.hero-image {
    object-position: center 58%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(8, 13, 12, .76) 0%, rgba(8, 13, 12, .54) 38%, rgba(8, 13, 12, .14) 76%),
        linear-gradient(0deg, rgba(8, 13, 12, .64) 0%, rgba(8, 13, 12, .02) 48%);
}

.hero-content {
    width: min(720px, calc(100% - 40px));
    padding: 92px 0 54px;
}

.hero-content h1 {
    margin: 10px 0 18px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.02;
}

.hero-content p {
    max-width: 640px;
    color: rgba(255, 255, 255, .88);
    font-size: 20px;
}

.hero .primary-button {
    background: #fff;
    color: var(--ink);
}

.hero .primary-button:hover {
    background: #f1ede6;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(680px, 100%);
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
}

.hero-metrics div {
    padding: 16px 18px;
    background: rgba(255, 255, 255, .07);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1.1;
}

.hero-metrics span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
}

.trust-band {
    padding: 30px 0;
    background: var(--charcoal);
    color: #fff;
}

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

.trust-band-grid div {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.trust-band-grid span {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.trust-band-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.trust-band-grid p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.form-section {
    background:
        radial-gradient(circle at 14% 10%, rgba(14, 118, 129, .12), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f7f5f0 100%);
}

.estimate-copy {
    display: grid;
    align-content: start;
}

.estimate-visual {
    position: relative;
    margin: 34px 0 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-deep);
}

.estimate-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.estimate-visual figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(8, 13, 12, .74);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.editorial-section {
    background: #fff;
}

.condition-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 245px;
    gap: 18px;
}

.condition-tile {
    position: relative;
    display: flex;
    min-height: 245px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border-radius: 8px;
    color: #fff;
    box-shadow: var(--shadow);
}

.condition-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 9, .05) 0%, rgba(7, 10, 9, .5) 50%, rgba(7, 10, 9, .9) 100%);
    z-index: 1;
}

.condition-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.condition-tile.is-large {
    grid-column: span 2;
    grid-row: span 2;
}

.condition-tile .card-chip,
.condition-tile strong,
.condition-tile p {
    position: relative;
    z-index: 2;
}

.condition-tile .card-chip {
    width: fit-content;
    background: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .28);
    color: var(--teal-dark);
}

.condition-tile strong {
    display: block;
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.25;
}

.condition-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .82);
}

.condition-tile:hover,
.brand-card:hover,
.content-card:hover,
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-deep);
}

.condition-tile:hover img {
    transform: scale(1.04);
}

.brand-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 24px;
    align-items: stretch;
}

.brand-showcase > img {
    width: 100%;
    height: 100%;
    min-height: 336px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.brand-card {
    min-height: 160px;
    border-color: rgba(14, 118, 129, .16);
}

.brand-card:hover {
    border-color: rgba(14, 118, 129, .42);
}

.photo-guide {
    background:
        linear-gradient(135deg, rgba(14, 118, 129, .1), transparent 42%),
        var(--mist);
}

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

.guide-card {
    min-height: 188px;
    padding: 22px;
    border: 1px solid rgba(7, 63, 70, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow);
}

.guide-card span {
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
}

.guide-card strong {
    display: block;
    margin-top: 18px;
    font-size: 22px;
    line-height: 1.25;
}

.guide-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.spotlight {
    background:
        radial-gradient(circle at 80% 18%, rgba(184, 137, 61, .22), transparent 32%),
        #101514;
}

.spotlight-panel {
    display: grid;
    grid-template-columns: minmax(160px, .72fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.spotlight-panel > img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.process-list div {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.image-cta {
    position: relative;
    overflow: hidden;
    background: var(--charcoal);
}

.image-cta > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .26;
}

.image-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 13, 12, .94), rgba(9, 13, 12, .68));
}

.image-cta .container {
    position: relative;
    z-index: 1;
}

.image-cta .primary-button {
    background: #fff;
    color: var(--ink);
}

.image-cta .primary-button:hover {
    background: #f1ede6;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: homeFadeUp .7s ease both;
    }

    .trust-band-grid div,
    .condition-tile,
    .guide-card {
        animation: homeFadeUp .7s ease both;
    }
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .hero {
        min-height: 650px;
    }

    .hero-content {
        width: min(100% - 40px, 680px);
        padding: 68px 0 36px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-metrics,
    .trust-band-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics div {
        padding: 13px 15px;
    }

    .trust-band-grid {
        gap: 16px;
    }

    .condition-bento,
    .brand-showcase,
    .spotlight-panel {
        grid-template-columns: 1fr;
    }

    .condition-bento {
        grid-auto-rows: auto;
    }

    .condition-tile,
    .condition-tile.is-large {
        grid-column: auto;
        grid-row: auto;
        min-height: 330px;
    }

    .brand-showcase > img,
    .spotlight-panel > img {
        min-height: 260px;
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .brand-showcase .brand-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: auto;
    }
}

@media (max-width: 520px) {
    .container,
    .narrow,
    .faq-wrap {
        width: min(100% - 28px, 1120px);
    }

    .site-header {
        padding: 12px 14px;
    }

    .brand-mark {
        font-size: 18px;
    }

    .header-cta {
        min-height: 40px;
        padding: 0 12px;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .portal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        width: calc(100% - 28px);
        margin-left: 14px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions a {
        width: 100%;
    }

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

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

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .estimate-form,
    .info-card,
    .content-card,
    .brand-card,
    .faq-item,
    .admin-panel,
    .stat-card,
    .login-panel {
        padding: 20px;
    }

    .condition-tile {
        min-height: 300px;
        padding: 20px;
    }

    .bottom-cta {
        padding: 58px 0 96px;
    }
}
