@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    color-scheme: light;
    --bg: #fbf5ee;
    --surface: #fffdf9;
    --surface-strong: #ffffff;
    --text: #1c1512;
    --muted: #70625c;
    --soft: #9b8d86;
    --line: #eaded5;
    --line-strong: #dcc8bd;
    --red: #d31325;
    --red-dark: #990914;
    --red-soft: #fff0f1;
    --shadow: 0 12px 26px rgba(134, 65, 48, 0.08);
    --font-heading: "Golos Text", "Manrope", "Segoe UI", Arial, sans-serif;
    --font-body: "Manrope", "Golos Text", "Segoe UI", Arial, sans-serif;
    --font-button: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(234, 222, 213, 0.78);
    background: rgba(251, 245, 238, 0.93);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-link img {
    display: block;
    width: 164px;
    height: auto;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-nav a {
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--muted);
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease;
}

.header-nav a:hover {
    background: var(--surface);
    color: var(--text);
}

.header-nav a:active {
    background: #f1e5db;
}

.hero-section {
    padding: 112px 0 92px;
}

.hero-inner {
    max-width: 860px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 22px;
    font-family: var(--font-heading);
    font-size: 68px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.01;
}

h2 {
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.hero-text {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.58;
}

.section {
    padding: 76px 0;
}

.section-heading {
    max-width: 520px;
}

.section-heading p:not(.eyebrow) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.process-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.56);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    min-height: 116px;
    padding-top: 20px;
    border-top: 1px solid rgba(211, 19, 37, 0.72);
}

.process-list span {
    display: block;
    margin-bottom: 20px;
    color: #aa9288;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
}

.process-list strong {
    display: block;
    max-width: 260px;
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.22;
}

.topics-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 52px;
    align-items: start;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.68);
    padding: 10px 14px;
    color: #463b36;
    font-size: 15px;
    font-weight: 600;
}

.order-section,
.reviews-section {
    background: var(--surface);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.74fr 1.26fr;
    gap: 64px;
    align-items: start;
}

.sticky-copy {
    position: sticky;
    top: 126px;
}

.request-form,
.request-success,
.calculator-mock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-strong);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-field {
    display: grid;
    gap: 8px;
    color: #342a26;
    font-size: 14px;
    font-weight: 700;
}

.field-errors {
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 600;
}

.form-field-wide,
.form-actions,
.mock-question,
.mock-options,
.price-result {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #fffefa;
    color: var(--text);
    padding: 13px 15px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

input[type="file"] {
    padding: 11px 13px;
    color: var(--muted);
}

input::placeholder,
textarea::placeholder {
    color: #a99b93;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(211, 19, 37, 0.10);
}

.request-success h3 {
    margin: 0 0 26px;
    font-family: var(--font-heading);
    font-size: 30px;
    line-height: 1.15;
}

.request-success dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 26px;
}

.request-success dt {
    margin-bottom: 6px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 700;
}

