@font-face {
  font-family:Inter;
  src:url("/assets/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-display:swap;
}

@font-face {
  font-family:Inter;
  src:url("/assets/InterDisplay-Bold.ttf") format("truetype");
  font-weight:700;
  font-display:swap;
}

:root {
  --ink:#1c1b1a;
  --muted:#73716d;
  --paper:#fcf8f3;
  --line:#e7e0d8;
  --orange:#c94113;
  --radius:22px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.55;
}

button,input,textarea,select {
  font:inherit;
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.5;
}

a {
  color:inherit;
}

[hidden] {
  display:none!important;
}

.shell {
  width:min(1160px,calc(100% - 64px));
  margin-inline:auto;
}

.header {
  min-height:102px;
  display:flex;
  align-items:center;
  gap:36px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:-.5px;
  white-space:nowrap;
}

.brand img {
  border-radius:13px;
}

.header nav {
  display:flex;
  gap:26px;
  margin-left:auto;
}

.header #account {
  min-width:0;
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.nav-link {
  background:none;
  border:0;
  padding:12px 0;
  color:var(--muted);
  font-weight:600;
}

.nav-link.active {
  color:var(--ink);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  border:1px solid transparent;
  border-radius:12px;
  padding:13px 19px;
  text-decoration:none;
  font-weight:600;
  line-height:1.3;
  min-height:46px;
}

.button-dark {
  background:var(--ink);
  color:white;
}

.button-light {
  background:white;
  border-color:var(--line);
  color:var(--ink);
}

.button-orange {
  background:var(--orange);
  color:white;
}

.button:hover:not(:disabled) {
  filter:brightness(.95);
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #ec965c;
  outline-offset:4px;
}

.notice {
  padding:14px 18px;
  border:1px solid #f2d6b5;
  border-radius:12px;
  background:#fff0dd;
  font-size:13px;
}

.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  padding:48px 0 56px;
}

.hero h1 {
  font-size:clamp(46px,5.6vw,74px);
  letter-spacing:-3.8px;
  line-height:1.04;
  margin:10px 0 25px;
  font-weight:700;
}

.hero-copy>p {
  color:var(--muted);
  font-size:16px;
  margin:0 0 26px;
}

.hero-products {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:center;
}

.hero-card {
  padding:0;
  text-align:left;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:white;
  box-shadow:0 10px 24px #6f58400a;
  transition:transform .2s;
}

.hero-card:hover {
  transform:translateY(-4px);
}

.hero-card img {
  display:block;
  width:100%;
  height:200px;
  object-fit:cover;
}

.hero-card>span {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:17px 16px;
  font-weight:600;
}

.hero-card-telegram {
  transform:translateY(28px);
}

.hero-card-telegram:hover {
  transform:translateY(24px);
}

.section-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px;
}

h2 {
  font-size:30px;
  line-height:1.2;
  letter-spacing:-1px;
  margin:0;
}

.section-head p {
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.catalog {
  padding-top:22px;
  scroll-margin-top:20px;
}

.search {
  display:flex;
  align-items:center;
  gap:14px;
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 18px;
}

.search>span {
  font-size:29px;
  color:var(--muted);
  line-height:1;
}

.search input {
  width:100%;
  min-height:34px;
  border:0;
  outline:none;
  background:none;
  color:var(--ink);
}

.categories {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:20px 0 12px;
}

.category {
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  padding:9px 16px;
  font-size:13px;
}

.category.active {
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}

.breadcrumbs {
  display:flex;
  gap:9px;
  align-items:center;
  margin:8px 0 20px;
  color:var(--muted);
  font-size:13px;
}

.breadcrumbs button {
  border:0;
  background:none;
  padding:0;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}

.products {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.product-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:200px;
  text-align:left;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:23px 20px;
  transition:border-color .2s,transform .2s;
}

.product-card:hover {
  border-color:#beada0;
  transform:translateY(-2px);
}

.product-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:#f4eee7;
  font-size:25px;
  margin-bottom:21px;
}

