/* Start Ants Hero */
.post-template-pest-ants .hero h1 {
  max-width: 578px;
  margin-bottom: 25px;
}
.post-template-pest-ants .hero-image {
  width: 64.53vw;
  height: 36.17vw;
  bottom: -0.72vw;
  right: -6.54vw;
}

@media (orientation: portrait), (max-width: 768px), (max-height: 460px) {
  .post-template-pest-ants .hero.hero--secondary {
    padding-bottom: 0;
    padding-top: calc(65px + 4.5vw);
  }
  .post-template-pest-ants .hero-image {
    width: 95vw;
    max-width: 766px;
    height: auto;
  }
}

@media (max-width: 880px) {
  .hero__wrapper > span {
    font-size: 95px;
  }
}
@media (max-width: 850px) {
  .hero__wrapper {
    margin-bottom: 0;
  }
  body .hero.hero--secondary h1 {
    margin-bottom: 25px;
  }
}

@media (orientation: landscape) and (max-height: 900px) and (min-height: 520px) {
  .post-template-pest-ants .hero-image {
    bottom: 5vw;
  }
}

@media (max-width: 440px) {
  .hero__wrapper > span {
    font-size: calc(40px + 5vw);
  }
  body .hero.hero--secondary h1 {
    font-size: calc(var(--textFontSizeXL) - 2px);
  }
  .post-template-pest-ants .hero-image {
    margin-top: 0;
  }
}
/* End Ants Hero */

/* Start Ants treatments */
.ants-treatments {
  position: relative;
  color: white;
  padding: 0 var(--sidePadding);
}

.ants-treatments::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: rgba(12, 99, 47, 1);
}

.ants-treatments::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    360deg,
    rgba(203, 213, 11, 0.2) 34.13%,
    rgba(12, 99, 47, 0.2) 100%
  );
  z-index: -1;
}

.ants-treatments__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: -2;
}
.ants-treatments__wrapper {
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}
.ants-treatments__flex {
  display: flex;
  gap: 5.79vw;
}
.ants-treatments__flex > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 340px;
}
.ants-treatments__title {
  text-align: center;
  font-size: var(--textFontSizeL);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 310px;
  width: 100%;
  margin-bottom: 25px;
}
.ants-treatments__content {
  font-size: var(--textFontSizeS);
  font-weight: 400;
  font-family: var(--secondaryFont);
  text-align: justify;
  width: 100%;
}
.ants-treatments__content strong {
  font-weight: 600;
}
.ants-treatments__list {
  display: flex;
  min-height: 875px;
  gap: 4.63vw;
}
.ants-treatments__list li {
  width: 240px;
  height: 100%;
  display: flex;
  justify-content: end;
  flex-direction: column;
}
.ants-treatments__item > div {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: calc(100% - 325px);
  background: var(--green3);
  padding: 140px 15px 25px;
}
.ants-treatments__list li:nth-child(2) {
  justify-content: start;
}
.ants-treatments__list li:nth-child(2) > div {
  padding-top: initial;
  padding-bottom: 140px;
  padding-top: 25px;
  flex-direction: column-reverse;
}
.ants-treatments__item-title {
  text-align: center;
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeM);
  font-weight: 600;
  line-height: 1.33;
  margin-bottom: 20px;
}
.ants-treatments__list li:nth-child(2) .ants-treatments__item-title {
  order: 1;
}
.ants-treatments__item-content {
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeS);
  font-weight: 400;
  line-height: 1.26;
  text-align: justify;
}
.ants-treatments__item-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  display: block;
  position: absolute;
  top: -120px;
  background: var(--greenLight);
  right: 0;
  border-radius: 50%;
  overflow: hidden;
}
.ants-treatments__list li:nth-child(2) .ants-treatments__item-image {
  top: initial;
  bottom: -120px;
}
.ants-treatments__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .ants-treatments__flex,
  .ants-treatments__list {
    gap: var(--sidePadding);
  }
}

