.angle-reserve-demo,
.angle-reserve-demo * {
  box-sizing: border-box;
}

.angle-reserve-demo {
  position: absolute;
  /* Тянемся на весь экран: при inset: 38px кромка блока совпадала с нижним
     краем статус-бара и читалась серой линией.
     Отступ под статус-бар задаёт .angle-reserve-app — padding здесь
     бесполезен, дочерний слой абсолютный и padding родителя игнорирует. */
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  color: #101827;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.25;
  direction: rtl;
}

.angle-reserve-demo-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.angle-reserve-app,
.angle-reserve-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
}

.angle-reserve-app {
  /* inset: 0, а НЕ 38px: смещённый слой давал видимую кромку на границе
     со статус-баром — ту самую полоску (та же причина, что была в меню).
     Фото уходит под статус-бар (он непрозрачный, перекрывает верх), как
     в реальном iOS. */
  inset: 0;
  background: #ffffff;
}

.angle-reserve-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.angle-reserve-scroll::-webkit-scrollbar {
  display: none;
}

.angle-reserve-start .angle-reserve-scroll {
  display: flex;
  flex-direction: column;
  /* Белый, как в демо меню: тёмный фон контейнера просвечивал под подвалом
     и добавлял ~33px чёрного — визуально подвал выглядел выше, чем в меню. */
  background: #ffffff;
  /* Как в меню: экран не скроллится, доли считаются от его высоты */
  overflow-y: hidden;
}

.angle-reserve-start .angle-reserve-scroll > * {
  flex-shrink: 0;
}

.angle-reserve-start {
  background: #ffffff;
}

.angle-reserve-start-content {
  /* Забирает остаток высоты и прижимает подвал к низу — иначе под ним
     оставалась пустая полоса ~33px. Как .angle-menu-start-content. */
  flex: 1 1 auto;
  min-height: 0;
  background: #ffffff;
}

.angle-reserve-header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 45px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 66px 1fr 66px;
  align-items: center;
  border-bottom: 1px solid #e7e8eb;
  background: rgba(255,255,255,0.97);
  text-align: center;
}

.angle-reserve-header h3 {
  grid-column: 2;
  margin: 0;
  /* Бренд ANGLE — как в демо меню (.angle-menu-header h3) */
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  direction: ltr;
}

.angle-reserve-back,
.angle-reserve-reset {
  min-height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: 750 10px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.angle-reserve-back {
  grid-column: 3;
  grid-row: 1;
  background: #101827;
  color: #ffffff;
}

.angle-reserve-reset {
  grid-column: 1;
  grid-row: 1;
  width: 30px;
  justify-self: start;
  padding: 0;
  background: #f2f3f5;
  color: #6f7683;
  font-size: 16px;
}

.angle-reserve-hero {
  position: relative;
  /* +38px: фото уходит под статус-бар (.angle-reserve-app inset:0),
     без добавки видимая часть съезжала бы вверх. */
  height: 156px;
  overflow: hidden;
  background: #20242c;
}

.angle-reserve-hero img {
  /* Абсолютно на весь hero + cover: даёт object-fit опору по высоте
     (в потоке cover ломал рендер). Фокус на центр кадра — солнечная сцена
     со столиком, тёмные края витрины уходят за границы. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
}

/* Название под фото на главном экране брони — тот же бренд ANGLE, что в
   хедере и в демо меню. */
.angle-reserve-brand {
  margin: 14px 12px 0;
  text-align: center;
}

.angle-reserve-brand span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #101827;
}

.angle-reserve-summary {
  /* Название заведения вернулось (.angle-reserve-brand выше), меньший
     верхний отступ — иначе он удвоился бы. */
  margin: 12px 12px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #e0e3e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 9px rgba(16,24,39,0.06);
}

.angle-reserve-summary button,
.angle-reserve-summary span {
  min-height: 54px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-left: 1px solid #e7e9ed;
  background: #ffffff;
  color: #101827;
  font: inherit;
}

.angle-reserve-summary > :last-child {
  border-left: 0;
}

/* Подписи убраны — значение осталось единственным содержимым ячейки,
   поэтому чуть крупнее: 10px читались как подпись, а не как выбор. */
.angle-reserve-summary strong {
  font-size: 11px;
  font-weight: 850;
}

.angle-reserve-primary {
  width: calc(100% - 24px);
  min-height: 43px;
  margin: 12px 12px 0;
  border: 0;
  /* 16px как в боевом меню (rounded-2xl) */
  border-radius: 16px;
  background: #101827;
  color: #ffffff;
  font: 850 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.angle-reserve-hint {
  margin: 8px 0 0;
  color: #858b96;
  /* 11px — как текст на кнопке (.angle-reserve-primary), 7px читалось мелко */
  font-size: 11px;
  text-align: center;
}

.angle-reserve-hours {
  margin: 15px 12px 12px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-items: center;
  border: 1px solid #e0e3e8;
  border-radius: 13px;
}

.angle-reserve-hours-copy {
  transform: translateX(5px);
  font-size: 10px;
  line-height: 1.15;
}

.angle-reserve-hours-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}

.angle-reserve-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: #636b79;
}

