
/* --- Hero --- */
.ask-page .ask-hero {
  background:
    radial-gradient(1020px 470px at 50% -120px, rgba(184, 146, 74, .25), rgba(184, 146, 74, 0) 74%),
    var(--bg);
}
.ask-page .ask-hero .hero-main {
  max-width: 820px;
}
.ask-page .ask-hero .hero-essence {
  margin-bottom: 26px;
}

/* --- Общие секции --- */
.ask-page .contact-section,
.ask-page .faq-section {
  padding: 74px 0 84px;
  scroll-margin-top: 88px;
}
.ask-page .contact-section {
  border-top: 1px solid #e9e5da;
}
.ask-page .faq-section {
  background: #f1eadd;
  border-top: 1px solid #e0d9c8;
}
.ask-page .section-head {
  max-width: 760px;
  margin: 0 0 40px;
}
.ask-page .section-head h2 {
  margin: 0 0 14px;
}
.ask-page .section-head .lead {
  margin: 0;
}

.ask-page .site-footer {
  margin-top: 0;
}

.ask-page .contact-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ask-page .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ask-page .contact-card--social {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1041px) {
  .ask-page .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ask-page .contact-card--social {
    grid-column: auto;
  }
}

.ask-page .contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid #e8e3d6;
  border-radius: 18px;
  padding: 34px 30px 28px;
  box-shadow: 0 1px 2px rgba(60, 42, 14, .06), 0 14px 30px -22px rgba(60, 42, 14, .5);
  transition: opacity .42s ease, transform .42s cubic-bezier(.16, 1, .3, 1),
    box-shadow .24s ease, border-color .24s ease;
}
.ask-page .contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(60, 42, 14, .08), 0 20px 40px -22px rgba(60, 42, 14, .55);
  border-color: #dcd2bb;
}
.ask-page .contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(184, 146, 74, .14);
  color: var(--accent);
  margin-bottom: 18px;
}
.ask-page .contact-card__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.ask-page .contact-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}
.ask-page .contact-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.ask-page .contact-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.ask-page .contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ask-page .contact-tg {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ask-page .contact-tg:hover {
  border-color: var(--accent-soft);
  background: rgba(184, 146, 74, .08);
  transform: translateY(-1px);
  text-decoration: none;
}

.ask-page .official-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 20px 0 0;
  padding: 15px 18px;
  border: 1px solid rgba(184, 146, 74, .34);
  background: rgba(184, 146, 74, .09);
  border-radius: 12px;
}
.ask-page .official-note__icon {
  flex: none;
  display: inline-flex;
  margin-top: 1px;
  color: var(--accent);
}
.ask-page .official-note__icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.ask-page .official-note p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
.ask-page .official-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ask-page .official-note a:hover {
  text-decoration: none;
}

/* --- Объединённая карточка «Соцсети и мессенджеры»: две строки-ссылки --- */
.ask-page .contact-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.ask-page .contact-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ask-page .contact-choice:hover {
  border-color: var(--accent-soft);
  background: rgba(184, 146, 74, .08);
  transform: translateY(-1px);
  text-decoration: none;
}
.ask-page .contact-choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
}
.ask-page .contact-choice__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.ask-page .contact-choice__label {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.ask-page .contact-choice__arrow {
  flex: none;
  color: var(--accent);
  font-weight: 700;
  transition: transform .2s ease;
}
.ask-page .contact-choice:hover .contact-choice__arrow {
  transform: translateX(3px);
}
@media (min-width: 640px) and (max-width: 1040px) {
  .ask-page .contact-choices {
    flex-direction: row;
  }
  .ask-page .contact-choice {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* --- Карточка почты: адрес + кнопка копирования --- */
.ask-page .email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.ask-page .email-row[hidden] {
  display: none;
}
.ask-page .email-address {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  word-break: break-all;
}
.ask-page .email-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.ask-page .email-copy:hover {
  border-color: var(--accent-soft);
  background: rgba(184, 146, 74, .10);
}
.ask-page .email-copy.is-copied {
  border-color: var(--accent);
  background: rgba(184, 146, 74, .14);
}
.ask-page .email-copy svg {
  display: block;
  width: 15px;
  height: 15px;
}
.ask-page .email-copy .icon-check {
  display: none;
}
.ask-page .email-copy.is-copied .icon-copy {
  display: none;
}
.ask-page .email-copy.is-copied .icon-check {
  display: block;
}
.ask-page .email-fallback {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- FAQ (на базе .faq / .faq-item из site.css) --- */
.ask-page .faq {
  max-width: 820px;
  gap: 14px;
}
.ask-page .faq-item {
  background: #fffdf9;
  border-color: #e0d9c8;
  box-shadow: 0 1px 2px rgba(60, 42, 14, .05), 0 10px 22px -20px rgba(60, 42, 14, .45);
  transition: opacity .42s ease, transform .42s cubic-bezier(.16, 1, .3, 1),
    border-color .24s ease, box-shadow .24s ease;
}
.ask-page .faq-item:hover {
  border-color: #ddd2b8;
}
.ask-page .faq-item[open] {
  border-color: #dcd2bb;
  box-shadow: 0 1px 2px rgba(60, 42, 14, .06), 0 16px 32px -24px rgba(60, 42, 14, .5);
}
.ask-page .faq-a {
  font-size: 16px;
  line-height: 1.6;
}
.ask-page .faq-support-link {
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 2px;
}
.ask-page .faq-support-link:hover {
  text-decoration-color: var(--accent);
}

/* Многоабзацные ответы (оплата двумя способами) */
.ask-page .faq-a p {
  margin: 0 0 10px;
}
.ask-page .faq-a p:last-child {
  margin-bottom: 0;
}
.ask-page .faq-a .faq-way b {
  color: var(--text);
}

/* ============ Проявление блоков при прокрутке ============ */
.ask-page .official-note {
  transition: opacity .42s ease, transform .42s cubic-bezier(.16, 1, .3, 1);
}
.ask-page .contact-card.is-hidden,
.ask-page .official-note.is-hidden,
.ask-page .faq-item.is-hidden {
  opacity: 0;
  transform: translateY(12px);
}

/* --- Адаптив --- */
@media (max-width: 760px) {
  .ask-page .contact-section,
  .ask-page .faq-section {
    padding: 54px 0 60px;
  }
  .ask-page .section-head {
    margin-bottom: 30px;
  }
  .ask-page .contact-card {
    padding: 28px 22px 24px;
  }
  .ask-page .email-copy {
    min-height: 44px;
  }
  .ask-page .contact-tg {
    min-height: 48px;
  }
}
