:root {
    color-scheme: light;
    --bg: #f7f8f3;
    --bg-2: #eef2ec;
    --surface: #ffffff;
    --surface-2: #f3f6f0;
    --surface-3: #e9efe6;
    --line: #d8ded2;
    --line-2: #aeb9a8;
    --text: #151815;
    --text-soft: #4b554b;
    --text-muted: #707b70;
    --white: #151815;
    --accent-mint: #174433;
    --accent-mint-2: #22624b;
    --accent-contrast: #ffffff;
    --accent-lilac: #ded8ec;
    --accent-blue: #dbe9f4;
    --accent-peach: #f0d5bf;
    --accent-wash: #edf6ef;
    --surface-hover: #fbfcf8;
    --row-hover: rgba(237, 246, 239, 0.55);
    --warn-bg: #fff8ef;
    --warn-line: #e4c49c;
    --error-bg: #fff2ef;
    --error-line: #d08b7d;
    --focus-ring: rgba(23, 68, 51, 0.28);
    --radius: 8px;
    --shadow: 0 18px 48px rgba(23, 33, 23, 0.10);
    --shadow-soft: 0 10px 28px rgba(23, 33, 23, 0.08);
}

@supports selector(body:has(.success-shell)) {
    body:has(.success-shell) {
        color-scheme: dark;
        --bg: #070807;
        --bg-2: #101310;
        --surface: #121711;
        --surface-2: #181f17;
        --surface-3: #20291f;
        --line: rgba(255, 255, 255, 0.15);
        --line-2: rgba(255, 255, 255, 0.28);
        --text: #f4f7f1;
        --text-soft: #d1d9cf;
        --text-muted: #a5afa2;
        --white: #ffffff;
        --accent-mint: #8df6d7;
        --accent-mint-2: #69dfbd;
        --accent-contrast: #06110f;
        --accent-wash: rgba(141, 246, 215, 0.12);
        --surface-hover: #1a241b;
        --row-hover: rgba(141, 246, 215, 0.08);
        --warn-bg: rgba(240, 213, 191, 0.12);
        --warn-line: rgba(240, 213, 191, 0.42);
        --error-bg: rgba(208, 139, 125, 0.12);
        --error-line: rgba(208, 139, 125, 0.48);
        --focus-ring: rgba(141, 246, 215, 0.36);
        --shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
        --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.26);
    }

    body:has(.success-shell) .site-header {
        background: rgba(7, 8, 7, 0.82);
    }

    body:has(.success-shell) .nav-tab,
    body:has(.success-shell) .logo:hover {
        background: rgba(255, 255, 255, 0.07);
    }

    body:has(.success-shell) .success-card h1 {
        font-size: 3.45rem;
        max-width: 11ch;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--surface-hover) 0%, var(--bg) 48%, var(--bg-2) 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent-blue);
    color: var(--text);
}

img,
svg,
video {
    max-width: 100%;
}

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

button,
summary {
    cursor: pointer;
}

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

p a,
li a,
td a,
.faq a {
    color: var(--accent-mint);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 248, 243, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
    width: min(1280px, calc(100% - 24px));
    min-height: 68px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.logo:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.48);
}

.nav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-tab:hover,
.nav-tab.active {
    border-color: var(--line-2);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 5px 16px rgba(23, 33, 23, 0.06);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--accent-mint);
    background: var(--accent-mint);
    color: var(--accent-contrast);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(23, 68, 51, 0.16);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.header-cta:hover {
    background: var(--accent-mint-2);
    border-color: var(--accent-mint-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(23, 68, 51, 0.22);
}

main {
    padding-bottom: 44px;
}

.section {
    padding: clamp(44px, 7vw, 72px) 0;
    scroll-margin-top: 92px;
}

.section + .section {
    padding-top: clamp(22px, 4vw, 40px);
}

main > .section:only-child {
    min-height: min(720px, 100vh);
    display: grid;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--line);
    background: var(--accent-wash);
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--accent-mint);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero {
    padding-top: clamp(52px, 7vw, 82px);
}

.site-header + main .hero {
    padding-top: clamp(42px, 6vw, 68px);
}

.hero-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 42px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: clamp(18px, 3vw, 30px);
    align-items: stretch;
}

h1,
h2,
h3,
h4 {
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    line-height: 1.12;
    text-wrap: balance;
}

h1 {
    margin: 14px 0 12px;
    font-size: 3.75rem;
    line-height: 1.04;
}

h2 {
    font-size: 2.35rem;
}

h3 {
    font-size: 1.12rem;
}

h4 {
    font-size: 1rem;
}

p {
    color: var(--text-soft);
}

p + p {
    margin-top: 0.85em;
}

strong {
    color: var(--white);
    font-weight: 800;
}

ul,
ol {
    color: var(--text-soft);
}

li + li {
    margin-top: 0.35em;
}

.lead {
    max-width: 72ch;
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.68;
}

.section-head {
    max-width: 820px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin-top: 12px;
}

.section-head p {
    max-width: 78ch;
    margin-top: 10px;
}

.center-cta {
    max-width: 760px;
    text-align: center;
}

