/* ─── Reset & Root ─────────────────────────────────────────────── */
:root {
  --bg: #080b14;
  --surface: #0e1526;
  --card: #111d33;
  --border: rgba(255, 255, 255, 0.07);
  --border-lit: rgba(100, 160, 255, 0.2);
  --text: #edf2ff;
  --muted: #8899bb;
  --cyan: #2ee8ff;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --go: #00acd7;
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

img {
  display: block;
}

/* ─── Floating Telegram Button ─────────────────────────────────── */
.float-tg {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #229ed9, #1a86bb);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(34, 158, 217, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-tg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(34, 158, 217, 0.65);
}

/* ─── Header ────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-gopher {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 172, 215, 0.4));
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tg {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  background: rgba(34, 158, 217, 0.15) !important;
  border: 1px solid rgba(34, 158, 217, 0.35) !important;
  color: #7dd3fc !important;
  margin-left: 0.5rem;
}

.nav-tg:hover {
  background: rgba(34, 158, 217, 0.28) !important;
  color: #e0f2fe !important;
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-lit);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1rem;
  gap: 0.15rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 13, 24, 0.96);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

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

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 215, 0.18) 0%, transparent 65%);
  top: -200px;
  left: -200px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(46, 232, 255, 0.08);
  border: 1px solid rgba(46, 232, 255, 0.22);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.03em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.grad {
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.8rem;
}

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

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #071228;
  box-shadow: 0 8px 28px rgba(46, 232, 255, 0.32);
}

.btn-cta:hover {
  box-shadow: 0 14px 36px rgba(46, 232, 255, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-lit);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-big {
  font-size: 1.05rem;
  padding: 0.95rem 1.6rem;
}

/* Mascot */
.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 172, 215, 0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
}

.hero-mascot img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 172, 215, 0.35));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ─── Stats Strip ───────────────────────────────────────────────── */
.stats-strip {
  background: linear-gradient(90deg, rgba(14, 21, 38, 0.9), rgba(17, 29, 51, 0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 0.8rem;
  max-width: 540px;
}

.about-card {
  background: linear-gradient(145deg, var(--card), rgba(17, 29, 51, 0.6));
  border: 1px solid var(--border-lit);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-card-inner {
  padding: 2rem;
}

.about-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lang-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.lang-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c, #fff) 50%, transparent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--c, #fff) 25%, transparent);
}

.lang-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.lang-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.svc-card:hover {
  border-color: var(--border-lit);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.svc-icon {
  font-size: 2rem;
  margin-bottom: 0.9rem;
}

.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.svc-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA Box */
.cta-box {
  position: relative;
  background: linear-gradient(145deg, rgba(17, 29, 55, 0.9), rgba(11, 20, 40, 0.95));
  border: 1px solid var(--border-lit);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 232, 255, 0.1) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box h2 {
  margin-bottom: 0.6rem;
}

.cta-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.footer-left p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-mascot {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 700px) {
  .desktop-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-inner {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-div {
    display: none;
  }

  .stat {
    flex: 0 0 40%;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
}

/* Scroll fade-in */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }

  .float-tg span {
    display: none;
  }

  .float-tg {
    padding: 0.8rem;
    border-radius: 50%;
  }
}
