:root {
  color-scheme: light;
  --bg: #f4efe6;
  --ink: #211a14;
  --muted: #716457;
  --card: #fffaf1;
  --line: #e3d4bf;
  --green: #1c7556;
  --green-dark: #11543d;
  --orange: #ff7900;
  --gold: #d99b38;
  --red: #a94432;
  --shadow: 0 24px 70px rgba(39, 27, 16, .14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 155, 56, .18), transparent 28rem),
    linear-gradient(135deg, #fbf4e8 0%, #efe6da 52%, #f8f0e2 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px 22px 34px;
  border-radius: 26px;
  color: #fff9ed;
  background:
    linear-gradient(rgba(31, 22, 15, .22), rgba(31, 22, 15, .62)),
    radial-gradient(circle at 76% 28%, rgba(255, 121, 0, .5), transparent 14rem),
    linear-gradient(145deg, #14100d 0%, #7a2f1e 48%, #ff7900 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18px -42px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 235, 179, .96) 0 7px, transparent 8px),
    radial-gradient(circle at 38% 43%, rgba(255, 251, 218, .9) 0 5px, transparent 6px),
    radial-gradient(circle at 61% 37%, rgba(194, 72, 48, .94) 0 8px, transparent 9px),
    radial-gradient(circle at 48% 64%, rgba(242, 137, 56, .92) 0 6px, transparent 7px),
    radial-gradient(circle at 66% 59%, rgba(255, 251, 218, .9) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 50%, #ff7900 0 34%, #7c3325 35% 48%, transparent 49%);
  opacity: .95;
  transform: rotate(-10deg);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  font-size: 14px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 48px;
  border: 1px solid rgba(255, 121, 0, .52);
  border-radius: 14px;
  background: #050505;
  backdrop-filter: blur(12px);
}

.brand-mark img {
  display: block;
  width: 66px;
  height: 42px;
  object-fit: contain;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0;
}

.hero h1 {
  font-size: clamp(32px, 8vw, 56px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  margin-top: 16px;
  color: rgba(255, 249, 237, .88);
  font-size: 16px;
  line-height: 1.45;
}

.order-card {
  display: grid;
  gap: 14px;
  margin-top: -18px;
  padding: 14px;
  border: 1px solid rgba(227, 212, 191, .9);
  border-radius: 24px;
  background: rgba(255, 250, 241, .86);
  box-shadow: 0 18px 60px rgba(54, 39, 24, .12);
  backdrop-filter: blur(18px);
}

.section-block,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-heading span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: white;
  background: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2,
.info-panel h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.date-field,
.fields-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7c6b1;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(28, 117, 86, .14);
}

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

.plov-option {
  position: relative;
  min-height: 96px;
  cursor: pointer;
}

.plov-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  display: grid;
  align-content: space-between;
  min-height: 96px;
  padding: 14px;
  border: 1px solid #ddccb8;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 248, 235, .86)),
    radial-gradient(circle at 86% 18%, rgba(217, 155, 56, .2), transparent 5rem);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.option-body strong {
  font-size: 16px;
  line-height: 1.2;
}

.option-body small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.plov-option input:checked + .option-body {
  border-color: var(--orange);
  background:
    linear-gradient(180deg, rgba(255, 242, 225, .96), rgba(255, 250, 238, .96)),
    radial-gradient(circle at 86% 18%, rgba(217, 155, 56, .32), transparent 5rem);
  box-shadow: inset 0 0 0 2px rgba(255, 121, 0, .14), 0 12px 24px rgba(255, 121, 0, .12);
  transform: translateY(-1px);
}

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

.fields-grid .wide {
  grid-column: 1 / -1;
}

.kazan-field select {
  min-height: 48px;
  padding-inline: 10px;
}

.extras-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.extras-field legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fields-grid .extra-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
}

.extra-option input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--orange);
}

.extra-name {
  flex: 1;
  min-width: 0;
}

.extra-price {
  flex: 0 0 72px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.info-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(246, 232, 205, .68));
}

.info-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.price-summary {
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.info-panel .order-price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.info-panel .order-price[data-empty="true"] {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.price-breakdown {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 6px;
}

.price-breakdown dd {
  margin: 0;
  white-space: nowrap;
}

.terms {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.terms input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
}

.submit-button {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 18px 34px rgba(28, 117, 86, .24);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: .7;
  cursor: wait;
}

.status {
  min-height: 22px;
  margin: 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.status.error {
  color: var(--red);
}

.status.success {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 560px) {
  .app-shell {
    padding-inline: 10px;
  }

  .hero {
    min-height: 216px;
    padding: 24px 18px 32px;
    border-radius: 22px;
  }

  .hero::after {
    width: 170px;
    height: 170px;
    right: -42px;
    bottom: -34px;
  }

  .order-card {
    padding: 10px;
    border-radius: 22px;
  }

  .plov-grid,
  .fields-grid,
  .info-panel {
    grid-template-columns: 1fr;
  }

  .option-body,
  .plov-option {
    min-height: 82px;
  }
}

@media (max-width: 360px) {
  .fields-grid .extra-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    grid-template-rows: minmax(18px, auto) 16px;
    column-gap: 10px;
    row-gap: 2px;
    min-height: 50px;
    padding-block: 6px;
  }

  .extra-option input {
    grid-row: 1 / 3;
  }

  .extra-price {
    grid-column: 2;
    text-align: left;
  }
}
