/* ============ ONEDAY · B2B Page ============ */

.b2b-page {
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.b2b-container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ================= HERO ================= */
.b2b-hero {
  padding: 60px 0 100px;
  position: relative;
}

.b2b-hero::before {
  content: '';
  position: absolute;
  top: -10%; right: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,107,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.b2b-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.b2b-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(79,107,255,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.b2b-title {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 50%, #D946EF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.b2b-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 460px;
  margin-bottom: 40px;
}

.b2b-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 56px;
}

.b2b-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}
.b2b-play-btn:hover { color: var(--text); }

.play-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.b2b-play-btn:hover .play-icon {
  border-color: var(--blue);
  background: rgba(79,107,255,0.1);
}

.b2b-features-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.b2b-feat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79,107,255, 0.08);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid rgba(79,107,255, 0.15);
}

[data-theme="light"] .feat-icon-wrap {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.feat-text {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.feat-text strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

/* ================= UI MOCKUP ================= */
.b2b-hero-visual {
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.b2b-ui-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15), 0 0 40px rgba(79,107,255,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

[data-theme="light"] .b2b-ui-mockup {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 30px 60px rgba(44,66,105,0.08);
}

.b2b-ui-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
}

.ui-header {
  height: 40px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
[data-theme="light"] .ui-header {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.ui-dots { display: flex; gap: 6px; }
.ui-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: #EF4444;
}
.ui-dots span:nth-child(2) { background: #F59E0B; }
.ui-dots span:nth-child(3) { background: #22C55E; }

.ui-url {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}
[data-theme="light"] .ui-url { background: #FFFFFF; border: 1px solid #E2E8F0; }

.ui-body {
  display: flex;
  flex: 1;
}

.ui-sidebar {
  width: 60px;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="light"] .ui-sidebar { border-color: #E2E8F0; }

.ui-menu-item {
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
}
.ui-menu-item.active { background: var(--blue); width: 80%; }

.ui-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ui-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ui-stat-card {
  padding: 16px;
  border-radius: 12px;
  background: rgba(79,107,255,0.05);
  border: 1px solid rgba(79,107,255,0.1);
}
[data-theme="light"] .ui-stat-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.ui-stat-title { font-size: 9px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.ui-stat-value { font-size: 20px; font-weight: 700; color: var(--text); }

.ui-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 20px;
  border-bottom: 2px solid var(--line);
}

.ui-chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(79,107,255,0.2), var(--blue));
  border-radius: 4px 4px 0 0;
  animation: growBar 1s ease-out forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.ui-float-badge {
  position: absolute;
  bottom: 24px;
  right: 24px; 
  background: var(--card);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  animation: float 4s ease-in-out infinite;
}
[data-theme="light"] .ui-float-badge {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.ui-float-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================= SOLUTIONS ================= */
.b2b-solutions {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

[data-theme="light"] .b2b-solutions {
  background: #F8FAFC;
}

.b2b-sol-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.b2b-sol-title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.b2b-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 16px;
}

.b2b-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .b2b-card {
  border-color: #E2E8F0;
  background: #FFFFFF;
}

.b2b-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,107,255,0.4);
  box-shadow: 0 12px 30px rgba(79,107,255,0.08);
}

.b2b-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(79,107,255,0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: auto;
}

.b2b-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 32px 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.b2b-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

.b2b-card-arrow {
  position: absolute;
  right: 24px; bottom: 24px;
  color: var(--blue);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.b2b-card:hover .b2b-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.b2b-card--accent {
  background: linear-gradient(135deg, rgba(79,107,255,0.1) 0%, rgba(168,85,247,0.15) 100%);
  border-color: rgba(79,107,255,0.3);
  justify-content: space-between;
}

[data-theme="light"] .b2b-card--accent {
  background: linear-gradient(135deg, #F0F4FF 0%, #F5EFFF 100%);
  border-color: #D0D9F5;
}

.b2b-card--accent:hover {
  box-shadow: 0 12px 30px rgba(168,85,247,0.15);
}

.b2b-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.b2b-card--accent h3 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

.b2b-card-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(79,107,255,0.15);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.b2b-card--accent:hover .b2b-card-btn {
  background: var(--blue);
  color: #fff;
}

/* ================= ADMIN SECTION ================= */
.b2b-admin-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.b2b-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.b2b-admin-content {
  max-width: 500px;
}

.b2b-admin-desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 20px 0 40px;
}

.b2b-admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.b2b-admin-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.admin-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79,107,255, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.b2b-admin-list li div:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.b2b-admin-list strong {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.b2b-admin-list span {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}

.b2b-admin-visual {
  position: relative;
}

.admin-widget {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .admin-widget {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 20px 40px rgba(44,66,105,0.06);
}

.admin-widget-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .admin-widget-head { border-color: #E2E8F0; }

.aw-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.aw-title span {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--line-strong);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.aw-btn {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 8px 16px;
  border-radius: 100px;
}

.admin-widget-body {
  padding: 12px;
}

.aw-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  transition: background 0.2s;
}

.aw-row:hover {
  background: rgba(79,107,255,0.04);
}

.aw-row-hidden {
  opacity: 0.6;
}

.aw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.aw-info {
  flex: 1;
}

.aw-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.aw-role {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.aw-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--line);
  color: var(--text-soft);
}

.aw-status.aw-done {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
}

.aw-status.aw-progress {
  background: rgba(79,107,255, 0.1);
  color: var(--blue);
}

/* ================= CONTACT SECTION (ИСПРАВЛЕНО) ================= */
.b2b-contact-section {
  padding: 100px 0;
  background: var(--bg-soft); /* Цветовой разделитель */
  border-top: 1px solid var(--line-strong); /* Линия как на макете */
}

[data-theme="light"] .b2b-contact-section {
  background: #F1F5F9; /* Чуть темнее для светлой темы */
}

.b2b-contact-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.b2b-contact-box h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  color: var(--text);
}

.b2b-contact-box p {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 40px;
}

.b2b-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2b-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.b2b-form input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

[data-theme="light"] .b2b-form input {
  background: #FFFFFF;
  border-color: #E2E8F0;
}

.b2b-form input:focus {
  outline: none;
  border-color: var(--blue);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .b2b-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .b2b-card--accent {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .b2b-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .b2b-hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  .b2b-ui-mockup {
    transform: none;
  }
  .b2b-features-row {
    justify-content: space-between;
  }
  
  .b2b-admin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .b2b-admin-visual {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .b2b-hero { padding: 40px 0 60px; }
  .b2b-actions { flex-direction: column; align-items: flex-start; }
  .b2b-features-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .b2b-sol-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .b2b-cards-grid { grid-template-columns: 1fr; }
  .b2b-card--accent { grid-column: span 1; }
  .b2b-form-row { grid-template-columns: 1fr; }
}