/* Общие стили */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #F9FAFB;
  color: #374151;
  line-height: 1.6;
  padding-top: 60px; /* Добавлено: отступ под фиксированную шапку */
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Шапка */
header.header {
  background-color: #2563EB;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  position: fixed; /* Добавлено: фиксированная позиция */
  top: 0;          /* Прилипает к верху */
  left: 0;
  width: 100%;     /* Ширина на всю страницу */
  z-index: 1200;   /* Поверх остальных элементов */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: white;
  z-index: 1100;
}

.logo img {
  height: 32px;
  margin-right: 0.5rem;
}

.nav-link {
  margin-right: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
}

.btn-telegram {
  background-color: white;
  color: #2563EB;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-telegram:hover {
  background-color: #1E40AF;
  color: white;
}

/* Основной контент */
main.main-content {
  padding: 3rem 0 4rem;
}

/* Формы */
.form-section {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}

h1 {
  color: #1F2937;
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 2rem;
}

/* Группы формы */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

/* Инпуты */
.input-text,
.input-number {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #374151;
  box-sizing: border-box;
}

.input-text:focus,
.input-number:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* Ошибки */
.error-message {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.3rem;
  display: none;
}

/* Пакеты звезд */
.package-selector-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.package-option-horizontal {
  flex: 1 1 calc(33.333% - 1rem);
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  color: #374151;
  box-sizing: border-box;
}

.package-option-horizontal:hover {
  border-color: #3B82F6;
  background-color: #EFF6FF;
}

.package-option-horizontal.selected {
  border-color: #2563EB;
  background-color: #DBEAFE;
  font-weight: 700;
}

.package-option-horizontal.hidden-option {
  display: none;
}

.package-label {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.package-prices {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.old-price {
  text-decoration: line-through;
  color: #9CA3AF;
}

.new-price {
  color: #2563EB;
}

/* Кнопки */
.btn-show-more,
.btn-primary {
  background-color: #2563EB;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  box-sizing: border-box;
}

.btn-show-more:hover,
.btn-primary:hover {
  background-color: #1E40AF;
}

/* Кнопка полная ширина */
.btn-block {
  width: 100%;
}

/* Подсветка цены */
.price-display {
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 0.3rem;
  color: #2563EB;
}

.price-info {
  font-size: 0.9rem;
  color: #6B7280;
  margin-top: 0.25rem;
}

/* Пользователь */
.user-confirmed {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid #D1D5DB;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: #F3F4F6;
  position: relative;
}

.user-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-details {
  flex-grow: 1;
}

.user-name {
  font-weight: 700;
  color: #1F2937;
  font-size: 1rem;
}

.user-username {
  color: #6B7280;
  font-size: 0.9rem;
}

.btn-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #6B7280;
  cursor: pointer;
  line-height: 1;
}

/* Описание (feature-card) */
.feature-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 3rem;
  color: #374151;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #2563EB;
}

.feature-card h2 {
  color: #1F2937;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Запросы */
.search-queries {
  margin-bottom: 3rem;
}

.search-queries h2 {
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
}

.search-queries-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-queries-list li {
  background-color: #E0E7FF;
  color: #3730A3;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  user-select: none;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(31, 41, 55, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  outline: none;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1F2937;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6B7280;
}

.modal-body {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 1rem;
}

.modal-steps {
  padding-left: 1.2rem;
  margin: 0;
}

.modal-steps li {
  margin-bottom: 0.75rem;
}

.modal-footer {
  text-align: right;
}

/* Стили для выбора подписки Telegram Premium */
.package-selector {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.package-option {
  flex: 1 1 calc(33.333% - 1rem);
  background-color: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  user-select: none;
  text-align: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
  color: #374151;
  font-weight: 600;
  box-sizing: border-box;
}

.package-option:hover {
  border-color: #3B82F6;
  background-color: #EFF6FF;
}

.package-option.selected {
  border-color: #2563EB;
  background-color: #DBEAFE;
  font-weight: 700;
}

.package-label {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.package-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 0.25rem;
}

.package-desc {
  font-size: 0.9rem;
  color: #6B7280;
}

/* Значок скидки */
.sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #DC2626;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Унифицированные кнопки */

/* Для кнопок «Показать больше» и «Купить» */
.btn-show-more,
.btn-primary {
  background-color: #2563EB;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  box-sizing: border-box;
}

.btn-show-more:hover,
.btn-primary:hover {
  background-color: #1E40AF;
}

/* Для кнопки купить звёзды, чтобы текст был адаптивным */
.btn-primary .tm-button-label,
.btn-show-more .tm-button-label {
  white-space: nowrap;
}

/* Кнопка «Показать больше» растянута на всю ширину на мобилках */
@media (max-width: 600px) {
  .btn-show-more,
  .btn-primary {
    width: 100%;
    min-width: auto;
  }
}
.reviews {
  margin-bottom: 3rem;
}

.reviews h2 {
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1.5rem;
}

.reviews-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.review-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem 2rem;
  flex: 1 1 calc(33.333% - 1rem);
  color: #374151;
  font-style: italic;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.review-card:hover,
.review-card:focus {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.review-card footer {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 700;
  color: #2563EB;
  text-align: right;
}

#showMorePackages {
  margin-top: 1rem;
}

/* FAQ */
.faq-section {
  margin-bottom: 3rem;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 2rem;
  color: #374151;
}

.faq-section h2 {
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background-color: #EFF6FF;
  border: none;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #2563EB;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline-offset: 2px;
  transition: background-color 0.3s ease;
}

.faq-question:hover,
.faq-question:focus {
  background-color: #DBEAFE;
  outline: none;
}

.faq-question::after {
  content: "＋";
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
}

/* Скрываем стандартное меню на мобилках, показываем бургер */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2563EB;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 60px; /* отступ под фиксированную шапку меню */
    overflow-y: auto;
    z-index: 1001;
  }
  .nav.open {
    transform: translateX(0);
  }

  /* Фиксированная шапка меню внутри навигации */
  .header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #2563EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1100;
  }

  .burger {
    display: block;
    cursor: pointer;
    width: 28px;
    height: 22px;
    position: relative;
    z-index: 1200;
    background: none;
    border: none;
    margin-right: 0;
  }
  .burger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .burger span:nth-child(1) {
    top: 0;
  }
  .burger span:nth-child(2) {
    top: 9px;
  }
  .burger span:nth-child(3) {
    bottom: 0;
  }
  .burger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }
  .burger.open span:nth-child(2) {
    opacity: 0;
  }
  .burger.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  .nav-link {
    display: block;
    color: white;
    font-size: 1.25rem;
    padding: 1.25rem 2rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
  }
  .nav-link:hover,
  .nav-link.active {
    background-color: #1E40AF;
    color: #fff;
  }
}

