:root {
    color-scheme: light;
    --page: #f5f1ec;
    --surface: #fffdf9;
    --surface-muted: #ebe8e4;
    --graphite: #262324;
    --graphite-soft: #4f494a;
    --muted: #746d6c;
    --line: #d8d1cc;
    --line-strong: #bfb5af;
    --accent: #7c1f2d;
    --accent-hover: #651722;
    --accent-active: #501019;
    --accent-soft: #f4e7e8;
    --error: #8e1726;
    --success-soft: #edf3e9;
    --success: #304e28;
    --font-display: Georgia, Cambria, "Times New Roman", serif;
    --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    --text-body: 16px;
    --text-secondary: 14px;
    --text-action: 15px;
    --leading-body: 1.55;
    --space-section: 104px;
    --space-band: calc(var(--space-section) / 2);
    --space-heading: 36px;
    --space-group: 20px;
    --space-related: 12px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--graphite);
    font-family: var(--font-text);
    font-size: 18px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

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

img {
    max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: 0;
}

.container {
    width: min(calc(100% - 56px), 1220px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: var(--page);
}

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

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

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

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

.header-nav > a:not(.button) {
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--graphite-soft);
    font-size: 16px;
    font-weight: 650;
    transition: color 120ms ease, background-color 120ms ease;
}

.header-nav > a:not(.button):hover {
    background: #ebe6e1;
    color: var(--graphite);
}

.header-nav > a:not(.button):active {
    background: #ded8d3;
}

.header-action {
    min-height: 50px;
    padding-inline: 20px;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.hero-copy {
    max-width: 1000px;
    min-width: 0;
    padding-block: 8px;
}

.hero-kicker {
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-copy h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.02;
}

.hero-subtitle {
    max-width: 680px;
    margin-bottom: var(--space-related);
}

.hero-subtitle,
.hero-text {
    max-width: 680px;
    color: var(--graphite);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--leading-body);
}

.hero-text {
    margin-bottom: 28px;
}

.hero-about {
    position: relative;
    left: -24px;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 460px;
    height: auto;
    align-self: center;
    justify-self: start;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(38, 35, 36, 0.05);
    margin-top: 0;
    padding: 24px;
}

.hero-about-top {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.hero-about-photo {
    position: relative;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-muted);
}

.hero-about-photo::after {
    display: none;
}

.hero-about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
}

.hero-about-copy {
    position: relative;
    z-index: 0;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.hero-about-lead,
.hero-about-text,
.hero-about-personal,
.hero-about-meta {
    margin: 0;
}

.hero-about-lead {
    max-width: none;
    color: var(--graphite);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.38;
}

.hero-about-name {
    font-weight: 700;
}

.hero-about-text {
    color: var(--graphite-soft);
    font-size: var(--text-secondary);
    line-height: var(--leading-body);
}

.hero-about-personal {
    border-left: 3px solid var(--accent);
    padding-left: 15px;
    color: var(--accent);
    font-size: var(--text-body);
    font-weight: 700;
    line-height: 1.42;
}

.hero-about-meta {
    color: var(--graphite-soft);
    font-size: var(--text-secondary);
    font-weight: 400;
}

.hero-about-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.hero-about-link {
    width: fit-content;
    border-bottom: 1px solid currentColor;
    color: var(--accent);
    font-size: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
    transition: color 120ms ease, border-color 120ms ease;
}

.hero-about-link:hover {
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px var(--space-group);
    margin-bottom: 0;
}

.hero-order-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 4px;
    width: fit-content;
    color: var(--graphite-soft);
    font-size: var(--text-secondary);
    font-weight: 400;
    line-height: 1.2;
    transition: color 120ms ease;
}

.hero-order-cta {
    color: var(--accent);
    font-weight: 400;
    transition: color 120ms ease;
}

.hero-order-link:hover {
    color: var(--graphite);
}

.hero-order-link:hover .hero-order-cta {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.workflow-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: var(--space-related);
    margin-bottom: 0;
    color: var(--graphite-soft);
    font-size: var(--text-secondary);
    font-weight: 400;
}

.workflow-line span {
    position: relative;
}

.workflow-line span:not(:last-child)::after {
    position: absolute;
    left: calc(100% + 8px);
    color: var(--accent);
    content: "→";
}

#calculator,
#order,
#reviews {
    scroll-margin-top: 106px;
}

.terms-section {
    padding: 0 0 var(--space-band);
}

.terms-title {
    margin-bottom: var(--space-heading);
    color: var(--graphite);
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
}

