:root {
    color-scheme: light;
    --bg: #ffffff;
    --text: #09090b;
    --body: #303439;
    --muted: #7a8087;
    --line: #dfe2e5;
    --soft-line: #edeef1;
    --accent: #780512;
    --max: 1312px;
    --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 var(--sans);
    letter-spacing: 0;
}

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

a:hover { color: var(--accent); }

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

.site-header {
    width: min(var(--max), calc(100% - 48px));
    min-height: 97px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.button,
button,
.pill {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--text);
    border-radius: 999px;
    padding: 0 28px;
    background: var(--text);
    color: #fff;
    font: 700 14px/1.05 var(--sans);
    cursor: pointer;
    white-space: nowrap;
}

.button.secondary,
.pill {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}

.pill {
    min-height: 36px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.pill.active,
.pill.compact {
    border-color: var(--text);
    color: var(--text);
}

.button.compact {
    min-height: 46px;
    padding-inline: 24px;
}

.pill.compact {
    min-height: 36px;
}

.menu {
    position: relative;
}

.menu summary {
    list-style: none;
}

.menu summary::-webkit-details-marker {
    display: none;
}

.menu-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 18px);
    right: 0;
    width: min(680px, calc(100vw - 48px));
    padding: 34px 40px 44px;
    background: #fff;
    border: 1px solid var(--soft-line);
    border-radius: 30px;
    box-shadow: 0 24px 80px rgb(9 9 11 / 10%);
}

.menu-panel a {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 44px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.menu-panel strong {
    font-size: 32px;
    line-height: 1.05;
}

.menu-panel span {
    align-self: center;
    color: var(--muted);
    font-size: 16px;
}

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

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(320px, 454px);
    justify-content: space-between;
    gap: 56px;
    padding: 56px 0 96px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 80px;
}

.home-hero h1,
.page-hero h1 {
    max-width: 980px;
    font-size: clamp(58px, 7vw, 86px);
    line-height: 1.02;
    font-weight: 800;
}

.home-hero .lead {
    max-width: 660px;
    margin-top: 36px;
    color: #380106;
    font-size: 28px;
    line-height: 1.3;
}

.hero-logo {
    width: min(454px, 100%);
    align-self: start;
    margin-top: 0;
    object-fit: cover;
}

.mini-stats {
    display: flex;
    gap: 64px;
    margin-top: 78px;
}

.mini-stats span,
.stat-strip span,
.section-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.section-label {
    color: var(--accent);
    margin-bottom: 36px;
}

.mini-stats strong {
    display: block;
    margin-top: 14px;
    font-size: 34px;
    line-height: 1;
}

.home-system {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(360px, 538px);
    justify-content: space-between;
    gap: 56px;
    padding: 80px 0 126px;
}

.home-system > div:first-child {
    align-self: end;
    color: var(--body);
    font-size: 20px;
    line-height: 1.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

.process-panel,
.panel,
.card {
    border: 1px solid var(--soft-line);
    border-radius: 30px;
    background: #fff;
}

.process-panel {
    padding: 32px 34px 0;
    min-height: 478px;
}

.process-panel .section-label {
    margin-bottom: 24px;
}

.process-panel h2 {
    font-size: 38px;
    line-height: 1.05;
}

.muted,
.meta {
    color: var(--muted);
}

.process-panel .muted {
    margin-top: 8px;
    font-size: 18px;
}

.process-list {
    margin-top: 32px;
    border-top: 1px solid var(--soft-line);
}

.process-list div {
    min-height: 70px;
    display: grid;
    grid-template-columns: 40px 1fr 130px;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--soft-line);
}

.process-list span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.process-list strong {
    font-size: 20px;
    line-height: 1.2;
}

.process-list em {
    color: var(--muted);
    font: 400 15px/1.2 var(--serif);
    font-style: normal;
}

.process-list div:nth-child(-n + 2) em {
    color: var(--accent);
}

