/* ============================================
   Смайлы Emoji — Сервис подбора эмодзи
   Структура: container, usp-section, tab-btn, emoji-panel, emoji
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Russo+One&display=swap');

:root {
  --bg-primary: #0f0f12;
  --bg-card: #18181c;
  --bg-card-hover: #1e1e24;
  --text-primary: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent-amber: #fbbf24;
  --accent-pink: #ec4899;
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-orange: #fb923c;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 191, 36, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ========== Контейнер ========== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Шапка ========== */
.header {
  padding: 36px 0 32px;
  text-align: center;
}

.header .logo {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-icon {
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.05); }
}

.logo-text {
  background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-pink) 50%, var(--accent-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tagline {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.header-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: var(--bg-card);
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.header-nav-link:hover {
  color: var(--bg-primary);
  background: var(--accent-amber);
  box-shadow: var(--shadow-glow);
}

/* Ссылка на блог и теги в шапке */
.header-extra {
  margin-top: 20px;
}

.header-blog-link {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 14px;
  transition: var(--transition);
}

.header-blog-link:hover {
  color: var(--accent-amber);
  text-decoration: underline;
}

.header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.header-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-amber);
  background: var(--bg-card);
  border: 1px solid var(--accent-amber);
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.header-tag:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange);
}

/* ========== USP-блок ========== */
.usp-section {
  margin-bottom: 48px;
}

.usp-title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
  color: var(--accent-amber);
  letter-spacing: 0.02em;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.usp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  animation: cardFadeIn 0.5s ease backwards;
}

