/* ==========================================================================
   Цифровые Сотрудники — Modern SaaS Design System (Stripe-like)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Palette */
  --primary-color: #635bff;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-gradient: linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  
  /* Neutrals */
  --text-color: #0a2540;
  --text-secondary: #425466;
  --muted-color: #697386;
  --border-color: #e6e8eb;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f9fc;
  --bg-tertiary: #f0f4f8;
  --bg-input: #f8fafc;
  
  /* Accents */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Shadows (Multi-layered, Stripe-style) */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  
  /* Focus Ring */
  --focus-ring: 0 0 0 3px rgba(99, 91, 255, 0.25);
  
  /* Spacing */
  --section-padding: 6rem 0;
  --section-padding-mobile: 3rem 0;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-body: 1.7;
  --line-height-heading: 1.3;
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--text-color);
  background-color: var(--bg-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

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

.nav a {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav a:hover {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.85);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.7) 0%, rgba(10, 37, 64, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: var(--line-height-heading);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  opacity: 0.95;
}

.hero-subtitle {
  max-width: 560px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.stat-item {
  flex: 1 1 0;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-width: 140px;
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-top: 2rem;
  width: 100%;
}

.hero-buttons .btn {
  flex: 1 1 0;
  text-align: center;
  justify-content: center;
  padding: 1rem;
  white-space: normal;
  line-height: 1.2;
  height: auto;
  min-height: 54px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn.primary {
  background: var(--primary-gradient);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.secondary {
  background-color: var(--bg-primary);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.btn.secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: var(--line-height-heading);
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Benefits Grid */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.benefit-item {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* Icon circles for benefits */
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background-color: var(--primary-light);
  color: var(--primary-color);
  margin: 0 auto 1rem;
  font-size: 1.75rem;
}

/* Wrappers for custom icons */
.benefit-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Icons for steps section - no circle background */
.step-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* Solution */
.solution-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.solution-text {
  flex: 1 1 400px;
}

.solution-text p {
  margin-bottom: 1rem;
  color: #445066;
}

.solution-image {
  flex: 1 1 400px;
  text-align: center;
}

.solution-image img {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

/* How it works */
.how-it-works .steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
}

/* Step icon styling moved to global icon styles */

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.step p {
  font-size: 0.95rem;
  color: var(--muted-color);
}

/* --------------------------------------------------------------------------
   Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
  position: relative;
  transition: all var(--transition-slow);
}

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

/* Highlighted (recommended) pricing card */
.pricing-card.highlight {
  border: 2px solid var(--primary-color);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-primary) 100%);
  transform: scale(1.02);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.pricing-card.highlight:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 600;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-footer-info {
  margin-top: 3rem;
  text-align: center;
  background-color: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-footer-info p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-footer-info p:last-child {
  margin-bottom: 0;
}

.pricing-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pricing-card .price-period {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 1.5rem;
}

.demo-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #667085;
}

/* Pricing note */
.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-color);
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-card .target-audience {
  margin-bottom: 1.5rem;
}

.pricing-card > p {
  margin-bottom: 0.5rem;
  flex-grow: 0;
}

.pricing-card > p:nth-last-of-type(1) {
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  background-color: var(--bg-tertiary);
}

.faq-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background-color: var(--bg-primary);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info,
.contact-form-wrapper {
  width: 100%;
}

.contact-details-box {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.contact-details-box h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.contact-form-wrapper h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: left;
}

.contact-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group.full {
  width: 100%;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background-color: var(--bg-input);
  font-family: var(--font-family);
  transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: var(--focus-ring);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
}

/* Form notification */
.form-notification {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.form-notification.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-notification.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --------------------------------------------------------------------------
   Roles Section
   -------------------------------------------------------------------------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.role-item {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
}

.role-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.role-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--bg-secondary);
}

/* Role items with FontAwesome icons instead of images */
.role-item .role-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-secondary) 100%);
  font-size: 4rem;
  color: var(--primary-color);
}

.role-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.25rem 1.5rem 0.5rem;
  color: var(--text-color);
}

.role-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 1.5rem 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.role-item .btn {
  margin: 0 1.5rem 1.5rem;
  margin-top: auto;
}

