@charset "UTF-8";
:root {
  --gray-dark-color: #323232;
  --gray-medium-color: #565656;
  --gray-normal-color: #7b7b7b;
  --gray-semilight-color: #cccccc;
  --gray-light-color: #f4f4f4;
  --light-color: #ffffff;
  --dark-color: #000000;
  --error-color: #e10000;
}

.red-hat-display-regular {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.red-hat-display-semibold {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.red-hat-display-medium {
  font-family: "Red Hat Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-bold {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

address {
  font-style: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

button {
  cursor: pointer;
  border: none;
  background-color: transparent;
}

body {
  margin: 0;
  color: var(--gray-medium-color);
  background-color: var(--light-color);
  font-family: "Lato", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
}
body main {
  padding-top: 60px;
}
@media screen and (min-width: 1440px) {
  body main {
    padding-top: 100px;
  }
}

.input {
  width: 0;
  opacity: 0;
  height: 30px;
  padding: 0;
  border: none;
  pointer-events: none;
  transition: all 0.3s ease;
}
.input::-moz-placeholder {
  color: var(--gray-normal-color);
  font-size: 12px;
}
.input::placeholder {
  color: var(--gray-normal-color);
  font-size: 12px;
}

.is-active .input {
  width: 178px;
  padding: 4px;
  border-bottom: 1px solid var(--dark-color);
  opacity: 1;
  pointer-events: auto;
}

.button {
  background-color: var(--gray-medium-color);
  color: var(--light-color);
  padding: 8px 16px;
  width: 182px;
  height: 45px;
  font-size: 16px;
  align-items: center;
}
.button:hover, .button:focus {
  background-color: var(--gray-dark-color);
}

.section {
  padding: 0;
}
@media screen and (min-width: 1440px) {
  .section {
    padding: 20px 0;
  }
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}
@media screen and (min-width: 768px) {
  .container {
    padding: 0 34px;
  }
}
@media screen and (min-width: 1440px) {
  .container {
    padding: 0 135px;
  }
}

.header {
  position: fixed;
  width: 100%;
  padding: 20px 0;
  background-color: var(--light-color);
}
@media screen and (min-width: 1440px) {
  .header {
    padding: 40px 0;
  }
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__logo {
  width: 145px;
  height: 13px;
}
.header__burger {
  width: 34px;
  height: 22px;
}
.header__close {
  width: 30px;
  height: 30px;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 84px;
}
.header__nav nav {
  display: flex;
  gap: 42px;
}
.header__nav nav a {
  position: relative;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--dark-color);
}
.header__nav nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: var(--dark-color);
  transition: width 0.3s ease;
}
.header__nav nav a:hover::after {
  width: 40px;
}
.header__mobile {
  display: none;
  position: relative;
}
.header__search-container {
  position: relative;
}
.header__search {
  width: 24px;
  height: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  .header__mobile {
    display: block;
  }
  .header__mobile--top {
    display: flex;
    align-items: center;
    gap: 40px;
  }
}
@media (max-width: 768px) and (max-width: 320px) {
  .header__mobile--top {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .header__burger, .header__close {
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .header__close {
    opacity: 1;
    transform: scale(0.8);
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
  }
  .burger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
    position: relative;
  }
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--gray-light-color);
    padding: 100px 30px;
    list-style: none;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .mobile-menu a {
    color: var(--dark-color);
    font-size: 18px;
  }
  .mobile-menu a:hover, .mobile-menu a:focus {
    color: var(--gray-normal-color);
  }
  .mobile-menu.is-open {
    transform: translateX(0);
  }
}
.no-scroll {
  overflow: hidden;
}

@media (max-width: 320px) {
  .header__search-container {
    position: relative;
  }
  .header__search-container .input {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    transform: translateY(-10px);
  }
  .header__search-container.is-active .input {
    transform: translateY(0);
  }
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 10;
}
.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Burger animation */
.burger-btn .header__close {
  display: none;
}

/* Коли меню відкрите */
.burger-btn.is-active .header__burger {
  display: none;
}

.burger-btn.is-active .header__close {
  display: block;
}

.hero {
  padding-top: 70px;
  background-image: url("../../images/hero/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
}
@media screen and (min-width: 768px) {
  .hero {
    padding-top: 30px;
    height: 320px;
  }
}
@media screen and (min-width: 1440px) {
  .hero {
    padding-top: 100px;
    height: 600px;
  }
}
.hero__container {
  display: flex;
  flex-direction: column;
}
.hero__title {
  display: none;
}
.hero__text {
  font-size: 30px;
  color: var(--dark-color);
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  .hero__text {
    font-size: 36px;
    line-height: 1.4;
  }
}
@media screen and (min-width: 1440px) {
  .hero__text {
    font-size: 48px;
    line-height: 1.3;
  }
}

.blog {
  padding-top: 70px;
}
@media screen and (min-width: 1440px) {
  .blog {
    padding-top: 90px;
  }
}
.blog__container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.blog__title {
  font-size: 48px;
  line-height: 1.3;
  color: var(--dark-color);
}
.blog__list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
@media screen and (min-width: 1440px) {
  .blog__list .blog__card:nth-child(odd) {
    align-self: flex-start;
  }
  .blog__list .blog__card:nth-child(even) {
    align-self: flex-end;
  }
}
.blog__card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media screen and (min-width: 768px) {
  .blog__card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .blog__card:first-child {
    flex-direction: row-reverse;
  }
}
@media screen and (min-width: 1440px) {
  .blog__card {
    gap: 30px;
  }
}
.blog__card--content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media screen and (min-width: 1440px) {
  .blog__card--content {
    width: 450px;
    height: 300px;
  }
}
.blog__card--info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  letter-spacing: 2px;
}
.blog__card--tags {
  color: var(--gray-normal-color);
}
.blog__card-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog__card--title {
  font-size: 22px;
  line-height: 1.5;
  color: var(--dark-color);
}
@media screen and (min-width: 768px) {
  .blog__card--title {
    font-size: 23px;
    line-height: 1.4;
  }
}
.blog__card--date {
  color: var(--gray-normal-color);
}
.blog__card--text {
  color: var(--gray-medium-color);
  letter-spacing: 0.5px;
}
@media screen and (min-width: 768px) {
  .blog__card--text {
    letter-spacing: 0.6px;
    line-height: 1.4;
  }
}
.blog__card--link {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-normal-color);
}
.blog__card--link-text {
  font-size: 14px;
  line-height: 1.3;
  display: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s ease;
  white-space: nowrap;
}
.blog__card--link:hover .blog__card--link-text, .blog__card--link:focus .blog__card--link-text {
  opacity: 1;
  transform: translateX(0);
  display: inline-block;
  color: var(--dark-color);
}
.blog__card--link:hover, .blog__card--link:focus {
  color: var(--dark-color);
}
.blog__card--image {
  width: 300px;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media screen and (min-width: 768px) {
  .blog__card--image {
    width: 340px;
    height: 280px;
  }
}
@media screen and (min-width: 1440px) {
  .blog__card--image {
    width: 570px;
    height: 470px;
  }
}
.blog__icon {
  width: 17px;
  height: 12px;
  fill: currentColor;
}
.blog__icon:hover {
  fill: currentColor;
}

.posts {
  padding-top: 70px;
}
@media screen and (min-width: 1440px) {
  .posts {
    padding-top: 90px;
  }
}
.posts__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media screen and (min-width: 768px) {
  .posts__container {
    gap: 50px;
  }
}
.posts__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media screen and (min-width: 768px) {
  .posts__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.posts__header--title {
  font-size: 28px;
  line-height: 1.3;
  color: var(--dark-color);
}
.posts__header--link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-normal-color);
}
.posts__header--link:hover, .posts__header--link:focus {
  color: var(--dark-color);
}
.posts__header--icon {
  width: 23px;
  height: 17px;
}
.posts__list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
@media screen and (min-width: 768px) {
  .posts__list {
    gap: 30px;
  }
}
@media screen and (min-width: 1440px) {
  .posts__list {
    flex-direction: row;
  }
}
.posts__card {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media screen and (min-width: 768px) {
  .posts__card {
    flex-direction: row;
    gap: 20px;
  }
  .posts__card:nth-child(even) {
    flex-direction: row-reverse;
  }
}
@media screen and (min-width: 1440px) {
  .posts__card {
    flex-direction: column;
    gap: 25px;
  }
  .posts__card:nth-child(even) {
    flex-direction: column;
  }
}
.posts__card--image {
  width: 300px;
  height: 210px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media screen and (min-width: 768px) {
  .posts__card--image {
    width: 340px;
    height: 240px;
  }
}
@media screen and (min-width: 1440px) {
  .posts__card--image {
    width: 370px;
    height: 260px;
  }
}
.posts__card--content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.posts__card--description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-normal-color);
}
@media screen and (min-width: 768px) {
  .posts__card--description {
    font-size: 12px;
  }
}
.posts__card--subtitle {
  line-height: 1.3;
  font-weight: 400;
}
.posts__card--info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  letter-spacing: 2px;
}
@media screen and (min-width: 768px) {
  .posts__card--info {
    letter-spacing: 1.2px;
  }
}
.posts__card--title {
  font-size: 22px;
  line-height: 1.3;
  color: var(--dark-color);
}
.posts__card--text {
  line-height: 1.5;
  color: var(--gray-medium-color);
}

.popular {
  padding-top: 70px;
}
@media screen and (min-width: 1440px) {
  .popular {
    padding-top: 90px;
  }
}
.popular__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media screen and (min-width: 768px) {
  .popular__container {
    gap: 50px;
  }
}
.popular__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media screen and (min-width: 768px) {
  .popular__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.popular__header--title {
  font-size: 28px;
  line-height: 1.3;
  color: var(--dark-color);
}
.popular__header--link {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-normal-color);
}
.popular__header--link:hover, .popular__header--link:focus {
  color: var(--dark-color);
}
.popular__content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
@media screen and (min-width: 768px) {
  .popular__content {
    align-items: center;
  }
}
.popular__cards {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
@media screen and (min-width: 768px) {
  .popular__cards {
    flex-direction: row;
    gap: 20px;
  }
}
.popular__card {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media screen and (min-width: 768px) {
  .popular__card {
    gap: 20px;
    width: 340px;
  }
}
@media screen and (min-width: 1440px) {
  .popular__card {
    gap: 30px;
    width: 570px;
  }
}
.popular__card--image {
  width: 300px;
  height: 150px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media screen and (min-width: 768px) {
  .popular__card--image {
    width: 340px;
    height: 160px;
  }
}
@media screen and (min-width: 1440px) {
  .popular__card--image {
    width: 570px;
    height: 260px;
  }
}
.popular__card--content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media screen and (min-width: 768px) {
  .popular__card--content {
    gap: 20px;
  }
}
.popular__card--description {
  line-height: 1.3;
  color: var(--gray-normal-color);
  display: flex;
  justify-content: space-between;
}
@media screen and (min-width: 768px) {
  .popular__card--description {
    font-size: 12px;
  }
}
.popular__card--subtitle {
  line-height: 1.3;
  font-weight: 400;
}
.popular__card--info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  .popular__card--info {
    gap: 20px;
  }
}
.popular__card--title {
  font-size: 22px;
  color: var(--dark-color);
  letter-spacing: 2.3px;
}
@media screen and (min-width: 1440px) {
  .popular__card--title {
    font-size: 24px;
  }
}
.popular__card--text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--gray-medium-color);
  letter-spacing: 1px;
}
@media screen and (min-width: 768px) {
  .popular__card--text span {
    display: none;
  }
}

.info {
  padding-top: 70px;
  padding-bottom: 70px;
}
@media screen and (min-width: 1440px) {
  .info {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}
.info__container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
@media screen and (min-width: 768px) {
  .info__container {
    gap: 50px;
  }
}
@media screen and (min-width: 1440px) {
  .info__container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.info__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media screen and (min-width: 768px) {
  .info__header {
    gap: 20px;
  }
}
@media screen and (min-width: 1440px) {
  .info__header {
    width: 470px;
  }
}
.info__header--title {
  font-size: 24px;
  color: var(--dark-color);
  letter-spacing: 2px;
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  .info__header--title {
    font-size: 23px;
  }
}
.info__header--link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-normal-color);
}
.info__header--link-text {
  font-size: 16px;
  line-height: 1.3;
  display: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s ease;
  white-space: nowrap;
}
.info__header--link:hover .info__header--link-text, .info__header--link:focus .info__header--link-text {
  opacity: 1;
  transform: translateX(0);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark-color);
}
.info__header--link:hover, .info__header--link:focus {
  color: var(--dark-color);
}
.info__header--icon {
  width: 23px;
  height: 17px;
  fill: currentColor;
}
.info__header--icon:hover {
  fill: currentColor;
}
.info__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 1.3px;
  color: var(--gray-medium-color);
}
@media screen and (min-width: 768px) {
  .info__content {
    text-align: end;
    letter-spacing: 1.5px;
    font-size: 19px;
  }
}
@media screen and (min-width: 1440px) {
  .info__content {
    text-align: start;
    width: 470px;
  }
}

