body {
  background: #f7f8fa;
  font-family: 'Inter', Arial, sans-serif;
  color: #23262b;
  font-size: 18px;
  margin: 0;
  padding: 0;
}

.blur-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #e7eaf3 40%, #f7f8fa 100%);
  filter: blur(14px) saturate(1.1);
  opacity: 0.93;
  pointer-events: none;
  z-index: 0;
}

/* ЛОГО — строго, центр, адаптив */
.faq-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  margin-bottom: 12px;
}
.faq-logo {
  max-width: 800px;
  max-height: 320px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 24px;
  overflow: hidden; /* 👈 важно, чтобы не "выпирало" */
  box-shadow: 0 4px 22px rgba(36,60,110,0.08);
  background: #f9f9f9; /* светло-серый фон для видимости */
  padding: 12px 0;
}

header {
  text-align: center;
  margin-bottom: 38px;
}

.faq-container {
  max-width: 1400px;
  margin: 120px auto 38px auto;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  box-shadow: 0 8px 36px rgba(85,90,115,0.09);
  padding: 48px 34px 42px 34px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(9px) saturate(1.03);
  -webkit-backdrop-filter: blur(9px) saturate(1.03);
}

h1 {
  font-weight: 700;
  font-size: 2.22em;
  margin: 0 0 10px 0;
  color: #23262b;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 9px #ebedf3;
}

.faq-subtitle {
  font-size: 1.09em;
  color: #a2a5ab;
  font-weight: 500;
  margin: 0 0 12px 0;
  opacity: 0.94;
}

.faq-list {
  margin-bottom: 30px;
}

.faq-card {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 0;
}

/* Современный стиль для вопроса */
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 28px 0 12px 0;
  font-family: inherit;
  font-size: 1.19em;
  color: #23262b;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  border-bottom: 1.5px solid #e6e6eb;
  border-radius: 0;
  transition: background .13s, color .16s;
  position: relative;
}

.faq-question:hover, .faq-question[aria-expanded="true"] {
  color: #18191b;
  background: #f1f4fa;
}

/* Кнопка-стрелка: минималистичная, справа */
.faq-question::after {
  content: '';
  float: right;
  width: 1.1em;
  height: 1.1em;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 7.5l3 3 3-3' stroke='%2323292e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(0deg);
  transition: transform .22s cubic-bezier(.58,.07,.54,1.12);
  margin-left: 7px;
  margin-top: 3px;
}
.faq-question[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Ответ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-size: 1.07em;
  color: #45494d;
  line-height: 1.7;
  padding: 0 0 0 0;
  transition: max-height 0.39s cubic-bezier(.21,.91,.56,1.03), padding .22s;
  background: transparent;
  opacity: .96;
  box-sizing: border-box;
}
.faq-question[aria-expanded="true"] + .faq-answer {
  padding: 6px 0 19px 0;
}

/* Только у последнего вопроса нет нижней линии */
.faq-list .faq-card:last-child .faq-question {
  border-bottom: none;
}

/* Certik — мелкая иконка, подпись */
.faq-certik {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .69em;
  color: #7e8392;
  margin-top: 35px;
  gap: 10px;
  opacity: 0.97;
}
.certik-icon {
  height: 22px;
  width: auto;
  object-fit: contain;
  background: none;
  border-radius: 0;
  margin-right: 6px;
}

footer {
  text-align: center;
  margin-top: 32px;
  border: none;
  background: none;
  padding: 0;
}

@media (max-width: 800px) {
  .faq-container {
    max-width: 99vw;
    padding: 7vw 2vw 8vw 2vw;
  }
  h1 { font-size: 1.17em; }
  .faq-logo { max-width: 120px; max-height: 48px; }
  .faq-question { font-size: 1em; padding: 22px 0 10px 0; }
}

@media (max-width: 420px) {
  .faq-logo { max-width: 78px; max-height: 28px; }
  .faq-container { padding: 5vw 2vw 7vw 2vw; }
}


#chat-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
  animation: fadeInUp 0.6s ease forwards;
}

.hidden {
  display: none;
}

#chat-form {
  background: white;
  padding: 20px;
  width: 300px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

#chat-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

#chat-form h3 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}

#chat-form p {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
  margin-bottom: 10px;
}

#chat-form input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#chat-form button {
  background-color: #111;
  color: white;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#chat-form .tg-link {
  text-align: center;
  display: block;
  margin-top: 8px;
  color: #0077cc;
  font-size: 14px;
  text-decoration: none;
}

#chat-form .tg-link:hover {
  text-decoration: underline;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
