/* --- Общие Стили --- */
:root { /* Определяем цветовые переменные для удобства */
  --primary-color: #007bff; /* Основной синий */
  --primary-hover-color: #0056b3; /* Синий при наведении */
  --text-dark: #212529;    /* Почти черный текст */
  --text-medium: #495057;   /* Средне-серый текст */
  --text-light: #f8f9fa;   /* Светлый текст (для темных фонов) */
  --bg-body: #eef2f5;      /* Очень светлый серо-голубой фон страницы */
  --bg-section: #ffffff;   /* Белый фон секций */
  --bg-header: #ffffff;    /* Белый фон шапки */
  --bg-footer: #2a3035;    /* Темно-серый фон подвала */
  --border-color: #dee2e6; /* Цвет границ */
  --shadow-color: rgba(0, 0, 0, 0.08); /* Цвет тени */
}

body {
  font-size: 16px; /* Увеличен базовый размер для читаемости */
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-body); /* Фон страницы */
  color: var(--text-medium); /* Стандартный цвет текста */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased; /* Улучшение рендеринга шрифтов */
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 85%;
  max-width: 1200px; /* Слегка уменьшен max-width для лучшего баланса */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

img {
  border: none;
  outline: none;
  /* max-width: 100%; убрано ограничение */
  height: auto;
  display: block;
  vertical-align: middle; /* Убирает возможные отступы */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover-color);
  text-decoration: none; /* Убираем подчеркивание по умолчанию, добавим где нужно */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 0.75em;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Шапка --- */
header {
  background-color: var(--bg-header);
  color: var(--text-dark);
  padding: 25px 0; /* Увеличено расстояние */
  /* Убран border-radius */
  margin-bottom: 50px; /* Больший отступ снизу */
  box-shadow: 0 2px 4px var(--shadow-color); /* Более тонкая тень */
  position: sticky; /* Делаем шапку "липкой" */
  top: 0;
  z-index: 1020; /* Чтобы была поверх других элементов */
  border-bottom: 1px solid var(--border-color); /* Четкая граница */
}

.header-container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.header-logo-link {
  flex-shrink: 0;
}

header img.logo {
  height: 150px !important;
  min-width: 150px;
  min-height: 150px;
  display: block;
}

.header-text-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.header-text h1 {
  margin: 0 0 5px 0; /* Уменьшен отступ */
  font-size: 1.8em; /* Слегка уменьшен заголовок */
}

.header-text p {
  margin: 0 0 12px 0;
  font-size: 1em;
  max-width: 650px;
  color: var(--text-medium);
}

nav.header-nav {
  /* Стили навигации */
}

nav.header-nav a {
  margin-right: 25px; /* Больше расстояние */
  font-weight: 700; /* Жирнее */
  color: var(--text-medium);
  font-size: 1em; /* Стандартный размер */
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
  padding-bottom: 5px; /* Увеличен отступ для рамки */
  border-bottom: 3px solid transparent; /* Более толстая рамка при наведении */
}
nav.header-nav a:last-child {
  margin-right: 0;
}

