:root {
  --beige: #f4efe6;
  --green: #2f6f4e;
  --green-dark: #1f4b36;
  --text: #2a2a2a;
  --card: #ffffffcc;
  --shadow: 0 12px 30px rgba(31, 75, 54, 0.12);
  --bg: #f1eadf;
  --bg-gradients: radial-gradient(860px 520px at 20% -10%, rgba(207, 173, 133, 0.25), transparent 60%),
    radial-gradient(720px 520px at 90% 10%, rgba(70, 56, 40, 0.18), transparent 55%);
  --aurora: radial-gradient(420px 300px at 80% 25%, rgba(196, 162, 120, 0.45), transparent 60%),
    radial-gradient(380px 260px at 15% 75%, rgba(47, 111, 78, 0.14), transparent 60%);
  --geom:
    repeating-linear-gradient(35deg,
      rgba(189, 156, 115, 0.24) 0 1.8px,
      transparent 1.8px 22px,
      rgba(189, 156, 115, 0.16) 22px 23.8px,
      transparent 23.8px 46px
    );
  --paper: none;
  --shape-1: radial-gradient(circle at 30% 30%, rgba(255, 226, 196, 0.55), transparent 60%);
  --shape-2: radial-gradient(circle at 80% 60%, rgba(70, 56, 40, 0.2), transparent 60%);
  --shape-3: radial-gradient(circle at 50% 0%, rgba(255, 214, 170, 0.45), transparent 60%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.hero-desc {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-desc__lead {
  color: rgba(31, 75, 54, 0.92);
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.hero-desc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  color: rgba(31, 75, 54, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.hero-desc__list li {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(47, 111, 78, 0.12);
  border-radius: 12px;
  padding: 8px 12px;
}

.bg-root {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.bg-root > div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bg-base { background: var(--bg-gradients); }

.bg-aurora {
  background: var(--aurora);
  filter: blur(60px);
  opacity: 0.8;
  mix-blend-mode: screen;
}

.bg-geom {
  background: var(--geom);
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.7) 16%,
    rgba(0,0,0,0.08) 38%,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.08) 62%,
    rgba(0,0,0,0.7) 84%,
    rgba(0,0,0,0.95) 100%
  );
  mask-image: linear-gradient(to right,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.7) 16%,
    rgba(0,0,0,0.08) 38%,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.08) 62%,
    rgba(0,0,0,0.7) 84%,
    rgba(0,0,0,0.95) 100%
  );
}

.bg-paper {
  background-image: var(--paper);
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.bg-noise {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.22'/></svg>");
  opacity: 0.14;
  mix-blend-mode: multiply;
}

.bg-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(52px);
  opacity: 0.75;
}

.bg-shape.one {
  width: 420px;
  height: 420px;
  left: -150px;
  top: 18%;
  background: var(--shape-1);
}

.bg-shape.two {
  width: 340px;
  height: 340px;
  right: -120px;
  top: 52%;
  background: var(--shape-2);
}

.bg-shape.three {
  width: 300px;
  height: 300px;
  left: 50%;
  top: -110px;
  transform: translateX(-50%);
  background: var(--shape-3);
}

.card-surface {
  background-color: rgba(255, 255, 255, 0.84);
  background-image:
    linear-gradient(0deg, rgba(31, 75, 54, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 75, 54, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  backdrop-filter: blur(12px);
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  background: rgba(255, 255, 255, 0.78);
  background-image:
    linear-gradient(0deg, rgba(31, 75, 54, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 75, 54, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 75, 54, 0.14);
  border-color: rgba(47, 111, 78, 0.35);
}

#links .social-card:nth-child(even) {
  background: rgba(248, 242, 233, 0.86);
  border-color: rgba(47, 111, 78, 0.22);
}

.social-card__main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 111, 78, 0.14), rgba(47, 111, 78, 0.04));
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.social-card__icon--telegram {
  font-size: 20px;
}

.social-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--green-dark);
}

.social-card__subtitle {
  font-size: 12px;
  color: rgba(31, 75, 54, 0.7);
}

.social-card__badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.8);
  color: #b45309;
  white-space: nowrap;
}

.reviews-header {
  position: relative;
  z-index: 2;
}

.swiper-nav {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(47, 111, 78, 0.25);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 75, 54, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.swiper-nav:hover {
  transform: translateY(-1px);
  background: #f7f3ea;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none !important;
  display: none !important;
}

.swiper-nav i {
  font-size: 12px;
  line-height: 1;
  color: var(--green-dark);
}

.admin-gear {
  position: absolute;
  right: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(47, 111, 78, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-dark);
}

.admin-panel {
  position: absolute;
  right: 0;
  top: 46px;
  width: 220px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(47, 111, 78, 0.22);
  background: #fff;
  padding: 12px;
  box-shadow: 0 12px 24px rgba(31, 75, 54, 0.15);
}

.form-card {
  border-radius: 16px;
  border: 1px solid rgba(47, 111, 78, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 16px;
}

.admin-group {
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.admin-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-group__header h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 15px;
}

.admin-add {
  border: 1px solid rgba(47, 111, 78, 0.3);
  border-radius: 9999px;
  background: #fff;
  color: var(--green-dark);
  font-size: 12px;
  padding: 4px 10px;
}

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

.admin-row {
  border: 1px solid rgba(47, 111, 78, 0.15);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

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

.admin-row__head span {
  color: #3c4b43;
  font-size: 13px;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-row__gear,
.admin-row__delete {
  border: 1px solid rgba(47, 111, 78, 0.24);
  background: #fff;
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 12px;
  padding: 4px 8px;
}

.reviews-nav .swiper-button-prev,
.reviews-nav .swiper-button-next {
  position: static;
  inset: auto;
  margin: 0;
  transform: none;
}

@media (max-width: 640px) {
  .hero-desc__lead {
    font-size: 15px;
    line-height: 1.4;
  }

  .hero-desc__list {
    font-size: 14px;
    gap: 5px;
  }

  .hero-desc__list li {
    padding: 7px 10px;
    border-radius: 10px;
  }

  .social-card {
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .social-card__badge {
    margin-left: auto;
  }

  .swiper-nav {
    width: 38px;
    height: 38px;
  }
}