.product-card strong {
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:8px;
  max-width:100%;
  overflow-wrap:anywhere;
}

.product-card .muted {
  font-size:12px;
}

.product-card .price {
  margin-top:auto;
  padding-top:18px;
  font-size:15px;
}

.product-card .arrow {
  float:right;
  margin-left:20px;
  color:var(--muted);
}

.more {
  display:flex;
  margin:28px auto 0;
}

.empty {
  grid-column:1/-1;
  padding:50px 15px;
  color:var(--muted);
  text-align:center;
}

.footer {
  display:flex;
  align-items:center;
  gap:25px;
  border-top:1px solid var(--line);
  padding:30px 0;
  margin-top:74px;
  font-size:13px;
  color:var(--muted);
}

.footer .brand {
  font-size:15px;
  color:var(--ink);
}

.footer a:last-child {
  margin-left:auto;
  text-decoration:none;
}

dialog {
  width:min(520px,calc(100% - 28px));
  max-height:90dvh;
  overflow:auto;
  border:0;
  border-radius:24px;
  padding:0;
  overscroll-behavior:contain;
  color:var(--ink);
  box-shadow:0 25px 100px #0003;
}

.dialog-top {
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:flex-end;
  padding:6px 10px;
  background:white;
}

.dialog-body,#product-content {
  padding:0 34px 34px;
}

dialog::backdrop {
  background:#18181775;
  backdrop-filter:blur(5px);
}

dialog h2 {
  padding-right:20px;
  margin:5px 0 18px;
  font-size:27px;
  overflow-wrap:anywhere;
}

.close {
  flex:none;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  font-size:28px;
  color:var(--muted);
}

.product-description {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;
  white-space:pre-line;
  overflow-wrap:anywhere;
  max-height:170px;
  overflow:auto;
  font-size:14px;
  color:#64605b;
}

.muted {
  color:var(--muted);
}

.error {
  color:#ad271b;
  background:#fff0ec;
  border-radius:10px;
  padding:12px 15px;
  overflow-wrap:anywhere;
}

.field-label {
  display:block;
  font-size:13px;
  margin:17px 0 6px;
}

.field {
  display:block;
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
  background:#fff;
  color:var(--ink);
  min-width:0;
  font-size:16px;
}

.field-hint {
  font-size:12px;
  color:var(--muted);
  margin:4px 0;
}

.price-line {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  margin-top:24px;
  padding:19px 0;
  gap:12px;
  flex-wrap:wrap;
}

.price-line strong {
  font-size:25px;
  letter-spacing:-.8px;
}

dialog .button {
  width:100%;
  margin-top:10px;
}

.login-logo {
  border-radius:18px;
  margin-bottom:14px;
}

.login-code {
  font-size:34px;
  letter-spacing:7px;
  font-weight:700;
  background:var(--paper);
  text-align:center;
  border-radius:14px;
  padding:14px;
}

.orders {
  min-height:60vh;
  padding-top:30px;
}

.order-row {
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  margin-bottom:12px;
  width:100%;
  text-align:left;
}

.order-row span {
  margin-left:auto;
  color:var(--muted);
}

.order-row strong {
  font-size:15px;
  min-width:0;
  overflow-wrap:anywhere;
}

.order-row span {
  overflow-wrap:anywhere;
  min-width:0;
}

.order-detail {
  scroll-margin-top:20px;
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  margin-top:25px;
}

.order-detail > p {
  overflow-wrap:anywhere;
}

.order-detail h2 {
  font-size:23px;
}

.order-code {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
}

.order-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0;
}

.chat {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:20px;
}

