/* Digital Profile Card — glassmorphic purple/pink */
:root {
  --bg: #0b0416;
  --ink: #f7f2ff;
  --muted: rgba(244, 235, 255, 0.75);
  --muted-2: rgba(244, 235, 255, 0.55);
  --violet: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #25d366;
  --glass: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.15);
  --stroke-soft: rgba(255, 255, 255, 0.09);
  --radius: 30px;
  --shadow: 0 44px 90px -32px rgba(5, 0, 16, 0.96), 0 12px 30px rgba(8, 0, 22, 0.55);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 10% -10%, #3d1170 0%, rgba(61, 17, 112, 0) 55%),
    radial-gradient(95% 80% at 96% 6%, #7d1450 0%, rgba(125, 20, 80, 0) 58%),
    radial-gradient(120% 100% at 50% 112%, #1b0b3f 0%, rgba(27, 11, 63, 0) 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- background atmosphere ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb--violet {
  width: 46vmax;
  height: 46vmax;
  top: -18vmax;
  left: -12vmax;
  background: radial-gradient(circle at 35% 35%, #8b5cf6, rgba(139, 92, 246, 0.15) 62%, transparent 72%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.orb--pink {
  width: 40vmax;
  height: 40vmax;
  right: -14vmax;
  top: 6vmax;
  background: radial-gradient(circle at 50% 50%, #ec4899, rgba(236, 72, 153, 0.14) 60%, transparent 72%);
  animation: drift-b 26s ease-in-out infinite alternate;
  opacity: 0.45;
}

.orb--blue {
  width: 34vmax;
  height: 34vmax;
  left: 34%;
  bottom: -18vmax;
  background: radial-gradient(circle at 50% 50%, #4f46e5, rgba(79, 70, 229, 0.12) 60%, transparent 74%);
  animation: drift-c 30s ease-in-out infinite alternate;
  opacity: 0.5;
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 16px;
}

/* ---------- card ---------- */
.card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 26px 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.045) 46%, rgba(255, 255, 255, 0.085) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  overflow: hidden;
  isolation: isolate;
  animation: card-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), filter 0.45s ease;
}

/* soft light bloom inside the glass */
.card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto -30%;
  height: 78%;
  background:
    radial-gradient(60% 60% at 24% 34%, rgba(196, 181, 253, 0.4), transparent 68%),
    radial-gradient(55% 55% at 76% 22%, rgba(251, 207, 232, 0.34), transparent 70%);
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* gradient rim */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.02) 38%, rgba(236, 72, 153, 0.35) 72%, rgba(139, 92, 246, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
}

.card.is-closed {
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------- close ---------- */
.card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.card__close svg { width: 15px; height: 15px; }

.card__close:hover {
  transform: rotate(90deg);
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(251, 113, 133, 0.5);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12), 0 6px 18px rgba(244, 63, 94, 0.35);
}

/* ---------- profile header ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 34px;
}

.avatar {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.avatar__glow {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 160deg, #f472b6, #a78bfa, #38bdf8, #f472b6);
  filter: blur(11px);
  opacity: 0.8;
  z-index: 0;
  animation: spin 9s linear infinite;
}

.avatar img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  background: #2a1245;
}

.avatar__status {
  position: absolute;
  right: 1px;
  bottom: 3px;
  z-index: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #34d399;
  border: 2.5px solid #1a0b2e;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

.profile__meta { min-width: 0; }

.profile__nameline {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile__name {
  margin: 0;
  font-size: clamp(1.12rem, 4.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.verified {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, #60a5fa, #2563eb);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.45);
}

.verified svg { width: 11px; height: 11px; }

.handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: color 0.2s ease;
}

.handle svg { width: 13px; height: 13px; opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }

.handle:hover { color: #fff; }
.handle:hover svg { opacity: 1; transform: translateY(-1px); }

.profile__role {
  margin: 7px 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.4;
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  padding: 13px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--stroke-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  border-radius: 12px;
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.stat:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }

.stat__value {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stats__rule {
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* ---------- about ---------- */
.about { margin-top: 18px; }

.about__text {
  margin: 0;
  font-size: 0.855rem;
  line-height: 1.64;
  color: var(--muted);
}

