:root {
  --primary: #0066ff;
  --primary-light: #0099ff;
  --primary-dark: #0044cc;
  --primary-ultralight: #f0f8ff;
  --primary-gradient: linear-gradient(135deg, #0066ff, #00ccff);

  --secondary: #ff3366;
  --secondary-light: #ff6699;
  --secondary-dark: #ff0044;
  --secondary-gradient: linear-gradient(135deg, #ff3366, #ff66cc);

  --accent: #00ff99;
  --accent-light: #66ffcc;
  --accent-dark: #00cc66;
  --accent-gradient: linear-gradient(135deg, #00ff99, #00ffcc);

  --success: #00ff88;
  --warning: #d88200;
  --error: #ff3366;
  --info: #0099ff;

  --bg: #ffffff;
  --bg-dark: #f8f9ff;
  --bg-light: #f0f4ff;
  --bg-card: #ffffff;
  --bg-toggle: #dbdee7;

  --text: #0a0a12;
  --text-light: #4a4a6a;
  --text-lighter: #7a7a9a;

  --border: #e0e4ff;
  --border-light: #f0f4ff;
  --border-dark: #d0d4f0;

  --border-glow: 0 0 8px rgba(0, 102, 255, 0.2);

  --shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
  --shadow-sm: 0 2px 10px rgba(0, 102, 255, 0.08);
  --shadow-md: 0 6px 25px rgba(0, 102, 255, 0.15);
  --shadow-lg: 0 10px 35px rgba(0, 102, 255, 0.2);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: #0066ff;
  --primary-light: #0099ff;
  --primary-dark: #0044cc;
  --primary-ultralight: #e6f2ff;
  --primary-gradient: linear-gradient(135deg, #0066ff, #00ccff);
  --primary-glow: 0 0 15px rgba(0, 102, 255, 0.4);

  --secondary: #ff3366;
  --secondary-light: #ff6699;
  --secondary-dark: #ff0044;
  --secondary-gradient: linear-gradient(135deg, #ff3366, #ff66cc);
  --secondary-glow: 0 0 15px rgba(255, 51, 102, 0.4);

  --accent: #00ff99;
  --accent-light: #66ffcc;
  --accent-dark: #00cc66;
  --accent-gradient: linear-gradient(135deg, #00ff99, #00ffcc);
  --accent-glow: 0 0 15px rgba(0, 255, 153, 0.4);

  --success: #00ff88;
  --warning: #ffcc00;
  --error: #ff3366;
  --info: #0099ff;

  --bg: #0a0a12;
  --bg-dark: #12121f;
  --bg-light: #1a1a2e;
  --bg-card: #1a1a2e;
  --bg-toggle: #3e3e60;

  --text: #ffffff;
  --text-light: #a0a0c0;
  --text-lighter: #6a6a8a;

  --border: #2a2a4a;
  --border-light: #3a3a5a;
  --border-dark: #1a1a3a;

  --border-glow: 0 0 8px rgba(0, 102, 255, 0.3);

  --shadow: 0 4px 20px rgba(0, 102, 255, 0.2);
  --shadow-sm: 0 2px 10px rgba(0, 102, 255, 0.15);
  --shadow-md: 0 6px 25px rgba(0, 102, 255, 0.25);
  --shadow-lg: 0 10px 35px rgba(0, 102, 255, 0.3);
}

/* Базовые стили */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 51, 102, 0.05) 0%, transparent 25%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.logo a {
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite linear;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Переключатель темы */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-toggle);
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--primary);
  color: white;
}

/* Переключатель языка */
.language-switch {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 32px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-toggle);
  border-radius: 34px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 1px solid var(--border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 3px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  transition: var(--transition);
  z-index: 2;
}

input:checked+.slider:before {
  transform: translateX(38px);
}

.lang-text {
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
  z-index: 1;
}

.lang-text.ru {
  color: var(--text);
  opacity: 1;
}

.lang-text.en {
  color: var(--text);
  opacity: 1;
}

input:checked+.slider .lang-text.ru {
  color: var(--text);
  opacity: 1;
}

input:checked+.slider .lang-text.en {
  color: white;
  opacity: 1;
}

/* Анимация для переключателя */
.switch:hover .slider:before {
  transform: scale(1.1);
}

.switch:hover input:checked+.slider:before {
  transform: translateX(38px) scale(1.1);
}

.important-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.1);
}

.notice-icon {
  font-size: 2rem;
  min-width: 40px;
}

.notice-content h3 {
  color: var(--warning);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.notice-content ul {
  list-style: none;
  padding: 0;
}

.notice-content li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--text);
  font-weight: 500;
}

.notice-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--warning);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Сетка особенностей */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

/* Советы по сети */
.network-tips {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-top: 40px;
  border-left: 4px solid var(--primary);
}

