:root {
  --bg: #071511;
  --bg-soft: #0c1f1a;
  --text: #f3f7f5;
  --muted: #b7cbc4;
  --brand: #0f6b5c;
  --brand-dark: #0a4a40;
  --accent: #e4572e;
  --line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.06);
  --ok: #6ee7b7;
  --bad: #fecaca;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

.page-home {
  overflow-x: clip;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", var(--font);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(228, 87, 46, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(15, 107, 92, 0.35), transparent 45%),
    linear-gradient(165deg, #071511 0%, #0c1f1a 50%, #12352c 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(7, 21, 17, 0.75);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.section,
.hero__inner,
.page {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.85rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #cf4b25;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-dark);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: 4rem 0 5rem;
  background:
    linear-gradient(120deg, rgba(7, 21, 17, 0.55), rgba(7, 21, 17, 0.2)),
    url("https://images.unsplash.com/photo-1526367790999-0150786686a2?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
}

.hero__inner {
  max-width: 40rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 1rem 0 1.75rem;
  color: #e8f2ee;
  font-size: 1.1rem;
  max-width: 32rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.section > p.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.5;
}

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

.role-link {
  display: block;
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  min-height: 170px;
  transition: border-color 140ms ease, background 140ms ease;
}

.role-link:hover {
  border-color: rgba(15, 107, 92, 0.7);
  background: rgba(255, 255, 255, 0.09);
}

.role-link span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.role-link strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.role-link p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

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

.join a {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(15, 107, 92, 0.28), rgba(255, 255, 255, 0.04));
}

.join a.commerce {
  background: linear-gradient(145deg, rgba(228, 87, 46, 0.22), rgba(255, 255, 255, 0.04));
}

.join h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
}

.join p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.page {
  padding: 2.5rem 0 4rem;
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.5;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.4rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: #d7e6e1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 107, 92, 0.55);
  border-color: rgba(15, 107, 92, 0.8);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ok);
  border: 1px solid rgba(110, 231, 183, 0.35);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.14);
  color: var(--bad);
  border: 1px solid rgba(254, 202, 202, 0.35);
}

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

.login-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 200px;
  padding: 1.3rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.login-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  line-height: 1.45;
}

.api-bar {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
}

.api-bar label {
  flex: 1 1 260px;
}

.api-status {
  font-size: 0.9rem;
  color: var(--muted);
  align-self: center;
}

.api-status.ok {
  color: var(--ok);
}