.footer {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: var(--gray-light-color);
}
@media screen and (min-width: 1440px) {
  .footer {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}
.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media screen and (min-width: 1440px) {
  .footer__container {
    align-items: unset;
  }
}
.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media screen and (min-width: 1440px) {
  .footer__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
@media screen and (min-width: 1440px) {
  .footer__contact {
    text-align: unset;
    gap: 30px;
  }
}
.footer__contact--title {
  font-size: 32px;
  line-height: 1.3;
  color: var(--dark-color);
  letter-spacing: 1.3px;
}
@media screen and (min-width: 768px) {
  .footer__contact--title {
    font-size: 48px;
  }
}
.footer__contact--address {
  line-height: 1.5;
  color: var(--dark-color);
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer__contact--address a {
  position: relative;
}
.footer__contact--address a::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: var(--dark-color);
  transition: width 0.3s ease;
}
.footer__contact--address a:hover::after {
  width: 100px;
}
.footer__social {
  display: flex;
  justify-content: space-between;
  width: 270px;
}
.footer__social--item {
  width: 50px;
  height: 50px;
  border: 1px solid var(--gray-medium-color);
  background-color: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-medium-color);
}
.footer__social--item a {
  position: relative;
}
.footer__social--item:hover, .footer__social--item:focus {
  background-color: var(--gray-medium-color);
  color: var(--light-color);
}
.footer__social--icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.footer__social--icon-facebook {
  width: 13px;
}
.footer__copyright {
  line-height: 1.5;
  color: var(--dark-color);
  text-align: center;
}
@media screen and (min-width: 768px) {
  .footer__copyright {
    font-size: 12px;
  }
}/*# sourceMappingURL=main.css.map */