/* ==========================================================================
   ReFreshTech — кастомные стили поверх UIKit
   FAQ (<details>/<summary>) + таблицы из API
   ========================================================================== */

/* --------------------------------------------------------------------------
   FAQ — <details>/<summary> в стиле UIKit accordion + card
   -------------------------------------------------------------------------- */

.rft-faq-item {
  display: block;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .06);
  margin-top: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s ease-in-out;
}

.rft-faq-item[open] {
  box-shadow: 0 8px 25px rgba(0, 0, 0, .1);
}

/* Summary row */
.rft-faq-item > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 18px 60px 18px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #191919;
  line-height: 1.4;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  margin: 0;
}

/* Hide default browser marker */
.rft-faq-item > summary::-webkit-details-marker { display: none; }
.rft-faq-item > summary::marker              { content: ''; }

/* Custom icon — closed: «+» (same SVG as uk-accordion) */
.rft-faq-item > summary::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: background-image .2s ease-in-out;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cline%20fill%3D%22none%22%20stroke%3D%22%2300D2D4%22%20stroke-width%3D%221.5%22%20y1%3D%227%22%20x2%3D%2214%22%20y2%3D%227%22%2F%3E%3Cline%20fill%3D%22none%22%20stroke%3D%22%2300D2D4%22%20stroke-width%3D%221.5%22%20x1%3D%227%22%20y1%3D%220%22%20x2%3D%227%22%20y2%3D%2214%22%2F%3E%3C%2Fsvg%3E");
}

/* Open state: «−» icon */
.rft-faq-item[open] > summary::after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cline%20fill%3D%22none%22%20stroke%3D%22%2300D2D4%22%20stroke-width%3D%221.5%22%20y1%3D%227%22%20x2%3D%2214%22%20y2%3D%227%22%2F%3E%3C%2Fsvg%3E");
}

.rft-faq-item > summary:hover {
  color: #00d2d4;
}

/* Divider between question and answer when open */
.rft-faq-item[open] > summary {
  border-bottom: 1px solid #e6e6e6;
}

/* Answer content area */
.rft-faq-answer {
  padding: 18px 24px;
  color: #737373;
  line-height: 1.6;
}

.rft-faq-answer > *:first-child { margin-top: 0; }
.rft-faq-answer > *:last-child  { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Таблицы из API — uk-table в article
   -------------------------------------------------------------------------- */

/* Responsive wrapper для таблиц внутри статьи */
.uk-article table.uk-table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
