:root {
  --ink-0: #02070f;
  --ink-1: #061326;
  --ink-2: #0b2340;
  --panel-0: rgba(8, 20, 35, 0.86);
  --panel-1: rgba(11, 30, 52, 0.9);
  --panel-2: rgba(14, 39, 67, 0.95);
  --line-weak: rgba(136, 220, 255, 0.2);
  --line-mid: rgba(148, 225, 255, 0.38);
  --line-strong: rgba(177, 236, 255, 0.62);
  --text-strong: #f3fbff;
  --text-main: #d8efff;
  --text-muted: #9fc4e0;
  --text-faint: #6889a8;
  --gold-0: #c9f0ff;
  --gold-1: #79d8ff;
  --gold-2: #2ca0ec;
  --azure-0: #8de4ff;
  --azure-1: #1a5d96;
  --accent-hot: #ff5e54;
  --danger: #ff7f8c;
  --ok: #90e9c0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 14px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 30px;
  --radius-1: 12px;
  --radius-2: 18px;
  --radius-3: 24px;
  --radius-4: 30px;
  --shadow-soft: 0 18px 42px rgba(1, 9, 20, 0.56);
  --shadow-hard: 0 34px 84px rgba(1, 8, 18, 0.72);
  --ease-fast: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-base: 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --pointer-x: 50%;
  --pointer-y: 44%;
  --bottom-active-index: 0;
  --bottom-nav-height: 52px;
  --bottom-nav-offset: 10px;
  --bottom-nav-reserve: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + env(safe-area-inset-bottom));
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-bottom: calc(var(--bottom-nav-reserve) + 16px);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  font-family: var(--font-body);
  line-height: 1.52;
  color: var(--text-main);
  background:
    radial-gradient(1300px 760px at 92% -18%, rgba(122, 215, 255, 0.26), transparent 60%),
    radial-gradient(980px 700px at 8% 4%, rgba(36, 112, 186, 0.36), transparent 64%),
    radial-gradient(560px 420px at var(--pointer-x) var(--pointer-y), rgba(158, 231, 255, 0.12), transparent 72%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink-1) 42%, var(--ink-0) 78%, #020409 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    repeating-linear-gradient(
      -24deg,
      rgba(218, 239, 255, 0.045) 0,
      rgba(218, 239, 255, 0.045) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 48%);
}

body.is-modal-open {
  overflow: hidden;
}

body.is-loading .app-shell {
  opacity: 0;
  transform: translateY(22px) scale(0.995);
}

body.is-ready .app-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 620ms ease, transform 620ms ease;
}

::selection {
  color: #04111f;
  background: rgba(128, 201, 255, 0.84);
}

img,
video,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(116, 197, 255, 0.95);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-layer::before,
.ambient-layer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  transition: transform var(--ease-slow), opacity var(--ease-base);
}

.ambient-layer::before {
  width: min(54vw, 620px);
  height: min(54vw, 620px);
  top: -18%;
  left: -12%;
  background: radial-gradient(circle, rgba(95, 196, 255, 0.44), rgba(95, 196, 255, 0));
  transform: translate3d(calc((var(--pointer-x) - 50%) * -0.08), calc((var(--pointer-y) - 50%) * -0.08), 0);
}

.ambient-layer::after {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  right: -10%;
  top: -8%;
  background: radial-gradient(circle, rgba(74, 152, 232, 0.4), rgba(74, 152, 232, 0));
  transform: translate3d(calc((var(--pointer-x) - 50%) * 0.08), calc((var(--pointer-y) - 50%) * 0.08), 0);
}

.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background:
    radial-gradient(600px 480px at 10% 0%, rgba(69, 141, 205, 0.24), transparent 70%),
    radial-gradient(600px 480px at 88% 12%, rgba(90, 186, 246, 0.26), transparent 68%),
    linear-gradient(180deg, #07131e 0%, #03070c 100%);
  transition: opacity var(--ease-base), visibility var(--ease-base);
}

body.is-boot-ready .boot-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-panel {
  position: relative;
  width: min(440px, 94vw);
  display: grid;
  gap: var(--space-3);
  padding: 18px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-2);
  background:
    linear-gradient(155deg, rgba(13, 21, 32, 0.96), rgba(10, 16, 24, 0.96));
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.boot-panel::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 20%, transparent 82%, rgba(255, 255, 255, 0.12));
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

