@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Max.ru inspired palette — clean light theme with blue accent */
  --primary: #0077FF;
  --primary-dark: #0060D6;
  --primary-light: #338FFF;
  --primary-bg: #EBF3FF;
  --accent: #00C896;
  --accent-dark: #00A87D;
  --accent-bg: #E6FAF4;
  --violet: #7B61FF;
  --violet-bg: #F0ECFF;
  --orange: #FF8C00;
  --orange-bg: #FFF3E0;
  --red: #FF3B5C;
  --red-bg: #FFECF0;

  --bg: #FFFFFF;
  --bg-secondary: #F6F7F9;
  --bg-tertiary: #EEF0F4;
  --surface: #FFFFFF;

  --text: #1A1A2E;
  --text-secondary: #5A5D6B;
  --text-tertiary: #8E91A0;
  --text-inverse: #FFFFFF;

  --border: #E4E6EB;
  --border-light: #F0F1F4;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-full: 100px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  transition: var(--transition);
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
  font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,119,255,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0,119,255,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,200,150,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }

/* ========== HERO ========== */
.hero {
  padding: 140px 32px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(0,119,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-bg);
  border: 1px solid rgba(0,119,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
}

/* ========== SECTIONS ========== */
.section {
  padding: 96px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== FEATURE CARDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  cursor: default;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-icon.blue { background: var(--primary-bg); }
.feature-icon.teal { background: var(--accent-bg); }
.feature-icon.violet { background: var(--violet-bg); }
.feature-icon.orange { background: var(--orange-bg); }
.feature-icon.red { background: var(--red-bg); }
.feature-icon.green { background: #E6F9EE; }

.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ========== MARKETPLACE FILTERS ========== */
.marketplace-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-bg);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== BOT CARDS ========== */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.bot-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bot-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0,119,255,0.1);
  transform: translateY(-4px);
}

.bot-card-header {
  padding: 28px 24px 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.bot-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.bot-info { flex: 1; }
.bot-info h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }

.bot-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cat-business { background: var(--primary-bg); color: var(--primary); }
.cat-support { background: var(--accent-bg); color: var(--accent-dark); }
.cat-marketing { background: var(--violet-bg); color: var(--violet); }
.cat-utility { background: var(--orange-bg); color: var(--orange); }
.cat-education { background: var(--orange-bg); color: var(--orange); }
.cat-entertainment { background: #E6F9EE; color: #00A854; }

.bot-card-body {
  padding: 0 24px;
  flex: 1;
}

.bot-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.bot-card-footer {
  padding: 18px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.bot-price { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.bot-price.free { color: var(--accent); }
.bot-price .period { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 400; }

.bot-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #FFB800;
  font-size: 0.82rem;
}
.bot-rating span { color: var(--text-tertiary); margin-left: 4px; font-weight: 500; }

/* ========== BOT DETAIL PAGE ========== */
.bot-detail-hero {
  padding: 120px 32px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.bot-detail-top {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bot-detail-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.bot-detail-info { flex: 1; min-width: 280px; }
.bot-detail-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.bot-detail-info .tagline { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 16px; }

.bot-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bot-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}
.bot-meta-item strong { color: var(--text); }

.bot-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bot-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 96px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.bot-description h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  margin-top: 36px;
  color: var(--text);
}
.bot-description h2:first-child { margin-top: 0; }

.bot-description p, .bot-description li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.bot-description ul { padding-left: 0; }
.bot-description li {
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
}
.bot-description li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.bot-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  position: sticky;
  top: 88px;
}

.bot-sidebar-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.sidebar-stat:last-of-type { border-bottom: none; }
.sidebar-stat .label { color: var(--text-tertiary); }
.sidebar-stat .value { font-weight: 600; color: var(--text); }

.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 500;
}

/* ========== LOGIN / REGISTER PAGE ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 60px;
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 60%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.4s ease both;
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text);
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.92rem;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(0,119,255,0.1);
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-input.error { border-color: var(--red); }
.form-input.success { border-color: var(--accent); }

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-error.show { display: block; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.86rem;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 400;
}

.form-row a { color: var(--primary); font-weight: 500; }
.form-row a:hover { text-decoration: underline; }

.login-card .btn { width: 100%; justify-content: center; }

.login-divider {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  margin: 22px 0;
  position: relative;
}
.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

.login-footer {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 22px;
}
.login-footer a { color: var(--primary); font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

/* ========== SUCCESS MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.3s ease both;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.4s ease 0.1s both;
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  animation: successPop 0.5s ease 0.3s both;
}

.modal h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.modal p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 28px; }
.modal .btn { min-width: 180px; }

/* ========== ABOUT PAGE ========== */
.about-hero {
  padding: 150px 32px 70px;
  text-align: center;
  background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* TIMELINE */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item .date {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.timeline-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.team-card .role { color: var(--primary); font-size: 0.82rem; font-weight: 600; }
.team-card p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 8px; }

/* ========== STEPS (How it works) ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 14px;
}

.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.pricing-card .price { font-size: 2.6rem; font-weight: 900; margin: 14px 0; color: var(--text); }
.pricing-card .price .currency { font-size: 1.1rem; vertical-align: super; }
.pricing-card .price .period { font-size: 0.85rem; color: var(--text-tertiary); font-weight: 400; }

.pricing-features { margin: 20px 0; text-align: left; }
.pricing-features li {
  padding: 7px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 1rem; }

/* ========== CTA ========== */
.cta-section {
  text-align: center;
  padding: 48px 32px 96px;
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), #5B4AFF);
  border-radius: 24px;
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p { opacity: 0.9; margin-bottom: 28px; font-size: 1rem; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 32px 36px;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 10px; max-width: 280px; line-height: 1.6; }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.88rem; padding: 3px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ========== MOBILE MENU ========== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.nav.show {
  display: flex !important;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--text);
  color: var(--text-inverse);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== LOADING SPINNER ========== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

.btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.loading .btn-text { opacity: 0; }
.btn.loading .spinner-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== COUNTER ANIMATION ========== */
.counter { display: inline-block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .bot-detail-content { grid-template-columns: 1fr; }
  .bot-sidebar-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 1.6rem; }
  .bots-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .bot-detail-top { flex-direction: column; align-items: center; text-align: center; }
  .bot-meta { justify-content: center; }
  .bot-detail-actions { justify-content: center; }
  .login-card { padding: 32px 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .header-actions .btn-primary { display: none; }
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 1.4rem; }
  .section { padding: 64px 20px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .hero { padding: 120px 16px 60px; }
}
