:root {
    --hc-green: #5bbf63;
    --hc-black: #08090b;
    --hc-text: #111;
    --hc-muted: #666;
    --hc-soft: #ededed;
    --hc-shell: 1130px;
}

.standalone-shell {
    width: min(var(--hc-shell), calc(100% - 48px));
    margin: 0 auto;
}

.portfolio-list-page,
.portfolio-archive-page {
    background: #fff;
    color: var(--hc-text);
    overflow-x: hidden;
}

.portfolio-entry-page {
    background: #fff;
    color: var(--hc-text);
}

.portfolio-shell {
    max-width: 1120px;
}

.portfolio-entry-hero {
    padding: 130px 0 86px;
}

.portfolio-entry-hero h1 {
    margin: 0 0 28px;
    color: #000;
    font-size: clamp(3.8rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0;
    font-weight: 900;
}

.portfolio-entry-hero p {
    max-width: 720px;
    margin: 0;
    color: #20242b;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    line-height: 1.7;
}

.portfolio-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.portfolio-entry-actions a {
    display: inline-grid;
    place-items: center;
    min-width: 154px;
    min-height: 52px;
    border: 1px solid #111;
    border-radius: 6px;
    font-weight: 900;
}

.portfolio-entry-actions a:first-child {
    background: #111;
    color: #fff;
}

.portfolio-entry-featured {
    padding-bottom: 118px;
}

.portfolio-entry-featured h2 {
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    font-weight: 900;
}

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

.portfolio-entry-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 8px;
    background: #efefef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-entry-card:hover,
.portfolio-entry-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.13);
    outline: none;
}

.portfolio-entry-card img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border-radius: 6px;
    object-fit: cover;
    filter: brightness(0.78);
}

.portfolio-entry-card strong {
    font-size: 1.35rem;
    font-weight: 900;
}

.portfolio-entry-card span {
    color: #666;
    font-weight: 800;
}

/* ── Shared page hero ── */
.page-hero {
    padding: 132px 0 80px;
}

.page-hero__eyebrow {
    margin: 0 0 18px;
    color: var(--hc-green);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 28px;
    font-size: clamp(3.2rem, 7vw, 5.9rem);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.page-hero__desc {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.7;
}

/* ── Portfolio hero ── */
.portfolio-hero h1 {
    color: #000;
}

.portfolio-hero p {
    color: #20242b;
}

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

.portfolio-card {
    display: grid;
    position: relative;
    min-height: 375px;
    padding: 38px 34px 30px;
    border: 0;
    border-radius: 6px;
    background: rgba(185, 185, 185, 0.55);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
    transform: translateY(-8px);
    background: rgba(168, 168, 168, 0.65);
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.16);
    outline: none;
}

.portfolio-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.28;
    border-radius: 6px;
    overflow: hidden;
    align-self: start;
    background: #777;
}

.portfolio-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    transition: background 0.24s ease;
}

.portfolio-card:hover .portfolio-card__image::after,
.portfolio-card:focus-visible .portfolio-card__image::after {
    background: rgba(0, 0, 0, 0.24);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
    transform: scale(1.08);
}

.portfolio-card__image strong {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    max-width: calc(100% - 40px);
    color: #fff;
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    line-height: 1.02;
    font-weight: 900;
    text-align: right;
}

.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 26px;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
}

/* Portfolio Noise Scroll Effect */
[data-portfolio-noise-section] {
    position: relative;
}

.portfolio-noise-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    pointer-events: none;
    z-index: 0;
    transform-origin: center center;
    transform: scale(0.7);
    will-change: transform;
}

.portfolio-noise-img {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    animation: portfolio-noise-spin 20s linear infinite;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes portfolio-noise-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.portfolio-grid,
.portfolio-pagination {
    position: relative;
    z-index: 1;
}

.portfolio-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 0 118px;
    font-size: 1.1rem;
    font-weight: 800;
}

.portfolio-pagination__num {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    color: #969696;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.portfolio-pagination__num:hover {
    color: #111;
    background: #f2f2f2;
}

.portfolio-pagination__num.is-current {
    color: #fff;
    background: #111;
}

.portfolio-pagination__arrow {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #d8d8d8;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.portfolio-pagination__arrow:hover {
    border-color: #111;
    color: #111;
    background: #f8f8f8;
}

.portfolio-modal[hidden] {
    display: none;
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.portfolio-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.portfolio-modal__panel {
    position: relative;
    width: min(1540px, calc(100vw - 48px));
    height: min(900px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(20, 20, 20, 0.78);
    color: #fff;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.12);
}

.portfolio-modal__close {
    position: absolute;
    right: 36px;
    top: 30px;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.72);
    color: #fff;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
}

.portfolio-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 330px);
    gap: 34px;
    height: 100%;
    padding: 34px;
    overflow: hidden;
}

.portfolio-modal__main {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.72) rgba(255, 255, 255, 0.12);
}

.portfolio-modal__main::-webkit-scrollbar,
.portfolio-modal__panel::-webkit-scrollbar {
    width: 10px;
}

