/* instruction.css */

:root {
  --primary: #007bff;
  --accent: #005bb5;
  --bg-page: #eef4f8;
  --bg-card: #ffffff;
  --highlight: #e0f0ff;
}

body {
  background: var(--bg-page);
}

.instruction-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 20px 40px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.instruction-container h1 {
  text-align: center;
  font-size: 2.6em;
  margin-bottom: 60px;
  color: var(--primary);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ----------------------------------------------------------------
   Блок шага: grid для чёткого выравнивания
   ---------------------------------------------------------------- */
.step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 30px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  padding: 30px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step.reverse {
  direction: rtl;
}
.step.reverse > * {
  direction: ltr;
}
.step.last {
  margin-bottom: 20px;
}

.step-text h2 {
  font-size: 1.7em;
  margin-bottom: 15px;
  color: var(--accent);
}
.step-text p,
.step-text ol {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.step-text ol {
  padding-left: 20px;
}

.step-media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.step-media img:hover {
  transform: scale(1.04);
}

/* Акценты внутри текста */
.highlight {
  background: var(--highlight);
  padding: 2px 6px;
  border-radius: 4px;
}
.blue-text {
  color: var(--primary);
}

/* ----------------------------------------------------------------
   Адаптив
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  .instruction-container {
    padding-top: 160px;
  }
  .instruction-container h1 {
    font-size: 2.2em;
    margin-bottom: 40px;
  }
  .step {
    padding: 20px;
  }
  .step-text h2 {
    font-size: 1.4em;
  }
}