:root {
  --bg: #06150d;
  --bg-soft: #0c1f18;
  --panel: #123325;
  --panel-alt: #173e2d;
  --card: #ffffff;
  --text: #ecf6ef;
  --muted: #b7d5c3;
  --accent: #7ce9aa;
  --accent-strong: #4ad68a;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: rgba(1, 10, 7, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, rgba(124, 233, 170, 0.12), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-banner {
  background: rgba(124, 233, 170, 0.08);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(6, 21, 13, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06150d;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 1rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #062914;
}

.section {
  padding: 4rem 0;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.group-section,
.legal-section,
.culture-section {
  padding-top: 2.5rem;
}

.hero-inner {
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-tag {
  display: inline-block;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

.lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #072113;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.section-intro {
  margin-bottom: 2rem;
}

.section-intro h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-intro p {
  color: var(--muted);
  margin: 0;
}

.center-intro {
  text-align: center;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.group-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 233, 170, 0.35);
}

.group-image {
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

.group-image.main {
  background: linear-gradient(135deg, rgba(124, 233, 170, 0.7), rgba(18, 51, 37, 0.9)), url('https://images.unsplash.com/photo-1471193945509-9ad0617afabf?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.group-image.privacy {
  background: linear-gradient(135deg, rgba(176, 220, 199, 0.5), rgba(18, 51, 37, 0.9)), url('https://images.unsplash.com/photo-1523905635281-cd6e2250851d?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.group-content {
  padding: 1.5rem 1.4rem 1.7rem;
}

.group-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.group-content p {
  min-height: 72px;
}

.group-content p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.group-content a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #072113;
  font-weight: 700;
}

.legal-wrap {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.small-gap {
  margin-bottom: 1.6rem;
}

.law-body {
  color: var(--text);
}

.law-body p,
.law-body li {
  color: var(--muted);
}

.law-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.law-body ul {
  margin: 1rem 0 1.2rem 1.2rem;
  padding-left: 1rem;
}

.info-box {
  margin-top: 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(124, 233, 170, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.info-box h4 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.culture-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.4rem;
}

.faq-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.faq-card p {
  color: var(--muted);
  margin: 0;
}

.spots-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.3rem 1.2rem;
}

.spots-panel h3 {
  margin-bottom: 0.9rem;
  font-size: 1.6rem;
}

.spots-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.spots-panel li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--muted);
}

.spots-panel span {
  font-size: 1.1rem;
}

.spots-panel strong {
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 18, 12, 0.7);
  padding: 2.25rem 0 1.4rem;
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.3fr;
  gap: 2rem;
}

.footer-grid-public {
  grid-template-columns: 1.3fr 0.7fr;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.links-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.links-container {
  width: min(820px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 18px 38px var(--shadow);
}

.links-header {
  text-align: center;
  margin-bottom: 2rem;
}

.links-header h1 {
  margin-bottom: 0.7rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.link-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.link-card .icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 233, 170, 0.18), rgba(124, 233, 170, 0.04));
}

.link-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.link-card p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.link-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
}

.telegram-btn {
  background: var(--accent);
  color: #072113;
}

.whatsapp-btn {
  background: #25d366;
  color: #062916;
}

.whatsapp-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.admin-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
}

.admin-panel {
  width: min(760px, calc(100% - 2rem));
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 20px 40px var(--shadow);
}

.admin-panel h1 {
  margin-bottom: 0.5rem;
}

.admin-form {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label {
  color: var(--muted);
  font-weight: 600;
}

.field-group input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.9rem 1rem;
}

.hidden {
  display: none !important;
}

.auth-panel {
  display: grid;
  gap: 1rem;
}

.admin-editor {
  display: block;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.3rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #072113;
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.status-message {
  min-height: 1.5em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.status-message.visible {
  opacity: 1;
}

.status-message.error {
  color: #ffb3b3;
}

.logout-btn {
  background: transparent;
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .group-grid,
  .culture-layout,
  .footer-grid,
  .links-grid {
    grid-template-columns: 1fr;
  }
}
