/* Shared styles of the Magic Artist site, matching the app's visual style. */

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

:root {
  --title: #4a3b8c;
  --accent: #a78bfa;
  --accent-pink: #ff8fb1;
  --text: #2c2640;
  --muted: #6a6a7c;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #a8e6ff 0%, #ffd6e8 50%, #fff3b0 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

.page { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }

/* ----- Header ----- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--title);
  text-decoration: none;
}
.lang-switch button {
  border: 2px solid #fff;
  background: rgba(255, 255, 255, .6);
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 700;
  color: var(--title);
  cursor: pointer;
}
.lang-switch button.active {
  background: #fff;
  border-color: var(--accent);
}

/* ----- Cards / sections ----- */
.card {
  background: rgba(255, 255, 255, .88);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

h1 { color: var(--title); font-size: 2rem; margin-bottom: 10px; }
h2 { color: var(--title); font-size: 1.25rem; margin: 22px 0 10px; }
h2:first-child { margin-top: 0; }
p, li { color: var(--text); }
ul { padding-left: 22px; margin: 8px 0; }
.muted { color: var(--muted); font-size: .9rem; }

/* ----- Hero ----- */
.hero { text-align: center; }
.hero .icon { font-size: 4rem; }
.tagline { font-size: 1.1rem; color: var(--muted); margin-bottom: 18px; }

.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 14px;
  background: #1b1b26;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.badge:hover { opacity: .85; }

/* ----- Steps ----- */
.steps { display: flex; gap: 16px; flex-wrap: wrap; }
.step {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, .7);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.step .emoji { font-size: 2.2rem; }
.step b { color: var(--title); display: block; margin: 8px 0 4px; }

/* ----- Pricing ----- */
.price-line {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent));
  color: #fff;
  font-weight: 800;
  border-radius: 14px;
  padding: 10px 20px;
  margin-top: 8px;
}

/* ----- Footer ----- */
footer { text-align: center; color: var(--muted); font-size: .9rem; }
footer a { color: var(--title); }

/* ----- Language visibility ----- */
/* Elements are tagged with .l-ru / .l-en; body carries lang-ru / lang-en.
   Only the inactive language is hidden, so elements keep their styled
   display value; !important wins over rules like `.step b`. */
body.lang-ru .l-en { display: none !important; }
body.lang-en .l-ru { display: none !important; }
