 :root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --text: #181818;
  --muted: #6d6a64;
  --line: #dedbd3;
  --accent-soft: #e5e2db;
  --ok: #3b4a3f;
  --shadow: 0 18px 48px rgba(20, 20, 20, 0.07);
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.95), transparent 28%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg) 46%, #f1f0ec 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 245, 242, 0.82);
  border-bottom: 1px solid rgba(222, 219, 211, 0.72);
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 780;
  letter-spacing: -0.04em;
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: #000;
  border-color: #000;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn.secondary:hover {
  background: var(--surface-soft);
  border-color: #c7c2b8;
}

section {
  padding: 48px 0;
}

.hero {
  padding: 58px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.label {
  background: var(--accent-soft);
  color: #3f3d39;
  border: 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(59,74,63,.1);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -0.075em;
  font-weight: 780;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 760;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-card {
  padding: 24px;
}

.data-card-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.data-state {
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 760;
}

.data-text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.verification-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.verification-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.68);
}

.verification-item > span,
.proof-index {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0eee8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.verification-item h3,
.proof-item h3,
.step h3,
.card h3,
.check-card h3 {
  margin-bottom: 6px;
  letter-spacing: -0.035em;
}

.verification-item h3 {
  font-size: 16px;
}

.verification-item p,
.proof-item p,
.step p,
.card p,
.check-card p {
  margin: 0;
  color: var(--muted);
}

.verification-item p,
.proof-item p,
.step p {
  font-size: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}

.section-head-single {
  margin-bottom: 22px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-text {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.problem-grid,
.features-grid,
.catalog-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card,
.check-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.72);
}

.card-number,
.check-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.card h3,
.check-card h3 {
  font-size: 21px;
  line-height: 1.1;
}

.review-strip {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 14px;
  align-items: stretch;
}

.review-card-large {
  padding: 26px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
}

.quote {
  margin-bottom: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.review-author {
  color: var(--muted);
  margin: 18px 0 0;
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.proof-item h3 {
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.7);
  overflow: hidden;
}

.step {
  min-height: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.step h3 {
  font-size: 20px;
}

.bottom-catalog {
  padding: 38px 0 56px;
}

.catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: #1c1c1b;
  color: #fff;
}

.catalog-cta h2 {
  color: #fff;
}

.catalog-cta p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 17px;
}

.catalog-cta .section-kicker {
  color: rgba(255,255,255,.5);
}

.catalog-cta .btn {
  background: #fff;
  color: #171717;
  border-color: #fff;
  flex: 0 0 auto;
}

footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.mobile-menu span,
.mobile-menu::before,
.mobile-menu::after {
  content: "";
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

/* Catalog page */
.page-hero {
  padding: 54px 0 56px;
}

.page-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.catalog-page-panel {
  padding: 26px;
}

.catalog-page-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.catalog-page-head h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3.2vw, 44px);
}

.catalog-page-head p {
  margin: 0;
  color: var(--muted);
}

.catalog-checks {
  margin-top: 18px;
}

.catalog-empty {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
}

.catalog-empty p {
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.service-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.service-name {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.045em;
}

.service-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.badge {
  padding: 7px 9px;
  border-radius: 999px;
  background: #f0eee8;
  font-size: 12px;
  color: #3e3b35;
  white-space: nowrap;
}

.badge-supreme {
  border: 1px solid rgba(115, 88, 37, .36);
  background:
    linear-gradient(135deg, #2e2b25 0%, #4d4435 42%, #9b8155 100%);
  color: #fff8e9;
  box-shadow: 0 8px 20px rgba(43, 37, 27, .16), inset 0 1px 0 rgba(255,255,255,.28);
}

.service-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.service-list li {
  display: flex;
  gap: 8px;
}

.service-list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--ok);
  opacity: .7;
}


.service-bonus-block {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(176, 131, 45, .24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(246,236,212,.64));
}

.service-bonus-block strong {
  font-size: 13px;
  letter-spacing: -.02em;
}

.service-bonus-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.service-bonus-block li {
  position: relative;
  padding-left: 18px;
}

.service-bonus-block li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: #9b8155;
  font-size: 12px;
}

.service-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rating strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.rating span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* Login page */
.login-section {
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  padding: 46px 0;
}

.login-container {
  max-width: 520px;
}

.login-card {
  padding: 30px;
}

.login-card h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin-bottom: 12px;
}

.login-card > p {
  color: var(--muted);
  margin-bottom: 22px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}

.login-form input:focus {
  border-color: #b9b3aa;
}

.login-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note-dark {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .review-strip,
  .catalog-page-head {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .features-grid,
  .catalog-checks,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav {
    height: 64px;
  }

  .brand {
    font-size: 19px;
  }

  .mobile-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: #f1f0ec;
  }

  section {
    padding: 34px 0;
  }

  .hero {
    padding: 38px 0 30px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    margin: 16px 0 14px;
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .data-card,
  .catalog-page-panel,
  .login-card {
    padding: 20px;
  }

  .data-card-head {
    padding-bottom: 14px;
  }

  .data-state {
    font-size: 34px;
    margin-top: 12px;
  }

  .verification-list {
    margin-top: 14px;
  }

  .verification-item {
    padding: 13px;
  }

  .section-head {
    display: block;
    margin-bottom: 18px;
  }

  .section-text {
    margin-top: 12px;
  }

  .problem-grid,
  .features-grid,
  .catalog-checks,
  .catalog-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .card,
  .check-card,
  .proof-item {
    padding: 18px;
  }

  .card-number,
  .check-card span {
    margin-bottom: 12px;
  }

  .review-card-large {
    padding: 20px;
    gap: 34px;
  }

  .proof-list {
    gap: 10px;
  }

  .step,
  .step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step {
    padding: 18px;
  }

  .step span {
    margin-bottom: 16px;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .bottom-catalog {
    padding: 28px 0 42px;
  }

  .catalog-cta {
    display: block;
    padding: 22px;
  }

  .catalog-cta .btn {
    width: 100%;
    margin-top: 20px;
  }

  .page-hero {
    padding: 36px 0 42px;
  }

  .page-head {
    margin-bottom: 18px;
  }

  .footer-inner {
    display: grid;
    gap: 8px;
  }
}


/* Admin */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.96), transparent 28%),
    linear-gradient(180deg, #faf9f6 0%, #f1f0ec 100%);
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-login-card {
  width: min(100%, 440px);
  padding: 30px;
}

.admin-login-card h1 {
  font-size: clamp(42px, 8vw, 62px);
  margin: 8px 0 10px;
}

.admin-login-card > p {
  margin-bottom: 22px;
  color: var(--muted);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 242, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.admin-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.admin-main {
  padding: 34px 0 56px;
}

.admin-hero {
  padding: 28px;
  margin-bottom: 18px;
}

.admin-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(38px, 5.6vw, 68px);
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stat {
  padding: 20px;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.admin-stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.admin-card {
  padding: 24px;
}

.admin-card h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 18px;
}

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

.admin-service-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.admin-service-form input,
.admin-service-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  resize: vertical;
}

.admin-service-form input:focus,
.admin-service-form textarea:focus,
.admin-service-form select:focus {
  border-color: #b9b3aa;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.65);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 650;
  background: rgba(240,238,232,.55);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-message {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.76);
}

.admin-message.is-success {
  border-color: rgba(59, 74, 63, .28);
}

.admin-message.is-error {
  border-color: rgba(190, 70, 70, .35);
}

@media (max-width: 980px) {
  .admin-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .admin-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .admin-nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-main {
    padding: 24px 0 40px;
  }

  .admin-grid,
  .admin-stats-grid,
  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-card,
  .admin-login-card {
    padding: 20px;
  }
}

/* Admin layout patch */
.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.admin-side-nav {
  display: grid;
  gap: 8px;
}

.admin-side-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}

.admin-side-nav a:hover,
.admin-side-nav a.active {
  color: var(--text);
  background: #f0eee8;
  border-color: var(--line);
}

.admin-content {
  min-width: 0;
}

.admin-service-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.admin-stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .admin-side-nav {
    grid-template-columns: 1fr 1fr;
  }

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

/* Catalog filters */
.catalog-filter-panel {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.05fr .86fr auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
}

.filter-control {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.filter-control strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.filter-control span {
  color: var(--muted);
  font-size: 13px;
}

.filter-switch {
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.filter-switch input[type="checkbox"] {
  width: 42px;
  height: 24px;
  margin: 2px 0 0;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e7e4dc;
  cursor: pointer;
  position: relative;
}

.filter-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: transform .18s ease;
}

.filter-switch input[type="checkbox"]:checked {
  background: var(--text);
  border-color: var(--text);
}

.filter-switch input[type="checkbox"]:checked::after {
  transform: translateX(18px);
}

.price-filter input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.filter-actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.filter-actions .btn {
  width: 100%;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 16px;
}

.service-chips span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #f0eee8;
  color: var(--muted);
  font-size: 12px;
}

/* Admin service flags */
.admin-checkbox-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.56);
}

.admin-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.admin-checkbox-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .catalog-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .catalog-filter-panel {
    grid-template-columns: 1fr;
    padding: 12px;
  }

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

/* Catalog mobile compact cards */
@media (max-width: 720px) {
  .page-hero {
    padding: 26px 0 34px;
  }

  .catalog-page-panel {
    padding: 16px;
  }

  .catalog-page-head {
    gap: 14px;
    padding-bottom: 16px;
  }

  .catalog-page-head h2 {
    margin-top: 10px;
  }

  .catalog-checks {
    display: none;
  }

  .catalog-filter-panel {
    gap: 10px;
    margin-top: 14px;
    padding: 10px;
    border-radius: 18px;
  }

  .filter-control {
    padding: 12px;
    border-radius: 14px;
  }

  .filter-control span {
    font-size: 12px;
  }

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

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

  .service-card {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  .service-top {
    display: block;
    margin-bottom: 10px;
  }

  .service-name {
    font-size: 15px;
    line-height: 1.12;
    letter-spacing: -.03em;
  }

  .service-meta {
    display: none;
  }

  .badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .service-chips {
    gap: 5px;
    margin: 0 0 10px;
  }

  .service-chips span {
    padding: 4px 6px;
    font-size: 10px;
    line-height: 1.2;
  }

  .service-list {
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
  }

  .service-list li:nth-child(n+3) {
    display: none;
  }

  .service-list li::before {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
    margin-top: 7px;
  }

  .service-bottom {
    padding-top: 10px;
  }

  .rating strong {
    font-size: 18px;
  }

  .rating span {
    font-size: 10px;
  }
}

/* Header action buttons */
.header-register,
.header-admin {
  margin-left: auto;
}

.header-admin {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .header-register,
  .header-admin {
    display: none;
  }
}

/* Admin cleanup */
@media (max-width: 1100px) {
  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Project link, trial period and delete actions */
.service-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.admin-table-link {
  color: var(--text);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-inline-form {
  margin: 0;
}

.admin-delete-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(160, 40, 40, .28);
  border-radius: 999px;
  background: rgba(160, 40, 40, .07);
  color: #8a1f1f;
  cursor: pointer;
}

.admin-delete-btn:hover {
  background: rgba(160, 40, 40, .12);
}

@media (max-width: 720px) {
  .service-bottom {
    gap: 8px;
    align-items: stretch;
  }

  .service-go-btn {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
  }
}

/* Public auth */
.is-user-authenticated .header-register {
  display: none;
}

.form-note-dark a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Site footer and document pages */
.site-footer {
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.42);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr .75fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-brand,
.footer-brand:visited {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.05em;
  color: var(--text);
}

.footer-brand-block p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

.footer-col {
  display: grid;
  gap: 9px;
}

.footer-col h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -.02em;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.document-page {
  padding: 54px 0 64px;
}

.document-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.document-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.document-card {
  padding: 24px;
}

.document-card-wide {
  grid-column: 1 / -1;
}

.document-card h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 36px);
}

.document-card p,
.document-card li {
  color: var(--muted);
}

.document-card p:last-child,
.document-card ul:last-child {
  margin-bottom: 0;
}

.document-card ul {
  padding-left: 20px;
}

.support-box {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
}

.support-box span {
  color: var(--muted);
  font-size: 13px;
}

.support-box a {
  font-weight: 720;
  letter-spacing: -.02em;
}

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

  .footer-brand-block {
    grid-column: 1 / -1;
  }

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

  .document-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 32px 0 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    display: grid;
  }

  .document-page {
    padding: 36px 0 42px;
  }

  .document-card {
    padding: 20px;
  }
}

/* Owners and owner cabinet */
.owner-page {
  padding: 40px 0 64px;
}

.owner-head {
  padding: 28px;
  margin-bottom: 18px;
}

.owner-head h1 {
  margin: 10px 0 10px;
  font-size: clamp(42px, 5vw, 70px);
}

