/* style.css — Alpha Gym | RTL | Responsive | PWA Ready */

:root {
  --bg: #f4fbf5;
  --bg2: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.58);

  --text: #0f172a;
  --text-strong: #07111f;
  --muted: rgba(15, 23, 42, 0.68);
  --muted2: rgba(15, 23, 42, 0.52);

  --green: #16a34a;
  --green2: #22c55e;
  --green3: #86efac;
  --gold: #d7b56d;
  --rose: #fb7185;
  --blue: #38bdf8;

  --border: rgba(15, 23, 42, 0.10);
  --border-green: rgba(34, 197, 94, 0.24);

  --shadow: 0 24px 80px rgba(2, 6, 23, 0.12);
  --shadow2: 0 14px 34px rgba(2, 6, 23, 0.10);
  --shadow-green: 0 18px 48px rgba(34, 197, 94, 0.18);

  --radius: 20px;
  --radius2: 28px;
  --container: 1120px;
  --ring: 0 0 0 4px rgba(34, 197, 94, 0.18);

  --font-body: "IRANSansX", "Vazirmatn", Tahoma, Arial, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(840px 520px at 96% 8%, rgba(134, 239, 172, 0.28), transparent 55%),
    radial-gradient(760px 520px at 52% 104%, rgba(215, 181, 109, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background-image:
    linear-gradient(rgba(22, 163, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 163, 74, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(34, 197, 94, 0.22);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Background FX */

.bg-glow {
  position: fixed;
  inset: -18vh -18vw;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 18% 18%, rgba(34, 197, 94, 0.18), transparent 62%),
    radial-gradient(740px 520px at 82% 18%, rgba(134, 239, 172, 0.18), transparent 62%),
    radial-gradient(680px 520px at 50% 92%, rgba(215, 181, 109, 0.14), transparent 66%);
  filter: blur(4px);
  animation: glowFloat 10s ease-in-out infinite alternate;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background:
    repeating-radial-gradient(circle at 20% 30%, rgba(15, 23, 42, 0.028) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}

@keyframes glowFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(22px, -16px, 0) scale(1.04);
  }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  border-bottom: 1px solid rgba(34, 197, 94, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.52), transparent);
  opacity: 0.55;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 12px 24px rgba(22, 163, 74, 0.16));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 950;
  letter-spacing: 0.4px;
  color: var(--green);
}

.brand__sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav--desktop {
  display: none;
}

.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  transition: transform 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--green), var(--green2));
  transition: transform 0.24s ease;
}

.nav__link:hover {
  color: var(--text-strong);
  background: rgba(34, 197, 94, 0.10);
  transform: translateY(-1px);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-green);
  box-shadow: var(--ring), var(--shadow2);
}

.icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
}

.icon--burger::before,
.icon--burger::after,
.icon--burger span {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.icon--burger::before {
  top: 3px;
}

.icon--burger span {
  top: 9px;
}

.icon--burger::after {
  top: 15px;
}

.mobile-menu {
  border-top: 1px solid rgba(34, 197, 94, 0.13);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: menuDrop 0.26s ease both;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__inner {
  display: grid;
  gap: 8px;
  padding: 12px 0 16px;
}

.mobile-menu__link {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-weight: 850;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mobile-menu__link:hover {
  transform: translateX(-4px);
  border-color: var(--border-green);
  box-shadow: var(--ring);
}

/* Hero */

.main {
  padding-bottom: 38px;
}

.hero {
  position: relative;
  padding: 28px 0 24px;
}

.hero__inner {
  display: grid;
  gap: 22px;
  align-items: center;
}

.hero__content {
  max-width: 650px;
  animation: fadeUp 0.7s ease both;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 62px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -1px;
  color: var(--text-strong);
}

.hero__title::after {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green3), var(--gold));
  box-shadow: var(--shadow-green);
  animation: lineGrow 0.8s ease 0.25s both;
}

@keyframes lineGrow {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 92px;
    opacity: 1;
  }
}