.portfolio-modal__main::-webkit-scrollbar-track,
.portfolio-modal__panel::-webkit-scrollbar-track {
    margin: 2px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.portfolio-modal__main::-webkit-scrollbar-thumb,
.portfolio-modal__panel::-webkit-scrollbar-thumb {
    border: 2px solid rgba(20, 20, 20, 0.78);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.portfolio-modal__main::-webkit-scrollbar-thumb:hover,
.portfolio-modal__panel::-webkit-scrollbar-thumb:hover {
    background: #fff;
}

.portfolio-modal__main h2 {
    margin: 0 0 28px;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1;
    font-weight: 900;
}

.portfolio-modal__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 24px;
}

.portfolio-modal__meta div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    padding-bottom: 14px;
}

.portfolio-modal__meta div > span {
    display: block;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 800;
}

.portfolio-modal__meta strong {
    font-size: 1.16rem;
}

.portfolio-price strong {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    height: 32px;
    color: #fff;
}

.portfolio-price__arrow {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 400;
}

.portfolio-price__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 260px;
}

.portfolio-price__track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.76);
    transform: translateY(-50%);
}

.portfolio-price__dot {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
}

.portfolio-price__dot.is-active {
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
    background: #2679ff;
    box-shadow: 0 0 0 2px rgba(38, 121, 255, 0.55);
}

.portfolio-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px 0 30px;
}

.portfolio-modal__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    font-weight: 900;
}

.portfolio-modal__preview {
    position: relative;
    width: 100%;
    max-width: var(--preview-width, 100%);
    margin-left: auto;
    margin-right: auto;
    min-height: 520px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    transition: max-width 0.28s ease;
}

.portfolio-modal__preview[data-size="tablet"] {
    --preview-width: 760px;
}

.portfolio-modal__preview[data-size="mobile"] {
    --preview-width: 430px;
}

.portfolio-modal__preview img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-modal__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
    padding-top: 96px;
}

.portfolio-modal__side a,
.portfolio-modal__side button {
    display: grid;
    place-items: center;
    min-height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.16rem;
    font-weight: 900;
    cursor: pointer;
}

.portfolio-modal__side a[hidden],
.portfolio-modal__side button[hidden] {
    display: none;
}

.portfolio-modal__side .portfolio-modal__primary {
    border-color: #2878e8;
    background: #2878e8;
}

.portfolio-modal__side .portfolio-modal__inquiry {
    margin-top: auto;
    border-color: #000;
    background: #000;
}

.service-page {
    background: #fff;
    color: var(--hc-text);
}

.service-shell {
    max-width: 1120px;
}

.service-hero {
    /* padding, h1 size via .page-hero */
}

.service-detail__number {
    margin: 0 0 18px;
    color: var(--hc-green);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-hero h1 {
    max-width: 980px;
    color: #000;
}

.service-hero .page-hero__desc {
    max-width: 780px;
    color: #20242b;
}

.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.service-hero__actions a,
.service-detail__cta,
.service-final a {
    display: inline-grid;
    place-items: center;
    min-width: 164px;
    min-height: 54px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 900;
}

.service-hero__actions a + a {
    background: #fff;
    color: #111;
}

.service-overview {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 36px;
    padding: 20px 0 72px;
}

.service-overview__intro h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 900;
}

.service-overview__intro p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

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

.service-index a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #f4f4f4;
    color: #111;
    font-weight: 900;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.service-index a:hover,
.service-index a:focus-visible {
    border-color: #111;
    background: #fff;
    transform: translateY(-2px);
    outline: none;
}

.service-index span {
    color: var(--hc-green);
    font-size: 0.86rem;
}

.service-list {
    display: grid;
}

.service-detail {
    border-top: 1px solid #e5e5e5;
    scroll-margin-top: 110px;
}

.service-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
    padding: clamp(58px, 8vw, 96px) 0;
}

.service-detail--reverse .service-detail__copy {
    order: 2;
}

.service-detail--reverse .service-detail__visual {
    order: 1;
}

.service-detail__copy h2 {
    margin: 0 0 22px;
    color: #000;
    font-size: clamp(2.25rem, 4.8vw, 4.3rem);
    line-height: 1;
    font-weight: 900;
}

.service-detail__summary,
.service-detail__body {
    max-width: 650px;
    margin: 0;
    color: #20242b;
    font-size: 1.08rem;
    line-height: 1.78;
}

.service-detail__body {
    margin-top: 16px;
    color: #5a5a5a;
}

.service-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 30px;
}

.service-detail__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ededed;
    color: #333;
    font-size: 0.95rem;
    font-weight: 900;
}

.service-detail__visual {
    border-radius: 8px;
    background: #f0f0f0;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.12);
}

.service-detail__visual img {
    width: 100%;
    aspect-ratio: 1 / 1.02;
    object-fit: cover;
}

.service-final {
    padding: 86px 0 118px;
    background: #0b0c10;
    color: #fff;
}

.service-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: end;
}

.service-final__inner--center {
    grid-template-columns: 1fr;
    max-width: none;
    width: min(860px, calc(100% - 48px));
    margin: 0 auto;
    text-align: center;
    justify-items: center;
}