.request-success dd {
    margin: 0;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.request-success p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

.request-success h3,
.request-success dl,
.request-success p,
.request-success .form-actions {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    border: 1px solid transparent;
    font-family: var(--font-button);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button-primary {
    border-color: #ba0d1c;
    background: linear-gradient(180deg, #e51b2e 0%, var(--red) 100%);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(211, 19, 37, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.button-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ec2235 0%, #c90f20 100%);
    box-shadow: 0 13px 22px rgba(211, 19, 37, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:active {
    transform: translateY(0);
    background: var(--red-dark);
    box-shadow: 0 6px 12px rgba(211, 19, 37, 0.18);
}

.button-secondary {
    border-color: var(--line-strong);
    background: #fffefa;
    color: var(--text);
}

.button-secondary:hover {
    border-color: #c7afa3;
    background: #fff8f2;
    transform: translateY(-1px);
}

.button-secondary:active {
    transform: translateY(0);
    background: #f4e8df;
}

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

.calculator-mock {
    display: block;
}

.calculator-widget {
    display: grid;
    gap: 16px;
}

.mock-question {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
}

.calculator-widget .mock-question {
    margin-bottom: 0;
}

.calculator-progress {
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.mock-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mock-options button {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fffefa;
    color: #40342f;
    padding: 10px 14px;
    font-family: var(--font-button);
    font-size: 14px;
    font-weight: 700;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.mock-options button:hover {
    border-color: rgba(211, 19, 37, 0.42);
    background: var(--red-soft);
    color: var(--red-dark);
}

.mock-options button:active {
    background: #ffe4e7;
}

.mock-options button.is-selected {
    border-color: #ba0d1c;
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(211, 19, 37, 0.20);
}

.mock-options button.is-selected:hover {
    border-color: #ba0d1c;
    background: #c90f20;
    color: #ffffff;
}

.calculator-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-column: 1 / -1;
    gap: 10px;
}

.calculator-actions .button {
    width: auto;
    min-height: 44px;
    padding: 10px 18px;
    flex: 0 0 auto;
}

.calculator-price-feedback {
    display: grid;
    gap: 16px;
    grid-column: 1 / -1;
}

.calculator-price-feedback .mock-question {
    font-size: 20px;
}

.calculator-manual-field {
    margin-top: 4px;
}

.calculator-budget-field {
    margin-top: 0;
}

.calculator-budget-note {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.calculator-order-note {
    border-radius: 16px;
    background: var(--red-soft);
    color: var(--red-dark);
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
}

.price-result {
    margin-top: 4px;
    border-radius: 20px;
    border: 1px solid rgba(211, 19, 37, 0.28);
    background: var(--red-soft);
    padding: 22px 24px;
    color: var(--red-dark);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

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

.reviews-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
    align-items: end;
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

blockquote {
    margin: 0;
    border-top: 1px solid rgba(211, 19, 37, 0.72);
    padding-top: 20px;
}

blockquote p {
    margin-bottom: 18px;
    color: #3f332e;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
}

cite {
    color: var(--soft);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.status-section {
    min-height: calc(100vh - 88px);
}

.status-layout {
    display: grid;
    grid-template-columns: 0.74fr 1.26fr;
    gap: 64px;
    align-items: start;
}

.status-layout h1 {
    margin-bottom: 18px;
    font-size: 54px;
}

.status-stack {
    display: grid;
    gap: 24px;
}

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

.status-error {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 16px;
    background: var(--red-soft);
    color: var(--red-dark);
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
}

.status-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-strong);
    padding: 30px;
    box-shadow: var(--shadow);
}

.status-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.status-card-head h2 {
    font-size: 32px;
}

.status-card-head span {
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red-dark);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.order-detail-list {
    display: grid;
    gap: 18px;
    margin: 0;
}

.order-detail-list div {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.order-detail-list dt {
    margin-bottom: 6px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.order-detail-list dd {
    margin: 0;
    color: #3f332e;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.file-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.file-list a {
    color: var(--red-dark);
    font-weight: 700;
}

.message-card .status-card-head {
    margin-bottom: 18px;
}

.message-hint,
.message-empty,
.message-success {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.message-success {
    grid-column: 1 / -1;
    border-radius: 16px;
    background: #f2f7ed;
    color: #35531f;
    padding: 14px 16px;
    font-weight: 700;
}

.message-timeline {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.message-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fffefa;
    padding: 16px;
}

.message-item-admin {
    border-color: rgba(211, 19, 37, 0.22);
    background: var(--red-soft);
}

.message-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.message-meta span {
    color: var(--text);
}

.message-item p {
    margin: 0;
    color: #3f332e;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.message-file {
    display: inline-flex;
    margin-top: 10px;
    color: var(--red-dark);
    font-size: 15px;
    font-weight: 800;
}

.message-form {
    grid-template-columns: 1fr;
    border-radius: 20px;
    padding: 24px;
}

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 1120px);
    }

    .header-inner {
        min-height: 78px;
        gap: 18px;
    }

    .logo-link img {
        width: 132px;
        height: auto;
    }

    .header-nav {
        gap: 4px;
    }

    .header-nav a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .hero-section {
        padding: 72px 0 64px;
    }

    h1 {
        font-size: 46px;
        line-height: 1.07;
    }

    h2 {
        font-size: 31px;
    }

    .hero-text {
        font-size: 18px;
        line-height: 1.58;
    }

    .section {
        padding: 56px 0;
    }

    .process-list,
    .topics-layout,
    .split-layout,
    .status-layout,
    .reviews-head,
    .review-list {
        grid-template-columns: 1fr;
    }

    .process-list {
        gap: 18px;
    }

    .process-list li {
        min-height: auto;
        padding-top: 18px;
    }

    .sticky-copy {
        position: static;
    }

    .split-layout,
    .topics-layout,
    .status-layout {
        gap: 32px;
    }

    .status-layout h1 {
        font-size: 42px;
    }

    .review-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner {
        display: grid;
        justify-items: center;
        padding: 14px 0 16px;
    }

    .header-nav {
        justify-content: center;
    }

    h1 {
        font-size: 38px;
    }

    .request-form {
        grid-template-columns: 1fr;
    }

    .request-form,
    .request-success,
    .calculator-mock {
        border-radius: 20px;
        padding: 22px;
    }

    .request-success dl {
        grid-template-columns: 1fr;
    }

    .status-form {
        grid-template-columns: 1fr;
    }

    .status-card-head {
        display: grid;
    }

    .button,
    .review-actions .button {
        width: 100%;
    }

    .calculator-actions .button {
        width: auto;
    }

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

    .mock-options button {
        justify-content: flex-start;
        text-align: left;
    }

    .price-result {
        font-size: 19px;
    }
}

.last-order-panel,
.access-recovery {
    border-top: 1px solid var(--line-strong);
    padding-top: 18px;
}

.last-order-panel {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.last-order-panel p {
    margin: 0;
    font-size: 15px;
}

.last-order-panel strong {
    color: var(--text);
    font-weight: 800;
}

.text-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--red-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(153, 9, 20, 0.35);
    text-underline-offset: 4px;
}

.text-button:hover {
    color: var(--red);
    text-decoration-color: currentColor;
}

.text-button:focus-visible {
    outline: 3px solid rgba(211, 19, 37, 0.18);
    outline-offset: 4px;
}

.access-recovery {
    display: grid;
    gap: 16px;
}

.access-recovery-form {
    max-width: 560px;
    border-radius: 16px;
    background: var(--surface);
    padding: 20px;
}

.access-recovery-form > p:first-child {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
}

.access-recovery-form form {
    display: grid;
    gap: 16px;
}

.access-recovery-form .form-actions {
    padding-top: 0;
}

.access-recovery-note {
    margin: 0;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.5;
}

.copy-order-access-status {
    align-self: center;
    color: #35531f;
    font-size: 14px;
    font-weight: 700;
}

.request-success-actions {
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .last-order-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-success-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .copy-order-access-status {
        align-self: flex-start;
    }
}
