/* style.css - полные стили для лендинга IKOD Cloud */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fafcff;
  color: #111827;
  line-height: 1.5;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #3b82f6;
  color: #1e40af;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: #2563eb;
}

/* Градиентный фон */
.gradient-bg {
  background: linear-gradient(135deg, #0B2B5E 0%, #1B1464 100%);
}

/* Стики меню */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0B2B5E 0%, #1B1464 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 12px 0;
  width: 100%;
}

/* Убедимся, что контейнер внутри sticky-nav не ломает позиционирование */
.sticky-nav .container {
  position: relative;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF, #a0c4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo img { vertical-align: middle; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #eef2ff;
  font-weight: 500;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.btn-small-lk {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 8px 18px;
  color: white;
  text-decoration: none;
}

/* Hero секция */
.hero {
  padding: 60px 0 80px;
  color: white;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1 1 50%;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Заголовки секций */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}

.section-sub {
  text-align: center;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.section-spacing-top {
  padding-top: 80px;
  margin-top: 20px;
}

.section-title.spaced {
  margin-top: 0;
}

/* Сетки карточек */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s;
  border: 1px solid #e9edf2;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Тарифы */
.tariff-special-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.tariff-block {
  background: white;
  border-radius: 32px;
  padding: 28px 24px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
  border: 1px solid #eef2ff;
  transition: all 0.2s;
}

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

.tariff-block .price-main {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 15px 0 5px;
}

.tariff-block ul {
  margin: 16px 0 0 20px;
  list-style: none;
}

.tariff-block li {
  margin-bottom: 8px;
}

.badge-free {
  background: #dcfce7;
  color: #15803d;
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

/* Интеграции */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.integrations-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}

/* Стили для логотипов партнёров в блоках интеграций */
.integrations-card img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.integrations-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.1);
}

.integrations-card i {
  font-size: 2.5rem;
  color: #3b82f6;
  margin-bottom: 16px;
}

.integrations-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.integrations-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
}

/* Кейсы */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.case-card {
  background: #f8fafc;
  border-radius: 24px;
  padding: 28px;
  transition: 0.2s;
  border: 1px solid #e2e8f0;
}

.case-card:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.case-card i {
  font-size: 2rem;
  color: #3b82f6;
  margin-bottom: 16px;
}

.case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.case-card a {
  display: inline-block;
  margin-top: 16px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.case-card a:hover {
  text-decoration: underline;
}

/* Виджеты покупки */
.buy-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin: 40px 0;
}

.widget-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: 0.2s;
}

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

.widget-card i {
  font-size: 2.8rem;
  color: #1e3a8a;
  margin-bottom: 16px;
}

.widget-card h3 {
  margin-bottom: 12px;
}

/* Футер */
footer {
  background: #0B1120;
  color: #cbd5e1;
  padding: 48px 0 32px;
  margin-top: 60px;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  line-height: 1.8;
}

footer a:hover {
  color: white;
}

footer .logo {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* Модальное окно */
#videoModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .navbar {
    flex-direction: column;
  }

  .nav-links {
    justify-content: center;
    gap: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-spacing-top {
    padding-top: 50px;
  }

  .tariff-special-grid,
  .integrations-grid,
  .cases-grid {
    gap: 20px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card {
    padding: 20px;
  }
}

/* Гарантия фиксации шапки при любой подгрузке */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
}

#header-placeholder .sticky-nav {
  position: relative;
  top: 0;
}

/* Стили для изображений в галерее и виджетах */
.widget-card img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.device-image-main img,
.device-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Улучшение читаемости кнопки скачивания */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3b82f6;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Дополнительные стили для кнопок в базе знаний */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #3b82f6;
  color: white !important;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  color: white !important;
}

.knowledge-card .btn,
.knowledge-card .btn-primary {
  background: #3b82f6;
  color: white;
}

.knowledge-card .btn-primary:hover {
  background: #2563eb;
}