.owner-head p {
  margin: 0;
  color: var(--muted);
}

.owner-section {
  padding: 28px 0 0;
}

.owner-services-grid {
  display: grid;
  gap: 14px;
}

.owner-service-card {
  padding: 24px;
}

.owner-service-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.owner-service-head h3 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3.2vw, 44px);
}

.owner-service-head p {
  margin: 0;
  color: var(--muted);
}

.owner-service-props {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.owner-service-props div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}

.owner-service-props span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.owner-service-props strong {
  display: block;
  font-size: 14px;
  word-break: break-word;
}

.owner-features {
  margin-top: 18px;
}

.owner-features h4 {
  margin: 0 0 8px;
}

.owner-features ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.owner-empty {
  padding: 24px;
}

.owner-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .owner-service-props {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-service-head {
    display: grid;
  }
}

@media (max-width: 720px) {
  .owner-page {
    padding: 28px 0 42px;
  }

  .owner-head,
  .owner-service-card {
    padding: 20px;
  }

  .owner-service-props {
    grid-template-columns: 1fr;
  }
}

/* Owner cabinet polish */
.owner-page {
  padding: 28px 0 52px;
}

.owner-head {
  padding: 24px 28px;
  margin-bottom: 12px;
}

.owner-head h1 {
  margin: 8px 0 8px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.98;
}

.owner-section {
  padding: 26px 0 0;
}

.owner-section .section-head {
  margin-bottom: 14px;
}

.owner-service-card,
.owner-api,
.owner-section .admin-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.owner-service-head {
  align-items: center;
}

.owner-service-head h3 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
}

.owner-service-props {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.owner-service-props div {
  min-width: 0;
}

.owner-api {
  min-height: auto;
  overflow: hidden;
}

.owner-api-content h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.02;
}

.owner-api-content p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.owner-section-last {
  padding-bottom: 12px;
}

.admin-table-wrap {
  max-width: 100%;
}

.admin-table {
  min-width: 760px;
}

@media (max-width: 980px) {
  .owner-service-props {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-service-head {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .owner-page {
    padding: 22px 0 38px;
  }

  .owner-head,
  .owner-service-card,
  .owner-api,
  .owner-section .admin-card {
    padding: 18px;
  }

  .owner-section {
    padding-top: 22px;
  }

  .owner-service-props {
    grid-template-columns: 1fr;
  }

  .owner-api-content h2 {
    font-size: 32px;
  }
}

/* Owner API block */
.owner-api {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
}

.owner-api-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.owner-api-info h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -.06em;
}

.owner-api-info p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.owner-api-key-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
}

.api-key-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.api-key-value {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f6f2;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}

.owner-api-key-card form {
  margin: 0;
}

.owner-api-key-card .btn {
  width: 100%;
}

.owner-api-key-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.api-doc-code {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f6f2;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 900px) {
  .owner-api {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .owner-api {
    padding: 18px;
  }

  .owner-api-key-card {
    padding: 14px;
  }
}

/* Owner API design v2 */
#owner-api.owner-api-section {
  padding-top: 28px;
}

#owner-api .owner-api-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.95), transparent 36%),
    rgba(255,255,255,.78);
}

#owner-api .owner-api-left,
#owner-api .owner-api-right {
  min-width: 0;
}

#owner-api .owner-api-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#owner-api .owner-api-left h2 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: .96;
  letter-spacing: -.065em;
}

#owner-api .owner-api-left > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

#owner-api .owner-api-benefits {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

#owner-api .owner-api-benefits div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}

#owner-api .owner-api-benefits span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

#owner-api .owner-api-benefits strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

#owner-api .owner-api-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

#owner-api .owner-api-doc-btn {
  margin-top: auto;
}

#owner-api .owner-api-right {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(250,249,246,.98), rgba(238,236,230,.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

#owner-api .owner-api-key-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

#owner-api .owner-api-key-header span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

#owner-api .owner-api-key-header strong {
  font-size: 14px;
}

#owner-api .owner-api-key-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

#owner-api .owner-api-key-value {
  display: block;
  width: 100%;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #d4d0c7;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
  white-space: normal;
}

#owner-api .owner-api-key-form {
  margin: 2px 0 0;
}

#owner-api .owner-api-key-form .btn {
  width: 100%;
}

#owner-api .owner-api-warning {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 980px) {
  #owner-api .owner-api-v2 {
    grid-template-columns: 1fr;
  }

  #owner-api .owner-api-doc-btn {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  #owner-api.owner-api-section {
    padding-top: 22px;
  }

  #owner-api .owner-api-v2 {
    padding: 18px;
    gap: 14px;
    border-radius: 22px;
  }

  #owner-api .owner-api-left h2 {
    font-size: 36px;
  }

  #owner-api .owner-api-benefits {
    grid-template-columns: 1fr;
    margin: 18px 0;
  }

  #owner-api .owner-api-benefits span {
    margin-bottom: 10px;
  }

  #owner-api .owner-api-right {
    padding: 16px;
    border-radius: 18px;
  }
}



/* Full service text safety */
.service-detail,
.service-detail-hero,
.service-detail-main,
.service-detail-grid,
.service-detail-card,
.service-detail-card p,
.service-detail-card h2,
.service-detail-list li,
.service-detail-chips span,
.service-facts strong,
.service-facts span,
.service-meta,
.service-name {
  min-width: 0;
}

.service-detail-card,
.service-detail-description,
.service-detail-card p,
.service-detail-main h1,
.service-detail-main p,
.service-detail-list li,
.service-detail-chips span,
.service-facts strong,
.service-meta,
.service-name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-detail-description p {
  max-width: 100%;
  white-space: pre-wrap;
}

/* Product cards and full service view */
.service-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.service-open-btn[aria-busy="true"] {
  opacity: .72;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.service-modal[hidden] {
  display: none;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .42);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .18s ease;
}

.service-modal-panel {
  position: relative;
  width: min(940px, 100%);
  max-width: calc(100vw - 56px);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 30px;
  background: rgba(250,249,246,.94);
  box-shadow: 0 28px 80px rgba(10, 10, 10, .22);
  transform: translateY(16px) scale(.985);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.service-modal.open .service-modal-backdrop {
  opacity: 1;
}

.service-modal.open .service-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.service-modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 58px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 16px 16px -58px auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20,20,20,.08);
}

.service-modal-content {
  padding: 18px;
}

.service-detail-section {
  padding: 34px 0 58px;
}

.service-detail-shell {
  min-height: 260px;
}

.service-detail {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
}

.service-detail-in-modal {
  box-shadow: none;
  border-color: rgba(222,219,211,.72);
}

.detail-back-link {
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.detail-back-link:hover {
  color: var(--text);
}

.service-detail-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.service-detail-main h1 {
  max-width: 760px;
  margin: 12px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.07em;
}

.service-detail-main p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -.02em;
}

.service-detail-badge {
  width: fit-content;
}

.service-detail-rating {
  min-width: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  text-align: right;
}

.service-detail-rating strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.05em;
}

.service-detail-rating span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.service-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-detail-chips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0eee8;
  color: var(--muted);
  font-size: 12px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.service-check-card .service-detail-list {
  grid-template-columns: 1fr;
}

.service-detail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.68);
}

.service-detail-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.service-detail-card p {
  margin: 0;
  color: var(--muted);
}

.service-detail-owner {
  margin-top: 14px !important;
  font-size: 14px;
}

.service-facts {
  display: grid;
  gap: 10px;
}

.service-facts div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.service-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-facts span {
  color: var(--muted);
  font-size: 12px;
}

.service-facts strong {
  font-size: 15px;
}

.service-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-detail-list li {
  position: relative;
  padding: 12px 12px 12px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 14px;
}

.service-detail-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--ok);
  opacity: .72;
}


.service-bonus-detail-card {
  border-color: rgba(176, 131, 45, .24);
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(247,238,216,.7));
}

.service-bonus-detail-list li::before {
  content: "★";
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #9b8155;
  opacity: .9;
}

.service-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f0eee8;
}

.service-detail-actions span {
  color: var(--muted);
  font-size: 13px;
}

.service-detail-cta {
  min-width: 150px;
}

.service-detail-cta.is-disabled {
  opacity: .58;
  pointer-events: none;
}

.service-not-found {
  display: grid;
  gap: 14px;
}

.service-not-found .btn {
  width: fit-content;
}

@media (max-width: 720px) {
  .catalog-grid {
    gap: 8px;
    margin-top: 12px;
  }

  .service-card {
    padding: 10px;
    border-radius: 15px;
  }

  .service-top {
    margin-bottom: 7px;
  }

  .service-name {
    font-size: 14px;
    line-height: 1.08;
  }

  .badge {
    margin-top: 6px;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.1;
  }

  .service-chips {
    gap: 4px;
    margin-bottom: 8px;
  }

  .service-chips span {
    max-width: 100%;
    padding: 3px 5px;
    font-size: 9px;
    line-height: 1.15;
  }

  .service-chips span:nth-child(n+3),
  .service-list {
    display: none;
  }

  .service-bottom {
    align-items: center;
    gap: 8px;
    padding-top: 8px;
  }

  .rating strong {
    font-size: 15px;
    line-height: 1;
  }

  .rating span {
    font-size: 9px;
    white-space: nowrap;
  }

  .service-go-btn {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }

  .service-detail-section {
    padding: 20px 0 38px;
  }

  .service-detail {
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .service-detail-hero,
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-detail-main h1 {
    font-size: 34px;
  }

  .service-detail-main p {
    font-size: 15px;
  }

  .service-detail-rating {
    min-width: 0;
    text-align: left;
  }

  .service-detail-card {
    padding: 12px;
    border-radius: 18px;
  }

  .service-detail-card h2 {
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: -.04em;
  }

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

  .service-conditions-card .service-facts div {
    gap: 2px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.64);
  }

  .service-conditions-card .service-facts div:last-child {
    border-bottom: 1px solid var(--line);
  }

  .service-conditions-card .service-facts span {
    font-size: 10px;
    line-height: 1.15;
  }

  .service-conditions-card .service-facts strong {
    min-width: 0;
    font-size: 12px;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }

  .service-check-card .service-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .service-detail-list li {
    min-width: 0;
    padding: 9px 9px 9px 22px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .service-detail-list li::before {
    top: 14px;
    left: 10px;
    width: 5px;
    height: 5px;
  }

  .service-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-detail-cta {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .service-conditions-card .service-facts,
  .service-check-card .service-detail-list {
    grid-template-columns: 1fr;
  }
}

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

/* Terms of Service page */
.terms-page {
  padding-top: 34px;
}

.terms-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.95), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(235,232,225,.72));
}

.terms-hero::after {
  content: "";
  position: absolute;
  inset: auto 30px 0 auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(24, 24, 24, .035);
  transform: translateY(42%);
  pointer-events: none;
}

.terms-hero-copy,
.terms-hero-note {
  position: relative;
  z-index: 1;
}

.terms-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(40px, 5.8vw, 74px);
}

.terms-hero .lead {
  max-width: 760px;
  margin-bottom: 0;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.terms-meta span,
.terms-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -.02em;
}

.terms-hero-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 22px;
  border-radius: 22px;
  background: var(--text);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.terms-hero-note span {
  width: max-content;
  margin-bottom: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.terms-hero-note p {
  margin: 26px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  letter-spacing: -.02em;
}

.terms-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: none;
  background: rgba(255,255,255,.56);
}

.terms-toc a {
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.terms-toc a:hover {
  transform: translateY(-1px);
  border-color: #c7c2b8;
  background: var(--surface-soft);
  color: var(--text);
}

.terms-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.terms-highlight-card {
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.terms-highlight-card span,
.terms-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -.03em;
}

.terms-highlight-card h2 {
  margin: auto 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
}

.terms-highlight-card p {
  margin: 0;
  color: var(--muted);
}

.terms-content {
  padding: 8px clamp(16px, 3vw, 28px);
}

.terms-section {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 3.5vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.terms-section:last-child {
  border-bottom: 0;
}

.terms-section h2 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 42px);
}