.network-tips h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.network-tips ul {
  list-style: none;
  padding: 0;
}

.network-tips li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
}

.network-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Прогресс бар */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 0%;
  transition: width 0.2s ease;
}

/* Герой секция */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
  justify-content: center;
  min-height: 60vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 51, 102, 0.15) 0%, transparent 40%);
  animation: gradientMove 15s ease infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes gradientMove {
  0% {
    background-position: 20% 30%, 80% 70%;
  }

  50% {
    background-position: 30% 40%, 70% 60%;
  }

  100% {
    background-position: 20% 30%, 80% 70%;
  }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 800px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin-bottom: 40px;
}

.cta-buttons {
  justify-content: center;
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.app-showcase {
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
}

.app-header {
  padding: 16px 24px;
  background: var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.app-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg-light);
}

.app-content::-webkit-scrollbar {
  width: 6px;
}

.app-content::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}

.app-content::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius);
  animation: fadeIn 0.4s ease;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
  position: relative;
  line-height: 1.5;
  transform-origin: center bottom;
  transition: transform 0.2s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.my-message {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  max-width: 70%;
  backdrop-filter: blur(10px);
}

.my-message::before {
  content: '';
  position: absolute;
  bottom: 4px;
  right: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--primary);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.other-message {
  background: var(--bg-card);
  color: var(--text);
  margin-right: auto;
  border-radius: 18px 18px 18px 4px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  max-width: 70%;
}

.other-message::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -8px;
  width: 0;
  height: 0;
  border-right: 8px solid var(--bg-card);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

[data-theme="dark"] .my-message {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .other-message {
  background: var(--bg-light);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .my-message {
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
}

[data-theme="light"] .other-message {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Анимация появления сообщений */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}

.input-area {
  display: flex;
  padding: 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  gap: 12px;
  align-items: flex-end;
}

#message-input {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: none;
  font-family: inherit;
  font-size: 15px;
  max-height: 120px;
  min-height: 50px;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--bg-light);
}

#message-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#message-input:not(:focus):hover {
  overflow: auto;
}

#message-input:focus {
  overflow: auto;
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 6px;
  display: block;
  text-align: right;
}

.typing-indicator {
  display: flex;
  gap: 8px;
  margin-left: 16px;
  margin-bottom: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}

.typing-indicator-dots {
  display: flex;
  gap: 4px;
}

.typing-indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-indicator-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}

/* Интерактивные элементы чата */
.chat-controls {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.send-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

.send-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.send-btn:disabled {
  background: var(--text-lighter);
  cursor: not-allowed;
}

.message-limit {
  text-align: center;
  padding: 10px;
  color: var(--text-light);
  font-size: 0.9rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}

/* Особенности */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .feature-card {
  background: rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--primary-glow);
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.5;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }

  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
}

