/* Витрина для обычного браузера (services/site.py). В Telegram скрыта, а Mini App — наоборот, только в Telegram. */
html.tg .site { display: none; }
html:not(.tg) .view, html:not(.tg) .tabbar, html:not(.tg) .boot, html:not(.tg) .sheet, html:not(.tg) .sheet-backdrop { display: none !important; }
html:not(.tg) body { padding: 0; }
html:not(.tg) { scroll-behavior: smooth; }
.site { max-width: 1080px; margin: 0 auto; padding: 16px 16px 48px; color: var(--text); font: 15px/1.5 var(--font); }
.site a { color: var(--acc-text); }
.site h2 { margin: 30px 0 12px; font: 800 22px var(--font); letter-spacing: -.02em; }

/* шапка */
.s-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; margin: -16px -16px 18px; padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.s-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; white-space: nowrap; }
.s-brand i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; background: var(--brand-grad, linear-gradient(135deg, #a8f000, #12b886)); }
.s-brand b { font: 900 20px "Montserrat", var(--font); letter-spacing: -.02em; }
.s-brand em { font-style: normal; color: var(--acc-text); }
.s-menu { display: flex; gap: 18px; margin-left: auto; }
.s-menu a { color: var(--muted) !important; text-decoration: none; font-weight: 600; }
.s-menu a:hover { color: var(--text) !important; }
.s-open { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; background: var(--acc);
  color: var(--acc-ink) !important; font-weight: 800; text-decoration: none; white-space: nowrap; }
.s-open.big { padding: 13px 22px; font-size: 16px; margin-top: 6px; }
@media (max-width: 720px) { .s-menu { display: none; } .s-top .s-open { margin-left: auto; padding: 8px 12px; font-size: 14px; } }

/* первый экран */
.s-hero { position: relative; display: flex; align-items: center; min-height: 260px; border-radius: var(--r2); overflow: hidden; background: #0c0d10; color: #fff; }
.s-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.s-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 16, .94) 0%, rgba(12, 13, 16, .7) 50%, rgba(12, 13, 16, .15) 100%); }
.s-hero-text { position: relative; z-index: 1; max-width: 600px; padding: 28px; }
.s-hero h1 { margin: 0 0 10px; font: 800 clamp(26px, 4.4vw, 40px)/1.08 var(--font); letter-spacing: -.03em; }
.s-hero p { margin: 0 0 16px; color: rgba(255, 255, 255, .78); }
.s-hero p a { color: #d4ff3a; }
.s-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.s-facts li { padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.s-facts b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* как купить */
.s-how ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.s-how li { counter-increment: step; position: relative; padding: 46px 14px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.s-how li::before { content: counter(step); position: absolute; top: 12px; left: 14px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--acc); color: var(--acc-ink); font: 800 14px var(--font); }
.s-how li b { display: block; color: var(--text); font-size: 15px; }

/* каталог */
.s-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.s-cats a { padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--text) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.s-cat { scroll-margin-top: 80px; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.s-card { display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.s-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 8px; }
.s-head img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.s-head h3 { margin: 0; font: 700 16.5px/1.2 var(--font); }
.s-head small { color: var(--muted); font-size: 13px; }
.s-card ul { list-style: none; margin: 0; padding: 0 14px; }
.s-card li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.s-card li small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.s-card li b { white-space: nowrap; }
.s-card details summary { cursor: pointer; padding: 8px 14px; color: var(--acc-text); font-weight: 600; font-size: 13.5px; list-style: none; }
.s-card details summary::-webkit-details-marker { display: none; }
.s-card details[open] summary { color: var(--muted); }
.s-buy { display: flex; align-items: center; justify-content: center; margin: auto 14px 14px; margin-top: 10px; padding: 10px; border-radius: 12px;
  background: var(--acc); color: var(--acc-ink) !important; font-weight: 800; text-decoration: none; }

/* подвал */
.s-foot { margin-top: 36px; padding: 20px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.s-seller b { color: var(--text); }
.s-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; }
.s-foot p { margin: 0; font-size: 12.5px; }