.service-final h2 {
    max-width: 760px;
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    line-height: 1.2;
    font-weight: 900;
}

.service-final p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.service-final a {
    border-color: #fff;
    background: #fff;
    color: #111;
}

/* ── Service page tabs ─────────────────────────────────── */
.svc-tabs-wrap {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 50;
}

.svc-tabs-nav {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.svc-tabs-nav::-webkit-scrollbar { display: none; }

.svc-tab {
    flex-shrink: 0;
    padding: 18px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-size: 1rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    font-family: inherit;
}

.svc-tab:hover { color: #333; }
.svc-tab.is-active { color: #111; border-bottom-color: #5BB761; }

.svc-tab__num {
    margin-right: 8px;
    color: #5BB761;
    font-size: 0.82rem;
}

.svc-tabs-body { background: #fff; }

.svc-panel { padding: 72px 0; }

.svc-panel__inner {
    display: grid;
    grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
}

.svc-panel__visual {
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    position: sticky;
    top: 90px;
}

.svc-panel__visual img {
    width: 100%;
    aspect-ratio: 425 / 600;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.svc-panel__kicker {
    margin: 0 0 12px;
    color: #5BB761;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.svc-panel__copy h2 {
    margin: 0 0 18px;
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #000;
}

.svc-panel__lead {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #20242b;
}

.svc-panel__body {
    margin: 0 0 36px;
    font-size: 1rem;
    line-height: 1.78;
    color: #5a5a5a;
}

.svc-section { margin-bottom: 28px; }

.svc-section h3 {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.svc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-list li {
    padding-left: 22px;
    position: relative;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #20242b;
}

.svc-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #5BB761;
    font-weight: 700;
}

.svc-list--check li::before { content: "✓"; }

.svc-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: svc-step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-steps li {
    padding-left: 38px;
    position: relative;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #20242b;
    counter-increment: svc-step;
}

.svc-steps li::before {
    content: counter(svc-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5BB761;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0;
}

.svc-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: #ededed;
    color: #333;
    font-size: 0.88rem;
    font-weight: 700;
}

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

.svc-actions a {
    display: inline-grid;
    place-items: center;
    min-width: 164px;
    min-height: 50px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.92rem;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.svc-actions a:hover { background: #5BB761; border-color: #5BB761; }

.svc-actions a + a {
    background: #fff;
    color: #111;
}

.svc-actions a + a:hover { border-color: #5BB761; color: #5BB761; background: #fff; }

@media (max-width: 960px) {
    .svc-panel__inner {
        grid-template-columns: 1fr;
    }

    .svc-panel__visual {
        position: static;
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .svc-panel { padding: 48px 0; }
    .svc-tab { padding: 14px 16px; font-size: 0.88rem; }
}

/* ── end service page tabs ─────────────────────────────── */

.standalone-contact {
    background: #fff;
    color: var(--hc-text);
    max-width: 100%;
    overflow-x: clip;
}

.standalone-contact__hero {
    /* padding via .page-hero */
}

.standalone-contact__hero h1 {
    color: #000;
}

.standalone-contact__hero p {
    color: #20242b;
}

.contact-form-section {
    margin-bottom: 64px;
    max-width: 100%;
    min-width: 0;
}

.contact-form-section h2 {
    margin: 0 0 38px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 900;
}

.contact-grid {
    display: grid;
    gap: 18px;
    min-width: 0;
}

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

.standalone-contact-form label {
    display: grid;
    gap: 12px;
    max-width: 100%;
    min-width: 0;
}

.standalone-contact-form label > span,
.contact-choice-group legend,
.contact-message > span,
.contact-upload label > span {
    color: #222;
    font-size: 1rem;
    font-weight: 900;
}

.standalone-contact-form em {
    color: #f23333;
    font-style: normal;
}

.standalone-contact-form input,
.standalone-contact-form select,
.standalone-contact-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    background: #eee;
    color: #111;
    padding: 0 22px;
    font: inherit;
}

.standalone-contact-form textarea {
    min-height: 310px;
    padding-top: 34px;
    resize: vertical;
    overflow-wrap: break-word;
}

.contact-choice-group {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 36px 0;
    padding: 0;
    border: 0;
    max-width: 100%;
    min-width: 0;
}

.contact-choice-group legend {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.contact-choice-group label {
    position: relative;
}

.contact-choice-group input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    min-width: 1px;
    height: 1px;
    min-height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-choice-group span {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 70px;
    border-radius: 8px;
    background: #eee;
    color: #777;
    overflow-wrap: anywhere;
    text-align: center;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.contact-choice-group input:checked + span {
    background: #111;
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.contact-upload {
    margin-top: 36px;
    max-width: 100%;
    min-width: 0;
}

.contact-upload label {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
}

.contact-upload label > span {
    margin-bottom: 4px;
}

.contact-upload input[type="file"] {
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 0 0 0 14px;
    border-radius: 8px;
    color: #777;
    direction: rtl;
    text-align: left;
    cursor: pointer;
}

.contact-upload label::after {
    content: "찾아보기";
    display: grid;
    place-items: center;
    min-height: 64px;
    border-radius: 0 8px 8px 0;
    background: #000;
    color: #fff;
    font-weight: 900;
}

.contact-upload label::after {
    display: none;
}

.contact-upload input[type="file"]::file-selector-button {
    min-width: 132px;
    min-height: 64px;
    margin: 0 14px 0 0;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #000;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.contact-upload p {
    margin: 12px 0 0;
    color: #777;
    font-size: 0.86rem;
}

.contact-privacy {
    margin-top: 54px;
    padding: 28px;
    border-radius: 8px;
    background: #eee;
    max-width: 100%;
    min-width: 0;
}

.contact-privacy h3 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.contact-privacy__box {
    max-height: 170px;
    overflow: auto;
    color: #333;
    font-size: 0.92rem;
    line-height: 1.7;
}

.contact-consent {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    min-width: 0;
}

.contact-consent input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
}

.contact-consent span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-submit-row {
    display: grid;
    justify-content: end;
    justify-items: end;
    gap: 16px;
    margin-top: 34px;
    max-width: 100%;
    min-width: 0;
}

.contact-submit-row button,
.admin-form button,
.admin-login button {
    min-width: 210px;
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.contact-form-status {
    min-height: 24px;
    color: var(--hc-green);
    font-weight: 800;
}

.hicoding-estimate-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.estimate-page {
    flex: 1;
    padding-top: var(--header-height);
    box-sizing: border-box;
    background: linear-gradient(160deg, #eaf6ec 0%, #f5f7f8 40%);
    color: var(--hc-text);
}

.estimate-shell {
    max-width: 1160px;
}

.estimate-shell.estimate-shell {
    padding-top: 16px;
    padding-bottom: 100px;
}

/* ── Hero ── */
.estimate-hero {
    flex-shrink: 0;
    padding: 20px 0 16px;
    background: transparent;
}

.estimate-hero__inner {
    max-width: var(--hc-shell);
}

.estimate-hero__eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 9px;
    border: 1px solid var(--hc-green);
    border-radius: 99px;
    color: var(--hc-green);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.estimate-hero__title {
    margin: 0 0 6px;
    color: #0a0f14;
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.estimate-hero__desc {
    max-width: 480px;
    margin: 0 0 12px;
    color: #4c535d;
    font-size: 0.85rem;
    line-height: 1.55;
}

.estimate-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.estimate-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.18s;
}

.estimate-hero__btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.estimate-hero__btn--outline {
    background: #fff;
    color: #111;
    border: 1.5px solid #d0d4da;
}

.estimate-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estimate-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #636970;
    font-size: 0.82rem;
    font-weight: 700;
}

.estimate-hero__trust svg {
    color: var(--hc-green);
    flex-shrink: 0;
}

.estimate-complete a {
    display: inline-grid;
    place-items: center;
    min-width: 148px;
    min-height: 52px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 900;
}

.estimate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.estimate-layout[hidden],
.estimate-complete[hidden],
.estimate-step[hidden] {
    display: none;
}

.estimate-wizard,
.estimate-summary,
.estimate-complete {
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.08);
}

.estimate-wizard {
    padding: clamp(16px, 2vw, 24px);
}

.estimate-progress {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.estimate-progress__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.estimate-progress__counter {
    flex-shrink: 0;
    color: #3c424a;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.estimate-progress__counter strong {
    color: #111;
    font-weight: 900;
}

.estimate-progress__top i {
    flex: 1;
    display: block;
    height: 5px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
}

.estimate-progress__top b {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--hc-green);
    transition: width 0.3s ease;
}

.estimate-progress__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.estimate-progress__steps li {
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid #e0e3e7;
    color: #a0a7b0;
    font-size: 0.72rem;
    font-weight: 700;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.estimate-progress__steps li.is-done {
    border-color: rgba(91, 191, 99, 0.4);
    color: var(--hc-green);
    background: rgba(91, 191, 99, 0.07);
    cursor: pointer;
}

.estimate-progress__steps li.is-done:hover {
    border-color: var(--hc-green);
    background: rgba(91, 191, 99, 0.15);
}

.estimate-progress__steps li.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
    font-weight: 900;
}

.estimate-step {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.estimate-step legend {
    margin: 0 0 6px;
    color: #000;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: 0;
}

.estimate-step > p {
    max-width: 620px;
    margin: 0 0 16px;
    color: #5d6470;
    font-size: 0.86rem;
    line-height: 1.5;
}

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

.estimate-options button {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 108px;
    padding: 18px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f5f6f7;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.estimate-options button:hover,
.estimate-options button:focus-visible {
    border-color: #111;
    background: #fff;
    transform: translateY(-2px);
    outline: none;
}

.estimate-options button[aria-pressed="true"] {
    border-color: #111;
    background: #111;
    color: #fff;
}

.estimate-options strong {
    font-size: 0.98rem;
    line-height: 1.3;
    font-weight: 900;
}

.estimate-options span {
    color: #646b75;
    font-size: 0.86rem;
    line-height: 1.55;
}

.estimate-options button[aria-pressed="true"] span {
    color: rgba(255, 255, 255, 0.72);
}

/* category step icon cards — horizontal layout */
.estimate-options--category {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.estimate-options--category button {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 80px;
    padding: 16px 18px;
    border-radius: 12px;
    align-content: unset;
}

.estimate-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #edf2f7;
    color: #111;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.estimate-option-text {
    display: grid;
    gap: 3px;
    text-align: left;
    min-width: 0;
}

.estimate-options--category button[aria-pressed="true"] .estimate-option-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.estimate-options--category button:hover:not([aria-pressed="true"]) .estimate-option-icon {
    background: #e2f0e4;
    color: var(--hc-green);
}

/* sub-item and common steps: 2-column grid */
[data-estimate-branch-step] .estimate-options,
[data-estimate-common-step] .estimate-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

[data-estimate-branch-step] .estimate-options button,
[data-estimate-common-step] .estimate-options button {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 72px;
    padding: 14px 16px;
}

.estimate-ai-result {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 2px;
}

.estimate-contact-intro {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

.estimate-contact-panel {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.estimate-contact-panel[hidden],
.estimate-loading[hidden],
.estimate-ai-result[hidden] {
    display: none;
}

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

.estimate-contact-grid label {
    display: grid;
    gap: 10px;
}

.estimate-contact-grid span {
    color: #2b3036;
    font-size: 0.86rem;
    font-weight: 900;
}

.estimate-contact-grid input,
.estimate-contact-grid select,
.estimate-message input,
.estimate-message textarea {
    width: 100%;
    min-height: 64px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f5f6f7;
    color: #111;
    padding: 0 18px;
    font: inherit;
    font-size: 0.95rem;
}

.estimate-contact-grid select {
    appearance: none;
}

.estimate-message textarea {
    min-height: 120px;
    padding-top: 16px;
    resize: vertical;
}

.estimate-contact-grid input:focus,
.estimate-contact-grid select:focus,
.estimate-message input:focus,
.estimate-message textarea:focus {
    border-color: var(--hc-green);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 191, 99, 0.14);
}

.estimate-message,
.estimate-privacy {
    display: grid;
    gap: 10px;
}

.estimate-message span,
.estimate-privacy span {
    color: #2b3036;
    font-size: 0.86rem;
    font-weight: 900;
}

.estimate-privacy {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 14px 16px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f8faf9;
}

.estimate-privacy input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--hc-green);
}

.estimate-submit {
    justify-self: start;
    display: inline-grid;
    place-items: center;
    min-width: 220px;
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 8px;
}

.estimate-submit:disabled {
    opacity: 0.56;
    cursor: wait;
}

.estimate-direct-submit {
    justify-self: start;
    display: inline-grid;
    place-items: center;
    min-width: 220px;
    min-height: 48px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #555;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.estimate-direct-submit:hover:not(:disabled) {
    border-color: rgba(0, 0, 0, 0.45);
    color: #222;
}

.estimate-direct-submit:disabled {
    opacity: 0.5;
    cursor: wait;
}

.estimate-loading {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    padding: 30px 22px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f5f6f7;
    text-align: center;
}

.estimate-loading__mark {
    width: 54px;
    height: 54px;
    border: 5px solid #d8ede0;
    border-top-color: var(--hc-green);
    border-radius: 999px;
    animation: estimate-spin 0.9s linear infinite;
}

.estimate-loading strong {
    color: #111;
    font-size: 1rem;
    font-weight: 900;
}

.estimate-loading span {
    color: #5d6470;
    font-size: 0.9rem;
    line-height: 1.55;
}

.estimate-loading i {
    display: block;
    width: min(360px, 100%);
    height: 8px;
    border-radius: 999px;
    background: #e0e5e8;
    overflow: hidden;
}

.estimate-loading b {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--hc-green);
    animation: estimate-progress 1.2s ease-in-out infinite;
}

@keyframes estimate-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes estimate-progress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(260%);
    }
}

.estimate-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.estimate-back,
.estimate-next {
    display: grid;
    place-items: center;
    height: 48px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
}

.estimate-back {
    width: 48px;
}

.estimate-next {
    min-width: 96px;
    padding: 0 22px;
    background: #111;
    border-color: #111;
    color: #fff;
    font-size: 0.95rem;
}

.estimate-next[hidden] {
    display: none;
}

.estimate-back:disabled,
.estimate-next:disabled {
    opacity: 0.36;
    cursor: default;
}

.estimate-status {
    min-height: 24px;
    margin: 0 0 0 auto;
    color: #5d6470;
    font-size: 0.95rem;
    font-weight: 800;
    text-align: right;
}

.estimate-status[data-state="success"] {
    color: #198c3f;
}

.estimate-status[data-state="error"] {
    color: #c62828;
}

.estimate-summary {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: calc(var(--header-height, 64px) + 16px);
    max-height: calc(100vh - var(--header-height, 64px) - 32px);
    overflow-y: auto;
}

.estimate-summary__head {
    display: flex;
    align-items: center;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #edf0f2;
}

.estimate-summary__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-size: 0.95rem;
    font-weight: 900;
}

.estimate-summary__section {
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f2;
}

.estimate-summary__section--selected {
    flex: 1;
}

.estimate-summary__row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    color: #9aa0ab;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.estimate-summary__amount {
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 900;
    color: var(--hc-green);
    line-height: 1.2;
}

.estimate-summary__dur {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #111;
    min-height: 1.4em;
}

.estimate-summary__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.estimate-summary__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 99px;
    background: rgba(91, 191, 99, 0.12);
    border: 1px solid rgba(91, 191, 99, 0.35);
    color: #1a6e22;
    font-size: 0.82rem;
    font-weight: 800;
}

.estimate-summary__pill svg {
    color: var(--hc-green);
    flex-shrink: 0;
}

.estimate-summary__state {
    display: block;
    margin-top: 8px;
    color: #9aa0ab;
    font-size: 0.72rem;
    font-weight: 700;
}

.estimate-summary__count-badge {
    color: var(--hc-green);
    font-size: 0.72rem;
    font-weight: 900;
}

.estimate-summary__footer {
    padding: 16px 20px;
}

.estimate-summary__analyze-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--hc-ink, #101113);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
    margin-bottom: 8px;
}

.estimate-summary__analyze-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.estimate-summary__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--hc-green);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.18s;
    margin-bottom: 10px;
}

.estimate-summary__cta-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.estimate-summary__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    color: #a0a7b0;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.estimate-complete {
    display: grid;
    gap: 18px;
    max-width: 680px;
    margin-top: 28px;
    padding: clamp(28px, 5vw, 46px);
}

.estimate-complete h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    font-weight: 900;
}

