:root {
    color-scheme: light;
    --background: #ffffff;
    --ink: #1d1d1f;
    --text: #333336;
    --muted: #66666b;
    --line: rgba(29, 29, 31, 0.12);
    --line-strong: rgba(29, 29, 31, 0.2);
    --surface: #f5f5f7;
    --surface-strong: #ececef;
    --card: #ffffff;
    --control: #ffffff;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.78);
    --glass-line: rgba(255, 255, 255, 0.5);
    --accent: #0071e3;
    --accent-dark: #0058b0;
    --green: #2e6f54;
    --error: #b42318;
    --success: #287a4b;
    --button-primary-bg: #1d1d1f;
    --button-primary-text: #ffffff;
    --button-primary-hover: #000000;
    --nav-background: rgba(255, 255, 255, 0.86);
    --nav-line: rgba(29, 29, 31, 0.08);
    --switch-background: rgba(29, 29, 31, 0.06);
    --switch-line: rgba(29, 29, 31, 0.08);
    --active-control-background: #ffffff;
    --active-control-shadow: 0 2px 8px rgba(29, 29, 31, 0.1);
    --nav-cta-background: #1d1d1f;
    --nav-cta-text: #ffffff;
    --nav-cta-border: transparent;
    --nav-cta-hover: #000000;
    --focus-ring: rgba(0, 113, 227, 0.25);
    --hero-text: #4c4c50;
    --status-border: rgba(29, 29, 31, 0.13);
    --status-background: rgba(255, 255, 255, 0.68);
    --status-ring: rgba(46, 111, 84, 0.12);
    --tab-active-background: #ffffff;
    --tab-active-shadow: 0 4px 18px rgba(29, 29, 31, 0.08);
    --control-focus-ring: rgba(0, 113, 227, 0.08);
    --placeholder: #94949a;
    --soft-line: rgba(29, 29, 31, 0.07);
    --selected-card-border: rgba(0, 113, 227, 0.55);
    --selected-card-shadow: 0 12px 32px rgba(0, 113, 227, 0.1);
    --material-button-background: #1d1d1f;
    --material-button-text: #ffffff;
    --material-button-border: transparent;
    --material-button-hover: #000000;
    --purchase-border: rgba(46, 111, 84, 0.18);
    --purchase-background: rgba(46, 111, 84, 0.045);
    --upload-border: rgba(0, 113, 227, 0.45);
    --upload-background: rgba(0, 113, 227, 0.04);
    --upload-hover: rgba(0, 113, 227, 0.07);
    --photo-remove-background: rgba(255, 255, 255, 0.9);
    --summary-button-background: #1d1d1f;
    --summary-button-text: #ffffff;
    --summary-button-border: transparent;
    --summary-button-hover: #000000;
    --request-form-background: rgba(245, 245, 247, 0.86);
    --request-form-line: rgba(29, 29, 31, 0.08);
    --request-form-shadow: 0 18px 55px rgba(25, 27, 30, 0.08);
    --theme-menu-background: rgba(255, 255, 255, 0.96);
    --theme-menu-shadow: 0 18px 44px rgba(25, 27, 30, 0.16);
    --shadow: 0 18px 55px rgba(25, 27, 30, 0.1);
    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-control: 14px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #000000;
    --ink: #f5f5f7;
    --text: #d1d1d6;
    --muted: #98989d;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --surface: #141416;
    --surface-strong: #2c2c2e;
    --card: #1c1c1e;
    --control: #101012;
    --glass: rgba(28, 28, 30, 0.8);
    --glass-line: rgba(255, 255, 255, 0.14);
    --accent: #0a84ff;
    --accent-dark: #64b5ff;
    --green: #30d158;
    --error: #ff453a;
    --success: #30d158;
    --button-primary-bg: #f5f5f7;
    --button-primary-text: #050505;
    --button-primary-hover: #ffffff;
    --nav-background: rgba(12, 12, 14, 0.86);
    --nav-line: rgba(255, 255, 255, 0.09);
    --switch-background: rgba(255, 255, 255, 0.08);
    --switch-line: rgba(255, 255, 255, 0.1);
    --active-control-background: #2c2c2e;
    --active-control-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
    --nav-cta-background: #1c1c1e;
    --nav-cta-text: #f5f5f7;
    --nav-cta-border: rgba(255, 255, 255, 0.22);
    --nav-cta-hover: #2c2c2e;
    --focus-ring: rgba(10, 132, 255, 0.34);
    --hero-text: #d1d1d6;
    --status-border: rgba(255, 255, 255, 0.14);
    --status-background: rgba(28, 28, 30, 0.72);
    --status-ring: rgba(48, 209, 88, 0.16);
    --tab-active-background: #1c1c1e;
    --tab-active-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    --control-focus-ring: rgba(10, 132, 255, 0.18);
    --placeholder: #7c7c82;
    --soft-line: rgba(255, 255, 255, 0.12);
    --selected-card-border: rgba(10, 132, 255, 0.68);
    --selected-card-shadow: 0 12px 34px rgba(10, 132, 255, 0.2);
    --material-button-background: #2c2c2e;
    --material-button-text: #f5f5f7;
    --material-button-border: rgba(255, 255, 255, 0.22);
    --material-button-hover: #3a3a3c;
    --purchase-border: rgba(48, 209, 88, 0.24);
    --purchase-background: rgba(48, 209, 88, 0.08);
    --upload-border: rgba(10, 132, 255, 0.58);
    --upload-background: rgba(10, 132, 255, 0.09);
    --upload-hover: rgba(10, 132, 255, 0.14);
    --photo-remove-background: rgba(28, 28, 30, 0.9);
    --summary-button-background: #2c2c2e;
    --summary-button-text: #f5f5f7;
    --summary-button-border: rgba(255, 255, 255, 0.22);
    --summary-button-hover: #3a3a3c;
    --request-form-background: rgba(28, 28, 30, 0.9);
    --request-form-line: rgba(255, 255, 255, 0.14);
    --request-form-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
    --theme-menu-background: rgba(28, 28, 30, 0.96);
    --theme-menu-shadow: 0 22px 54px rgba(0, 0, 0, 0.5);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    min-width: 320px;
    color: var(--text);
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.glass-nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--nav-background);
    border-bottom: 1px solid var(--nav-line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    flex: 0 0 auto;
    color: var(--ink);
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-width: 0;
}

