:root {
  --ink: #24151f;
  --muted: #76616f;
  --cream: #fff7ef;
  --rose: #f6dfe7;
  --berry: #7e3158;
  --berry-dark: #532139;
  --gold: #d99b42;
  --card: rgba(255, 255, 255, 0.88);
  --line: rgba(126, 49, 88, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 206, 219, 0.85), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(217, 155, 66, 0.28), transparent 34%),
    linear-gradient(135deg, #fff8ef 0%, #f8ebef 44%, #fffdf9 100%);
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 34px 7vw 64px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(83, 33, 57, 0.96), rgba(126, 49, 88, 0.88)),
    url('bag-hero.png') center/cover no-repeat;
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  box-shadow: 0 24px 55px rgba(83, 33, 57, 0.26);
}
.hero::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-right: auto;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  opacity: .9;
}
.nav-link:hover { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-top: 62px;
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 16px;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
}
.hero-text {
  margin: 24px 0 30px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
}
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 16px;
  color: var(--berry-dark);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
}

.page-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 54px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}
.section-heading span {
  color: var(--berry);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.section-heading h2 {
  margin: 8px 0 10px;
  font-size: 42px;
}
.section-heading p {
  margin: 0 0 26px;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(83, 33, 57, 0.12);
  backdrop-filter: blur(10px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 55px rgba(83, 33, 57, 0.18);
}
.image-wrap {
  position: relative;
  height: 245px;
  background: linear-gradient(145deg, #ffeaf0, #fff8ef);
  display: grid;
  place-items: center;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.number-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 9px 13px;
  border-radius: 15px;
  background: var(--berry-dark);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(83, 33, 57, 0.22);
}
.product-content { padding: 20px; }
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.status, .category {
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
}
.status { color: #1e6844; background: #e7f7ee; }
.category { color: var(--berry); background: #f9e5ed; }
.product-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}
.product-card p {
  min-height: 62px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-bottom strong {
  font-size: 24px;
  color: var(--berry-dark);
}
.product-bottom button,
.order-form button {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  font-weight: 900;
  border-radius: 15px;
  transition: transform .15s ease, opacity .15s ease;
}
.product-bottom button {
  padding: 12px 16px;
}
.product-bottom button:hover,
.order-form button:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.order-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}
.cart-card,
.order-form {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(83, 33, 57, 0.12);
}
.cart-card h2,
.order-form h3 { margin: 0 0 18px; font-size: 28px; }
.cart-items { display: grid; gap: 12px; }
.empty-cart,
.loading-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(126, 49, 88, 0.06);
  color: var(--muted);
  line-height: 1.45;
}
.loading-card.error { color: #a3263b; background: #ffe8ec; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff9f4;
  border: 1px solid var(--line);
}
.cart-item strong { display: block; margin-bottom: 5px; }
.cart-item small { color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 11px;
  background: var(--berry);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.qty-control span { min-width: 16px; text-align: center; font-weight: 900; }
.total-row {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 900;
}
.order-form {
  display: grid;
  gap: 12px;
}
.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(126, 49, 88, 0.22);
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  outline-color: var(--berry);
}
.order-form textarea { min-height: 96px; resize: vertical; }
.order-form button { min-height: 52px; font-size: 16px; }
.message { min-height: 22px; font-weight: 800; line-height: 1.4; }
.success-msg { color: #217449; }
.error-msg { color: #b53348; }
.footer {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 34px;
  padding: 24px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(83, 33, 57, 0.1);
}

@media (max-width: 1150px) {
  .page-shell { grid-template-columns: 1fr; }
  .order-panel { position: static; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero { padding: 24px 22px 48px; min-height: 370px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
  .topbar { gap: 12px; }
  .nav-link { display: none; }
  .page-shell, .footer { width: calc(100% - 24px); }
  .product-grid { grid-template-columns: 1fr; }
  .image-wrap { height: 230px; }
}


/* Индивидуальный вариант оформления для Гайдук Марии: корзина и заказ выполнены как чек и заявка */
.order-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}
.checkout-board {
  overflow: hidden;
  border-radius: 18px 42px 18px 42px;
  background: linear-gradient(145deg, #3f1630 0%, #812f5c 56%, #c77b83 100%);
  color: #fff;
  box-shadow: 0 24px 52px rgba(83, 33, 57, 0.26);
}
.checkout-top {
  padding: 26px 26px 18px;
}
.checkout-label,
.form-title span,
.ticket-title small {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}
.checkout-label {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}
.checkout-top h2 {
  margin: 15px 0 8px;
  font-size: 32px;
}
.checkout-top p {
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}
.cart-ticket {
  margin: 0 16px 16px;
  padding: 18px;
  border-radius: 26px;
  background: #fffaf2;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.ticket-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 2px dashed rgba(126,49,88,.24);
  font-weight: 900;
}
.ticket-title small {
  color: var(--berry);
}
.receipt-list {
  margin-top: 14px;
  gap: 10px;
}
.empty-cart {
  background: repeating-linear-gradient(-45deg, rgba(126,49,88,.06), rgba(126,49,88,.06) 8px, rgba(217,155,66,.08) 8px, rgba(217,155,66,.08) 16px);
  border: 1px dashed rgba(126,49,88,.28);
}
.receipt-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(126,49,88,.12);
}
.receipt-item:last-child {
  border-bottom: 0;
}
.cart-index {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--berry-dark);
  font-weight: 900;
  font-size: 13px;
}
.cart-line-info strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.cart-line-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.pill-control {
  padding: 5px;
  border-radius: 999px;
  background: #f7e1e9;
}
.pill-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--berry-dark);
  box-shadow: 0 4px 10px rgba(83,33,57,.14);
}
.pill-control span {
  min-width: 20px;
  color: var(--berry-dark);
}
.receipt-total {
  margin-top: 14px;
  padding: 16px 0 2px;
  border-radius: 0;
  background: transparent;
  color: var(--berry-dark);
  border-top: 2px dashed rgba(126,49,88,.24);
}
.receipt-total span {
  color: var(--muted);
}
.receipt-total strong {
  font-size: 26px;
}
.request-form {
  border-radius: 42px 18px 42px 18px;
  background: #fff;
  padding: 26px;
  border: 0;
  box-shadow: 0 22px 46px rgba(83, 33, 57, 0.15);
  gap: 14px;
}
.form-title {
  margin-bottom: 4px;
}
.form-title span {
  color: var(--gold);
}
.request-form h3 {
  margin: 8px 0 0;
  font-size: 28px;
}
.field-line {
  display: grid;
  gap: 7px;
}
.field-line > span {
  color: var(--berry-dark);
  font-size: 13px;
  font-weight: 900;
}
.request-form input,
.request-form textarea {
  border-radius: 8px 18px 8px 18px;
  background: #fffaf6;
  border: 1px solid rgba(126,49,88,.2);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.request-form input:focus,
.request-form textarea:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(126,49,88,.1);
}
.request-form button {
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d99b42, #7e3158);
  letter-spacing: .02em;
}
.message {
  padding-top: 4px;
}
.footer {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,247,239,.9));
}
@media (max-width: 1150px) {
  .order-panel { position: static; }
}
@media (max-width: 520px) {
  .receipt-item {
    grid-template-columns: 30px 1fr;
  }
  .pill-control {
    grid-column: 2;
    width: max-content;
  }
}