.api-status.bad {
  color: var(--bad);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.lang-switch select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.35rem 0.55rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.form-section {
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  cursor: pointer;
}

.chip:has(input:checked) {
  border-color: rgba(15, 107, 92, 0.7);
  background: rgba(15, 107, 92, 0.25);
}

.chip input {
  accent-color: var(--brand);
}

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

.upload-field {
  display: grid;
  gap: 0.55rem;
}

.upload-field__label {
  font-size: 0.92rem;
  color: #d7e6e1;
}

.upload-field__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-field input[type="file"] {
  display: none;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.55rem 0.95rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.upload-trigger:hover {
  border-color: rgba(15, 107, 92, 0.75);
  background: rgba(15, 107, 92, 0.12);
}

.upload-preview {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.upload-preview[hidden] {
  display: none;
}

.otp-panel {
  margin-top: 1.25rem;
}

textarea {
  width: 100%;
  resize: vertical;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.login-card__port {
  display: inline-block;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
}

.login-card__tag {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-card.is-highlighted {
  border-color: rgba(201, 146, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 146, 42, 0.18);
  transform: translateY(-2px);
}

.login-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 92, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.hero h1 {
  background: linear-gradient(120deg, #f3f7f5 0%, #6ee7b7 55%, #e4572e 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: 1rem;
  padding: 3.5rem 0 2rem;
  color: var(--muted);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 21, 17, 0) 0%, rgba(4, 14, 11, 0.72) 28%, rgba(3, 10, 8, 0.92) 100%);
}

.site-footer__glow {
  position: absolute;
  inset: auto auto -20% 50%;
  width: min(720px, 90vw);
  height: 280px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(228, 87, 46, 0.22) 0%, transparent 58%),
    radial-gradient(circle at 20% 40%, rgba(15, 107, 92, 0.35) 0%, transparent 55%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.site-footer__shell {
  position: relative;
  z-index: 1;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.site-footer__panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(15, 107, 92, 0.12) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.site-footer__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 214, 186, 0.92);
}

.site-footer__title {
  margin: 0 0 0.75rem;
  line-height: 1;
}

.site-footer__title-brand {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f7faf8 0%, #9fe8cb 45%, #ff8f5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__lead {
  margin: 0 0 0.55rem;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(243, 247, 245, 0.9);
}

.site-footer__tagline {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.site-footer__place-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.28);
  background: rgba(15, 107, 92, 0.22);
  color: #d7f5e8;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-footer__place-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
}

.site-footer__actions {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.footer-social {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 21, 17, 0.45);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-social__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.footer-social__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.footer-social__copy strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.footer-social__copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-social__arrow {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.footer-social:hover .footer-social__arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

.footer-social--facebook:hover {
  border-color: rgba(66, 133, 244, 0.55);
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.22), rgba(7, 21, 17, 0.55));
}

.footer-social--facebook:hover .footer-social__icon {
  background: rgba(24, 119, 242, 0.28);
  color: #dbeafe;
}

.footer-social--instagram:hover {
  border-color: rgba(228, 87, 46, 0.55);
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.24), rgba(15, 107, 92, 0.2));
}

.footer-social--instagram:hover .footer-social__icon {
  background: rgba(228, 87, 46, 0.28);
  color: #ffe2d4;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.25rem 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.site-footer__nav a {
  position: relative;
  color: rgba(183, 203, 196, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(183, 203, 196, 0.7);
}

.site-footer .section {
  padding: 0;
}

@media (max-width: 860px) {
  .site-footer {
    padding: 2.75rem 0 1.75rem;
  }

  .site-footer__panel {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 1.35rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social,
  .footer-social__arrow,
  .site-footer__nav a::after {
    transition: none;
  }

  .footer-social:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: clamp(2.4rem, 7vw, 3.6rem);
  }

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

@media (max-width: 860px) {
  .roles,
  .join,
  .login-grid,
  .form-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .nav .hide-mobile {
    display: none;
  }

  .site-header__inner {
    min-height: 64px;
    flex-wrap: wrap;
    padding-block: 0.55rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.7rem 0.95rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: min(78vh, 620px);
    padding-block: 2.5rem;
  }

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

  .hero__actions .btn {
    width: 100%;
  }

  .page {
    width: min(1120px, calc(100% - 1.25rem));
    padding-bottom: 2rem;
  }

  .panel {
    padding: 1rem;
  }

  .api-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .api-bar .btn {
    width: 100%;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch select {
    flex: 1;
  }

  .chip-grid {
    gap: 0.45rem;
  }

  .form-actions {
    flex-direction: column;
  }

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

  .site-footer .section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-header__inner,
  .section,
  .hero__inner,
  .page {
    width: min(1120px, calc(100% - 1rem));
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p,
  .lead {
    font-size: 0.98rem;
  }

  .login-card {
    min-height: auto;
  }
}

.hero--compact {
  min-height: auto;
  padding: 5rem 0 3.5rem;
  align-items: center;
}

.hero--video {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #071511;
  background-image: none;
}

.hero--video .hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero--video .hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(7, 21, 17, 0.72), rgba(7, 21, 17, 0.35));
  pointer-events: none;
}

.hero--video .hero__inner {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.12);
  border: 1px solid rgba(110, 231, 183, 0.25);
  color: #a7f3d0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__stat {
  min-width: 110px;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.hero__stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section--tight {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

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

.service-card {
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(15, 107, 92, 0.18), rgba(255, 255, 255, 0.03));
}

.service-card__icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.catalog-section {
  padding-top: 3rem;
}

.catalog-section__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.catalog-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.catalog-status.ok {
  color: var(--ok);
}

.catalog-status.bad {
  color: var(--bad);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(15, 107, 92, 0.75);
  background: rgba(15, 107, 92, 0.28);
}

.catalog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 92, 0.55);
}

.catalog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.catalog-card__badge.is-open {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.catalog-card__badge.is-closed {
  background: rgba(71, 85, 105, 0.85);
  color: #fff;
}

.catalog-card__category {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
}

.catalog-card__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.catalog-card__body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.catalog-card__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.catalog-card__menu-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.65rem;
  align-items: center;
}

.catalog-card__menu-item img {
  width: 44px;
  height: 44px;
  border-radius: 0.55rem;
  object-fit: cover;
}

.catalog-card__menu-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
}

