:root {
  --bg: #f5f6f7;
  --panel: #ffffff;
  --panel-strong: #eef7f6;
  --ink: #111111;
  --soft: #5c656b;
  --accent: #800000;
  --accent-dark: #5f0000;
  --teal: #16a29a;
  --charcoal: #383e42;
  --line: #d3d3d3;
  --highlight: #eef7f6;
  --shadow: 0 14px 34px rgba(56, 62, 66, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(22, 162, 154, 0.05) 0%, rgba(22, 162, 154, 0) 38%),
    linear-gradient(180deg, #fbfbfb 0%, #eef1f2 100%);
}

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

.top-utility-bar {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.utility-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.utility-home-link {
  color: #fff;
  text-decoration: none;
}

.utility-home-link:hover {
  text-decoration: underline;
}

.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 18px 48px;
}

.hero {
  display: block;
  margin-bottom: 24px;
}

.hero h1,
.section-heading h2 {
  margin: 0 0 8px;
  font-family: "Lato", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-main {
  text-align: center;
  position: relative;
}

.hero-banner {
  display: inline-block;
  position: relative;
  margin-bottom: 16px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #8a0d0d 0%, #800000 58%, #6d0000 100%);
  clip-path: none;
  box-shadow: 0 18px 36px rgba(128, 0, 0, 0.22);
}

.hero-banner h1 {
  margin: 0;
  color: #fff;
}

.brand-logo {
  display: block;
  max-width: 225px;
  width: 100%;
  height: auto;
  margin: 0 auto 14px;
}

.intro,
.section-heading p,
.hero-list {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0 72%, var(--teal) 72% 100%);
}

.step-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f7f9f9 0%, #fff 100%);
}

.step-overview-card {
  position: relative;
  padding: 10px 8px;
}

.step-overview-card h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.step-overview-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-panel {
  position: static;
}

.field-row,
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label,
fieldset {
  display: block;
}

label {
  color: var(--soft);
  margin-bottom: 14px;
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 162, 154, 0.14);
}

.field-error {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.14) !important;
  background: rgba(128, 0, 0, 0.03);
}

.customer-details-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(128, 0, 0, 0.28);
  border-left: 6px solid var(--accent);
  background: rgba(128, 0, 0, 0.06);
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

textarea {
  resize: vertical;
}

.purchase-type {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.purchase-type legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.pill-row {
  display: flex;
  gap: 10px;
}

.pill-option {
  margin: 0;
}

.pill-option input {
  display: none;
}

.pill-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--soft);
  cursor: pointer;
  font-weight: 600;
}

.pill-option input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.purchase-type-summary {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(22, 162, 154, 0.08) 0%, #fff 52%);
}

.purchase-type-summary strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 18px;
}

.purchase-type-summary p {
  margin: 0;
  color: var(--soft);
}

.section-heading {
  margin-bottom: 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--soft);
  cursor: pointer;
  font-weight: 600;
}

.filter-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  font-weight: 700;
}

.selection-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 0;
  background: var(--panel-strong);
  color: var(--soft);
  border-left: 4px solid var(--teal);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 520px;
  max-height: 70vh;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
}

.product-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.product-card:hover {
  transform: translateY(-1px);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(56, 62, 66, 0.1);
}

.product-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, #fff 48%);
}

.product-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.product-title {
  color: var(--ink);
  font-family: "Lato", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 0;
  background: rgba(128, 0, 0, 0.08);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-price {
  color: var(--accent-dark);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--soft);
  text-align: center;
}

.actions {
  margin-top: 14px;
}

.preview-actions {
  padding-top: 8px;
}

button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 140ms ease, background 140ms ease;
}

button[type="submit"]:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.preview-panel {
  margin-top: 18px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
}

.support-panel {
  display: flex;
  flex-direction: column;
}