.terms-section p,
.terms-section li {
  max-width: 940px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.terms-section p:last-child,
.terms-section ul:last-child {
  margin-bottom: 0;
}

.terms-section-danger {
  margin-inline: calc(clamp(16px, 3vw, 28px) * -1);
  padding-inline: clamp(16px, 3vw, 28px);
  background: linear-gradient(135deg, rgba(24,24,24,.055), rgba(255,255,255,0));
}

.terms-note {
  max-width: 940px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(238,238,234,.62);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.terms-note strong {
  color: var(--text);
}

.terms-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .terms-hero {
    grid-template-columns: 1fr;
  }

  .terms-hero-note {
    min-height: auto;
  }

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

  .terms-highlight-card {
    min-height: auto;
  }

  .terms-highlight-card h2 {
    margin-top: 32px;
  }
}

@media (max-width: 720px) {
  .terms-page {
    padding-top: 22px;
  }

  .terms-hero {
    padding: 22px;
    border-radius: 24px;
  }

  .terms-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
    letter-spacing: -.07em;
  }

  .terms-meta span,
  .terms-toc a {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .terms-toc {
    margin-inline: -2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .terms-toc::-webkit-scrollbar {
    display: none;
  }

  .terms-toc a {
    flex: 0 0 auto;
  }

  .terms-content {
    padding: 4px 18px;
    border-radius: 24px;
  }

  .terms-section,
  .terms-section-danger {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .terms-section-danger {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .terms-section-num {
    width: 34px;
    height: 34px;
  }

  .terms-actions .btn {
    width: 100%;
  }
}


/* Privacy page refinement */
.privacy-page .terms-hero-note {
  background: linear-gradient(145deg, #181818, #2a2926);
}

.privacy-page .terms-highlight-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(238,236,229,.72));
}

.privacy-page .terms-section h2 {
  letter-spacing: -.055em;
}

/* Social links, public review flow and moderation polish */
.admin-social-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}

.admin-social-editor strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: -.02em;
}

.admin-social-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.admin-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-small-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.admin-small-btn:hover {
  background: #f0eee8;
}

.admin-reviews-table {
  min-width: 780px;
}

.service-social-card {
  display: grid;
  gap: 12px;
}

.service-social-links,
.owner-social-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-social-links a,
.owner-social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(20,20,20,.04);
}

.service-social-links a:hover,
.owner-social-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20,20,20,.08);
}

.service-review-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.9), transparent 42%),
    #fff;
}

.service-review-invite h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.045em;
}

.service-review-invite p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
}

.review-page-section {
  padding: 36px 0 64px;
}

.review-page-container {
  max-width: 820px;
}

.review-page-card {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}

.review-page-head h1,
.review-success-card h1 {
  margin: 10px 0 10px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: .96;
  letter-spacing: -.07em;
}

.review-page-head p,
.review-success-card p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.public-review-form {
  display: grid;
  gap: 14px;
}

.public-review-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.public-review-form textarea,
.public-review-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.public-review-form textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.public-review-form input[type="file"] {
  padding: 13px;
}

.public-review-form textarea:focus,
.public-review-form input[type="file"]:focus {
  border-color: #b9b3aa;
}

.public-review-form small,
.review-file-state {
  color: var(--muted);
  font-size: 12px;
}

.review-file-state {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(240,238,232,.55);
}

.review-form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.review-form-message.is-error {
  color: #8a1f1f;
}

.review-success-card .btn {
  width: fit-content;
}

.owner-social-links {
  margin-top: 14px;
}

.owner-social-links h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.owner-social-links span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .admin-social-grid {
    grid-template-columns: 1fr;
  }

  .service-review-invite {
    align-items: stretch;
    flex-direction: column;
  }

  .service-review-invite .btn,
  .review-success-card .btn {
    width: 100%;
  }

  .review-page-section {
    padding: 22px 0 42px;
  }

  .review-page-card {
    padding: 18px;
    border-radius: 24px;
  }

  .review-page-head h1,
  .review-success-card h1 {
    font-size: 36px;
  }
}

.admin-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 70px;
}

.admin-photo-thumb {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f0eee8;
}

.admin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Review stars, custom upload and published reviews */
.rating strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rating-star-mark {
  font-size: .78em;
  line-height: 1;
}

.service-detail-rating em {
  display: block;
  margin-top: 8px;
  color: #191817;
  font-style: normal;
  font-size: 14px;
  letter-spacing: .04em;
}

.service-reviews-card {
  display: grid;
  gap: 16px;
}

.service-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.service-reviews-head h2 {
  margin-bottom: 6px;
}

.service-reviews-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
}

.service-reviews-head > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.service-reviews-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
}

.service-reviews-side > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
}

.service-reviews-action {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.service-reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-review-card,
.service-reviews-empty {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.service-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.service-review-card-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-review-card-head span {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: .04em;
}

.service-review-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-review-card small {
  color: var(--muted);
  font-size: 12px;
}

.service-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.service-review-photos a,
.service-review-photos button {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f0eee8;
}

.service-review-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-reviews-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.service-reviews-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.service-reviews-pager button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}

.service-reviews-pager button:disabled {
  opacity: .45;
  cursor: default;
}

.service-reviews-pager span {
  color: var(--muted);
  font-size: 13px;
}

.review-rating-field,
.review-upload-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.review-rating-field > span,
.review-upload-field > span {
  color: var(--muted);
}

.review-star-picker {
  display: inline-flex;
  width: fit-content;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.review-star-picker button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c2beb6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.review-star-picker button:hover,
.review-star-picker button:focus-visible,
.review-star-picker button.is-active {
  background: #f0eee8;
  color: #171614;
}

.review-star-picker button:hover {
  transform: translateY(-1px);
}

.review-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.review-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.review-upload-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #171614;
  color: #fff !important;
  font-weight: 800;
  font-size: 14px !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.review-file-input:focus-visible + .review-upload-button,
.review-upload-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20,20,20,.12);
}

.review-upload-copy {
  color: var(--muted);
  font-size: 13px;
}

.review-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 8px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  font-size: 13px;
}

.review-photo-chip span {
  max-width: min(260px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-photo-chip button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #f0eee8;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.public-review-form input[type="file"].review-file-input {
  border: 0;
  padding: 0;
}

@media (max-width: 720px) {
  .service-reviews-head,
  .service-reviews-side,
  .review-upload-box {
    align-items: stretch;
    flex-direction: column;
  }

  .service-reviews-action {
    width: 100%;
  }

  .service-reviews-list {
    grid-template-columns: 1fr;
  }

  .service-reviews-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .service-reviews-pager button,
  .review-upload-button {
    width: 100% !important;
  }

  .review-star-picker {
    width: 100%;
    justify-content: space-between;
  }

  .review-star-picker button {
    width: 42px;
    height: 42px;
  }
}


.service-review-photos button,
.admin-photo-thumb {
  appearance: none;
  padding: 0;
  cursor: zoom-in;
}

.service-review-photos button:hover,
.service-review-photos button:focus-visible,
.admin-photo-thumb:hover,
.admin-photo-thumb:focus-visible {
  outline: 2px solid rgba(23, 22, 20, .34);
  outline-offset: 2px;
}

.photo-lightbox[hidden] {
  display: none !important;
}

body.photo-lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 15, 14, .78);
  backdrop-filter: blur(10px);
}

.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(980px, 100%);
  max-height: min(820px, 92vh);
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(250, 248, 242, .96);
  box-shadow: 0 40px 110px rgba(0,0,0,.35);
}

.photo-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: min(700px, 78vh);
  object-fit: contain;
  border-radius: 20px;
  background: #f0eee8;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  background: #171614;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  cursor: pointer;
}

.photo-lightbox-close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 26px;
  line-height: 1;
}

.photo-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.photo-lightbox-nav.is-prev {
  left: 14px;
}

.photo-lightbox-nav.is-next {
  right: 14px;
}

.photo-lightbox-close:hover,
.photo-lightbox-close:focus-visible,
.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
  transform: translateY(-1px);
}

.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.photo-lightbox-counter {
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .photo-lightbox {
    padding: 10px;
  }

  .photo-lightbox-dialog {
    padding: 10px;
    border-radius: 22px;
  }

  .photo-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .photo-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .photo-lightbox-nav.is-prev {
    left: 10px;
  }

  .photo-lightbox-nav.is-next {
    right: 10px;
  }
}


/* Admin editing improvements */
.admin-edit-state {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(59, 74, 63, .22);
  border-radius: 16px;
  background: rgba(59, 74, 63, .06);
  color: var(--text);
}

.admin-edit-state[hidden] {
  display: none;
}

.admin-edit-state strong {
  font-size: 14px;
}

.admin-edit-state span {
  color: var(--muted);
  font-size: 13px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-edit-service-btn {
  border-color: rgba(33, 33, 33, .16);
  background: #fff;
}

@media (max-width: 760px) {
  .admin-form-actions,
  .admin-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Private service analytics shown only to admin/owners */
.service-metrics-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(135deg, rgba(26, 26, 26, .04), rgba(255, 255, 255, .78));
}

.service-metrics-card div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
}

.service-metrics-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.service-metrics-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.045em;
}

@media (max-width: 720px) {
  .service-metrics-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }

  .service-metrics-card div {
    padding: 9px;
    border-radius: 14px;
  }

  .service-metrics-card span {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.15;
  }

  .service-metrics-card strong {
    font-size: 18px;
  }
}

/* Mobile card price and footer socials */
.service-title-area {
  min-width: 0;
}

.service-top-aside {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.service-mobile-badge,
.service-mobile-price {
  display: none;
}

.footer-social-btn {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: inherit;
  box-shadow: none;
}

.footer-social-btn:hover {
  color: var(--text);
  background: transparent;
  transform: none;
}

@media (min-width: 901px) {
  .footer-grid {
    grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(132px, .75fr));
  }
}

@media (max-width: 720px) {
  .service-card .service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .service-title-area {
    min-width: 0;
  }

  .service-top-aside {
    flex: 0 0 auto;
    max-width: 66px;
    margin-left: auto;
  }

  .service-desktop-badge {
    display: none !important;
  }

  .service-mobile-badge {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.1;
  }

  .service-mobile-price {
    display: inline-flex;
    justify-content: flex-end;
    max-width: 66px;
    text-align: right;
    color: var(--text);
    font-size: 10px;
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
  }

  .service-price-chip {
    display: none !important;
  }

  .footer-social-btn {
    width: auto;
    min-height: 0;
  }
}

/* Admin service modal and compact moderation layout */
.admin-card-full {
  grid-column: 1 / -1;
}

.admin-service-launch-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-service-launch-copy {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, .34);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .18s ease;
}

.admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(222, 219, 211, .92);
  border-radius: 30px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.96), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,240,234,.96));
  box-shadow: 0 32px 90px rgba(24, 24, 24, .22);
  transform: translateY(12px) scale(.985);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.admin-modal.open .admin-modal-backdrop,
.admin-modal.open .admin-modal-panel {
  opacity: 1;
}

.admin-modal.open .admin-modal-panel {
  transform: translateY(0) scale(1);
}

.admin-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.admin-modal-close:hover,
.admin-modal-back:hover,
.admin-service-app-tile:hover {
  background: #f0eee8;
}

.admin-modal-page {
  display: grid;
  gap: 14px;
}

.admin-modal-page[hidden] {
  display: none !important;
}

.admin-modal-page h2 {
  margin: 4px 48px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.07em;
  line-height: .95;
}

.admin-modal-page p {
  margin: 0;
  color: var(--muted);
}

.admin-modal-back {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
}

.admin-service-app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
}

.admin-service-app-tile {
  width: 168px;
  min-height: 204px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(20, 20, 20, .07);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.admin-service-app-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(20, 20, 20, .1);
}

.admin-service-app-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 16px 30px rgba(24,24,24,.14);
  overflow: hidden;
}

.admin-service-app-icon img {
  width: 82px;
  height: 82px;
  display: block;
  border-radius: 24px;
  object-fit: cover;
}

.admin-service-app-tile strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.03em;
}

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

.admin-service-app-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 720;
}

.admin-service-form-page .admin-service-form {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .admin-modal {
    padding: 10px;
    align-items: end;
  }

  .admin-modal-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 22px;
    border-radius: 26px;
  }

  .admin-service-app-grid {
    justify-content: center;
  }

  .admin-service-app-tile {
    width: min(100%, 178px);
  }
}

/* Admin compact layout and full statistics modal */
.admin-body .admin-main {
  padding: 8px 0 24px;
}

.admin-body .admin-shell {
  gap: 4px;
}

.admin-body .admin-grid {
  gap: 3px;
  margin-bottom: 3px;
}

.admin-body .admin-hero {
  margin-bottom: 3px;
}

.admin-body .admin-card,
.admin-body .admin-hero {
  border-radius: 24px;
}

.admin-statistics-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 3px;
}

.admin-statistics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-statistics-head h2 {
  margin: 6px 0 6px;
}

.admin-statistics-head p,
.admin-stats-modal-lead {
  margin: 0;
  color: var(--muted);
}

.admin-stats-inside {
  margin: 0;
  gap: 6px !important;
}

.admin-stats-inside .admin-stat {
  padding: 16px;
  background: rgba(255,255,255,.72);
}

.admin-stats-modal-panel {
  width: min(100%, 1120px);
}

.admin-stats-modal-panel > h2 {
  margin: 4px 48px 8px 0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.07em;
  line-height: .95;
}

