:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --panel: #151518;
  --panel-raised: #19191d;
  --line: #2b2b30;
  --text: #fff;
  --muted: #aaaab2;
  --quiet: #96969f;
  --red: #e21b22;
  --red-text: #ff6268;
  --red-deep: #260e10;
  --body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #ff6b70; outline-offset: 4px; }
h1, h2, p { margin: 0; }

.container { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden, .choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip { position: absolute; z-index: 3; left: 16px; top: 12px; padding: 12px 16px; background: var(--panel); transform: translateY(-160%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid #242429; background: #0a0a0c; }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 7px; color: #fff; font: 700 33px/1 var(--display); letter-spacing: .075em; }
.bolt { width: 23px; height: 27px; color: var(--red); }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 46px); font-size: .875rem; font-weight: 600; color: #d3d3d8; }
.site-nav a, .footer-contact, .breadcrumbs a { transition: color .18s; }
.site-nav a:hover, .footer-contact:hover, .breadcrumbs a:hover { color: var(--red-text); }
.demo-label { justify-self: end; border: 1px solid #402125; background: #1d1012; border-radius: 100px; padding: 8px 13px; white-space: nowrap; color: #ffc1c3; font-size: .8125rem; font-weight: 600; }
.demo-label > span { display: inline-block; vertical-align: 2px; margin-right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #ff5057; }

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid #2c2528; background: #100e11; }
.hero-inner { position: relative; z-index: 1; padding-block: 35px 48px; }
.hero-visual { position: absolute; inset: 0 0 0 36%; max-width: 1080px; margin-left: auto; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; display: block; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #100e11 0%, #100e11ed 8%, #100e1159 27%, transparent 54%), linear-gradient(0deg, #100e1154, transparent 24%);
}
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: .8125rem; color: var(--muted); font-weight: 500; }
.breadcrumbs [aria-current] { color: #e5e3e7; }
.breadcrumbs [aria-hidden] { color: #68636a; }
.hero h1 { width: min-content; margin: 24px 0 17px; font: 700 clamp(3.35rem, 5.35vw, 5.15rem)/1.01 var(--display); text-transform: uppercase; letter-spacing: .006em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { max-width: 500px; color: #c3c0c6; font-size: clamp(.9375rem, 1.24vw, 1.0625rem); line-height: 1.6; font-weight: 500; }

.configurator { padding-block: 29px 64px; scroll-margin-top: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { min-width: 0; }
.step { text-align: left; width: 100%; min-height: 64px; display: flex; align-items: center; gap: 13px; background: #141417; border: 1px solid #28282d; border-radius: 10px; padding: 10px 16px; color: #d4d4da; font-size: .9375rem; font-weight: 700; transition: background .18s, border-color .18s; }
.step:disabled { color: #a7a7b0; }
.step:not(:disabled):hover { border-color: #944146; }
.step[aria-current] { color: white; border-color: #873238; background: linear-gradient(110deg, #2a1418, #1a1215); }
.step-number { display: grid; place-items: center; border: 1px solid #3c3b42; border-radius: 50%; background: #202025; width: 33px; height: 33px; flex: none; color: #d3d3db; font-size: .875rem; }
.step[aria-current] .step-number { color: white; background: var(--red); border-color: var(--red); }
.step.complete .step-number { color: #ff777c; border-color: #6a3034; background: #251316; }
.step-number .icon { width: 17px; height: 17px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 348px); gap: 28px; align-items: start; margin-top: 34px; }
.step-panel h2 { font: 600 clamp(2rem, 3vw, 2.5rem)/1.13 var(--display); letter-spacing: .005em; }
.step-panel h2:focus { outline: none; }
.step-intro { margin: 9px 0 22px; color: var(--muted); line-height: 1.5; font-size: .9375rem; font-weight: 500; }
fieldset { margin: 0; padding: 0; min-inline-size: 0; border: 0; }
.type-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.additional-types { margin-top: 12px; }
.choice { position: relative; display: flex; min-width: 0; min-height: 95px; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #303036; border-radius: 11px; background: var(--panel); cursor: pointer; transition: border-color .18s, background .18s; }
.choice:hover { border-color: #825057; background: #1c181b; }
.choice:has(:checked) { border-color: var(--red); background: linear-gradient(120deg, #251316, #1c1417); box-shadow: inset 0 0 0 1px #e21b2220; }
.choice:has(:focus-visible) { outline: 2px solid #ff6b70; outline-offset: 3px; }
.type-icon { display: grid; place-items: center; width: 47px; height: 47px; flex: none; border: 1px solid #543035; border-radius: 9px; background: #311a1f; color: #ff6268; }
.type-icon .icon { width: 25px; height: 25px; }
.choice:has(:checked) .type-icon { background: #401b22; border-color: #753237; }
.choice-copy { display: grid; min-width: 0; gap: 5px; }
.choice-copy strong { font-size: .9375rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.choice-copy small { color: #afacb4; font-size: .8125rem; font-weight: 500; line-height: 1.45; }
.choice-mark { flex: none; display: grid; place-items: center; margin-left: auto; align-self: flex-start; width: 19px; height: 19px; border: 1px solid #4f4d57; border-radius: 50%; color: white; }
.choice-mark .icon { visibility: hidden; width: 13px; height: 13px; stroke-width: 2.2; }
.choice:has(:checked) .choice-mark { border-color: var(--red); background: var(--red); }
.choice:has(:checked) .choice-mark .icon { visibility: visible; }
.more-types { padding: 9px 4px 9px 0; margin-top: 9px; border: 0; background: none; display: inline-flex; align-items: center; gap: 9px; color: #d2ced6; font-size: .875rem; font-weight: 650; }
.more-types:hover { color: var(--red-text); }
.more-types .icon { width: 16px; height: 16px; }
.more-types[aria-expanded="true"] .icon { transform: rotate(180deg); }

.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 20px; border-top: 1px solid #27262c; }
.panel-actions-end { justify-content: flex-end; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 9px; padding: 10px 21px; text-align: center; border-radius: 100px; border: 1px solid transparent; font-size: .875rem; line-height: 1.25; font-weight: 750; transition: background .18s, border-color .18s, transform .18s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: #d71921; color: #fff; border-color: #d71921; }
.button-primary:hover:not(:disabled) { background: #bd1119; border-color: #f65960; }
.button-primary:disabled { opacity: .7; cursor: progress; }
.button-secondary { background: #1c1c21; color: #efedf0; border-color: #3a3941; }
.button-secondary:hover { background: #27262c; border-color: #666471; }

.summary { position: sticky; top: 20px; border: 1px solid #303036; border-radius: 13px; padding: 21px; background: var(--panel); }
.summary h2 { font: 600 1.75rem/1.1 var(--display); margin-bottom: 17px; }
.summary-product { min-height: 66px; padding: 10px; display: flex; align-items: center; gap: 11px; border: 1px solid #43282d; border-radius: 9px; background: #211519; }
.summary-product .type-icon { width: 41px; height: 41px; }
.summary-product small { display: block; margin-bottom: 3px; font-size: .75rem; color: #c7aeb3; font-weight: 550; }
.summary-product strong { display: block; font-size: .9375rem; font-weight: 700; overflow-wrap: anywhere; }
.summary-details { margin: 12px 0 0; }
.summary-details > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #2a292e; font-size: .875rem; line-height: 1.35; }
.summary-details dt { color: var(--muted); }
.summary-details dd { margin: 0; justify-self: end; text-align: right; color: #e0dde4; font-weight: 650; overflow-wrap: anywhere; }
.summary-note { margin-top: 15px; display: flex; align-items: flex-start; gap: 8px; color: #b6b1ba; font-size: .8125rem; font-weight: 500; line-height: 1.55; }
.summary-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--red-text); }

.form-panel { display: grid; gap: 18px; }
.form-panel label:not(.check-line) { display: block; color: #eeedf0; font-size: .875rem; font-weight: 650; line-height: 1.5; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-panel legend { font-weight: 700; margin-bottom: 9px; padding: 0; font-size: 1rem; }
.form-panel :is(input:not([type="checkbox"]):not([type="file"]), select, textarea) { width: 100%; margin-top: 6px; color: #f7f5f8; padding: 11px 13px; min-height: 46px; border: 1px solid #37363e; border-radius: 8px; background: var(--panel); font-size: .9375rem; font-weight: 500; }
.form-panel :is(input, textarea)::placeholder { color: #8d8a95; opacity: 1; }
.form-panel :is(input, textarea, select):focus { border-color: #e54850; }
.form-panel textarea { resize: vertical; }
.form-panel select { appearance: none; padding-right: 39px; background-image: url("assets/chevron.svg"); background-repeat: no-repeat; background-position: right 13px center; background-size: 16px; }
.form-panel input:disabled { opacity: .5; }
.with-unit { display: block; position: relative; }
.with-unit input { padding-right: 58px !important; }
.with-unit > span { position: absolute; top: calc(50% + 3px); right: 12px; transform: translateY(-50%); color: var(--quiet); font-weight: 500; }
.check-line { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #d7d4da; font-size: .875rem; cursor: pointer; }
.check-line input { margin: 0; width: 17px; height: 17px; accent-color: var(--red); }
.optional { margin-left: 4px; color: var(--quiet); font-size: .8125rem; font-weight: 500; }
.field-help { color: var(--muted); font-size: .8125rem; margin-top: 10px; }
.form-panel .panel-actions { margin-top: 2px; }

.drop-area { display: grid; justify-items: center; gap: 10px; padding: 22px 14px; text-align: center; border: 1px dashed #6b3b40; border-radius: 11px; background: #1a1216; transition: background .18s, border-color .18s; }
.drop-area.dragging { border-color: var(--red-text); background: #371c22; }
.drop-area p { font-size: 1rem; font-weight: 700; }
.drop-area > span { color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.upload-icon { width: 29px; height: 29px; color: var(--red-text); }
.drop-area .button { min-height: 38px; }
.file-error, #download-error { color: #ff9a9f; font-size: .875rem; line-height: 1.5; }
.file-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.file-list li { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px 6px 12px; }
.file-list li > .icon { color: var(--red-text); }
.file-list .file-name { flex: 1; font-size: .875rem; overflow-wrap: anywhere; }
.file-size { flex: none; color: var(--muted); font-size: .8125rem; }
.file-remove, .close-button { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border: 0; border-radius: 7px; background: #232329; color: #dedbe2; }
.file-remove:hover, .close-button:hover { background: #4a2429; }

.site-footer { border-top: 1px solid #25252a; background: #0a0a0c; }
.footer-inner { display: flex; align-items: center; gap: 19px; min-height: 80px; padding-block: 17px; color: var(--muted); font-size: .8125rem; }
.site-footer .brand { font-size: 26px; }
.site-footer .bolt { width: 17px; height: 21px; }
.footer-contact { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #dddbe0; font-weight: 600; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--red-text); }

.result { position: fixed; width: min(440px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 27px; background: #18181c; border: 1px solid #493638; color: white; border-radius: 15px; }
.result::backdrop { background: #050507c9; }
.close-button { position: absolute; top: 15px; right: 15px; }
.success-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #491e24; color: #ff787e; }
.success-icon .icon { width: 26px; height: 26px; }
.result h2 { margin: 12px 0 8px; font: 600 2.15rem/1.15 var(--display); }
.result p { color: #c4c0ca; font-size: .9375rem; line-height: 1.6; }
.result .summary-details { margin-bottom: 17px; }
.result .button { width: 100%; margin-top: 8px; }
.result .button .icon { width: 18px; height: 18px; }

@media (max-width: 1040px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; }
  .choice { padding-inline: 11px; gap: 10px; }
  .choice .type-icon { width: 40px; height: 40px; }
  .hero-visual { left: 31%; }
}

@media (max-width: 810px) {
  .container { width: calc(100% - 44px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .hero-inner { padding-bottom: 37px; }
  .hero-visual { left: 28%; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; grid-template-columns: 1fr auto; }
  .header-inner .brand { font-size: 28px; }
  .site-nav { display: none; }
  .hero-inner { padding-block: 22px 23px; }
  .hero-visual { inset: auto 0 0 0; height: 65%; }
  .hero-visual img { object-position: center 53%; }
  .hero-visual::after { background: linear-gradient(180deg, #100e11 0%, #100e1126 45%, transparent 65%); }
  .hero h1 { margin-top: 22px; font-size: clamp(2.55rem, 10.1vw, 3.65rem); }
  .hero p { max-width: 335px; margin-bottom: clamp(136px, 38vw, 195px); color: #dedbe0; font-size: .875rem; }
  .configurator { padding-block: 18px 37px; }
  .steps { gap: 6px; }
  .step { min-height: 65px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 2px; font-size: .75rem; text-align: center; }
  .step-number { width: 25px; height: 25px; font-size: .75rem; }
  .workspace { margin-top: 25px; }
  .choice { min-height: 86px; }
  .type-list { grid-template-columns: 1fr; gap: 8px; }
  .additional-types { margin-top: 8px; }
  .choice-mark { align-self: center; }
  .fields { gap: 9px; }
  .contact-fields .fields { grid-template-columns: 1fr; }
  .panel-actions .button { padding-inline: 15px; }
  .panel-actions-end .button { width: 100%; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-contact { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
