/*=============================================
=            Шаблон            =
=============================================*/

*,
*::before,
*::after {
  box-sizing: border-box;
}
*:not(p) {
  margin: 0;
}
body {
  font-size: 100%;
  line-height: 1.5;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  color: #555555;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
#root,
#__next {
  isolation: isolate;
}

.container {
  width: 100%;
  max-width: 1140px;
  padding-inline: 15px;
  margin-inline: auto;
}

/*=============================================
=            Header            =
=============================================*/

header {
  background-color: #3b4348;
  color: #fff;
  padding: 10px 0;
}

.logo,
.logo img {
  width: 255px;
}

@media (max-width: 768px) {
  .logo,
  .logo img {
    width: 200px;
    margin-inline: auto;
  }
}

/*----------  Навигация  ----------*/

nav {
  background-color: #333333;
  max-height: 64px;
}

nav .menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drop-menu {
  position: relative;
  background-color: #4d78ec;
  transition: all 0.4s ease-out;
}

.drop-menu > a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 17px 50px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.drop-menu:hover {
  background-color: #39b0ff;
  transition: all 0.4s ease-out;
}

.drop-menu__list {
  width: 253px;
  margin: 0;
  padding: 0;
  position: absolute;
  background-color: #00609f;
  height: 0;
  overflow: hidden;
  list-style: none;
  z-index: 100;
}

.drop-menu__list a {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 1rem;
  line-height: 1.5;
  padding: 8px 20px;
  text-decoration: none;
  transition: all 0.4s ease-out;
}

.drop-menu__list a:hover {
  background-color: #262626;
}

.drop-menu__list.show {
  transition: height 500ms ease-out;
  animation-name: growHeight;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
}

.drop-menu__list.hide {
  transition: height 500ms ease-out;
  animation-name: shrinkHeight;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
}

@keyframes growHeight {
  from {
    height: 0;
  }
  to {
    height: 400px;
  }
}

@keyframes shrinkHeight {
  from {
    height: 400px;
  }
  to {
    height: 0;
  }
}

.menu-top {
  display: flex;
  justify-content: flex-start;
  margin-left: 30px;
}

.menu-top > .menu-top__item a {
  color: #fff;
  display: block;
  padding: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease-out;
}

.menu-top > .menu-top__item a:hover {
  background-color: #454545;
  transition: all 0.4s ease-out;
}

.menu-search {
  display: block;
  width: 250px;
  margin-left: auto;
}

.menu-search form {
  position: relative;
  display: flex;
}

