/* ============ DyNomad — Цифровой Кочевник ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #f2f3f8;
  --bg-secondary: #ffffff;
  --text-primary: #16162a;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a0;

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

  --shadow-dark: #c8c8d0;
  --shadow-light: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --radius: 20px;
  --nav-h: 72px;
}

[data-theme="dark"] {
  --bg-primary: #0d0d1f;
  --bg-secondary: #14142c;
  --text-primary: #f0f0f8;
  --text-secondary: #b8b8d0;
  --text-muted: #7a7a9a;

  --shadow-dark: #08081a;
  --shadow-light: #1d1d3d;

  --glass-bg: rgba(20, 20, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Фон-градиент */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.18) 0px, transparent 45%),
    radial-gradient(at 85% 8%, rgba(139, 92, 246, 0.16) 0px, transparent 45%),
    radial-gradient(at 70% 85%, rgba(6, 182, 212, 0.12) 0px, transparent 45%),
    var(--bg-primary);
  transition: background 0.4s ease;
}

/* Звёзды на фоне */
#bgStars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.6s ease; }
[data-theme="dark"] #bgStars { opacity: 1; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ============ Навигация ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 1.25rem;
}

.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-gradient);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: 0 6px 18px -6px rgba(99, 102, 241, 0.6);
}
.logo-img {
  height: 46px; width: auto; display: block;
  background: #fff; border-radius: 12px; padding: 5px;
  box-shadow: 0 6px 18px -6px rgba(59, 91, 219, 0.55);
}
.logo .tagline { display: block; font-size: 0.62rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-menu { display: flex; gap: 0.4rem; align-items: center; }
.nav-menu a {
  padding: 0.5rem 0.9rem; border-radius: 10px; font-weight: 500; font-size: 0.94rem;
  color: var(--text-secondary); transition: all 0.25s ease;
}
.nav-menu a:hover { color: var(--text-primary); background: rgba(128, 128, 160, 0.12); }
.nav-menu a.active { color: #fff; background: var(--accent-gradient); box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.55); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  background: none; border: 1px solid var(--glass-border); border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  cursor: pointer; color: var(--text-secondary); transition: all 0.3s ease;
}
.theme-toggle:hover { color: var(--accent-primary); transform: rotate(15deg); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.6rem; position: relative; width: 44px; height: 44px; color: var(--text-primary); z-index: 1101; }
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.3s ease, background 0.3s ease;
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; }
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
  padding: 0.85rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: all 0.3s ease; white-space: nowrap;
}
.btn-gradient {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(99, 102, 241, 0.65);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(99, 102, 241, 0.75); }
.btn-glass {
  background: var(--glass-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border); color: var(--text-primary);
}
.btn-glass:hover { transform: translateY(-2px); border-color: var(--accent-primary); }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ============ Стекло / карточки ============ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(10, 10, 40, 0.08);
}
[data-theme="dark"] .glass { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); }

.card {
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.4); box-shadow: 0 22px 44px -14px rgba(30, 30, 90, 0.25); }

/* ============ Типографика ============ */
.text-gradient {
  background: linear-gradient(120deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-primary);
  padding: 0.35rem 0.9rem; border-radius: 50px;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
.lead { color: var(--text-secondary); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-top: 1rem; }

/* ============ Hero ============ */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; }
.hero-inner { display: grid; gap: 3rem; align-items: center; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1.1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px); margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; flex-wrap: wrap; }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.stat .cap { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual { position: relative; min-height: 340px; display: none; }
.orbit-card {
  position: absolute; padding: 1rem 1.3rem; border-radius: 16px;
  display: flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 0.9rem;
  animation: float 6s ease-in-out infinite;
}
.orbit-card .oc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--accent-gradient); color: #fff; flex-shrink: 0; }
.orbit-card small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ Сетки ============ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.1rem; background: var(--accent-gradient); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(99, 102, 241, 0.6);
}
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.5rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-weight: 600; font-size: 0.9rem; color: var(--accent-primary); transition: gap 0.25s ease; }
.card-link:hover { gap: 0.65rem; }

/* Шаги */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.75rem; }
.step-num {
  font-size: 2.6rem; font-weight: 800; opacity: 0.9; line-height: 1;
  background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 0.8rem;
}

/* ============ Чипы / бейджи ============ */
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  background: rgba(99, 102, 241, 0.12); color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.chip.success { background: rgba(16, 185, 129, 0.12); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }
.chip.warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border-color: rgba(245, 158, 11, 0.25); }
.chip.info { background: rgba(6, 182, 212, 0.12); color: var(--accent-tertiary); border-color: rgba(6, 182, 212, 0.25); }
.chip.muted { background: rgba(128, 128, 160, 0.12); color: var(--text-muted); border-color: rgba(128, 128, 160, 0.2); }

/* Фильтры */
.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; }
.filter-btn {
  padding: 0.55rem 1.3rem; border-radius: 50px; font-weight: 600; font-size: 0.88rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.filter-btn:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-gradient); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(99, 102, 241, 0.6); }

/* ============ Прогресс ============ */
.progress { height: 8px; border-radius: 8px; background: rgba(128, 128, 160, 0.18); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 8px; background: var(--accent-gradient); transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }

