/* CTA блока раздела /ask/, подключается отдельно (?v=), common.css не правим */

.forum-cta {
  width: 100%;
  margin: 8px 0 18px;
}

.forum-cta__prompt {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: #12193f;
}

.forum-cta__prompt-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #8e4a28;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.forum-cta__prompt-btn:hover,
.forum-cta__prompt-btn:focus {
  color: #d58d01;
}

.forum-cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.forum-cta__btns .btn {
  margin: 8px;
}

.forum-cta__primary {
  font-weight: 700;
  white-space: nowrap;
}

.forum-cta__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 4px;
}

.forum-cta__filter-label {
  font-size: 14px;
  color: #595959;
}

.forum-cta__select {
  min-width: 240px;
  max-width: 100%;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  line-height: 1.3;
  color: #12193f;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%232d3e57' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid #2d3e57;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
}

.forum-cta--after-answer {
  margin: 16px 0 24px;
  padding: 12px 0 4px;
}

.forum-cta--after-answer .forum-cta__btns {
  justify-content: flex-start;
}

.forum-banner-wrap {
  width: 100%;
  margin-bottom: 20px;
}

.forum-banner-wrap .forum-banner {
  margin-bottom: 8px;
}

.forum-banner__phone {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #12193f;
}

.forum-banner__phone a {
  color: #8e4a28;
  font-weight: 700;
  text-decoration: underline;
}

.forum-banner__phone a:hover {
  color: #d58d01;
}

.forum-cta--aside {
  width: 100%;
  margin: 0 0 25px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.forum-cta--aside .btn {
  width: 100%;
  margin: 0;
  text-align: center;
}

/* На узком экране кнопки на всю ширину и не прячутся (в отличие от .btn-forum-aside) */
@media (max-width: 768px) {
  .forum-cta__btns {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .forum-cta__btns .btn {
    width: 100%;
    margin: 6px 0;
    box-sizing: border-box;
  }

  .forum-cta--after-answer .forum-cta__btns {
    justify-content: stretch;
  }

  .forum-cta__select {
    min-width: 0;
    width: 100%;
  }

  .forum-cta__filter {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 679px) {
  .forum-cta--after-answer {
    margin: 12px 0 20px;
  }

  .forum-cta,
  .forum-cta--after-answer,
  .forum-banner__phone,
  .forum-cta__btns,
  .forum-cta__primary,
  .forum-cta__secondary {
    display: block;
    width: 100%;
  }

  .forum-cta__btns {
    display: flex;
  }
}
