:root {
    --ink: #18201f;
    --muted: #66706c;
    --line: #d9e1dc;
    --paper: #ffffff;
    --soft: #f4f7f2;
    --mint: #0f8f72;
    --mint-dark: #086650;
    --coral: #ec6a48;
    --amber: #f2b84b;
    --blue: #3578c8;
    --shadow: 0 18px 45px rgba(25, 36, 32, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 14px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(217, 225, 220, .8);
    backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.tag-row,
.footer-links {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
}

.nav-links {
    gap: clamp(14px, 3vw, 34px);
    color: var(--muted);
    font-size: 15px;
}

.nav-links a:hover,
.text-link:hover {
    color: var(--mint-dark);
}

.header-action,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.header-action,
.btn.primary {
    color: #fff;
    background: var(--mint);
}

.header-action:hover,
.btn.primary:hover {
    background: var(--mint-dark);
}

.btn.secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.btn.wide {
    width: 100%;
}

.hero {
    min-height: 640px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 28, 26, .88), rgba(15, 28, 26, .54)),
        url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .58fr);
    align-items: end;
    gap: 48px;
    min-height: 640px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px 54px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--mint-dark);
    font-size: 13px;
    font-weight: 800;
}

.hero .eyebrow {
    color: #bff3df;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: 76px;
    line-height: 1.05;
}

h2 {
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.18;
}

h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.hero p,
.page-hero p,
.profile-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

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

.hero-panel {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    backdrop-filter: blur(18px);
}

.hero-panel div,
.profile-stats div {
    display: grid;
    gap: 4px;
    padding: 18px;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.hero-panel strong,
.profile-stats strong {
    font-size: 30px;
    line-height: 1;
}

.hero-panel span,
.profile-stats span {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 24px;
}

.band {
    max-width: none;
    padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
    padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
    background: #fff;
}

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

.section-head.stacked {
    display: block;
    margin-bottom: 14px;
}

.small-gap {
    margin-top: 34px;
}

.text-link {
    color: var(--mint);
    font-weight: 800;
}

.steps,
.editor-grid,
.portfolio-grid {
    display: grid;
    gap: 20px;
}

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

.steps div,
.editor-card,
.portfolio-card,
.quote-panel,
.brief-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.band .steps div,
.band .editor-card,
.band .portfolio-card {
    background: var(--soft);
}

.steps div {
    padding: 26px;
}

.steps span {
    color: var(--coral);
    font-weight: 900;
}

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

.editor-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 288px;
    padding: 20px;
}

.editor-card-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.avatar.large {
    width: 104px;
    height: 104px;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--mint), var(--blue));
    font-weight: 900;
}

.editor-card-copy {
    min-width: 0;
}

.editor-name,
.editor-meta {
    display: block;
}

.editor-name {
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-meta,
.editor-card p,
.portfolio-card p,
.quote-panel p,
.site-footer p {
    color: var(--muted);
}

.badge,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    background: #e7f4ef;
    color: var(--mint-dark);
}

.badge.verified {
    color: #7a4b00;
    background: #fff1cb;
}

.tag-row {
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row.spacious {
    gap: 10px;
}

.card-foot,
.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.card-foot a {
    color: var(--mint);
    font-weight: 800;
}

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

.portfolio-card {
    overflow: hidden;
}

.portfolio-card img,
.portfolio-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: linear-gradient(135deg, #213a34, #0f8f72 55%, #f2b84b);
}

.portfolio-card > div:last-child {
    padding: 18px;
}

.portfolio-cover {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 56px;
    font-weight: 900;
}

.page-hero,
.profile-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 24px 42px;
}

.page-hero.compact,
.profile-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.page-hero h1,
.profile-hero h1 {
    margin-bottom: 10px;
    font-size: 58px;
}

.page-hero p,
.profile-hero p {
    color: var(--muted);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(160px, .9fr) auto auto auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(15, 143, 114, .18);
    border-color: var(--mint);
}

.check-line {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    min-height: 44px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.pager {
    margin-top: 28px;
}

.profile-hero {
    align-items: center;
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 10px;
    min-width: 330px;
    color: #fff;
}

.profile-stats div {
    background: var(--ink);
}

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

.quote-panel {
    padding: 24px;
}

.price-line strong {
    color: var(--ink);
}

.form-shell {
    max-width: 980px;
}

.brief-form {
    padding: 24px;
}

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

.full-field,
.hint-block {
    margin-top: 18px;
}

label em {
    color: #b42318;
    font-style: normal;
    font-size: 13px;
}

.hint-block {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.notice.success {
    color: #07503f;
    background: #dff5ed;
}

.notice.danger {
    color: #912018;
    background: #fee4e2;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 8px;
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(20px, 5vw, 72px);
    color: #dfe9e5;
    background: #18201f;
}

.site-footer p {
    margin-bottom: 0;
    color: #aebbb6;
}

.footer-links {
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .site-header {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .header-action {
        margin-left: auto;
    }

    .hero-inner,
    .steps,
    .editor-grid,
    .portfolio-grid,
    .split,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero,
    .hero-inner {
        min-height: 560px;
    }

    h1,
    .page-hero h1,
    .profile-hero h1 {
        font-size: 54px;
    }

    .page-hero.compact,
    .profile-hero,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-stats {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .brand {
        width: 100%;
    }

    .header-action {
        width: 100%;
    }

    .hero-inner {
        padding-top: 64px;
    }

    h1 {
        font-size: 40px;
    }

    .page-hero h1,
    .profile-hero h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .section {
        padding-top: 52px;
        padding-bottom: 52px;
    }

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

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