/* ==========================================================================
   Страница ИТС — публичная оферта
   ========================================================================== */

html { scroll-behavior: smooth; }

.offer-page {
  max-width: 1180px;
  margin: 32px auto 0;
}

/* ---------- Карточка скачивания ---------- */
.offer-download {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0d2346 0%, #193d9b 100%);
  box-shadow: 0 14px 40px rgba(25, 61, 155, 0.25);
  position: relative;
  overflow: hidden;
}
.offer-download::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(254, 218, 77, 0.12);
  pointer-events: none;
}
.offer-download__icon {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #feda4d;
}
.offer-download__text { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.offer-download__meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #feda4d;
  margin-bottom: 6px;
}
.offer-download h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}
.offer-download p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.offer-download__btn {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: #feda4d;
  color: #0d2346;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.offer-download__btn:hover {
  background: #ffe27a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

/* ---------- Раскладка: оглавление + текст ---------- */
.offer-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

/* ---------- Оглавление ---------- */
.offer-toc {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid rgba(15, 30, 54, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 6px 24px rgba(15, 30, 54, 0.05);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.offer-toc__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px 8px;
}
.offer-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offer-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.offer-toc a:hover {
  background: #eef2ff;
  color: #193d9b;
  border-left-color: #193d9b;
}

/* ---------- Текст оферты ---------- */
.offer-text { min-width: 0; }

.offer-intro,
.offer-sec {
  background: #fff;
  border: 1px solid rgba(15, 30, 54, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(15, 30, 54, 0.04);
  scroll-margin-top: 100px;
}
.offer-intro {
  border-left: 5px solid #feda4d;
  background: #fffdf2;
}
.offer-intro p { margin: 0 0 10px; }
.offer-intro p:last-child { margin-bottom: 0; }

.offer-sec h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #eef0f5;
  font-size: 20px;
  line-height: 1.3;
  color: #0d2346;
}
.offer-sec h2::before {
  content: "";
  flex: 0 0 6px;
  align-self: stretch;
  border-radius: 3px;
  background: linear-gradient(180deg, #193d9b, #feda4d);
}
.offer-sec h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  color: #193d9b;
}
.offer-sec p,
.offer-intro p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #1f2937;
}
.offer-sec p { margin: 0 0 10px; }
.offer-sec p:last-child { margin-bottom: 0; }
.offer-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-sec li {
  position: relative;
  padding: 12px 16px 12px 40px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #f7f8fc;
  font-size: 15.5px;
  line-height: 1.65;
  color: #1f2937;
}
.offer-sec li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #193d9b;
}
.offer-sec li:last-child { margin-bottom: 0; }
.offer-sec a { color: #193d9b; font-weight: 600; }

/* ---------- Таблицы тарифов ---------- */
.offer-table-wrap {
  overflow-x: auto;
  margin: 14px 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 54, 0.12);
}
.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
}
.offer-table th {
  background: #193d9b;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
.offer-table td {
  padding: 12px 16px;
  border-top: 1px solid #eef0f5;
  color: #1f2937;
}
.offer-table tbody tr:nth-child(even) td { background: #f7f8fc; }
.offer-table tbody tr:hover td { background: #eef2ff; }
.offer-table td:last-child { font-weight: 700; color: #0d2346; white-space: nowrap; }

/* таблица коэффициентов — по центру */
.offer-table th:not(:first-child),
.offer-table td:not(:first-child) { text-align: center; }
/* а у таблицы тарифов вторая колонка — цены справа */
.offer-sec .offer-table-wrap:first-of-type .offer-table th:last-child,
.offer-sec .offer-table-wrap:first-of-type .offer-table td:last-child { text-align: right; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .offer-layout { grid-template-columns: 1fr; }
  .offer-toc { display: none; }
}
@media (max-width: 720px) {
  .offer-download {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .offer-download__btn { width: 100%; justify-content: center; }
  .offer-intro, .offer-sec { padding: 20px 18px; }
  .offer-sec h2 { font-size: 18px; }
}

/* ---------- Большие экраны ---------- */
@media (min-width: 1600px) {
  .offer-page { max-width: 1360px; }
  .offer-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 36px; }
  .offer-sec p, .offer-sec li, .offer-intro p { font-size: 16.5px; }
  .offer-sec h2 { font-size: 22px; }
}
@media (min-width: 2200px) {
  .offer-page { max-width: 1700px; }
}
