:root {
  --bg: #050816;
  --bg-section: #0b1020;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.2);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --danger: #ef4444;
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.6);
  --max-width: 1200px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(55, 65, 81, 0.6);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

/* Логотип в шапке */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 72px !important; /* увеличивай/уменьшай здесь */
  width: auto !important;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  position: relative;
  padding-bottom: 0.15rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

nav a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher button {
  background: transparent;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switcher button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.primary-btn {
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #0f172a;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(248, 181, 46, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(248, 181, 46, 0.45);
}

main {
  padding-bottom: 4rem;
}

section {
  padding: 3rem 0;
}

#hero {
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.hero-subtitle {
  color: var(--muted);
  max-width: 30rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.2rem 0.7rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.secondary-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(248, 181, 46, 0.08), transparent),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem 1.5rem;
}

.hero-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-card-main {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-card-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.stat {
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.12rem;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-card-footnote {
  font-size: 0.75rem;
  color: var(--muted);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  padding: 1.2rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card ul li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 0.7rem;
  transform: translateY(0.22rem);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

form {
  display: grid;
  gap: 0.7rem;
  font-size: 0.86rem;
}

label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.form-helper {
  font-size: 0.72rem;
  color: var(--muted);
}

.form-submit {
  margin-top: 0.6rem;
  justify-self: flex-start;
}

.forum-list {
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.forum-thread {
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.forum-thread:last-child {
  border-bottom: none;
}

.forum-thread-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.05rem;
}

.forum-thread-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  padding: 1.8rem 0 2.4rem;
  margin-top: 1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

footer .footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
}

/* Логотип в подвале (большой со свечением) */
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(249, 115, 22, 0.38);
  box-shadow:
    0 0 25px rgba(249, 115, 22, 0.35),
    0 18px 40px rgba(15, 23, 42, 0.85);
}

.footer-logo img {
  height: 50px !important; /* тут регулируешь размер логотипа в подвале */
  width: auto !important;
  display: block;
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.55));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

/* эффект при ховере */
.footer-logo:hover img {
  filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.9));
  transform: translateY(-1px);
}

/* Language blocks */
.lang {
  display: none;
}

.lang.active {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  nav ul {
    display: none;
  }
}

@media (max-width: 600px) {
  #hero {
    padding-top: 2rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  section {
    padding: 2.2rem 0;
  }

  .card-grid {
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }
}
