/* Стили публичной оферты */
/* Базовые стили для документа */
.document-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: #222;
}

.legal-document {
  background: #fff;
  padding: 50px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

/* Заголовок */
.document-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  padding-bottom: 20px;
}

.document-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.document-location {
  font-style: italic;
  color: #555;
  margin: 0;
}

/* Вводная часть */
.document-intro {
  margin-bottom: 30px;
  text-align: justify;
}

.requisites {
  display: inline;
  font-size: 0.95em;
}

.legal-note {
  margin-top: 15px;
  font-size: 0.95em;
  color: #444;
}

/* Разделы */
.document-section {
  margin-bottom: 25px;
}

.document-section h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  color: #000;
}

.clause-list {
  margin: 0;
  padding-left: 20px;
  counter-reset: clause;
}

.clause-list li {
  margin-bottom: 8px;
  text-align: justify;
}

.clause-list li::marker {
  font-weight: bold;
  color: #333;
}

/* Ссылки */
a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Подвал */
.document-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.signature-block {
  margin-bottom: 15px;
}

.signature-line {
  margin: 0;
  font-size: 1.05rem;
}

.publication-date {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Адаптив для печати */
@media print {
  .document-wrapper {
    padding: 0;
    max-width: 100%;
  }
  .legal-document {
    box-shadow: none;
    padding: 0;
  }
  a {
    text-decoration: none;
    color: #000;
  }
}

/* Стили публичной оферты */
/* Дополнительные стили для политики конфиденциальности */
/* === Списки определений (для раздела 2) === */
.definitions-list {
  margin: 16px 0;
  padding-left: 0;
}

.definitions-list dt {
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 4px;
  color: #2c3e50;
  font-size: 1rem;
}

.definitions-list dd {
  margin-left: 24px;
  margin-bottom: 12px;
  text-align: justify;
  color: #444;
}

/* === Вложенные списки в таблицах === */
.nested-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95em;
}

.nested-list li {
  margin-bottom: 4px;
}

/* === Адаптивная таблица === */
/* === Адаптивная таблица === */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  
  /* Полностью скрываем скроллбар на всех устройствах */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Скрываем скроллбар в Chrome/Safari/Opera */
.table-responsive::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  font-size: 0.95rem;
  background: #fff;
  table-layout: fixed; /* Принудительное распределение ширины */
}