.estimate-complete p {
    margin: 0;
    color: #4c535d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.estimate-complete div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.estimate-complete a + a {
    background: #fff;
    color: #111;
}

.admin-shell {
    min-height: 100vh;
    background: #f4f5f6;
    color: #111;
    padding: 26px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    border-radius: 8px;
    background: #111;
    color: #fff;
}

.admin-top a {
    font-weight: 900;
}

.admin-top nav {
    display: flex;
    gap: 18px;
}

.admin-content {
    max-width: 1280px;
    margin: 0 auto;
}

.admin-content h1 {
    margin: 0 0 24px;
    font-size: 2.3rem;
}

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

.admin-grid--inquiries {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.admin-panel,
.admin-login {
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.admin-panel h2 {
    margin: 0 0 20px;
}

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

.admin-form label,
.admin-login label {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-login input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    padding: 0 12px;
    font: inherit;
}

.admin-form textarea {
    padding-top: 12px;
}

.admin-form select {
    background: #fff;
}

.admin-form .admin-check {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
}

.admin-form .admin-check input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
}

.admin-help {
    margin: 0 0 18px;
    color: #666;
    line-height: 1.6;
}

.admin-help code {
    border-radius: 4px;
    background: #f1f2f3;
    padding: 2px 5px;
    color: #111;
}

.admin-secondary {
    display: inline-flex;
    align-items: center;
    font-weight: 900;
}

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

.admin-list-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.admin-list-item img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-list-item span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 0.9rem;
}

