/* ============================================================
   ВОПРОСЫ И ОТВЕТЫ /faq/ — локальные стили
   Дополняет:
   - /style.css
   - /uslugi/sezonnaya-smena-shin/page.css  (links-grid)
   ============================================================ */

/* ===== ЯКОРЯ — отступ под sticky-шапку ===== */
.faq-answer,
#questions {
  scroll-margin-top: 90px;
}

/* ===== НАВИГАЦИЯ ПО ВОПРОСАМ ===== */
.faq-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 560px) {
  .faq-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .faq-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .faq-nav { grid-template-columns: repeat(4, 1fr); }
}

.faq-nav__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.faq-nav__item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.faq-nav__num {
  flex-shrink: 0;
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.faq-nav__item:hover .faq-nav__num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ===== СПИСОК ОТВЕТОВ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== ОДИН ОТВЕТ ===== */
.faq-answer {
  position: relative;
  padding: 24px 26px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .3s ease;
}

.faq-answer.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,.25), 0 12px 30px rgba(255,107,0,.15);
}

/* Шапка ответа */
.faq-answer__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.faq-answer__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  box-shadow: 0 4px 14px rgba(255,107,0,.3);
}

.faq-answer__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 0;
  padding-top: 6px;
}

@media (max-width: 600px) {
  .faq-answer__head { gap: 12px; }
  .faq-answer__num {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 10px;
  }
  .faq-answer__title {
    font-size: 16px;
    padding-top: 4px;
  }
}

/* Тело ответа */
.faq-answer__body {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-answer__body p {
  margin: 0 0 12px;
}

.faq-answer__body p:last-child {
  margin-bottom: 0;
}

.faq-answer__body strong {
  color: var(--text);
  font-weight: 700;
}

.faq-answer__body a {
  color: var(--accent);
  text-decoration: none;
}

.faq-answer__body a:hover {
  text-decoration: underline;
}

/* Заголовки внутри ответа */
.faq-answer__body h4 {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  margin: 16px 0 8px;
  letter-spacing: -.01em;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

.faq-answer__body h4:first-child {
  margin-top: 0;
}

/* Списки */
.faq-answer__body ul,
.faq-answer__body ol {
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
}

.faq-answer__body li {
  position: relative;
  padding: 5px 0 5px 22px;
  line-height: 1.6;
}

.faq-answer__body ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.faq-answer__body ol {
  counter-reset: faq-item;
}

.faq-answer__body ol li {
  padding-left: 30px;
  counter-increment: faq-item;
}

.faq-answer__body ol li::before {
  content: counter(faq-item);
  position: absolute;
  left: 0;
  top: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  border: 1px solid rgba(255,107,0,.3);
}

/* Кнопка «К списку вопросов» */
.faq-answer__back {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.faq-answer__back:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ===== CTA «НЕ НАШЛИ ОТВЕТ?» ===== */
.faq-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(255,107,0,.1), rgba(255,107,0,.03));
  border: 1px solid rgba(255,107,0,.35);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.faq-cta__icon {
  font-size: 46px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-cta__content h2 {
  font-size: 21px;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -.02em;
}

.faq-cta__content p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.faq-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.faq-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent), #ff8a33);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,107,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  min-width: 200px;
}

.faq-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,.5);
}

.faq-cta__btn span {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

.faq-cta__btn strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* WhatsApp — зелёный */
.faq-cta__btn--wa {
  background: linear-gradient(135deg, #25d366, #1faa50);
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
}

.faq-cta__btn--wa:hover {
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
}

/* Мобилка */
@media (max-width: 800px) {
  .faq-cta {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    padding: 22px 20px;
  }
  .faq-cta__icon { font-size: 38px; }
  .faq-cta__content h2 { font-size: 18px; }
  .faq-cta__actions {
    width: 100%;
  }
  .faq-cta__btn { width: 100%; }
}

/* Мобилка — основной текст ответа */
@media (max-width: 600px) {
  .faq-answer {
    padding: 20px 18px 16px;
  }
  .faq-answer__body {
    font-size: 14px;
    line-height: 1.6;
  }
  .faq-answer__body h4 {
    font-size: 14.5px;
  }
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}