.data-table thead {
  background-color: #2c3e50;
  color: #fff;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
  
  /* Перенос длинных слов */
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.data-table th {
  font-weight: 600;
  width: 35%;
}

.data-table td.table-label {
  font-weight: 600;
  background-color: #f8f9fa;
  width: 35%;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Вложенные списки в ячейках */
.nested-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.95em;
}

.nested-list li {
  margin-bottom: 4px;
  word-wrap: break-word;
}

/* === МОБИЛЬНАЯ АДАПТАЦИЯ: карточки на всю ширину === */
@media (max-width: 599px) {
  .table-responsive {
    overflow-x: visible;
    border: none;
    margin: 16px 0;
  }
  
  /* Сбрасываем все табличные стили */
  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Скрываем шапку таблицы */
  .data-table thead {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
  }
  
  /* Карточка для каждой строки */
  .data-table tr {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 0;
    overflow: hidden;
  }
  
  /* === Ячейка-заголовок (первый столбец) === */
  .data-table td.table-label {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    padding: 14px 16px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 6px 6px 0 0;
    box-sizing: border-box;
    
    /* Перенос текста */
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.5;
  }
  
  /* === Ячейка-контент (второй столбец) === */
  .data-table td:not(.table-label) {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #fff;
    padding: 14px 16px;
    border: none;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
    
    /* Перенос текста */
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.6;
    color: #333;
  }
  
  /* Убираем все псевдо-элементы */
  .data-table td::before,
  .data-table td::after {
    display: none !important;
    content: none !important;
  }
  
  /* Последняя ячейка без нижней границы */
  .data-table td:last-child {
    border-bottom: none;
  }
  
  /* Вложенные списки */
  .nested-list {
    padding-left: 18px;
    margin: 8px 0 0 0;
    font-size: 0.95em;
  }
  
  .nested-list li {
    margin-bottom: 6px;
    line-height: 1.5;
  }
  
  /* Ссылки в тексте */
  .data-table td a {
    color: #0066cc;
    word-break: break-word;
  }
  
  /* Убираем min-width у таблицы */
  .data-table {
    min-width: auto !important;
  }
}

/* === Печать === */
@media print {
  .table-responsive {
    overflow: visible;
    border: none;
  }
  .data-table {
    min-width: auto;
    font-size: 0.9rem;
    table-layout: auto;
  }
  .data-table th,
  .data-table td {
    border: 1px solid #000;
    padding: 8px;
    white-space: normal;
  }
  .data-table thead {
    position: static;
  }
  .data-table td::before {
    content: none;
  }
  .data-table td {
    padding-left: 15px;
  }
}

/* === Печать === */
@media print {
  .table-responsive {
    overflow: visible;
    border: none;
  }
  .data-table {
    min-width: auto;
    font-size: 0.9rem;
  }
  .data-table th,
  .data-table td {
    border: 1px solid #000;
    padding: 8px;
  }
  /* При печати показываем таблицу как есть, без трансформации */
  .data-table thead {
    position: static;
  }
  .data-table td::before {
    content: none;
  }
  .data-table td {
    padding-left: 15px;
  }
}

/* === Ссылки в тексте === */
.legal-document a {
  color: #0066cc;
  text-decoration: none;
  word-break: break-word;
}

.legal-document a:hover {
  text-decoration: underline;
}

/* === Улучшения для печати === */
@media print {
  .table-responsive {
    overflow: visible;
    border: none;
  }
  .data-table {
    min-width: auto;
    font-size: 0.9rem;
  }
  .data-table th,
  .data-table td {
    border: 1px solid #000;
  }
  .definitions-list dt {
    break-after: avoid;
  }
  .definitions-list dd {
    break-before: avoid;
  }
}

/* === Мобильная адаптация === */
@media (max-width: 600px) {
  .legal-document {
    padding: 30px 20px;
  }
  
  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .definitions-list dd {
    margin-left: 16px;
  }
}
/* Конец стилей для служебных документов */
/* Доставка и оплата */
/* === Карточка реквизитов === */
.requisites-card {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 12px 0;
  font-family: monospace, 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.requisites-card p {
  margin: 0;
  color: #2c3e50;
}

.requisites-card strong {
  color: #1a1a1a;
}

/* === Блок контактов === */
.contacts-block {
  background: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 16px 20px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
}

.contacts-block p {
  margin: 8px 0;
  color: #333;
}

.contacts-block a {
  color: #0066cc;
  text-decoration: none;
}

.contacts-block a:hover {
  text-decoration: underline;
}

/* === Заголовки h3 внутри разделов === */
.document-section h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: #2c3e50;
  font-weight: 600;
}

/* === Списки вопросов-ответов === */
.definitions-list dt {
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 6px;
  color: #2c3e50;
  font-size: 1rem;
}

.definitions-list dd {
  margin-left: 24px;
  margin-bottom: 12px;
  color: #444;
  line-height: 1.6;
}

/* === Адаптация таблиц для 4 колонок (доставка) === */
@media (max-width: 599px) {
  .data-table td {
    padding: 12px 14px;
  }
  
  .data-table td.table-label {
    padding: 14px 16px;
    border-radius: 6px 6px 0 0;
  }
  
  .data-table td:not(.table-label) {
    padding: 14px 16px;
    border-radius: 0 0 6px 6px;
  }
  
  /* Для таблиц с 4 колонками — компактный перенос */
  .data-table td[data-label="Условия"],
  .data-table td[data-label="Описание"] {
    font-size: 0.95em;
  }
}

/* === Печать === */
@media print {
  .requisites-card {
    background: #fff;
    border: 1px solid #000;
    font-family: 'Courier New', monospace;
  }
  .contacts-block {
    border-left: 4px solid #000;
    background: #fff;
  }
}
/* Конец блока доставка и оплата */