.admin-list-item button {
    border: 0;
    background: transparent;
    color: #c62828;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

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

.admin-detail {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 0;
}

.admin-detail dt {
    color: #777;
    font-weight: 900;
}

.admin-detail dd {
    margin: 0;
    word-break: break-word;
}

.admin-empty {
    color: #777;
}

.admin-diag-proposal {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #f0c419;
    border-radius: 8px;
    background: #fffbea;
}

.admin-diag-proposal h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.admin-diag-proposal h3 small {
    display: block;
    margin-top: 4px;
    color: #8a6d00;
    font-weight: 600;
    font-size: 0.78rem;
}

.admin-diag-proposal__label {
    margin: 16px 0 8px;
    font-weight: 900;
}

.admin-diag-proposal ul {
    margin: 0;
    padding-left: 20px;
}

.admin-diag-proposal li {
    margin-bottom: 6px;
}

.admin-diag-raw {
    margin-top: 20px;
}

.admin-diag-raw summary {
    cursor: pointer;
    font-weight: 800;
    color: #555;
}

.admin-diag-raw pre {
    margin-top: 12px;
    max-height: 420px;
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
    background: #f6f6f6;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-alert--error {
    color: #c62828;
    font-weight: 900;
}

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-toolbar__count {
    color: #666;
    font-size: 0.95rem;
}

/* Admin Action Buttons */
.admin-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.admin-action-btn--sm {
    height: 32px;
    padding: 0 12px;
    font-size: 0.82rem;
}

.admin-action-btn--danger {
    background: #c62828;
}

/* Admin Thumbnail Grid */
.admin-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-thumb-card {
    border: 1px solid #e7e7e7;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.admin-thumb-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f1f1;
}

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

.admin-thumb-info {
    padding: 10px 12px 6px;
    flex: 1;
}

.admin-thumb-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-thumb-info span {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    color: #888;
}

.admin-thumb-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px 12px;
}