.about__text strong { color: #fff; font-weight: 600; }

.about__cta {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(244, 114, 182, 0.65);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: #fbcfe8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

/* ---------- services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 5px 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.28s, border-color 0.28s, color 0.28s, box-shadow 0.28s;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.28), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5d0fe;
  transition: transform 0.28s ease, background 0.28s ease;
}

.service__icon svg { width: 16px; height: 16px; }

.service__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: center;
  line-height: 1.2;
}

.service:hover,
.service:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(244, 114, 182, 0.42);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(236, 72, 153, 0.75);
  outline: none;
}

.service:hover .service__icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(150deg, rgba(167, 139, 250, 0.5), rgba(236, 72, 153, 0.42));
}

/* ---------- action buttons ---------- */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.845rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.btn__icon { width: 17px; height: 17px; flex: 0 0 auto; }

.btn:active { transform: translateY(0) scale(0.985); }

.btn:focus-visible,
.card__close:focus-visible,
.handle:focus-visible,
.share:focus-visible,
.service:focus-visible,
.reopen:focus-visible,
.modal__close:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.9);
  outline-offset: 2px;
}

.btn--follow {
  background: linear-gradient(140deg, #3b82f6, #2563eb 55%, #1d4ed8);
  box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--follow:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 18px 32px -12px rgba(59, 130, 246, 1), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn--follow.is-following {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--follow.is-following .btn__plus { opacity: 0; }

.btn--follow.is-following:hover {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(251, 113, 133, 0.5);
}

.btn--message {
  background: rgba(0, 0, 0, 0.42);
  border-color: rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--message:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 28px -16px rgba(0, 0, 0, 0.9);
}

.btn--whatsapp {
  grid-column: 1 / -1;
  background: linear-gradient(140deg, #2ee07a, #1eb85c 55%, #12924a);
  color: #032915;
  box-shadow: 0 16px 30px -14px rgba(37, 211, 102, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--whatsapp .btn__icon { width: 19px; height: 19px; }

.btn--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 34px -14px rgba(37, 211, 102, 1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }

/* ---------- footer ---------- */
.card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.52);
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
}

.share svg { width: 13px; height: 13px; }
.share:hover { color: #fff; }

.card__footer-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
}

.card__link { letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ---------- reopen pill ---------- */
.reopen {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  animation: card-in 0.45s ease both;
  transition: transform 0.25s ease, background 0.25s ease;
}

.reopen:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }
.reopen[hidden] { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 70;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(24, 10, 44, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- message modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 3, 18, 0.62);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal.is-open { opacity: 1; pointer-events: auto; }

.modal__panel {
  width: min(380px, 100%);
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(46, 23, 78, 0.94), rgba(24, 11, 44, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.modal__head h2 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }

.modal__close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal__close svg { width: 13px; height: 13px; }
.modal__close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.modal__hint { margin: 4px 0 12px; font-size: 0.74rem; line-height: 1.5; color: var(--muted-2); }

.modal textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-family: inherit;
  font-size: 0.83rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.modal textarea:focus {
  outline: none;
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal__actions .btn { height: 40px; font-size: 0.8rem; padding: 0 16px; }

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vmax, 5vmax, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-7vmax, 6vmax, 0) scale(0.95); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(5vmax, -6vmax, 0) scale(1.1); }
}

/* ---------- responsive ---------- */
@media (max-width: 430px) {
  .stage { padding: 22px 14px; }
  .card { padding: 22px 18px 16px; border-radius: 26px; }
  .avatar { width: 78px; height: 78px; }
  .profile { gap: 14px; padding-right: 30px; }
  .profile__role { letter-spacing: 0.03em; }
  .stat__value { font-size: 1.14rem; }
  .btn { height: 44px; font-size: 0.8rem; gap: 7px; }
  .btn__icon { width: 16px; height: 16px; }
  .toast { bottom: 20px; max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
}

@media (max-width: 380px) {
  .avatar { width: 72px; height: 72px; }
  .profile { gap: 12px; }
}

@media (max-width: 360px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: 1 / -1; flex-direction: row; justify-content: center; }
  .stats { padding: 11px 4px; }
  .stat__value { font-size: 1.04rem; }
  .stat__label { font-size: 0.56rem; letter-spacing: 0.08em; }
}

@media (max-height: 700px) and (min-width: 431px) {
  .stage { padding: 20px 16px; }
  .card { padding: 22px 24px 16px; }
}

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