.angle-reserve-map {
  min-height: 72px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dce0e6;
  border-radius: 12px;
  color: #101827;
  font-size: 7px;
  font-weight: 750;
}

.angle-reserve-map::before {
  content: "⌖";
  font-size: 17px;
  line-height: 1;
}

.angle-reserve-footer {
  position: relative;
  z-index: 1;
  /* Как в демо меню: тёмная подложка чуть выходит под боковую и нижнюю
     маску экрана, чтобы белый фон не просвечивал на скруглениях. */
  flex: 0 0 24%;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #252525;
  color: #ffffff;
  box-shadow:
    -4px 0 0 #252525,
    4px 0 0 #252525,
    -4px 4px 0 #252525,
    0 4px 0 #252525,
    4px 4px 0 #252525;
}

.angle-reserve-socials {
  display: flex;
  gap: 9px;
  direction: ltr;
}

.angle-reserve-socials span {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #3c3c3c;
}

.angle-reserve-socials svg {
  width: 14px;
  height: 14px;
  display: block;
}

.angle-reserve-socials path {
  fill: currentColor;
}

.angle-reserve-socials rect,
.angle-reserve-socials circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.angle-reserve-socials .social-dot {
  fill: currentColor;
  stroke: none;
}

/* Один в один с .angle-menu-review: inline-flex (иначе кнопка тянулась
   на всю ширину), центрирование текста и тот же фон #3c3c3c вместо #404040. */
.angle-reserve-review {
  min-height: 25px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #3c3c3c;
  font-size: 7px;
  font-weight: 750;
}

.angle-reserve-availability {
  padding: 15px 12px 18px;
}

.angle-reserve-availability > small {
  display: block;
  color: #7d8491;
  font-size: 9px;
  font-weight: 700;
}

.angle-reserve-availability h4 {
  margin: 7px 0 2px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
}

.angle-reserve-availability > p {
  margin: 0 0 13px;
  color: #7d8491;
  font-size: 10px;
}

.angle-reserve-zone {
  margin-top: 12px;
}

.angle-reserve-zone h5 {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 850;
}

.angle-reserve-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.angle-reserve-time {
  min-height: 54px;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe2e7;
  border-radius: 9px;
  background: #ffffff;
  color: #101827;
  font: inherit;
  cursor: pointer;
}

.angle-reserve-time strong {
  font-size: 11px;
  font-weight: 850;
}

.angle-reserve-time small {
  margin-top: 3px;
  color: #7b8492;
  /* +1px по просьбе владельца: «אישור מיידי» читалось мелко */
  font-size: 8px;
  white-space: nowrap;
}

.angle-reserve-time small::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 3px;
  display: inline-block;
  border-radius: 50%;
  background: #82c92d;
}

.angle-reserve-time.is-featured {
  border: 2px solid #101827;
}

.angle-reserve-details {
  padding: 12px 12px 18px;
}

.angle-reserve-details .angle-reserve-summary {
  margin: 0;
  background: #f7f8fa;
  box-shadow: none;
}

.angle-reserve-details .angle-reserve-summary span {
  background: #f7f8fa;
}

.angle-reserve-area {
  margin: 8px 0 12px;
  color: #69717f;
  /* 11px — как текст на кнопке (.angle-reserve-primary) */
  font-size: 11px;
  text-align: center;
}

.angle-reserve-area strong {
  color: #101827;
}

.angle-reserve-details h4 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.angle-reserve-field {
  width: 100%;
  min-height: 47px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid #dfe2e7;
  border-radius: 11px;
  background: #ffffff;
  color: #101827;
  font: 650 10px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: right;
}

.angle-reserve-field::placeholder {
  color: #a1a7b2;
}

.angle-reserve-confirm {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  /* 16px как в боевом меню (rounded-2xl) */
  border-radius: 16px;
  background: #101827;
  color: #ffffff;
  font: 850 11px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.angle-reserve-status {
  position: absolute;
  inset: 45px 0 0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.angle-reserve-status h4 {
  margin: 16px 0 5px;
  font-size: 16px;
  font-weight: 850;
}

.angle-reserve-status p {
  max-width: 210px;
  margin: 0;
  color: #7e8592;
  font-size: 8px;
  line-height: 1.45;
}

.angle-reserve-spinner {
  width: 31px;
  height: 31px;
  border: 4px solid #e6e8ec;
  border-top-color: #101827;
  border-radius: 50%;
  animation: angleReserveSpin 900ms linear infinite;
}

.angle-reserve-success-icon {
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcf8e7;
  color: #16a056;
  font-size: 24px;
  font-weight: 850;
}

.angle-reserve-confirm-card {
  width: 100%;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f7f8fa;
  text-align: right;
}

.angle-reserve-confirm-card strong {
  display: block;
  font-size: 10px;
  font-weight: 850;
}

.angle-reserve-confirm-card span {
  display: block;
  margin-top: 3px;
  color: #747c89;
  font-size: 7px;
}

.angle-reserve-new {
  min-height: 38px;
  margin-top: 13px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: #101827;
  color: #ffffff;
  font: 800 9px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

@keyframes angleReserveSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .angle-reserve-spinner {
    animation: none;
  }
}