.stat-strip {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1.1fr 1.35fr;
    gap: 64px;
    padding: 56px 0 70px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-strip strong {
    display: block;
    margin-top: 30px;
    font-size: clamp(40px, 4.4vw, 56px);
    line-height: 1;
}

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

.line-section {
    border-top: 1px solid var(--line);
}

.stat-strip + .line-section {
    border-top: 0;
}

.poem-row,
.row {
    min-height: 144px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 220px 140px 96px;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.numbered .poem-row {
    min-height: 178px;
    grid-template-columns: 50px minmax(340px, 1fr) 220px 140px 96px;
}

.poem-row h2,
.poem-row h3,
.row h2 {
    font: 700 38px/1.05 var(--serif);
}

.line-section:not(.numbered) .poem-row h3 {
    font-size: 32px;
}

.poem-row p,
.row p {
    color: var(--muted);
}

.poem-row span,
.poem-row em {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    font-style: normal;
}

.page-hero {
    padding: 74px 0 88px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(52px, 6vw, 78px);
}

.lead-text {
    max-width: 650px;
    margin-top: 26px;
    color: var(--body);
    font-size: 20px;
    line-height: 1.55;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 76px;
    padding: 40px 0 120px;
}

.panel {
    min-height: 250px;
    padding: 30px 32px;
}

.panel h2 {
    font-size: 32px;
    line-height: 1.05;
}

.panel p {
    margin-top: 26px;
    color: var(--body);
    font-size: 17px;
    line-height: 1.45;
}

.form-page {
    max-width: 1026px;
    padding: 72px 0 112px;
}

.modern-form form,
.form-page > form {
    display: grid;
    gap: 0;
}

.modern-form form > div,
.form-page > form > div,
.modern-form form > label {
    display: grid;
    grid-template-columns: 190px minmax(0, 760px);
    gap: 76px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.modern-form form > div:has(button),
.form-page > form > div:has(button),
form > .actions {
    grid-template-columns: 190px minmax(0, 760px);
    border-bottom: 0;
    padding-top: 54px;
}

input,
textarea,
select {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0 0 20px;
    background: transparent;
    color: var(--text);
    font: 400 42px/1.25 var(--serif);
    outline: none;
    letter-spacing: 0;
}

textarea {
    min-height: 150px;
    resize: vertical;
    font: 400 28px/1.35 var(--sans);
    color: var(--body);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--text);
}

input[type="hidden"],
.modern-form form > div:has(input[type="hidden"]),
.form-page > form > div:has(input[type="hidden"]) {
    display: none;
}

.modern-form form > div > label,
.form-page > form > div > label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.modern-form form > label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.form-page .checkbox,
.form-page form > div:has(input[type="checkbox"]) {
    grid-template-columns: 190px minmax(0, 760px);
}

.form-page form > div:has(input[type="checkbox"]) label {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    padding: 0;
    border: 0;
    color: var(--body);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.content,
.poem {
    max-width: 900px;
    padding: 74px 0 112px;
}

.content h1,
.poem h1 {
    font-size: clamp(52px, 6vw, 78px);
    line-height: 1.02;
}

.content p {
    margin-top: 24px;
    color: var(--body);
    font-size: 20px;
    line-height: 1.55;
}

.poem .kicker {
    color: var(--accent);
    margin-bottom: 34px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.poem-detail {
    max-width: 980px;
    padding: 74px 0 112px;
}

.poem-detail h1 {
    max-width: 980px;
    font-size: clamp(58px, 7vw, 86px);
    line-height: 1.02;
    font-weight: 800;
}

.poem-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 16px;
}

.poem-detail pre,
.poem pre {
    margin: 56px 0 0;
    white-space: pre-wrap;
    font: 400 30px/1.45 var(--serif);
    color: var(--text);
}

.poem-detail form {
    margin-top: 54px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 386px) minmax(260px, 386px) minmax(260px, 386px);
    gap: 76px;
    padding: 74px 0 96px;
    border-bottom: 1px solid var(--line);
}

.profile-identity h2 {
    font-size: 56px;
    line-height: 1;
}

.profile-identity p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 20px;
}

.profile-identity .button {
    margin-top: 50px;
}

.profile-action-row {
    display: grid;
    grid-template-columns: minmax(0, 650px) 1fr;
    gap: 32px;
    align-items: start;
    padding: 76px 0 126px;
    border-bottom: 1px solid var(--line);
}

.profile-action-row p {
    color: var(--body);
    font-size: 20px;
    line-height: 1.55;
}

.profile-action-row .actions {
    justify-content: end;
    margin-top: 0;
}

.moderation-list {
    display: grid;
    gap: 60px;
    padding: 70px 0 120px;
}

.moderation-item {
    border-top: 1px solid var(--line);
    padding-top: 54px;
}

.moderation-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
}