.admin-stats-detail {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.admin-stats-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats-detail-card,
.admin-stats-safe-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.admin-stats-detail-card span,
.admin-stats-safe-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.admin-stats-detail-card strong,
.admin-stats-safe-grid strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.045em;
}

.admin-stats-section {
  display: grid;
  gap: 10px;
}

.admin-stats-section-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -.045em;
}

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

.admin-stats-safe-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-stats-two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stats-table-wrap {
  max-height: 360px;
  overflow: auto;
}

.admin-stats-table {
  min-width: 1040px;
}

.admin-stats-reviews-table {
  min-width: 900px;
}

@media (max-width: 980px) {
  .admin-stats-detail-grid,
  .admin-stats-safe-grid,
  .admin-stats-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-statistics-head {
    display: grid;
  }

  .admin-statistics-head .btn {
    width: 100%;
  }

  .admin-stats-detail-grid,
  .admin-stats-safe-grid,
  .admin-stats-two-cols {
    grid-template-columns: 1fr;
  }
}

.admin-stats-inside {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .admin-stats-inside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-stats-inside {
    grid-template-columns: 1fr;
  }
}

/* Referral system admin block */
.admin-referral-stats {
  margin-bottom: 12px;
}

.admin-referral-table {
  min-width: 920px;
}

.admin-referral-table code,
.admin-card code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(240,238,232,.9);
  color: var(--text);
  font-size: 12px;
}

.admin-referral-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Admin grid pages */
.admin-page-shell {
  display: grid;
  gap: 16px;
}

.admin-page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
}

.admin-page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
  letter-spacing: -.06em;
}

.admin-page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-nav-actions a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-nav-actions a:hover,
.admin-nav-actions a.active {
  color: var(--text);
  background: rgba(255,255,255,.72);
  border-color: var(--line);
}

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

.admin-home-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-tile {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-tile:hover,
.admin-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(26, 26, 26, .18);
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 60px rgba(25, 25, 25, .10);
}

.admin-tile-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.admin-tile-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.admin-tile strong {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: .98;
  letter-spacing: -.05em;
}

.admin-tile small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.admin-tile-meta {
  width: fit-content;
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: var(--muted);
  font-size: 13px;
}

.admin-tile-action {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}

.admin-section-grid {
  align-items: start;
}

.admin-card-full {
  grid-column: 1 / -1;
}

.admin-stats-page-detail {
  margin-top: 16px;
}

.admin-small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .admin-home-grid,
  .admin-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-page-hero {
    display: grid;
    padding: 20px;
  }

  .admin-hero-actions {
    justify-content: flex-start;
  }

  .admin-nav-actions {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-tile-grid,
  .admin-home-grid {
    grid-template-columns: 1fr;
  }

  .admin-tile {
    min-height: 180px;
  }
}

/* Product type label in public catalog cards */
.service-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.service-type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.catalog-products-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.catalog-products-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.055em;
}

.catalog-products-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.catalog-checks-after {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .catalog-products-head {
    display: grid;
    align-items: start;
  }
}

/* Public catalog category app grid */

.catalog-has-category .catalog-category-section {
  display: none;
}

.catalog-category-section {
  margin-top: 24px;
}

.catalog-category-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding-top: 4px;
}

.catalog-category-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.055em;
}

.catalog-category-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
}

.catalog-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.catalog-app-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.92), rgba(255,255,255,0) 38%),
    rgba(255,255,255,.66);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(22, 20, 15, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.catalog-app-card:hover,
.catalog-app-card:focus-visible,
.catalog-app-card.active {
  transform: translateY(-2px);
  border-color: rgba(25, 24, 22, .28);
  background: #fff;
  box-shadow: 0 24px 58px rgba(22, 20, 15, .1);
}

.catalog-app-card.active {
  outline: 2px solid rgba(25, 24, 22, .10);
  outline-offset: 2px;
}

.catalog-app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f3f0e9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(22, 20, 15, .08);
}

.catalog-app-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.catalog-app-card strong {
  margin-top: auto;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.045em;
}

.catalog-app-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.catalog-products-section[hidden] {
  display: none !important;
}

.catalog-products-section {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .catalog-category-head {
    display: grid;
    align-items: start;
  }

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

  .catalog-app-card {
    min-height: 148px;
    padding: 14px;
    border-radius: 20px;
  }

  .catalog-app-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .catalog-app-icon img {
    width: 30px;
    height: 30px;
  }

  .catalog-app-card strong {
    font-size: 19px;
  }
}

/* Category-specific filters */
.filter-control[hidden],
[data-category-filter][hidden] {
  display: none !important;
}

/* Telegram channel notice */
.telegram-channel-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(18, 18, 18, .10);
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.telegram-channel-notice.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.telegram-channel-notice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #111;
}

.telegram-channel-notice-icon img {
  width: 23px;
  height: 23px;
  filter: invert(1);
}

.telegram-channel-notice-content {
  min-width: 0;
}

.telegram-channel-notice-content strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.telegram-channel-notice-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.telegram-channel-notice-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.telegram-channel-notice-actions .btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}

.telegram-channel-notice-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.telegram-channel-notice-close:hover,
.telegram-channel-notice-close:focus-visible {
  color: var(--text);
  outline: none;
}

@media (max-width: 720px) {
  .telegram-channel-notice {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .telegram-channel-notice-icon {
    width: 42px;
    height: 42px;
  }

  .telegram-channel-notice-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ================================================================
   XPTrust dark visual system — 2026 redesign
   ================================================================ */

@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/SFProDisplay-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/SFProDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/SFProDisplay-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("/assets/fonts/SFProDisplay-Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0c0c0d;
  --surface-soft: #131315;
  --surface-raised: #18181b;
  --text: #f4f4f1;
  --muted: #919196;
  --muted-soft: #66666b;
  --line: rgba(255, 255, 255, .095);
  --line-strong: rgba(255, 255, 255, .18);
  --accent-soft: rgba(255, 255, 255, .075);
  --ok: #b7d7c1;
  --danger: #e4a3a3;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1220px;
}

html {
  background: var(--bg);
  scrollbar-color: #343438 var(--bg);
}

body,
button,
input,
select,
textarea {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(255, 255, 255, .07), transparent 27rem),
    radial-gradient(circle at 92% 28%, rgba(255, 255, 255, .035), transparent 24rem),
    #050505;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

::selection {
  color: #050505;
  background: #f3f3ef;
}

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

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .72);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
}

section {
  padding: 76px 0;
}

h1,
h2,
h3,
h4,
.brand,
.footer-brand,
.btn,
strong,
th {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 500;
}

h1 {
  margin: 22px 0 22px;
  font-size: clamp(48px, 6.3vw, 88px);
  line-height: .92;
  letter-spacing: -.072em;
}

h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: .98;
  letter-spacing: -.058em;
}

.accent-script {
  display: inline-block;
  margin-left: .04em;
  color: #fff;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1em;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: inherit;
  transform: none;
  text-shadow: none;
}

.lead,
.section-text,
.data-text,
.hero-note,
.catalog-page-head p,
.catalog-category-head p,
.catalog-products-head p,
.document-card p,
.document-card li,
.owner-head p,
.admin-card > p,
.admin-statistics-head p,
.admin-stats-modal-lead {
  color: var(--muted);
}

.lead {
  max-width: 700px;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 300;
  line-height: 1.55;
}

.section-kicker {
  margin-bottom: 12px;
  color: #8c8c91;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
}

.eyebrow,
.label,
.badge,
.service-type-pill,
.service-detail-chips span,
.service-chips span,
.terms-meta span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: #b8b8bc;
  font-weight: 400;
  box-shadow: none;
}

.dot {
  background: #c7e0cf;
  box-shadow: 0 0 0 4px rgba(183, 215, 193, .1), 0 0 18px rgba(183, 215, 193, .34);
}

/* Header */
.site-header,
.admin-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(22px) saturate(130%);
}

.site-header {
  position: sticky;
  top: 0;
}

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

.brand,
.footer-brand,
.brand:visited,
.footer-brand:visited {
  position: relative;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.055em;
}

.brand::after,
.footer-brand::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-radius: 50%;
  background: #fff;
  vertical-align: .16em;
  opacity: .76;
}

.nav-links {
  gap: 30px;
  color: #8f8f94;
  font-size: 14px;
  font-weight: 400;
}

.nav-links a {
  transition: color .18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.mobile-menu span,
.mobile-menu::before,
.mobile-menu::after {
  background: #f2f2ef;
}

/* Buttons */
.btn {
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid #f2f2ee;
  border-radius: 999px;
  background: #f2f2ee;
  color: #090909;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.018em;
  box-shadow: 0 12px 34px rgba(255, 255, 255, .08);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:hover {
  border-color: #fff;
  background: #fff;
  color: #050505;
  transform: translateY(-2px);
}

.btn.secondary,
.admin-small-btn,
.admin-modal-back,
.admin-modal-close {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .035);
  color: #e8e8e5;
  box-shadow: none;
}

.btn.secondary:hover,
.admin-small-btn:hover,
.admin-modal-back:hover,
.admin-modal-close:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .09);
  color: #fff;
}

/* Hero */
.hero.compact-hero {
  padding: 94px 0 80px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  gap: clamp(38px, 6vw, 88px);
}

.hero-grid > div:first-child {
  padding: 18px 0;
}

.hero-actions {
  gap: 10px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 19px;
  font-size: 13px;
}

.panel,
.card,
.check-card,
.step,
.service-card,
.filter-control,
.catalog-app-card,
.service-detail,
.service-detail-card,
.service-review-card,
.review-page-card,
.terms-highlight-card,
.terms-note,
.support-box,
.admin-tile,
.admin-stat,
.admin-stats-detail-card,
.admin-stats-safe-grid div {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(18, 18, 20, .94), rgba(9, 9, 10, .94));
  color: var(--text);
  box-shadow: none;
}

.panel {
  box-shadow: 0 28px 78px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.data-card {
  position: relative;
  padding: 28px;
  border-radius: 30px;
  overflow: hidden;
}

.data-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -130px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .075), transparent 67%);
  pointer-events: none;
}

.data-card-head {
  position: relative;
  padding-bottom: 24px;
  border-color: var(--line);
}

.data-state {
  max-width: 520px;
  margin: 20px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -.06em;
}

.verification-list {
  gap: 8px;
  margin-top: 18px;
}

.verification-item {
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 15px;
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  transition: background .18s ease, border-color .18s ease;
}

.verification-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .045);
}

.verification-item > span,
.proof-index {
  background: rgba(255, 255, 255, .07);
  color: #d0d0d3;
}

.verification-item h3,
.proof-item h3,
.step h3,
.card h3,
.check-card h3 {
  font-weight: 500;
}

.verification-item p,
.proof-item p,
.step p,
.card p,
.check-card p {
  color: var(--muted);
}

.section-head {
  margin-bottom: 30px;
}

.problem-grid,
.catalog-checks {
  gap: 12px;
}

.card,
.check-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 22px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.card:hover,
.check-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, #171719, #0b0b0c);
  transform: translateY(-4px);
}

.card-number,
.check-card span {
  color: #6f6f74;
  font-weight: 500;
}

.steps {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .018);
  overflow: hidden;
}

.step {
  min-height: 245px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.step:last-child {
  border-right: 0;
}

.step > span {
  color: #707075;
}

.bottom-catalog {
  padding-top: 20px;
}

.catalog-cta {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, .09), transparent 20rem),
    linear-gradient(145deg, #151516, #09090a);
}

.catalog-cta::after {
  content: "XP";
  position: absolute;
  right: 4%;
  bottom: -34%;
  color: rgba(255, 255, 255, .025);
  font-size: clamp(150px, 24vw, 340px);
  font-weight: 600;
  letter-spacing: -.1em;
  pointer-events: none;
}

.catalog-cta > * {
  position: relative;
  z-index: 1;
}

/* Catalog */
.page-hero {
  padding: 76px 0 84px;
}

.page-head {
  max-width: 900px;
  margin-bottom: 34px;
}

.catalog-page-panel {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 30px;
}

.catalog-page-head,
.catalog-products-head {
  border-color: var(--line);
}