@media (max-width: 1050px) {
  .ants-treatments {
    padding: 85px var(--sidePadding) 0;
  }
  .ants-treatments__flex {
    flex-direction: column;
    align-items: center;
    gap: 180px;
  }
  .ants-treatments__flex > div {
    max-width: 766px;
  }
  .ants-treatments__title {
    max-width: 766px;
  }
  .ants-treatments__list {
    min-height: auto;
  }
  .ants-treatments__list li {
    height: auto;
  }
  .ants-treatments__item-title {
    min-height: 53px;
    display: flex;
    align-items: center;
  }
  .ants-treatments__item > div {
    height: 100%;
    padding-bottom: 100px;
  }
  .ants-treatments__item > div {
    padding-top: 130px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .ants-treatments__list li:nth-child(2) > div {
    padding-top: 130px;
  }
  .ants-treatments__item-content {
    margin-bottom: auto;
    max-height: 250px;
    overflow: auto;
  }
  .ants-treatments__list li:nth-child(2) .ants-treatments__item-image {
    top: -120px;
    bottom: initial;
  }
}

@media (max-width: 750px) {
  .ants-treatments {
    padding-bottom: 85px;
  }
  .ants-treatments__flex {
    gap: 45px;
  }
  .ants-treatments__flex > div {
    max-width: 460px;
  }
  .ants-treatments__list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
  }
  .ants-treatments__list li {
    width: 100%;
    max-width: 380px;
  }
  .ants-treatments__list li > div {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    column-gap: 20px;
    height: auto;
    min-height: 300px;
    max-height: initial;
    border-radius: 30px;
    overflow: hidden;
  }
  .ants-treatments__list .ants-treatments__item-title {
    min-height: initial;
    font-size: calc(var(--textFontSizeL) - 5px);
    text-align: left;
    margin-bottom: 10px;
    margin-top: 15px;
    padding: 0 25px;
  }
  .ants-treatments__item-content {
    padding: 0 25px 25px;
    max-height: initial;
  }
  .ants-treatments__list li:nth-child(2) > div {
    padding: 0;
    padding-bottom: 25px;
  }
  .ants-treatments__list li:nth-child(2) .ants-treatments__item-title {
    order: initial;
  }
  .ants-treatments__list li picture {
    position: initial;
    grid-row: 1/2;
    margin: auto;
    border-radius: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1/0.8;
  }
}
/* End Ants treatments */

