:root {
  --navy: #071a33;
  --navy-soft: #0b2545;
  --teal: #00a6a6;
  --cyan: #17c9c6;
  --blue: #0a67f5;
  --paper: #f5f8fc;
  --line: #dfe8f0;
  --muted: #60728a;
  --white: #fff;
  --danger: #d63447;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

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

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

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.site-shell,
.shortcut-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar,
.shortcut-topbar,
.admin-topbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(10, 103, 245, 0.2);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 21px;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.header-help,
.shortcut-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 750;
  transition: 0.2s ease;
}

.header-help:hover,
.shortcut-back:hover {
  border-color: #b7d2dc;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 460px;
  margin: 0 auto;
  padding: 72px 72px 64px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 206, 200, 0.2), transparent 32%),
    linear-gradient(130deg, #06162d 0%, #0a2d51 55%, #07405b 100%);
  color: #fff;
  box-shadow: 0 25px 70px rgba(7, 26, 51, 0.17);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 48%, black);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-glow-one {
  width: 310px;
  height: 310px;
  right: -70px;
  bottom: -100px;
  background: rgba(10, 103, 245, 0.28);
}

.hero-glow-two {
  width: 160px;
  height: 160px;
  right: 160px;
  top: 35px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.shortcut-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(23, 201, 198, 0.13);
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-copy > p {
  max-width: 660px;
  margin: 0;
  color: #c6d8e7;
  font-size: 18px;
  line-height: 1.65;
}

.search-wrap {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  height: 62px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.search-wrap > span {
  color: #c5d9e8;
  font-size: 28px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.search-wrap input::placeholder {
  color: #bcd3e3;
}

.catalog-section,
.instruction,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.catalog-section {
  padding: 86px 0 70px;
}

.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.catalog-heading h2,
.instruction h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.result-count {
  padding: 10px 14px;
  border-radius: 999px;
  background: #e7eef6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.filters button,
.state-card button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

.filters button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

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

.app-card {
  min-height: 326px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(7, 26, 51, 0.055);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(7, 26, 51, 0.09);
}

.app-card.featured {
  border-color: #bfdfe4;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.app-badge {
  max-width: 140px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5f8;
  color: #3f7080;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-copy {
  margin: 24px 0 20px;
}

.card-copy small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.card-copy h3 {
  margin: 7px 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.install-button {
  min-height: 48px;
  margin-top: auto;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.button-arrow {
  font-size: 23px;
}

.skeleton {
  min-height: 326px;
  border-color: transparent;
  background: linear-gradient(100deg, #e9eef3 30%, #f7f9fb 50%, #e9eef3 70%);
  background-size: 300% 100%;
  animation: shimmer 1.35s infinite;
}

@keyframes shimmer {
  to { background-position-x: -150%; }
}

.state-card {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

.state-card strong {
  display: block;
  font-size: 22px;
}

.state-card p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.offline-notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #b9ddd8;
  border-radius: 16px;
  background: #effbf8;
  color: #0a675f;
}

.offline-notice > span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7f3ed;
  font-weight: 900;
}

.offline-notice strong,
.offline-notice p {
  display: block;
  margin: 0;
}

.offline-notice p {
  margin-top: 2px;
  color: #428077;
  font-size: 13px;
}

.instruction {
  margin-bottom: 74px;
  padding: 62px;
  border-radius: 30px;
  background: #eaf2f8;
}

.instruction-copy {
  max-width: 700px;
}

.instruction-copy > p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid #d6e3ed;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #9ab0c2;
  font-size: 12px;
  font-weight: 900;
}

.step-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.steps h3 {
  margin: 23px 0 8px;
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

footer {
  padding: 35px 0 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p,
.disclaimer {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: #35516c;
  font-size: 13px;
  font-weight: 700;
}

.disclaimer {
  grid-column: 1 / -1;
  max-width: 920px;
  line-height: 1.55;
}

/* Installer */

.shortcut-card {
  width: min(920px, calc(100% - 40px));
  margin: 18px auto 70px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(7, 26, 51, 0.1);
}

.shortcut-hero {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 28px;
}

.shortcut-kicker {
  grid-column: 1 / -1;
}

.shortcut-app-icon {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--teal), var(--blue));
  box-shadow: 0 20px 45px rgba(7, 26, 51, 0.18);
}

.shortcut-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shortcut-hero small {
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shortcut-hero h1 {
  margin: 5px 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.05em;
}

.shortcut-hero p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.safari-alert {
  margin-top: 24px;
  padding: 16px 18px;
  display: grid;
  gap: 5px;
  border: 1px solid #f0cf8b;
  border-radius: 16px;
  background: #fff8e9;
  color: #7c5915;
}

.safari-alert span {
  font-size: 13px;
  line-height: 1.5;
}

.guide-banner {
  margin-top: 28px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 20px;
  background: linear-gradient(130deg, #071a33, #0b3656);
  color: #fff;
}

.guide-banner > div > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.guide-banner strong,
.guide-banner p {
  display: block;
}

.guide-banner strong {
  margin-top: 5px;
  font-size: 18px;
}

.guide-banner p {
  margin: 5px 0 0;
  color: #bfd2df;
  font-size: 13px;
}

.guide-banner button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 17px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan);
  color: #06233a;
  font-weight: 850;
}

.shortcut-steps {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.shortcut-steps article {
  position: relative;
  min-height: 112px;
  padding: 21px 24px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.shortcut-step-number {
  position: absolute;
  top: 13px;
  right: 15px;
  color: #9ab0c2;
  font-size: 11px;
  font-weight: 900;
}

.shortcut-step-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e9f3f7;
  color: #0b6170;
  font-size: 25px;
  font-weight: 900;
}

.shortcut-steps h2 {
  margin: 1px 0 6px;
  padding-right: 25px;
  font-size: 19px;
}

.shortcut-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.share-action-preview,
.add-action-preview {
  margin-top: 13px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7e2ec;
  border-radius: 12px;
  background: #fff;
  color: #1d3750;
  font-size: 13px;
  font-style: normal;
}

.share-action-preview i,
.add-action-preview i {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.shortcut-safety {
  margin-top: 24px;
  padding: 20px;
  display: flex;
  gap: 14px;
  border: 1px solid #bde2d9;
  border-radius: 19px;
  background: #effbf8;
}

.safety-shield {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ccefe6;
  color: #087161;
  font-weight: 900;
}

.shortcut-safety p {
  margin: 4px 0 0;
  color: #3e766d;
  font-size: 13px;
  line-height: 1.55;
}

.shortcut-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.shortcut-primary,
.shortcut-secondary {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.shortcut-primary {
  background: var(--navy);
  color: #fff;
}

.shortcut-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.safari-coach {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(380px, calc(100% - 28px));
  padding: 24px 23px 74px;
  transform: translate(-50%, 16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(5, 24, 43, 0.96);
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: 0.22s ease;
  backdrop-filter: blur(18px);
}

.safari-coach.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.coach-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-size: 23px;
}

.coach-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.safari-coach > strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
}

.safari-coach > p {
  margin: 6px 0 17px;
  color: #c3d5e2;
  font-size: 14px;
}

.coach-next {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.coach-next > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 900;
}

.coach-next small,
.coach-next b {
  display: block;
}

.coach-next small {
  color: #8eb0c2;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.coach-next b {
  margin-top: 2px;
  font-size: 12px;
}

.coach-pointer {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: var(--cyan);
  font-size: 48px;
  line-height: 1;
  animation: point 0.85s ease-in-out infinite alternate;
}

@keyframes point {
  to { transform: translate(-50%, 7px); }
}

.opening-service::before {
  content: "Открываем официальный сервис…";
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

/* Admin */

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(23, 201, 198, 0.12), transparent 30%),
    var(--paper);
}

.admin-shell {
  width: min(1020px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 70px;
}

.admin-topbar {
  width: 100%;
}

.admin-login {
  width: min(470px, 100%);
  margin: 65px auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(7, 26, 51, 0.09);
}

.admin-login h1,
.admin-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.05em;
}

.admin-login > p,
.admin-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login form {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.admin-login label,
.admin-fields label {
  display: grid;
  gap: 7px;
  color: #425c73;
  font-size: 12px;
  font-weight: 800;
}

.admin-login input,
.admin-fields input,
.admin-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cfdae5;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--navy);
}

.admin-fields textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-login input:focus,
.admin-fields input:focus,
.admin-fields textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 103, 245, 0.1);
}

.admin-primary,
.admin-secondary,
.admin-ghost {
  min-height: 46px;
  padding: 0 17px;
  border-radius: 13px;
  font-weight: 850;
}

.admin-primary {
  border: 0;
  background: var(--navy);
  color: #fff;
}

.admin-secondary {
  border: 1px solid #b9d9df;
  background: #eefafa;
  color: #09636b;
}

.admin-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.admin-panel {
  padding-top: 32px;
}

.admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-heading > div {
  max-width: 700px;
}

.admin-stats {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-stats article {
  padding: 20px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.admin-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.admin-stats strong {
  font-size: 31px;
  letter-spacing: -0.04em;
}

.admin-toolbar {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-notice {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid #b9ddd8;
  border-radius: 13px;
  background: #effbf8;
  color: #0a675f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.admin-notice.error {
  border-color: #edc2c7;
  background: #fff1f2;
  color: #a42738;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-app {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.admin-app.open {
  border-color: #afced7;
  box-shadow: 0 14px 36px rgba(7, 26, 51, 0.06);
}

.admin-app-summary {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
}

.admin-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 14px;
  font-size: 18px;
}

.admin-app-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.admin-app-copy strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-app-copy small {
  color: var(--muted);
  font-size: 12px;
}

.admin-chevron {
  color: var(--teal);
  font-size: 23px;
}

.admin-editor {
  padding: 4px 18px 18px;
  border-top: 1px solid #edf1f5;
}

.admin-fields {
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.admin-fields .wide {
  grid-column: 1 / -1;
}

.admin-fields input[type="color"] {
  min-height: 48px;
  padding: 5px;
}

.admin-checks {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f5870;
  font-size: 13px;
  font-weight: 750;
}

.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.admin-app-actions {
  margin-top: 18px;
  display: flex;
  gap: 9px;
}

.admin-app-actions button {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: #365069;
  font-size: 12px;
  font-weight: 800;
}

.admin-app-actions button:disabled {
  cursor: default;
  opacity: 0.45;
}

.admin-app-actions .danger {
  margin-left: auto;
  border-color: #f0ccd0;
  background: #fff4f5;
  color: var(--danger);
}

.admin-loading {
  min-height: 55vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: var(--muted);
}

.opening-loader {
  width: 34px;
  height: 34px;
  border: 3px solid #dce5ec;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .hero {
    min-height: 420px;
    padding: 54px 40px;
  }

  .app-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortcut-card {
    padding: 30px;
  }

  .admin-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  .shortcut-topbar,
  .admin-topbar,
  .hero,
  .catalog-section,
  .instruction,
  footer,
  .shortcut-card,
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .topbar,
  .shortcut-topbar,
  .admin-topbar {
    min-height: 74px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 21px;
  }

  .brand-copy {
    gap: 6px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .header-help,
  .shortcut-back {
    min-height: 39px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 440px;
    padding: 44px 24px 34px;
    border-radius: 25px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-copy > p {
    font-size: 16px;
    line-height: 1.55;
  }

  .search-wrap {
    height: 56px;
    margin-top: 28px;
  }

  .catalog-section {
    padding: 62px 0 50px;
  }

  .catalog-heading {
    align-items: flex-start;
  }

  .catalog-heading h2,
  .instruction h2 {
    font-size: 32px;
  }

  .result-count {
    margin-top: 20px;
    white-space: nowrap;
  }

  .filters {
    margin: 24px -14px;
    padding: 0 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    flex: 0 0 auto;
  }

  .app-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 300px;
  }

  .instruction {
    margin-bottom: 50px;
    padding: 36px 20px;
    border-radius: 24px;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .disclaimer {
    grid-column: auto;
  }

  .shortcut-card {
    margin-top: 8px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .shortcut-hero {
    grid-template-columns: 88px 1fr;
    gap: 17px;
  }

  .shortcut-app-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }

  .shortcut-hero h1 {
    font-size: 31px;
  }

  .shortcut-hero p {
    grid-column: 1 / -1;
  }

  .guide-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-banner button {
    width: 100%;
  }

  .shortcut-steps article {
    grid-template-columns: 46px 1fr;
    padding: 18px;
    gap: 13px;
  }

  .shortcut-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .shortcut-actions {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    padding-bottom: 40px;
  }

  .admin-heading {
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
  }

  .admin-stats article {
    padding: 13px 10px;
  }

  .admin-stats strong {
    font-size: 24px;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }

  .admin-fields .wide {
    grid-column: auto;
  }

  .admin-app-actions {
    flex-wrap: wrap;
  }

  .admin-app-actions .danger {
    margin-left: 0;
  }
}

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