.catalog-app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.catalog-app-card {
  position: relative;
  min-height: 205px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.catalog-app-card::after {
  content: "↗";
  position: absolute;
  top: 20px;
  right: 22px;
  color: #717176;
  font-size: 20px;
  transition: color .2s ease, transform .2s ease;
}

.catalog-app-card:hover,
.catalog-app-card:focus-visible,
.catalog-app-card.active {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, #1a1a1c, #0c0c0d);
  box-shadow: none;
  transform: translateY(-3px);
}

.catalog-app-card:hover::after {
  color: #fff;
  transform: translate(2px, -2px);
}

.catalog-app-icon,
.admin-tile-icon,
.admin-service-app-icon {
  border-color: var(--line);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.catalog-app-icon img,
.admin-tile-icon img,
.admin-service-app-icon img {
  filter: invert(1);
  opacity: .92;
}

.catalog-filter-panel {
  border-color: var(--line);
  background: rgba(255, 255, 255, .018);
}

.filter-control {
  background: rgba(255, 255, 255, .025);
}

.filter-switch input[type="checkbox"] {
  border-color: var(--line-strong);
  background: #28282c;
}

.filter-switch input[type="checkbox"]::after {
  background: #8e8e93;
  box-shadow: none;
}

.filter-switch input[type="checkbox"]:checked {
  border-color: #f0f0ec;
  background: #f0f0ec;
}

.filter-switch input[type="checkbox"]:checked::after {
  background: #090909;
}

.catalog-empty {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .018);
  color: var(--muted);
}

.catalog-grid {
  gap: 12px;
}

.service-card {
  min-height: 300px;
  padding: 22px;
  border-radius: 22px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, #19191b, #0b0b0c);
  transform: translateY(-3px);
}

.service-name {
  font-size: 22px;
  font-weight: 500;
}

.service-list,
.service-meta,
.rating span {
  color: var(--muted);
}

.service-list li::before,
.service-detail-list li::before {
  background: #b7d7c1;
}

.service-bottom {
  border-color: var(--line);
}

.service-bonus-block,
.service-bonus-detail-card {
  border-color: rgba(205, 178, 113, .24);
  background: linear-gradient(145deg, rgba(189, 157, 91, .1), rgba(19, 16, 11, .76));
}

.badge-supreme {
  border-color: rgba(210, 183, 116, .36);
  background: linear-gradient(135deg, #221e16, #665331);
  color: #fff6dc;
}

/* Forms and authentication */
.login-section,
.admin-login-screen {
  min-height: calc(100vh - 74px);
}

.login-card,
.admin-login-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
}

.login-card::before,
.admin-login-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-bottom: 24px;
  background: #fff;
}

.login-card h1,
.admin-login-card h1 {
  font-weight: 500;
}

.login-form label,
.admin-service-form label,
.owner-api-key-label {
  color: #aaaab0;
  font-weight: 400;
}

.login-form input,
.admin-service-form input,
.admin-service-form textarea,
.admin-service-form select,
.price-filter input,
.public-review-form input,
.public-review-form textarea,
.review-file-input {
  border: 1px solid var(--line);
  background: #09090a;
  color: #f3f3f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}

.login-form input::placeholder,
.admin-service-form input::placeholder,
.admin-service-form textarea::placeholder,
.price-filter input::placeholder,
.public-review-form input::placeholder,
.public-review-form textarea::placeholder {
  color: #5e5e63;
}

.login-form input:focus,
.admin-service-form input:focus,
.admin-service-form textarea:focus,
.admin-service-form select:focus,
.price-filter input:focus,
.public-review-form input:focus,
.public-review-form textarea:focus {
  border-color: rgba(255, 255, 255, .35);
  outline: none;
}

.form-note-dark a,
.admin-table-link,
.document-card a,
.support-box a,
.owner-social-links a {
  color: #f1f1ee;
  text-decoration-color: rgba(255, 255, 255, .3);
}

/* Service and review pages */
.service-detail-section,
.review-page-section {
  padding: 58px 0 80px;
}

.service-detail {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 30px;
}

.service-detail-in-modal {
  border-color: var(--line);
}

.service-detail-hero,
.service-facts div {
  border-color: var(--line);
}

.detail-back-link,
.service-detail-main p,
.service-detail-rating span,
.service-detail-card p,
.service-detail-owner,
.service-detail-actions span,
.service-review-card p {
  color: var(--muted);
}

.service-detail-rating,
.service-detail-list li,
.service-detail-actions,
.service-social-links a,
.service-review-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, .028);
}

.service-detail-actions {
  background: #111113;
}

.service-modal-backdrop,
.photo-lightbox-backdrop,
.admin-modal-backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(12px);
}

.service-modal-panel,
.photo-lightbox-dialog,
.admin-modal-panel {
  border-color: var(--line);
  background: #0b0b0c;
  color: var(--text);
  box-shadow: var(--shadow);
}

.review-upload-box,
.review-photo-chip,
.review-success-card,
.review-form-message,
.review-rating-field {
  border-color: var(--line);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
}

/* Documents */
.document-page {
  padding: 72px 0 84px;
}

.document-card {
  padding: 28px;
  border-radius: 24px;
}

.document-card h2 {
  font-weight: 500;
}

.support-box {
  background: rgba(255, 255, 255, .025);
}

.terms-hero,
.terms-toc,
.terms-content,
.terms-highlight-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 17, 19, .95), rgba(8, 8, 9, .95));
}

.terms-hero-note,
.terms-note,
.terms-section-num {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
}

.terms-toc a,
.terms-section p,
.terms-section li,
.terms-hero-note p,
.terms-highlight-card p {
  color: var(--muted);
}

.terms-toc a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.terms-section,
.terms-content > section + section {
  border-color: var(--line);
}

.terms-section-danger {
  background: rgba(142, 68, 68, .045);
}

.api-doc-code,
.admin-card code,
.owner-api-key-value {
  border: 1px solid var(--line);
  background: #070708;
  color: #d8d8d5;
}

/* Footer */
.site-footer {
  padding: 56px 0 28px;
  border-color: var(--line);
  background: #070708;
}

.footer-col h3 {
  color: #dcdcd9;
  font-weight: 500;
}

.footer-col a,
.footer-brand-block p,
.footer-bottom {
  color: #7f7f84;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-color: var(--line);
}

.footer-social-btn {
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #dcdcd9 !important;
}

/* Owner cabinet */
.owner-page {
  padding: 56px 0 84px;
}

.owner-head,
.owner-service-card,
.owner-api-v2,
.owner-api-right,
.owner-service-props div,
.owner-api-benefits div {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 17, 19, .95), rgba(8, 8, 9, .95));
}

.owner-service-head p,
.owner-service-props span,
.owner-api-left > p,
.owner-api-benefits p,
.owner-api-warning,
.owner-social-links span {
  color: var(--muted);
}

.owner-features,
.owner-social-links,
.owner-api-right {
  border-color: var(--line);
}

/* Admin */
.admin-body {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .055), transparent 28rem),
    #050505;
}

.admin-main {
  padding: 34px 0 80px;
}

.admin-sidebar,
.admin-card,
.admin-hero,
.admin-tile,
.admin-stat,
.admin-service-app-tile,
.admin-checkbox-row,
.admin-social-editor,
.admin-edit-state {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 17, 19, .96), rgba(8, 8, 9, .96));
  color: var(--text);
}

.admin-side-nav a {
  color: var(--muted);
}

.admin-side-nav a:hover,
.admin-side-nav a.active,
.admin-nav-actions a:hover,
.admin-nav-actions a.active {
  border-color: var(--line);
  background: rgba(255, 255, 255, .065);
  color: #fff;
}

.admin-table-wrap,
.admin-stats-table-wrap {
  border-color: var(--line);
  background: rgba(0, 0, 0, .16);
  scrollbar-color: #39393d transparent;
}

.admin-table,
.admin-stats-table {
  color: #d7d7d4;
}

.admin-table th,
.admin-table td,
.admin-stats-table th,
.admin-stats-table td {
  border-color: var(--line);
}

.admin-table th,
.admin-stats-table th {
  color: #77777d;
  background: #0b0b0c;
}

.admin-table tbody tr:hover,
.admin-stats-table tbody tr:hover {
  background: rgba(255, 255, 255, .025);
}

.admin-stat span,
.admin-stats-detail-card span,
.admin-stats-safe-grid span,
.admin-tile small,
.admin-tile-meta,
.admin-service-app-tile small,
.admin-service-launch-copy,
.admin-referral-note {
  color: var(--muted);
}

.admin-delete-btn {
  border-color: rgba(228, 163, 163, .25);
  background: rgba(228, 163, 163, .07);
  color: #e4a3a3;
}

.admin-message.is-success {
  border-color: rgba(183, 215, 193, .25);
  background: rgba(183, 215, 193, .07);
  color: #c7e2d0;
}

.admin-message.is-error {
  border-color: rgba(228, 163, 163, .25);
  background: rgba(228, 163, 163, .07);
  color: #edb2b2;
}