.boot-orb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 36% 32%, rgba(230, 246, 255, 0.94), rgba(188, 229, 255, 0.38) 35%, transparent 75%),
    linear-gradient(150deg, rgba(45, 82, 109, 0.62), rgba(79, 163, 231, 0.22));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  animation: boot-pulse 1.3s ease-in-out infinite;
}

.boot-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(74, 145, 210, 0.42);
  background: rgba(0, 0, 0, 0.44);
  overflow: hidden;
}

#boot-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ab0d0 0%, #86d5ff 100%);
  box-shadow: 0 0 16px rgba(144, 219, 255, 0.6);
  transition: width 180ms linear;
}

@keyframes boot-pulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.86;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 18px), 1240px);
  margin: 9px auto;
  min-height: calc(100dvh - 18px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

body.is-telegram-miniapp .app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  padding-bottom: calc(var(--bottom-nav-reserve) + 18px);
}

.app-topbar,
.command-panel,
.app-section,
.app-footer,
.terms-topbar,
.terms-hero,
.terms-card,
.terms-note {
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-3);
  background:
    linear-gradient(156deg, var(--panel-1) 0%, var(--panel-0) 58%, rgba(6, 14, 26, 0.94) 100%);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(174, 231, 255, 0.06) inset;
  backdrop-filter: blur(16px) saturate(1.18);
}

.app-main {
  min-height: 0;
}

.app-topbar {
  min-height: 72px;
  padding: 8px 11px;
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  gap: 10px;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  padding: 3px;
  background:
    linear-gradient(160deg, rgba(172, 220, 255, 0.76), rgba(33, 84, 128, 0.42));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 14px 24px rgba(0, 0, 0, 0.36);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.8), rgba(9, 15, 23, 0.88));
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.96rem, 0.78rem + 0.72vw, 1.26rem);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.brand-copy span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-faint);
}

.app-nav-inline {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(157, 229, 255, 0.24);
  background: rgba(8, 20, 34, 0.48);
}

.app-nav-inline a {
  position: relative;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--ease-fast), background var(--ease-fast), transform var(--ease-fast);
}

.app-nav-inline a.is-active,
.app-nav-inline a[aria-current="page"] {
  color: #02213a;
  background: linear-gradient(122deg, #e7f8ff 0%, var(--gold-0) 46%, #84d8ff 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 14px rgba(161, 229, 255, 0.36);
}

.app-nav-inline a:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.app-shortcut {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(177, 236, 255, 0.58);
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: var(--text-main);
  background:
    linear-gradient(132deg, rgba(95, 190, 241, 0.24), rgba(38, 113, 171, 0.32));
  transition: transform var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
}

.app-shortcut:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 218, 255, 0.8);
  color: var(--text-strong);
}
.app-screen {
  display: none;
}

.app-screen.is-active {
  display: block;
}

.command-panel,
.app-section {
  position: relative;
  padding: clamp(14px, 1.7vw, 22px);
  overflow: hidden;
}

.command-panel::before,
.app-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.12), transparent 20%, transparent 84%, rgba(255, 255, 255, 0.08));
  mix-blend-mode: screen;
  opacity: 0.26;
}

.command-panel {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  min-height: 388px;
  align-content: start;
  background:
    radial-gradient(620px 340px at 92% -24%, rgba(145, 224, 255, 0.2), transparent 66%),
    radial-gradient(560px 320px at -8% -16%, rgba(58, 149, 226, 0.32), transparent 62%),
    linear-gradient(154deg, rgba(14, 33, 56, 0.95), rgba(7, 17, 31, 0.95));
}

.hero-copy-stack {
  position: relative;
  z-index: 1;
  max-width: min(640px, 100%);
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(157, 197, 233, 0.86);
}

.hero-title-wrap {
  display: grid;
  gap: 8px;
}

#hero-title {
  margin: 0;
  display: grid;
  gap: 0;
}

.hero-title-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.02rem, 1.15rem + 3vw, 3.78rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--text-strong);
  text-transform: none;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.32),
    0 2px 0 rgba(0, 0, 0, 0.44);
}