.catalog-card__price {
  display: block;
  color: #6ee7b7;
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.catalog-card__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-sm {
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
}

.catalog-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.catalog-card__hint code {
  font-size: 0.76rem;
  color: #d7e6e1;
}

.catalog-loading,
.catalog-empty,
.catalog-error {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 1rem;
  color: var(--muted);
}

.catalog-loading__spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-inline-end: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--ok);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -0.15rem;
}

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

.login-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 107, 92, 0.45);
  background: linear-gradient(135deg, rgba(15, 107, 92, 0.28), rgba(228, 87, 46, 0.12));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-banner h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
}

.login-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.login-banner__creds {
  margin-top: 0.65rem !important;
  font-size: 0.88rem;
}

.login-banner__creds code {
  color: #d7e6e1;
}

.accounts-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.account-card {
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.account-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.account-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.account-card code {
  color: #d7e6e1;
  font-size: 0.8rem;
  word-break: break-all;
}

.accounts-client {
  margin-top: 0.5rem;
}

.accounts-client code {
  color: #d7e6e1;
}

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

@media (max-width: 860px) {
  .service-grid,
  .catalog-grid,
  .accounts-grid {
    grid-template-columns: 1fr;
  }

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

  .login-banner .btn {
    width: 100%;
  }
}

.page-home .section,
.page-home .catalog-section {
  scroll-margin-top: 88px;
}

.page-home .site-header--home {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0);
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  transition:
    background 320ms ease,
    border-color 320ms ease,
    backdrop-filter 320ms ease,
    box-shadow 320ms ease;
}

.page-home .site-header--home.site-header--scrolled {
  background: rgba(7, 21, 17, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.page-home .hero.hero--compact.hero--video {
  min-height: 100svh;
  padding: 7rem 0 5rem;
  align-items: center;
}

.page-home .hero--video .hero__video {
  transform-origin: center center;
  will-change: transform;
  transition: transform 80ms linear;
}

.page-home .hero--video .hero__video-overlay {
  background:
    radial-gradient(circle at 15% 20%, rgba(110, 231, 183, 0.12), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(228, 87, 46, 0.15), transparent 38%),
    linear-gradient(180deg, rgba(7, 21, 17, 0.55) 0%, rgba(7, 21, 17, 0.72) 55%, rgba(7, 21, 17, 0.92) 100%);
}

.page-home .hero__glow {
  position: absolute;
  z-index: 1;
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.page-home .hero__glow--left {
  left: -8%;
  bottom: 10%;
  background: rgba(15, 107, 92, 0.55);
}

.page-home .hero__glow--right {
  right: -5%;
  top: 18%;
  background: rgba(228, 87, 46, 0.45);
  animation-delay: -4s;
}

@keyframes heroGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(12px, -16px, 0) scale(1.08);
  }
}

.page-home .hero__inner {
  max-width: 44rem;
}

.page-home .hero h1 {
  background-size: 200% auto;
  animation: heroTitleShine 6s ease-in-out infinite;
}

@keyframes heroTitleShine {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.page-home .hero__anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.15s + var(--i, 0) * 0.1s);
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-home .btn-glow {
  box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.45);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 280ms ease;
}

.page-home .btn-glow:hover {
  box-shadow: 0 8px 28px rgba(228, 87, 46, 0.45);
}

.page-home .btn-glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-home .btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(110, 231, 183, 0.45);
}

.page-home .hero__stat {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.page-home .hero__stat:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.page-home .hero__stat strong {
  color: #6ee7b7;
}

.page-home .hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: rgba(243, 247, 245, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: heroEnter 1s ease 0.9s both;
}

.page-home .hero__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.9), transparent);
  position: relative;
  overflow: hidden;
}