.moderation-head .section-label {
    margin-bottom: 20px;
}

.moderation-head h2 {
    font: 700 42px/1.05 var(--serif);
}

.moderation-head p:not(.section-label) {
    margin-top: 14px;
    color: var(--muted);
}

.moderation-item pre {
    margin: 42px 0 0;
    padding: 34px 0;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
    white-space: pre-wrap;
    color: var(--body);
    font: 400 24px/1.45 var(--serif);
}

.moderation-form {
    margin-top: 30px;
}

.moderation-form label {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    padding: 26px 0;
    border-bottom: 1px solid var(--soft-line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.moderation-form textarea {
    min-height: 96px;
    font-size: 20px;
}

.ea-modern-admin {
    max-width: 900px;
}

.ea-modern-admin h1 {
    font-size: 64px;
    line-height: 1.02;
    margin-bottom: 28px;
}

.ea-modern-admin p:not(.section-label) {
    color: var(--body);
    font-size: 20px;
    line-height: 1.55;
}

.ea-modern-admin form {
    margin-top: 36px;
}

.grid,
.list {
    display: grid;
    gap: 24px;
}

.card {
    padding: 30px 32px;
}

.card h2,
.card h3 {
    font-size: 32px;
    line-height: 1.05;
}

.card p {
    margin-top: 20px;
    color: var(--body);
}

.rating {
    display: grid;
    gap: 0;
    padding: 0;
    list-style-position: inside;
    border-top: 1px solid var(--line);
}

.rating li {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    font: 700 30px/1.1 var(--serif);
}

.error {
    margin-bottom: 24px;
    color: var(--accent);
}

.site-footer {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.footer-grid {
    min-height: 150px;
    display: grid;
    grid-template-columns: 160px 260px 200px 1fr;
    gap: 98px;
    align-items: center;
}

.footer-grid strong {
    font-size: 20px;
}

.footer-grid span,
.footer-grid a {
    color: var(--muted);
}

@media (max-width: 900px) {
    .site-header,
    .page,
    .site-footer {
        width: min(100% - 48px, var(--max));
    }

    .site-header {
        min-height: 89px;
    }

    .top-actions .pill,
    .top-actions .button:not(.secondary) {
        display: none;
    }

    .menu-panel {
        position: fixed;
        inset: 18px 24px auto 24px;
        width: auto;
        padding: 24px 32px;
    }

    .menu-panel a {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
    }

    .menu-panel strong {
        font-size: 28px;
    }

    .home-hero {
        display: flex;
        flex-direction: column;
        padding: 38px 0 72px;
        gap: 40px;
    }

    .home-hero .pills .pill:not(:first-child) {
        display: none;
    }

    .pills {
        margin-bottom: 34px;
    }

    .hero-logo {
        order: -1;
        width: min(314px, 100%);
        align-self: center;
        margin-top: 28px;
    }

    .home-hero h1,
    .page-hero h1 {
        font-size: clamp(50px, 15vw, 72px);
    }

    .home-hero .lead {
        font-size: 22px;
        margin-top: 24px;
    }

    .mini-stats {
        display: grid;
        gap: 34px;
        margin-top: 62px;
    }

    .home-system {
        grid-template-columns: 1fr;
        padding: 44px 0 74px;
    }

    .process-panel {
        padding: 28px 24px 0;
    }

    .process-list div {
        grid-template-columns: 34px 1fr;
    }

    .process-list em {
        grid-column: 2;
    }

    .stat-strip,
    .panel-grid,
    .profile-grid,
    .profile-action-row,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .poem-row,
    .numbered .poem-row,
    .row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 32px 0;
    }

    .poem-row h2,
    .poem-row h3,
    .row h2 {
        font-size: 34px;
    }

    .profile-action-row .actions {
        justify-content: flex-start;
    }

    .moderation-head {
        grid-template-columns: 1fr;
    }

    .moderation-form label {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modern-form form > div,
    .form-page > form > div,
    .modern-form form > label,
    .modern-form form > div:has(button),
    .form-page > form > div:has(button),
    form > .actions {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    input {
        font-size: 34px;
    }

    textarea {
        font-size: 22px;
    }
}
