/* Существующие стили из предыдущего артефакта остаются без изменений */
:root {
  --primary: #e0c341;          /* жёлтый */
  --primary-hover: #d1b42f;    /* тёмно-жёлтый */
  --background: #0a0a0a;       /* почти чёрный */
  --surface: #1e1e1e;          /* чёрно-серый */
  --surface-dark: #2a2a2a;     /* более светлый серый */
  --text: #f0f0f0;             /* светлый текст */
  --text-secondary: #a5a5a5;   /* серый текст */
  --shadow: 0 4px 12px rgba(0,0,0,0.6);
  --section-width: 1000px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/background.jpg') no-repeat center center;
  background-size: cover;
  color: var(--text);
  min-height: 100vh;
  overflow-y: auto;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
  will-change: backdrop-filter;
  transform: translateZ(0);
}

header {
  width: 100%;
  max-width: var(--section-width);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

nav {
  display: flex;
  gap: 12px;
}

nav a {
  background: var(--primary);
  color: var(--background);
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
}

nav a:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

nav a.login {
  order: 2;
}

nav a.knowledge-base {
  order: 1;
}

main {
  flex-grow: 1;
  width: 100%;
  max-width: var(--section-width);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.hero {
  text-align: center;
  padding: 50px 20px;
  max-width: 700px;
}

.hero h2 {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero a.cta {
  background: var(--primary);
  color: var(--background);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  display: inline-block;
}

.hero a.cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.feature-card {
  background: var(--surface-dark);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  margin-top: 150px;
}

.pricing p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing p span {
  color: var(--primary);
  font-weight: 700;
}

.pricing a.cta {
  background: var(--primary);
  color: var(--background);
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  display: inline-block;
}

.pricing a.cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.support-icon {
  position: fixed !important;
  bottom: 30px !important;
  right: 30px !important;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

.support-icon:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

.support-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.support-popup {
  position: fixed !important;
  bottom: 90px !important;
  right: 30px !important;
  background: var(--surface-dark);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 2000;
  overflow: visible;
}

.support-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.support-popup a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.support-popup a:hover {
  background: var(--primary-hover);
}

.support-popup img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

footer {
  width: 100%;
  max-width: var(--section-width);
  padding: 20px 30px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Новые стили для Help.cshtml */
.articles {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: var(--section-width);
  padding: 20px 30px;
}

article {
  background: var(--surface-dark);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

article h3 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
}

article p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

article ul, article ol {
  margin: 15px 0;
  padding-left: 25px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

article li {
  margin-bottom: 10px;
}

article a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

article a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

@@media (max-width: 768px) {
  header {
    padding: 15px;
    flex-direction: column;
    gap: 15px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: row;
    gap: 10px;
  }

  nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  main {
    padding: 30px 20px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero a.cta {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .pricing {
    padding: 15px;
    margin-top: 120px;
  }

  .pricing p {
    font-size: 1.1rem;
  }

  .pricing a.cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .articles {
    padding: 15px 20px;
  }

  article {
    padding: 20px;
  }

  article h3 {
    font-size: 1.4rem;
  }

  article p, article ul, article ol {
    font-size: 1rem;
  }

  .support-icon {
    bottom: 25px !important;
    right: 25px !important;
    width: 45px;
    height: 45px;
  }

  .support-icon img {
    width: 28px;
    height: 28px;
  }

  .support-popup {
    bottom: 80px !important;
    right: 25px !important;
    padding: 10px;
  }

  .support-popup a {
    width: 42px;
    height: 42px;
  }

  .support-popup img {
    width: 28px;
    height: 28px;
  }
}

@@media (max-width: 480px) {
  header {
    padding: 10px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav {
    flex-direction: column;
    gap: 8px;
  }

  nav a {
    width: 100%;
    text-align: center;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  main {
    padding: 20px 15px;
  }

  .hero {
    padding: 30px 10px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero a.cta {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  .pricing {
    padding: 10px;
    margin-top: 100px;
  }

  .pricing p {
    font-size: 1rem;
  }

  .pricing a.cta {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .articles {
    padding: 10px 15px;
  }

  article {
    padding: 15px;
  }

  article h3 {
    font-size: 1.2rem;
  }

  article p, article ul, article ol {
    font-size: 0.9rem;
  }

  .support-icon {
    bottom: 20px !important;
    right: 20px !important;
    width: 40px;
    height: 40px;
  }

  .support-icon img {
    width: 24px;
    height: 24px;
  }

  .support-popup {
    bottom: 70px !important;
    right: 20px !important;
    padding: 8px;
  }

  .support-popup a {
    width: 36px;
    height: 36px;
  }

  .support-popup img {
    width: 24px;
    height: 24px;
  }
}