/* ================================
   Страница FAQ и контакты (faq.php)
   Подключается ПОСЛЕ profilepage.css — использует его переменные
   ================================ */

.faq-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 8px 14px 8px 10px;
  border: 1.4px solid var(--daryn-line);
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--daryn-azure-deep);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.faq-back:hover{
  border-color: var(--daryn-azure);
  background: #fff;
}

.faq-hero{
  text-align: center;
  margin: 18px auto 26px;
  max-width: 640px;
}
.faq-hero-title{
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: var(--daryn-ink);
}
.faq-hero-text{
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--daryn-steel);
}

.profile-card.faq-card{
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 28px;
}

/* Заголовок карточки — без синей полосы */
.faq-card-title{
  margin: 0;
  padding: 22px 24px 4px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--daryn-ink);
}
.faq-card-title::after{
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--daryn-azure-bright);
}

/* Группы вопросов */
.faq-group{
  padding: 18px 24px 8px;
  border-bottom: 1px solid var(--daryn-line);
}
.faq-group:last-child{
  border-bottom: none;
  padding-bottom: 16px;
}
.faq-group-title{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--daryn-azure);
}
.faq-group-icon{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e3f0f4;
  color: var(--daryn-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Аккордеон на <details> — работает без JS */
.faq-item{
  border-bottom: 1px dashed var(--daryn-line);
}
.faq-item:last-child{
  border-bottom: none;
}
.faq-item summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--daryn-ink);
  line-height: 1.4;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "";
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef3f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230a5872' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 6px no-repeat;
  transition: transform .2s ease, background-color .15s ease;
}
.faq-item summary:hover{
  color: var(--daryn-azure);
}
.faq-item[open] summary{
  color: var(--daryn-azure-deep);
}
.faq-item[open] summary::after{
  transform: rotate(180deg);
  background-color: #d6eaf1;
}
.faq-answer{
  margin: -4px 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--daryn-azure-bright);
  background: #f1f8fb;
  font-size: 14px;
  line-height: 1.6;
  color: var(--daryn-steel);
}

/* Контакты */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 8px;
  margin-bottom: 22px;
}
.contact-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 14px;
  border: 1px solid var(--daryn-line);
  border-radius: 12px;
  background: #fbfcfd;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
a.contact-item:hover{
  border-color: var(--daryn-azure);
  background: #fff;
}
.contact-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e3f0f4;
  color: var(--daryn-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.contact-text{
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 4px;
}
.contact-label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--daryn-steel-soft);
}
.contact-value{
  font-size: 16px;
  font-weight: 700;
  color: var(--daryn-ink);
  word-break: break-word;
}

.contact-tip{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 24px 0px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #e3f0f4;
  color: var(--daryn-azure-deep);
}
.contact-tip svg{
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-tip p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Мобильные */
@media screen and (max-width: 600px){
  .faq-hero-title{ font-size: 21px; }
  .faq-hero-text{ font-size: 14px; }
  .faq-card-title{ padding: 18px 16px 2px; font-size: 16px; }
  .faq-group{ padding: 14px 16px 6px; }
  .faq-item summary{ font-size: 14px; }
  .faq-answer{ font-size: 13px; padding: 10px 12px; }
  .contact-grid{
    grid-template-columns: 1fr;
    padding: 16px 16px 4px;
  }
  .contact-item{
    flex-direction: row;
    text-align: left;
    padding: 14px;
    gap: 12px;
  }
  .contact-icon{ margin: 0; flex-shrink: 0; }
  .contact-text{ align-items: flex-start; gap: 2px; }
  .contact-label{ font-size: 11px; }
  .contact-tip{ margin: 12px 16px 16px; }
}