/* guest.plat-forma.team — собственный дизайн гостевого проекта.
   Не пересекается с оформлением plat-forma.team. */

:root {
  --ink: #14161f;
  --ink-2: #3a3f52;
  --muted: #6f7488;
  --paper: #f7f5f2;
  --card: #ffffff;
  --line: #e6e2db;
  --accent: #6d28d9;
  --accent-2: #a855f7;
  --dark: #101533;
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }

/* ---------- шапка ---------- */
header.site {
  background: var(--dark);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
header.site .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 70px; flex-wrap: wrap;
}
.logo {
  color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em;
}
.logo span { color: var(--accent-2); }
nav.main { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav.main a { color: rgba(255, 255, 255, .78); font-size: .93rem; }
nav.main a:hover { color: #fff; }

/* ---------- герой ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 12% -30%, rgba(168, 85, 247, .35), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(109, 40, 217, .45), transparent 55%),
    linear-gradient(160deg, #101533, #171a3d 60%, #101533);
  color: #fff;
  padding: 72px 0 64px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.12;
  max-width: 20ch;
}
.hero .lead {
  margin: 0;
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero .badge i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); display: block;
}

/* ---------- секции ---------- */
main { padding: 56px 0 72px; }
section + section { margin-top: 56px; }

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}
.section-note { color: var(--muted); font-size: .95rem; margin: 0 0 22px; max-width: 65ch; }

.short {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-top: 34px;
  box-shadow: 0 1px 2px rgba(20, 22, 31, .04);
}
.short h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.short ul { margin: 0; padding-left: 20px; }
.short li { margin: 8px 0; color: var(--ink-2); }

/* ---------- карточки ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: 0 1px 2px rgba(20, 22, 31, .04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(20, 22, 31, .09); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.card p { margin: 0 0 6px; color: var(--ink-2); font-size: .95rem; }
.meta { color: var(--muted); font-size: .85rem; }

/* ---------- шаги ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 22px 20px 64px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff; font-size: .9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- список ограничений ---------- */
.rules { margin: 18px 0 0; padding: 0; list-style: none; }
.rules li {
  position: relative; padding-left: 28px; margin: 10px 0;
  color: var(--ink-2);
}
.rules li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent-2);
}

/* ---------- подвал ---------- */
footer.site {
  background: var(--dark);
  color: rgba(255, 255, 255, .72);
  padding: 42px 0 26px;
  font-size: .92rem;
}
footer.site h3 {
  color: #fff; font-size: .95rem; margin: 0 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
footer.site a { color: rgba(255, 255, 255, .82); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 6px 0; }
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
footer.site .fine {
  margin-top: 28px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5); font-size: .82rem;
}

@media (max-width: 640px) {
  .hero { padding: 52px 0 46px; }
  .short { padding: 20px; }
  nav.main { gap: 14px; }
}

/* кнопка входа в админку */
nav.main a.login-btn {
  margin-left: 6px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 99px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
nav.main a.login-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .8);
  text-decoration: none;
}
@media (max-width: 640px) {
  nav.main a.login-btn { margin-left: 0; }
}