/* ============================================================
   агент.site — лендинг
   Палитра: пастельный мят→голубой + зелёный акцент
   3D-сцена на весь экран, текстовые блоки плавают сбоку
   ============================================================ */

:root {
  --bg-top: #d8eee2;
  --bg-bot: #b8d4e8;
  --bg-soft: #c8e0d6;

  --green: #4a8f6b;
  --green-hover: #3d7a5a;
  --green-light: #7abf95;

  --blue: #7aa8d6;
  --blue-soft: #a8c8e0;

  --violet: #b8b0d6;

  --ink: #1e2a2a;
  --ink-soft: #3a4a48;
  --muted: #5a6a64;
  --hairline: rgba(30, 42, 42, 0.08);

  --card-bg: rgba(255, 255, 255, 0.78);
  --card-bg-solid: #ffffff;
  --card-shadow: 0 14px 40px -16px rgba(60, 90, 80, 0.22), 0 2px 6px rgba(60, 90, 80, 0.06);
  --card-shadow-hover: 0 22px 60px -18px rgba(60, 90, 80, 0.32), 0 4px 10px rgba(60, 90, 80, 0.08);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--ink-soft);
  --cta-border-color: rgba(30, 42, 42, 0.18);
  --cta-hover-text: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(184, 176, 214, 0.35) 0%, transparent 60%),
    radial-gradient(70% 60% at 0% 30%, rgba(122, 191, 149, 0.25) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bot) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   3D scene canvas — fixed background
   ============================================================ */
#root {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}
#root canvas { display: block; }

/* ============================================================
   Top nav
   ============================================================ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(220, 234, 226, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-dot { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  padding: 0;
}
.theme-toggle.night { background: rgba(255, 255, 255, 0.12); }
.theme-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--card-bg-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.theme-toggle.night .theme-knob {
  transform: translateX(24px);
  background: #1a2030;
}

.nav-cta {
  background: var(--green);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--green-hover); transform: translateY(-1px); }

/* ============================================================
   Layout — main is a transparent overlay over the 3D scene
   ============================================================ */
main {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.scene-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 6vw 60px;
}
.scene-section.align-left  { justify-content: flex-start; }
.scene-section.align-right { justify-content: flex-end;   }

.scene-text {
  pointer-events: auto;
  max-width: 460px;
  /* без плашки — текст лежит прямо на сцене */
}
.scene-text h1,
.scene-text h2,
.scene-text h3 {
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.7),
    0 0 22px rgba(255, 255, 255, 0.55);
}
.scene-text p,
.scene-list li {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.align-right .scene-text { text-align: right; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

h1, h2, h3 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.0vw, 38px); line-height: 1.15; }
p  { margin: 0 0 16px; color: var(--text-muted); font-size: 16px; line-height: 1.55; }

.hl {
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scene-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  counter-reset: step;
}
.scene-list li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 38px;
  font-size: 16px;
  color: var(--text-muted);
}
.scene-list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(74, 143, 107, 0.5);
}
.align-right .scene-list li {
  padding: 10px 38px 10px 0;
}
.align-right .scene-list li::before {
  left: auto; right: 0;
}

.tariff-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 4px 0 10px;
}
.muted { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; }

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.align-right .cta-actions { justify-content: flex-end; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.22s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(74, 143, 107, 0.5);
}
.btn-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(74, 143, 107, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--cta-border-color);
}
.btn-ghost:hover {
  background: var(--text-primary);
  color: var(--cta-hover-text);
  border-color: var(--text-primary);
}

/* ============================================================
   Footer (минималистичный, поверх сцены)
   ============================================================ */
.footer-min {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  text-align: center;
  padding: 24px 16px 28px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(220, 234, 226, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .top-nav { padding: 12px 18px; }
  .scene-section {
    padding: 90px 5vw 40px;
    justify-content: center !important;
  }
  .scene-text {
    max-width: 100%;
    padding: 28px 24px;
    text-align: left;
  }
  .align-right .scene-text { text-align: left; }
  .align-right .scene-list li {
    padding: 10px 0 10px 38px;
  }
  .align-right .scene-list li::before { left: 0; right: auto; }
  .align-right .cta-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
