* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at 12% 9%, rgba(14, 165, 233, .24), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(245, 158, 11, .20), transparent 25%),
    linear-gradient(135deg, #f8fafc 0%, #eef7fb 46%, #fff4e6 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero,
.layout,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1320px;
  min-height: 330px;
  margin: 16px auto 28px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .20);
  background:
    linear-gradient(110deg, rgba(8, 47, 73, .98), rgba(14, 116, 144, .84)),
    url('/ladder-1.png') right center / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 50px 44px;
  color: #fff;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: .98;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .93);
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 15px;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.layout {
  max-width: 1320px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.section-head {
  margin-bottom: 22px;
}

.section-head span {
  color: #0e7490;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.section-head h2 {
  margin: 8px 0 8px;
  font-size: 38px;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card,
.cart__box,
.footer {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(148, 163, 184, .26);
  box-shadow: 0 22px 50px rgba(15, 23, 42, .10);
  backdrop-filter: blur(10px);
}

.product-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .16);
}

.product-image {
  position: relative;
  height: 290px;
  background: #e2e8f0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-image.no-image::after {
  content: 'Нет изображения';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-weight: 700;
}

.product-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 14px;
  color: #fff;
  background: #08324f;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.product-info {
  padding: 20px;
}

.status {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 800;
  font-size: 13px;
}

.product-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.22;
}

.product-info p {
  min-height: 46px;
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.45;
}

.product-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.product-actions strong {
  font-size: 26px;
  white-space: nowrap;
}

.product-actions button,
.order-form button {
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f7490, #08324f);
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

.product-actions button {
  padding: 13px 18px;
}

.product-actions button:hover,
.order-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.cart {
  position: sticky;
  top: 18px;
}

.cart__box {
  border-radius: 24px;
  padding: 24px;
}

.cart__box h2,
.cart__box h3 {
  margin: 0 0 16px;
}

.cart-empty,
.empty-block,
.loading {
  padding: 18px;
  border-radius: 18px;
  background: rgba(241, 245, 249, .9);
  color: #64748b;
  line-height: 1.45;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.cart-name {
  display: grid;
  gap: 5px;
}

.cart-name span {
  color: #64748b;
  font-size: 14px;
}

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

.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: #0f7490;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 22px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #08324f, #0f7490);
  font-size: 20px;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form input,
.order-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  font: inherit;
  background: rgba(255, 255, 255, .92);
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: #0e7490;
  box-shadow: 0 0 0 4px rgba(14, 116, 144, .12);
}

.order-form textarea {
  min-height: 84px;
  resize: vertical;
}

.order-form button {
  padding: 15px;
  font-size: 16px;
}

.message {
  margin-top: 12px;
  min-height: 20px;
  font-weight: 700;
}

.message-success {
  color: #047857;
}

.message-error {
  color: #dc2626;
}

.footer {
  max-width: 1320px;
  margin: 32px auto 40px;
  border-radius: 22px;
  padding: 26px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .cart {
    position: static;
  }
}

@media (max-width: 760px) {
  .hero,
  .layout,
  .footer {
    margin-left: 12px;
    margin-right: 12px;
  }

  .hero__inner {
    padding: 34px 24px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 250px;
  }
}
