@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  /* Современная цветовая гамма */
  --primary-dark: #0f172a;
  --secondary-dark: #1e293b;
  --accent-teal: #2dd4bf;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-bg-solid: #1e293b;
  --border-color: #334155;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Градиенты */
  --gradient-primary: linear-gradient(
    135deg,
    #2dd4bf 0%,
    #a855f7 50%,
    #ec4899 100%
  );
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --gradient-card: linear-gradient(
    145deg,
    rgba(45, 212, 191, 0.1),
    rgba(168, 85, 247, 0.1)
  );

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 20px rgba(45, 212, 191, 0.3);

  /* Размеры */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Контейнер приложения */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Шапка */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 40px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: var(--primary-dark);
}

.logo-text h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 28px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.logo-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.header-stats {
  display: flex;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Кнопка CTA в шапке */
.header-cta {
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Основной контент */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex: 1;
  margin-bottom: 60px;
}

/* Чат секция (теперь занимает всю ширину) */
.chat-section {
  background: rgba(15, 23, 42, 0.5);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.5);
}

.chat-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 25px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.chat_header_tittle
{
  margin-left: 10px;
}

.chat-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 600px;
}

/* Поле ввода сообщения */
.chat-input-container {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.5);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.chat-send-btn {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--primary-dark);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chat-input-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Виджеты боковой панели */
.sidebar-widget {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  height: fit-content;
  width: 100%;
}

.widget-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title i {
  font-size: 20px;
  color: var(--accent-teal);
}

/* Список гарантий */
.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.guarantee-icon {
  width: 24px;
  height: 24px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee-icon i {
  font-size: 14px;
}

.guarantee-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.guarantee-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Виджет срочного заказа */
.urgent-widget {
  border: 2px solid var(--accent-pink);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.05),
    rgba(168, 85, 247, 0.05)
  );
}

.urgent-badge {
  position: absolute;
  top: 40px;
  right: -50px;
  background: var(--accent-pink);
  color: white;
  padding: 6px 40px;
  font-size: 12px;
  font-weight: 700;
  transform: rotate(45deg);
  transform-origin: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.urgent-features {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.urgent-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.urgent-feature i {
  color: var(--success);
  font-size: 16px;
}

/* Адаптивность для виджетов */
@media (max-width: 768px) {
  .sidebar-widget {
    padding: 20px;
  }

  .widget-title {
    font-size: 16px;
  }

  .guarantee-item {
    gap: 12px;
  }

  .guarantee-text {
    font-size: 13px;
  }

  .urgent-badge {
    font-size: 10px;
    right: -35px;
    padding: 4px 35px;
  }
}

/*___основные этапы разработки*/
.develop_container ol {
  padding-left: 0;
  margin: 20px 0;
  counter-reset: step-counter;
}

.develop_container li {
  position: relative;
  padding: 10px 0px 10px 45px;
  margin-bottom: 10px;
  list-style: none;
  border-left: 2px solid var(--accent-teal);
}

.develop_container li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

/* Анимация для срочного виджета */
.urgent-widget {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 0 rgba(236, 72, 153, 0.1);
  }
  to {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
}

/* Сообщения */
.message {
  max-width: 85%;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bot {
  align-self: flex-start;
}

.message-user {
  align-self: flex-end;
}

.message-content {
  padding: 20px;
  border-radius: var(--border-radius-md);
  position: relative;
}

.message-bot .message-content {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md) var(--border-radius-md)
    var(--border-radius-md) 8px;
}

.message-user .message-content {
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.15),
    rgba(168, 85, 247, 0.15)
  );
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: var(--border-radius-md) var(--border-radius-md) 8px
    var(--border-radius-md);
}

.message-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
}

/* Элементы контента в сообщениях */
.content-block {
  margin: 20px 0;
}

.content-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent-teal);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-item {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  font-size: 20px;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.feature-text {
  font-size: 14px;
  line-height: 1.5;
}

/* Карточки услуг */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.service-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-teal);
  box-shadow: var(--shadow-neon);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.service-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
}

