/* stylelint-disable no-empty-source */
/* Основные переменные, подстройте под свою цветовую схему */
.faq-accordion {
  --faq-border: #f2f2f2;
  --faq-bg: #ffffff;
  --faq-text: #4d4d4d;
  --faq-answer-bg: transparent;
  --faq-arrow-color: #bfbfbf;
  --faq-active-arrow: #222;
  max-width: 800px;
  margin-bottom:30px;
  font-family: inherit;
}

.faq-accordion__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--faq-text);
}

.faq-accordion__list {
  border-top: 1px solid var(--faq-border);
}

/* Элемент вопроса */
.faq-item {
  border-bottom: 1px solid var(--faq-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--faq-text);
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-item__question:hover {
  opacity: 0.8;
}

/* Стрелка */
.faq-item__arrow {
  flex-shrink: 0;
  margin-left: 15px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faq-arrow-color);
  border-bottom: 2px solid var(--faq-arrow-color);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Открытое состояние стрелки */
.faq-item.active .faq-item__arrow {
  transform: rotate(-135deg);
  border-color: var(--faq-active-arrow);
}

/* Контейнер ответа (скрыт по умолчанию) */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item__answer-inner {
  padding: 0 0 20px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
  background: var(--faq-answer-bg);
}

/* Когда активно */
.faq-item.active .faq-item__answer {
  /* max-height задаётся динамически через JS, но здесь можно оставить большое значение */
  max-height: 500px; /* запас на случай большого текста */
}


/* ============================================
   Универсальная информационная страница
   Использовать на страницах: реквизиты, контакты,
   о компании, доставка и т.п.
   ============================================ */

.info-page {
  font-family: inherit;
  color: #333;
}

.info-page__title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 30px;
  text-align: center;
}

/* Белая карточка с тенью — обёртка для содержимого */
.info-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  padding: 35px 40px;
}

/* Раздел внутри карточки */
.info-section {
  margin-bottom: 30px;
}

.info-section:last-child {
  margin-bottom: 0;
}

.info-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ececec;
  color: #1e1e1e;
}

/* Таблица вида «термин – описание» (двухколоночная) */
.info-table {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 20px;
  margin: 0;
}

.info-table__label {
  font-weight: 500;
  color: #555;
  word-break: break-word;
}

.info-table__value {
  margin: 0;
  color: #111;
  word-break: break-word;
}

.info-table a {
  color: #2a6496;
  text-decoration: none;
  white-space: nowrap;
}

.info-table a:hover {
  text-decoration: underline;
}

/* Адаптивность: на мобильных схлопываем в одну колонку */
@media (max-width: 600px) {
  .info-card {
    padding: 20px 15px;
  }

  .info-table {
    grid-template-columns: 1fr;
    gap: 6px 0;
  }

  .info-table__label {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #777;
  }

  .info-table__value {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .info-table__label:first-child {
    margin-top: 0;
  }

  .info-page__title {
    font-size: 1.6rem;
  }

  .info-section__title {
    font-size: 1.1rem;
  }
}

/* ============================================
   Дополнительные универсальные элементы
   ============================================ */

.info-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #333;
}

.info-list {
  list-style: disc;
  margin: 0 0 20px 20px;
  color: #555;
}

.info-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.info-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}
/* Кнопка призыва к действию */
.info-cta {
  margin-top: 25px;
  text-align: center;
}

.info-cta .btn {
  display: inline-block;
  background: #2a6496;
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.info-cta .btn:hover {
  background: #1e4b73;
}
/* ============================================
   Сетки для карточек (универсальные)
   ============================================ */

.info-grid {
  display: grid;
  gap: 24px;
  margin: 20px 0;
}

.info-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Элемент сетки – карточка */
.info-card-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.info-card-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.info-card-item__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.info-card-item__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #1e1e1e;
}

.info-card-item__text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* Адаптивность сеток */
@media (max-width: 768px) {
  .info-grid--2,
  .info-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .info-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================================
   Сетка на 4 колонки
   ============================================ */
.info-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .info-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .info-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Обновлённые карточки (теперь всегда с тенью)
   ============================================ */
.info-card-item {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.info-card-item:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ============================================
   Мини-гид в карточке товара (вкладка)
   ============================================ */

/* Контейнер гида — белая карточка с тенью, без ограничения ширины */
.guide-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  padding: 30px 35px;
  margin-top: 20px;
  font-family: inherit;
  color: #333;
}

/* Внутренние разделы гида сохраняют универсальную структуру */
.guide-block .info-section {
  margin-bottom: 25px;
}

.guide-block .info-section:last-child {
  margin-bottom: 0;
}

/* Выделенная формула */
.guide-formula {
  background: #f0f7ff;
  border-left: 4px solid #2a6496;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 18px 0;
  line-height: 1.6;
}

.guide-formula strong {
  color: #1e1e1e;
}

/* Таблица подбора — сетка из карточек */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.guide-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}

.guide-item__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #2a6496;
}

.guide-item__size {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.guide-item__result {
  background: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  color: #1e1e1e;
  border: 1px dashed #ccc;
  margin-top: 4px;
}

/* Стили для иконок шагов, если понадобятся */
.guide-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-step__num {
  background: #2a6496;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Адаптив */
@media (max-width: 600px) {
  .guide-block {
    padding: 20px 15px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}