.hero-title-line.is-accent {
  color: transparent;
  background: linear-gradient(110deg, #f0fbff 4%, #b8e9ff 32%, #70ccff 62%, #2d9be8 92%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.hero-flux {
  display: flex;
  gap: 7px;
}

.hero-flux span {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(97, 176, 236, 0.4), rgba(101, 188, 245, 0.56));
  animation: flux-pulse 2.2s ease-in-out infinite;
}

.hero-flux span:nth-child(1) {
  width: 94px;
}

.hero-flux span:nth-child(2) {
  width: 44px;
  animation-delay: 140ms;
}

.hero-flux span:nth-child(3) {
  width: 66px;
  animation-delay: 260ms;
}

@keyframes flux-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(0);
  }

  50% {
    opacity: 1;
    transform: translateX(6px);
  }
}

.command-lead {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(0.88rem, 0.82rem + 0.25vw, 0.98rem);
  line-height: 1.4;
  color: rgba(211, 232, 252, 0.96);
}

.quick-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-card {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 84px;
  padding: 12px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(156, 227, 255, 0.34);
  background:
    linear-gradient(148deg, rgba(14, 33, 55, 0.92), rgba(8, 19, 33, 0.94));
  transition: transform var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base);
  overflow: hidden;
}

.quick-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -70% auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(153, 226, 255, 0.38), transparent 68%);
  pointer-events: none;
}

.quick-card small {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: rgba(151, 188, 222, 0.82);
}

.quick-card strong {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--text-strong);
}

.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(188, 238, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: clamp(10px, 1.3vw, 14px);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.34rem, 0.98rem + 1.05vw, 1.86rem);
  line-height: 1;
  text-transform: none;
  letter-spacing: 0.015em;
  color: var(--text-strong);
}