.nav-text-link {
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-text-link:hover,
.text-link:hover {
    color: var(--accent);
}

.language-switch {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 34px;
    height: 34px;
    padding: 3px;
    background: var(--switch-background);
    border: 1px solid var(--switch-line);
    border-radius: 10px;
}

.language-button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.language-button.is-active {
    background: var(--active-control-background);
    color: var(--ink);
    box-shadow: var(--active-control-shadow);
}

.theme-picker {
    position: relative;
    flex: 0 0 auto;
}

.theme-picker-trigger {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--switch-line);
    border-radius: 10px;
    background: var(--switch-background);
    color: var(--ink);
    cursor: pointer;
}

.theme-picker-trigger:hover,
.theme-picker.is-open .theme-picker-trigger {
    background: var(--active-control-background);
}

.theme-picker-trigger [data-theme-icon] {
    display: none;
}

:root[data-theme-preference="system"] .theme-picker-trigger [data-theme-icon="system"],
:root[data-theme-preference="light"] .theme-picker-trigger [data-theme-icon="light"],
:root[data-theme-preference="dark"] .theme-picker-trigger [data-theme-icon="dark"] {
    display: block;
}

.theme-picker svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-picker-menu {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 10px);
    right: 0;
    width: 178px;
    padding: 6px;
    background: var(--theme-menu-background);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--theme-menu-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.theme-picker-option {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    width: 100%;
    min-height: 40px;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.theme-picker-option:hover,
.theme-picker-option.is-active {
    background: var(--surface-strong);
    color: var(--ink);
}

.theme-picker-option.is-active {
    font-weight: 600;
}

.btn-primary,
.btn-secondary,
.text-action,
.material-select-button,
.calc-tab,
.calc-tab-close,
.calc-seg-btn,
.request-preview-toggle {
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn-primary {
    color: var(--button-primary-text);
    background: var(--button-primary-bg);
}

.btn-primary:hover {
    background: var(--button-primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    cursor: wait;
    opacity: 0.55;
    transform: none;
}

.btn-secondary {
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-1px);
}

.nav-cta {
    min-height: 40px;
    padding: 9px 18px;
    color: var(--nav-cta-text);
    background: var(--nav-cta-background);
    border: 1px solid var(--nav-cta-border);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--nav-cta-hover);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
label.photo-upload:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
}

.hero,
.calc-hero,
.cta-section {
    position: relative;
    overflow: hidden;
}

.hero-bg,
.cta-bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.theme-background {
    background-image: var(--image-light);
}

:root[data-theme="dark"] .theme-background {
    background-image: var(--image-dark);
}

.site-hero {
    display: flex;
    align-items: center;
    height: calc(100svh - 140px);
    min-height: 540px;
    max-height: 720px;
    padding-top: 72px;
}

.hero-content {
    width: min(640px, 100%);
    padding: 54px;
}

.hero-content h1 {
    color: var(--ink);
    font-size: 62px;
    font-weight: 600;
    line-height: 1.02;
}

.hero-lead,
.hero-content > p {
    max-width: 560px;
    margin-top: 20px;
    color: var(--hero-text);
    font-size: 19px;
    line-height: 1.55;
}

.hero-btns {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.app-status {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    gap: 9px;
    padding: 10px 16px;
    border: 1px solid var(--status-border);
    border-radius: 999px;
    background: var(--status-background);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px var(--status-ring);
}

.section {
    padding: 110px 0;
}

.process-section {
    padding-top: 48px;
}

.bg-light {
    background: var(--surface);
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-header h2,
.process-copy h2,
.app-copy h2,
.cta-content h2 {
    color: var(--ink);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
}

.section-header > p:last-child,
.process-copy > p,
.app-copy > p,
.cta-content > p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 17px;
}

.process-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas: "copy image" "steps image";
    gap: 48px 72px;
    align-items: start;
}

.process-copy {
    grid-area: copy;
}

.process-image {
    grid-area: image;
    min-height: 620px;
    border-radius: var(--radius-large);
    background-position: center;
    background-size: cover;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.process-steps {
    grid-area: steps;
    list-style: none;
}

.process-steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.process-steps li > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.process-steps strong {
    color: var(--ink);
    font-size: 17px;
}

.process-steps p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
}

.service-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
}

