:root {
  --white: #ffffff;
  --black: #111111;
  --grey: #6b7280;
  --dark-grey: #3e4044;
  --line: #e5e7eb;
  --overlay: rgba(255, 255, 255, 0.5);
}

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

html,
body {
  min-width: 320px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--black);
  background-color: var(--white);
}

body.menu-open {
  overflow: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
}

/* ------------------------------ Header ------------------------------ */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header__body {
  width: 100%;
  max-width: 1600px;
  min-height: 96px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  color: var(--black);
  font-size: 30px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__menu {
  display: flex;
  align-items: center;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__item {
  display: flex;
}

.header__link {
  color: var(--black);
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
  position: relative;
}

.header__link:hover {
  color: var(--grey);
}

.header__link[aria-current="page"] {
  font-weight: 600;
}

.header__burger {
  width: 34px;
  height: 24px;
  display: none;
  position: relative;
  cursor: pointer;
  z-index: 20;
}

.header__burger span {
  width: 34px;
  height: 2px;
  position: absolute;
  left: 0;
  background-color: var(--black);
  transition: all 0.35s ease;
}

.header__burger span:nth-child(1) {
  top: 0;
}

.header__burger span:nth-child(2) {
  top: 11px;
}

.header__burger span:nth-child(3) {
  top: 22px;
}

body.menu-open .header__burger span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

body.menu-open .header__burger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .header__burger span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

.menu-overlay {
  width: 100%;
  height: 50vh;
  position: fixed;
  top: 50vh;
  left: 0;
  background-color: var(--overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 18;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media screen and (max-width: 767px) {

  .header__body {
    min-height: 82px;
    padding: 0 20px;
  }

  .header__logo {
    font-size: 24px;
  }

  .header__burger {
    display: block;
  }

  .header__list {
    width: 100%;
    height: 50vh;
    position: fixed;
    top: 0;
    left: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background-color: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 19;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  }

  body.menu-open .header__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__link {
    font-size: 30px;
    font-weight: 500;
    line-height: 110%;
  }
}




/* ------------------------------ Footer ------------------------------ */
.footer {
  background-color: #111111;
  color: var(--white);
  padding: 60px 0 24px;
}

.footer__body {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__text {
  max-width: 320px;
  color: #d1d5db;
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
}

.footer__title {
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__item {
  display: flex;
}

.footer__link,
.footer__social {
  color: #d1d5db;
  font-size: 17px;
  font-weight: 400;
  line-height: 140%;
  transition: all 0.3s ease;
}

.footer__link:hover,
.footer__social:hover {
  color: var(--white);
}

.footer__link[aria-current="page"] {
  font-weight: 600;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__bottom {
  width: 100%;
  max-width: 1600px;
  margin: 40px auto 0;
  padding: 24px 40px 0;
}

.footer__bottom::before {
  content: "";
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

.footer__copy {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%;
}

@media screen and (max-width: 767px) {
  .footer {
    padding: 44px 0 20px;
  }

  .footer__body {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 20px;
  }

  .footer__logo {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .footer__text {
    max-width: 100%;
    font-size: 15px;
  }

  .footer__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .footer__list {
    gap: 12px;
  }

  .footer__link,
  .footer__social {
    font-size: 16px;
  }

  .footer__bottom {
    margin: 30px auto 0;
    padding: 20px 20px 0;
  }

  .footer__copy {
    font-size: 13px;
  }
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  min-height: 100vh;
  max-width: 2200px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  background-image: url('../img/main/hero-bg.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.hero__body {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 160px 40px 80px;
  position: relative;
  z-index: 2;
}

.hero__label {
  color: var(--dark-grey);
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 3px;
  margin-bottom: 40px;
}

.hero__title {
  max-width: 760px;
  color: var(--black);
  font-size: 96px;
  font-weight: 400;
  line-height: 88%;
  letter-spacing: -2px;
  margin-bottom: 36px;
}

.hero__text {
  max-width: 620px;
  color: var(--dark-grey);
  font-size: 24px;
  font-weight: 400;
  line-height: 145%;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__button {
  min-width: 280px;
  min-height: 78px;
  padding: 20px 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  background-color: var(--dark-grey);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
  transition: all 0.3s ease;
}

.hero__button:hover {
  background-color: var(--black);
}

.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-grey);
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
}

.hero__more:hover {
  color: var(--black);
}

.hero__arrow {
  font-size: 28px;
  line-height: 100%;
}

@media screen and (max-width: 767px) {
  .hero {
    background-position: 68% center;
  }

  .hero::before {
    background-color: rgba(255, 255, 255, 0.52);
  }

  .hero__body {
    padding: 130px 20px 70px;
  }

  .hero__label {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 26px;
  }

  .hero__title {
    max-width: 100%;
    font-size: 58px;
    line-height: 92%;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .hero__text {
    max-width: 100%;
    font-size: 19px;
    line-height: 150%;
    margin-bottom: 34px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero__button {
    min-height: 62px;
    font-size: 17px;
    padding: 18px 24px;
  }

  .hero__more {
    font-size: 17px;
  }

  .hero__arrow {
    font-size: 24px;
  }
}

@media (max-height: 540px) {

  .hero__body {
    padding: 80px 20px 60px;
  }

  .hero__label {
    margin-bottom: 14px;
  }

  .hero__title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .hero__text {
    font-size: 20px;
    line-height: 120%;
    margin-bottom: 14px;
  }

  .hero__button {
    min-height: 60px;
  }
}

/* ------------------------------ SERVICES ------------------------------ */

.services {
  padding: 60px 50px;
  background-color: #f6f5f2;
}

.services__body {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.services__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}

.services__top-left {
  max-width: 620px;
}

.services__top-right {
  max-width: 360px;
}

.services__label {
  color: #5f724f;
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.services__title {
  color: #111111;
  font-size: 66px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -1px;
}

.services__text {
  color: #666666;
  font-size: 18px;
  font-weight: 400;
  line-height: 120%;
}

.services__slider {
  overflow: hidden;
}

.services__slide {
  height: auto;
}

.services__card {
  height: 100%;
}

.services__image {
  display: block;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 24px;
}

.services__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.services__card:hover .services__image img {
  transform: scale(1.03);
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.services__name {
  color: #2b2b2b;
  font-size: 28px;
  font-weight: 400;
  line-height: 110%;
}

.services__desc {
  color: #707070;
  font-size: 16px;
  font-weight: 400;
  line-height: 155%;
}

.services__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 42px;
}

.services__arrow {
  width: 58px;
  height: 58px;
  border: 1px solid #cfcfc7;
  border-radius: 50%;
  background-color: transparent;
  color: #111111;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services__arrow span {
  font-size: 24px;
  line-height: 100%;
}

.services__arrow:hover {
  background-color: #5f724f;
  border-color: #5f724f;
  color: #ffffff;
}

@media screen and (max-width: 991px) {
  .services__top {
    flex-direction: column;
    gap: 24px;
  }

  .services__top-left,
  .services__top-right {
    max-width: 100%;
  }

  .services__title {
    font-size: 52px;
  }
}

@media screen and (max-width: 767px) {

  .services {
    padding: 40px 20px;
  }

  .services__top {
    margin-bottom: 36px;
  }

  .services__label {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .services__title {
    font-size: 42px;
    line-height: 105%;
  }

  .services__text {
    font-size: 17px;
    line-height: 155%;
  }

  .services__image {
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .services__image img {
    height: 300px;
  }

  .services__name {
    font-size: 24px;
  }

  .services__desc {
    font-size: 15px;
  }

  .services__bottom {
    margin-top: 30px;
    gap: 12px;
  }

  .services__arrow {
    width: 52px;
    height: 52px;
  }

  .services__arrow span {
    font-size: 22px;
  }
}

/* ------------------------------Blog------------------------------ */
.blog {
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 40px 80px;
}

.blog-hero h1{
  font-size: calc(40px + (80 - 40) * ((100vw - 390px) / (1920 - 390)));
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
}

.blog-sub{
  font-size: calc(16px + (22 - 16) * ((100vw - 390px) / (1920 - 390)));
  font-weight: 400;
  line-height: 111%;
  margin: 20px 0;
  color: var(--dark-grey);
}

.blog-sub > *:first-child { 
  margin-top: 0; 
}

.blog-sub > *:last-child { 
  margin-bottom: 0; 
}

.blog-sub::after{
  content: "";
  display: block;
  height: 1px;
  background: var(--grey);
  margin: 20px 0;
}

.blog-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.chip:hover{
  border-color: #cfcfcf;
}

.chip.active{
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.blog-grid .grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap: 20px;
  /* display: flex; */
  /* flex-wrap: wrap; */
  /* justify-content: space-between; */
}

@media (max-width: 960px) { 
  .blog-grid .grid { 
    grid-template-columns:repeat(2,1fr);
  } 
}

@media (max-width: 640px) { 
  .blog-grid .grid { 
    grid-template-columns:1fr;
  } 
}

.blog-card{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: normal;
  text-align: start;
  width: 100%;
  margin: 30px 0;
  border:1px solid #e9e9e9;
  border-radius:18px;
  overflow:hidden;
  background:var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-card__thumb{
  width: 100%;
  height: 300px;
  display:block;
  overflow:hidden;
}

.blog-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  will-change: transform;
}

.blog-card__thumb:hover img{
  transform: scale(1.1);
}

.blog-card__thumb-placeholder{
  width: 100%;
  height: 100%;
}

.blog-card__body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
}

.blog-card__meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-card__badge{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white)
}

.blog-card__readtime{
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.blog-card__title{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
}

.blog-card__title a{
  color: var(--black);
  text-decoration: none;
}

.blog-card__title a:hover{ 
  text-decoration: underline; 
}

.blog-card__excerpt{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--dark-grey);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow: hidden;
}

.blog-card__more{
  margin-top: auto;    
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 14px;
}

.blog-card__more-icon{
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.blog-card__more:hover .blog-card__more-icon{
  transform: translateX(2px);
}

.blog-pagination {
  display: flex;
  flex-direction: column;
  margin: 40px auto 0;
}

.blog-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--grey);
  font-size: calc(20px + (25 - 20) * ((100vw - 390px) / (1920 - 390)));
  font-weight: 400;
  line-height: 114.9%;
  margin: 0 20px;
}

.blog-pagination .current {
  color: var(--black);
}

.blog-pagination .prev,
.blog-pagination .next {
  color: var(--black);
  font-size: 26px;
}

.no-posts {
  color: var(--black);
  font-size: 20px;
  margin: 20px 0 0 0;
}

@media screen and (max-width: 767px) {

  .blog {
    padding: 100px 20px 60px;
  }

  .blog-pagination {
    margin: 20px auto 0;
  }

  .blog-pagination .page-numbers {
    margin: 0 13px;
  }

  .blog-pagination .prev {
    margin: 0 5px;
  }

}

@media (max-width: 640px) {

  .blog-chips { 
    margin-top: 18px; gap: 8px; 
  }

  .chip { 
    padding: 9px 14px; 
    font-size: 12px; 
  }

}

@media screen and (max-width: 440px) {

  .blog-pagination .page-numbers {
    margin: 0 10px;
  }

  .blog-pagination .next,
  .blog-pagination .prev {
    margin: 0 2px;
  }

}

@media screen and (max-width: 374px) {

  .blog-pagination .page-numbers {
    margin: 0 6px;
  }

}


/* ------------------------------Post-page------------------------------ */
.post-page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.post-card{
  display: flex;
  flex-direction: column;
  width: 1200px;
  max-width: 100%;
  padding: 22px 24px 30px;
  border: 1px solid #e9e9e9;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.post-breadcrumbs{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px;
}

.post-breadcrumbs a{
  color: inherit;
  text-decoration: none;
}

.post-breadcrumbs a:hover{
  text-decoration: underline;
}

.post-breadcrumbs .sep{
  opacity: .7;
}

.post-breadcrumbs__current{
  color: #6b7280;
}

.post-title{
  font-size: calc(38px + (80 - 38) * ((100vw - 390px) / (1920 - 390)));
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.post-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 0;
}

.post-badge{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
}

.post-meta__dot{
  color: #9ca3af;
}

.post-meta__readtime,
.post-meta__date{
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
}

.post-hero{
  margin: 0;
  background: #f3f4f6;
}

.post-hero img{
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.post-content{
  padding-top: 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
}

.post-content p { 
  margin: 0 0 16px; 

}
.post-content h2 { 
  margin: 24px 0 12px; 
  font-size: calc(20px + (26 - 20) * ((100vw - 390px) / (1920 - 390))); 
}
.post-content h3 { 
  margin: 22px 0 10px; 
  font-size: calc(18px + (24 - 18) * ((100vw - 390px) / (1920 - 390)));
}

.post-content ul,
.post-content ol { 
  margin: 0 0 16px 18px; 
}

.post-content ul li { 
  margin: 0 0 8px;
  list-style: disc;
}

.post-content ol li { 
  margin: 0 0 8px; 
  color: var(--dark-grey);
  list-style: decimal;
}

@media (max-width: 640px){

  .post-card { 
    padding: 18px 16px 22px; 
    border-radius: 14px; 
  }

  .post-meta { 
    gap: 8px; 
    padding-bottom: 14px; 
  }

  .post-badge { 
    padding: 9px 12px; 
  }

}

@media screen and (max-width: 767px) {

  .post-page {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 70px;
  }
}