.section-head > p {
  margin: 0;
  max-width: 56ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.section-head-compact {
  align-items: center;
}

.section-tools {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-tool {
  border: 1px solid rgba(140, 206, 255, 0.34);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(10, 17, 26, 0.54);
  color: var(--text-main);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  transition: border-color var(--ease-fast), transform var(--ease-fast), color var(--ease-fast);
}

.section-tool:hover {
  transform: translateY(-1px);
  border-color: rgba(170, 228, 255, 0.84);
  color: var(--text-strong);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-card {
  min-height: 180px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(136, 203, 255, 0.22);
  background:
    linear-gradient(110deg, rgba(16, 25, 37, 0.95) 12%, rgba(22, 36, 52, 0.95) 34%, rgba(16, 25, 37, 0.95) 64%);
  background-size: 220% 100%;
  animation: skeleton-wave 1.6s linear infinite;
}

@keyframes skeleton-wave {
  from {
    background-position: 220% 0;
  }

  to {
    background-position: -40% 0;
  }
}

.service-card {
  display: grid;
  gap: 10px;
  padding: clamp(11px, 1.2vw, 14px);
  border-radius: 14px;
  border: 1px solid rgba(154, 228, 255, 0.34);
  background:
    linear-gradient(148deg, rgba(13, 31, 51, 0.9), rgba(8, 18, 31, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.service-head {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
}

.service-head h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.2;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
}

.service-plain-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.service-plain-rules li {
  margin: 0;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(146, 220, 255, 0.24);
  background: rgba(11, 25, 42, 0.62);
  color: var(--text-main);
  line-height: 1.35;
  font-size: 0.84rem;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: 12px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field > span {
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-faint);
}

.search-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: var(--radius-1);
  border: 1px solid rgba(154, 227, 255, 0.3);
  background: rgba(8, 20, 35, 0.62);
}

.search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-main);
  background: transparent;
}

.search-row input::placeholder {
  color: rgba(150, 178, 205, 0.74);
}

.search-clear {
  flex: none;
  border: 1px solid rgba(132, 200, 255, 0.38);
  border-radius: 10px;
  min-height: 34px;
  padding: 0 11px;
  background: rgba(24, 48, 76, 0.4);
  color: var(--text-main);
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.toolbar-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar-chip {
  border-radius: 999px;
  border: 1px solid rgba(132, 200, 255, 0.24);
  padding: 7px 11px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(10, 17, 26, 0.4);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.filter-chip,
.media-chip,
.category-chip {
  border-radius: 999px;
  border: 1px solid rgba(132, 200, 255, 0.26);
  background: rgba(10, 17, 26, 0.52);
  color: var(--text-muted);
  transition:
    transform var(--ease-fast),
    border-color var(--ease-fast),
    color var(--ease-fast),
    background var(--ease-fast);
}

.filter-chip {
  padding: 7px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.filter-chip.is-active,
.media-chip.is-active,
.category-chip.is-active {
  color: #012038;
  border-color: rgba(207, 244, 255, 0.95);
  background: linear-gradient(120deg, #effbff 0%, #bcecff 45%, #6fcdff 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3), 0 0 14px rgba(160, 230, 255, 0.36);
}

.filter-chip:hover,
.media-chip:hover,
.category-chip:hover {
  transform: translateY(-1px);
  color: var(--text-strong);
  border-color: rgba(147, 214, 255, 0.72);
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  text-align: left;
  padding: 8px 11px;
}

.category-chip strong {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
}

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

.product-card {
  position: relative;
  border-radius: 15px;
  border: 1px solid rgba(155, 227, 255, 0.3);
  background:
    linear-gradient(148deg, rgba(13, 31, 51, 0.9), rgba(8, 19, 33, 0.95));
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: transform var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 239, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.product-media-stage {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(13, 31, 51, 0.92), rgba(8, 17, 30, 0.95));
  border-bottom: 1px solid rgba(155, 227, 255, 0.22);
}

.product-media-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.62));
  z-index: 2;
}

.product-media-stage picture,
.product-media-stage img,
.product-media-stage video,
.video-load-trigger {
  width: 100%;
  height: 100%;
}

.product-media-stage img,
.product-media-stage video {
  object-fit: cover;
}

.video-load-trigger {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
}

.video-load-trigger::after {
  content: "";
  position: absolute;
  width: 58px;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(188, 236, 255, 0.9);
  background:
    radial-gradient(circle at 42% 40%, rgba(228, 245, 255, 0.92), rgba(73, 160, 230, 0.9));
  transform: translate(-50%, -58%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.video-load-trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-41%, -60%);
  z-index: 3;
  width: 16px;
  height: 20px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #071e34;
}

.video-load-trigger-label {
  position: absolute;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(138, 207, 255, 0.4);
  background: rgba(10, 17, 26, 0.76);
  color: var(--text-main);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
}

.product-media-badge {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(141, 210, 255, 0.36);
  background: rgba(9, 15, 23, 0.68);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-main);
}

.product-body {
  display: grid;
  gap: 8px;
  padding: 9px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}

.product-head h3 {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-strong);
}

.product-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(135, 223, 185, 0.4);
  background: rgba(25, 56, 43, 0.22);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: var(--ok);
}

.product-copy {
  display: grid;
  gap: 7px;
}

.product-desc,
.product-strain {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.28;
}

.product-price-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.product-price-line {
  margin: 0;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(136, 203, 255, 0.2);
  background: rgba(10, 17, 26, 0.38);
  font-size: 0.72rem;
  color: var(--text-main);
}

