/* Витрина покупателя: светлая «каталожная» вёрстка — меню слева, круглые категории,
   баннер с карточкой «Сегодня в Актау», полоса заведений, цифры в одной рамке, тёмный подвал.
   Подключается после app.css только на app/index.html. */

body.buyer { background: #fff; }
.buyer .topbar { background: rgba(255, 255, 255, .96); }
.buyer { --soft: #f0f3ec; }   /* светлая заливка: круги категорий, фильтры */

/* ---------- Категории и фильтры: светлые круги и серые «таблетки» ---------- */
.buyer .cat__icon { background: var(--soft); color: var(--ink); }
.buyer .cat:hover .cat__icon { background: var(--pista); }
.buyer .cat.is-active .cat__icon { background: var(--green); color: #fff; }
.buyer .pills .chip,
.buyer .vchips .chip:not(.chip--line) { background: var(--soft); font-weight: 700; }
.buyer .pills .chip:hover,
.buyer .vchips .chip:not(.chip--line):hover { background: var(--pista); }
.buyer .pills .chip.is-active,
.buyer .vchips .chip.is-active { background: var(--ink); color: #fff; }
.buyer .pills .chip svg { color: var(--olive); }
.buyer .pills .chip.is-active svg { color: #fff; }

/* ---------- Баннер: только на компьютере ---------- */
.hero { display: none; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #10261b; }
.btn--soft { background: var(--soft); color: var(--ink); }
.btn--soft:hover { background: var(--pista); }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Полоса «Наши заведения» ---------- */
.pstrip { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.pstrip::-webkit-scrollbar { display: none; }
.pcircle {
  flex-shrink: 0; width: 104px; display: grid; justify-items: center; align-content: start; gap: 3px;
  padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: center; cursor: pointer;
}
.pcircle__logo {
  display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 6px; overflow: hidden;
  border-radius: 50%; background: var(--soft); font-size: 34px;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s ease, transform .15s ease;
}
.pcircle__logo img { width: 100%; height: 100%; object-fit: cover; }
.pcircle.has-offers .pcircle__logo { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--green); }
.pcircle:hover .pcircle__logo { transform: translateY(-2px); }
.pcircle b {
  max-width: 100%; font-size: 13.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcircle small { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ---------- Цифры: одна рамка, ячейки через линии ---------- */
.buyer .facts { gap: 0; margin-top: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.buyer .fact { padding: 18px; border: 0; border-radius: 0; }
.buyer .fact:nth-child(odd) { border-right: 1px solid var(--line); }
.buyer .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.buyer .fact b { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px; }
.buyer .fact span { font-size: 13px; }

/* ---------- Для заведений: светлая фисташковая плашка ---------- */
.buyer .biz { background: var(--pista); color: var(--ink); }
.buyer .biz__label { color: var(--olive); }
.buyer .biz__title { color: var(--ink); }
.buyer .biz__sub { color: #3d5446; }
.buyer .biz__art circle[fill="none"] { stroke: var(--green); }

/* ---------- Подвал: тёмный ---------- */
.buyer .appfoot { background: var(--ink); color: #fff; }
.buyer .appfoot__brand img { padding: 4px; border-radius: 12px; background: #fff; }
.buyer .appfoot__brand span, .buyer .appfoot__copy { color: rgba(255, 255, 255, .68); }
.buyer .appfoot__links a { color: #fff; }
.buyer .appfoot__links a:hover { color: var(--pista); }

/* ---------- Карточка пакета ---------- */
.ocard__qty { display: none; }
.buyer .ocards > .empty { grid-column: 1 / -1; }

/* Шапка: ссылки, город, Telegram, брони — только на компьютере */
.hdr-links, .hdr-city, .hdr-tg, .hdr-my, .side { display: none; }

/* ================= Телефон ================= */
@media (max-width: 959px) {
  /* Пакеты в две колонки — компактные карточки */
  .buyer .ocards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .buyer .ocards .ocard { border-radius: 16px; }
  .buyer .ocards .ocard__img { height: 122px; }
  .buyer .ocards .bagart { width: 84px; height: 84px; }
  .buyer .ocards .bagart__sticker { width: 30px; height: 30px; box-shadow: 0 0 0 2px #f4cf9e, 0 0 0 3.5px #1b3b2b; }
  .buyer .ocards .bagart__sticker .ico { width: 16px; height: 16px; }
  .buyer .ocards .ocard__badge { top: 8px; left: 8px; padding: 3px 7px; font-size: 11.5px; }
  .buyer .ocards .ocard__left { display: none; }
  .buyer .ocards .fav { top: 6px; right: 6px; bottom: auto; width: 30px; height: 30px; }
  .buyer .ocards .fav .ico { width: 16px; height: 16px; }
  .buyer .ocards .ocard__when { left: 8px; bottom: 8px; padding: 3px 8px; gap: 4px; font-size: 11px; }
  .buyer .ocards .ocard__when .ico { width: 12px; height: 12px; }
  .buyer .ocards .ocard__body { gap: 2px; padding: 10px 10px 12px; }
  .buyer .ocards .ocard__logo { width: 20px; height: 20px; font-size: 11px; }
  .buyer .ocards .ocard__vname { font-size: 12.5px; font-weight: 600; color: var(--muted); }
  .buyer .ocards .ocard__rating { display: none; }
  .buyer .ocards .ocard__title { margin-top: 4px; font-size: 14.5px; line-height: 1.25; }
  .buyer .ocards .ocard__meta { display: none; }
  .buyer .ocards .ocard__price { flex-wrap: wrap; gap: 0 6px !important; margin-top: 4px; font-size: 16.5px; }
  .buyer .ocards .ocard__price s { font-size: 12.5px; }
  .buyer .ocards .ocard__qty { display: block; width: 100%; font-size: 11.5px; font-weight: 700; color: var(--olive); }
  .buyer .ocards .ocard__qty.is-hot { color: var(--green-dark); }
  .buyer .slot { margin-top: 6px; }
}

/* ================= Компьютер ================= */
@media (min-width: 960px) {
  /* Шапка на всю ширину: логотип над меню, поиск, ссылки, город, Telegram, брони */
  .buyer .topbar .appwrap.topbar__inner { width: min(1480px, 100%); padding: 12px 28px 12px 20px; gap: 14px; }
  .buyer .topbar .logo { width: 214px; }
  .buyer .search { flex: 0 1 380px; background: var(--soft); }
  .hdr-links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); }
  .hdr-links a { padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .hdr-links a:hover { background: #fff; color: var(--ink); }
  .hdr-city { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 700; white-space: nowrap; }
  .hdr-city .ico { width: 18px; height: 18px; color: var(--green); }
  .hdr-tg { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .hdr-tg:hover { background: var(--pista); }
  .hdr-tg .ico { width: 18px; height: 18px; color: #2aabee; }
  .hdr-my {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
    border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer;
  }
  .hdr-my:hover, .hdr-my.is-active { background: var(--green); }
  .hdr-my .tabbar__badge { position: absolute; top: -4px; right: -4px; left: auto; }

  /* Каркас: меню слева, содержимое справа */
  .buyer .shell { display: grid; grid-template-columns: 234px minmax(0, 1fr); width: min(1480px, 100%); margin-inline: auto; }
  .buyer .shell > .appwrap { width: auto; min-width: 0; margin: 0; padding: 0 28px 48px 32px; }

  .buyer .side {
    position: sticky; top: var(--hdr-h, 112px); height: calc(100vh - var(--hdr-h, 112px));
    display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
    padding: 16px 12px 20px 0; overflow-y: auto; border-right: 1px solid var(--line);
  }
  .side__nav, .side__foot { display: grid; gap: 2px; }
  .side button, .side a {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 20px;
    border: 0; border-radius: 0 12px 12px 0; background: none; color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
  }
  .side .ico { width: 21px; height: 21px; color: var(--olive); }
  .side button:hover, .side a:hover { background: var(--soft); }
  .side .is-active { background: var(--soft); font-weight: 800; }
  .side .is-active::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--green);
  }
  .side .is-active .ico { color: var(--green); }
  .side .tabbar__badge { position: static; margin-left: auto; }
  .side__partner { color: var(--green-dark) !important; font-weight: 700 !important; }
  .side__partner .ico { color: var(--green) !important; }

  /* Категории — круги в ряд, под чертой — фильтры */
  .buyer .filters { display: block; margin-top: 22px; }
  .buyer .cats { display: flex; gap: 12px; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); overflow: visible; }
  .buyer .cat {
    width: 112px; padding: 4px 0; gap: 8px; justify-content: flex-start;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .buyer .cat:hover, .buyer .cat.is-active { border: 0; box-shadow: none; }
  .buyer .cat__icon { width: 68px; height: 68px; }
  .buyer .cat__icon .ico { width: 30px; height: 30px; }
  .buyer .cat__label { font-size: 14px; font-weight: 700; }
  .buyer .cat__count { font-size: 12px; }
  .buyer .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 16px 0 0; }
  .buyer .pills .chip { padding: 11px 18px; font-size: 14px; }

  /* Баннер: текст и шаги слева, тёмная карточка «Сегодня в Актау» справа */
  .buyer .hero.is-off { display: none; }
  .buyer .hero:not(.is-off) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 24px; margin-top: 28px; }
  .hero__text { display: flex; flex-direction: column; justify-content: center; }
  .hero__label { display: flex; align-items: center; gap: 4px; color: var(--olive); font-size: 14px; font-weight: 700; }
  .hero__label .ico { width: 16px; height: 16px; color: var(--green); }
  .hero__title { margin: 10px 0 14px; font-size: clamp(40px, 3.8vw, 56px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
  .hero__sub { max-width: 520px; color: var(--muted); font-size: 17px; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .hero__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
  .hero__how li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.35; }
  .hero__how b { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: var(--pista); color: var(--ink); font-size: 13px; }
  .hero__how strong { display: block; color: var(--ink); font-size: 14px; }
  .hero__card {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
    min-height: 360px; padding: 28px 28px 130px; border-radius: 26px; background: var(--ink); color: #fff;
  }
  .hero__cardlabel { color: var(--pista); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
  .hero__num { margin-top: 10px; font-size: 76px; font-weight: 800; line-height: .95; letter-spacing: -.045em; }
  .hero__unit { font-size: 18px; font-weight: 700; }
  .hero__cardsub { margin: 6px 0 18px; color: rgba(255, 255, 255, .75); font-size: 14px; }
  .hero__card .btn { position: relative; z-index: 1; }
  .hero__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }

  .buyer .pstrip { gap: 20px; margin: 0; padding: 4px 0 8px; }
  .buyer .pcircle { width: 124px; }
  .buyer .pcircle__logo { width: 100px; height: 100px; font-size: 40px; }
  .buyer .pcircle b { font-size: 14px; }

  .buyer .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; }
  .buyer .fact { padding: 24px 26px; }
  .buyer .fact:nth-child(-n+2) { border-bottom: 0; }
  .buyer .fact:not(:last-child) { border-right: 1px solid var(--line); }
  .buyer .fact b { font-size: 36px; }

  .buyer .ocard__img { height: 170px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .hdr-links { display: none; }
  .buyer .topbar .logo { width: auto; }
  .buyer .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .buyer .shell > .appwrap { padding: 0 20px 40px 24px; }
  .side button, .side a { padding-left: 16px; font-size: 14px; }
  .buyer .hero:not(.is-off) { grid-template-columns: 1fr; }
  .hero__card { min-height: 0; padding-bottom: 120px; }
  .buyer .cat { width: 96px; }
  .buyer .vlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