.service-title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.service-features {
  list-style: none;
  margin: 16px 0;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
  font-size: 14px;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

.service-price {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.service-timeline {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 12px;
}

/* Кейсы */
.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.case-study {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.case-client {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.case-result {
  background: var(--success);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.case-details {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Кнопки действий */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.action-btn {
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  border: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.action-btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-dark);
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.action-btn-secondary {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.action-btn-secondary:hover {
  background: rgba(45, 212, 191, 0.2);
  transform: translateY(-2px);
}

.action-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.action-btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Блог */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-post {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-post-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-post-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-post-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  transition: gap 0.3s ease;
}

.view-all-link:hover {
  gap: 12px;
}

/* Гарантии */
.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guarantee-icon {
  width: 24px;
  height: 24px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.guarantee-text {
  font-size: 14px;
  line-height: 1.5;
}

/* Команда */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Процесс работы */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.process-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.step-number {
  width: 26px;
  height: 26px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary-dark);
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Форма */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Оверлейная форма */
.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.form-modal {
  background: var(--card-bg-solid);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-form {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-form:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.form-header {
  padding: 40px 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.form-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-dark);
  margin: 0 auto 20px;
}

.form-header h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.overlay-form {
  padding: 40px;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}

.form-actions .action-btn {
  flex: 1;
}

.form-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.form-footer p {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.form-footer p:last-child {
  margin-bottom: 0;
}

/* Футер */
.footer {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-teal);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--card-bg-solid);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .sidebar-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-stats {
    justify-content: center;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .chat-messages {
    padding: 16px;
  }

  .message {
    max-width: 95%;
  }

  .service-cards,
  .case-studies {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .overlay-form {
    padding: 20px;
  }

  .form-header {
    padding: 30px 20px 20px;
  }

  .sidebar-grid {
    grid-template-columns: 1fr;
  }

  .urgent-widget {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 0 16px;
  }

  .header {
    padding: 20px 0;
  }

  .logo-text h1 {
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .sidebar-widget {
    padding: 20px;
  }
}

/* Утилитарные классы */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-primary {
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.highlight {
  color: var(--accent-teal);
  font-weight: 600;
}

.mt-4 {
  margin-top: 24px;
}
.mb-4 {
  margin-bottom: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.mb-8 {
  margin-bottom: 32px;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-teal);
}

/* Дополнительно: плавающая кнопка Telegram */
.telegram-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  color: var(--primary-dark);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  animation: pulse 2s infinite;
  text-decoration: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(45, 212, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
  }
}

/* Индикатор печати */
.typing-indicator .message-content {
  background: transparent !important;
  border: none !important;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 24px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.6;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   TOAST-УВЕДОМЛЕНИЯ — правый нижний угол
   Используют CSS-переменные сайта, не нарушают существующий стиль
═══════════════════════════════════════════════════════════════════════ */

/* Контейнер */
.notification-container {
  position: fixed;
  bottom: 104px; /* выше плавающей кнопки Telegram (60px + 30px + отступ) */
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: 340px;
  max-width: calc(100vw - 32px);
  pointer-events: none; /* контейнер прозрачен для кликов */
}

/* Одно уведомление */
.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  border-radius: var(--border-radius-md);
  background: var(--card-bg-solid);
  border: 1px solid var(--border-color);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  pointer-events: all;

  /* состояние ДО появления */
  opacity: 0;
  transform: translateX(calc(100% + 32px));
  transition:
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Состояние ПОСЛЕ появления */
.notification--in {
  opacity: 1;
  transform: translateX(0);
}

/* Состояние ВЫХОДА */
.notification--out {
  opacity: 0;
  transform: translateX(calc(100% + 32px));
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* Левая цветная полоса */
.notification--success {
  border-left: 3px solid var(--success);
}
.notification--error {
  border-left: 3px solid var(--danger);
}
.notification--warning {
  border-left: 3px solid var(--warning);
}
.notification--info {
  border-left: 3px solid var(--accent-teal);
}

/* Иконка */
.notification__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 1px;
}

.notification--success .notification__icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.notification--error .notification__icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.notification--warning .notification__icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.notification--info .notification__icon {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent-teal);
}

/* Текстовый блок */
.notification__body {
  flex: 1;
  min-width: 0;
}

.notification__title {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin: 0 0 3px;
  line-height: 1.3;
}

.notification__message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

/* Кнопка закрытия */
.notification__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
  transition:
    color 0.15s,
    background 0.15s;
  margin: -2px -4px 0 0;
  align-self: flex-start;
}

.notification__close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Прогресс-бар (таймер) */
.notification__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

.notification__bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: notif-drain linear forwards;
}

.notification--success .notification__bar-fill {
  background: var(--success);
}
.notification--error .notification__bar-fill {
  background: var(--danger);
}
.notification--warning .notification__bar-fill {
  background: var(--warning);
}
.notification--info .notification__bar-fill {
  background: var(--accent-teal);
}

@keyframes notif-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Адаптив */
@media (max-width: 480px) {
  .notification-container {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 90px;
  }
}