.media-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.media-chip {
  padding: 4px 7px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.product-media-stage.is-switching > img,
.product-media-stage.is-switching > video,
.product-media-stage.is-switching > picture > img,
.product-media-stage.is-switching > .video-load-trigger picture img {
  animation: media-switch 340ms ease;
}

@keyframes media-switch {
  0% {
    opacity: 0.2;
    transform: scale(1.04);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.catalog-load-more-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.catalog-load-more {
  border: 1px solid rgba(145, 213, 255, 0.45);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  background: linear-gradient(125deg, rgba(70, 110, 137, 0.22), rgba(66, 146, 208, 0.28));
  color: var(--text-main);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.catalog-load-more:hover {
  border-color: rgba(170, 229, 255, 0.85);
}

.empty-state {
  border-radius: var(--radius-2);
  border: 1px dashed rgba(132, 200, 255, 0.38);
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(10, 16, 24, 0.44);
}
.official-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.official-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: clamp(11px, 1.2vw, 16px);
  border-radius: var(--radius-2);
  border: 1px solid rgba(155, 227, 255, 0.32);
  background:
    linear-gradient(148deg, rgba(13, 31, 51, 0.9), rgba(8, 19, 33, 0.95));
}

.official-card h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
}

.official-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.84rem;
}

.official-list {
  display: grid;
  gap: 8px;
}

.official-link-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.official-link {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(131, 200, 255, 0.23);
  background: rgba(10, 17, 26, 0.55);
  transition: border-color var(--ease-fast), transform var(--ease-fast);
}

.official-link:hover {
  border-color: rgba(147, 214, 255, 0.68);
  transform: translateY(-1px);
}

.official-link-static {
  opacity: 0.9;
}

.official-link-icon-shell {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  padding: 6px;
  border: 1px solid rgba(132, 201, 255, 0.28);
  background: rgba(16, 28, 42, 0.64);
  flex: none;
}

.official-link-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.official-link-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.official-link-copy strong {
  font-size: 0.92rem;
  color: var(--text-strong);
}

.official-link-copy small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.official-copy {
  flex: none;
  min-width: 72px;
  border-radius: 12px;
  border: 1px solid rgba(140, 208, 255, 0.4);
  background: rgba(21, 43, 66, 0.5);
  color: var(--text-main);
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
}

.app-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.app-footer-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.app-footer small {
  color: var(--text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.app-footer a {
  padding: 6px 10px;
  border: 1px solid rgba(132, 200, 255, 0.28);
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text-main);
}

.bottom-nav {
  --bottom-nav-gap: 6px;
  --bottom-nav-pad: 5px;
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  width: min(calc(100% - 14px), 500px);
  padding: var(--bottom-nav-pad);
  border-radius: 16px;
  border: 1px solid rgba(165, 231, 255, 0.32);
  background: rgba(7, 17, 30, 0.88);
  box-shadow: var(--shadow-hard);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bottom-nav-gap);
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: var(--bottom-nav-pad);
  bottom: var(--bottom-nav-pad);
  left: var(--bottom-nav-pad);
  width: calc((100% - (var(--bottom-nav-pad) * 2) - (var(--bottom-nav-gap) * 3)) / 4);
  border-radius: 10px;
  background: linear-gradient(122deg, #effbff 0%, #bcecff 46%, #6ecbff 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  transform: translateX(calc(var(--bottom-active-index) * (100% + var(--bottom-nav-gap))));
  transition: transform var(--ease-base);
}

.bottom-nav a {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  padding: 0 4px;
  font-size: 0.71rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--ease-fast), transform var(--ease-fast);
}

.bottom-nav a.is-active,
.bottom-nav a[aria-current="page"] {
  color: #05203a;
}

.bottom-nav a:hover {
  color: var(--text-strong);
}

.bottom-nav a.is-pressing {
  animation: bottom-nav-press 240ms ease-out;
}

.bottom-nav a.is-activated {
  animation: bottom-nav-activate 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bottom-nav-press {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bottom-nav-activate {
  0% {
    transform: translateY(0);
    filter: brightness(1);
  }

  50% {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }

  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
}

.command-overlay {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 8, 13, 0.7);
  backdrop-filter: blur(8px) saturate(0.9);
}

.command-dialog {
  width: min(640px, 100%);
  max-height: min(84dvh, 680px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-2);
  border: 1px solid rgba(166, 233, 255, 0.34);
  background:
    radial-gradient(620px 280px at 92% -40%, rgba(152, 224, 255, 0.2), transparent 70%),
    linear-gradient(152deg, rgba(11, 25, 43, 0.96), rgba(7, 16, 28, 0.97));
  box-shadow: var(--shadow-hard);
}

.command-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.command-head strong {
  font-family: var(--font-body);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-strong);
}

.command-head span {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(137, 206, 255, 0.32);
  color: var(--text-faint);
  font-size: 0.72rem;
}

.command-search-label {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-faint);
}

.command-search {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(133, 202, 255, 0.3);
  background: rgba(10, 17, 26, 0.6);
  color: var(--text-main);
  padding: 0 12px;
}

.command-search::placeholder {
  color: rgba(146, 176, 205, 0.76);
}

.command-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.command-item {
  text-align: left;
  border: 1px solid rgba(132, 201, 255, 0.2);
  border-radius: 12px;
  background: rgba(10, 17, 26, 0.45);
  color: var(--text-main);
  display: grid;
  gap: 4px;
  padding: 11px;
  transition: border-color var(--ease-fast), background var(--ease-fast), transform var(--ease-fast);
}

