/* Добавление шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Source Sans 3', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #171624;
  overflow-x: hidden; /* Это предотвратит горизонтальную прокрутку на всей странице */
}

h1, h2, h3 {
  font-family: 'Golos Text', Sans-serif;
}

/* Стили для топбара */
.topbar {
  background-color: #171624;
  color: #fff;
  padding: 10px 0; /* Убрали боковые отступы */
}

.topbar > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 20px; /* Добавили отступы внутри */
}

.contact-info {
  display: flex;
  gap: 20px;
}

.contact-info a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.2em;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.8;
}

/* Стили для главного блока */
.main-section {
  background-color: #f4f8ff;
  padding: 40px 20px;
  margin-bottom: 0;
}

.main-section h1 {
  font-size: 2.4em;
  color: #0061d5;
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.main-image {
  flex: 1;
  min-width: 300px;
}

.main-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-text {
  flex: 1;
  min-width: 300px;
}

.main-text h2 {
  color: #222;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 20px;
}

.main-text p {
  font-size: 1.4em;
  line-height: 1.5;
  color: #333;
  margin-bottom: 20px;
}

.feature-list {
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.feature-icon {
  font-size: 1.3em;
  margin-right: 15px;
  color: #0061d5;
}

/* Стили для ключевых преимуществ */
.key-benefits {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px;
  background-color: #fff;
  margin-bottom: 0;
}

.benefit {
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  transition: transform 0.3s ease;
  padding: 15px;
  border-radius: 10px;
}

.benefit:hover {
  transform: translateY(-5px);
  background-color: rgba(244, 248, 255, 0.7);
  box-shadow: 0 8px 20px rgba(0, 97, 213, 0.1);
}

.benefit-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #0061d5;
  margin-bottom: 5px;
}

.benefit-text {
  font-size: 1.1em;
  color: #333;
}

/* Стили для иконок в блоке ключевых преимуществ */
.benefit-icon {
  font-size: 2em;
  color: #0061d5;
  margin-bottom: 10px;
}

.benefit-icon i {
  background-color: rgba(0, 97, 213, 0.1);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.benefit:hover .benefit-icon i {
  transform: scale(1.1);
  background-color: rgba(0, 97, 213, 0.15);
}

/* Стили для блоков тарифов */
.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
  color: #0061d5;
}

.section p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1em;
  color: #333;
  line-height: 1.5;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.tariff {
  border: 2px solid #e1e5ec;
  padding: 30px 25px 25px 25px;
  border-radius: 14px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tariff:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.tariff.subscription {
  border-color: #0061d5;
}

.tariff.highlight {
  border: 3px solid #0061d5;
  background-color: #eaf2ff;
  position: relative;
  transform: scale(1.03);
}

.tariff.highlight:hover {
  transform: translateY(-5px) scale(1.03);
}

.tariff h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: #0061d5;
  font-weight: 600;
}

.tariff .price {
  font-size: 1.3em;
  margin: 15px 0 20px 0;
  color: #171624;
  font-weight: bold;
}

.tariff .price span {
  font-size: 0.95em;
  color: #666;
  font-weight: normal;
  margin-top: 5px;
}

.benefits {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
  font-size: 1.05em;
}

.benefits li {
  margin: 10px 0;
  padding-left: 1.3em;
  text-indent: -1.3em;
  color: #171624;
}

.benefits li::before {
  content: '✅';
  margin-right: 7px;
  color: #0061d5;
}

.highlight .recommended {
  background-color: #0061d5;
  color: white;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 1em;
  margin-bottom: 12px;
  font-weight: 500;
  position: absolute;
  top: -12px;
  right: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(0,97,213,0.3);
}

/* Обновляем стили для выделения блоков с выгодой */
.discount {
  color: #e53935;
  font-weight: bold;
  font-size: 1em;
  background-color: #ffefef;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 5px;
  display: inline-block;
  border: 1px dashed #e53935;
}

/* Стиль для текста "по желанию" */
.optional {
  color: #27ae60;
  font-weight: bold;
  font-size: 1em;
  background-color: #e8f7ef;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 5px;
  display: inline-block;
  border: 1px dashed #27ae60;
}

.btn {
  margin-top: auto;
  background: #0061d5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 1.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,97,213,0.15);
  width: 100%;
}

.btn:hover {
  background: #0048a3;
  transform: translateY(-2px);
}

/* Стили для блока сравнения тарифов */
.tariff-comparison {
  background-color: transparent; /* Меняем с #fff на transparent */
  padding-top: 60px;
  padding-bottom: 60px;
  margin-top: 0;
  max-width: 100%;
  width: 100%;
}

/* Удалить, достаточно одного селектора */
section.tariff-comparison {
  background-color: transparent !important;
}

.tariff-comparison > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 30px;
  padding-bottom: 15px;
  border-radius: 14px;
}

