/* === Тема: белый фон + морковные акценты === */
:root {
  --white: #ffffff;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --carrot: #e85d04;
  --carrot-light: #f48c06;
  --carrot-dark: #dc2f02;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #eee;
  --shadow: 0 4px 20px rgba(232, 93, 4, 0.08);
  --shadow-hover: 0 8px 30px rgba(232, 93, 4, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Тёмная тема — один фон для страницы и всех блоков */
body.theme-dark {
  --white: #121212;
  --bg: #121212;
  --bg-card: #121212;
  --text: #e8e8e8;
  --text-muted: #a0a0a0;
  --border: #333;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}
body.theme-dark::before {
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.08) 0%, transparent 100%);
}
body.theme-dark .header {
  background: var(--bg);
  border-bottom-color: var(--border);
}
body.theme-dark .nav a { color: var(--text); }
body.theme-dark .form-card,
body.theme-dark .table-wrap,
body.theme-dark .stat-card,
body.theme-dark .product-card,
body.theme-dark .benefit-card,
body.theme-dark .how-step,
body.theme-dark .faq-item,
body.theme-dark .empty-state-block,
body.theme-dark .about-strip-inner {
  background: var(--bg-card);
  border-color: var(--border);
}
body.theme-dark th { background: var(--border); }
body.theme-dark tr:nth-child(even) { background: transparent; }
body.theme-dark tr:hover { background: rgba(232, 93, 4, 0.08); }
body.theme-dark .admin-sidebar { background: var(--bg-card); border-color: var(--border); }
body.theme-dark .admin-block__empty { background: var(--bg-card); border-color: var(--border); }
body.theme-dark .hero-feature { background: var(--bg-card); border-color: var(--border); color: var(--text); }
body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark select { background: var(--bg-card); border-color: var(--border); color: var(--text); }
body.theme-dark .cta-strip { background: var(--bg); border-color: var(--border); }
body.theme-dark .cta-strip-text { color: var(--text); }
body.theme-dark .footer { border-top-color: var(--border); color: var(--text-muted); }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Фон с мягким градиентом */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(248, 140, 6, 0.06) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--carrot);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--carrot-dark);
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}
.header-inner .nav {
  margin-left: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.header-right a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}
.header-right a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--carrot);
  transition: width var(--transition);
}
.header-right a:hover::after {
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--carrot);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition);
}
.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 112px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Fallback: если нет картинки, скрыть пустой img и показать иконку */
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--carrot);
  transition: width var(--transition);
}
.nav a:hover::after {
  width: 100%;
}

/* Переключатель темы */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover {
  background: rgba(232, 93, 4, 0.12);
  color: var(--carrot);
}
.theme-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-icon--sun { display: none; }
.theme-toggle-icon--moon { display: flex; }
body.theme-dark .theme-toggle-icon--sun { display: flex; }
body.theme-dark .theme-toggle-icon--moon { display: none; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--carrot);
  border: 2px solid var(--carrot);
}
.btn-outline:hover {
  background: var(--carrot);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(232, 93, 4, 0.1);
  color: var(--carrot);
}
.btn-ghost:hover {
  background: rgba(232, 93, 4, 0.2);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Hero секция */
.hero {
  padding: 4rem 0;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero h1 span {
  color: var(--carrot);
  position: relative;
  display: inline-block;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 20px rgba(232, 93, 4, 0.3); }
  50% { text-shadow: 0 0 30px rgba(232, 93, 4, 0.5); }
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--carrot);
  background: rgba(232, 93, 4, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease-out backwards;
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out backwards;
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.hero-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 93, 4, 0.3);
  box-shadow: var(--shadow-hover);
}

.hero-feature-icon {
  font-size: 1.1rem;
  animation: float 3s ease-in-out infinite;
}

.hero-features .hero-feature:nth-child(2) .hero-feature-icon { animation-delay: 0.5s; }
.hero-features .hero-feature:nth-child(3) .hero-feature-icon { animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.9s ease-out backwards;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.btn-hero-main {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  animation: btnPulse 2.5s ease-in-out infinite;
}

.btn-hero-secondary {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(232, 93, 4, 0.5); }
}

/* Полоска «О нас» */
.about-strip {
  padding: 2rem 0;
  margin-bottom: 0.5rem;
}