.hero__subtitle {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(15px, 2.6vw, 18px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(105%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-green);
  box-shadow: var(--ring), var(--shadow2);
}

.btn:hover::before {
  transform: translateX(-105%);
}

.btn--primary {
  color: #ffffff;
  border-color: rgba(22, 163, 74, 0.42);
  background: linear-gradient(135deg, var(--green2), var(--green));
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.28);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.62);
}

.btn--hero {
  min-width: 138px;
}

.hero__media {
  animation: fadeScale 0.8s ease 0.1s both;
}

.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  pointer-events: none;
  transform: rotate(18deg) translateX(42%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: heroShine 5s ease-in-out infinite;
}

@keyframes heroShine {
  0%,
  45% {
    transform: rotate(18deg) translateX(70%);
  }

  70%,
  100% {
    transform: rotate(18deg) translateX(-70%);
  }
}

.hero__image {
  width: 100%;
  height: 270px;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.hero__frame:hover .hero__image {
  transform: scale(1.08);
}

/* Sections */

.section {
  padding: 32px 0;
}

.section--thin {
  padding: 18px 0 32px;
}

.section__head {
  margin-bottom: 18px;
  animation: fadeUp 0.65s ease both;
}

.section__title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.35;
  font-weight: 950;
}

.section__title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green3));
}

.section__desc {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Cards */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow2);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(0);
  animation: cardEnter 0.6s ease both;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:nth-child(2) {
  animation-delay: 0.04s;
}

.card:nth-child(3) {
  animation-delay: 0.08s;
}

.card:nth-child(4) {
  animation-delay: 0.12s;
}

.card:nth-child(5) {
  animation-delay: 0.16s;
}

.card:nth-child(6) {
  animation-delay: 0.20s;
}

.card:nth-child(7) {
  animation-delay: 0.24s;
}

.card:nth-child(8) {
  animation-delay: 0.28s;
}

.card:nth-child(9) {
  animation-delay: 0.32s;
}

.card:nth-child(10) {
  animation-delay: 0.36s;
}

.card:nth-child(11) {
  animation-delay: 0.40s;
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(34, 197, 94, 0.16), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), transparent 35%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: var(--shadow), 0 0 0 5px rgba(34, 197, 94, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card__media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: rgba(34, 197, 94, 0.08);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.03);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.card:hover .card__media img {
  transform: scale(1.11);
  filter: saturate(1.16) contrast(1.07);
}

.card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px 170px at 18% 16%, rgba(255, 255, 255, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.42));
}

.card__body {
  position: relative;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card__title {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.35;
}

.card__desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(34, 197, 94, 0.30);
  border-radius: 999px;
  color: var(--text-strong);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.48);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.12));
  box-shadow: var(--ring), 0 14px 28px rgba(34, 197, 94, 0.14);
}

.pill:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.social__btn:focus-visible,
.modal__close:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow2);
}

/* About Panel */

.panel {
  position: relative;
  overflow: hidden;
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 240px at 18% 8%, rgba(34, 197, 94, 0.16), transparent 64%),
    radial-gradient(400px 240px at 94% 20%, rgba(215, 181, 109, 0.14), transparent 60%);
}

.panel__content {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.panel__title {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: clamp(21px, 4vw, 32px);
  font-weight: 950;
}

.panel__text {
  margin: 0 0 16px;
  color: var(--muted);
}

.panel__media {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.panel__media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(1.07) contrast(1.04);
  transition: transform 0.8s ease;
}

.panel:hover .panel__media img {
  transform: scale(1.07);
}

/* Social */

.social {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.social__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow2);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.social__btn img {
  width: 23px;
  height: 23px;
}

.social__btn:hover {
  transform: translateY(-4px) rotate(-2deg);
  border-color: rgba(34, 197, 94, 0.36);
  box-shadow: var(--ring), var(--shadow2);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  position: relative;
  width: min(94vw, 540px);
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 28px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.26);
  transform: translateY(18px) scale(0.96);
  animation: none;
}