.comparison-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Закругление углов таблицы */
.comparison-table th:first-child {
  border-top-left-radius: 14px;
}

.comparison-table th:last-child {
  border-top-right-radius: 14px;
}

.comparison-table tfoot tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.comparison-table tfoot tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 15px;
  text-align: center;
  border-bottom: 1px solid #e1e5ec;
}

.comparison-table th {
  background-color: #0061d5;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table th:first-child {
  text-align: left;
  background-color: #f4f8ff;
  color: #333;
}

.feature-column {
  width: 30%;
}

.comparison-table td.feature-name {
  text-align: left;
  font-weight: 500;
  color: #333;
}

.available {
  color: #0d8f00;
  font-size: 1.2em;
}

.unavailable {
  color: #d32f2f;
  font-size: 1.2em;
}

.available-note {
  color: #f39c12;
  font-size: 0.9em;
  font-weight: 500;
}

.price-row {
  background-color: #f4f8ff;
  font-weight: bold;
}

.price-label {
  text-align: left !important;
  font-size: 1.05em;
  color: #333;
}

.price-value {
  padding: 18px 5px;
}

.price-amount {
  font-size: 1.3em;
  color: #0061d5;
  margin-bottom: 3px;
    font-weight: bold;
}

.price-period {
  font-size: 0.85em;
  color: #666;
  font-weight: normal;
}

.comparison-table tfoot button {
  margin-top: 10px;
  width: 90%;
}

/* Стили для блока призыва к действию */
.cta-section {
  text-align: center;
  padding: 40px 20px;
 /* margin-top: 60px;*/
  background-color: #fff;
}

.cta-btn {
  background: #0061d5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 35px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,97,213,0.2);
}

.cta-btn:hover {
  background: #0048a3;
  transform: translateY(-3px);
}