.terms-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 22px 0;
}

.terms-item {
    min-width: 0;
    padding: 0 22px;
}

.terms-item + .terms-item {
    border-left: 1px solid var(--line);
}

.terms-item-title {
    display: flex;
    min-height: 28px;
    align-items: center;
    gap: 9px;
    margin-bottom: var(--space-related);
    color: var(--graphite);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.terms-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.terms-item p {
    margin: 0;
    color: var(--graphite-soft);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.help-section {
    border-top: 1px solid var(--line);
    background: var(--page);
    padding: var(--space-band) 0;
}

.help-section h2 {
    margin-bottom: var(--space-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
}

.help-grid {
    display: flex;
    flex-direction: column;
}

.help-item {
    position: relative;
    min-width: 0;
}

.help-item h3 {
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.18;
    transition: color 180ms ease, transform 180ms ease;
}

.help-description {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--graphite-soft);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.help-item + .help-item {
    border-top: 1px solid var(--line);
}

.help-details {
    position: relative;
}

.help-details .help-link {
    display: block;
    min-height: 44px;
    padding: 20px 8px;
    cursor: pointer;
    list-style: none;
    transition: background-color 180ms ease;
}

.help-overview {
    display: grid;
    grid-template-columns: 32px minmax(0, 0.95fr) minmax(0, 1.05fr) 28px;
    gap: 24px;
    align-items: center;
    min-height: 66px;
}

.help-number {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 180ms ease;
}

.help-action {
    margin: 0;
    color: var(--graphite-soft);
    font-size: var(--text-secondary);
    white-space: nowrap;
}

.help-action-label {
    display: none;
}

.help-arrow {
    display: inline-block;
    transition: transform 180ms ease, color 180ms ease;
    font-size: 20px;
}

.help-details .help-link::-webkit-details-marker {
    display: none;
}

.help-details .help-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.help-details .help-link:focus-visible h3 {
    color: var(--accent);
}

@media (hover: hover) {
    .help-details .help-link:hover {
        background: rgba(124, 31, 45, 0.035);
    }

    .help-details .help-link:hover h3 {
        color: var(--accent);
        transform: translateX(6px);
    }

    .help-details .help-link:hover .help-number,
    .help-details .help-link:hover .help-arrow {
        color: var(--accent);
    }

    .help-details .help-link:hover .help-arrow {
        transform: translateX(4px);
    }
}

.help-panel {
    padding: 0 64px 20px;
}

@media (max-width: 800px) {
    .help-overview {
        display: block;
        min-height: 0;
    }

    .help-number,
    .help-item h3 {
        margin-bottom: var(--space-related);
    }

    .help-action {
        margin-top: var(--space-related);
        color: var(--accent);
    }

    .help-action-label {
        display: inline;
    }

    .help-arrow {
        font-size: inherit;
    }

    .help-panel {
        padding-inline: 8px;
    }
}

.help-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-panel li {
    padding: 4px 0;
    color: var(--graphite);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.help-panel li:first-child {
    border-top: 0;
    padding-top: 0;
}

.help-panel li:last-child {
    padding-bottom: 0;
}

.reviews-section {
    border-top: 1px solid var(--line);
    background: var(--surface-muted);
    padding: var(--space-band) 0;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-heading);
}

.reviews-layout h2 {
    margin-bottom: 0;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.08;
}

.reviews-header {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
}

.reviews-summary {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.reviews-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.review-card {
    display: flex;
    width: 100%;
    height: 300px;
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: var(--space-group);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 6px;
    background: var(--surface);
    padding: 24px;
}

.review-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.review-card h3 {
    margin-bottom: 3px;
    color: var(--graphite);
    font-family: var(--font-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.review-card time {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.review-score {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent-soft);
    padding: 5px 9px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.review-score-star {
    font-size: 12px;
}

.review-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--graphite-soft);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    white-space: pre-line;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.review-source {
    margin: auto 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.reviews-link {
    justify-self: start;
}

.reviews-cta {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 28px 0;
}

.reviews-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.reviews-cta p {
    margin-bottom: 0;
    color: var(--graphite);
    font-size: 20px;
    font-weight: 650;
    line-height: 1.35;
}

.modal-dialog {
    width: min(calc(100% - 48px), 1100px);
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    padding: 0;
    color: var(--graphite);
    box-shadow: 0 28px 90px rgba(28, 25, 26, 0.24);
}

.modal-dialog::backdrop {
    background: rgba(28, 25, 26, 0.64);
}

.modal-shell {
    display: flex;
    max-height: calc(100dvh - 48px);
    flex-direction: column;
}

.modal-header {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    padding: 26px 32px;
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.08;
}

.modal-header p {
    margin: 8px 0 0;
    color: var(--graphite-soft);
    font-size: 16px;
}

.modal-close {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    padding: 0;
    color: var(--graphite);
    transition: border-color 120ms ease, background-color 120ms ease, transform 100ms ease;
}

.modal-close:hover {
    border-color: var(--line-strong);
    background: var(--surface-muted);
}

.modal-close:active {
    background: #ded8d3;
    transform: scale(0.96);
}

.modal-close span {
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}

.modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.modal-dialog .calculator-widget,
.modal-dialog .request-form,
.modal-dialog .request-success {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.calculator-widget,
.request-form,
.request-success {
    width: min(100%, 1000px);
    min-width: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
}

.calculator-widget {
    display: grid;
    gap: 28px;
    padding: 44px;
    box-shadow: 0 22px 60px rgba(43, 34, 32, 0.07);
}

.calculator-widget[data-state="result"] .calculator-progress-row {
    display: none;
}

.calculator-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.calculator-progress {
    min-width: 90px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.calculator-progress-track {
    width: min(48%, 300px);
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: #ded8d3;
}

.calculator-progress-track span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transform-origin: left center;
    transition: width 180ms ease;
}

.calculator-heading h3 {
    max-width: 780px;
    margin-bottom: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.18;
}

.calculator-widget[data-state="result"] .calculator-heading {
    display: none;
}

.calculator-widget[data-state="result"] > .option-grid,
.calculator-widget[data-state="result"] > .calculator-actions {
    display: none;
}

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

.option-grid button {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fbf9f5;
    padding: 15px 18px 15px 54px;
    color: var(--graphite);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.option-grid button::before {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
}

.option-grid button:hover {
    border-color: #9f747b;
    background: var(--accent-soft);
}

.option-grid button:active {
    transform: scale(0.988);
}

.option-grid button.is-selected,
.option-grid button[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.option-grid button.is-selected::before,
.option-grid button[aria-pressed="true"]::before {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 5px var(--accent);
}

.option-grid button.is-selected:hover,
.option-grid button[aria-pressed="true"]:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.calculator-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-actions {
    justify-content: flex-end;
    min-height: 54px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.calculator-actions .button {
    min-width: 170px;
}

.button {
    display: inline-flex;
    width: auto;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 13px 22px;
    font-family: var(--font-text);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.button-large {
    min-height: 56px;
    padding-inline: 26px;
    font-size: 17px;
}

.home-page .site-header .button,
.home-page main > section .button {
    font-size: var(--text-action);
}

.button-wide {
    width: 100%;
}

.button:active {
    transform: scale(0.98);
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.button-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-primary:active {
    border-color: var(--accent-active);
    background: var(--accent-active);
}

.button-secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--graphite);
}

.button-secondary:hover {
    border-color: #8d817b;
    background: #ece7e2;
}

.button:disabled {
    border-color: #d7d1cc;
    background: #e4e0dc;
    color: #8b8481;
    transform: none;
}

.form-field {
    display: grid;
    min-width: 0;
    gap: 9px;
    color: var(--graphite);
    font-size: 16px;
    font-weight: 700;
}

.form-field-wide,
.form-actions,
.status-error,
.calculator-order-note,
.optional-field {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    padding: 14px 16px;
    outline: none;
    font-size: 17px;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

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

.task-description-field textarea {
    min-height: 190px;
    font-size: 18px;
    line-height: 1.55;
}

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

input::file-selector-button {
    margin-right: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: #eee9e4;
    padding: 7px 11px;
    color: var(--graphite);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
    color: #958d89;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #958983;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 31, 45, 0.13);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(124, 31, 45, 0.28);
    outline-offset: 3px;
}

.field-errors {
    color: var(--error);
    font-size: 15px;
    font-weight: 650;
}

.site-contact-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.request-success .order-access-code {
    color: var(--accent);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.status-error {
    margin: 0;
    border-left: 4px solid var(--error);
    background: #f7e8e9;
    padding: 14px 16px;
    color: var(--error);
    font-size: 16px;
    font-weight: 700;
}

.calculator-manual-field,
.calculator-budget-field {
    max-width: 680px;
}

.calculator-price-feedback {
    display: grid;
    gap: 22px;
    border-top: 0;
    padding-top: 0;
}

.calculator-price-feedback h4 {
    max-width: 700px;
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

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

.reaction-grid button {
    min-height: 76px;
}

.calculator-budget-note {
    max-width: 720px;
    margin: -4px 0 0;
    color: var(--graphite-soft);
    font-size: 16px;
}

.price-result {
    border-left: 5px solid var(--accent);
    background: var(--accent-soft);
    padding: 24px 26px;
    color: #651723;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.28;
}

.calculator-order-note {
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    padding: 15px 17px;
    color: #651723;
    font-size: 16px;
    font-weight: 700;
}

.request-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    border-top: 4px solid var(--accent);
    padding: 44px;
}

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

.optional-field {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.optional-field summary {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 700;
}

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

.optional-field summary::after {
    color: var(--accent);
    content: "+";
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.optional-field[open] summary::after {
    content: "−";
}

.optional-field summary span {
    margin-left: auto;
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
}

.optional-field .form-field {
    padding: 4px 0 24px;
}

.request-success {
    padding: 44px;
}

.request-success h3 {
    margin-bottom: 30px;
    font-size: 40px;
    font-weight: 600;
}

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

.request-success dl > div {
    border-top: 1px solid var(--line);
    padding-top: 15px;
}

.request-success dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 650;
}

.request-success dd {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
}

.request-success > p {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--graphite-soft);
    font-size: 18px;
}

.request-success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.request-success-actions .button {
    width: auto;
}

.request-success-status {
    flex: 0 0 auto;
}

.trust-section {
    background: var(--graphite);
    color: #fff;
    padding: 58px 0;
}

.trust-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 70px;
    align-items: center;
}

.trust-layout h2 {
    margin-bottom: 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-list li {
    min-width: 0;
    border-left: 1px solid #554f50;
    padding: 4px 24px;
    color: #e3dedd;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
}

.site-footer {
    background: #1c191a;
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto auto;
    gap: 48px;
    align-items: center;
    padding-top: 42px;
    padding-bottom: 38px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 700;
}

.footer-brand img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

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

.footer-contacts a,
.footer-status {
    color: #d5cecd;
    font-size: 16px;
    font-weight: 650;
    transition: color 120ms ease;
}

.footer-contacts a:hover,
.footer-status:hover {
    color: #fff;
}

.footer-status {
    border-bottom: 1px solid #716a6b;
    padding-bottom: 3px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid #3c3738;
    padding-top: 20px;
    padding-bottom: 24px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: #aaa3a3;
    font-size: 15px;
}

@media (min-width: 1200px) {
    .hero-grid {
        grid-template-columns: minmax(0, 58fr) minmax(520px, 42fr);
        gap: 56px;
    }

    .hero-about {
        left: auto;
        justify-self: end;
        max-width: 520px;
        padding: 30px;
    }

    .hero-about-top {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 20px;
    }

    .hero-about-photo {
        width: 80px;
        height: 80px;
    }

    .hero-about-copy {
        gap: 20px;
    }

    .hero-about-lead {
        line-height: 1.4;
    }

    .hero-about-text {
        font-size: var(--text-body);
    }
}

@media (max-width: 1040px) {
    .hero-copy h1 {
        font-size: 62px;
    }

    .trust-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-contacts {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    :root {
        --space-section: 72px;
        --space-heading: 32px;
    }
    .container {
        width: min(calc(100% - 40px), 1220px);
    }

    .hero-copy h1 {
        max-width: 680px;
    }

    .terms-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .terms-item:nth-child(3) {
        border-left: 0;
    }

    .terms-item:nth-child(n + 3) {
        border-top: 1px solid var(--line);
        padding-top: 22px;
    }

    .help-section h2 {
        font-size: 42px;
    }

    .help-description {
        max-width: 680px;
    }

    .reviews-layout h2 {
        font-size: 42px;
    }

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

    .calculator-widget,
    .request-form,
    .request-success {
        padding: 30px;
    }

    .calculator-heading h3 {
        font-size: 32px;
    }

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

    .trust-list {
        grid-template-columns: 1fr;
    }

    .trust-list li {
        border-top: 1px solid #554f50;
        border-left: 0;
        padding: 16px 0;
    }
}

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

    .hero-about {
        left: 0;
        width: 100%;
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    :root {
        --space-section: 64px;
        --space-heading: 28px;
    }
    .container {
        width: min(calc(100% - 32px), 1220px);
    }

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

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

    .header-nav {
        gap: 6px;
    }

    .header-nav > a:first-child {
        display: none;
    }

    .header-nav > a:not(.button) {
        padding: 9px 7px;
        font-size: 15px;
    }

    .header-action {
        min-height: 48px;
        padding-inline: 14px;
        font-size: 15px;
    }

    .hero-section {
        padding: 54px 0 40px;
    }

    .hero-copy h1 {
        font-size: 46px;
        line-height: 1.04;
    }

    .hero-about {
        padding: 24px 18px;
    }

    .hero-about-top {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .hero-about-photo {
        width: 72px;
        height: 72px;
    }

    .hero-about-photo img {
        width: 100%;
        height: 100%;
    }

    .hero-about-copy {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero-about-lead {
        max-width: none;
        font-size: 18px;
    }

    .hero-about-personal {
        font-size: 16px;
    }

    .hero-actions {
        margin-bottom: 0;
    }

    .workflow-line {
        display: block;
    }

    .workflow-line span::after {
        display: none;
    }

    .reviews-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .reviews-cta p {
        font-size: 18px;
    }

    .terms-title {
        font-size: 17px;
    }

    .terms-strip {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .terms-item,
    .terms-item:nth-child(n + 3) {
        border-top: 0;
        padding: 18px 18px;
    }

    .terms-item + .terms-item,
    .terms-item:nth-child(3) {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .help-section h2 {
        font-size: 38px;
    }

    .help-item h3 {
        font-size: 26px;
    }

    .reviews-layout h2 {
        font-size: 38px;
    }

    .reviews-header {
        display: grid;
        gap: 10px;
    }

    .reviews-summary {
        font-size: 19px;
    }

    .reviews-grid {
        display: block;
    }

    .review-card + .review-card {
        margin-top: 14px;
    }

    .review-card {
        padding: 21px 20px;
    }

    .review-text {
        -webkit-line-clamp: 6;
    }

    .reviews-link {
        width: 100%;
    }

    .modal-dialog {
        width: 100%;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border: 0;
        border-radius: 0;
    }

    .modal-shell {
        height: 100dvh;
        max-height: none;
    }

    .modal-header {
        gap: 16px;
        padding: 18px 16px;
    }

    .modal-header h2 {
        font-size: 32px;
    }

    .modal-header p {
        font-size: 16px;
        line-height: 1.4;
    }

    .calculator-widget,
    .request-form,
    .request-success {
        padding: 24px;
    }

    .calculator-progress-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .calculator-progress-track {
        width: 100%;
    }

    .calculator-heading h3 {
        font-size: 29px;
    }

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

    .option-grid button {
        min-height: 64px;
    }

    .calculator-actions {
        align-items: stretch;
    }

    .calculator-actions .button {
        min-width: 0;
        flex: 1 1 0;
    }

    .field-pair,
    .request-form,
    .request-success dl {
        grid-template-columns: 1fr;
    }

    .request-success h3 {
        font-size: 34px;
    }

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

    .request-success-actions .button {
        width: 100%;
    }

    .trust-layout h2 {
        font-size: 36px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-contacts,
    .footer-status {
        grid-column: auto;
        grid-row: auto;
        justify-content: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .header-nav > a:not(.button) {
        display: none;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-about {
        padding: 20px 16px;
    }

    .hero-about-photo img {
        width: 100%;
        height: 100%;
    }

    .hero-about-copy {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .help-item h3 {
        font-size: 25px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .calculator-actions {
        flex-direction: column-reverse;
    }

    .calculator-widget,
    .request-form,
    .request-success {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 30px;
    }

    .calculator-heading h3 {
        font-size: 27px;
    }

    .price-result {
        padding: 20px;
        font-size: 25px;
    }

    .optional-field summary {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .optional-field summary span {
        order: 3;
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: #9f9690;
        --line-strong: #746b66;
        --muted: #4f4947;
    }

    .calculator-widget,
    .help-panel {
        box-shadow: none;
    }
}

.calculator-manual-link {
    display: inline-flex;
    width: fit-content;
    max-width: 720px;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.calculator-manual-link:hover {
    color: var(--accent-hover);
}

.calculator-result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button-ghost {
    min-height: 54px;
    border: 0;
    background: transparent;
    color: var(--graphite-soft);
    padding: 0 12px;
}

.button-ghost:hover {
    background: var(--surface-muted);
    color: var(--graphite);
}

.button-ghost:active {
    transform: translateY(1px);
}

@media (max-width: 560px) {
    .calculator-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .calculator-result-actions .button {
        width: 100%;
    }
}
