/* ============ Переменные и база ============ */
:root {
  --bg: #faf6f0;          /* тёплый крем */
  --bg-soft: #f3ece2;
  --ink: #2b2330;         /* глубокий сливовый */
  --ink-soft: #5d5466;
  --primary: #7c3aed;     /* фиолетовый */
  --primary-dark: #5b21b6;
  --accent: #ff8a5c;      /* персиковый */
  --accent-soft: #ffe3d6;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 20px 50px -20px rgba(43, 35, 48, 0.25);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

section { padding: 96px 0; }

/* ============ Шапка ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 35, 48, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.6);
}

.logo-dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:not(.nav-cta) { transition: color 0.2s; }
.nav a:not(.nav-cta):hover { color: var(--primary); }

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--primary); transform: translateY(-1px); }

/* ============ Герой ============ */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(255, 138, 92, 0.14), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.accent {
  color: var(--primary);
  position: relative;
  white-space: nowrap;
}

.accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 12px;
  background: var(--accent-soft);
  border-radius: 6px;
  z-index: -1;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(124, 58, 237, 0.7);
}

.btn-primary:hover { box-shadow: 0 18px 36px -12px rgba(124, 58, 237, 0.8); }

.btn-ghost {
  border-color: rgba(43, 35, 48, 0.18);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero-points li::before {
  content: "✦";
  color: var(--accent);
  font-size: 0.85rem;
}

/* Визуал героя */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.card-hand {
  position: relative;
  z-index: 2;
  width: min(300px, 80%);
  aspect-ratio: 1;
  background: linear-gradient(150deg, var(--card), #f1e8ff);
  border-radius: 48px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.12);
  animation: float 6s ease-in-out infinite;
}

.hand-icon { font-size: 5rem; line-height: 1; }

.hand-caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  padding: 0 20px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(124, 58, 237, 0.25);
}

.orbit-1 { width: 380px; height: 380px; animation: spin 40s linear infinite; }
.orbit-2 { width: 300px; height: 300px; border-color: rgba(255, 138, 92, 0.35); animation: spin 30s linear infinite reverse; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.float-note {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid rgba(43, 35, 48, 0.08);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px -12px rgba(43, 35, 48, 0.3);
}

.note-1 { top: 8%; left: 4%; animation: float 5s ease-in-out infinite; }
.note-2 { top: 16%; right: 2%; animation: float 7s ease-in-out 0.8s infinite; }
.note-3 { bottom: 10%; left: 10%; animation: float 6s ease-in-out 1.4s infinite; }

/* ============ Обо мне ============ */
.about { background: var(--bg-soft); }

.about-grid { max-width: 880px; }

.about-card { background: var(--card); border-radius: var(--radius); padding: 56px; box-shadow: var(--shadow); }

.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-tag.center { display: table; margin-left: auto; margin-right: auto; }

.section-tag.light { color: var(--accent); background: rgba(255, 138, 92, 0.15); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.section-title.center { text-align: center; }

.section-title.light { color: #fff; }

.about-text { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 18px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: var(--bg);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* ============ Рубрики ============ */
.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.rubric-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid rgba(43, 35, 48, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.rubric-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.rubric-emoji {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.rubric-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.rubric-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============ Для кого ============ */
.forwhom { background: var(--bg-soft); }

.forwhom-list {
  max-width: 680px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fw-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px -16px rgba(43, 35, 48, 0.3);
  transition: transform 0.2s;
}

.fw-item:hover { transform: translateX(6px); }

.fw-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 2px;
}

.fw-item p { font-weight: 600; font-size: 1rem; }

/* ============ CTA ============ */
.contact {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255, 138, 92, 0.25), transparent 60%),
    linear-gradient(135deg, #3b2a52, #221a33);
  padding: 110px 0;
}

.contact-card { text-align: center; max-width: 720px; margin: 0 auto; }

.contact-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-light {
  background: var(--accent);
  color: #2b2330;
}

.btn-light:hover { background: #ff9c75; box-shadow: 0 16px 32px -12px rgba(255, 138, 92, 0.7); }

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ============ Подвал ============ */
.footer { padding: 36px 0; background: #1d1628; }

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer .logo-text, .footer .logo-dot { color: #fff; }

.footer-note { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; }

/* ============ Появление при скролле ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 360px; }
  .about-card { padding: 40px 28px; }
  .rubrics-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .float-note { font-size: 0.8rem; }
  .contact { padding: 80px 0; }
}