.command-item strong {
  font-size: 0.87rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.command-item small {
  color: var(--text-muted);
  line-height: 1.35;
}

.command-item.is-active,
.command-item:hover {
  border-color: rgba(171, 230, 255, 0.78);
  background: rgba(20, 39, 61, 0.5);
  transform: translateY(-1px);
}

.command-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(132, 201, 255, 0.3);
  color: var(--text-muted);
}

.app-toast-stack {
  position: fixed;
  right: 14px;
  bottom: calc(var(--bottom-nav-reserve) + 8px);
  z-index: 180;
  display: grid;
  gap: 8px;
  max-width: min(88vw, 340px);
}

.app-toast {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(136, 204, 255, 0.34);
  background: rgba(10, 16, 24, 0.92);
  color: var(--text-main);
  font-size: 0.86rem;
  box-shadow: var(--shadow-soft);
  animation: toast-in 220ms ease;
  transform-origin: right bottom;
}

.app-toast.is-hiding {
  animation: toast-out 240ms ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
  transition-delay: calc(var(--delay, 0) * 80ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html {
  scrollbar-color: rgba(129, 199, 252, 0.55) rgba(10, 17, 26, 0.55);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(9, 15, 23, 0.56);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(9, 15, 23, 0.56);
  background: linear-gradient(180deg, rgba(145, 213, 255, 0.84), rgba(35, 89, 136, 0.9));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(900px 380px at 50% 120%, rgba(0, 0, 0, 0.46), transparent 70%);
}

.app-topbar {
  position: sticky;
  top: 8px;
  z-index: 30;
}

body.is-telegram-miniapp .app-topbar {
  top: calc(6px + env(safe-area-inset-top));
}

.app-topbar::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(190, 238, 255, 0.9), transparent);
  pointer-events: none;
}

.quick-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(219, 248, 255, 0.92), rgba(118, 207, 255, 0.7));
}

.quick-card:hover {
  transform: translateY(-4px) rotateX(1deg);
}

.section-head {
  position: relative;
  padding-bottom: 10px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(220px, 44%);
  height: 2px;
  background: linear-gradient(90deg, rgba(205, 243, 255, 0.9), rgba(116, 207, 255, 0.44), transparent);
  border-radius: 999px;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(175, 231, 255, 0.54), rgba(97, 189, 245, 0.18), rgba(175, 231, 255, 0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.62;
}

.product-card:hover .product-media-stage img,
.product-card:hover .product-media-stage video {
  transform: scale(1.04);
}

.product-media-stage img,
.product-media-stage video {
  transition: transform var(--ease-base), filter var(--ease-base);
}

.official-card {
  position: relative;
}

.official-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 243, 255, 0.86), transparent);
}

.bottom-nav {
  backdrop-filter: blur(16px) saturate(1.2);
}

.bottom-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 24%, transparent 76%, rgba(183, 234, 255, 0.12));
  opacity: 0.5;
}

.bottom-nav a {
  text-shadow: none;
}

.command-list::-webkit-scrollbar {
  width: 8px;
}

.command-list::-webkit-scrollbar-track {
  background: rgba(10, 17, 26, 0.55);
  border-radius: 8px;
}

.command-list::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid rgba(10, 17, 26, 0.55);
  background: linear-gradient(180deg, rgba(145, 213, 255, 0.8), rgba(37, 92, 140, 0.85));
}
body.terms-page {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(860px 560px at 8% -10%, rgba(90, 185, 241, 0.28), transparent 70%),
    radial-gradient(980px 560px at 92% 0%, rgba(52, 130, 206, 0.34), transparent 70%),
    linear-gradient(160deg, #081528 0%, #05101f 44%, #02070f 100%);
}

body.terms-page::before {
  opacity: 0.24;
}

body.terms-page .ambient-layer,
body.terms-page .bottom-nav,
body.terms-page .app-toast-stack {
  display: none;
}

.terms-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 1240px);
  margin: 9px auto 14px;
  display: grid;
  gap: 12px;
}

.terms-topbar,
.terms-hero,
.terms-card,
.terms-note {
  padding: clamp(12px, 1.4vw, 18px);
}

.terms-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.terms-brand {
  min-width: 0;
  max-width: min(100%, 420px);
}