.page-home .hero__scroll-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

.page-home .hero__scroll:hover {
  color: var(--text);
}

.page-home .section-head .lead {
  margin-bottom: 0;
}

.page-home .section-head h2 {
  position: relative;
  display: inline-block;
}

.page-home .section-head h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-home .service-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.page-home .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.page-home .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 183, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.page-home .service-card:hover::before {
  opacity: 1;
}

.page-home .service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .account-card {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.page-home .account-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 107, 92, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.page-home .role-link {
  position: relative;
  overflow: hidden;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

.page-home .role-link::after {
  content: "→";
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
  color: #6ee7b7;
}

.page-home .role-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.page-home .role-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.page-home .join a {
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.page-home .join a:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 231, 183, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.page-home .login-banner {
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-home .catalog-card {
  backdrop-filter: blur(6px);
}

.page-home .site-footer {
  background:
    linear-gradient(180deg, rgba(7, 21, 17, 0) 0%, rgba(4, 14, 11, 0.72) 28%, rgba(3, 10, 8, 0.92) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__anim,
  .page-home .hero__scroll,
  .page-home .hero h1,
  .page-home .hero__glow {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-home .hero--video .hero__video {
    transform: none !important;
  }
}

/* Home — tablet (≤1024px) */
@media (max-width: 1024px) {
  .page-home .hero.hero--compact.hero--video {
    padding: 6.5rem 0 4rem;
  }

  .page-home .section {
    padding: 3.5rem 0;
  }

  .page-home .section--tight {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .page-home .catalog-section {
    padding-top: 2.5rem;
  }

  .page-home .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-home .hero__stat {
    min-width: 0;
  }

  .page-home .nav {
    gap: 0.5rem 0.65rem;
  }

  .page-home .nav > a:not(.btn) {
    font-size: 0.88rem;
  }

  .page-home .nav .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }
}

/* Home — mobile nav + layout (≤860px) */
@media (max-width: 860px) {
  .page-home .site-header__inner {
    min-height: 56px;
    flex-wrap: nowrap;
    padding-block: 0.5rem;
    padding-inline: max(1rem, env(safe-area-inset-left, 0)) max(1rem, env(safe-area-inset-right, 0));
    gap: 0.75rem;
  }

  .page-home .brand {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .page-home .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .page-home .nav {
    position: fixed;
    z-index: 45;
    top: 0;
    right: 0;
    width: min(18.5rem, 88vw);
    height: 100dvh;
    height: 100svh;
    margin: 0;
    padding:
      calc(4.5rem + env(safe-area-inset-top, 0))
      max(1.25rem, env(safe-area-inset-right, 0))
      calc(1.5rem + env(safe-area-inset-bottom, 0))
      1.25rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    background: rgba(7, 21, 17, 0.97);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(105%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .nav.is-open {
    transform: translateX(0);
  }

  .page-home .nav > a:not(.btn) {
    display: block;
    padding: 0.85rem 0.65rem;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .page-home .nav > a:not(.btn):hover {
    color: #6ee7b7;
  }

  .page-home .nav #langMount {
    margin: 0.75rem 0 0.5rem;
  }

  .page-home .nav .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .page-home .nav .btn {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.35rem;
  }

  .page-home .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
  }

  .page-home.nav-open {
    overflow: hidden;
  }

  .page-home .hero.hero--compact.hero--video {
    min-height: auto;
    padding:
      calc(5rem + env(safe-area-inset-top, 0))
      0
      calc(2.5rem + env(safe-area-inset-bottom, 0));
    align-items: flex-end;
  }

  .page-home .hero__scroll {
    display: none;
  }

  .page-home .hero--video .hero__video {
    object-position: center 35%;
  }

  .page-home .hero--video .hero__video-overlay {
    background:
      radial-gradient(circle at 50% 0%, rgba(110, 231, 183, 0.1), transparent 45%),
      linear-gradient(180deg, rgba(7, 21, 17, 0.45) 0%, rgba(7, 21, 17, 0.82) 70%, rgba(7, 21, 17, 0.95) 100%);
  }

  .page-home .hero__glow {
    opacity: 0.2;
    filter: blur(60px);
  }

  .page-home .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .page-home .hero p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .page-home .hero__eyebrow {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }

  .page-home .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.5rem;
  }

  .page-home .hero__stat {
    padding: 0.65rem 0.55rem;
    text-align: center;
  }

  .page-home .hero__stat strong {
    font-size: 1.45rem;
  }

  .page-home .hero__stat span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .page-home .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero__actions .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .page-home .section,
  .page-home .catalog-section {
    scroll-margin-top: 72px;
  }

  .page-home .section {
    padding: 2.75rem 0;
  }

  .page-home .section-head h2,
  .page-home .section h2 {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }

  .page-home .section-head .lead,
  .page-home .section > p.lead {
    font-size: 0.95rem;
  }

  .page-home .service-card,
  .page-home .account-card,
  .page-home .role-link,
  .page-home .join a {
    padding: 1.15rem;
  }

  .page-home .role-link {
    min-height: auto;
  }

  .page-home .role-link::after {
    opacity: 1;
    transform: translateX(0);
    right: 1rem;
    bottom: 1rem;
  }

  .page-home .catalog-section__header {
    align-items: flex-start;
  }

  .page-home .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * max(1rem, env(safe-area-inset-left, 0)));
    padding-inline: max(1rem, env(safe-area-inset-left, 0));
    padding-bottom: 0.35rem;
    gap: 0.45rem;
  }

  .page-home .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .page-home .filter-chip {
    flex-shrink: 0;
    min-height: 2.5rem;
    padding: 0.5rem 0.9rem;
  }

  .page-home .catalog-card__actions {
    flex-direction: column;
  }

  .page-home .catalog-card__actions .btn {
    width: 100%;
    min-height: 2.65rem;
  }

  .page-home .login-banner {
    padding: 1.15rem;
  }

  .page-home .login-banner h3 {
    font-size: 1.25rem;
  }

  .page-home .login-banner .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .page-home .accounts-client code {
    display: block;
    margin-top: 0.25rem;
  }
}

/* Home — small phones (≤480px) */
@media (max-width: 480px) {
  .page-home .site-header__inner,
  .page-home .section,
  .page-home .hero__inner,
  .page-home .catalog-section {
    width: min(1120px, calc(100% - 1rem));
  }

  .page-home .hero h1 {
    font-size: 2rem;
  }

  .page-home .hero p,
  .page-home .lead {
    font-size: 0.92rem;
  }

  .page-home .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero__stat:last-child {
    grid-column: 1 / -1;
  }

  .page-home .hero__stat:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: left;
    padding-inline: 1rem;
  }

  .page-home .hero__stat:last-child strong {
    margin-bottom: 0;
    font-size: 1.35rem;
  }

  .page-home .section {
    padding: 2.25rem 0;
  }

  .page-home .section--tight {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .page-home .service-card h3,
  .page-home .catalog-card__body h3 {
    font-size: 1.2rem;
  }

  .page-home .join h3 {
    font-size: 1.35rem;
  }

  .page-home .account-card code {
    font-size: 0.74rem;
  }

  .page-home .catalog-card__menu-item {
    grid-template-columns: 40px 1fr;
    gap: 0.5rem;
  }

  .page-home .catalog-card__menu-item img {
    width: 40px;
    height: 40px;
  }
}

/* Home — very small phones (≤360px) */
@media (max-width: 360px) {
  .page-home .nav {
    width: 100vw;
    border-left: 0;
  }

  .page-home .hero__stat strong {
    font-size: 1.25rem;
  }

  .page-home .btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }
}

/* Touch devices — reduce hover-only motion */
@media (hover: none) {
  .page-home .service-card:hover,
  .page-home .account-card:hover,
  .page-home .role-link:hover,
  .page-home .join a:hover,
  .page-home .hero__stat:hover,
  .page-home .catalog-card:hover {
    transform: none;
  }

  .page-home .btn-glow:hover {
    box-shadow: none;
  }
}

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