/* Start Ants types */
.ants-types {
  position: relative;
  padding: 85px var(--sidePadding) 0;
}
.ants-types__wrapper {
  width: 100%;
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}
.ants-types__header {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 35px;
}
.ants-types__header-title {
  width: 100%;
  max-width: 570px;
  font-size: var(--textFontSizeL);
  text-transform: uppercase;
}
.ants-types__header-content {
  width: 100%;
  max-width: 570px;
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeS);
  font-weight: 400;
  line-height: 1.26;
  text-align: justify;
}
.ants-types__header-content strong {
  font-weight: 600;
}
.ants-types__list ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 25px;
  row-gap: 50px;
}
.ants-types__item {
  position: relative;
  width: 100%;
  aspect-ratio: 425/625;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 45px 25px;
}
.ants-types__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.ants-types__item > div {
  padding: 30px 35px;
  background: white;
  border-radius: 30px;
  outline: 1px solid var(--green3);
  outline-offset: -15px;
  height: 275px;
  display: flex;
  flex-direction: column;
}
.ants-types__item-icon {
  min-width: 60px;
  min-height: 60px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--green3);
}
.ants-types__item-icon svg {
  width: 40px;
  height: 40px;
  display: block;
  --iconColor1: var(--green3);
}
.ants-types__item-title {
  max-width: 317px;
  width: 100%;
  margin: 0 auto 20px;
  text-align: center;
  font-size: var(--textFontSizeM);
  font-family: var(--secondaryFont);
  font-weight: 600;
}
.ants-types__item-content {
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeS);
  font-weight: 400;
  text-align: justify;
  flex-grow: 1;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ants-types__item-content::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1100px) {
  .ants-types__item {
    padding: 35px 20px;
  }
  .ants-types__item > div {
    padding: 30px;
  }
}
@media (max-width: 1050px) {
  .ants-types__list ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ants-types__header {
    flex-direction: column;
    gap: 25px;
  }
  .ants-types__header-title {
    margin: 0 auto;
    text-align: center;
  }
  .ants-types__header-content {
    text-align: center;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .ants-types__list ul {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
/* End Ants types */

/* Start Ants elimination */
.ants-elimination {
  padding: 85px var(--sidePadding) 0;
}
.ants-elimination__wrapper {
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}
.ants-elimination__title {
  max-width: 666px;
  margin: 0 auto 45px;
  font-size: var(--textFontSizeL);
  text-transform: uppercase;
  text-align: center;
}
.ants-elimination__containter {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 50px;
  row-gap: 20px;
}
.ants-elimination__content {
  font-size: var(--textFontSizeS);
  font-family: var(--secondaryFont);
  text-align: justify;
  line-height: 1.2;
  width: 100%;
}
.ants-elimination__content-list {
  width: 100%;
  max-width: 590px;
  grid-column: 2/3;
  grid-row: 1/3;
}
.ants-elimination__content ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}
.ants-elimination__content ul li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: var(--textFontSizeM);
  font-weight: 600;
}
.ants-elimination__content strong {
  font-weight: 600;
}
.ants-elimination__cta {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}
.ants-elimination__cta .button--primary {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
@media (max-width: 950px) {
  .ants-elimination__containter {
    grid-template-columns: 1fr;
  }
  .ants-elimination__content ul li {
    text-align: left;
  }
  .ants-elimination__content-list {
    grid-column: auto;
    grid-row: auto;
  }
}
/* End Ants elimination */

/* Start Ants prevention */
.ants-prevention {
  padding: 85px var(--sidePadding) 50px;
}
.ants-prevention__wrapper {
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}
.ants-prevention__title {
  text-align: center;
  font-size: var(--textFontSizeL);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 666px;
  width: 100%;
  margin: 0 auto 50px;
}
.ants-prevention__container {
  min-height: 625px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 45px 25px;
  overflow: hidden;
  border-radius: 30px;
}
.ants-prevention__container::before {
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.ants-prevention__list {
  display: flex;
  gap: 4.34vw;
  color: white;
}
.ants-prevention__list li {
  background: var(--green3);
  border-radius: 30px;
  outline: 1px solid white;
  outline-offset: -15px;
  padding: 30px 35px;
  width: 33%;
  min-height: 266px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ants-prevention__list li::before {
  content: "";
  display: block;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDQiIGhlaWdodD0iNDQiIHZpZXdCb3g9IjAgMCA0NCA0NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI4IDE2TDE2IDI4TTE2IDE2TDI4IDI4TTQyIDIyQzQyIDMzLjA0NTcgMzMuMDQ1NyA0MiAyMiA0MkMxMC45NTQzIDQyIDIgMzMuMDQ1NyAyIDIyQzIgMTAuOTU0MyAxMC45NTQzIDIgMjIgMkMzMy4wNDU3IDIgNDIgMTAuOTU0MyA0MiAyMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 40px;
  height: 40px;
}
.ants-prevention__item-content {
  font-size: var(--textFontSizeS);
  font-family: var(--secondaryFont);
  font-weight: 400;
  line-height: 1.26;
  text-align: justify;
}
.ants-prevention__item-content strong {
  font-weight: 500;
}
.ants-prevention__img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  top: 0;
  left: 0;
}
.ants-prevention__content {
  font-size: var(--textFontSizeS);
  font-family: var(--secondaryFont);
  line-height: 1.26;
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .ants-prevention__list {
    gap: var(--sidePadding);
  }
}
@media (max-width: 1050px) {
  .ants-prevention__list {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .ants-prevention__list li {
    width: 100%;
    min-height: 240px;
    max-width: 480px;
  }
}
/* End Ants prevention */

/* Start Ants control */
.ants-control {
  padding: 85px var(--sidePadding) 0;
  overflow: hidden;
}
.ants-control__wrapper {
  max-width: var(--maxScreenWidth);
  margin: 0 auto;
}
.ants-control__title {
  text-align: center;
  font-size: var(--textFontSizeL);
  font-weight: 700;
  text-transform: uppercase;
  width: 100%;
  max-width: 828px;
  margin: 0 auto 25px;
}
.ants-control__content {
  font-size: var(--textFontSizeS);
  font-family: var(--secondaryFont);
  font-weight: 400;
  line-height: 1.26;
  text-align: justify;
}
.ants-control__content strong {
  font-weight: 600;
}
.ants-control__content ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 20px;
  margin: 15px 0;
}
.ants-control__content ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: var(--textFontSizeM);
  font-weight: 600;
  position: relative;
  text-align: left;
}
@media (max-width: 680px) {
  .ants-control__content ul {
    grid-template-columns: 1fr;
  }
}

/* End Ants control */

.post-template-pest-ants .feedback__slider h2 {
  max-width: 782px;
}
.post-template-pest-ants .pests-list {
  padding-bottom: 0;
}