.terms-brand .brand-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.terms-brand .brand-copy strong {
  font-size: clamp(0.98rem, 0.86rem + 0.45vw, 1.2rem);
}

.terms-brand .brand-copy span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.terms-back {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(137, 206, 255, 0.36);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text-main);
}

.terms-hero {
  display: grid;
  gap: 10px;
  background:
    radial-gradient(560px 280px at 94% -24%, rgba(153, 225, 255, 0.18), transparent 70%),
    linear-gradient(154deg, rgba(13, 30, 52, 0.94) 0%, rgba(9, 21, 37, 0.94) 66%, rgba(6, 14, 25, 0.96) 100%);
}

.terms-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.52rem, 1.06rem + 1.55vw, 2.08rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-strong);
}

.terms-hero p {
  margin: 0;
  max-width: 74ch;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.42;
}

.terms-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.terms-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(136, 203, 255, 0.3);
  background: rgba(10, 17, 26, 0.45);
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.terms-card {
  display: grid;
  align-content: start;
  gap: 7px;
  background:
    linear-gradient(148deg, rgba(12, 29, 49, 0.9), rgba(8, 18, 31, 0.95));
}

.terms-card h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  color: var(--text-strong);
}

.terms-card p,
.terms-card li {
  margin: 0;
  color: var(--text-main);
  font-size: 0.82rem;
  line-height: 1.4;
}

.terms-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}

.terms-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.38;
}

@media (max-width: 1180px) {
  .app-shell {
    width: min(calc(100% - 12px), 1240px);
    margin: 6px auto;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .toolbar-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 1040px) {
  .app-topbar {
    grid-template-columns: minmax(0, auto) auto;
    grid-template-areas:
      "brand action"
      "nav nav";
  }

  .brand-lockup {
    grid-area: brand;
  }

  .app-nav-inline {
    grid-area: nav;
    justify-self: start;
  }

  .app-shortcut {
    grid-area: action;
    justify-self: end;
  }

  .quick-grid,
  .service-grid,
  .product-grid,
  .official-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-grid {
    grid-template-columns: 1fr;
  }

  .command-panel {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: 100%;
    margin: 0;
    min-height: 100dvh;
    padding: 8px 8px calc(var(--bottom-nav-reserve) + 18px);
  }

  body.is-telegram-miniapp .app-shell {
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
    padding-bottom: calc(var(--bottom-nav-reserve) + 18px);
  }

  .app-topbar,
  .command-panel,
  .app-section,
  .app-footer {
    border-radius: 16px;
  }

  .app-nav-inline {
    display: none;
  }

  .command-panel,
  .app-section {
    padding: 12px;
  }

  .quick-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .official-layout {
    grid-template-columns: 1fr;
  }

  .hero-title-line {
    line-height: 0.98;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-meta {
    justify-content: flex-start;
  }

  .official-link-row {
    align-items: center;
  }

  .official-copy {
    min-height: 42px;
    min-width: 62px;
  }

  .app-footer {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    margin-bottom: 2px;
  }

  .app-footer a {
    justify-self: start;
  }

  .bottom-nav {
    --bottom-nav-gap: 4px;
    --bottom-nav-pad: 4px;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    width: auto;
    transform: none;
    bottom: calc(8px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }

  .bottom-nav a {
    min-height: 38px;
    font-size: 0.69rem;
    padding: 0 2px;
  }

  .app-toast-stack {
    left: 10px;
    right: 10px;
    bottom: calc(var(--bottom-nav-reserve) + 8px);
    max-width: none;
  }

  .terms-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 700px) {
  .quick-grid,
  .service-grid,
  .official-layout,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .product-media-stage {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .brand-copy span {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .app-shortcut,
  .app-footer a,
  .section-tool,
  .catalog-load-more {
    font-size: 0.64rem;
  }

  .command-dialog {
    padding: 12px;
    border-radius: 16px;
  }

  .command-head strong {
    font-size: 1.04rem;
  }

  .terms-topbar {
    gap: 10px;
  }
}

@media (min-width: 901px) {
  .bottom-nav {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

}

body.is-low-power *,
body.is-low-power *::before,
body.is-low-power *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body.is-low-power .reveal,
body.is-low-power .reveal.is-visible {
  opacity: 1;
  transform: none;
}


