/* PROFIT SIM — стили страниц каталога (страна / оператор).
   Подключается вместе с site.css и опирается на его переменные из :root. */

/* ─── Переключатель языка ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 14px;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--gray);
  text-decoration: none;
  padding: 3px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.lang-switch a:hover { color: var(--black); }
.lang-switch a.active {
  color: var(--black);
  border-bottom-color: var(--yellow);
  cursor: default;
}
.lang-sep { color: #D1D5DB; }

/* ─── Хлебные крошки ─── */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--gray);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs a { color: var(--gray); text-decoration: none; }
.breadcrumbs a:hover { color: var(--black); text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--black); font-weight: 600; }
.bc-sep { color: #D1D5DB; }

/* ─── Шапка страницы товара ─── */
.page-hero { padding: 26px 0 40px; background: var(--white); }
.page-hero-title {
  font-size: clamp(27px, 5vw, 44px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 10px 0 0;
  color: var(--black);
}
.page-hero-title .accent { color: var(--yellow-dark); }
.page-hero-lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: #374151;
  max-width: 760px;
}

/* Блок прямого ответа — то, что цитируют поисковые ИИ и Google-сниппеты */
.answer-box {
  margin: 26px 0 0;
  padding: 20px 22px;
  background: var(--yellow-light);
  border: 1px solid #F3E08A;
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm);
}
.answer-box-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #8A6D00;
  margin-bottom: 8px;
}
.answer-box p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.66;
  color: #1F2937;
}
.answer-box p + p { margin-top: 10px; }
.answer-box strong { color: var(--black); }

/* Быстрые факты */
.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  background: var(--gray-light);
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.fact-chip.is-price {
  background: var(--green-light);
  border-color: #A7E8BF;
  color: #14532D;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

/* ─── Таблица характеристик ─── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 14.5px;
}
.spec-table th,
.spec-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #F0F1F3;
  vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--gray);
  background: #FAFAFB;
}
.spec-table td { color: #1F2937; font-weight: 500; }

/* ─── Сравнение операторов ─── */
.op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--white);
}
.op-table th,
.op-table td {
  padding: 14px 15px;
  text-align: left;
  border-bottom: 1px solid #F0F1F3;
  vertical-align: top;
}
.op-table thead th {
  background: var(--black);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-bottom: none;
}
.op-table tbody tr:last-child td { border-bottom: none; }
.op-name { font-weight: 700; color: var(--black); }
.op-note { display: block; margin-top: 3px; font-size: 12.5px; color: var(--gray); font-weight: 500; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { border: none; }

/* ─── Проза внутри страницы ─── */
.prose { max-width: 820px; }
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin: 30px 0 10px;
  letter-spacing: -.01em;
}
.prose h3:first-child { margin-top: 0; }
.prose p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.72;
  color: #374151;
}
.prose ul { margin: 0 0 16px; padding-left: 21px; }
.prose li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
}
.prose strong { color: var(--black); font-weight: 650; }

/* ─── Связанные страницы ─── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.related-card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.related-flag { font-size: 23px; line-height: 1; }
.related-name { font-size: 14.5px; font-weight: 700; color: var(--black); }
.related-price { display: block; margin-top: 2px; font-size: 12.5px; color: var(--gray); font-weight: 500; }

/* ─── Галерея фото товара ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--gray-light);
}
.gallery figcaption {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
}
.gallery figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
}

/* Пометка для данных, которые ждут подтверждения владельцем.
   Удалить вместе с атрибутом data-verify, когда цифры подтверждены. */
[data-verify] {
  background: #FEF3C7;
  box-shadow: inset 0 -1px 0 #F59E0B;
}

@media (max-width: 700px) {
  .page-hero { padding: 18px 0 30px; }
  .answer-box { padding: 16px 17px; }
  .answer-box p { font-size: 14.5px; }
  .spec-table th { width: 46%; }
  .spec-table th, .spec-table td { padding: 11px 13px; font-size: 13.5px; }
  .lang-switch { margin-right: 9px; font-size: 12.5px; }
  .page-hero-actions .btn-primary,
  .page-hero-actions .btn-secondary { width: 100%; justify-content: center; }
}