/* Floating notices */
.telegram-channel-notice {
  border-color: var(--line-strong);
  background: rgba(12, 12, 13, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.telegram-channel-notice-icon {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .07);
}

.telegram-channel-notice-content strong {
  color: #fff;
}

.telegram-channel-notice-content p,
.telegram-channel-notice-close {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-grid > div:first-child {
    max-width: 800px;
  }

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

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  section {
    padding: 50px 0;
  }

  .nav,
  .admin-nav {
    min-height: 64px;
  }

  .nav-links {
    top: 64px;
    border-color: var(--line-strong);
    background: rgba(10, 10, 11, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, .06);
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px);
    line-height: .94;
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .accent-script {
    font-size: 1em;
  }

  .hero.compact-hero {
    padding: 58px 0 44px;
  }

  .hero-grid {
    gap: 26px;
  }

  .data-card,
  .catalog-page-panel,
  .login-card,
  .admin-login-card {
    padding: 20px;
    border-radius: 24px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .problem-grid,
  .catalog-checks,
  .catalog-grid,
  .document-grid,
  .terms-highlight-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .check-card {
    min-height: 0;
    padding: 22px;
  }

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

  .step,
  .step:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .catalog-cta {
    align-items: flex-start;
    padding: 26px;
  }

  .catalog-cta::after {
    display: none;
  }

  .page-hero,
  .document-page,
  .owner-page,
  .service-detail-section,
  .review-page-section {
    padding: 44px 0 58px;
  }

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

  .catalog-app-card {
    min-height: 155px;
    padding: 16px;
  }

  .catalog-app-card::after {
    top: 14px;
    right: 16px;
  }

  .catalog-grid .service-card {
    min-height: 0;
    padding: 16px;
  }

  .service-card:hover,
  .card:hover,
  .check-card:hover,
  .catalog-app-card:hover {
    transform: none;
  }

  .service-detail {
    border-radius: 24px;
  }

  .site-footer {
    padding-top: 42px;
  }
}

@media (max-width: 420px) {
  .catalog-app-grid {
    grid-template-columns: 1fr;
  }

  .catalog-app-card {
    min-height: 150px;
  }

  .hero-actions,
  .hero-actions .btn,
  .terms-actions,
  .terms-actions .btn,
  .service-detail-actions,
  .service-detail-actions .btn {
    width: 100%;
  }

  .hero-actions,
  .terms-actions,
  .service-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================================================================
   Mobile experience pass — phones 360–430 px
   ================================================================ */

@media (max-width: 720px) {
  :root {
    --mobile-gutter: 16px;
    --mobile-radius: 22px;
  }

  html {
    scroll-padding-top: 78px;
  }

  body {
    min-width: 320px;
    font-size: 15px;
    line-height: 1.5;
    background:
      radial-gradient(circle at 22% -4%, rgba(255, 255, 255, .075), transparent 19rem),
      #050505;
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  body::before {
    opacity: .16;
    background-size: 54px 54px;
  }

  .container {
    width: calc(100% - (var(--mobile-gutter) * 2));
  }

  section {
    padding: 46px 0;
  }

  h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 12.7vw, 52px);
    line-height: .96;
    letter-spacing: -.062em;
  }

  h2 {
    font-size: clamp(31px, 8.9vw, 40px);
    line-height: 1;
    letter-spacing: -.052em;
  }

  .lead {
    font-size: 17px;
    line-height: 1.48;
  }

  .section-kicker {
    margin-bottom: 9px;
    font-size: 10px;
    letter-spacing: .15em;
  }

  .accent-script {
    margin-left: 0;
    font-size: 1em;
    letter-spacing: -.045em;
    transform: none;
  }

  /* Compact sticky header and touch-friendly menu */
  .site-header {
    padding-top: env(safe-area-inset-top);
    background: rgba(5, 5, 5, .86);
  }

  .nav {
    height: 64px;
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    z-index: 2;
    font-size: 20px;
  }

  .mobile-menu {
    position: relative;
    z-index: 32;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(255, 255, 255, .045);
    transition: border-color .18s ease, background .18s ease;
  }

  .mobile-menu:hover,
  .mobile-menu[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .09);
  }

  .mobile-menu span,
  .mobile-menu::before,
  .mobile-menu::after {
    left: 12px;
    width: 16px;
    height: 1px;
    border-radius: 2px;
    transform-origin: center;
    transition: top .18s ease, transform .18s ease, opacity .18s ease;
  }

  .mobile-menu::before {
    top: 15px;
  }

  .mobile-menu span {
    top: 20px;
  }

  .mobile-menu::after {
    top: 25px;
  }

  .mobile-menu[aria-expanded="true"]::before {
    top: 20px;
    transform: rotate(45deg);
  }

  .mobile-menu[aria-expanded="true"] span {
    opacity: 0;
  }

  .mobile-menu[aria-expanded="true"]::after {
    top: 20px;
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    right: var(--mobile-gutter);
    left: var(--mobile-gutter);
    z-index: 30;
    gap: 4px;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top));
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: rgba(12, 12, 13, .98);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .68);
    overflow-y: auto;
    transform: translateY(-8px) scale(.985);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }

  .nav-links.open {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    color: #b8b8bc;
    font-size: 16px;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, .065);
    color: #fff;
  }

  /* First viewport */
  .hero.compact-hero {
    padding: 42px 0 38px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-grid > div:first-child {
    padding: 0;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 26px;
  }

  .hero-actions .btn {
    min-height: 50px;
    padding: 0 20px;
  }

  .hero-note {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.45;
  }

  .data-card {
    padding: 18px;
    border-radius: 24px;
  }

  .data-card-head {
    padding-bottom: 18px;
  }

  .data-state {
    margin: 16px 0 11px;
    font-size: 34px;
    line-height: 1;
  }

  .data-text {
    font-size: 14px;
    line-height: 1.48;
  }

  .verification-list {
    gap: 7px;
    margin-top: 14px;
  }

  .verification-item {
    grid-template-columns: 36px 1fr;
    gap: 11px;
    padding: 12px;
    border-radius: 16px;
  }

  .verification-item > span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 11px;
  }

  .verification-item h3 {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .verification-item p {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Content rhythm and cards */
  .section-head,
  .section-head-single {
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-text {
    font-size: 15px;
    line-height: 1.5;
  }

  .problem-grid,
  .catalog-checks {
    gap: 9px;
  }

  .card,
  .check-card {
    padding: 20px;
    border-radius: 20px;
  }

  .card-number,
  .check-card span {
    margin-bottom: 14px;
  }

  .card h3,
  .check-card h3 {
    font-size: 20px;
  }

  .steps {
    border-radius: 22px;
  }

  .step {
    padding: 20px;
  }

  .bottom-catalog {
    padding-top: 4px;
  }

  .catalog-cta {
    gap: 22px;
    padding: 22px;
    border-radius: 22px;
  }

  .catalog-cta h2 {
    font-size: 34px;
  }

  .catalog-cta .btn {
    width: 100%;
    min-height: 50px;
  }

  /* Catalog feels native instead of a nested desktop panel */
  .page-hero {
    padding: 38px 0 58px;
  }

  .page-head {
    margin-bottom: 26px;
  }

  .catalog-page-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .catalog-page-head {
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(18, 18, 20, .94), rgba(9, 9, 10, .94));
  }

  .catalog-page-head h2,
  .catalog-category-head h2,
  .catalog-products-head h2 {
    font-size: 29px;
    line-height: 1.02;
  }

  .catalog-page-head p,
  .catalog-category-head p,
  .catalog-products-head p {
    font-size: 14px;
    line-height: 1.45;
  }

  .catalog-category-section {
    margin-top: 26px;
  }

  .catalog-category-head,
  .catalog-products-head {
    gap: 10px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .catalog-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
  }

  .catalog-app-card {
    min-height: 146px;
    padding: 14px;
    border-radius: 19px;
  }

  .catalog-app-card::after {
    top: 13px;
    right: 14px;
    font-size: 17px;
  }

  .catalog-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .catalog-app-icon img {
    width: 26px;
    height: 26px;
  }

  .catalog-app-card strong {
    font-size: 18px;
  }

  .catalog-app-card em {
    font-size: 11px;
    line-height: 1.28;
  }

  .catalog-products-section {
    margin-top: 24px;
  }

  .catalog-products-head {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .catalog-filter-panel {
    gap: 8px;
    margin-top: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .filter-control {
    min-height: 74px;
    padding: 13px;
    border-radius: 17px;
  }

  .filter-switch input[type="checkbox"] {
    margin-top: 0;
  }

  .price-filter input {
    height: 48px;
    margin-top: 4px;
  }

  .filter-actions {
    gap: 8px;
  }

  .filter-actions .btn {
    min-height: 48px;
  }

  .catalog-grid {
    gap: 9px;
    margin-top: 14px;
  }

  .catalog-grid .service-card {
    padding: 18px;
    border-radius: 20px;
  }

  .service-top {
    display: flex;
    margin-bottom: 14px;
  }

  .service-name {
    font-size: 20px;
  }

  .service-meta {
    display: block;
    font-size: 12px;
  }

  .badge {
    margin-top: 0;
    padding: 6px 8px;
    font-size: 10px;
  }

  .service-list {
    margin-bottom: 15px;
    font-size: 13px;
  }

  .service-list li:nth-child(n + 3) {
    display: flex;
  }

  .service-bottom {
    align-items: center;
  }

  .service-open-btn {
    min-height: 44px;
  }

  /* Authentication and forms */
  .login-section {
    min-height: calc(100dvh - 64px - env(safe-area-inset-top));
    align-items: start;
    padding: 34px 0 52px;
  }

  .login-card,
  .admin-login-card {
    padding: 22px;
    border-radius: 23px;
  }

  .login-card::before,
  .admin-login-card::before {
    margin-bottom: 20px;
  }

  .login-card h1,
  .admin-login-card h1 {
    font-size: 42px;
  }

  .login-card > p,
  .admin-login-card > p {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .login-form {
    gap: 13px;
  }

  .login-form input,
  .admin-service-form input,
  .admin-service-form select,
  .price-filter input,
  .public-review-form input {
    min-height: 50px;
    font-size: 16px;
  }

  .admin-service-form textarea,
  .public-review-form textarea {
    min-height: 126px;
    font-size: 16px;
  }

  .login-form .btn {
    min-height: 50px;
  }

  /* Documents and long reading */
  .document-page,
  .owner-page,
  .service-detail-section,
  .review-page-section {
    padding: 38px 0 58px;
  }

  .document-head {
    margin-bottom: 22px;
  }

  .document-card {
    padding: 20px;
    border-radius: 20px;
  }

  .document-card h2 {
    font-size: 28px;
  }

  .terms-hero {
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
  }

  .terms-hero h1 {
    font-size: 40px;
  }

  .terms-hero-note {
    padding: 16px;
    border-radius: 17px;
  }

  .terms-meta {
    gap: 6px;
  }

  .terms-meta span {
    padding: 6px 8px;
    font-size: 10px;
  }

  .terms-toc {
    display: flex;
    gap: 6px;
    margin-right: calc(var(--mobile-gutter) * -1);
    margin-left: calc(var(--mobile-gutter) * -1);
    padding: 10px var(--mobile-gutter);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .terms-toc::-webkit-scrollbar {
    display: none;
  }

  .terms-toc a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .terms-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .terms-section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .terms-section-num {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .terms-section h2 {
    font-size: 27px;
  }

  .terms-note {
    padding: 14px;
    border-radius: 16px;
  }

  /* Product view and dialogs become bottom sheets */
  .service-detail {
    gap: 13px;
    padding: 18px;
    border-radius: 22px;
  }

  .service-detail-hero {
    gap: 14px;
  }

  .service-detail-main h1 {
    font-size: 40px;
  }

  .service-detail-rating {
    min-width: 102px;
    padding: 13px;
    border-radius: 18px;
  }

  .service-detail-grid,
  .service-detail-info-grid,
  .service-detail-list {
    grid-template-columns: 1fr;
  }

  .service-detail-card {
    padding: 16px;
    border-radius: 18px;
  }

  .service-detail-actions {
    padding: 14px;
    border-radius: 18px;
  }

  .service-modal {
    align-items: end;
    padding: 0;
  }

  .service-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - 10px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
    overscroll-behavior: contain;
  }

  .service-modal-content {
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .service-modal-close {
    top: 10px;
    width: 44px;
    height: 44px;
    margin: 10px 10px -54px auto;
    background: rgba(24, 24, 26, .94);
  }

  .admin-modal {
    padding: 0;
  }

  .admin-modal-panel {
    max-height: calc(100dvh - env(safe-area-inset-top) - 10px);
    padding: 20px 18px calc(22px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
  }

  .review-page-card,
  .review-success-card {
    padding: 20px;
    border-radius: 22px;
  }

  .review-upload-box {
    padding: 14px;
    border-radius: 17px;
  }

  /* Owner/admin areas stay usable on narrow screens */
  .owner-head,
  .owner-service-card,
  .owner-api-v2,
  .owner-api-right,
  .admin-card,
  .admin-hero,
  .admin-sidebar {
    padding: 19px;
    border-radius: 21px;
  }

  #owner-api .owner-api-v2 {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 19px;
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(17, 17, 19, .96), rgba(8, 8, 9, .96));
  }

  #owner-api .owner-api-left h2 {
    margin-top: 8px;
    font-size: 34px;
  }

  #owner-api .owner-api-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 18px 0;
  }

  #owner-api .owner-api-benefits div,
  #owner-api .owner-api-right {
    border-color: var(--line);
    background: rgba(255, 255, 255, .028);
    box-shadow: none;
  }

  #owner-api .owner-api-benefits span {
    margin-bottom: 10px;
  }

  #owner-api .owner-api-right {
    padding: 17px;
    border-radius: 19px;
  }

  #owner-api .owner-api-key-value {
    border-color: var(--line);
    background: #070708;
    color: #d8d8d5;
  }

  .owner-head h1,
  .admin-page-hero h1 {
    font-size: 39px;
  }

  .owner-service-head,
  .owner-api-v2,
  .owner-api-benefits,
  .owner-service-props,
  .admin-form-row,
  .admin-stats-grid,
  .admin-stats-detail-grid,
  .admin-stats-safe-grid,
  .admin-stats-two-cols {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 8px;
  }

  .admin-side-nav {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-side-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-side-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .admin-table-wrap,
  .admin-stats-table-wrap {
    margin-right: -8px;
    margin-left: -8px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .review-star-picker {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    padding: 6px;
    border-color: var(--line);
    background: #09090a;
  }

  .review-star-picker button {
    flex: 1;
    width: auto;
    min-width: 42px;
    height: 44px;
    color: #66666b;
  }

  .review-star-picker button:hover,
  .review-star-picker button:focus-visible,
  .review-star-picker button.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .review-photo-chip button,
  .service-reviews-pager button,
  .photo-lightbox-counter {
    border-color: var(--line);
    background: rgba(255, 255, 255, .06);
    color: #e8e8e5;
  }

  /* Footer and Telegram notice */
  .site-footer {
    padding: 38px 0 calc(22px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 22px;
  }

  .footer-col {
    gap: 10px;
  }

  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 34px;
  }

  .footer-bottom {
    gap: 5px;
    margin-top: 24px;
  }

  .telegram-channel-notice {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: 42px 1fr;
    gap: 11px;
    width: calc(100vw - 20px);
    padding: 13px;
    border-radius: 20px;
  }

  .telegram-channel-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .telegram-channel-notice-content strong {
    padding-right: 4px;
    font-size: 15px;
  }

  .telegram-channel-notice-content p {
    margin-top: 4px;
    font-size: 12px;
  }

  .telegram-channel-notice-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 8px;
  }

  .telegram-channel-notice-actions .btn,
  .telegram-channel-notice-close {
    min-height: 42px;
  }

  .telegram-channel-notice-actions .btn {
    flex: 1;
  }

  .telegram-channel-notice-close {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

@media (max-width: 430px) {
  .hero-actions,
  .terms-actions,
  .service-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions,
  .hero-actions .btn,
  .terms-actions,
  .terms-actions .btn,
  .service-detail-actions,
  .service-detail-actions .btn {
    width: 100%;
  }

  .service-detail-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-rating {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 350px) {
  h1 {
    font-size: 40px;
  }

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

  .catalog-app-card {
    min-height: 138px;
  }
}

/* ================================================================
   XPTrust public experience — concise rebuild, August 2026
   ================================================================ */

html.public-site {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  background: #070707;
}

html.public-site body {
  min-width: 320px;
  color: #f2f2ef;
  background:
    radial-gradient(circle at 78% 2%, rgba(255, 255, 255, .055), transparent 31rem),
    #070707;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

html.public-site body::before {
  display: none;
}

html.public-site .container {
  width: min(1180px, calc(100% - 48px));
}

html.public-site .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: rgba(7, 7, 7, .78);
  box-shadow: none;
  backdrop-filter: blur(24px) saturate(125%);
}

html.public-site .nav {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 28px;
}

html.public-site .brand,
html.public-site .footer-brand {
  color: #f4f4f1;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.055em;
  text-decoration: none;
}

html.public-site .brand span,
html.public-site .footer-brand span {
  margin-left: 2px;
  color: #77777c;
}

html.public-site .brand::after,
html.public-site .footer-brand::after {
  display: none;
  content: none;
}

html.public-site .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

html.public-site .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: #89898e;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

html.public-site .nav-links a:hover,
html.public-site .nav-links a[aria-current="page"] {
  color: #f2f2ef;
  background: rgba(255, 255, 255, .06);
}

html.public-site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #ecece8;
  border-radius: 999px;
  color: #090909;
  background: #ecece8;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

html.public-site .btn:hover {
  border-color: #fff;
  background: #fff;
  transform: translateY(-1px);
}

html.public-site .btn.secondary {
  border-color: rgba(255, 255, 255, .13);
  color: #d4d4d1;
  background: rgba(255, 255, 255, .035);
}

html.public-site .btn.secondary:hover {
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

html.public-site .header-register {
  min-height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

html.public-site .header-admin {
  min-height: 40px;
  padding: 0 16px;
}

html.public-site .mobile-menu {
  display: none;
}

html.public-site .xp-kicker {
  color: #86868b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1;
  text-transform: uppercase;
}

html.public-site .xp-kicker > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #c6dfcd;
  box-shadow: 0 0 18px rgba(198, 223, 205, .44);
}

html.public-site .xp-hero {
  padding: clamp(72px, 9vw, 118px) 0 36px;
}

html.public-site .xp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

html.public-site .xp-hero-copy h1,
html.public-site .xp-page-head h1 {
  margin: 24px 0 25px;
  color: #f3f3ef;
  font-size: clamp(61px, 7.2vw, 100px);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.078em;
}

html.public-site .xp-hero-copy h1 em,
html.public-site .xp-page-head h1 em {
  color: #737378;
  font-style: normal;
  font-weight: 300;
}

html.public-site .xp-hero-copy > p,
html.public-site .xp-page-head > p {
  max-width: 590px;
  margin: 0;
  color: #96969b;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
  letter-spacing: -.026em;
}

html.public-site .xp-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

html.public-site .xp-text-link {
  color: #adadb0;
  font-size: 14px;
  text-decoration: none;
}

html.public-site .xp-text-link:hover {
  color: #fff;
}

html.public-site .xp-check-card {
  position: relative;
  min-height: 500px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .085), transparent 15rem),
    linear-gradient(145deg, rgba(21, 21, 23, .98), rgba(10, 10, 11, .98));
  box-shadow: 0 42px 110px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .045);
  overflow: hidden;
}

html.public-site .xp-check-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}

