/* ===== ПОЛНОСТЬЮ ПЕРЕПИСАННЫЙ CSS С НОРМАЛЬНОЙ КОНТРАСТНОСТЬЮ ===== */

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

/* ===== СВЕТЛАЯ ТЕМА (по умолчанию) ===== */
:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --text: #000000;
  --text-secondary: #666666;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  
  /* Зеленые акценты */
  --green: #0c8c1a;
  --green-hover: #0a7517;
  --green-light: rgba(12, 140, 26, 0.1);
  
  /* Размеры */
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  
  --font-sm: 12px;
  --font-base: 14px;
  --font-lg: 16px;
  --font-xl: 18px;
  --font-2xl: 20px;
  --font-3xl: 24px;
  --font-4xl: 30px;
  
  --radius: 8px;
  --radius-lg: 12px;
}

/* ===== ТЕМНАЯ ТЕМА ===== */
[data-color-scheme="dark"] {
  --bg: #000000;
  --surface: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --border: rgba(255, 255, 255, 0.2);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.7);
  
  --green: #12d932;
  --green-hover: #0fc429;
  --green-light: rgba(18, 217, 50, 0.15);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text);
  margin-bottom: var(--space-lg);
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--green-hover);
}

/* ===== КОНТЕЙНЕР ПРЕЗЕНТАЦИИ ===== */
.presentation-container {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  overflow: hidden;
}

/* ===== НАВИГАЦИЯ ===== */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-3xl);
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-btn {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 100px;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background-color: var(--green);
  color: white;
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn--next {
  flex-direction: row-reverse;
}

.slide-indicator {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-sm);
  font-weight: 600;
}

.theme-toggle {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--green);
  color: white;
  border-color: var(--green);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== СЛАЙДЫ ===== */
.slides-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-2xl);
  background-color: var(--bg);
  z-index: 1;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.slide-content {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.slide-content--center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide-title {
  font-size: var(--font-4xl);
  color: var(--text);
  font-weight: 700;
  margin-bottom: var(--space-3xl);
  text-align: center;
}

/* ===== ПЕРВЫЙ СЛАЙД ===== */
.company-name {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.tagline {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-3xl);
  font-weight: 500;
}

.main-title {
  font-size: var(--font-3xl);
  color: var(--text);
  margin-bottom: var(--space-3xl);
  font-weight: 600;
}

.platforms p {
  font-size: var(--font-lg);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.platform-tags {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.platform-tag {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.platform-tag:hover {
  background-color: var(--green);
  color: white;
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.platform-tag--others {
  background-color: var(--green);
  color: white;
  border-color: var(--green);
  font-weight: 600;
}

.platform-tag--others:hover {
  background-color: var(--green-hover);
  border-color: var(--green-hover);
}

/* ===== КАРТОЧКИ ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.advantage-card {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.advantage-icon {
  font-size: var(--font-4xl);
  color: var(--green);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.advantage-card h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-size: var(--font-lg);
}

.advantage-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== УСЛОВИЯ ЗАЙМА ===== */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.condition-card {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.condition-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.condition-value {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.condition-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== ШАГИ ===== */
.steps-container {
  display: grid;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.step-card {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.step-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: var(--font-sm);
}

/* ===== СТАТУСЫ ===== */
.statuses-container {
  display: grid;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.status-card {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.status-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.status-icon {
  flex-shrink: 0;
}

.status-info {
  flex: 1;
}

.status-name {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.status-description {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ===== ВОРКФЛОУ ===== */
.workflow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
  justify-content: center;
}

.workflow-step {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.workflow-step:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.workflow-number {
  width: 40px;
  height: 40px;
  background-color: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.workflow-content h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.workflow-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: var(--font-sm);
}

.workflow-arrow {
  font-size: var(--font-2xl);
  color: var(--green);
  animation: bounce 2s infinite;
  margin: var(--space-sm) 0;
}

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

/* ===== КОНТАКТНЫЙ СЛАЙД ===== */
.contact-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.services-info {
  margin: var(--space-2xl) 0;
  display: grid;
  gap: var(--space-xl);
  max-width: 600px;
  width: 100%;
}

.service-item {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.service-item h4 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.service-item p {
  color: var(--text-secondary);
  margin: 0;
}

.website-info {
  margin: var(--space-2xl) 0;
}

.website-label {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.website-url {
  font-size: var(--font-3xl);
  color: var(--text);
  font-weight: 700;
  margin-bottom: var(--space-3xl);
}

.cta-button {
  background-color: var(--green);
  color: white !important;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--font-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-2xl);
}

.cta-button:hover {
  background-color: var(--green-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== АДAPTИВНОСТЬ ===== */
@media (max-width: 768px) {
  .company-name { font-size: 2.5rem; }
  .slide-title { font-size: var(--font-3xl); }
  .navigation { padding: var(--space-md) var(--space-lg); }
  .slide { padding: var(--space-md) var(--space-lg); }
  .advantages-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; max-width: 400px; }
  .step-card, .workflow-step { flex-direction: column; text-align: center; gap: var(--space-md); }
  .platform-tags { flex-direction: column; align-items: center; }
  .status-card { flex-direction: column; text-align: center; gap: var(--space-md); }
}

@media (max-width: 480px) {
  .company-name { font-size: 2rem; }
  .slide-title { font-size: var(--font-2xl); }
  .navigation { padding: var(--space-sm) var(--space-md); flex-direction: column; gap: var(--space-sm); }
  .nav-btn { min-width: 80px; font-size: var(--font-sm); }
  .slide { padding: var(--space-sm) var(--space-md); }
  .condition-card, .status-card { padding: var(--space-md); min-height: 80px; }
  .condition-value { font-size: var(--font-xl); }
  .platform-tags { gap: var(--space-sm); }
  .platform-tag { padding: var(--space-sm) var(--space-md); font-size: var(--font-sm); }
  .cta-button { font-size: var(--font-lg); padding: var(--space-md) var(--space-2xl); }
  .website-url { font-size: var(--font-2xl); }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.slide.active * {
  pointer-events: auto;
}

.slides-container {
  pointer-events: none;
}

.slide.active,
.slide.active * {
  pointer-events: auto;
}
