:root {
  --blue: #1e1c77;
  --blue-strong: #17155f;
  --green: #0aa82c;
  --ink: #101116;
  --muted: #69707f;
  --line: #dfe3ee;
  --surface: #ffffff;
  --surface-soft: #f6f7fb;
  --graphite: #2f3032;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--graphite);
  color: var(--ink);
  font-family: Inter, Manrope, Arial, sans-serif;
  font-size: 14px;
}

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

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

.quote-header {
  background: var(--surface);
  border-bottom: 1px solid #e8eaf2;
}

.quote-header__inner {
  width: min(1240px, calc(100% - 56px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.quote-brand img {
  display: block;
  width: 168px;
  max-height: 58px;
}

.quote-header__title {
  text-align: right;
}

.quote-header__title span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quote-header__title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.quote-page {
  min-height: calc(100vh - 96px);
  padding: 44px 0 72px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 340px),
    radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.5px) 0 0 / 26px 26px,
    var(--graphite);
}

.quote-shell {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}

.quote-hero {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 560px);
  gap: 32px;
  align-items: end;
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quote-hero h2 {
  max-width: 620px;
  margin: 0;
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.06;
}

.quote-hero__subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  font-weight: 600;
}

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.metric-card span {
  display: block;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.products-card,
.details-card,
.empty-card,
.result-card--error {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.products-card {
  padding: 22px;
}

.products-card__header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.products-card .eyebrow,
.details-card .eyebrow,
.empty-card .eyebrow {
  color: var(--blue);
}

.products-card h2,
.details-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.products-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.quote-badge {
  flex: 0 0 auto;
  min-width: 96px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--blue);
  background: #f0f1ff;
  font-weight: 800;
  text-align: center;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.products-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.products-table th {
  height: 46px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.products-table td {
  height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  vertical-align: middle;
}

.products-table tr:nth-child(even) td {
  background: #fbfcff;
}

.products-table tr:last-child td {
  border-bottom: 0;
}

.item-index {
  width: 56px;
  color: var(--blue);
  font-weight: 800;
}

.description-cell {
  min-width: 340px;
  font-weight: 700;
}

.quote-input,
.detail-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-bottom-color: #a6abc0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.quote-input {
  min-width: 92px;
  padding: 6px 0;
}

.quote-input:focus,
.detail-input:focus {
  border-bottom-color: var(--blue);
  background: #fbfbff;
  box-shadow: 0 1px 0 var(--blue);
}

.quote-details {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 520px);
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  min-height: 100%;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(30, 28, 119, .72), rgba(16, 17, 22, .62));
}

.contact-panel h2 {
  max-width: 420px;
  margin: 0 0 26px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
}

.support-links {
  display: grid;
  gap: 10px;
}

.support-links a {
  width: fit-content;
  color: #fff;
  font-weight: 700;
}

.support-links a:hover {
  color: var(--green);
}

.details-card {
  padding: 30px;
}

.details-card__header {
  margin-bottom: 20px;
}

.details-card label {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.details-card label:first-of-type {
  margin-top: 0;
}

.detail-input {
  min-height: 42px;
  padding: 8px 0;
}

select.detail-input {
  cursor: pointer;
}

.detail-textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.submit-button:hover {
  background: var(--green);
  box-shadow: 0 16px 36px rgba(10, 168, 44, .24);
}

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

.empty-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 42px;
  text-align: center;
}

.empty-card img {
  width: 170px;
  margin-bottom: 24px;
}

.empty-card h2 {
  margin: 0 0 10px;
  color: var(--blue);
}

.empty-card p {
  margin: 0;
  color: var(--muted);
}

.quote-page--result {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.result-card {
  max-width: 680px;
  padding: 54px 0;
  color: #fff;
}

.result-card img {
  width: 78px;
  margin-bottom: 26px;
}

.result-card .eyebrow {
  color: var(--green);
}

.result-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.05;
}

.result-card p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.6;
}

.result-card--error {
  padding: 44px;
}

.result-contacts {
  margin-top: 30px;
  display: grid;
  gap: 10px;
}

.result-contacts a {
  width: fit-content;
  color: #fff;
  font-weight: 800;
}

.result-contacts a:hover {
  color: var(--green);
}

.quote-footer {
  background: #050506;
  color: #fff;
  padding: 42px 0;
}

.quote-footer__inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 86px repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.quote-footer img {
  width: 78px;
  align-self: start;
}

.quote-footer strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
}

.quote-footer a,
.quote-footer span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, .82);
}

.quote-footer a:hover {
  color: var(--green);
}

@media (max-width: 1080px) {
  .quote-hero,
  .quote-details {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .quote-header__inner,
  .quote-shell,
  .quote-footer__inner {
    width: min(100% - 32px, 1240px);
  }

  .quote-header__inner {
    min-height: 86px;
  }

  .quote-header__title h1 {
    font-size: 22px;
  }

  .quote-hero h2,
  .result-card h2 {
    font-size: 34px;
  }

  .products-card,
  .details-card,
  .contact-panel,
  .empty-card,
  .result-card--error {
    padding: 22px;
  }

  .products-card__header {
    display: block;
  }

  .quote-badge {
    width: fit-content;
    margin-top: 14px;
  }

  .quote-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .quote-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
  }

  .quote-header__title {
    text-align: left;
  }

  .quote-page {
    padding-top: 28px;
  }

  .quote-metrics,
  .quote-footer__inner {
    grid-template-columns: 1fr;
  }
}
