.expert-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.expert-item {
  width: 100%;
  max-width: none;
  color: #4d5359;
}

.expert-item__date {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 16px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  color: #464c52;
}

.expert-item__date-line {
  width: 2rem;
  height: 0.22rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2596d4;
}

.expert-item__question,
.expert-item__answer {
  font-size: 16px;
}

.expert-item__question {
  margin-bottom: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 1.1rem;
  background: #41738b;
  color: #ffffff;
  font-style: italic;
  font-weight: 600;
}

.expert-item__answer {
  padding: 0 2rem;
  color: #4d5359;
  font-weight: 400;
}

.home-expert-wrapper {
  background-image: none;
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-expert-wrapper > p {
  font-weight: 600;
}

.expert-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.4rem;
  width: min(100%, 860px);
  padding: 1.4rem;
  border: 1px solid #e7edf1;
  border-radius: 0.7rem;
  box-sizing: border-box;
  background: #ffffff;
  color: #26313a;
  box-shadow: 0 18px 45px -35px rgba(16, 67, 122, 0.5);
}

.expert-form__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}

.expert-form__field label {
  margin-bottom: 0.45rem;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #26313a;
}

.expert-form__field input,
.expert-form__field textarea,
.expert-form__field select {
  width: 100%;
  border: 1px solid #d4dee5;
  border-radius: 0.45rem;
  box-sizing: border-box;
  background: #ffffff;
  color: #26313a;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.expert-form__field input,
.expert-form__field select {
  height: 46px;
  padding: 0.65rem 0.85rem;
}

.expert-form__field select {
  appearance: auto;
}

.expert-form__field textarea {
  min-height: 260px;
  padding: 0.8rem 0.85rem;
  resize: vertical;
}

.expert-form__field input:focus,
.expert-form__field textarea:focus,
.expert-form__field select:focus {
  border-color: #2596d4;
  box-shadow: 0 0 0 3px rgba(37, 150, 212, 0.16);
  outline: none;
}

.expert-form__field--wide-label,
.expert-form__field--question {
  grid-column: 1 / -1;
}

.expert-form__consent {
  display: flex;
  align-items: flex-start;
  grid-column: 1 / -1;
  gap: 0.7rem;
  margin: 0.15rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid #e7edf1;
  border-radius: 0.55rem;
  background: #f8fbfd;
  font-size: 14px;
  line-height: 1.35;
  color: #4d5359;
}

.expert-form__consent input {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  accent-color: #ffee00;
  outline: 2px solid #ffee00;
  outline-offset: 1px;
}

.expert-form__submit {
  justify-self: start;
  min-width: 190px;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 0.45rem;
  background: #2596d4;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px -16px rgba(16, 67, 122, 0.75);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.expert-form__submit:hover {
  background: #10437a;
  box-shadow: 0 16px 28px -18px rgba(16, 67, 122, 0.85);
  transform: translateY(-1px);
}

.expert-form__submit:active {
  transform: translateY(0);
}

.expert-form .contact-form-message {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  font-weight: 700;
}

.list.expert .list_items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .expert-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1.8rem;
  }

  .home-expert-wrapper {
    background-image: var(--home-expert-bg);
    padding: 2rem 1rem 2rem 1rem;
  }

  .expert-list {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
  }

  .expert-item__date {
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .expert-item__date-line {
    width: 2.5rem;
  }

  .expert-item__question {
    margin-bottom: 2rem;
    border-radius: 1.5rem;
  }

  .list.expert .list_items {
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
  }
}

@media (min-width: 1400px) {
  .home-expert-wrapper {
    padding: 2rem 8rem 2rem 36rem;
  }
}