/* Стили для футера */
.footer {
  background-color: #171624;
  color: #fff;
  padding: 40px 20px;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-info, .footer-contacts, .footer-links {
  flex: 1;
  min-width: 250px;
}

.footer p {
  margin: 8px 0;
  color: #ccc;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #0061d5;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Уменьшаем размер логотипа в футере */
.footer-logo {
  max-height: 40px;
  margin-top: 15px;
  display: block;
}

/* Стили для логотипа в футере - убираем верхний отступ и меняем размер */
.footer-logo {
  width: 250px;
  max-height: none;
  margin-top: 0;
  display: block;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .main-content {
    flex-direction: column;
  }
  
  .main-section h1 {
    font-size: 2em;
  }
  
  .main-text h2 {
    font-size: 1.5em;
  }
  
  .feature-item {
    font-size: 1.1em;
  }
  
  .key-benefits {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .section {
    padding: 30px 15px;
  }
  
  .extras {
    padding: 25px 15px;
  }
  
  .comparison-table {
    font-size: 0.85em;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }
  
  .price-amount {
    font-size: 1.1em;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }
  
  .topbar > div {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Стили для полноширинных секций */
.section.full-width, .tariff-comparison {
  width: 100%;
  max-width: 100%;
  padding: 50px 0;
  box-sizing: border-box; /* Важно! Учитываем padding в общей ширине */
}

.section.full-width > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Делаем второй блок секции (Бессрочные лицензии) с фоном #f4f8ff */
section.section:nth-of-type(2) {
  background-color: #f4f8ff !important; /* Добавляем !important */
  max-width: 100%;
  width: 100%;
  padding: 50px 0; /* Уменьшаем верхний отступ с 70px до 50px */
}

section.section:nth-of-type(2) > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Общие стили для секций */
.section {
  padding: 50px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Внутренний контейнер для содержимого */
.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Фоны секций */
.bg-white {
  background-color: #fff;
}

.bg-light {
  background-color: #f4f8ff;
}

/* Стили для секции "Тарифы по подписке" */
.tariffs-subscription {
  position: relative;
  box-shadow: 0 4px 15px -10px rgba(0, 97, 213, 0.1);
  width: 100%;
  max-width: 100%;
  padding: 50px 0;
  box-sizing: border-box;
  background-color: #f4f8ff;
}

.tariffs-subscription .section-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Разделитель между секциями */
.tariffs-subscription:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 97, 213, 0.2), transparent);
}

/* Стили для секции "Бессрочные лицензии" */
.tariffs-permanent {
  padding-top: 50px; /* Уменьшаем с 70px до стандартных 50px */
}

/* Стили для секции "Сравнение тарифов" */
.tariff-comparison {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: transparent;
}

/* В конец CSS-файла добавляем стили для модального окна */

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #777;
  transition: color 0.2s;
}

.close:hover {
  color: #0061d5;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #0061d5;
  text-align: center;
  font-size: 1.5em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e1e5ec;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #0061d5;
  outline: none;
}

.submit-btn {
  background: #0061d5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 25px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-weight: 500;
  width: 100%;
  margin-top: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0,97,213,0.2);
}

.submit-btn:hover {
  background: #0048a3;
  transform: translateY(-2px);
}

.form-agreement {
  font-size: 0.85em;
  text-align: center;
  margin-top: 15px;
  color: #666;
}

.form-agreement a {
  color: #0061d5;
  text-decoration: none;
}

.form-agreement a:hover {
  text-decoration: underline;
}

/* Стили для адаптивности модального окна */
@media (max-width: 500px) {
  .modal-content {
    padding: 20px;
  }
  
  .form-group input {
    padding: 10px;
  }
  
  .modal h3 {
    font-size: 1.3em;
  }
}

/* В конец файла добавляем стили для блока "Готовые курсы" */

/* Стили для секции "Готовые курсы" */
.ready-courses {
  padding: 60px 0;
  background-color: #f4f8ff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ready-courses .section-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.courses-table-wrap {
  overflow-x: auto;
  margin-top: 30px;
  padding-bottom: 15px;
  border-radius: 14px;
}

.courses-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* Закругление углов таблицы */
.courses-table th:first-child {
  border-top-left-radius: 14px;
}

.courses-table th:last-child {
  border-top-right-radius: 14px;
}

.courses-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

.courses-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}

.courses-table th,
.courses-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e1e5ec;
  background-color: #fff;
}

.courses-table th {
  background-color: #0061d5;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.course-name-column {
  width: 30%; /* Увеличиваем с 20% до 30% */
}

.course-name {
  font-weight: 600;
  color: #0061d5;
  align-items: center;
  gap: 12px;
}

.course-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 97, 213, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0061d5;
  font-size: 1.2em;
}

.course-description {
  color: #555;
  line-height: 1.4;
}

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

.price-badge {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
  margin-bottom: 5px;
}

.course-price.included {
  color: #4caf50;
}

.price-note {
  font-size: 0.85em;
  color: #777;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 700px) {
  .courses-table th,
  .courses-table td {
    padding: 12px 10px;
  }
  
  .course-name {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .course-icon {
    width: 35px;
    height: 35px;
  }
}