.gfp {
  --gfp-red: #e5281d;
  --gfp-red-dark: #bd1f16;
  --gfp-ink: #1f2328;
  --gfp-muted: #667085;
  --gfp-line: #e4e7ec;
  --gfp-soft: #f7f8fa;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 64px;
  color: var(--gfp-ink);
}

.gfp * { box-sizing: border-box; }

.gfp__hero {
  position: relative;
  overflow: hidden;
  padding: 38px 42px;
  color: #fff;
  background: linear-gradient(118deg, #111 0%, #242424 72%, #3b0d0a 100%);
  border-radius: 16px 16px 0 0;
}

.gfp__hero::after {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -90px;
  width: 300px;
  height: 220px;
  border: 34px solid rgba(229, 40, 29, .55);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.gfp__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #ff4c3f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
}

.gfp__title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.gfp__intro {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
}

.gfp__panel {
  padding: 30px 34px 32px;
  background: #fff;
  border: 1px solid var(--gfp-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 45px rgba(16, 24, 40, .08);
}

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

.gfp__field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding-left: 34px;
}

.gfp__field--wide { grid-column: span 2; }

.gfp__field-number {
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--gfp-red);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.gfp__label {
  min-height: 24px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.gfp__select {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 13px;
  color: var(--gfp-ink);
  background-color: #fff;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.gfp__select:hover:not(:disabled) { border-color: #98a2b3; }
.gfp__select:focus {
  outline: 0;
  border-color: var(--gfp-red);
  box-shadow: 0 0 0 3px rgba(229, 40, 29, .13);
}
.gfp__select:disabled {
  color: #98a2b3;
  background-color: #f2f4f7;
  cursor: not-allowed;
}

.gfp__loader,
.gfp__message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.gfp__loader[hidden], .gfp__message[hidden] { display: none; }
.gfp__loader { color: #475467; background: var(--gfp-soft); }
.gfp__message { color: #475467; background: #f2f4f7; }
.gfp__message--error { color: #a61b12; background: #fff0ef; border: 1px solid #ffc7c2; }

.gfp__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #d0d5dd;
  border-top-color: var(--gfp-red);
  border-radius: 50%;
  animation: gfp-spin .8s linear infinite;
}

@keyframes gfp-spin { to { transform: rotate(360deg); } }

.gfp__results {
  scroll-margin-top: 24px;
  margin-top: 42px;
}

.gfp__results[hidden] { display: none; }
.gfp__results-head { margin-bottom: 26px; }
.gfp__results-kicker {
  margin: 0 0 8px;
  color: var(--gfp-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gfp__results-title {
  margin: 0;
  color: var(--gfp-ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.gfp-axis { margin-top: 34px; }
.gfp-axis__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gfp-ink);
  font-size: 22px;
}
.gfp-axis__title::before {
  content: '';
  width: 5px;
  height: 28px;
  background: var(--gfp-red);
  border-radius: 3px;
}
.gfp-axis__cards { display: grid; gap: 18px; }

.gfp-pad {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--gfp-line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .055);
}

.gfp-pad__head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  background: linear-gradient(90deg, #fff, #fafafa);
  border-bottom: 1px solid var(--gfp-line);
}

.gfp-pad__image {
  display: grid;
  width: 160px;
  height: 120px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 10px;
}
.gfp-pad__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gfp-pad__no-image { padding: 12px; color: #98a2b3; font-size: 12px; text-align: center; }
.gfp-pad__type { color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gfp-pad__title { margin: 5px 0 13px; color: var(--gfp-ink); font-size: 29px; line-height: 1.1; }
.gfp-pad__positions { display: flex; flex-wrap: wrap; gap: 7px; }
.gfp-position {
  display: inline-flex;
  padding: 5px 9px;
  color: #9f2018;
  background: #fff0ef;
  border: 1px solid #ffd0cc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.gfp-compounds { padding: 0 24px 6px; }
.gfp-compound {
  display: grid;
  grid-template-columns: minmax(230px, 1.8fr) minmax(145px, .9fr) 120px minmax(145px, .9fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.gfp-compound:last-child { border-bottom: 0; }
.gfp-compound a { text-decoration: none; }
.gfp-compound__name { display: flex; min-width: 0; align-items: baseline; gap: 10px; color: var(--gfp-ink); }
.gfp-compound__name strong { flex: 0 0 auto; color: var(--gfp-red); font-size: 19px; }
.gfp-compound__material { overflow: hidden; color: #667085; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.gfp-stock {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.gfp-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.gfp-stock--in { color: #16803c; }
.gfp-stock--in::before { background: #20a956; }
.gfp-stock--order { color: #996400; }
.gfp-stock--order::before { background: #e3a008; }
.gfp-stock--out { color: #8a94a6; }
.gfp-stock--out::before { background: #aeb6c2; }
.gfp-compound__price { color: var(--gfp-ink); font-size: 17px; font-weight: 800; white-space: nowrap; }
.gfp-compound__action { display: flex; justify-content: flex-end; }
.gfp__details {
  display: inline-flex;
  min-width: 120px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  color: #fff !important;
  background: var(--gfp-red) !important;
  border: 0 !important;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.gfp__details:hover { background: var(--gfp-red-dark) !important; transform: translateY(-1px); }
.gfp__details--muted { background: #98a2b3 !important; }
.gfp__details--muted:hover { background: #7f8998 !important; }

.gfp-materials {
  margin-top: 42px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--gfp-line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .055);
}
.gfp-materials__title {
  margin: 0;
  color: var(--gfp-ink);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}
.gfp-materials__intro {
  margin: 9px 0 20px;
  color: var(--gfp-muted);
  font-size: 14px;
  line-height: 1.55;
}
.gfp-materials__image-link {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 10px;
}
.gfp-materials__image {
  display: block;
  width: 100%;
  height: auto;
}
.gfp-materials__hint {
  margin: 10px 0 0;
  color: #7d8796;
  font-size: 12px;
  text-align: center;
}

.gfp__note {
  margin-top: 30px;
  padding: 16px 18px;
  color: #5d6675;
  background: #f7f8fa;
  border-left: 4px solid #98a2b3;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .gfp__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gfp__field--wide { grid-column: span 2; }
  .gfp-compound { grid-template-columns: minmax(200px, 1.5fr) 135px 110px 135px; gap: 12px; }
}

@media (max-width: 720px) {
  .gfp { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .gfp__hero { padding: 28px 22px; border-radius: 12px 12px 0 0; }
  .gfp__hero::after { opacity: .45; }
  .gfp__panel { padding: 22px 18px; border-radius: 0 0 12px 12px; }
  .gfp__steps { grid-template-columns: 1fr; gap: 16px; }
  .gfp__field--wide { grid-column: auto; }
  .gfp-pad__head { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; padding: 17px; }
  .gfp-pad__image { width: 105px; height: 90px; }
  .gfp-pad__title { font-size: 24px; }
  .gfp-compounds { padding: 0 17px 6px; }
  .gfp-compound {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 15px 0;
  }
  .gfp-compound__name { grid-column: 1 / -1; }
  .gfp-compound__material { white-space: normal; }
  .gfp-stock { grid-column: 1; }
  .gfp-compound__price { grid-column: 2; grid-row: 2; text-align: right; }
  .gfp-compound__action { grid-column: 1 / -1; justify-content: stretch; margin-top: 5px; }
  .gfp__details { width: 100%; }
  .gfp-materials { margin-top: 30px; padding: 18px; }
}

@media (max-width: 420px) {
  .gfp-pad__head { grid-template-columns: 1fr; }
  .gfp-pad__image { width: 100%; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .gfp__spinner { animation-duration: 1.8s; }
  .gfp__details { transition: none; }
}