/* Блок авто-покупки */
.auto-purchase-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #DBEAFE;
  border: 1px solid #2563EB;
  color: #1E40AF;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.auto-purchase-info svg {
  width: 32px;
  height: 32px;
  fill: #2563EB;
  flex-shrink: 0;
}

/* Футер */
footer.footer {
  background-color: #f3f4f6;
  border-top: 1px solid #d1d5db;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer.footer a {
  color: #2563EB;
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 600;
}

footer.footer a:hover {
  text-decoration: underline;
}

footer.footer .footer-text {
  margin-top: 0.75rem;
  color: #4b5563;
}

/* Скрыть бургер на экранах шире 768px */
@media (min-width: 769px) {
  .burger {
    display: none !important;
  }
}

/* Footer стили, если надо, то можно расширить твоими уже существующими */
.footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6B7280;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: 1px solid #E5E7EB;
  padding: 1.5rem 0 2rem;
}

.footer__nav {
  margin-bottom: 0.5rem;
}

.footer__link {
  margin: 0 0.75rem;
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__text {
  margin-top: 0.75rem;
  color: #4B5563;
}

.agreement {
  padding: 3rem 1.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #374151;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.agreement__title {
  font-weight: 700;
  font-size: 2rem;
  color: #1F2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.agreement__date {
  font-size: 0.9rem;
  color: #6B7280;
  text-align: center;
  margin-bottom: 2rem;
}

.agreement__section {
  margin-bottom: 2.5rem;
}

.agreement__heading {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1F2937;
  margin-bottom: 1rem;
  border-bottom: 2px solid #DBEAFE;
  padding-bottom: 0.25rem;
}

.agreement__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1rem;
}

.agreement__list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  list-style-type: disc;
  color: #374151;
}

.agreement__list-item {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.agreement__highlight {
  background-color: #FFF8E1;
  border-left: 4px solid #FFC107;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #856404;
  font-weight: 600;
}

.agreement__link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.agreement__link:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #D1D5DB;
  text-align: center;
  color: #6B7280;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__nav {
  margin-bottom: 0.75rem;
}

.footer__link {
  margin: 0 0.75rem;
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__text {
  color: #4B5563;
}

.privacy-policy {
  padding: 3rem 1.5rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #374151;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.privacy-policy__title {
  font-weight: 700;
  font-size: 2rem;
  color: #1F2937;
  margin-bottom: 1.5rem;
  text-align: center;
}

.privacy-policy__date {
  font-size: 0.9rem;
  color: #6B7280;
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-policy__section {
  margin-bottom: 2.5rem;
}

.privacy-policy__heading {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1F2937;
  margin-bottom: 1rem;
  border-bottom: 2px solid #DBEAFE;
  padding-bottom: 0.25rem;
}

.privacy-policy__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1rem;
}

.privacy-policy__list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  list-style-type: disc;
  color: #374151;
}

.privacy-policy__list-item {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.privacy-policy__highlight {
  background-color: #DBEAFE;
  border-left: 4px solid #2563EB;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  color: #2563EB;
  font-weight: 600;
}

.privacy-policy__link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.privacy-policy__link:hover {
  text-decoration: underline;
}

.privacy-policy__contact-info {
  background-color: #EFF6FF;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #D1D5DB;
  text-align: center;
  color: #6B7280;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__nav {
  margin-bottom: 0.75rem;
}

.footer__link {
  margin: 0 0.75rem;
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__text {
  color: #4B5563;
}

.payment-result {
  max-width: 600px;
  margin: 4rem auto 3rem;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #374151;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.payment-result__icon {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #10B981; /* зелёный для успеха */
}

.payment-result__icon--success {
  color: #2563EB; /* основной синий цвет */
}

.payment-result__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1.5rem;
}

.payment-result__message {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #374151;
}

.payment-result__details {
  text-align: left;
  margin-bottom: 2rem;
}

.payment-result__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 1rem;
  color: #4B5563;
}

.payment-result__label {
  font-weight: 600;
  color: #2563EB;
}

.payment-result__value {
  font-weight: 700;
  color: #1F2937;
}

.payment-result__btn {
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}


.logo img {
  filter: brightness(0) invert(1);
}