/* Admin Pagination */
.admin-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 32px;
}

.admin-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-page-num.is-current {
    background: #111;
    color: #fff;
}

/* Admin Modal */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.admin-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 12px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.admin-modal__panel--wide {
    width: min(960px, calc(100vw - 32px));
}

.admin-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal__title {
    margin: 0 0 20px;
    font-size: 1.2rem;
}

/* Admin form 2-column layout */
.admin-form--pf {
    gap: 20px;
}

.admin-form__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.admin-form__row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding-top: 8px;
}

.admin-form__col {
    display: grid;
    gap: 16px;
    align-content: start;
}

/* Period: number + unit inline */
.admin-period-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
}

/* Fieldset for tag groups */
.admin-fieldset {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 14px 16px 16px;
    margin: 0;
}

.admin-fieldset legend {
    font-weight: 800;
    font-size: 0.87rem;
    padding: 0 6px;
    color: #555;
}

/* Tag checkbox pills */
.admin-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.admin-form .admin-tag-check {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1.5px solid #d7d7d7;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.87rem;
    background: #fff;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    gap: 0;
}

.admin-tag-check input[type="checkbox"] {
    display: none;
}

.admin-tag-check:has(input:checked) {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* Image upload sections */
.admin-img-upload {
    display: grid;
    gap: 10px;
}

.admin-img-upload > span {
    font-weight: 800;
    font-size: 0.9rem;
    color: #333;
}

.admin-img-preview {
    min-height: 100px;
    border: 2px dashed #d7d7d7;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.82rem;
}

.admin-img-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.admin-img-upload input[type="file"] {
    font-size: 0.85rem;
    min-height: auto;
    width: 100%;
    padding: 4px 0;
    border: none;
    border-radius: 0;
}

.admin-img-remove {
    justify-self: start;
    padding: 6px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #fff;
    color: #777;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-img-remove:hover {
    border-color: #c33;
    color: #c33;
}

/* Config panel */
.admin-config-wrap {
    margin-bottom: 20px;
}

.admin-config-wrap > summary {
    cursor: pointer;
    font-weight: 800;
    padding: 11px 18px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    list-style: none;
    color: #555;
    font-size: 0.9rem;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-config-wrap > summary::-webkit-details-marker {
    display: none;
}

.admin-config-wrap[open] > summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.admin-config-panel {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 24px;
}

.admin-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.admin-config-label {
    display: block;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0;
    gap: 6px;
}

.admin-config-label small {
    font-weight: 400;
    color: #888;
    font-size: 0.82rem;
}

.admin-config-panel textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    font-size: 0.87rem;
    resize: vertical;
    min-height: 44px;
}

@media (max-width: 700px) {
    .admin-form__row2,
    .admin-form__row3,
    .admin-config-grid {
        grid-template-columns: 1fr;
    }
}

/* Admin Board List */
.admin-board {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-board-header,
.admin-board-row {
    display: grid;
    grid-template-columns: 32px 36px 1fr 120px 90px 28px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
}

.admin-board-header {
    background: transparent;
    color: #888;
    font-size: 0.78rem;
    font-weight: 700;
    padding-bottom: 6px;
}

.admin-board-row {
    background: #fff;
    border: 1px solid #e7e7e7;
    cursor: default;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.admin-board-row:hover {
    border-color: #c5c5c5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-board-row.is-dragging {
    opacity: 0.35;
    border-style: dashed;
}

.admin-board-row.drag-over {
    border-color: #111;
    border-top-width: 2px;
    box-shadow: 0 -2px 0 #111;
}

.admin-board-handle {
    cursor: grab;
    color: #ccc;
    font-size: 1.1rem;
    user-select: none;
    text-align: center;
    transition: color 0.1s;
}

.admin-board-handle:hover {
    color: #888;
}

.admin-board-handle:active {
    cursor: grabbing;
}

.admin-board-num {
    color: #bbb;
    font-size: 0.8rem;
    text-align: center;
}

.admin-board-title {
    font-weight: 700;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-board-cat,
.admin-board-period {
    font-size: 0.84rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-board-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-board-link:hover {
    color: #111;
}

.admin-board-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
}

.admin-board-badge--on {
    background: #d1fae5;
    color: #065f46;
}

.admin-board-badge--off {
    background: #f1f1f1;
    color: #999;
}

.admin-board-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 960px) {
    .portfolio-entry-grid,
    .service-overview,
    .service-detail__inner,
    .service-final__inner,
    .contact-grid--two,
    .contact-choice-group,
    .estimate-layout,
    .estimate-ai-result,
    .estimate-contact-grid,
    .portfolio-modal__content,
    .admin-grid,
    .admin-grid--inquiries {
        grid-template-columns: 1fr;
    }

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

    .portfolio-card {
        min-height: 340px;
    }

    .service-detail--reverse .service-detail__copy,
    .service-detail--reverse .service-detail__visual {
        order: initial;
    }

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

    .portfolio-modal__side .portfolio-modal__inquiry {
        margin-top: 0;
    }

    .portfolio-modal__side {
        padding-top: 10px;
    }

    .portfolio-modal__panel {
        overflow: auto;
    }

    .portfolio-modal__content {
        height: auto;
        overflow: visible;
    }

    .portfolio-modal__main {
        overflow: visible;
        padding-right: 0;
    }

    .portfolio-modal__side {
        overflow: visible;
    }

    .portfolio-modal__meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-price__track {
        max-width: none;
    }

    .contact-upload label {
        grid-template-columns: 1fr;
    }

    .contact-upload label::after {
        border-radius: 8px;
    }

    .estimate-shell.estimate-shell {
        padding-top: 20px;
        padding-bottom: 100px;
    }

    .estimate-summary {
        position: static;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .standalone-shell {
        width: min(var(--hc-shell), calc(100% - 32px));
    }

    .page-hero {
        padding: 92px 0 56px;
    }

    .estimate-hero {
        padding: 16px 0 12px;
    }

    .estimate-hero__title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .estimate-options--category {
        grid-template-columns: 1fr;
    }

    .estimate-wizard {
        padding: 16px;
    }

    .estimate-options {
        grid-template-columns: 1fr;
    }

    .estimate-options button {
        min-height: 98px;
        padding: 16px;
    }

    .estimate-submit,
    .estimate-direct-submit {
        width: 100%;
    }

    .estimate-actions {
        align-items: flex-start;
    }

    .estimate-status {
        text-align: left;
    }

    .service-overview {
        padding-bottom: 52px;
    }

    .service-detail__inner {
        padding: 48px 0;
    }

    .service-detail__visual img {
        aspect-ratio: 1 / 0.9;
    }

    .service-final {
        padding: 64px 0 84px;
    }

    .portfolio-grid {
        gap: 18px;
    }

    .portfolio-card {
        padding: 24px;
    }

    .portfolio-modal {
        padding: 10px;
    }

    .portfolio-modal__panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .portfolio-modal__content {
        padding: 24px 16px;
    }

    .portfolio-modal__close {
        position: fixed;
        right: 16px;
        top: 16px;
        width: 56px;
        height: 56px;
        font-size: 2.5rem;
    }
}

/* ── AI 견적 결과 패널 ── */
.estimate-ai-result__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.estimate-ai-result__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(91, 191, 99, 0.12);
    border: 1px solid rgba(91, 191, 99, 0.35);
    color: var(--hc-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.estimate-ai-result__description {
    margin: 0;
    font-size: 13px;
    color: #3a3a3a;
    line-height: 1.7;
    padding: 10px 12px;
    background: rgba(91, 191, 99, 0.06);
    border-left: 3px solid var(--hc-green);
    border-radius: 0 6px 6px 0;
}

.estimate-ai-result__summary {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--hc-muted);
    line-height: 1.55;
}

.estimate-ai-result__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.estimate-ai-result__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.estimate-ai-result__metric span {
    font-size: 11px;
    font-weight: 600;
    color: var(--hc-muted);
    letter-spacing: 0.02em;
}

.estimate-ai-result__metric strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--hc-text);
    letter-spacing: -0.02em;
}

.estimate-ai-result__price-reason {
    margin: 0 0 16px;
    font-size: 12px;
    color: var(--hc-muted);
    line-height: 1.6;
    border-left: 2px solid rgba(91, 191, 99, 0.4);
    padding-left: 10px;
}

.estimate-ai-result__method {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hc-text);
}

.estimate-ai-result__breakdown {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.estimate-breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 12px;
}

.estimate-breakdown-row:last-child {
    border-bottom: none;
}

.estimate-breakdown-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.015);
}

