.list-banner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  background: #ece6dc;
}
.list-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.list-wrap { padding: 22px 0 36px; }

.qa-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.qa-form-wrap,
.qa-form-card,
.qa-block,
.qa-side {
  min-width: 0;
}

.qa-form-card,
.qa-consult,
.qa-block {
  background: #fff;
  border-radius: 5px;
  /* box-shadow: var(--shadow); */
}

.qa-form-card { padding: 22px 24px 24px; }

.qa-mini-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.qa-mini-cat {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee7dc;
  border-radius: 12px;
  background: #faf7f2;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qa-mini-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(28, 43, 58, .08);
}
.qa-mini-cat img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  background: #ece6dc;
}
.qa-mini-cat span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #334048;
}
.qa-mini-cat:hover span { color: var(--red); }

.qa-form__title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.qa-form__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
}

.qa-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.qa-form__row .qa-form__group { margin-bottom: 0; }

.qa-form__group {
  margin-bottom: 16px;
}
.qa-form__group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.qa-form__group label em {
  margin-left: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
}
.qa-form__group input,
.qa-form__group textarea {
  width: 100%;
  border: 1px solid #eadfd1;
  border-radius: 10px;
  background: #faf7f2;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.qa-form__group input {
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
}
.qa-form__group textarea {
  min-height: 140px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
}
.qa-form__group input:focus,
.qa-form__group textarea:focus {
  border-color: #d9b3ae;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(180, 35, 44, .08);
}
.qa-form__hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.qa-form__example {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed #e3d7c7;
  border-radius: 12px;
  background: #fffdfb;
}
.qa-form__example strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink);
}
.qa-form__example p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.qa-form__example p + p { margin-top: 6px; }

.qa-form__msg {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.qa-form-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 9999;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(90vw, 420px);
  padding: 12px 18px;
  border-radius: 10px;
  background: rgba(28, 43, 58, .92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 28px rgba(28, 43, 58, .22);
  display: none;
}
.qa-form-toast.is-ok { background: rgba(47, 125, 74, .95); }
.qa-form-toast.is-err { background: rgba(192, 57, 43, .95); }
.qa-form__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.qa-form__submit,
.qa-form__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.qa-form__submit {
  background: var(--red);
  color: #fff;
}
.qa-form__submit:hover { background: var(--red-dark); }
.qa-form__contact {
  background: #fff1ef;
  color: var(--red);
}
.qa-form__contact:hover {
  background: var(--red);
  color: #fff;
}

.qa-block {
  margin-top: 18px;
  padding: 18px 20px 16px;
}

.qa-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.qa-block__head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 18px;
  font-weight: 700;
}
.qa-block__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--red);
}

.qa-help__ask {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: var(--red);
  font-weight: 600;
}
.qa-help__ask svg {
  width: 15px;
  height: 15px;
}
.qa-help__ask:hover { color: var(--red-dark); }

.qa-help-list { list-style: none; }
.qa-help-item {
  border-bottom: 1px dashed #e3d7c7;
}
.qa-help-item:last-child { border-bottom: 0; }
.qa-help-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px 0;
}
.qa-help-item strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  color: #334048;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qa-help-item span {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}
.qa-help-item a:hover strong { color: var(--red); }

.qa-related-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}
.qa-related-list li {
  min-width: 0;
  overflow: hidden;
}
.qa-related-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  overflow: hidden;
  color: #334048;
  font-size: 14px;
}
.qa-related-list a i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5bcc0;
}
.qa-related-list span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.qa-related-list a:hover { color: var(--red); }

.qa-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-consult {
  display: block;
  overflow: hidden;
  color: #fff;
  background:var(--red);
  min-height: 168px;
  padding: 22px 20px;
}
.qa-consult__kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 11px;
  letter-spacing: 1px;
}
.qa-consult strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.3;
}
.qa-consult p {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  margin-bottom: 14px;
}
.qa-consult span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.qa-consult:hover span { background: #fff7f4; }

.qa-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.qa-cat-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: none;
  transition: transform .2s ease;
}
.qa-cat-card:hover { transform: translateY(-2px); }
.qa-cat-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: linear-gradient(160deg, #ece6dc, #d8cfc3);
}
@media (max-width: 1024px) {
  .list-banner img { height: 160px; }
  .qa-page-layout { grid-template-columns: minmax(0, 1fr); }
  .qa-mini-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .qa-form-card,
  .qa-block { padding: 16px; }
  .qa-form__title { font-size: 18px; }
  .qa-mini-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa-related-list { grid-template-columns: minmax(0, 1fr); }
  .qa-form__row { grid-template-columns: minmax(0, 1fr); }
  .qa-form__actions {
    flex-direction: column;
    gap: 10px;
  }
  .qa-form__submit,
  .qa-form__contact {
    width: 100%;
  }
  .qa-help-item a { gap: 10px; }
  .qa-help-item span { white-space: nowrap; }
}


@media(max-width:1024px){
  .qa-cat-grid{
    display: none;
  }
}