.chat-line {
  padding:12px 14px;
  background:var(--paper);
  border-radius:12px;
  margin:10px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.chat-line.customer {
  background:#fff0e6;
}

@media(max-width:900px) {
  .shell {
    width:calc(100% - 40px);
  }
  .header {
    gap:20px;
  }
  .header nav {
    gap:15px;
  }
  .hero {
    gap:25px;
  }
  .hero h1 {
    font-size:54px;
    letter-spacing:-2.7px;
  }
  .hero-card img {
    height:160px;
  }
  .hero-card>span {
    font-size:12px;
    padding:14px 12px;
  }
  .products {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hero-products {
    gap:10px;
  }
}

@media(max-width:600px) {
  .shell {
    width:calc(100% - 32px);
  }
  .header {
    flex-wrap:wrap;
    gap:12px;
    padding:17px 0;
    min-height:auto;
  }
  .header .brand {
    font-size:16px;
  }
  .header .brand img {
    width:36px;
    height:36px;
  }
  .header>#account {
    margin-left:auto;
    max-width:140px;
    font-size:11px;
    padding:10px;
    min-height:38px;
  }
  .header nav {
    width:100%;
    order:3;
    margin:0;
    gap:26px;
  }
  .nav-link {
    padding:7px 0;
    font-size:13px;
  }
  .hero {
    grid-template-columns:1fr;
    padding:20px 0 32px;
    gap:25px;
  }
  .hero h1 {
    font-size:49px;
    letter-spacing:-2.7px;
    margin-top:0;
  }
  .hero-copy>p {
    font-size:14px;
  }
  .hero-products {
    gap:12px;
    align-items:start;
  }
  .hero-card img {
    height:130px;
  }
  .hero-card-telegram,.hero-card-telegram:hover {
    transform:none;
  }
  .hero-card>span {
    font-size:12px;
  }
  .section-head {
    align-items:baseline;
  }
  .section-head h2 {
    font-size:25px;
  }
  .section-head p {
    font-size:11px;
  }
  .products {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .product-card {
    min-height:180px;
    padding:18px 14px;
    border-radius:18px;
  }
  .product-card strong {
    font-size:14px;
  }
  .product-icon {
    width:41px;
    height:41px;
    font-size:22px;
    margin-bottom:15px;
  }
  .product-card .price {
    font-size:13px;
  }
  .footer {
    flex-wrap:wrap;
    gap:6px 20px;
    margin-top:46px;
    padding:24px 0;
  }
  .footer p {
    width:100%;
    order:3;
    font-size:11px;
  }
  .footer a:last-child {
    font-size:11px;
  }
  .dialog-body,#product-content {
    padding:0 22px 28px;
  }
  .order-row {
    gap:12px;
    font-size:12px;
    padding:16px;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .order-row span {
    margin-left:0;
  }
  .order-row strong {
    font-size:13px;
  }
  .order-detail {
    padding:20px;
  }
  .notice {
    font-size:12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}

/* The independent website keeps its layout; the Telegram entry uses the app shell below. */
.miniapp-only { display:none; }
.miniapp .miniapp-only { display:block; }
.miniapp {
  --surface:var(--tg-theme-section-bg-color,#ffffff);
  --pay-safe-top:0px;
  --pay-safe-bottom:0px;
  --pay-header-height:66px;
  --pay-bottom-space:calc(74px + max(env(safe-area-inset-bottom,0px),var(--pay-safe-bottom)));
  scroll-padding-top:calc(var(--pay-header-height) + 12px);
  scroll-padding-bottom:var(--pay-bottom-space);
}
.miniapp body {
  min-height:var(--pay-viewport-height,100dvh);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
  font-size:16px;
  line-height:1.4;
  padding-bottom:var(--pay-bottom-space);
}
.miniapp .shell { width:min(680px,calc(100% - 32px)); }
.miniapp .header {
  position:sticky;
  top:0;
  z-index:20;
  width:100%;
  min-height:0;
  padding:calc(var(--pay-safe-top) + 10px) 16px 10px;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.miniapp .brand { gap:10px; font-size:17px; letter-spacing:0; }
.miniapp .brand img { width:38px; height:38px; border-radius:10px; }
.miniapp #app-back { font-size:16px; border-radius:24px; min-height:40px; padding:8px 13px; color:var(--ink); }
.miniapp .header nav {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:30;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  width:100%;
  padding:7px max(8px,env(safe-area-inset-left,0px)) calc(7px + max(env(safe-area-inset-bottom,0px),var(--pay-safe-bottom)));
  border-top:1px solid var(--line);
  background:var(--surface);
}
.miniapp .header .nav-link {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:48px;
  font-size:11px;
  font-weight:500;
  color:var(--muted);
  padding:0 4px;
  border-radius:8px;
}
.miniapp .nav-icon { flex:none; }
.miniapp .header .nav-link.active { color:var(--orange); }
.miniapp #account,.miniapp .hero,.miniapp .footer { display:none; }
.miniapp main { padding-top:10px; }
.miniapp .catalog { padding-top:0; scroll-margin-top:calc(var(--pay-header-height) + 12px); }
.miniapp .section-head { margin-bottom:18px; gap:12px; align-items:center; }
.miniapp h1 { font-size:30px; line-height:1.2; margin:10px 0 20px; letter-spacing:-.8px; }
.miniapp .section-head h1 { margin:8px 0; }
.miniapp .section-head p { font-size:12px; text-align:right; }
.miniapp .search { margin:0 0 16px; background:var(--surface); border-color:var(--line); padding:12px 14px; }
.miniapp .categories { gap:8px; margin-bottom:18px; padding-bottom:8px; }
.miniapp .category { background:var(--surface); color:var(--ink); border-color:var(--line); padding:9px 13px; font-size:14px; }
.miniapp .category.active { background:var(--ink); color:var(--paper); }
.miniapp .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.miniapp .product-card { background:var(--surface); border-color:var(--line); min-height:180px; border-radius:18px; padding:16px; }
.miniapp .product-card strong { font-size:15px; }
.miniapp .product-card .muted { font-size:12px; }
.miniapp .product-card .price { font-size:14px; }
.miniapp .product-icon { background:color-mix(in srgb,var(--orange) 10%,var(--surface)); width:42px; height:42px; font-size:24px; margin-bottom:14px; }
.miniapp .button-light,.miniapp .order-row,.miniapp .order-detail,.miniapp .field { background:var(--surface); color:var(--ink); border-color:var(--line); }
.miniapp .button-dark { background:var(--ink); color:var(--paper); }
.miniapp .button-orange { background:var(--orange); color:white; }
.miniapp .orders { padding-top:0; }
.miniapp .order-row { gap:8px; flex-direction:column; align-items:flex-start; }
.miniapp .order-row span { margin-left:0; }
.miniapp .order-detail { padding:20px; scroll-margin-top:calc(var(--pay-header-height) + 12px); }
.miniapp .order-actions > * { width:100%; }
.miniapp .order-code,.miniapp .chat-line { background:var(--paper); }
.miniapp .chat-line.customer { background:color-mix(in srgb,var(--orange) 12%,var(--surface)); }
.miniapp dialog {
  background:var(--surface);
  color:var(--ink);
  width:min(520px,calc(100% - 20px));
  max-height:min(92dvh,calc(var(--pay-viewport-height,100dvh) - 24px));
}
.miniapp dialog .dialog-top { background:var(--surface); }
.miniapp .profile-card { background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:20px; margin-bottom:16px; display:flex; align-items:center; gap:16px; }
.miniapp .profile-card > div { min-width:0; overflow-wrap:anywhere; }
.miniapp .profile-card img { border-radius:14px; flex:none; }
.miniapp .profile-card p { margin:6px 0 0; overflow-wrap:anywhere; }
.miniapp .profile-help { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.miniapp .profile-help h2 { margin:0; font-size:21px; }
.miniapp .profile-help p { margin:0; }
.miniapp #telegram-auth-state p { margin-top:0; }
.miniapp #telegram-auth-state .button { margin-top:8px; }
.miniapp[data-scheme="dark"] .notice { color:var(--ink); background:#382d1c; border-color:#69502b; }
.miniapp[data-scheme="dark"] .error { color:#ffb7aa; background:#3c221f; }
.miniapp[data-scheme="dark"] .product-description { color:var(--muted); }
@media(min-width:580px) { .miniapp .products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:359px) { .miniapp .shell { width:calc(100% - 24px); } .miniapp .product-card { padding:12px; } }

/* KOSMOS native generation 2: compact service-first catalogue and grouped iOS surfaces. */
.miniapp { --muted:#68686f; --paper:#f2f2f7; --line:#e0e0e6; --orange:#c94113; }
.miniapp[data-scheme="dark"] { --muted:#acacb6; --orange:#ff9367; }
.miniapp body { -webkit-font-smoothing:antialiased; }
.miniapp .shell { width:min(680px,calc(100% - 32px)); }
.miniapp .header { flex-direction:row; flex-wrap:wrap; align-items:center; gap:0; padding-top:calc(var(--pay-safe-top) + 10px); padding-bottom:10px; }
.miniapp .header .brand { min-height:44px; font-size:16px; letter-spacing:-.2px; }
.miniapp .header .brand img { width:32px; height:32px; border-radius:9px; }
.miniapp #app-back { order:-1; width:100%; min-height:44px; margin:0 0 4px -8px; justify-content:flex-start; background:transparent; border:0; padding:8px; color:var(--orange); }
.miniapp #launch-notice { margin:2px 0 14px; border:0; background:transparent; color:var(--muted); padding:0; font-size:12px; }
.miniapp main { padding-top:0; }
.miniapp .section-head { margin-bottom:14px; }
.miniapp .section-head h1 { font-size:30px; letter-spacing:-.7px; margin:6px 0; overflow-wrap:anywhere; }
.miniapp .section-head #catalog-count { flex:none; padding:7px 9px; border-radius:10px; font-size:12px; background:var(--surface); }
.miniapp .search { min-height:48px; padding:5px 13px; gap:10px; border-radius:13px; margin-bottom:8px; }
.miniapp .search input { min-height:36px; font-size:16px; }
.miniapp .search:focus-within { outline:2px solid var(--orange); outline-offset:2px; }
.miniapp .categories { padding:6px 0 8px; margin:0 0 12px; gap:6px; scrollbar-width:none; scroll-snap-type:x proximity; }
.miniapp .categories::-webkit-scrollbar { display:none; }
.miniapp .category { min-height:44px; padding:9px 13px; border:0; font-size:14px; scroll-snap-align:start; font-weight:550; }
.miniapp .category.active { background:color-mix(in srgb,var(--orange) 11%,var(--surface)); color:var(--orange); }
.miniapp .breadcrumbs { flex-wrap:wrap; margin:0 0 16px; gap:0; }
.miniapp .breadcrumbs:empty { display:none; }
.miniapp .service-summary { display:flex; align-items:center; gap:14px; width:100%; padding:6px 0 12px; }
.miniapp .service-summary p { margin:0; font-size:14px; line-height:1.5; }
.miniapp .service-summary .service-description { color:var(--ink); font-size:16px; font-weight:550; }
.miniapp .breadcrumbs .text-action { min-height:44px; color:var(--orange); font-size:15px; text-decoration:none; }
.miniapp .products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.miniapp .product-card { min-height:200px; border-radius:18px; padding:16px; border:1px solid var(--line); position:relative; transition:transform 120ms ease,background-color 120ms ease; gap:0; }
.miniapp .product-card:hover { transform:none; border-color:var(--line); }
.miniapp .product-card:active { transform:scale(.975); }
.miniapp .service-icon { width:56px; height:56px; object-fit:contain; display:block; border-radius:13px; background:#fff; flex:none; margin-bottom:16px; outline:1px solid #0000000a; outline-offset:-1px; }
.miniapp .service-icon--missing { background:var(--line); }
.miniapp .service-summary .service-icon { margin:0; }
.miniapp .product-card__body { display:flex; flex-direction:column; gap:5px; min-width:0; }
.miniapp .product-card strong { display:block; font-size:16px; line-height:1.3; margin:0; font-weight:650; letter-spacing:-.2px; }
.miniapp .product-card .muted { display:block; font-size:12px; line-height:1.4; }
.miniapp .product-card .price { width:100%; padding-top:17px; font-weight:600; font-size:14px; font-variant-numeric:tabular-nums; }
.miniapp .product-card .arrow { float:right; font-weight:400; margin-left:6px; font-size:21px; line-height:17px; }
.miniapp .products--list { display:flex; flex-direction:column; gap:0; background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.miniapp .products--list .product-card { display:flex; flex-direction:row; align-items:center; gap:14px; min-height:82px; padding:16px; border:0; border-radius:0; }
.miniapp .products--list .product-card+.product-card { border-top:.5px solid var(--line); }
.miniapp .products--list .product-card__body { flex:1; }
.miniapp .products--list .price { margin:0; padding:0; width:auto; text-align:right; flex:none; max-width:44%; line-height:1.4; }
.miniapp .products--list .product-card--variant .price { max-width:37%; }
.miniapp .product-card--paused { opacity:.6; }
.miniapp .empty-state { grid-column:1/-1; text-align:center; padding:36px 16px; }
.miniapp .empty-state h2 { font-size:21px; letter-spacing:-.3px; }
.miniapp .empty-state p { font-size:14px; line-height:1.5; margin:12px 0 20px; }
.miniapp .empty-state .button { min-width:180px; }
.miniapp .button { min-height:48px; font-size:16px; border-radius:14px; transition:transform 120ms ease; }
.miniapp .button:active:not(:disabled) { transform:scale(.985); }
.miniapp .button-orange { background:#c94113; color:white; }
.miniapp .order-row { padding:17px; min-height:82px; gap:6px; border-radius:16px; }
.miniapp .order-row strong { font-size:16px; line-height:1.35; }
.miniapp .order-row span { font-size:13px; }
.miniapp .profile-card { padding:18px; border-radius:18px; }
.miniapp .profile-card strong { font-size:19px; }
.miniapp .profile-card p { font-size:14px; line-height:1.5; }
.miniapp .profile-card img { width:52px; height:52px; }
.miniapp .profile-help { gap:16px; }
.miniapp dialog { width:min(520px,calc(100% - 16px)); border-radius:22px; max-height:calc(var(--pay-viewport-height,100dvh) - 20px); }
.miniapp .close { width:44px; height:44px; font-size:30px; }
.miniapp .dialog-top { padding:4px 8px; }
.miniapp #product-content { padding:0 22px 24px; }
.miniapp #product-content>.service-icon { width:64px; height:64px; border-radius:15px; margin-bottom:14px; }
.miniapp dialog h2 { font-size:24px; line-height:1.25; letter-spacing:-.4px; margin:6px 0 18px; }
.miniapp .product-description { color:var(--muted); font-size:14px; line-height:1.5; max-height:180px; }
.miniapp .field-label { font-size:14px; margin-top:20px; font-weight:550; }
.miniapp .field-label .field { margin-top:8px; min-height:48px; background:var(--paper); }
.miniapp .field-hint { font-size:12px; line-height:1.45; }
.miniapp .price-line { margin-top:24px; padding:20px 0 12px; font-size:15px; }
.miniapp .price-line strong { font-size:24px; font-variant-numeric:tabular-nums; }
.miniapp .notice { font-size:13px; line-height:1.5; }
.miniapp .product-loading { min-height:200px; padding:24px 0; }
.miniapp[data-scheme="dark"] .product-description { color:var(--muted); }
@media(min-width:580px) { .miniapp .products:not(.products--list) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:359px) { .miniapp .shell { width:calc(100% - 24px); } .miniapp .product-card { padding:14px 12px; } .miniapp .product-card strong { font-size:15px; } .miniapp .products--list .product-card { padding:14px 12px; gap:10px; } .miniapp #product-content { padding-left:18px; padding-right:18px; } }
@media(prefers-reduced-motion:reduce) { .miniapp .product-card:active,.miniapp .button:active:not(:disabled) { transform:none; } }

.miniapp:not([data-scheme="dark"]) { --orange:#b9360c; }

.miniapp input::placeholder,.miniapp textarea::placeholder { color:var(--muted); opacity:1; }