.about-strip-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease-out;
}

.about-strip-inner p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Блок «Нет товаров» */
.empty-state-block {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease-out;
}

.empty-state-block-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: float 3s ease-in-out infinite;
}

.empty-state-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.empty-state-block-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.empty-state-block-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.empty-state-block-actions .btn {
  animation: fadeInUp 0.5s ease-out backwards;
}

.empty-state-block-actions .btn:nth-child(1) { animation-delay: 0.2s; animation-fill-mode: both; }
.empty-state-block-actions .btn:nth-child(2) { animation-delay: 0.3s; animation-fill-mode: both; }

.products-grid .empty-state-block {
  grid-column: 1 / -1;
}

/* Обёртка каталога */
.catalog-wrap {
  padding: 1rem 0 2rem;
}

.catalog-head {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.5s ease-out;
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.catalog-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Фильтр каталога */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.catalog-filter-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.catalog-filter-btn:hover {
  border-color: var(--carrot);
  color: var(--carrot);
}

.catalog-filter-btn.active {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
  border-color: transparent;
}

/* Секции страницы */
.page-section {
  padding: 2.5rem 0;
  animation: fadeInUp 0.5s ease-out;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Как это работает */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.how-step {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 50%;
  margin-bottom: 1rem;
}

.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.how-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Преимущества */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 93, 4, 0.2);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--carrot);
}

.benefit-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* CTA полоска */
.cta-strip {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.08), rgba(248, 140, 6, 0.06));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 93, 4, 0.15);
}

.cta-strip-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Карточки товаров */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  animation: fadeInUp 0.5s ease-out backwards;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 93, 4, 0.2);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(248, 140, 6, 0.15), rgba(232, 93, 4, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--carrot);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.25rem;
}

.product-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--carrot);
  background: rgba(232, 93, 4, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--carrot);
}

/* Формы */
.form-section {
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 0;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeInUp 0.5s ease-out;
}

.form-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-align: center;
}
.form-card .subtitle {
  text-align: center;
}
.form-page-logo {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.form-page-logo img {
  height: 144px;
  width: auto;
  object-fit: contain;
}

.form-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.form-card .form-footer {
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--carrot);
  box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1);
  animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
  from { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.2); }
  to { box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.1); }
}

/* Плавное появление кнопок при наведении */
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline:active {
  transform: translateY(0);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.form-footer a {
  font-weight: 600;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  animation: shake 0.5s ease-out;
}
.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Личный кабинет */
.page-header {
  padding: 2rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.4s ease-out;
}
.page-header h1 {
  font-size: 1.75rem;
  color: var(--text);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  animation: fadeInUp 0.4s ease-out backwards;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card .icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.stat-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.stat-card .label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Таблицы */
.table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeInUp 0.4s ease-out;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem 1.25rem;
  text-align: left;
}
th {
  background: rgba(232, 93, 4, 0.08);
  font-weight: 600;
  color: var(--text);
}
tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}
tr:hover {
  background: rgba(232, 93, 4, 0.04);
}

/* Админка */
.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  min-height: calc(100vh - 60px);
}
.admin-sidebar a,
.admin-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-sidebar-btn:hover,
.admin-sidebar-btn.active {
  background: rgba(232, 93, 4, 0.12);
  color: var(--carrot);
}
.admin-sidebar-btn.active {
  background: linear-gradient(135deg, var(--carrot), var(--carrot-light));
  color: white;
}
.admin-sidebar-btn--out {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-block {
  margin-top: 2rem;
}
.admin-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.admin-block__empty {
  padding: 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-block__empty code {
  background: rgba(0,0,0,0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.td-pages { max-width: 280px; word-break: break-all; font-size: 0.9rem; }
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-fail { background: #fee2e2; color: #b91c1c; }
.stat-card .icon,
.stat-card__icon { margin-bottom: 0.75rem; }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Лёгкая анимация появления страницы */
main.container {
  animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Адаптив */
@media (max-width: 768px) {
  .nav {
    gap: 1rem;
  }
  .hero {
    padding: 2rem 0;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
  .about-strip-inner {
    padding: 1.25rem 1rem;
  }
  .page-section {
    padding: 1.5rem 0;
  }
  .how-steps,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