/* Как это работает */
.how-it-works {
  padding: 100px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  min-width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.step-content p {
  color: var(--text-light);
}

/* Бэклог */
.backlog {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.backlog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(79, 70, 229, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.backlog-timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.timeline-line {
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.backlog-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.backlog-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.backlog-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.backlog-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.backlog-item:hover {
  transform: translateX(5px);
}

.backlog-item.completed {
  border-left-color: var(--success);
  opacity: 0.8;
}

.backlog-item.in-progress {
  border-left-color: var(--warning);
}

.backlog-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.timeline-marker {
  min-width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.timeline-marker.completed {
  background: linear-gradient(135deg, var(--success), var(--success-dark));
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.timeline-marker.in-progress {
  background: linear-gradient(135deg, var(--warning), var(--accent-dark));
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.timeline-marker.planned {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.timeline-marker::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulseMarker 2s infinite;
}

.timeline-marker.completed::before {
  background: var(--success);
  opacity: 0.4;
}

.timeline-marker.in-progress::before {
  background: var(--warning);
  opacity: 0.4;
}

.timeline-marker.planned::before {
  background: var(--primary);
  opacity: 0.4;
}

.marker-icon {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.backlog-content {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  flex: 1;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.backlog-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  transform: rotate(45deg);
  border: 1px solid var(--border);
}

.backlog-item:nth-child(even) .backlog-content::before {
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.backlog-item:nth-child(odd) .backlog-content::before {
  right: -10px;
  border-left: none;
  border-top: none;
}

.backlog-item:hover .backlog-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.backlog-item:hover .timeline-marker {
  transform: scale(1.1);
}

.backlog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 20px;
}

.backlog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.status-badge {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.status-progress {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.status-planned {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.backlog-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.backlog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  width: 100px;
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-completed {
  background: linear-gradient(90deg, var(--success), var(--success-light));
  width: 100%;
}

.progress-in-progress {
  background: linear-gradient(90deg, var(--warning), var(--accent-light));
  width: 65%;
}

.progress-planned {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  width: 0%;
}

.progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 40px;
}

/* Анимации */
@keyframes pulseMarker {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Эффекты при наведении */
.backlog-item:hover .backlog-content {
  border-color: var(--primary-light);
}

.backlog-item.completed:hover .backlog-content {
  border-color: var(--success);
}

.backlog-item.in-progress:hover .backlog-content {
  border-color: var(--warning);
}

.backlog-item.planned:hover .backlog-content {
  border-color: var(--primary);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.status-progress {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.status-planned {
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-light);
}

.backlog-item p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Футер */
footer {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg));
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.developer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  text-decoration: none;
  margin-top: 16px;
  transition: var(--transition);
}

.developer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* Анимация появления при скролле */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Ленивая загрузка */
.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy.loaded {
  opacity: 1;
}

/* Уведомления */
#chat-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--error);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}

/* Бейдж для акцента на P2P */
.p2p-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
}

.developers-list {
  display: flex;
  flex-direction: column;
}

/* Стили для релизной версии */
.backlog-item.release-version {
  opacity: 1;
  transform: scale(1.02);
}

.timeline-marker.release {
  background: linear-gradient(135deg, #ff6b35, #ff8e53, #ff6b35);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  animation: pulseRelease 2s infinite;
  width: 70px;
  height: 70px;
}

.timeline-marker.release::before {
  background: #ff6b35;
  opacity: 0.3;
}

@keyframes pulseRelease {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.6);
  }
}

.backlog-content.release-content {
  border: 2px solid rgba(255, 107, 53, 0.3);
  box-shadow: 0 10px 35px rgba(255, 107, 53, 0.2);
}

.backlog-content.release-content::before {
  border-color: rgba(255, 107, 53, 0.3);
}

.status-release {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 142, 83, 0.15)) !important;
  color: #ff6b35 !important;
  border: 2px solid rgba(255, 107, 53, 0.3) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.release-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.version-badge {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Monaco', 'Consolas', monospace;
}

/* Эффекты при наведении для релиза */
.backlog-item.release-version:hover {
  transform: scale(1.05);
}

.backlog-item.release-version:hover .timeline-marker.release {
  animation: pulseReleaseHover 1s infinite;
}

@keyframes pulseReleaseHover {

  0%,
  100% {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.8);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 15px 45px rgba(255, 107, 53, 1);
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Модалное окно*/
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--error);
}

.modal-body {
  padding: 32px;
  text-align: center;
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-body p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-body {
    padding: 24px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .feature-card:hover {
    transform: translateY(-5px);
  }

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

  #chat-notification {
    bottom: 10px;
    left: 5%;
    right: 5%;
    transform: none;
    max-width: 90%;
    margin: 0 auto;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .nav-link {
    display: none;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .backlog-timeline {
    padding: 0 10px;
  }

  .timeline-line {
    left: 30px;
  }

  .backlog-item {
    flex-direction: row !important;
    text-align: left !important;
    gap: 20px;
  }

  .backlog-item:nth-child(odd) .backlog-content::before,
  .backlog-item:nth-child(even) .backlog-content::before {
    left: -10px;
    right: auto;
    border: 1px solid var(--border);
    border-right: none;
    border-bottom: none;
  }

  .timeline-marker {
    min-width: 50px;
    height: 50px;
  }

  .backlog-header {
    flex-direction: column;
    gap: 12px;
  }

  .status-badge {
    align-self: flex-start;
  }

  .backlog-meta {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .progress-container {
    width: 100%;
  }

  .progress-bar {
    flex: 1;
  }

  .important-notice {
    flex-direction: column;
    text-align: center;
  }

  .notice-icon {
    margin: 0 auto;
  }

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

.app-content::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 3px;
}

.app-content::-webkit-scrollbar-track {
  background: var(--bg-light);
}

/* Стили для уведомления о временной недоступности скачивания */
.download-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border: 2px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.download-notice .notice-icon {
  font-size: 2rem;
  min-width: 40px;
  color: var(--warning);
}

.download-notice .notice-content h3 {
  color: var(--warning);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.download-notice .notice-content p {
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.6;
}

/* Стили для неактивных кнопок скачивания */
.disabled-download-btn {
  background: var(--bg-light) !important;
  color: var(--text-lighter) !important;
  cursor: not-allowed !important;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.disabled-download-btn::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .download-notice {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .download-notice .notice-icon {
    margin: 0 auto;
  }
}

.developers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.developer-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.developer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.developer-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  transition: var(--transition);
}

.developer-card:hover .developer-avatar {
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.developer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.developer-links .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .developers-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .developer-card {
    padding: 24px;
  }

  .developer-avatar {
    width: 100px;
    height: 100px;
  }

  .developer-links {
    flex-direction: column;
    gap: 12px;
  }

  .developer-links .btn {
    width: 100%;
  }
}