nav.header-nav a:hover,
nav.header-nav a.active { /* Стиль для активного пункта (если будет) */
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* --- Основные секции --- */
.section {
  margin-bottom: 45px;
  background-color: var(--bg-section);
  padding: 35px; /* Больше внутренний отступ */
  border-radius: 8px; /* Небольшое скругление для мягкости */
  box-shadow: 0 4px 15px var(--shadow-color); /* Более заметная тень */
  border: 1px solid var(--border-color);
}

.section-highlight {
    background-color: #f8f9fa; /* Сохраняем светлый фон для выделения */
    border-left: 5px solid var(--primary-color);
}

.section-title {
  font-size: 1.7em; /* Скорректирован размер */
  margin-bottom: 30px; /* Больше отступ */
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  color: var(--text-dark);
  text-align: center;
}

.section-title i {
  font-size: 1.1em;
  color: var(--primary-color);
  margin-right: 10px;
  vertical-align: middle;
}

.section ul, .section ol {
  padding-left: 25px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.section ul li, .section ol li {
  margin-bottom: 14px; /* Больше расстояние */
}
.section ul li::marker { /* Стиль маркеров списка */
    color: var(--primary-color);
    font-weight: bold;
}
.section ol > li > strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* --- Картинки и Сертификаты --- */
.image-container {
  margin: 30px auto;
  text-align: center;
  max-width: 90%;
}
.image-container img {
  border-radius: 6px; /* Уменьшено скругление */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* Усилена тень */
}

.intro-container {
    display: flex;
    align-items: center; /* Выравнивание по центру */
    gap: 40px; /* Больше расстояние */
    margin: 20px 0 30px 0; /* Отступы */
    flex-wrap: wrap;
}
.intro-text {
    flex: 1 1 55%; /* Текст занимает чуть больше */
    min-width: 300px;
}
.certificates-inline-container {
  display: flex;
  gap: 25px;
  justify-content: center;
  align-items: center;
  flex: 1 1 35%;
  min-width: 220px;
}
.certificate-item-inline {
  max-width: 150px; /* Слегка уменьшены */
  flex: 0 0 auto;
}
.certificate-item-inline img {
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.certificate-item-inline img:hover {
    transform: scale(1.05); /* Эффект при наведении */
}


/* --- Секция "Приложения" --- */
.apps-section {
  margin: 40px 0;
  text-align: center;
  background-color: var(--bg-section); /* Белый фон */
  padding: 45px 30px; /* Увеличены отступы */
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.apps-section h2 {
  font-size: 1.9em; /* Скорректирован размер */
  margin-bottom: 45px;
  color: var(--text-dark);
  border-bottom: none;
  padding-left: 0;
}

.apps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* Скорректировано расстояние */
}

.app-card {
  background: var(--bg-section);
  border-radius: 8px; /* Меньше скругление */
  overflow: hidden;
  width: 250px; /* Немного шире */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  border: 1px solid var(--border-color);
  display: flex; /* Переделано на flex для консистентности */
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-5px); /* Уменьшен эффект */
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
}

.app-card a { /* Стилизуем ссылку внутри карточки */
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ссылка занимает всю карточку */
}

.app-card .app-icon-container {
    background-color: #f8f9fa;
    padding: 10px 0 10px 0; /* Минимальный вертикальный отступ, без горизонтального */
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.app-card img { /* Icon */
  width: 100% !important;
  max-width: 100% !important;
  max-height: 130px;
  height: auto;
  display: flex;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  object-fit: contain;
}

.app-card .app-info {
  padding: 8px 2px 12px 2px; /* Минимальные отступы */
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-card h3 {
  font-size: 1.12em;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  padding: 0 1px;
}

/* --- Таблицы --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0; /* Больше отступы */
  background-color: var(--bg-section);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

th, td {
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 18px; /* Увеличены отступы */
  text-align: left;
  vertical-align: top;
  font-size: 0.95em; /* Чуть меньше шрифт в таблице */
}
tbody tr:last-child td {
    border-bottom: none;
}

th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border-color); /* Более четкая граница шапки */
  white-space: nowrap; /* Запрет переноса в шапке */
}
tbody tr:hover {
    background-color: #f8f9fa; /* Светлее фон при наведении */
}

/* --- Details/Summary --- */
details {
  background-color: #f8f9fa;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px 20px;
  margin: 25px 0; /* Отступы */
}

summary {
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 1.1em;
  padding: 8px 0; /* Отступы для кликабельной области */
  transition: color 0.2s ease;
}
summary:hover {
    color: var(--primary-hover-color);
}
details[open] summary {
    margin-bottom: 15px;
}
details[open] {
  padding-bottom: 20px;
}
details ul {
  margin-top: 10px;
}

/* --- Видео --- */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #e0e0e0; /* Темнее фон для загрузки */
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Форма обратной связи --- */
#feedback {
  margin: 40px 0;
  padding: 35px 30px; /* Больше отступы */
  background-color: #e9f5ff; /* Светло-голубой */
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  border: 1px solid #bde0ff; /* Голубая граница */
}

#feedback h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 1.7em; /* Крупнее заголовок */
  color: #0056b3;
}