.center-cta .pill,
.center-cta .cta-row {
    margin-inline: auto;
    justify-content: center;
}

.center-cta h2 {
    margin-top: 12px;
}

.center-cta p {
    margin-top: 10px;
}

.hero-metrics {
    display: grid;
    align-content: start;
    gap: 11px;
}

.metric {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 13px 14px;
}

.metric-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.25;
}

.metric-value {
    margin-top: 5px;
    color: var(--white);
    font-size: 1.04rem;
    font-weight: 900;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    padding: 11px 15px;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    border-color: var(--line-2);
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn.primary {
    border-color: var(--accent-mint);
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-2));
    color: var(--accent-contrast);
    box-shadow: 0 12px 28px rgba(23, 68, 51, 0.18);
}

.btn.primary:hover {
    border-color: var(--accent-mint-2);
    background: var(--accent-mint-2);
}

.btn:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

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

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

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

.card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 19px;
    box-shadow: 0 1px 0 rgba(23, 33, 23, 0.04);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    border-color: var(--line-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.card h2 {
    font-size: 1.55rem;
}

.card h3,
.card h4,
.card h2 {
    margin-bottom: 9px;
}

.card p,
.card li {
    color: var(--text-soft);
    font-size: 0.96rem;
}

.card ul,
.card ol,
.list {
    padding-left: 18px;
    margin-top: 10px;
}

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

.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: auto;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(23, 33, 23, 0.04);
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

th {
    color: var(--white);
    background: var(--surface-2);
    font-weight: 900;
}

td {
    color: var(--text-soft);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: var(--row-hover);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 14px 15px;
    box-shadow: 0 1px 0 rgba(23, 33, 23, 0.04);
}

.faq details[open] {
    border-color: var(--line-2);
}

.faq summary {
    color: var(--white);
    font-weight: 900;
}

.faq p {
    margin-top: 9px;
}

.media-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 0 rgba(23, 33, 23, 0.04);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.media-card:hover {
    border-color: var(--line-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.media-card > a {
    display: block;
    width: 100%;
}

.media-card img {
    width: min(100%, 300px);
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius);
    border: 1px solid rgba(23, 33, 23, 0.12);
    box-shadow: 0 14px 34px rgba(23, 33, 23, 0.16);
    display: block;
    margin-inline: auto;
}

.media-card p {
    width: 100%;
    max-width: 320px;
    margin: 12px auto 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

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

.search-link {
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 11px 12px;
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.91rem;
    line-height: 1.25;
    display: flex;
    align-items: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.search-link:hover {
    border-color: var(--line-2);
    background: var(--surface-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding: 26px 0 38px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--white);
}

.feedback-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    border: 1px solid var(--accent-mint);
    background: var(--accent-mint);
    color: var(--accent-contrast);
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: var(--shadow);
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.feedback-fab:hover {
    background: var(--accent-mint-2);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(23, 68, 51, 0.24);
}

.form-grid {
    display: grid;
    gap: 12px;
}

label {
    color: var(--text);
    font-weight: 800;
    font-size: 0.88rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--line-2);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-mint);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.2;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.status-chip.ok {
    border-color: rgba(23, 68, 51, 0.34);
    background: var(--accent-wash);
    color: var(--accent-mint);
}

.status-chip.warn {
    border-color: var(--warn-line);
    background: var(--warn-bg);
}

.form-status {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-soft);
    padding: 11px 12px;
    font-size: 0.9rem;
    display: none;
}

.form-status.ok,
.form-status.warn,
.form-status.error {
    display: block;
}

.form-status.ok {
    border-color: rgba(23, 68, 51, 0.32);
    background: var(--accent-wash);
}

.form-status.error {
    border-color: var(--error-line);
    background: var(--error-bg);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 1060px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 860px) {
    .container {
        width: min(720px, calc(100% - 28px));
    }

    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 9px;
        padding: 9px 0 10px;
    }

    .logo {
        min-height: 36px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 1px 2px 4px;
        scrollbar-width: none;
    }

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

    .nav-tab {
        flex: 0 0 auto;
    }

    .header-cta {
        margin-left: 0;
    }

    .section {
        padding: 44px 0;
    }

    .hero {
        padding-top: 38px;
    }

    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .split,
    .search-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .feedback-fab {
        display: none;
    }

    @supports selector(body:has(.success-shell)) {
        body:has(.success-shell) .success-card h1 {
            font-size: 2.65rem;
        }
    }
}

@media (max-width: 560px) {
    .container {
        width: min(520px, calc(100% - 24px));
    }

    main {
        padding-bottom: 28px;
    }

    main > .section:only-child {
        min-height: 100vh;
    }

    .hero-shell,
    .card,
    .media-card {
        padding: 18px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2,
    .card h2 {
        font-size: 1.55rem;
    }

    .lead {
        font-size: 1rem;
    }

    .cta-row {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-row .btn,
    .cta-row button {
        width: 100%;
    }

    .search-link {
        min-height: 46px;
    }

    table {
        min-width: 560px;
    }

    @supports selector(body:has(.success-shell)) {
        body:has(.success-shell) .success-card h1 {
            font-size: 2.2rem;
        }
    }
}
