:root {
  --bg: #fff9f3;
  --text: #2b1d14;
  --muted: #6d5a4d;
  --brand: #4A2E1F;
  --accent: #C98A4A;
  --line: rgba(74,46,31,.10);
  --line-strong: rgba(74,46,31,.16);
  --shadow: 0 16px 50px rgba(74,46,31,.10);
  --shadow-soft: 0 10px 24px rgba(74,46,31,.07);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201,138,74,.18), transparent 22%),
    radial-gradient(circle at top right, rgba(74,46,31,.08), transparent 18%),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 44%, #fffdf9 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap {
  width: min(calc(100% - 32px), var(--maxw));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,249,243,.84);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-badge {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f6e5d0);
  border: 1px solid var(--line);
  padding: 7px;
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}
.brand-text {
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--brand);
  font-size: 1.05rem;
}
.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .80rem;
  font-weight: 700;
}

.hero {
  padding: 42px 0 22px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 22px;
  align-items: stretch;
}
.card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,138,74,.18), transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(201,138,74,.14);
  border: 1px solid rgba(201,138,74,.22);
  color: var(--brand);
  font-size: .92rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
h1 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: .92;
  letter-spacing: -.05em;
  position: relative;
  z-index: 1;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  position: relative;
  z-index: 1;
  max-width: 54ch;
}
.info-stack {
  display: grid;
  gap: 16px;
}
.mini-card {
  padding: 22px;
}
.mini-card strong {
  display: block;
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 1rem;
}
.mini-big {
  color: var(--brand);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.layout {
  padding: 8px 0 46px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: start;
}
.form-card, .summary-card {
  padding: 26px;
}
.section-title {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.section-sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--brand);
  font-size: .95rem;
}
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(201,138,74,.60);
  box-shadow: 0 0 0 4px rgba(201,138,74,.12);
}
textarea {
  min-height: 120px;
  resize: vertical;
}

.products {
  display: grid;
  gap: 16px;
  margin: 8px 0 18px;
}
.product {
  border-radius: var(--radius-lg);
  background: #fffefc;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.product-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.product-head h3 {
  margin: 0;
  color: var(--brand);
  font-size: 1.2rem;
}
.product-price {
  color: var(--brand);
  font-weight: 900;
}
.product-grid {
  display: grid;
  grid-template-columns: .65fr 1.1fr .85fr;
  gap: 12px;
}

.hint {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 4px 0 0;
}

.summary-box {
  border-radius: 22px;
  background: #fff9f4;
  border: 1px solid rgba(74,46,31,.08);
  padding: 18px;
  margin-bottom: 14px;
}
.summary-box h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 1.1rem;
}
.summary-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .96rem;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.line strong, .totals strong {
  color: var(--brand);
}
.totals {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.total-final {
  font-size: 1.2rem;
  font-weight: 900;
}
.notice {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #5b3824, var(--brand));
  color: #fffaf6;
  box-shadow: 0 12px 26px rgba(74,46,31,.18);
}
.btn-secondary {
  background: rgba(255,255,255,.88);
  border-color: var(--line-strong);
  color: var(--brand);
}

.alert {
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.alert-error {
  background: #fff0ef;
  border: 1px solid #f1c2bf;
  color: #8b2f27;
}
.alert-success {
  background: #eefaf2;
  border: 1px solid #bcd9c5;
  color: #29603d;
}

.order-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.order-meta .line {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff9f4;
  border: 1px solid rgba(74,46,31,.08);
}

footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: .95rem;
}
.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero, .layout, .product-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 20px), var(--maxw)); }
  .field-grid, .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-card, .mini-card, .form-card, .summary-card {
    padding: 22px;
  }
  .nav {
    min-height: 74px;
  }
  .brand-badge {
    width: 50px;
    height: 50px;
  }
  .brand-text {
    font-size: .98rem;
  }
}