.accordion-panel {
  overflow: hidden;
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.accordion-summary h2 {
  margin: 0 0 8px;
}

.accordion-summary p {
  margin: 0;
  color: var(--soft);
}

.accordion-summary::after {
  content: "+";
  margin-left: 16px;
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.accordion-panel[open] .accordion-summary::after {
  content: "-";
}

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

.accordion-panel > :not(summary) {
  margin-top: 18px;
}

.compact-row {
  margin-top: 2px;
  margin-bottom: 10px;
}

.request-options {
  flex: 1 1 auto;
  min-height: 360px;
  max-height: 360px;
  overflow: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.request-summary {
  margin: 0 0 14px;
}

.request-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.request-card.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, #fff 48%);
}

.support-panel button[type="submit"] {
  margin-top: 8px;
}

.support-form label:last-of-type {
  margin-top: auto;
}

.support-status {
  min-height: 24px;
  margin: 10px 2px 0;
  color: var(--soft);
}

.support-status[data-state="success"] {
  color: #2a6b3f;
}

.support-status[data-state="error"] {
  color: #9b2335;
}

.content-panel {
  margin-top: 18px;
}

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

.content-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  text-align: center;
  position: relative;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, transparent 0 49%, rgba(22, 162, 154, 0.18) 50% 100%);
}

.content-card h3 {
  margin: 0 0 10px;
  font-family: "Lato", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

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

.content-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.55;
  text-align: left;
}

.content-list li + li {
  margin-top: 10px;
}

.order-preview {
  display: grid;
  gap: 16px;
}

.empty-summary {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--soft);
  text-align: center;
}

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

.summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.summary-card strong,
.total-card strong {
  display: block;
  margin: 6px 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 24px;
}

.summary-card p {
  margin: 0;
  color: var(--soft);
}

.summary-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.total-card {
  background: linear-gradient(135deg, rgba(22, 162, 154, 0.08) 0%, #fff 52%);
}

.summary-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}

.summary-list-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.summary-list-header h3,
.summary-item h3 {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
}

.summary-list-header span {
  color: var(--soft);
}

.summary-group {
  border-top: 1px solid #efe3d6;
  padding-top: 16px;
  margin-top: 16px;
}

.summary-group:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.summary-group-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 0;
  list-style: none;
  cursor: pointer;
}

.summary-group-header h3 {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
}

.summary-group-header p {
  margin: 4px 0 0;
  color: var(--soft);
}

.summary-group-meta {
  min-width: 0;
}

.summary-group-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.summary-group-items {
  padding-top: 12px;
  padding-left: 14px;
  border-left: 2px solid #efe3d6;
}

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

.summary-group-header::after {
  content: "+";
  margin-left: 12px;
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.summary-group[open] .summary-group-header::after {
  content: "-";
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #efe3d6;
}

.summary-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-item h4 {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.summary-item p {
  margin: 4px 0 0;
  color: var(--soft);
}

.summary-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.summary-remove {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.summary-remove:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.summary-group-remove {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.summary-group-remove:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer {
  margin-top: 48px;
}

.site-footer-main {
  background:
    linear-gradient(rgba(56, 62, 66, 0.92), rgba(56, 62, 66, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 24%, transparent 24% 100%);
  color: #fff;
}

.site-footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 18px;
  display: grid;
  grid-template-columns: 320px 220px 320px;
  gap: 88px;
  align-items: start;
  justify-content: center;
}

.footer-column {
  width: 100%;
}

.footer-column:nth-child(2) {
  justify-self: center;
}

.footer-column h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
}

.footer-column p,
.footer-column li,
.footer-column a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.7;
  text-decoration: none;
  text-align: left;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li + li {
  margin-top: 6px;
}

.site-footer-bottom {
  background: var(--accent);
  color: #fff;
}

.site-footer-bottom-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
}

.site-footer-bottom-inner a {
  color: #fff;
  text-decoration: underline;
}

.site-footer-bottom-inner a:hover {
  text-decoration: none;
}

@media (max-width: 1120px) {
  .step-overview {
    grid-template-columns: 1fr;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .catalog {
    grid-template-columns: 1fr;
    min-height: 420px;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .utility-inner,
  .field-row,
  .filter-grid,
  .summary-grid,
  .support-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pill-row,
  .selection-bar {
    flex-direction: column;
  }

  .product-card {
    grid-template-columns: 28px 1fr;
  }

  .product-price {
    grid-column: 2;
  }
}
