.page-template-page-blog .header {
  border-color: rgba(247, 247, 247, 0.1);
}
.page-template-page-blog .header .header-menu .menu-link {
  color: #F5F2EE;
}
.page-template-page-blog .header .header-menu .menu-link:after {
  background-color: #F5F2EE;
}
.page-template-page-blog .header .button-primary {
  border-color: #F5F2EE;
  background-color: #F5F2EE;
  color: #576303;
}
.page-template-page-blog .header .button-primary:hover {
  background-color: transparent;
  color: #F5F2EE;
}

.hero {
  background-color: #576303;
  height: 510px;
}
.hero .container-narrow {
  height: auto;
}
.hero-title-wrapper {
  margin-top: 80px;
}
.hero-title-wrapper .suptitle {
  text-align: center;
  color: #FFFFFF;
  font-size: 18px;
  line-height: 32px;
  letter-spacing: 0.18px;
  margin-bottom: 16px;
}
.hero-title-wrapper .title {
  text-align: center;
  color: #FFFFFF;
  font-size: 52px;
  line-height: 62px;
  margin-bottom: 16px;
}
.hero-title-wrapper .subtitle {
  text-align: center;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 38px;
}

.blog {
  padding: 100px 0 120px 0;
  background-color: #F7F7F7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.blog .blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 60px 24px;
  margin-bottom: 40px;
}
.blog .blog-link {
  height: 100%;
  display: block;
}
.blog .blog-link .image-wrapper {
  display: block;
  position: relative;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}