.service-card h3 {
    margin: 24px 24px 0;
    color: var(--ink);
    font-size: 20px;
}

.service-card p {
    min-height: 92px;
    margin: 10px 24px 28px;
    color: var(--muted);
    font-size: 14px;
}

.app-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 72px;
    align-items: center;
}

.app-media {
    min-height: 540px;
    border-radius: var(--radius-large);
    background-position: center;
    background-size: cover;
}

.app-status--large {
    margin-top: 26px;
    background: var(--surface);
}

.cta-section {
    display: flex;
    align-items: center;
    min-height: 620px;
    padding: 100px 0;
}

.cta-content {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 56px;
    text-align: center;
}

.btn-large {
    min-height: 54px;
    margin-top: 28px;
    padding: 15px 30px;
    font-size: 16px;
}

footer,
.calc-footer {
    padding: 48px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

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

.footer-logo {
    color: var(--ink);
    font-weight: 600;
}

.footer-content p {
    color: var(--muted);
    font-size: 13px;
}

/* Calculator */

.calc-hero {
    min-height: 510px;
    padding: 142px 0 64px;
}

.calc-hero .hero-content {
    padding: 42px;
}

.calc-hero .hero-content h1 {
    font-size: 48px;
}

.calc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.calc-pill {
    padding: 7px 11px;
    border: 1px solid var(--status-border);
    border-radius: 999px;
    background: var(--status-background);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.calc-main {
    padding: 36px 0 88px;
}

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

.calc-main > .calc-section:first-child {
    border-top: 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading--workflow {
    align-items: center;
}

.section-heading h2,
.request-intro h2 {
    color: var(--ink);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
}

.section-heading .calc-muted {
    max-width: 720px;
    margin-top: 8px;
}

.calc-muted {
    color: var(--muted);
}

.calc-btn svg,
.service-note svg,
.submit-request-button svg,
.add-area-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.add-area-button,
.submit-request-button {
    gap: 9px;
}

.calc-tabs-wrap {
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.calc-tabs {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 8px;
}

.calc-tab-item {
    display: inline-flex;
    align-items: center;
    height: 42px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 999px;
}

.calc-tab-item.is-active {
    background: var(--tab-active-background);
    border-color: var(--line-strong);
    box-shadow: var(--tab-active-shadow);
}

.calc-tab {
    height: 100%;
    padding: 0 15px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.calc-tab-item.is-active .calc-tab {
    color: var(--ink);
}

.calc-tab-close {
    display: grid;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    place-items: center;
    background: transparent;
    border-radius: 50%;
    color: var(--muted);
}

.calc-tab-close:hover {
    background: var(--surface-strong);
    color: var(--ink);
}

.calc-tab-close svg,
.material-details summary svg,
.summary-details summary svg,
.request-preview-toggle svg,
.photo-item button svg,
.select-field > svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 42px;
    align-items: start;
}

.calc-subsection {
    padding: 40px 0;
    border-top: 1px solid var(--line);
}

.area-main > .calc-subsection:first-child {
    padding-top: 12px;
    border-top: 0;
}

.subsection-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.subsection-heading--actions {
    align-items: center;
}

.subsection-heading h3,
.area-summary h3 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
}

.subsection-heading p {
    max-width: 680px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.select-grid,
.dimension-grid,
.request-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.calc-field,
.dimension-field {
    min-width: 0;
}

.calc-field > label,
.dimension-field > label,
.waste-control-head label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.calc-field input,
.calc-field select,
.calc-field textarea,
.dimension-input-wrap input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background: var(--control);
    color: var(--ink);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.calc-field input,
.calc-field select,
.dimension-input-wrap input {
    height: 52px;
    padding: 0 15px;
}

.calc-field textarea {
    min-height: 116px;
    padding: 13px 15px;
    resize: vertical;
}

.calc-field input:focus,
.calc-field select:focus,
.calc-field textarea:focus,
.dimension-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--control-focus-ring);
}

.calc-field input::placeholder,
.calc-field textarea::placeholder,
.dimension-input-wrap input::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

.select-field {
    position: relative;
}

.select-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.select-field > svg {
    position: absolute;
    right: 16px;
    bottom: 17px;
    pointer-events: none;
    color: var(--muted);
}

.calc-segment {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 3px;
    padding: 3px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.calc-seg-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.calc-seg-btn.is-active {
    background: var(--active-control-background);
    color: var(--ink);
    box-shadow: var(--active-control-shadow);
}

.dimension-grid {
    margin-top: 20px;
}

.dimension-input-wrap {
    position: relative;
}

.dimension-input-wrap input {
    padding-right: 45px;
    font-size: 17px;
    font-weight: 600;
}

.dimension-input-wrap > span {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--muted);
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.dimension-input-wrap input.is-invalid {
    border-color: var(--error);
}

.field-error {
    display: block;
    min-height: 17px;
    margin-top: 5px;
    color: var(--error);
    font-size: 11px;
}

.l-shape-fields {
    margin-top: 20px;
}

.dimension-group + .dimension-group {
    margin-top: 18px;
}

.dimension-group > strong {
    color: var(--ink);
    font-size: 13px;
}

.dimension-group .dimension-grid {
    margin-top: 8px;
}

.inline-note,
.material-disclaimer {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.calculation-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.calculation-strip > div {
    min-height: 86px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--soft-line);
    border-radius: var(--radius-control);
}

.calculation-strip span,
.material-price-row span,
.project-total span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.calculation-strip strong,
.material-price-row strong,
.project-total strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.waste-control {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
}

.waste-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.waste-control-head label {
    margin: 0;
}

.waste-control output {
    color: var(--accent);
    font-size: 20px;
    font-weight: 600;
}

.waste-control input[type="range"] {
    width: 100%;
    height: 28px;
    margin-top: 12px;
    accent-color: var(--accent);
    cursor: pointer;
}

.waste-control p {
    color: var(--muted);
    font-size: 12px;
}

.material-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--soft-line);
    border-radius: var(--radius-medium);
}

.material-mode-tab {
    width: 100%;
    min-height: 68px;
    padding: 12px 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.material-mode-tab.is-active {
    background: var(--active-control-background);
    color: var(--ink);
    box-shadow: var(--active-control-shadow);
}

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

.material-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.material-card.is-selected {
    border-color: var(--selected-card-border);
    box-shadow: var(--selected-card-shadow);
}

.material-image {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.material-body {
    padding: 17px;
}

.material-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 66px;
    gap: 12px;
}

.material-heading h4 {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
}

.material-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.selected-mark {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.material-confirmation {
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
    line-height: 1.45;
}

.material-select-button {
    width: 100%;
    height: 42px;
    margin-top: 14px;
    border: 1px solid var(--material-button-border);
    border-radius: 11px;
    background: var(--material-button-background);
    color: var(--material-button-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.material-select-button:not(.is-selected):hover {
    background: var(--material-button-hover);
}

.material-select-button.is-selected {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.material-mode-panel {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
    background: var(--card);
}

.material-mode-panel.is-popular {
    padding: 0;
    border: 0;
    background: transparent;
}

.material-mode-intro {
    margin-bottom: 18px;
}

.material-mode-intro p {
    color: var(--muted);
    font-size: 13px;
}

.material-notes-field {
    margin-top: 0;
}

.chosen-product-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.material-field-wide {
    grid-column: 1 / -1;
}

.product-field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.product-photo-preview {
    width: min(260px, 100%);
    margin-top: 10px;
}

.product-photo-empty,
.product-identifier-hint {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
}

.material-identity-status {
    min-height: 20px;
    margin-top: 6px;
    color: var(--error);
    font-size: 12px;
}

.purchase-notes {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--purchase-border);
    border-radius: var(--radius-control);
    background: var(--purchase-background);
}

.purchase-notes p {
    color: var(--text);
    font-size: 12px;
}

.purchase-notes p + p {
    margin-top: 5px;
    color: var(--muted);
}

.summary-details {
    margin-top: 12px;
    border-top: 1px solid var(--line);
}

.summary-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.summary-details[open] summary svg {
    transform: rotate(180deg);
}

.summary-details > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 11px;
}

.summary-details strong {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.photo-upload {
    display: flex;
    align-items: center;
    min-height: 94px;
    gap: 16px;
    padding: 18px 20px;
    border: 1px dashed var(--upload-border);
    border-radius: var(--radius-medium);
    background: var(--upload-background);
    cursor: pointer;
}

.photo-upload:hover {
    background: var(--upload-hover);
}

.photo-upload > svg {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-upload span {
    min-width: 0;
}

.photo-upload strong,
.photo-upload small {
    display: block;
}

.photo-upload strong {
    color: var(--ink);
    font-size: 14px;
}

.photo-upload small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.photo-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 12px;
}

.photo-status.is-error {
    color: var(--error);
}

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

.photo-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 16px 8px 6px;
    background: rgba(0, 0, 0, 0.58);
    color: var(--white);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-item button {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--photo-remove-background);
    color: var(--ink);
    cursor: pointer;
}

.area-summary {
    position: sticky;
    top: 96px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
}

.area-summary dl {
    margin-top: 14px;
}

.area-summary dl > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.area-summary dt {
    color: var(--muted);
    font-size: 11px;
}

.area-summary dd {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.area-summary .area-summary-total dd {
    font-size: 17px;
}

.area-summary-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.area-photo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.area-photo-link:hover {
    color: var(--accent-dark);
}

.area-photo-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.area-request-link {
    width: 100%;
    color: var(--summary-button-text);
    background: var(--summary-button-background);
    border: 1px solid var(--summary-button-border);
}

.area-request-link:hover {
    background: var(--summary-button-hover);
}

.project-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.project-total {
    min-height: 112px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-medium);
}

.project-total strong {
    margin-top: 8px;
    font-size: 23px;
}

.project-breakdown {
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.project-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.45fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.project-breakdown-row > div {
    min-width: 0;
}

.project-breakdown-row > div:last-child {
    text-align: right;
}

.project-breakdown-row strong,
.project-breakdown-row span {
    display: block;
}

.project-breakdown-row strong {
    color: var(--ink);
    font-size: 13px;
}

.project-breakdown-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.request-section {
    padding-top: 78px;
}

.request-layout {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 70px;
    align-items: start;
}

.request-intro {
    position: sticky;
    top: 100px;
}

.request-intro > p:not(.section-kicker) {
    margin-top: 16px;
    color: var(--muted);
}

.service-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.service-note svg {
    flex: 0 0 auto;
    color: var(--green);
}

.service-note strong,
.service-note span {
    display: block;
}

.service-note strong {
    color: var(--ink);
    font-size: 13px;
}

.service-note span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.request-form {
    padding: 34px;
    background: var(--request-form-background);
    border-color: var(--request-form-line);
    box-shadow: var(--request-form-shadow);
}

.request-field-wide {
    grid-column: 1 / -1;
}

.request-preview {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.request-preview-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.request-preview-toggle.is-open svg {
    transform: rotate(180deg);
}

.request-preview-body {
    padding-bottom: 14px;
}

.preview-area {
    padding: 10px 0;
    border-top: 1px solid var(--soft-line);
}

.preview-area strong,
.preview-area span {
    display: block;
}

.preview-area strong {
    color: var(--ink);
    font-size: 12px;
}

.preview-area span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.consent-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 20px;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.request-submit-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.submit-request-button {
    flex: 0 0 auto;
}

.request-submit-note {
    color: var(--muted);
    font-size: 11px;
}

.form-status {
    min-height: 22px;
    margin-top: 12px;
    font-size: 12px;
}

.form-status.is-error {
    color: var(--error);
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-info {
    color: var(--accent-dark);
}

.next-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.next-step-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 25px 26px 25px 0;
    border-bottom: 1px solid var(--line);
}

.next-step-list li + li {
    padding-left: 26px;
    border-left: 1px solid var(--line);
}

.next-step-list li > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

.next-step-list strong {
    color: var(--ink);
    font-size: 14px;
}

.next-step-list p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 980px) {
    .nav-text-link {
        display: none;
    }

    .process-layout,
    .app-layout,
    .area-layout,
    .request-layout {
        grid-template-columns: 1fr;
    }

    .process-layout {
        grid-template-areas: "copy" "image" "steps";
    }

    .process-image,
    .app-media {
        min-height: 480px;
    }

    .area-layout,
    .request-layout {
        gap: 24px;
    }

    .area-summary,
    .request-intro {
        position: static;
    }

    .area-summary {
        margin-top: 6px;
    }

    .request-intro {
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 76px;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .glass-nav {
        height: 64px;
    }

    .nav-shell {
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-actions {
        gap: 8px;
    }

    .language-switch {
        grid-auto-columns: 30px;
        height: 32px;
    }

    .nav-cta {
        min-height: 38px;
        padding: 9px 13px;
        font-size: 12px;
    }

    .site-hero {
        height: calc(100svh - 100px);
        min-height: 500px;
        max-height: 680px;
        padding-top: 64px;
    }

    .process-section {
        padding-top: 44px;
    }

    .hero-content,
    .calc-hero .hero-content {
        padding: 30px;
    }

    .hero-content h1,
    .calc-hero .hero-content h1 {
        font-size: 42px;
    }

    .hero-lead,
    .hero-content > p {
        font-size: 16px;
    }

    .section {
        padding: 76px 0;
    }

    .section-header h2,
    .process-copy h2,
    .app-copy h2,
    .cta-content h2 {
        font-size: 32px;
    }

    .process-image,
    .app-media {
        min-height: 390px;
    }

    .service-grid,
    .materials-grid,
    .material-mode-tabs,
    .chosen-product-fields,
    .project-totals,
    .next-step-list {
        grid-template-columns: 1fr;
    }

    .material-mode-panel {
        padding: 20px;
    }

    .service-card p {
        min-height: 0;
    }

    .cta-section {
        min-height: 540px;
        padding: 70px 0;
    }

    .cta-content {
        padding: 36px 26px;
    }

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

    .calc-hero {
        min-height: 470px;
        padding: 112px 0 48px;
    }

    .calc-main {
        padding-top: 20px;
    }

    .calc-section {
        padding: 50px 0;
    }

    .section-heading,
    .section-heading--workflow,
    .subsection-heading,
    .subsection-heading--actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .section-heading h2,
    .request-intro h2 {
        font-size: 29px;
    }

    .add-area-button {
        min-height: 42px;
    }

    .calc-subsection {
        padding: 34px 0;
    }

    .calculation-strip {
        grid-template-columns: 1fr 1fr;
    }

    .calculation-strip > div:last-child {
        grid-column: 1 / -1;
    }

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

    .project-breakdown-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-breakdown-row > div:last-child {
        text-align: left;
    }

    .request-form {
        padding: 24px;
    }

    .next-step-list li,
    .next-step-list li + li {
        padding: 22px 0;
        border-left: 0;
    }
}

@media (max-width: 520px) {
    .nav-cta {
        max-width: 108px;
    }

    .hero-content,
    .calc-hero .hero-content {
        padding: 25px;
        border-radius: 20px;
    }

    .hero-content h1,
    .calc-hero .hero-content h1 {
        font-size: 37px;
    }

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

    .hero-btns .btn-primary,
    .hero-btns .app-status {
        width: 100%;
    }

    .select-grid,
    .request-fields {
        grid-template-columns: 1fr;
    }

    .request-field-wide {
        grid-column: auto;
    }

    .calc-segment {
        width: 100%;
    }

    .dimension-grid {
        gap: 10px;
    }

    .dimension-input-wrap input {
        font-size: 16px;
    }

    .material-image {
        height: 190px;
    }

    .photo-upload {
        padding: 16px;
    }

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

    .submit-request-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .nav-cta {
        display: none;
    }
}

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

    .calculation-strip {
        grid-template-columns: 1fr;
    }

    .calculation-strip > div:last-child {
        grid-column: auto;
    }
}

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

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