#feedback form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#feedback input[type="text"],
#feedback input[type="tel"] {
  padding: 15px 20px; /* Увеличены отступы */
  border: 1px solid #bde0ff;
  border-radius: 6px; /* Меньше скругление */
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  flex-grow: 1;
  min-width: 240px; /* Немного шире */
  font-size: 1em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#feedback input[type="text"]:focus,
#feedback input[type="tel"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2); /* Тень при фокусе */
}

#feedback input[type="submit"] {
  padding: 15px 35px; /* Увеличены отступы */
  border: none;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1.05em;
}

#feedback input[type="submit"]:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-1px); /* Небольшой сдвиг */
}
#feedback input[type="submit"]:active {
    transform: translateY(0);
    background-color: #004a99; /* Еще темнее при нажатии */
}


/* --- Подвал --- */
.footer-container {
  background-color: var(--bg-footer); /* Темный фон подвала */
  color: #adb5bd;
  padding: 45px 0; /* Увеличен отступ */
  margin-top: 60px; /* Больше отступ сверху */
  /* Убраны скругления */
}

.footer-container .container {
  text-align: center;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px 40px; /* Увеличен разрыв */
}

footer ul li {
  margin-bottom: 0;
}

footer a {
  color: var(--text-light); /* Светлые ссылки */
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff; /* Белые при наведении */
}

footer i {
  margin-right: 8px;
  color: var(--primary-color); /* Основной цвет для иконок */
  font-size: 0.9em; /* Чуть меньше иконки */
  opacity: 0.8; /* Немного приглушены */
}

/* --- Кнопка "Наверх" --- */
#back-to-top {
  position: fixed;
  bottom: 25px; /* Скорректировано */
  right: 25px;
  display: none;
  opacity: 0;
  background: var(--primary-color);
  color: #fff;
  width: 48px; /* Скорректировано */
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-size: 1.2em; /* Скорректировано */
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2); /* Усилена тень */
  transition: background-color 0.2s ease, opacity 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}
#back-to-top:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-3px); /* Эффект приподнятия */
}
#back-to-top.show {
    display: block;
    opacity: 1;
}


/* --- Медиа Запросы --- */

@media screen and (max-width: 992px) {
    .container { width: 90%; }
    .header-container { gap: 20px; }
    .header-text h1 { font-size: 1.7em; }
    .header-text p { font-size: 1em; }
    nav.header-nav a { font-size: 0.95em; margin-right: 18px; }
    .intro-container { flex-direction: column; align-items: center; }
    .intro-text { text-align: center; flex-basis: auto; margin-bottom: 25px; }
    .certificates-inline-container { flex-basis: auto; justify-content: center; }
    .section { padding: 25px; }
    header img.logo {
      height: 150px !important;
      min-width: 150px;
      min-height: 150px;
    }
}

@media screen and (max-width: 768px) {
  body { font-size: 15px; }
  .container { width: 95%; padding: 0 15px; }
  header { padding: 20px 0; margin-bottom: 40px; }
  .header-container { flex-direction: column; text-align: center; }
  .header-text-nav { align-items: center; }
  .header-text h1 { font-size: 1.6em; }
  .header-text p { max-width: none; }
  nav.header-nav { text-align: center; margin-top: 15px; }
  nav.header-nav a { font-size: 0.9em; margin: 0 10px 12px 10px; display: inline-block; border-bottom-width: 2px; }
  .section { padding: 20px; margin-bottom: 35px; border-radius: 6px;}
  .section-title { font-size: 1.5em; margin-bottom: 25px; text-align: center; }
  .apps-section { padding: 30px 20px; }
  .apps-section h2 { font-size: 1.7em; margin-bottom: 35px; }
  .apps-container { gap: 25px; }
  .app-card { width: calc(50% - 15px); }
  .footer-container { padding: 35px 0; margin-top: 40px; }
  footer ul { flex-direction: column; align-items: center; gap: 18px; }
  #feedback { padding: 25px 20px; }
  #feedback form { flex-direction: column; align-items: stretch; }
  table { font-size: 0.9em; }
  th, td { padding: 12px 14px; }
  header img.logo {
    height: 150px !important;
    min-width: 150px;
    min-height: 150px;
  }
}