html.public-site .xp-check-top,
html.public-site .xp-check-list,
html.public-site .xp-check-center {
  position: relative;
  z-index: 1;
}

html.public-site .xp-check-top {
  display: flex;
  justify-content: space-between;
  color: #747479;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
}

html.public-site .xp-check-top strong {
  color: #b8d3c0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

html.public-site .xp-check-center {
  display: grid;
  place-items: center;
  min-height: 304px;
}

html.public-site .xp-check-center p {
  position: absolute;
  bottom: 35px;
  margin: 0;
  color: #a7a7ab;
  font-size: 12px;
  letter-spacing: .04em;
}

html.public-site .xp-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 162px;
  height: 162px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, .018), 0 0 0 60px rgba(255, 255, 255, .012);
}

html.public-site .xp-orbit::before,
html.public-site .xp-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

html.public-site .xp-orbit::before { inset: 23px; }
html.public-site .xp-orbit::after { inset: 51px; }

html.public-site .xp-orbit i {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 6px solid #f1f1ed;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, .3);
}

html.public-site .xp-check-list {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

html.public-site .xp-check-list div {
  display: flex;
  justify-content: space-between;
  padding: 12px 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  color: #85858a;
  font-size: 12px;
}

html.public-site .xp-check-list strong {
  color: #d0d0cc;
  font-size: 12px;
  font-weight: 400;
}

html.public-site .xp-trust-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

html.public-site .xp-trust-line span {
  position: relative;
  padding: 17px 22px;
  color: #8d8d92;
  font-size: 12px;
  text-align: center;
}

html.public-site .xp-trust-line span + span {
  border-left: 1px solid rgba(255, 255, 255, .09);
}

html.public-site .xp-trust-line span::before {
  content: "✓";
  margin-right: 8px;
  color: #c3d8c8;
}

html.public-site .xp-section {
  padding: 116px 0;
}

html.public-site .xp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 45px;
}

html.public-site .xp-section-head h2,
html.public-site .xp-proof h2,
html.public-site .xp-final-card h2,
html.public-site .xp-category-head h2,
html.public-site .catalog-products-head h2 {
  margin: 14px 0 0;
  color: #f0f0ed;
  font-size: clamp(42px, 5.3vw, 68px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.068em;
}

html.public-site .xp-section-head > p {
  max-width: 300px;
  margin: 0 0 5px;
  color: #7d7d82;
  font-size: 15px;
}

html.public-site .xp-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .xp-method-grid article {
  min-height: 252px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .xp-method-grid article + article {
  border-left: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .xp-method-grid article > span {
  color: #65656a;
  font-size: 11px;
}

html.public-site .xp-method-grid h3 {
  margin: 90px 0 7px;
  color: #ededeb;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.045em;
}

html.public-site .xp-method-grid p {
  margin: 0;
  color: #818186;
  font-size: 15px;
}

html.public-site .xp-proof-section {
  padding: 28px 0 116px;
}

html.public-site .xp-proof {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 90px;
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 32px;
  background: linear-gradient(145deg, #121214, #0a0a0b);
}

html.public-site .xp-proof h2 {
  max-width: 560px;
  font-size: clamp(38px, 4.3vw, 58px);
}

html.public-site .xp-proof-points {
  display: grid;
  align-content: center;
}

html.public-site .xp-proof-points p {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  margin: 0;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: #a0a0a5;
  font-size: 14px;
  line-height: 1.45;
}

html.public-site .xp-proof-points span {
  color: #5f5f64;
  font-size: 11px;
}

html.public-site .xp-final-section {
  padding: 0 0 100px;
}

html.public-site .xp-final-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  min-height: 390px;
  padding: 58px 64px;
  border-radius: 34px;
  color: #0b0b0b;
  background:
    radial-gradient(circle at 80% 10%, #fff, transparent 22rem),
    #e9e9e5;
  overflow: hidden;
}

html.public-site .xp-final-card > div > span {
  color: #747477;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

html.public-site .xp-final-card h2 {
  color: #0a0a0a;
  font-size: clamp(52px, 6.2vw, 80px);
}

html.public-site .xp-final-card .btn {
  flex: 0 0 auto;
  border-color: #0a0a0a;
  color: #fff;
  background: #0a0a0a;
}

/* Compact footer */
html.public-site .xp-footer {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: #070707;
}

html.public-site .xp-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 132px;
}

html.public-site .xp-footer-main > div p {
  margin: 6px 0 0;
  color: #67676c;
  font-size: 12px;
}

html.public-site .xp-footer-main nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

html.public-site .xp-footer-main nav a {
  color: #87878c;
  font-size: 13px;
  text-decoration: none;
}

html.public-site .xp-footer-main nav a:hover,
html.public-site .xp-footer-main nav a[aria-current="page"] {
  color: #fff;
}

html.public-site .xp-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #525257;
  font-size: 10px;
  letter-spacing: .025em;
}

/* Catalog */
html.public-site .xp-catalog-hero {
  min-height: 760px;
  padding: 86px 0 105px;
}

html.public-site .xp-page-head {
  max-width: 900px;
  margin-bottom: 70px;
}

html.public-site .xp-page-head .btn {
  margin-top: 34px;
}

html.public-site .xp-category-shell {
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .xp-category-head,
html.public-site .catalog-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

html.public-site .xp-category-head h2,
html.public-site .catalog-products-head h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

html.public-site .xp-category-head > span,
html.public-site .catalog-products-head > p {
  margin: 0;
  color: #6f6f74;
  font-size: 12px;
}

html.public-site .catalog-app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

html.public-site .catalog-app-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 24px;
  color: #eeeeeb;
  background: linear-gradient(145deg, rgba(21, 21, 23, .97), rgba(10, 10, 11, .97));
  box-shadow: none;
  overflow: hidden;
}

html.public-site .catalog-app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .09), transparent 20rem);
  transition: opacity .2s ease;
}

html.public-site .catalog-app-card::after {
  display: none;
}

html.public-site .catalog-app-card:hover,
html.public-site .catalog-app-card:focus-visible {
  border-color: rgba(255, 255, 255, .22);
  background: linear-gradient(145deg, rgba(24, 24, 27, .98), rgba(12, 12, 13, .98));
  box-shadow: none;
  transform: translateY(-3px);
}

html.public-site .catalog-app-card:hover::before { opacity: 1; }

html.public-site .catalog-app-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

html.public-site .catalog-app-icon img {
  width: 27px;
  height: 27px;
  filter: invert(1);
}

html.public-site .catalog-app-card > span:nth-child(2) {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

html.public-site .catalog-app-card strong {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.055em;
}

html.public-site .catalog-app-card em {
  color: #8a8a8f;
  font-size: 12px;
}

html.public-site .catalog-app-card b {
  position: relative;
  z-index: 1;
  color: #8a8a8f;
  font-size: 20px;
  font-weight: 300;
}

html.public-site .xp-products {
  margin-top: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .catalog-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 25px;
  padding: 0;
  border: 0;
  background: transparent;
}

html.public-site .filter-control {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .032);
}

html.public-site .filter-control strong {
  display: block;
  color: #eeeeea;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

html.public-site .filter-control span {
  display: block;
  color: #929297;
  font-size: 12px;
  line-height: 1.35;
}

html.public-site .filter-switch {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

html.public-site .filter-switch label {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding-top: 1px;
  cursor: pointer;
}

html.public-site .filter-switch input[type="checkbox"] {
  margin-top: 0;
  border-color: rgba(255, 255, 255, .2);
  background: #252529;
}

html.public-site .filter-switch input[type="checkbox"]::after {
  background: #a6a6ab;
  box-shadow: none;
}

html.public-site .filter-switch input[type="checkbox"]:checked {
  border-color: #ecece8;
  background: #ecece8;
}

html.public-site .filter-switch input[type="checkbox"]:checked::after {
  background: #090909;
}

html.public-site .price-filter {
  align-content: start;
  gap: 5px;
}

html.public-site .price-filter input::placeholder {
  color: #5f5f64;
}

html.public-site .filter-actions {
  align-items: stretch;
  grid-column: 1 / -1;
}

html.public-site .filter-actions .btn {
  min-height: 44px;
}

html.public-site .catalog-empty {
  margin-top: 18px;
  padding: 40px 22px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 22px;
  color: #77777c;
  background: transparent;
}

html.public-site .catalog-empty p { margin: 0; }

html.public-site .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

html.public-site .service-card {
  border-color: rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: linear-gradient(145deg, #131315, #0b0b0c);
  box-shadow: none;
}

html.public-site .xp-catalog-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 24px;
  margin-top: 26px;
  color: #66666b;
  font-size: 11px;
}

html.public-site .xp-catalog-principles span::before {
  content: "✓";
  margin-right: 7px;
  color: #9fb8a5;
}

/* Support */
html.public-site .xp-simple-page {
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 9vw, 120px) 0 110px;
}

html.public-site .xp-support-layout {
  display: grid;
  grid-template-columns: 1fr minmax(360px, .72fr);
  align-items: center;
  gap: clamp(60px, 10vw, 140px);
}

html.public-site .xp-support-layout .xp-page-head {
  margin: 0;
}

html.public-site .xp-support-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 30px;
  background: linear-gradient(145deg, #141416, #0b0b0c);
}

html.public-site .xp-support-status {
  color: #85858a;
  font-size: 11px;
}

html.public-site .xp-support-status span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #b6d0bd;
  box-shadow: 0 0 14px rgba(182, 208, 189, .4);
}

html.public-site .xp-support-card h2 {
  margin: 50px 0 17px;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -.05em;
}

html.public-site .xp-support-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.public-site .xp-support-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

html.public-site .xp-support-card li > span {
  color: #56565b;
  font-size: 10px;
}

