/* ============================================
   ОБЩИЕ СТИЛИ И АДАПТИВНОЕ МЕНЮ
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-image: url('../style/bg.jpeg');
  min-height: 100vh;
  line-height: 1.6;
}
.imHeader {
  position: relative;
  width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  height: 400px;
  background-image: url('../style/h.png');
  background-position: left top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: transparent;
}
/* ---------- Основной контейнер ---------- */
.main-container {
  max-width: 1315px;
  margin: 30px auto 0;
  background: white;
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
/* ---------- Шапка с H1 ---------- */
.site-header {
  color: white;
  padding: 35px 30px 30px;
  text-align: center;
}
.site-header h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.site-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 750px;
  margin: 0 auto;
}
/* ---------- Блок УТП (преимущества) ---------- */
.usp-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  background: #f8fafc;
  padding: 30px;
  border-bottom: 1px solid #e2e8f0;
}
.usp-item {
  text-align: center;
  padding: 15px;
}
.usp-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.usp-item h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 6px;
}
.usp-item p {
  font-size: 0.85rem;
  color: #475569;
}
/* ---------- Вкладки продуктов ---------- */
.tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  gap: 6px;
  padding: 0 30px;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.tab-btn:hover {
  color: #0f172a;
  background: #e6edf5;
  border-radius: 12px 12px 0 0;
}
.tab-btn.active {
  color: #059669;
  border-bottom-color: #059669;
  background: white;
}
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.content-padding {
  padding: 35px 30px;
}
/* ---------- Секции ---------- */
.section {
  margin-bottom: 45px;
  border-bottom: 1px solid #e9eef3;
  padding-bottom: 30px;
}
.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid #059669;
  padding-left: 18px;
}
/* ---------- Сетки карточек ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.feature-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.15);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0f172a;
}
.feature-card p {
  color: #475569;
  line-height: 1.5;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.audience-item {
  background: #f1f5f9;
  padding: 14px;
  border-radius: 18px;
  text-align: center;
  font-weight: 500;
}
.audience-item small {
  font-size: 0.8rem;
  color: #475569;
  display: block;
  margin-top: 6px;
}
/* ---------- Таблицы ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
  border-radius: 20px;
  overflow-x: auto;
  display: block;
}
.comparison-table th, .comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.comparison-table th {
  background: #1e293b;
  color: white;
  font-weight: 600;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table .good {
  color: #059669;
  font-weight: bold;
}
.price-table, .license-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.price-table th, .price-table td, .license-table th, .license-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.price-table th, .license-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}
.price-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
}
.price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-right: 8px;
}
.discount-row {
  background: #fef3c7;
}
/* ---------- Бейджи ---------- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-demo {
  background: #f39c12;
  color: white;
}
.badge-lite {
  background: #3498DB;
  color: white;
}
.badge-pro {
  background: #27AE60;
  color: white;
}
.badge-corp {
  background: #9B59B6;
  color: white;
}
.badge-sale {
  background: #e74c3c;
  color: white;
}
/* ---------- Кнопки ---------- */
.btn-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 25px 0 15px;
}
.btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.btn-primary {
  background: #059669;
  color: white;
}
.btn-primary:hover {
  background: #047857;
  transform: scale(1.02);
}
.btn-secondary {
  background: #2E86AB;
  color: white;
}
.btn-secondary:hover {
  background: #1e6f8f;
  transform: scale(1.02);
}
/* ---------- Блоки информации ---------- */
.guarantee, .success {
  background: #d4edda;
  border-left: 5px solid #27AE60;
  padding: 16px 20px;
  border-radius: 18px;
  margin: 20px 0;
  color: #155724;
}
.info {
  background: #d1ecf1;
  border-left: 5px solid #17A2B8;
  padding: 16px 20px;
  border-radius: 18px;
  margin: 20px 0;
}
.warning {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 16px 20px;
  border-radius: 18px;
  margin: 20px 0;
}
.advantage {
  background: #d1fae5;
  border-left: 5px solid #059669;
  padding: 20px 24px;
  border-radius: 20px;
  margin: 25px 0 10px;
}
/* ---------- FAQ ---------- */
.faq-item {
  background: #f8fafc;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}
.faq-question {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
/* ---------- Шаги (Steps) ---------- */
.steps {
  list-style: none;
  counter-reset: step-counter;
  margin: 20px 0;
}
.steps li {
  counter-increment: step-counter;
  margin-bottom: 18px;
  padding-left: 44px;
  position: relative;
}
.steps li:before {
  content: counter(step-counter);
  background: #2E86AB;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
/* ---------- Футер ---------- */
.footer {
  background: #0f172a;
  color: #ffffff;
  margin-top: 20px;
  padding: 28px 30px;
  text-align: center;
  font-size: 0.85rem;
}
.footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer a:hover {
  color: white;
}
hr {
  margin: 25px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0, #059669, #e2e8f0);
}
/* ============================================
   АДАПТИВНОСТЬ (Mobile First)
   ============================================ */
@media (max-width: 768px) {
  /* Мобильное меню */
  .hamburger {
    display: block;
  }
  .nav-container {
    justify-content: flex-end;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #1e293b;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    gap: 0;
    padding: 10px 0;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu li a {
    padding: 15px;
    border-bottom: none;
  }
  .nav-menu li a:hover, .nav-menu li a.active {
    background: #0f172a;
    border-bottom: none;
  }
  /* Остальные адаптивные правки */
  .site-header {
    padding: 25px 20px;
  }
  .site-header h1 {
    font-size: 1.4rem;
  }
  .tabs {
    padding: 0 15px;
  }
  .tab-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .content-padding {
    padding: 25px 18px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .usp-block {
    padding: 20px;
    gap: 12px;
  }
  .comparison-table {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn {
    text-align: center;
    justify-content: center;
  }
}