.blog {
  padding-block: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: rgba(255, 255, 255, 1);
}

@media (max-width: 767.95px) {
  .blog {
    padding-block: 0px;
    padding-inline: 20px;
    gap: 24px;
  }
}

.blog h2,
.blog p,
.blog button,
.blog span,
.blog a {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(0, 25, 87, 1);
  margin: 0;
  padding: 0;
}

h2.blog__title {
  font-family: "Room", sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: default;
}

@media (max-width: 767.95px) {
  h2.blog__title {
    font-size: 24px;
  }
}

.blog__filter {
  width: 100%;
}

@media (max-width: 767.95px) {
  .blog__filter {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}

button.blog__filter-open {
  display: none;
}

@media (max-width: 767.95px) {
  button.blog__filter-open {
    width: 100%;
    display: flex;
    border: 1px solid rgba(147, 147, 140, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
  }
}

.blog__filter-image {
  flex: 0 0 30px;
}

.blog__filter-image img {
  width: 30px;
  height: 30px;
}

p.blog__filter-text {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 0;
}

.blog__form {
}

@media (max-width: 767.95px) {
  .blog__form {
    display: none;
  }
}

.js-form-mobile-open {
  display: block;
}

.blog__fields {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767.95px) {
  .blog__fields {
    flex-direction: column;
    gap: 20px;
  }
}

.blog__field {
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__field:nth-child(1) {
  flex-basis: auto;
}

.blog__field:nth-child(2),
.blog__field:nth-child(3),
.blog__field:nth-child(4),
.blog__field:nth-child(5) {
  flex-basis: 21.6%;
}

@media (max-width: 767.95px) {
  div.blog__field:nth-child(1) {
    height: auto;
  }
  div.blog__field:nth-child(n + 2) {
    height: auto;
    flex-basis: 46px;
  }
}

.blog__field p,
.blog__field input,
.blog__field button {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(147, 147, 140, 1);
}

.blog__text {
  cursor: default;
}

.flatpickr-day.selected {
  background-color: rgba(147, 147, 140, 1) !important;
  color: rgba(255, 255, 255, 1) !important;
  border: none !important;
}

.blog__date-start,
.blog__date-finish {
  height: 100%;
  width: 100%;
  border: 1px solid rgba(147, 147, 140, 0.6);
  border-radius: 50px;
  padding-left: 30px;
}

@media (max-width: 1023.95px) {
  .blog__date-start,
  .blog__date-finish {
    padding-left: 15px;
  }
}

.blog__date-start {
}

.blog__date-finish {
}

.blog__icon {
  position: absolute;
  top: 50%;
  right: 30px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: none;
}

@media (max-width: 1023.95px) {
  .blog__icon {
    right: 18px;
  }
}

p.blog__error {
  display: none;
  position: absolute;
  top: 100%;
  color: rgb(220, 50, 50);
  text-transform: none;
}

.blog__btn-search,
.blog__btn-reset {
  height: 100%;
  width: 100%;
}

button.blog__btn-search {
  border-radius: 50px;
  background-color: rgba(121, 145, 99, 1);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 1);
  transition: all 0.3s ease;
}

@media (max-width: 767.95px) {
  button.blog__btn-search {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }
}

.blog__btn-search:hover {
  background-color: #663333;
  transition: all 0.3s ease;
}

button.blog__btn-reset {
  border: 1px solid rgba(147, 147, 140, 0.6);
  border-radius: 50px;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  transition: all 0.3s ease;
}

@media (max-width: 767.95px) {
  button.blog__btn-reset {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
  }
}

.blog__btn-reset:hover {
  border: 1px solid #616d8b;
  color: #616d8b;
  transition: all 0.3s ease;
}

.blog__articles {
}

.blog__articles-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 20px;
  column-gap: 24px;
}

@media (max-width: 1023.95px) {
  .blog__articles-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.95px) {
  .blog__articles-wrapper {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
}

.blog__articles-wrapper .blog__article:nth-child(n + 7) {
  display: none;
}

@media (max-width: 767.95px) {
  .blog__articles-wrapper .blog__article:nth-child(n + 4) {
    display: none;
  }
}

.blog__article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0px 3px 10px 0px rgba(102, 113, 129, 0.2);
}

@media (max-width: 599.95px) {
  .blog__article {
    gap: 12px;
    padding: 0px;
    box-shadow: none;
  }
}

.blog__article-row {
}

.blog__article-row:nth-child(1) {
  display: flex;
  justify-content: space-between;
}

.blog__article-row:nth-child(1) p {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(147, 147, 140, 1);
  cursor: default;
}

@media (max-width: 767.95px) {
  .blog__article-row:nth-child(1) p {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(147, 147, 140, 1);
    cursor: default;
  }
}

.blog__article-row:nth-child(2) {
  position: relative;
  width: 100%;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
}

@media (max-width: 767.95px) {
  .blog__article-row:nth-child(2) {
    height: 190px;
  }
}

.blog__article-row:nth-child(3) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 599.95px) {
  .blog__article-row:nth-child(3) {
    gap: 12px;
  }
}

.blog__article-date {
}

.blog__article-image {
  width: 100%;
  height: 100%;
}

.blog__article-image img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.95px) {
  .blog__article-image img {
    width: 100%;
  }
}

.blog__article-status {
  max-width: 150px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog__article-status span {
  width: fit-content;
  height: fit-content;
  display: block;
  font-weight: 600;
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 6px;
  cursor: default;
}

span.blog__article-status--blue {
  background-color: rgba(38, 130, 175, 1);
  color: rgba(255, 255, 255, 1);
}

span.blog__article-status--white {
  background-color: rgba(255, 255, 255, 1);
  color: rgba(0, 25, 87, 1);
}

span.blog__article-status--green {
  background-color: rgba(121, 145, 99, 1);
  color: rgba(255, 255, 255, 1);
}

p.blog__article-title {
  padding-inline: 8px;
}

p.blog__article-title,
p.blog__article-title span {
  font-weight: 500;
  line-height: 1.4;
  cursor: default;
}

@media (max-width: 767.95px) {
  p.blog__article-title,
  p.blog__article-title span {
    font-weight: 700;
  }
}

.blog__article-title span {
  text-transform: uppercase;
}

a.blog__article-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(147, 147, 140, 0.6);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(147, 147, 140, 1);
  padding-block: 12px;
  transition: all 0.3s ease;
}

.blog__article-link:hover {
  border: 1px solid #616d8b;
  color: #616d8b;
  transition: all 0.3s ease;
}

.blog__more {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

button.blog__btn-more {
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: rgba(121, 145, 99, 1);
}

@media (max-width: 767.95px) {
  button.blog__btn-more {
    font-weight: 700;
  }
}

p.blog__counter {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 767.95px) {
  p.blog__counter {
    line-height: 1.3;
    font-weight: 700;
  }
}