html.public-site .xp-support-card li p { margin: 0; }
html.public-site .xp-support-card li strong { display: block; color: #d0d0cc; font-size: 14px; font-weight: 400; }
html.public-site .xp-support-card li p { color: #717176; font-size: 12px; }

html.public-site .xp-support-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #68686d;
  font-size: 11px;
  line-height: 1.55;
}

/* Legal pages */
html.public-site .xp-legal-page {
  padding: 86px 0 110px;
}

html.public-site .xp-legal-head {
  display: grid;
  grid-template-columns: 1fr minmax(270px, .42fr);
  gap: 24px 80px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

html.public-site .xp-legal-head > .xp-kicker {
  grid-column: 1 / -1;
}

html.public-site .xp-legal-head h1 {
  min-width: 0;
  margin: 0;
  color: #f0f0ed;
  font-size: clamp(54px, 6.6vw, 88px);
  font-weight: 500;
  line-height: .91;
  letter-spacing: -.074em;
  overflow-wrap: normal;
  word-break: normal;
}

html.public-site .xp-legal-summary {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

html.public-site .xp-legal-summary strong {
  color: #b7b7b3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html.public-site .xp-legal-summary p {
  margin: 13px 0 0;
  color: #88888d;
  font-size: 14px;
  line-height: 1.55;
}

html.public-site .xp-legal-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  color: #5f5f64;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html.public-site .xp-legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(50px, 8vw, 112px);
  padding-top: 50px;
}

html.public-site .xp-legal-aside {
  align-self: start;
  position: sticky;
  top: 112px;
}

html.public-site .xp-legal-aside > span {
  color: #b7b7b3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html.public-site .xp-legal-aside p {
  margin: 16px 0 22px;
  color: #747479;
  font-size: 13px;
  line-height: 1.58;
}

html.public-site .xp-legal-aside a {
  color: #c7c7c3;
  font-size: 12px;
  text-decoration: none;
}

html.public-site .xp-legal-content {
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}

html.public-site .xp-legal-content details {
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

html.public-site .xp-legal-content summary {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  color: #dfdfdc;
  cursor: pointer;
  list-style: none;
}

html.public-site .xp-legal-content summary::-webkit-details-marker { display: none; }

html.public-site .xp-legal-content summary > span {
  color: #55555a;
  font-size: 10px;
}

html.public-site .xp-legal-content summary strong {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.035em;
}

html.public-site .xp-legal-content summary i {
  position: relative;
  width: 20px;
  height: 20px;
}

html.public-site .xp-legal-content summary i::before,
html.public-site .xp-legal-content summary i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 4px;
  width: 12px;
  height: 1px;
  background: #77777c;
  transition: transform .18s ease;
}

html.public-site .xp-legal-content summary i::after { transform: rotate(90deg); }
html.public-site .xp-legal-content details[open] summary i::after { transform: rotate(0); }

html.public-site .xp-legal-content details > div {
  max-width: 760px;
  padding: 0 38px 30px 50px;
}

html.public-site .xp-legal-content details p {
  margin: 0;
  color: #85858a;
  font-size: 15px;
  line-height: 1.65;
}

html.public-site .xp-legal-content details p + p { margin-top: 12px; }

/* Authentication */
html.public-site .xp-auth-switch {
  margin-left: auto;
  color: #96969b;
  font-size: 13px;
  text-decoration: none;
}

html.public-site .xp-auth-switch:hover { color: #fff; }

html.public-site .xp-auth-main {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 73px);
  padding: 54px 24px;
}

html.public-site .xp-auth-card {
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 30px;
  background: linear-gradient(145deg, #141416, #0a0a0b);
}

html.public-site .xp-auth-card h1 {
  margin: 18px 0 8px;
  color: #f0f0ed;
  font-size: 50px;
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.065em;
}

html.public-site .xp-auth-card > p {
  margin: 0 0 28px;
  color: #77777c;
  font-size: 14px;
}

html.public-site .xp-auth-card .login-form {
  display: grid;
  gap: 14px;
}

html.public-site .xp-auth-card .login-form label,
html.public-site .public-review-form label,
html.public-site .review-rating-field > span,
html.public-site .review-upload-field > span {
  color: #99999e;
  font-size: 12px;
  font-weight: 400;
}

html.public-site .xp-auth-card input,
html.public-site .public-review-form input,
html.public-site .public-review-form textarea,
html.public-site .price-filter input {
  width: 100%;
  min-height: 52px;
  margin-top: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #efefec;
  background: #09090a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
}

html.public-site .xp-auth-card input:focus,
html.public-site .public-review-form input:focus,
html.public-site .public-review-form textarea:focus,
html.public-site .price-filter input:focus {
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .045);
}

html.public-site .xp-auth-card .btn {
  width: 100%;
  margin-top: 5px;
}

html.public-site .xp-auth-foot {
  display: block;
  margin-top: 22px;
  color: #66666b;
  font-size: 11px;
  text-align: center;
}

html.public-site .xp-auth-foot a { color: #bdbdba; text-decoration: none; }

/* Dynamic service and review pages */
html.public-site .service-detail-section,
html.public-site .review-page-section {
  min-height: 70vh;
  padding: 64px 0 96px;
}

html.public-site .service-detail,
html.public-site .review-page-card {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 30px;
  background: linear-gradient(145deg, #121214, #09090a);
  box-shadow: none;
}

html.public-site .service-detail h1,
html.public-site .review-page-card h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.068em;
}

html.public-site .service-detail-card,
html.public-site .service-detail-actions {
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .025);
  box-shadow: none;
}

html.public-site .service-detail-card h2,
html.public-site .service-reviews-head h2 {
  font-weight: 400;
  letter-spacing: -.045em;
}

html.public-site .detail-back-link { color: #85858a; }

/* Shorter Telegram prompt */
html.public-site .telegram-channel-notice {
  border-color: rgba(255, 255, 255, .12);
  color: #eee;
  background: rgba(17, 17, 18, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

html.public-site .telegram-channel-notice-content strong { color: #ecece8; }
html.public-site .telegram-channel-notice-content p { color: #7e7e83; }

@media (max-width: 980px) {
  html.public-site .xp-hero-grid,
  html.public-site .xp-support-layout {
    grid-template-columns: 1fr;
  }

  html.public-site .xp-hero-copy { max-width: 780px; }
  html.public-site .xp-check-card { width: min(100%, 600px); min-height: 470px; }

  html.public-site .xp-proof {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  html.public-site .catalog-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.public-site .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  html.public-site .xp-legal-head {
    grid-template-columns: 1fr;
  }

  html.public-site .xp-legal-head > .xp-kicker,
  html.public-site .xp-legal-meta { grid-column: auto; }

  html.public-site .xp-legal-summary {
    max-width: 620px;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 720px) {
  html.public-site { scroll-padding-top: 72px; }

  html.public-site .container { width: calc(100% - 32px); }

  html.public-site .site-header { padding-top: env(safe-area-inset-top); }

  html.public-site .nav {
    min-height: 64px;
    gap: 10px;
  }

  html.public-site .brand { position: relative; z-index: 33; font-size: 20px; }
  html.public-site .header-register,
  html.public-site .header-admin { display: none; }

  html.public-site .mobile-menu {
    position: relative;
    z-index: 33;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
  }

  html.public-site .mobile-menu span,
  html.public-site .mobile-menu::before,
  html.public-site .mobile-menu::after {
    left: 12px;
    width: 16px;
    height: 1px;
    background: #d8d8d4;
  }

  html.public-site .nav-links {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top));
    right: 16px;
    left: 16px;
    z-index: 32;
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(14, 14, 15, .98);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
    transform: translateY(-8px) scale(.985);
    opacity: 0;
    pointer-events: none;
  }

  html.public-site .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  html.public-site .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 15px;
    font-size: 15px;
  }

  html.public-site .xp-hero {
    padding: 52px 0 24px;
  }

  html.public-site .xp-hero-grid { gap: 42px; }

  html.public-site .xp-hero-copy h1,
  html.public-site .xp-page-head h1 {
    margin: 19px 0 20px;
    font-size: clamp(49px, 14.4vw, 66px);
    line-height: .93;
    letter-spacing: -.068em;
  }

  html.public-site .xp-hero-copy > p,
  html.public-site .xp-page-head > p {
    font-size: 17px;
    line-height: 1.48;
  }

  html.public-site .xp-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  html.public-site .xp-actions .btn { width: 100%; }
  html.public-site .xp-text-link { text-align: center; }

  html.public-site .xp-check-card {
    min-height: 428px;
    padding: 20px;
    border-radius: 26px;
  }

  html.public-site .xp-check-center { min-height: 270px; }
  html.public-site .xp-orbit { width: 132px; height: 132px; }

  html.public-site .xp-trust-line {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  html.public-site .xp-trust-line span {
    padding: 13px 8px;
    text-align: left;
  }

  html.public-site .xp-trust-line span + span {
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-left: 0;
  }

  html.public-site .xp-section { padding: 78px 0; }

  html.public-site .xp-section-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
  }

  html.public-site .xp-section-head h2,
  html.public-site .xp-proof h2,
  html.public-site .xp-final-card h2 {
    font-size: 42px;
  }

  html.public-site .xp-method-grid { grid-template-columns: 1fr; }

  html.public-site .xp-method-grid article {
    min-height: 150px;
    padding: 20px;
  }

  html.public-site .xp-method-grid article + article {
    border-left: 0;
  }

  html.public-site .xp-method-grid h3 {
    margin: 42px 0 5px;
    font-size: 27px;
  }

  html.public-site .xp-proof-section { padding: 0 0 78px; }

  html.public-site .xp-proof {
    gap: 27px;
    padding: 25px 20px;
    border-radius: 24px;
  }

  html.public-site .xp-proof-points p { padding: 16px 0; }

  html.public-site .xp-final-section { padding-bottom: 72px; }

  html.public-site .xp-final-card {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 390px;
    padding: 28px 22px;
    border-radius: 25px;
  }

  html.public-site .xp-final-card .btn { width: 100%; }

  html.public-site .xp-footer-main {
    align-items: start;
    flex-direction: column;
    gap: 25px;
    padding-top: 36px;
    padding-bottom: 32px;
  }

  html.public-site .xp-footer-main nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 13px 20px;
  }

  html.public-site .xp-footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  html.public-site .xp-catalog-hero { min-height: 680px; padding: 54px 0 78px; }
  html.public-site .xp-page-head { margin-bottom: 48px; }

  html.public-site .xp-category-head,
  html.public-site .catalog-products-head {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }

  html.public-site .xp-category-head h2,
  html.public-site .catalog-products-head h2 { font-size: 32px; }

  html.public-site .catalog-app-grid { grid-template-columns: 1fr; gap: 9px; }

  html.public-site .catalog-app-card {
    min-height: 122px;
    padding: 17px;
    border-radius: 20px;
  }

  html.public-site .catalog-app-icon { width: 50px; height: 50px; border-radius: 16px; }
  html.public-site .catalog-app-card strong { font-size: 24px; }

  html.public-site .catalog-filter-panel { grid-template-columns: 1fr; gap: 8px; }
  html.public-site .filter-control { min-height: 80px; }
  html.public-site .filter-actions { grid-column: auto; }
  html.public-site .catalog-grid { grid-template-columns: 1fr; }

  html.public-site .xp-simple-page { padding: 55px 0 76px; }
  html.public-site .xp-support-layout { gap: 46px; }
  html.public-site .xp-support-card { padding: 22px; border-radius: 23px; }

  html.public-site .xp-legal-page { padding: 55px 0 78px; }

  html.public-site .xp-legal-head {
    gap: 24px;
    padding-bottom: 30px;
  }

  html.public-site .xp-legal-head h1 {
    font-size: clamp(42px, 12vw, 55px);
    line-height: .94;
    letter-spacing: -.06em;
    overflow-wrap: anywhere;
  }

  html.public-site .xp-legal-meta { flex-wrap: wrap; gap: 8px 18px; }

  html.public-site .xp-legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
  }

  html.public-site .xp-legal-aside {
    position: static;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .022);
  }

  html.public-site .xp-legal-aside p { margin-bottom: 14px; }

  html.public-site .xp-legal-content summary {
    grid-template-columns: 27px minmax(0, 1fr) 20px;
    gap: 9px;
    min-height: 72px;
  }

  html.public-site .xp-legal-content summary strong {
    font-size: 17px;
    line-height: 1.25;
  }

  html.public-site .xp-legal-content details > div {
    padding: 0 0 24px 36px;
  }

  html.public-site .xp-legal-content details p {
    font-size: 14px;
    line-height: 1.62;
  }

  html.public-site .xp-auth-main {
    place-items: start center;
    min-height: calc(100dvh - 65px);
    padding: 36px 16px 52px;
  }

  html.public-site .xp-auth-card { padding: 23px; border-radius: 24px; }
  html.public-site .xp-auth-card h1 { font-size: 43px; }

  html.public-site .service-detail-section,
  html.public-site .review-page-section { padding: 38px 0 64px; }

  html.public-site .service-detail,
  html.public-site .review-page-card { border-radius: 23px; }

  html.public-site .telegram-channel-notice {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (max-width: 390px) {
  html.public-site .xp-hero-copy h1,
  html.public-site .xp-page-head h1 { font-size: 47px; }

  html.public-site .xp-legal-head h1 { font-size: 40px; }
  html.public-site .xp-final-card h2 { font-size: 39px; }
}