@media screen and (max-width: 480px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }
  header { padding: 15px 0; margin-bottom: 30px; }
  header img.logo {
    height: 150px !important;
    min-width: 150px;
    min-height: 150px;
  }
  .header-text h1 { font-size: 1.4em; }
  .header-text p { font-size: 0.95em; margin-bottom: 10px; }
  nav.header-nav { margin-top: 10px;}
  nav.header-nav a { font-size: 0.85em; margin: 0 8px 10px 8px; padding-bottom: 3px; }
  .section { padding: 18px; border-radius: 6px; margin-bottom: 30px; }
  .section-title { font-size: 1.35em; margin-bottom: 20px; padding-bottom: 12px; text-align: center; }
   .section-title i { font-size: 1em; margin-right: 8px; }
  .apps-section { padding: 25px 15px; }
  .apps-section h2 { font-size: 1.5em; margin-bottom: 30px; }
  .app-card { width: 100%; }
  .app-card .app-icon-container { min-height: 100px; padding: 20px; }
  .app-card img { max-width: 55px; max-height: 55px; }
  .app-card h3 { font-size: 1.1em; }
  .intro-container { gap: 25px; }
  .certificates-inline-container { gap: 15px; }
  .certificate-item-inline { max-width: 110px; }
  #feedback { padding: 20px 15px; }
  #feedback h2 { font-size: 1.4em; }
  #feedback input[type="text"],
  #feedback input[type="tel"],
  #feedback input[type="submit"] { font-size: 1em; padding: 12px 15px; }
  #back-to-top { width: 44px; height: 44px; line-height: 44px; font-size: 1.1em; bottom: 15px; right: 15px; }
  th, td { padding: 10px 12px; }
  .footer-container { padding: 30px 0; }
  footer ul { gap: 15px 25px; }
}