.estimate-breakdown-row__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.estimate-breakdown-row strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--hc-green);
}

.estimate-breakdown-row__header > span {
    font-size: 11px;
    font-weight: 600;
    color: var(--hc-muted);
    white-space: nowrap;
}

.estimate-breakdown-row > p {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.estimate-ai-result__lists {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.estimate-ai-list {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.estimate-ai-list--caution {
    background: rgba(255, 179, 0, 0.06);
    border-color: rgba(255, 179, 0, 0.25);
}

.estimate-ai-list--tip {
    background: rgba(91, 191, 99, 0.06);
    border-color: rgba(91, 191, 99, 0.25);
}

.estimate-ai-list--risk {
    background: rgba(230, 57, 70, 0.04);
    border-color: rgba(230, 57, 70, 0.18);
}

.estimate-ai-list strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--hc-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.estimate-ai-list--caution strong { color: #b37a00; }
.estimate-ai-list--tip strong { color: var(--hc-green); }
.estimate-ai-list--risk strong { color: #c53030; }

.estimate-ai-list ul {
    margin: 0;
    padding: 0 0 0 14px;
    list-style: disc;
}

.estimate-ai-list ul li {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    padding: 2px 0;
}

.estimate-ai-result__note {
    font-size: 12px;
    color: var(--hc-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.estimate-confirm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--hc-green);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.estimate-confirm-btn:hover:not(:disabled) {
    filter: brightness(1.07);
}

.estimate-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .estimate-ai-result__metrics {
        grid-template-columns: 1fr;
    }

    .estimate-breakdown-row {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
    }

    .estimate-breakdown-row em,
    .estimate-breakdown-row small {
        grid-column: 2;
    }
}
