/* General styles */

body {
  background-color: #f5f5f5;
  font-family: "Rubik", sans-serif;
  box-sizing: border-box;
  font-size: 16px;
  color: #333333;
}

a {
  text-decoration: none;
  font-family: "Rubik", sans-serif;
  color: #333333;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  /* Видалення стилів */
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  /* Додаткові скидання, якщо потрібно */
}

html {
  scroll-behavior: smooth;
}

/* Header styles */

.header {
  margin-bottom: 50px;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #333333;
}

.header__logo h2 {
  font-size: 25px;
  font-family: "Satoshi", sans-serif;
}

.header__menu-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.header__menu-list a {
  font-size: 16px;
  transition: 0.3s;
  border-bottom: 1px solid rgba(51, 51, 51, 0);
}

.header__menu-list a:hover {
  border-bottom: 1px solid rgba(51, 51, 51, 1);
}

.icon__list {
  display: flex;
  gap: 20px;
}

.header__icon-list svg {
  width: 25px;
  height: 25px;
  transition: 0.3s;
}

.header__icon-list svg:hover {
  transform: scale(1.3);
}

/* Hero Section styles*/

.hero {
  background-image: url("../img/main-foto.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 80px;
}

.hero__inner {
  display: flex;
  justify-content: flex-end;
}

.hero__content-block {
  background-color: #fff;
  padding: 50px;
  margin: 130px 50px;
  min-width: 630px;
  border-radius: 8px;
}

.hero__content-block h2 {
  font-size: 32px;
  padding-bottom: 20px;
}
.hero__content-block p {
  padding-bottom: 200px;
}

.hero__btn a {
  padding: 16px 32px;
  border: 1px solid #333333;
  transition: 0.3s;
}

.hero__btn a:hover {
  background-color: #333333;
  color: #f5f5f5;
}

/* About Section styles*/

.about {
  margin-bottom: 80px;
}

.about__title-block {
  display: flex;
  justify-content: start;
  padding-bottom: 50px;
}

.about__title-block h3 {
  font-size: 24px;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 50px;
}

.about__item-image img {
  width: 35px;
  height: 35px;
}

.about__item {
  padding: 30px;
  background-color: #f9f9f9;
  -webkit-box-shadow: 11px 10px 24px 6px rgba(51, 51, 3, 0.04);
  -moz-box-shadow: 11px 10px 24px 6px rgba(51, 51, 3, 0.04);
  box-shadow: 11px 10px 24px 6px rgba(51, 51, 3, 0.04);
}

.about__item h5 {
  padding-bottom: 15px;
}

.about__item-image {
  padding-bottom: 20px;
}

.about__slider {
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.slider__text-block {
  padding: 10px;
  border-radius: 8px;
}

.slider__item {
  padding-top: 30px;
  padding-bottom: 30px;
  display: flex;
  gap: 30px;
}

.slider__foto img{
  max-width: 500px;
  max-height: 475px;
  border-radius: 8px;
}

.slider__title {
  padding-bottom: 50px;
}

.slider__title h2{
  font-size: 25px;
}

.slick-initialized .slick-slide {
  display: flex !important;
}

.slider__inner {
  position: relative;
}


.slider__inner .slick-arrow{
  position: absolute;
  top: 50%;
  z-index: 10;
  font-size: 0;
}

.slider__inner .slick-arrow{
  position: absolute;
  top: calc(50% - 30px);
  width: 50px;
  height: 50px;
}

.slider__inner .slick-arrow.slick-prev{
  left: 0;
  background: url('../img/left.svg') 0 0 / 100% no-repeat;
}

.slider__inner .slick-arrow.slick-next{
  right: 0;
  background: url('../img/right.svg') 0 0 / 100% no-repeat;
}

.slider__text {
  max-width: 600px;
}

.slider__item {
  padding: 30px 50px;
}

/* Portfolio Section styles*/

.portfolio {
  margin-bottom: 80px;
}

.sort__title {
  padding-bottom: 50px;
}

.sort__title h3 {
  font-size: 24px;
}

.sort__block {
  padding-bottom: 50px;
}

.sort__list {
  display: flex;
  gap: 30px;
}

.sort__item {
  cursor: pointer;
  border-bottom: 1.6px solid rgba(51, 51, 51, 0);
  transition: .3s;
  padding-bottom: 2px;
}

.sort__item:hover {
  border-bottom: 1.6px solid rgba(51, 51, 51, 1);
}

.portfolio__foto-block {
  display: grid;
  grid-template-columns:repeat(4, 1fr);
  gap: 20px;
}

.sort__list .active {
  border-bottom: 1.6px solid rgba(51, 51, 51, 1);
}

.photo img{
  border-radius: 8px;
}

/* Bottom Section styles*/

.bottom__inner {
  padding: 25px 0;
  border-top: 1px solid #333333;
}

.bottom__text {
  display: flex;
  justify-content: center;
}

/* Media */

@media (max-width: 1200px) {
  .portfolio__foto-block {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .photo {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 1050px) {
  .slick-initialized .slick-slide {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    display: flex;
    justify-content: center;
  }

  .about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 50px;
  }
  
  .portfolio__foto-block {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

@media (max-width: 740px) {
  .hero__content-block {
    background-color: #fff;
    padding: 40px;
    margin: 50px 20px;
    min-width: 440px;
  }
}

@media (max-width: 700px) {
  .header__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 15px 0;
  }
}

@media (max-width: 600px) {
  .portfolio__foto-block {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }

  .photo {
    width: 100%;
  }
}


@media (max-width: 540px) {
  .hero__content-block {
    background-color: #fff;
    padding: 30px;
    margin: 50px 0px;
    min-width: 200px;
    width: 100%;
  }

  .sort__list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

  .hero__content-block h2 {
    font-size: 25px;
    padding-bottom: 20px;
  }

  .slider__foto img {
    max-width: 500px;
    max-height: 250px;
  }

  .slider__inner .slick-arrow {
    position: absolute;
    top: calc(50% - 30px);
    width: 30px;
    height: 30px;
  }

  .bottom__text {
    font-size: 10px;
  }

  .slider__title h2 {
    text-align: center;
  }

  .slider__text p{
    text-align: center;
  }
}