.modal.active .modal__content {
  animation: modalPop 0.34s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.modal__close:hover {
  color: var(--green);
  transform: translateY(-2px) rotate(6deg);
  border-color: rgba(34, 197, 94, 0.34);
  box-shadow: var(--ring), var(--shadow2);
}

.modal__media {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(34, 197, 94, 0.08);
}

.modal__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

#modalTitle {
  margin: 8px 0 10px;
  padding-inline-end: 46px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 950;
}

#modalText {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

#modalText p {
  margin: 0 0 12px;
}

#modalText p:last-child {
  margin-bottom: 0;
}

#modalText ul,
#modalText ol {
  margin: 0 0 12px;
  padding: 0 22px 0 0;
}

#modalText li {
  margin: 7px 0;
}

#modalText strong,
#modalText b {
  color: var(--text-strong);
}

/* Offline Toast */

.offline-toast {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(520px, calc(100% - 32px));
  margin-inline: auto;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: toastUp 0.28s ease both;
}

.offline-toast.is-visible {
  display: flex;
}

@keyframes toastUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offline-toast__dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: var(--rose);
  box-shadow: 0 0 0 5px rgba(251, 113, 133, 0.16);
}

.offline-toast.is-online .offline-toast__dot {
  background: var(--green2);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.offline-toast__text {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.offline-toast__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

/* Footer */

.footer {
  padding: 22px 0 34px;
  border-top: 1px solid rgba(34, 197, 94, 0.14);
  background: rgba(240, 251, 243, 0.78);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer__inner a {
  color: var(--text);
  font-weight: 850;
  transition: color 0.2s ease;
}

.footer__inner a:hover {
  color: var(--green);
}

/* Video / Gallery Compatibility */

.gallery-container {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 50px;
  display: grid;
  gap: 18px;
}

.search-area {
  position: sticky;
  top: 82px;
  z-index: 30;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-area input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.search-area input:focus {
  border-color: rgba(34, 197, 94, 0.36);
  box-shadow: var(--ring);
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow2);
  animation: cardEnter 0.55s ease both;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green2), var(--green));
  box-shadow: var(--shadow-green);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(34, 197, 94, 0.10);
  font-size: 12px;
  font-weight: 900;
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  background: rgba(34, 197, 94, 0.08);
}

.post-content {
  padding: 14px;
  color: var(--muted);
}

.post-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted2);
  font-size: 13px;
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  animation: shimmerMove 1.3s infinite;
}

@keyframes shimmerMove {
  100% {
    transform: translateX(-100%);
  }
}

/* Forms / Extra Compatibility */

.cta,
.form,
.info {
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: var(--surface);
  box-shadow: var(--shadow2);
}

.cta__inner,
.form,
.info {
  padding: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.field__label {
  color: var(--muted2);
  font-size: 13px;
  font-weight: 850;
}

.field__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.field__input:focus {
  border-color: rgba(34, 197, 94, 0.36);
  box-shadow: var(--ring);
}

select.field__input,
select.field__input option {
  color: var(--text);
  background: #ffffff;
  color-scheme: light;
}

textarea.field__input {
  min-height: 112px;
  resize: vertical;
}

/* Animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */

@media (min-width: 680px) {
  .hero__inner {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
  }

  .hero__image {
    height: 360px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .panel__media {
    border-top: 0;
    border-right: 1px solid var(--border);
  }

  .panel__media img {
    height: 100%;
    min-height: 300px;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 980px) {
  .nav--desktop {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .hero {
    padding: 42px 0 34px;
  }

  .hero__image {
    height: 430px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card__media {
    height: 190px;
  }
}

@media (min-width: 1180px) {
  .grid {
    gap: 18px;
  }

  .card__media {
    height: 205px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header__inner {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 22px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn--hero {
    width: 100%;
  }

  .hero__image {
    height: 245px;
  }

  .card__media {
    height: 170px;
  }

  .modal {
    padding: 12px;
    align-items: flex-end;
  }

  .modal__content {
    width: 100%;
    max-height: 88vh;
    border-radius: 26px 26px 20px 20px;
  }

  .modal__media img {
    height: 185px;
  }

  .offline-toast {
    inset-inline: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    align-items: flex-start;
  }
}

/* Reduce Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}