/* ============ Аватары ============ */
.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 0.95rem; color: #fff; flex-shrink: 0;
  background: var(--accent-gradient);
}
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 36px; height: 36px; font-size: 0.75rem; border: 2px solid var(--bg-secondary); margin-left: -10px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ============ Модальные окна ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5, 5, 20, 0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 2000; padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 2rem; position: relative;
  transform: scale(0.92) translateY(12px); transition: transform 0.3s ease;
  background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--glass-border);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: rgba(128, 128, 160, 0.12);
  border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; color: var(--text-secondary); transition: all 0.25s ease;
}
.modal-close:hover { background: rgba(239, 68, 68, 0.15); color: var(--error); }

/* ============ Формы ============ */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.85rem 1.1rem; border-radius: 12px; font-size: 0.95rem;
  background: var(--bg-primary); color: var(--text-primary);
  border: 1px solid var(--glass-border); transition: all 0.25s ease; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ============ ИИ-помощник ============ */
.ai-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1500;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent-gradient); color: #fff; font-size: 1.6rem;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -8px rgba(99, 102, 241, 0.7);
  transition: transform 0.3s ease;
  animation: aiGlow 3s ease-in-out infinite;
}
.ai-fab:hover { transform: scale(1.08); }
@keyframes aiGlow {
  0%, 100% { box-shadow: 0 14px 34px -8px rgba(99, 102, 241, 0.7); }
  50% { box-shadow: 0 14px 44px -4px rgba(139, 92, 246, 0.85); }
}

.ai-panel {
  position: fixed; bottom: 6.5rem; right: 1.5rem; z-index: 1500;
  width: min(380px, calc(100vw - 2rem)); height: min(540px, 70vh);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.97);
  transition: all 0.3s ease;
  background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 70px -20px rgba(5, 5, 30, 0.5);
}
.ai-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ai-head { padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--glass-border); background: var(--accent-gradient); color: #fff; }
.ai-head .status { font-size: 0.75rem; opacity: 0.85; }
.ai-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ai-msg { max-width: 85%; padding: 0.75rem 1rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: msgIn 0.3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-msg.bot { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.18); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: var(--accent-gradient); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-typing { display: inline-flex; gap: 4px; padding: 0.85rem 1rem; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary); animation: blink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.ai-suggest { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0 1.1rem 0.6rem; }
.ai-suggest button {
  font-size: 0.75rem; padding: 0.35rem 0.75rem; border-radius: 50px; cursor: pointer;
  background: none; border: 1px solid var(--glass-border); color: var(--text-secondary); transition: all 0.25s ease;
}
.ai-suggest button:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.ai-input-row { display: flex; gap: 0.5rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--glass-border); }
.ai-input-row input { flex: 1; padding: 0.7rem 1rem; border-radius: 50px; border: 1px solid var(--glass-border); background: var(--bg-primary); color: var(--text-primary); font-size: 0.9rem; }
.ai-input-row input:focus { outline: none; border-color: var(--accent-primary); }
.ai-send { width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer; background: var(--accent-gradient); color: #fff; font-size: 1rem; flex-shrink: 0; }

/* ============ Звёздная карта ============ */
.starmap-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); background: radial-gradient(ellipse at 50% 40%, #141435 0%, #0a0a20 70%); }
#starmap { display: block; width: 100%; cursor: grab; touch-action: none; }
#starmap:active { cursor: grabbing; }
.starmap-legend {
  position: absolute; left: 1rem; bottom: 1rem; padding: 0.9rem 1.1rem; border-radius: 14px;
  background: rgba(10, 10, 32, 0.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; color: #cfcfe8; display: flex; flex-direction: column; gap: 0.4rem;
}
.starmap-legend .lg { display: flex; align-items: center; gap: 0.5rem; }
.starmap-legend .sw { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.starmap-tip {
  position: absolute; top: 1rem; right: 1rem; padding: 0.5rem 1rem; border-radius: 50px;
  background: rgba(10, 10, 32, 0.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; color: #cfcfe8;
}

/* Профиль в модалке */
.profile-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.skill-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.skill-row .sk-name { flex: 0 0 130px; font-size: 0.85rem; font-weight: 600; }
.skill-row .progress { flex: 1; }
.skill-row .sk-val { flex: 0 0 36px; text-align: right; font-size: 0.8rem; color: var(--text-muted); }

/* ============ Таблицы-списки заказов ============ */
.order-card { display: flex; flex-direction: column; gap: 0.9rem; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.order-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.order-budget { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.order-budget small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--text-muted); text-align: right; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: 1px solid var(--glass-border); }

/* ============ Футер ============ */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--glass-border); margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer h4 { font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 0.25rem 0; transition: color 0.25s ease; }
.footer a:hover { color: var(--accent-primary); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }

/* ============ Анимации появления ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* Тосты */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
  padding: 0.9rem 1.6rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  background: var(--success); color: #fff; z-index: 3000; opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 14px 34px -8px rgba(16, 185, 129, 0.6);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Page hero (внутренние страницы) */
.page-hero { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }

/* ============ Адаптив ============ */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
  .hero-visual { display: block; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: min(320px, 82vw); height: 100vh;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem; gap: 0.4rem;
    background: var(--bg-secondary); border-left: 1px solid var(--glass-border);
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1); z-index: 1100;
    box-shadow: -20px 0 60px rgba(0,0,0,0.25);
  }
  .nav-menu.active { right: 0; }
  .nav-menu a { padding: 0.9rem 1.1rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}
