/* Шрифт Roboto (если уже подключён на сайте — эту строку можно убрать) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ====== БАЗОВЫЕ СТИЛИ САЙТА (из style-guide.md) ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #171413;
}
a { text-decoration: none; color: #FFFFFF; }
a:hover { text-decoration: none; color: #D8A37C; }

.baza {
  display: flex;
  flex-direction: column;
  width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #171413;
}

.header {
  padding: 20px;
  background: #171413;
  text-align: left;
  border-bottom: 1px solid #A3A3A3;
}
.texth0 {
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: -0.022em;
  text-align: left;
  color: #FFFFFF;
}

.main {
  flex: 1 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  border-bottom: 1px solid #A3A3A3;
}

.accent { color: #D8A37C; }

.button1 {
  width: 287px;
  height: 58px;
  background: #E5E5E521;
  border-radius: 16px;
  border: 1px solid #D8A37C;
  font-size: 18px;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.button1:hover {
  background: #E5E5E559;
  color: #FFFFFF;
}

.footer {
  flex-shrink: 0;
  padding: 15px 20px;
  background: #171413;
  color: #fff;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.abc { font-size: 13px; }

/* ====== СТРАНИЦА «ВОПРОС ПСИХОЛОГУ» ====== */

/* Hero */
.ask-hero {
  max-width: 800px;
  margin: 60px auto 0;
  text-align: center;
}
.badge1 {
  display: inline-block;
  background: rgba(216, 163, 124, 0.12);
  border: 1px solid rgba(216, 163, 124, 0.4);
  color: #D8A37C;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.ask-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  color: #C8C0B5;
  margin-bottom: 28px;
}
.ask-hero__sub {
  font-size: 20px;
  line-height: 1.6;
  color: #ccc;
}

/* Блок «Что важно знать» */
.ask-info {
  max-width: 720px;
  margin: 60px auto 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(163, 163, 163, 0.2);
  border-radius: 16px;
  padding: 28px;
}
.ask-info h3 {
  font-size: 19px;
  font-weight: 700;
  color: #C8C0B5;
  margin-bottom: 18px;
}
.ask-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ask-info__list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #ccc;
}
.ask-info__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #D8A37C;
  font-size: 18px;
}

/* Форма вопроса */
.ask-form {
  max-width: 720px;
  margin: 24px auto 0;
}
.ask-form__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(163, 163, 163, 0.2);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s ease;
}
.ask-form__card:focus-within {
  border-color: rgba(216, 163, 124, 0.4);
}
#question {
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #A3A3A3;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
#question:focus { border-color: #D8A37C; }
#question::placeholder { color: #888; }
.ask-form__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 13px;
  color: #A3A3A3;
}
.ask-form__card .button1 {
  display: block;
  margin: 20px auto 0;
}
.ask-error {
  color: #ff6b6b;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

/* Ответ */
.ask-answer {
  max-width: 720px;
  margin: 60px auto 0;
}
.ask-answer__q {
  color: #A3A3A3;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.answer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(216, 163, 124, 0.4);
  border-radius: 16px;
  padding: 28px;
  min-height: 120px;
}
.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(216, 163, 124, 0.2);
  border-top-color: #D8A37C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ask-status {
  text-align: center;
  color: #A3A3A3;
  font-size: 15px;
}
.answer-text {
  font-size: 17px;
  line-height: 1.7;
  color: #ccc;
  white-space: pre-wrap;
}
.ask-answer__actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
#answer-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ask-note {
  font-size: 14px;
  line-height: 1.5;
  color: #A3A3A3;
}
.ask-cta {
  font-size: 16px;
  color: #ccc;
}
.ask-cta a { color: #D8A37C; }
.ask-cta a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ask-new {
  font-size: 15px;
  color: #A3A3A3;
}
.ask-new:hover { color: #D8A37C; }

/* ====== АДАПТИВНОСТЬ ====== */
@media (max-width: 767px) {
  .baza { width: 100%; padding: 0 5px; }
  .header { padding: 6px 0; text-align: center; }
  .texth0 { font-size: 14px; line-height: 1.2; text-align: left; }
  .main { padding: 5px 0 60px; }
  .button1 {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 14px 20px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }
  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
  }
  .footer-col { align-items: center; gap: 8px; }

  .ask-hero { margin-top: 32px; }
  .ask-hero h1 { font-size: 28px; margin-bottom: 18px; }
  .ask-hero__sub { font-size: 16px; }
  .ask-info, .ask-form__card, .answer-card { padding: 20px 16px; }
  .ask-info__list li { font-size: 15px; }
  .answer-text { font-size: 16px; }
  .ask-answer { margin-top: 40px; }
}