/* Role feature grid */
.role-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.role-feature-item {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
}

.role-feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.role-feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

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

/* --------------------------------------------------------------------------
   Fix for icons with white background (JPEG artifacts)
   -------------------------------------------------------------------------- */
.benefit-icon-img,
.role-item img,
.role-feature-item img,
.step-icon-img {
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--text-color);
  color: #fff;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  gap: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(30, 41, 59, 0.95);
  color: #fff;
  padding: 0.75rem 0;
  z-index: 2000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.cookie-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
}

.cookie-inner a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

#cookie-accept {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Chat Demo
   -------------------------------------------------------------------------- */
.chat-demo {
  width: 100%;
  background-color: #f0f2f5; /* Messenger-like background */
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  padding: 2rem;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.chat-form {
  display: flex;
  align-items: stretch;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chat-form input[type="text"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 0.95rem;
  background-color: transparent;
  color: var(--text-color);
  outline: none;
}

.chat-form input[type="text"]:focus {
  background-color: transparent;
}

.chat-form button {
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.chat-form button:hover {
  background: var(--primary-hover);
}

.chat-message {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
  width: 100%;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.ai {
  justify-content: flex-start;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
  background: #fff;
}

.chat-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.chat-message.ai .chat-avatar,
.chat-message.ai .chat-avatar-placeholder {
  margin-right: 12px;
}

.chat-message.user .chat-avatar,
.chat-message.user .chat-avatar-placeholder {
  margin-left: 12px;
  order: 2;
}

.message-content {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.chat-message.user .message-content {
  align-items: flex-end;
  order: 1;
}

.chat-message.ai .message-content {
  align-items: flex-start;
}

.chat-message .bubble {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-message.ai .bubble {
  background-color: #fff;
  color: var(--text-color);
  border-bottom-left-radius: 4px;
}

.chat-message.user .bubble {
  background-color: var(--primary-color);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  color: #8898aa;
  margin-top: 6px;
}

.chat-message.user .message-time {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Market Table
   -------------------------------------------------------------------------- */
.market-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.market-table th,
.market-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.market-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.market-table tr:last-child td {
  border-bottom: none;
}

.market-table tr:hover td {
  background-color: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center-section {
  text-align: center;
}

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

/* --------------------------------------------------------------------------
   Burger Menu
   -------------------------------------------------------------------------- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-btn.burger-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.burger-open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.burger-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   Hero Buttons
   -------------------------------------------------------------------------- */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Roles More Link
   -------------------------------------------------------------------------- */
.roles-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   For Whom Section
   -------------------------------------------------------------------------- */
.for-whom {
  padding: 1.5rem 0;
  background: var(--bg-primary);
}

.for-whom-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.for-whom-label {
  font-weight: 600;
  color: var(--text-color);
}

.for-whom-list {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Scenarios Block
   -------------------------------------------------------------------------- */
.scenarios-block {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.scenarios-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.scenarios-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem 2rem;
}

.scenarios-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.scenarios-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 600;
}

.scenarios-list li strong {
  color: var(--text-color);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tech Note (small technical text)
   -------------------------------------------------------------------------- */
.tech-note {
  font-size: 0.8rem !important;
  color: var(--muted-color) !important;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Section Intro Sub
   -------------------------------------------------------------------------- */
.section-intro-sub {
  font-size: 1rem;
  color: var(--muted-color);
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Responsive Styles
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  /* Burger menu mobile */
  .burger-btn {
    display: flex;
  }
  
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
  }
  
  .nav.nav-open {
    display: flex;
  }
  
  .nav a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .hero {
    min-height: auto;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .stat-item {
    min-width: 120px;
    padding: 0.75rem 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  
  .role-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.highlight {
    transform: none;
  }
  
  .pricing-card.highlight:hover {
    transform: translateY(-4px);
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .solution-grid {
    flex-direction: column;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .btn {
    justify-content: center;
  }
  
  .for-whom-block {
    flex-direction: column;
    text-align: center;
  }
  
  .scenarios-block {
    padding: 1rem 1.25rem;
  }
  
  .scenarios-list {
    grid-template-columns: 1fr;
  }
}