:root {
    --text: #172033;
    --muted: #657187;
    --border: #dce2ea;
    --accent: #146c5a;
    --accent-strong: #0c5546;
    --accent-soft: #e5f5f0;
    --panel-alt: #f4f7fa;
    --shadow: 0 12px 32px rgba(31, 45, 61, 0.08);
    color-scheme: light;
    font-family: "Manrope", Arial, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f9fc; color: var(--text); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

button,
.header-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid var(--accent);
    border-radius: 7px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

button:hover, .header-action:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button:active, .header-action:active { transform: translateY(1px); }
button svg, .header-action svg { width: 17px; height: 17px; }
.button-secondary { border-color: var(--border); background: #fff; color: var(--text); }
.button-secondary:hover { border-color: #b8c2cf; background: #f1f4f7; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(220, 226, 234, 0.88);
    background: rgba(247, 249, 252, 0.94);
    backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 7px; background: var(--text); color: #fff; }
.brand-mark svg { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: .9rem; font-weight: 600; }
.site-nav > a:not(.header-action):hover { color: var(--accent); }

main, .site-footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: 60px; min-height: 440px; padding: 60px 0 42px; }
.intro-copy { max-width: 700px; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { max-width: 680px; margin-bottom: 20px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.03; letter-spacing: 0; }
.intro-copy > p:not(.eyebrow) { max-width: 660px; margin-bottom: 24px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #425066; font-size: .86rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; height: 17px; color: var(--accent); }

.format-preview { position: relative; display: flex; min-height: 310px; align-items: flex-end; justify-content: center; }
.preview-photo { position: relative; display: grid; place-items: center; overflow: hidden; border: 8px solid #fff; border-radius: 6px; background: #cbd7e2; box-shadow: 0 24px 50px rgba(30, 50, 70, .18); }
.preview-photo span { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 4px; background: rgba(23, 32, 51, .86); color: #fff; font-size: .72rem; font-weight: 800; }
.preview-portrait { width: 210px; aspect-ratio: 3/4; transform: rotate(-3deg); }
.preview-square { width: 180px; aspect-ratio: 1; margin-left: -34px; transform: translateY(-14px) rotate(4deg); background: #dae5dd; }
.preview-face { position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%; background: #8195a7; }
.preview-face::after { position: absolute; top: 75%; left: 50%; width: 170%; height: 150%; border-radius: 50% 50% 0 0; background: #596f82; content: ""; transform: translateX(-50%); }

.tool-section { scroll-margin-top: 88px; padding: 30px 0 54px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .privacy-section h2 { margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-size: .84rem; font-weight: 700; }
.privacy-note svg { width: 18px; }

.steps-section { scroll-margin-top: 88px; padding: 60px 0; border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid article { position: relative; min-height: 210px; padding: 26px; border-left: 3px solid var(--accent); background: #fff; }
.steps-grid article > span { position: absolute; top: 18px; right: 20px; color: #d4dce5; font-size: 2.3rem; font-weight: 800; }
.steps-grid svg { width: 28px; height: 28px; margin-bottom: 32px; color: var(--accent); }
.steps-grid h3 { margin-bottom: 8px; }
.steps-grid p { margin: 0; color: var(--muted); line-height: 1.6; }

.privacy-section { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; align-items: center; margin: 20px 0 80px; padding: 32px; border: 1px solid #bee1d6; border-radius: 8px; background: var(--accent-soft); }
.privacy-section > svg { width: 56px; height: 56px; color: var(--accent); }
.privacy-section p:last-child { max-width: 760px; margin: 10px 0 0; color: var(--muted); line-height: 1.65; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 28px 0 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--text); }
.footer-brand .brand-mark { width: 32px; height: 32px; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; overflow-y: auto; padding: 24px; background: rgba(13, 22, 36, .76); }
.modal-backdrop.is-open { display: grid; }
.modal-card { width: min(980px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border-radius: 8px; background: #f7f9fc; box-shadow: 0 24px 80px rgba(0, 0, 0, .28); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.modal-header h2 { margin-bottom: 4px; }
.modal-close { width: 42px; min-height: 42px; padding: 0; border-color: var(--border); background: #fff; color: var(--text); }
.modal-close:hover { background: #edf1f5; }
.empty-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-icon svg { width: 24px; }

@media (max-width: 800px) {
    .site-nav > a:not(.header-action) { display: none; }
    .intro { grid-template-columns: 1fr; gap: 24px; padding-top: 46px; }
    .format-preview { min-height: 250px; }
    .preview-portrait { width: 170px; }
    .preview-square { width: 145px; }
    .steps-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 560px) {
    .site-header { padding-inline: 16px; }
    .header-action { padding-inline: 11px; font-size: .82rem; }
    main, .site-footer { width: min(100% - 28px, 1180px); }
    .intro { min-height: auto; padding-top: 34px; }
    .intro h1 { font-size: 2.45rem; }
    .format-preview { min-height: 220px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .privacy-section { grid-template-columns: 1fr; padding: 24px; }
    .modal-backdrop { padding: 10px; }
    .modal-card { max-height: calc(100vh - 20px); padding: 16px; }
}