/* Стили для раздела настройки коннектора */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-block {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-block:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-title {
    background: #007bff;
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.step-content {
    padding: 20px;
}

.step-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.step-content li {
    margin: 8px 0;
    line-height: 1.6;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.resource-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.resource-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.resource-item h4 {
    margin: 10px 0 5px 0;
    color: #333;
}

.resource-item p {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0 15px 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .step-title {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .step-content {
        padding: 15px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .resource-item {
        padding: 15px;
    }
}

/* Стили для страницы dashboards */
.section-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.dashboard-navigation .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #495057;
}

.dashboard-navigation .nav-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-2px);
}

.dashboard-navigation .nav-item.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.dashboard-navigation .nav-item i {
    font-size: 1.5em;
}

.dashboard-navigation .nav-item span {
    font-weight: 500;
    font-size: 0.9em;
}

.dashboard-content {
    position: relative;
}

.dashboard-item {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.dashboard-item.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

.dashboard-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.dashboard-description ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.dashboard-description li {
    margin: 5px 0;
    color: #555;
}

.dashboard-embed {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
}

.custom-report-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.info-text {
    flex: 1;
}

.info-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-text li {
    margin: 8px 0;
    color: #555;
}

.info-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.price-info {
    text-align: center;
}

.price {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
}

.price-desc {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dashboard-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-navigation .nav-item {
        flex-direction: row;
        padding: 12px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .custom-report-info {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .dashboard-embed iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .dashboard-embed {
        padding: 10px;
    }
    
    .dashboard-embed iframe {
        height: 300px;
    }
    
    .dashboard-description {
        padding: 15px;
    }
}

/* Стили для страницы partners */
.partner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.benefit-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    background: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.benefit-icon i {
    font-size: 1.5em;
}

.benefit-item h3 {
    color: #333;
    margin: 0 0 15px 0;
}

.benefit-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.partnership-flow {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.step-number {
    background: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin: 0 0 10px 0;
}

.step-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.calculation-example {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.calc-scenario,
.calc-costs,
.calc-profit {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.calc-profit {
    background: #e8f5e8;
    border-color: #28a745;
}

.calc-scenario h3,
.calc-costs h3,
.calc-profit h3 {
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.calc-item:last-child {
    border-bottom: none;
}

.calc-item.total {
    font-weight: bold;
    color: #007bff;
    border-top: 2px solid #007bff;
    padding-top: 15px;
    margin-top: 10px;
}

.calc-item.profit {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1em;
}

.calc-label {
    color: #666;
}

.calc-value {
    font-weight: 600;
    color: #333;
}

.partnership-terms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 30px 0;
}

.terms-column {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.terms-column h3 {
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.terms-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-column li {
    position: relative;
    padding: 8px 0 8px 25px;
    color: #666;
    line-height: 1.6;
}

.terms-column li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.partnership-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cta-content {
    flex: 1;
}

.cta-content p {
    font-size: 1.1em;
    color: #333;
    margin: 0 0 20px 0;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.feature i {
    color: #28a745;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cta-note {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .partner-benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .calculation-example {
        grid-template-columns: 1fr;
    }
    
    .partnership-terms {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partnership-cta {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .cta-features {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .benefit-item {
        padding: 15px;
    }
    
    .flow-step {
        padding: 20px;
    }
    
    .calc-scenario,
    .calc-costs,
    .calc-profit {
        padding: 20px;
    }
    
    .terms-column {
        padding: 20px;
    }
    
    .partnership-cta {
        padding: 25px;
    }
}

/* Стили для страниц документации и FAQ */
.docs-navigation,
.faq-search,
.faq-categories {
    margin-bottom: 30px;
}

.docs-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.docs-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.docs-nav-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.docs-nav-item.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.docs-nav-item i {
    font-size: 1.2em;
}

.docs-content {
    position: relative;
}

.docs-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.docs-section.active {
    display: block;
}

.docs-step {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007bff;
}

.docs-step h3 {
    color: #007bff;
    margin: 0 0 15px 0;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.permission-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-item i {
    color: #007bff;
    font-size: 1.2em;
}

.parameters-table {
    margin: 20px 0;
}

.parameters-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.parameters-table th,
.parameters-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.parameters-table th {
    background: #007bff;
    color: white;
    font-weight: 600;
}

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

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.method-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.method-item code {
    display: block;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #007bff;
}

.method-item span {
    color: #666;
    font-size: 0.9em;
}

.troubleshooting-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.troubleshooting-item h3 {
    background: #dc3545;
    color: white;
    margin: 0;
    padding: 15px 20px;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.problem,
.solution {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.problem h4 {
    color: #dc3545;
    margin: 0 0 10px 0;
}

.solution h4 {
    color: #28a745;
    margin: 0 0 10px 0;
}

.help-cta,
.contact-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.help-content,
.contact-content {
    flex: 1;
}

.help-action,
.contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.contact-option i {
    color: #007bff;
    width: 20px;
}

/* Стили для FAQ */
.faq-search {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-filter {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 0.9em;
}

.category-filter:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.category-filter.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

.faq-question i {
    color: #666;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.params-source {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid #007bff;
}

.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 15px 0;
}

.data-category {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.version-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 15px 0;
}

.version-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 15px 0;
}

.price-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Адаптивность */
@media (max-width: 768px) {
    .docs-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .docs-nav-item {
        flex-direction: row;
        padding: 12px 20px;
    }
    
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .help-cta,
    .contact-cta {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .faq-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .category-filter {
        flex-shrink: 0;
    }
    
    .data-categories,
    .version-comparison,
    .pricing-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .docs-step {
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .permissions-grid,
    .methods-grid {
        grid-template-columns: 1fr;
    }
}