/* Блок «Онлайн-заказ»: меню-карта с тремя способами заказа */
#order-online {
  --oo-line: rgba(200,169,110,.24);
  position: relative;
  overflow: hidden;
  padding: 120px 6%;
  background: var(--dark2);
  border-top: 1px solid rgba(200,169,110,.1);
  border-bottom: 1px solid rgba(200,169,110,.1);
}
/* знак SMR как еле заметный водяной знак за текстом */
#order-online::before {
  content: '';
  position: absolute;
  left: -3%;
  bottom: -10%;
  width: min(44vw, 540px);
  aspect-ratio: 103 / 112;
  background: url('/assets/img/brand/smr-mark.png') center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.oo-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* левая колонка */
.oo-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
  color: #f0ece4;
  margin-bottom: 28px;
}
.oo-title em { font-style: italic; color: var(--gold); }
.oo-lead {
  max-width: 44ch;
  font-size: .95rem;
  line-height: 1.95;
  letter-spacing: .02em;
  color: rgba(240,236,228,.68);
  margin-bottom: 34px;
}
.oo-facts { list-style: none; max-width: 46ch; border-bottom: 1px solid rgba(200,169,110,.16); }
.oo-facts li {
  position: relative;
  padding: 15px 0 15px 26px;
  border-top: 1px solid rgba(200,169,110,.16);
  font-size: .8rem;
  letter-spacing: .04em;
  line-height: 1.6;
  color: rgba(240,236,228,.8);
}
.oo-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

/* правая колонка: «чек» с тремя строками */
.oo-card {
  position: relative;
  border: 1px solid var(--oo-line);
  background: linear-gradient(180deg, rgba(30,23,15,.78), rgba(15,12,8,.94));
  box-shadow: 0 44px 90px -44px rgba(0,0,0,.95), inset 0 1px 0 rgba(226,201,154,.08);
}
.oo-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px 34px;
  color: inherit;
  text-decoration: none;
  transition: background .35s ease;
}
/* перфорация между строками: пунктир и «вырезы» по краям чека */
.oo-row + .oo-row { border-top: 1px dashed var(--oo-line); }
.oo-row + .oo-row::before,
.oo-row + .oo-row::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dark2);
  border: 1px solid var(--oo-line);
  z-index: 1;
}
.oo-row + .oo-row::before { left: -11px; clip-path: inset(0 0 0 50%); }
.oo-row + .oo-row::after  { right: -11px; clip-path: inset(0 50% 0 0); }
.oo-row:hover { background: rgba(200,169,110,.055); }
.oo-row:focus-visible { outline: 1px solid var(--gold); outline-offset: -3px; }

.oo-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(200,169,110,.34);
  color: var(--gold);
  transition: border-color .35s, background .35s, color .35s;
}
.oo-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.oo-row:hover .oo-ico { border-color: var(--gold); background: rgba(200,169,110,.1); }

.oo-body { display: grid; gap: 6px; min-width: 0; }
.oo-line { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.oo-name {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  color: #f0ece4;
  white-space: nowrap;
}
.oo-leader {
  flex: 1 1 24px;
  min-width: 24px;
  align-self: end;
  margin-bottom: .45em;
  border-bottom: 1px dotted rgba(200,169,110,.5);
  transition: border-color .35s;
}
.oo-row:hover .oo-leader { border-bottom-color: var(--gold); }
.oo-act {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  transition: color .3s;
}
.oo-row:hover .oo-act { color: var(--gold2); }
.oo-handle {
  font-size: .78rem;
  letter-spacing: .06em;
  color: rgba(200,169,110,.85);
}
.oo-desc {
  max-width: 46ch;
  font-size: .8rem;
  line-height: 1.75;
  letter-spacing: .02em;
  color: rgba(240,236,228,.56);
}

/* главный способ — веб-меню: работает без мессенджера */
.oo-row--primary { background: linear-gradient(90deg, rgba(200,169,110,.14), rgba(200,169,110,.035) 70%); }
.oo-row--primary:hover { background: linear-gradient(90deg, rgba(200,169,110,.2), rgba(200,169,110,.06) 70%); }
.oo-row--primary .oo-ico { border-color: var(--gold); background: rgba(200,169,110,.12); }
.oo-row--primary .oo-act {
  padding: 10px 16px;
  color: var(--dark);
  background: var(--gold);
  font-weight: 400;
  transition: background .3s;
}
.oo-row--primary:hover .oo-act { color: var(--dark); background: var(--gold2); }

/* QR для тех, кто смотрит сайт с компьютера */
.oo-qr {
  display: none;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(200,169,110,.3);
  filter: brightness(.88);
  transition: transform .35s ease, border-color .35s, filter .35s;
}
@media (min-width: 1100px) and (hover: hover) {
  .oo-qr { display: block; }
  .oo-row:hover .oo-qr { transform: translateY(-3px); border-color: var(--gold); filter: none; }
}

/* единственное «событие» блока: строки чека появляются по очереди */
#order-online.oo-js:not(.is-in) .oo-row { opacity: 0; transform: translateY(16px); }
#order-online.oo-js .oo-row { transition: background .35s ease, opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
#order-online.oo-js.is-in .oo-row:nth-child(2) { transition-delay: .12s, .12s, .12s; }
#order-online.oo-js.is-in .oo-row:nth-child(3) { transition-delay: .24s, .24s, .24s; }
#order-online.oo-js.is-in .oo-row:hover { transition-delay: 0s; }

@media (max-width: 980px) {
  #order-online { padding: 96px 6%; }
  .oo-shell { grid-template-columns: 1fr; gap: 48px; }
  .oo-lead, .oo-facts { max-width: 60ch; }
}
@media (max-width: 640px) {
  #order-online { padding: 78px 5%; }
  .oo-row { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 24px 18px; }
  .oo-ico { width: 46px; height: 46px; }
  .oo-ico svg { width: 22px; height: 22px; }
  .oo-line { flex-wrap: wrap; row-gap: 10px; }
  .oo-leader { display: none; }
  .oo-act { flex-basis: 100%; }
  .oo-row--primary .oo-act { display: inline-block; flex-basis: auto; align-self: flex-start; }
  .oo-row + .oo-row::before { left: -11px; }
  .oo-row + .oo-row::after { right: -11px; }
}
@media (prefers-reduced-motion: reduce) {
  #order-online.oo-js:not(.is-in) .oo-row { opacity: 1; transform: none; }
  #order-online.oo-js .oo-row,
  .oo-qr { transition: none; }
}
