.hero-card,
.menu-section,
.policy-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  margin-top: 10px;
  padding: 44px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
}

.hero-card__body {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(3.1rem, 5vw, 5.5rem);
  line-height: 0.96;
  color: #17203b;
}

.hero-card p {
  margin: 16px auto 0;
  max-width: 880px;
  color: #6c7e9e;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
}

.table-box {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 18px 18px 18px 28px;
  border: 2px solid var(--orange);
  border-radius: 26px;
  background: #fffdf5;
}

.table-box label {
  color: #a26015;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.table-box select {
  min-width: 164px;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--orange);
  border-radius: 18px;
  background: #fff;
  color: #41311b;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}

.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
}

.table-status {
  padding: 0 20px;
  background: #fff2c9;
  color: #8895ab;
  font-weight: 800;
}

.menu-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.menu-main {
  display: grid;
  gap: 26px;
}

.menu-section {
  padding: 30px 42px 36px;
  border-radius: var(--radius-xl);
  background: #fff;
}

.menu-section__head,
.head-actions,
.summary-card__top,
.summary-purchase {
  display: flex;
}

.menu-section__head {
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.menu-section h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #192442;
}

.menu-section p {
  margin: 8px 0 0;
  color: #7585a4;
  font-size: 1rem;
}

.head-actions {
  align-items: center;
  gap: 14px;
  color: var(--gold-deep);
  font-weight: 800;
  white-space: nowrap;
}

.head-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.head-actions .muted,
.head-actions span {
  color: #b7c0d0;
}

.options-grid {
  display: grid;
  gap: 16px;
}

.options-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.options-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 114px;
  padding: 22px 22px 18px;
  border: 3px solid #eef2f8;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  transition: 180ms ease;
}

.option-copy {
  display: grid;
  align-content: center;
}

.option-card:hover {
  transform: translateY(-1px);
}

.option-copy strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

.option-copy p,
.option-copy small {
  display: block;
  margin-top: 8px;
  color: #97a4bc;
  font-size: 0.88rem;
  line-height: 1.45;
}

.option-indicator {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #d7dfec;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  color: transparent;
  font-weight: 800;
}

.option-card.category-starter.is-selected {
  border-color: var(--orange);
}

.option-card.category-starter.is-selected .option-indicator {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.option-card.category-salad.is-selected {
  border-color: var(--green);
}

.option-card.category-salad.is-selected .option-indicator {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  border-radius: 10px;
}

.option-card.category-carb.is-selected {
  border-color: var(--orange);
}

.option-card.category-carb .option-copy small {
  font-weight: 800;
  text-transform: uppercase;
}

.option-card.category-carb.is-selected .option-indicator {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
}

.option-card.category-protein {
  min-height: 122px;
}

.option-card.category-protein .option-copy p {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.option-card.category-protein.is-selected {
  border-color: var(--orange);
}

.option-card.category-protein.is-selected .option-indicator {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.summary-sidebar {
  position: static;
  display: grid;
  gap: 18px;
}

.summary-card {
  padding: 26px 24px 24px;
  border-radius: 34px;
  background: linear-gradient(180deg, #141d34 0%, #121a30 100%);
  color: #fff;
}

.summary-card__top {
  align-items: center;
  justify-content: flex-start;
}

.summary-card__top h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.1;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.summary-order {
  border-radius: 18px;
  background: rgba(7, 12, 23, 0.28);
  overflow: hidden;
}

.summary-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.summary-order__head::-webkit-details-marker {
  display: none;
}

.summary-order__head span {
  display: block;
  color: #91a0bd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-order__head strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.summary-order__head b {
  flex-shrink: 0;
  color: #f0b241;
  font-size: 1rem;
}

.summary-order__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.summary-order__arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 4px solid #f4b53f;
  border-bottom: 4px solid #f4b53f;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.summary-order[open] .summary-order__arrow {
  transform: rotate(225deg) translateY(-1px);
}

.summary-order__content {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.summary-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 12, 23, 0.28);
}

.summary-row span {
  color: #91a0bd;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-row strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.summary-row strong.is-complete {
  color: #58c78d;
}

.summary-price-block {
  padding-top: 18px;
  border-top: 1px solid rgba(136, 151, 184, 0.16);
}

.summary-price-block span {
  display: block;
  color: #8d9ab5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.summary-price-block strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  text-align: center;
}

.summary-purchase {
  margin-top: 22px;
  gap: 16px;
  display: grid;
}

.summary-purchase button,
.policy-card button {
  border: 0;
  cursor: pointer;
}

.summary-purchase button {
  width: min(260px, 100%);
  min-height: 56px;
  padding: 0 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0aa35, #f4b53f);
  color: #10182d;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  justify-self: center;
}

.cart-feedback {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 90;
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 18px;
  background: #1b6f48;
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 22, 18, 0.28);
  font-size: 1rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.policy-card {
  padding: 24px 24px 22px;
  border-radius: 28px;
  background: #fffaf0;
}

.policy-card h4 {
  margin: 0;
  color: #8d551b;
  font-size: 1rem;
}

.policy-card p {
  margin: 12px 0 16px;
  color: #9c6c31;
  line-height: 1.7;
}

.policy-card button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: #fff;
  color: #8d551b;
  font-weight: 800;
  border: 1px solid rgba(141, 85, 27, 0.15);
}

@media (max-width: 900px) {
  .menu-section__head,
  .summary-purchase,
  .table-box {
    display: grid;
    grid-template-columns: 1fr;
  }

  .summary-purchase button,
  .policy-card button {
    width: 100%;
  }

  .summary-purchase button {
    min-height: 72px;
    font-size: 1.28rem;
    justify-self: stretch;
  }

  .options-grid--two,
  .options-grid--three,
  .summary-sidebar {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .menu-section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .cart-feedback {
    right: 16px;
    top: 16px;
    left: 16px;
    min-width: 0;
    text-align: center;
  }

  .table-box {
    justify-items: stretch;
  }
}

@media (max-width: 640px) {
  .hero-card h1 {
    font-size: 2.5rem;
  }

  .menu-section h3,
  .summary-card__top h3 {
    font-size: 1.7rem;
  }

  .summary-price-block strong {
    font-size: 2.2rem;
  }
}
