:root {
  --blue: #0784ce;
  --blue-dark: #006dad;
  --ink: #17242a;
  --muted: #69767c;
  --soft: #f3f5f5;
  --wash: #eaf7fe;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button { font: inherit; }
button:focus-visible { outline: 3px solid #9edafa; outline-offset: 3px; }

.hero {
  width: min(calc(100% - 48px), 1600px);
  margin: 0 auto;
  padding: 68px 0 70px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 3.2vw, 54px);
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--blue); font-weight: 700; }
.hero h2 { margin: 16px 0 0; font-size: clamp(18px, 1.4vw, 23px); font-weight: 400; }
.intro {
  max-width: 920px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.steps { display: flex; align-items: center; justify-content: center; margin-top: 46px; }
.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 190px;
  padding: 13px 10px 11px;
  border: 2px solid transparent;
  border-radius: 13px;
  opacity: .42;
  transition: opacity .2s, border-color .2s, background .2s, box-shadow .2s;
}
.step-item.active {
  border-color: var(--blue);
  background: #f2faff;
  box-shadow: 0 9px 25px rgba(7,132,206,.14);
  opacity: 1;
}
.step-item.active::before {
  content: "CURRENT";
  position: absolute;
  top: -10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.step-item.complete { opacity: .78; }
.step-item.complete .step-icon::after {
  content: "✓";
  position: absolute;
  right: -5px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  transition: background .2s, transform .2s;
}
.step-icon img { width: 35px; height: 35px; }
.step-item.active .step-icon { background: #dff3ff; transform: scale(1.08); }
.step-item strong { margin-top: 5px; color: #63747b; font-size: 20px; }
.step-item.active strong { color: var(--blue); }
.step-item span { margin-top: 4px; font-size: 15px; }
.step-arrow { width: 80px; color: #cbd4d7; font-size: 35px; transition: color .2s; }
.step-arrow.complete { color: var(--blue); }

.catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: start;
  width: min(calc(100% - 48px), 1600px);
  margin: 0 auto;
  padding-bottom: 90px;
}
.category-tabs { display: flex; gap: 18px; margin-bottom: 34px; }
.category-tabs button {
  min-width: 154px;
  padding: 13px 25px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--soft);
  color: #768187;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
.category-tabs button.active {
  border-color: var(--blue);
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.product-card { min-width: 0; }
.product-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #eef2f0;
  cursor: pointer;
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.product-card.selected .product-image { border-color: var(--blue); }
.product-image:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24, 50, 56, .13); }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-image, .sample-image { position: absolute; inset: 0; transition: opacity .35s ease, transform .5s ease; }
.sample-image { opacity: 0; transform: scale(1.035); }
.product-image:hover .scene-image, .product-image:focus-visible .scene-image { opacity: 0; transform: scale(1.025); }
.product-image:hover .sample-image, .product-image:focus-visible .sample-image { opacity: 1; transform: scale(1); }
.hover-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 20px;
  background: rgba(21, 35, 40, .76);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}
.product-image:hover .hover-label { opacity: 1; }
.product-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 12px; }
.product-info h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.product-info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.add-button {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e4e7e6;
  cursor: pointer;
  font-size: 20px;
  line-height: 27px;
}
.selected .add-button { background: var(--blue); color: #fff; font-size: 15px; }

.sidebar { position: sticky; top: 24px; padding-top: 84px; }
.sample-panel { padding: 30px; border-radius: 12px; background: var(--wash); }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.panel-icon { color: #87969a; font-size: 28px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.panel-heading strong { color: var(--blue); }
.sample-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.selected-sample, .empty-slot {
  position: relative;
  min-height: 193px;
  overflow: hidden;
  border: 2px dashed #d8dfdf;
  border-radius: 8px;
  background: rgba(255,255,255,.8);
}
.selected-sample { display: flex; flex-direction: column; border-style: solid; background: #fff; }
.sample-mini { flex: 1; min-height: 0; }
.sample-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
.selected-sample > span { min-height: 44px; padding: 7px 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.remove-button {
  position: absolute;
  z-index: 2;
  top: -1px;
  right: -1px;
  width: 31px;
  height: 31px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}
.empty-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #3b474b; cursor: pointer; }
.empty-slot:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.empty-icon { color: #8a9699; font-size: 28px; }
.next-button {
  width: 100%;
  margin-top: 25px;
  padding: 15px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.next-button:hover { background: var(--blue-dark); }
.next-button:disabled { cursor: not-allowed; opacity: .45; }
.mobile-bar, .drawer-backdrop { display: none; }
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 32px;
  display: none;
  padding: 13px 20px;
  border-radius: 30px;
  background: #17282f;
  color: #fff;
  box-shadow: 0 9px 30px rgba(0,0,0,.2);
  font-size: 14px;
  transform: translateX(-50%);
}

.details-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: start;
  width: min(calc(100% - 48px), 1260px);
  margin: 0 auto;
  padding: 0 0 90px;
}
.details-step[hidden], .success-step[hidden] { display: none; }
.form-card {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid #e1e8ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(26, 59, 70, .08);
}
.section-heading { margin-bottom: 33px; }
.section-kicker, .summary-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
}
.section-heading h2, .success-step h2 { margin: 0; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #ced9dc;
  border-radius: 7px;
  background: #fbfcfc;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input, .field select { min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7,132,206,.12);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5a9; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.back-button, .edit-samples {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  cursor: pointer;
  font-weight: 700;
}
.submit-button {
  padding: 15px 24px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.submit-button:hover { background: var(--blue-dark); }
.order-summary {
  position: sticky;
  top: 24px;
  padding: 30px;
  border-radius: 12px;
  background: var(--wash);
}
.order-summary h2 { margin: 0 0 23px; font-size: 22px; }
.summary-items { display: grid; gap: 12px; }
.summary-item { display: grid; grid-template-columns: 74px 1fr; gap: 13px; align-items: center; padding: 9px; border-radius: 8px; background: #fff; }
.summary-thumb { aspect-ratio: 1.12; overflow: hidden; border-radius: 5px; background: #e5e9e7; }
.summary-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.summary-item strong { font-size: 13px; line-height: 1.35; }
.edit-samples { margin-top: 20px; padding: 0; }
.delivery-note { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cfe4ef; font-size: 13px; }
.delivery-note span { color: var(--muted); line-height: 1.5; }
.success-step {
  width: min(calc(100% - 30px), 760px);
  margin: 0 auto;
  padding: 20px 0 100px;
  text-align: center;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 36px;
}
.success-step > p:not(.section-kicker) { max-width: 620px; margin: 18px auto 0; color: var(--muted); line-height: 1.7; }
.success-samples { display: flex; justify-content: center; gap: 12px; margin: 32px 0; }
.success-sample { width: 112px; overflow: hidden; border: 1px solid #e0e7e9; border-radius: 7px; background: #fff; }
.success-sample img { display: block; width: 100%; aspect-ratio: 1.48; object-fit: cover; }
.success-sample span { display: block; min-height: 42px; padding: 7px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; }

@media (max-width: 1280px) {
  .catalog { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .sample-panel { padding: 23px; }
  .selected-sample, .empty-slot { min-height: 170px; }
}
@media (max-width: 1020px) {
  .catalog { display: block; padding-bottom: 110px; }
  .sidebar { display: none; }
  .mobile-bar {
    position: fixed;
    z-index: 20;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    justify-content: space-between;
    padding: 15px 19px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 28px rgba(0,78,124,.32);
    cursor: pointer;
  }
  .drawer-backdrop.open {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(15,30,37,.48);
  }
  .drawer-content { position: relative; width: min(100%, 560px); max-height: 88vh; overflow-y: auto; }
  .drawer-close { position: absolute; z-index: 3; top: 14px; right: 16px; border: 0; background: none; cursor: pointer; font-size: 28px; }
  .details-step { grid-template-columns: 1fr; width: min(calc(100% - 36px), 760px); }
  .order-summary { position: static; grid-row: 1; }
}
@media (max-width: 760px) {
  .hero, .catalog { width: min(calc(100% - 30px), 1600px); }
  .hero { padding: 39px 0 44px; }
  .intro { font-size: 14px; }
  .steps { margin-top: 34px; }
  .step-item { flex: 1; min-width: 0; }
  .step-item { padding: 12px 4px 9px; }
  .step-icon { width: 42px; height: 42px; }
  .step-icon img { width: 28px; height: 28px; }
  .step-item.active::before { top: -8px; font-size: 7px; }
  .step-item strong { font-size: 15px; }
  .step-item span { max-width: 95px; font-size: 11px; }
  .step-arrow { display: none; }
  .category-tabs { gap: 8px; margin-bottom: 22px; overflow-x: auto; }
  .category-tabs button { min-width: 105px; padding: 10px 17px; font-size: 15px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 13px; }
  .product-info h3 { font-size: 13px; }
  .product-info p { font-size: 11px; }
  .hover-label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .submit-button, .back-button { width: 100%; min-height: 48px; }
  .success-samples { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
