* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #fff5f5 0%, #fff8f8 100%);
  color: #1a1a1a;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  place-items: center;
  background: linear-gradient(125deg, #7d0f16, #c82333);
  color: #fff;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, #ffffff33, transparent 48%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.section {
  padding: 54px 0;
}

h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #9b111e;
}

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

.model-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px #092b5812;
  border: 1px solid #e9eef8;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px #092b581c;
}

.model-card.is-selected {
  border-color: #c82333;
  box-shadow: 0 16px 32px #c8233340;
}

.model-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #f2f6fd;
  padding: 8px;
}

.model-card__body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.model-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.price {
  margin: 0;
  color: #0c3776;
  font-weight: 700;
}

.order-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px #092b5812;
  border: 1px solid #e9eef8;
  padding: 20px;
  display: grid;
  gap: 11px;
}

label {
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d9e2;
  border-radius: 10px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #1c6dda;
  border-color: transparent;
}

.selected-model {
  padding: 12px;
  border-radius: 10px;
  background: #ffecee;
  color: #8f0c1b;
  font-weight: 600;
  border: 1px solid #ffc7cd;
}

.btn {
  border: 0;
  background: linear-gradient(90deg, #a31220, #d72638);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: linear-gradient(90deg, #850d18, #bd2030);
}

.btn--light {
  background: #fff;
  color: #a31220;
}

.btn--light:hover {
  background: #f2f6ff;
}

.status-message {
  min-height: 24px;
  font-weight: 600;
}

.status-message.success {
  color: #157347;
}

.status-message.error {
  color: #c1121f;
}

.global-message {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 92%);
  z-index: 2000;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px #00000024;
  border: 1px solid transparent;
  display: none;
}

.global-message.show {
  display: block;
}

.global-message.success {
  background: #e8f8ee;
  color: #0f6b3d;
  border-color: #b8e6c8;
}

.global-message.error {
  background: #fff0f1;
  color: #b4232c;
  border-color: #ffc5ca;
}

.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .hero {
    min-height: 50vh;
  }

  .hero p {
    font-size: 1rem;
  }
}

.footer {
  background: #7d0f16;
  color: #fff;
  text-align: center;
  padding: 18px 0;
}