.menu-search form input {
  background-color: #fff;
  color: #555555;
  border: 3px solid transparent;
  padding: 5px;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-search__btn {
  border: 0;
  padding: 6px 14px;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 10;
  background-color: #39b0ff;
  cursor: pointer;
  transition: all 0.4s ease-out;
}

.menu-search__btn:hover {
  background-color: #4d78ec;
  transition: all 0.4s ease-out;
}

.menu-search__svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

@media (max-width: 1000px) {
  .menu-top,
  .menu-search {
    display: none;
  }
}

.mobile-menu {
  position: relative;
  display: none;
  color: #fff;
}

.mobile-menu > svg {
  cursor: pointer;
  opacity: 0.5;
}

@media (max-width: 1000px) {
  .mobile-menu {
    display: block;
  }

  .menu-mobile__list {
    position: absolute;
    right: -16px;
    top: 42px;
    width: 70vw;
    /* padding: 20px 0; */
    height: 0;
    background-color: #333333;
    z-index: 20;
    overflow: hidden;
  }

  .menu-mobile__list.show {
    transition: height 500ms ease-out;
    animation-name: growMobileHeight;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
  }

  .menu-mobile__list.hide {
    transition: height 500ms ease-out;
    animation-name: shrinkMobileHeight;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
  }

  .menu-mobile__item a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
}

@keyframes growMobileHeight {
  from {
    height: 0;
  }
  to {
    height: 200px;
  }
}

@keyframes shrinkMobileHeight {
  from {
    height: 200px;
  }
  to {
    height: 0;
  }
}

.breadcrumbs {
  background-color: #f1f1f1;
  color: #3ab0ff;
  padding-block: 10px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.breadcrumbs span {
  padding-inline: 2px;
}

.breadcrumbs a {
  text-decoration: none;
  color: #555555;
  transition: all 0.4s ease-out;
}

.breadcrumbs a:hover {
  color: #3ab0ff;
  transition: all 0.4s ease-out;
}

@media (max-width: 768px) {
  .breadcrumbs {
    display: none;
  }
}

/*=====  End of Header  ======*/

/*=============================================
=            Списки карточек        =
=============================================*/

.list-grid {
  display: flex;
  /* column-gap: 20px; */
  column-gap: calc((1140px - 30px - 168px * 6) / 5);
  row-gap: 30px;
  flex-wrap: wrap;
  margin-block: 60px;
}

.list-grid > figure {
  flex-basis: 168px;
  /* flex-grow: 1; */
}

figure.card img {
  width: 100%;
  object-fit: cover;
}

figure.card img:hover {
  opacity: 0.7;
}

figcaption .card__title {
  padding-top: 6px;
}

figcaption .card__title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s ease-out;
}

figcaption .card__title a:hover {
  color: #3ab0ff;
  transition: all 0.4s ease-out;
}

/*=====  End of Списки  ======*/

/*=============================================
=            Страница карточки            =
=============================================*/

.card-col {
  display: flex;
}

.card-col > div:first-child {
  flex-basis: 40%;
}

.card-col > div:last-child {
  flex-basis: 60%;
  padding-left: 40px;
}

@media (max-width: 1000px) {
  .card-col {
    flex-direction: column;
  }
  .card-col > div:is(:first-child, :last-child) {
    flex-basis: 100%;
    padding: 0;
  }
}

.splide__slide > a > img {
  width: 100%;
  object-fit: cover;
}

.card-col h1 {
  font-size: 1.8rem;
}

@media (max-width: 1000px) {
  .card-col h1 {
    margin-top: 30px;
  }
}

.card-col .stars {
  margin-top: 10px;
}
.card-col .stars svg {
  width: 24px;
  height: 24px;
}

.card-col .btn {
  display: inline-block;
  border: none;
  background-color: #73b320;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 20px;
  padding: 15px 35px;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.4s ease-out;
}
.card-col .btn:hover {
  background-color: #39b0ff;
  color: #ffffff;
  transition: all 0.4s ease-out;
}

/*=====  End of Страница карточки  ======*/

/*=============================================
=            Статьи            =
=============================================*/

.articles {
  width: 100%;
}

.articles .articles__link {
  text-decoration: none;
  color: initial;
}

.articles__list {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  padding: 10px;
  transition: all 0.5s;
  border-radius: 5px;
}

.articles__list:hover {
  background-color: #f0f0f088;
  transition: all 0.5s;
}

@media (max-width: 1000px) {
  .articles__list {
    flex-direction: column;
  }
}

.articles__img {
  min-width: 370px;
}

.articles__img img {
  max-width: 100%;
  width: 370px;
  height: 260px;
  object-fit: cover;
  border-radius: 5px;
  transition: all 0.3s ease-out;
  border: 1px solid transparent;
}

.articles__list:hover .articles__img img {
  opacity: 0.8;
  transition: all 0.3s ease-in;
  border: 1px solid #39b0ff;
}

.articles__list h2 {
  color: #181818;
  font-family: "Poppins", Sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: none;
  font-style: normal;
  text-decoration: none;
  line-height: 1.2em;
  letter-spacing: 0em;
  word-spacing: 0em;
  transition: all 0.3s ease-out;
}
.articles__list:hover h2 {
  color: #39b0ff;
  transition: all 0.3s ease-in;
  transform: scale(101%);
}

.articles__date {
  text-align: right;
  color: #bebcbc;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  text-decoration: none;
  line-height: 1.5em;
  letter-spacing: -0.01em;
  word-spacing: 0em;
}

.articles hr {
  height: 0;
  border: 0;
  border-top: 1px solid #bebcbc;
  margin-block: 20px;
}

/*=====  End of Статьи  ======*/

/*=============================================
=            Другое            =
=============================================*/

.stars {
  display: flex;
  color: #f4ca49;
}

.stars svg {
  width: 16px;
  height: 16px;
}

/*=====  End of Другое  ======*/

/*=============================================
=            Футер            =
=============================================*/

.footer-menu {
  background-color: #313131;
}

.footer-menu__list {
  display: flex;
  gap: 40px;
}

.footer-menu a {
  display: block;
  padding: 22px 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .footer-menu__list {
    flex-direction: column;
    gap: 0;
    padding-block: 40px;
  }
  .footer-menu a {
    padding: 15px 0;
    font-size: 1rem;
  }
}

.footer-copy {
  background-color: #262626;
  color: #adadad;
  font-size: 0.9rem;
  padding: 30px 0;
}

@media (max-width: 1000px) {
  .footer-copy .container {
    text-align: center;
  }
}

/*=====  End of Футер  ======*/
