* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f7f7f7;
  color: #20232a;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
}

.subtitle {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
}

.card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 8px;
}

.compact-card {
  padding: 10px 12px;
}

.top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
  gap: 8px;
  align-items: start;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 8px;
}

.left-col {
  min-width: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 13px;
  color: #374151;
}

.checkbox-field {
  justify-content: end;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 13px;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  border: 1px solid #dedede;
  border-radius: 16px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}

.slider-row {
  margin-bottom: 10px;
}

.slider-row label {
  display: block;
  margin-bottom: 8px;
}

.hint {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.result h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #20232a;
  text-align: center;
}

.price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #20232a;
  text-align: center;
}

.details {
  color: #374151;
  line-height: 1.4;
  margin-bottom: 8px;
  text-align: center;
}

.result-bonuses {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.bonus-item-inline {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 40px;
}

.bonus-label {
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bonus-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bonus-free {
  background: #f3cc63;
  color: #20232a;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  text-transform: lowercase;
}

.bonus-old {
  color: #9ca3af;
  text-decoration: line-through;
  white-space: nowrap;
}

.note h3 {
  margin-top: 0;
}

.note ul {
  margin: 0 0 10px 18px;
}

.small {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.compare h3,
.bonus h3 {
  margin-top: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  padding: 8px 6px;
  line-height: 1.35;
}

.compare-table th {
  background: #f8f8f8;
  font-weight: 700;
}

.compare-table td:first-child {
  width: 165px;
  font-weight: 700;
}

.price-row td {
  background: #fff8dc;
  font-size: 14px;
}

.price-row td:nth-child(2),
.price-row td:nth-child(3) {
  font-weight: 700;
}

.cta-block {
  margin: 0;
  display: none;
}

.cta-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: #20232a;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cta-btn:hover {
  background: #121418;
}

.result-cta {
  margin-top: 2px;
}

.bonus-list {
  margin: 0 0 6px 18px;
  padding: 0;
  line-height: 1.35;
}

.bonus-final {
  margin: 0;
  color: #111827;
  font-weight: 600;
}

.bottom-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}

.result.card {
  background: #f3cc63;
  border-color: #f3cc63;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #f1d27b;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1c74b;
  border: 2px solid #ffffff;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1c74b;
  border: 2px solid #ffffff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .top-layout,
  .bottom-layout {
    grid-template-columns: 1fr;
  }

  .bonus-item-inline {
    flex-wrap: wrap;
  }
}