.usp-card:nth-child(1) { animation-delay: 0.05s; }
.usp-card:nth-child(2) { animation-delay: 0.1s; }
.usp-card:nth-child(3) { animation-delay: 0.15s; }
.usp-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.usp-card:hover {
  border-color: rgba(251, 191, 36, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.usp-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  transition: var(--transition-bounce);
}

.usp-card:hover .usp-icon {
  transform: scale(1.2);
}

.usp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.usp-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.usp-summary {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== Секция эмодзи ========== */
.emoji-section {
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-muted);
}

/* Вкладки категорий */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 12px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.tab-btn.active {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

/* Панели с эмодзи */
.category-panels {
  position: relative;
  min-height: 320px;
}

.emoji-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.emoji-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Сетка эмодзи */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 14px;
}

.emoji {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.emoji::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.emoji:hover {
  transform: scale(1.15);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.emoji:hover::after {
  opacity: 1;
}

.emoji.copied {
  animation: copyPop 0.5s ease;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

@keyframes copyPop {
  0% { transform: scale(1.15); }
  30% { transform: scale(1.3); }
  50% { transform: scale(0.92); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1.15); }
}

/* Подсказка */
.copy-hint {
  text-align: center;
  margin: 0 0 12px 0;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Эмодзи для Авито ========== */
.avito-section {
  padding: 48px 0 40px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.03) 50%, transparent 100%);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.avito-section .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.avito-section .section-title .avito-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.avito-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.avito-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.avito-tab-btn {
  padding: 10px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.avito-tab-btn:hover {
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.3);
}

.avito-tab-btn.active {
  color: var(--bg-primary);
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.avito-panel {
  display: none;
}

.avito-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ========== Toast (уведомление о копировании) ========== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========== Комбинатор эмодзи ========== */
.combinator-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.combinator-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.combinator-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.combinator-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.combinator-slot {
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.combinator-slot:hover,
.combinator-slot.filled {
  border-style: solid;
  border-color: var(--accent-amber);
}

.combinator-slot .slot-emoji {
  font-size: 2rem;
  line-height: 1;
}

.combinator-slot .slot-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.combinator-slot.filled .slot-hint {
  display: none;
}

.combinator-plus {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.combinator-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.combinator-btn {
  padding: 12px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.combinator-btn:hover {
  box-shadow: var(--shadow-glow);
}

.combinator-btn-reset {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

.combinator-btn-reset:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  box-shadow: none;
}

/* ========== Комбинатор — chooser ========== */
.combinator-chooser {
  margin-bottom: 28px;
}

.chooser-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.chooser-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.quick-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.quick-emoji:hover {
  transform: scale(1.15);
  border-color: var(--accent-amber);
}

.chooser-more-wrap {
  text-align: center;
  margin-top: 16px;
}

.combinator-btn-more {
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-amber);
  background: transparent;
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.combinator-btn-more:hover {
  background: rgba(245, 158, 11, 0.1);
}

.combinator-btn-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.combinator-results .results-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.combinator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.combinator-grid .emoji {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 2rem;
  line-height: 1.2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  overflow: visible;
  white-space: nowrap;
}

.combinator-grid .emoji:hover {
  transform: scale(1.1);
  border-color: var(--accent-amber);
}

.combinator-grid .emoji.copied {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}

/* ========== Генератор эмодзи-артов ========== */
.art-generator-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.art-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.art-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.art-control-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.art-emoji-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.art-pick {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.art-pick:hover,
.art-pick.active {
  border-color: var(--accent-amber);
  background: var(--bg-card-hover);
}

.art-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.art-template-btn {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.art-template-btn:hover,
.art-template-btn.active {
  border-color: var(--accent-pink);
  background: var(--bg-card-hover);
}

.art-output {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.art-preview {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 1.4rem;
  line-height: 1.5;
  white-space: pre;
  margin: 0 0 12px;
  min-height: 80px;
  cursor: pointer;
  user-select: none;
}

.art-preview:not(.empty):hover {
  opacity: 0.9;
}

.art-preview.empty {
  color: var(--text-muted);
  font-style: italic;
  cursor: default;
}

.art-copy-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== Конструктор кастомных эмодзи ========== */
.constructor-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.constructor-section .section-title {
  margin-bottom: 28px;
}

.constructor-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .constructor-layout {
    grid-template-columns: 340px 1fr;
  }
}

.constructor-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.constructor-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.constructor-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.constructor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.constructor-opt {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.constructor-opt:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.constructor-opt.active {
  color: var(--bg-primary);
  background: var(--accent-amber);
  border-color: var(--accent-amber);
}

.constructor-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.constructor-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.presets-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.preset-btn {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.preset-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--accent-cyan);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ctrl-select {
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.ctrl-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.constructor-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-download,
.btn-save {
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-download {
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  border: none;
}

.btn-download:hover {
  box-shadow: var(--shadow-glow);
}

.btn-save {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.btn-save:hover {
  background: rgba(34, 211, 238, 0.25);
  border-color: var(--accent-cyan);
}

.constructor-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.constructor-preview canvas {
  display: block;
  border-radius: 8px;
}

.preview-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.constructor-cabinet {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.cabinet-title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}

.cabinet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cabinet-thumb {
  border-radius: 8px;
}

.cabinet-actions {
  display: flex;
  gap: 6px;
}

.cabinet-load,
.cabinet-delete {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.cabinet-load {
  color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.cabinet-delete {
  color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.cabinet-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px;
}

.constructor-preview-wrap {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.constructor-canvas-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.constructor-canvas-wrap canvas {
  display: block;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.constructor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.constructor-btn {
  padding: 12px 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.constructor-btn:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.constructor-btn.secondary {
  color: var(--accent-amber);
  background: var(--bg-card);
  border: 1px solid var(--accent-amber);
}

.constructor-btn.secondary:hover {
  background: rgba(251, 191, 36, 0.1);
}

.constructor-saved {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.constructor-saved h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.constructor-saved-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.constructor-saved-item {
  position: relative;
  width: 64px;
  height: 64px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.constructor-saved-item:hover {
  border-color: var(--accent-amber);
  transform: scale(1.05);
}

.constructor-saved-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-primary);
}

.constructor-saved-item .remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constructor-saved-item .remove-btn:hover {
  background: #dc2626;
}

.constructor-text-input {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.constructor-text-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .constructor-layout {
    grid-template-columns: 1fr;
  }

  .constructor-preview-wrap {
    order: -1;
    position: static;
  }
}

/* ========== Значение эмодзи ========== */
.emoji-meanings-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.meanings-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.meanings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.meanings-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.meanings-card:hover {
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-glow);
}

.meanings-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 12px;
}

.meanings-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  text-align: center;
}

.meanings-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.meanings-category {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-top: 28px;
  margin-bottom: 14px;
}

.meanings-category:first-of-type {
  margin-top: 0;
}

.meanings-compact {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
}

.meanings-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.meanings-link:hover {
  border-color: var(--accent-amber);
  transform: scale(1.08);
}

.logo-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.emoji-page .emoji-big {
  font-size: 5rem;
  line-height: 1;
  text-align: center;
  margin: 24px 0;
}

/* ========== Теги (мини-кнопки) ========== */
.tags-section {
  padding: 40px 0 48px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.tag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-amber);
  background: var(--bg-card);
  border: 1px solid var(--accent-amber);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}

.tag-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange), var(--shadow-glow);
}

/* ========== SEO-статья ========== */
.article-section {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
}

.article-section .container {
  max-width: 720px;
}

.article-section h1 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.article-section h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--accent-amber);
}

.article-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-section p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-section ul {
  margin: 16px 0;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-section li {
  margin-bottom: 8px;
}

.article-section strong {
  color: var(--text-primary);
}

.article-section .emoji-inline {
  font-size: 1.1em;
}

/* ========== SEO-статья ========== */
.seo-article {
  padding: 48px 0 56px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}

.seo-article .container {
  max-width: 720px;
}

.article-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.3;
}

.seo-article p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.seo-article h2 {
  font-family: 'Russo One', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-amber);
  margin-top: 36px;
  margin-bottom: 16px;
}

.seo-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.seo-article ul {
  margin: 12px 0 20px;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.seo-article li {
  margin-bottom: 6px;
}

.seo-article code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
}

.seo-article strong {
  color: var(--text-primary);
}

/* ========== Футер ========== */
.footer {
  padding: 40px 0 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer p,
.footer .footer-main {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 20px;
}

.footer-tags a {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

.footer-tags a:hover {
  color: var(--accent-amber);
}

/* ========== Таблица эмодзи ========== */
.emoji-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.emoji-table {
  width: 100%;
  border-collapse: collapse;
}

.emoji-table th,
.emoji-table td {
  padding: 12px 16px;
  border: 1px solid var(--border, #e5e7eb);
}

.emoji-table th {
  background: var(--bg-elevated, #f3f4f6);
}

.emoji-table .emoji-cell {
  font-size: 1.8rem;
  text-align: center;
}

.emoji-table .html-cell {
  font-family: monospace;
  font-size: 0.85rem;
}

/* Страницы «Что означает» */
.logo-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.emoji-page .emoji-big {
  font-size: 5rem;
  line-height: 1;
  margin: 20px 0;
  display: block;
}

.footer-main {
  margin-bottom: 20px;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.footer-tags a {
  color: var(--accent-amber);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-tags a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.logo-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.emoji-big {
  font-size: 5rem;
  line-height: 1;
  margin: 24px 0 16px;
  text-align: center;
}

.emoji-page .container {
  max-width: 720px;
}

/* ========== Таблица эмодзи ========== */
.emoji-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.emoji-table {
  width: 100%;
  border-collapse: collapse;
}

.emoji-table th,
.emoji-table td {
  padding: 12px 16px;
  border: 1px solid var(--border, #e5e7eb);
}

.emoji-table th {
  background: var(--bg-elevated, #f3f4f6);
}

.emoji-table .emoji-cell {
  font-size: 1.8rem;
  text-align: center;
}

.emoji-table .html-cell {
  font-family: monospace;
  font-size: 0.85rem;
}

/* ========== Адаптив ========== */
@media (max-width: 640px) {
  .header {
    padding: 28px 0 24px;
  }

  .usp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .usp-card {
    padding: 20px;
  }

  .category-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: 12px;
  }

  .emoji {
    font-size: 2rem;
  }

  .tags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tag-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .constructor-layout {
    grid-template-columns: 1fr;
  }

  .constructor-presets {
    flex-direction: column;
    align-items: flex-start;
  }

  .constructor-actions {
    flex-direction: column;
  }

  .constructor-preview {
    padding: 16px;
  }

  .constructor-preview canvas {
    max-width: 100%;
    height: auto;
  }

  .cabinet-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