.blog .blog-link .image-wrapper:hover:after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  height: 100%;
}
.blog .blog-link .image-wrapper:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgb(0, 0, 0) 100%);
  z-index: 2;
  transition: all 0.3s ease;
}
.blog .blog-link img {
  height: 350px;
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.blog .blog-link .post-title {
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0.22px;
  margin-bottom: 16px;
}
.blog .blog-link .post-time {
  color: #373737;
  font-size: 20px;
  font-weight: 600;
  line-height: 38px;
  opacity: 0.5;
}
.blog .pagination {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  border-radius: 37px;
  background: #FFF;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.05);
  padding: 10px 27px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog .pagination .page-numbers {
  font-family: "Kumla", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog .pagination .page-numbers.next {
  margin-left: 5px;
}
.blog .pagination .page-numbers.prev {
  margin-right: 5px;
}
.blog .pagination .page-numbers:not(.next, .prev) {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 40px;
  color: #576303;
  background: #FFFFFF;
  transition: all 0.3s ease;
}
.blog .pagination .page-numbers:not(.next, .prev):hover {
  color: #FFFFFF;
  background: #576303;
}
.blog .pagination .page-numbers.current {
  background: #576303;
  color: #FFFFFF;
}

section.ages .ages-item:last-child .ages-link {
  border-right: none;
}
section.ages .ages-item i svg path {
  fill: #576303;
}
section.ages .ages-item .age-descr {
  color: #576303;
  margin-bottom: 32px;
  line-height: 26px;
}
section.ages .ages-item .button-secondary {
  border-color: #576303;
}
section.ages .ages-link {
  background-color: #FFFFFF;
  border-right: 1px solid rgba(87, 99, 3, 0.2);
  border-bottom: 1px solid rgba(87, 99, 3, 0.2);
  border-top: 1px solid rgba(87, 99, 3, 0.2);
  padding: 80px 0;
}
section.ages .ages-link:hover {
  background-color: #576303;
}
section.ages .ages-link:hover i svg path {
  fill: #F5E6B7;
}
section.ages .ages-link:hover .age-descr {
  color: #F5E6B7;
}
section.ages .ages-link:hover span.cheese-link {
  border-color: #576303;
  background-color: #F5E6B7;
  color: #576303;
}
section.ages .ages-link:hover span.cheese-link:hover {
  pointer-events: none;
}

@media screen and (max-width: 1440px) {
  .hero {
    height: 500px;
  }
  .hero-title-wrapper {
    margin-top: 75px;
  }
  .hero-title-wrapper .title {
    font-size: 46px;
    line-height: 120%;
  }
  .hero-title-wrapper .subtitle {
    font-size: 16px;
    line-height: 30px;
  }
  .blog {
    padding: 60px 0 80px 0;
  }
  .blog .blog-list {
    gap: 40px 20px;
  }
  .blog .blog-link img {
    height: 300px;
  }
  .blog .blog-link .post-title {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 8px;
  }
  section.ages .ages-link {
    padding: 90px 0 50px 0;
  }
  section.ages .ages-item .age-descr {
    line-height: 30px;
    margin-bottom: 74px;
  }
  section.about .about-wrapper {
    margin-bottom: 120px;
  }
  section.about .about-title {
    max-width: 450px;
    margin-bottom: 24px;
  }
  section.about .about-descr {
    font-size: 20px;
    line-height: 38px;
    max-width: 550px;
  }
}
@media screen and (max-width: 1200px) {
  .hero {
    height: 440px;
  }
  .hero-title-wrapper {
    margin-top: 40px;
  }
  .hero-title-wrapper .title {
    font-size: 46px;
    line-height: 120%;
  }
  .hero-title-wrapper .subtitle {
    font-size: 16px;
    line-height: 30px;
  }
  .blog {
    padding: 30px 0 50px 0;
  }
  .blog .blog-list {
    gap: 40px 20px;
    margin-bottom: 30px;
  }
  .blog .blog-link .image-wrapper {
    margin-bottom: 30px;
  }
  .blog .blog-link img {
    height: 250px;
  }
  .blog .blog-link .post-title {
    font-size: 18px;
    line-height: 28px;
  }
  .blog .blog-link .post-time {
    font-size: 16px;
    line-height: 26px;
  }
  section.ages .ages-item:nth-child(3) .ages-link, section.ages .ages-item:nth-child(4) .ages-link {
    border-top: none;
  }
  section.ages .ages-item i {
    margin-bottom: 16px;
  }
  section.ages .ages-item .age-descr {
    margin-bottom: 24px;
  }
  section.ages .ages-link {
    padding: 60px 0;
  }
  section.about {
    padding: 80px 0 130px 0;
  }
  section.about .about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    margin-bottom: 80px;
  }
  section.about .about-wrapper .button {
    display: block;
  }
  section.about .about-title {
    max-width: 100%;
  }
  section.about .about-descr {
    max-width: 720px;
  }
  section.about .about-descr.description {
    margin-bottom: 24px;
  }
  section.about .about-content {
    order: 2;
  }
  section.about .about-image {
    display: block;
    order: 1;
    height: 450px;
    width: 720px;
    justify-self: center;
  }
  section.about .about-image img {
    -o-object-position: top;
       object-position: top;
  }
}
@media screen and (max-width: 768px) {
  .hero {
    height: 380px;
  }
  .hero-title-wrapper {
    margin: 35px auto 0 auto;
    max-width: 600px;
  }
  .hero-title-wrapper .suptitle {
    font-size: 16px;
    letter-spacing: 0.16px;
    margin-bottom: 8px;
  }
  .hero-title-wrapper .title {
    font-size: 32px;
    line-height: 42px;
  }
  .hero-title-wrapper .subtitle {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 25px;
    opacity: 0.7;
  }
  .blog {
    padding-top: 40px;
  }
  .blog .blog-list {
    gap: 32px 10px;
  }
  .blog .blog-link .image-wrapper {
    margin-bottom: 16px;
  }
  .blog .blog-link img {
    height: 200px;
  }
  .blog .blog-link .post-title {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.16px;
    margin-bottom: 8px;
  }
  section.ages .ages-item:nth-child(2) .ages-link {
    border-top: none;
  }
  section.ages .ages-item i {
    margin-bottom: 0;
  }
  section.ages .ages-item span.cheese-link {
    background: none;
    border-color: #576303;
  }
  section.ages .ages-item span.cheese-link:before {
    background-image: url("../icons/triangle-right-green.svg");
  }
  section.ages .ages-item .age-descr {
    margin-bottom: 0;
  }
  section.ages .ages-link {
    padding: 50px 32px;
  }
  section.about {
    padding: 80px 0 120px 0;
  }
  section.about .about-wrapper {
    max-width: 600px;
    margin: 0 auto 60px auto;
    gap: 60px;
  }
  section.about .about-image {
    width: 100%;
    height: 400px;
  }
  section.about .about-title {
    margin-bottom: 16px;
    letter-spacing: -0.64px;
  }
  section.about .about-descr {
    font-size: 16px;
    line-height: 26px;
  }
}
@media screen and (max-width: 640px) {
  .hero {
    height: 365px;
  }
  .hero-title-wrapper {
    margin-top: 20px;
  }
  .hero-title-wrapper .title {
    font-size: 28px;
    line-height: 34px;
  }
  .blog {
    background-color: #F5F2EE;
  }
  .blog .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog .blog-link img {
    height: 300px;
  }
}
@media screen and (max-width: 576px) {
  .blog .blog-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    margin-bottom: 20px;
    gap: 24px;
  }
  .blog .blog-link .image-wrapper {
    margin-bottom: 24px;
  }
  .blog .blog-link .post-title {
    font-size: 18px;
    line-height: 22px;
    letter-spacing: 0.18px;
  }
  section.ages .ages-link {
    padding: 32px 15px;
  }
  section.ages .ages-item .age-descr {
    line-height: 22px;
  }
  section.about {
    padding: 60px 0 100px 0;
  }
  section.about .about-wrapper {
    gap: 40px;
  }
  section.about .about-image {
    height: 225px;
  }
}