@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;500;700&display=swap');

:root {
  --color-light-xl: #ffffff;
  --color-light-l: #f6f6f6;
  --color-light-s: #fafafa;
  --color-dark-s: #cdcdcd;
  --color-dark-m: #b2b2b2;
  --color-dark-l: #545454;
  --color-dark-xl: #4c4c4c;
  --color-dark-2xl: #444444;
  --color-dark-3xl: #232020;
  --color-secondary: #08a69c;
  --color-primary: #72a130;
  --color-primary-light: #8dc63f;
  --color-info: #FF5A5A;

  --width-slide: 595px;
  --height-slide: 700px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html.lock,
body.lock,
.locker {
  overflow: hidden;
}

* {
  box-sizing: inherit;
  /* border: 1px solid red; */
}

h1 {
  font-size: 44px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

body {
  min-width: 320px;

  font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;

  background-color: var(--color-light-xl);

  color: var(--color-dark-3xl);
}

.container {
  max-width: 1190px;
  margin: 0 auto;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link {
  text-decoration: none;
  color: inherit;
}

.image {
  max-width: 100%;
  height: auto;
}

.button {
  padding: 18px 40px;

  font-weight: 500;
  color: var(--color-dark-3xl);

  border: 1px solid var(--color-primary-light);
  border-radius: 24px;

  text-decoration: none;
  text-transform: uppercase;
  background-color: var(--color-primary-light);

  cursor: pointer;
}

.section-offset {
  padding: 40px 0;
}

.visually-hidden {
  position: fixed;
  transform: scale(0);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.overlay.active {
  display: block;
}

.color-title {
  color: var(--color-primary-light);
}

.color-primary {
  color: var(--color-primary-light);
}

.color-secondary {
  color: var(--color-secondary);
}

.color-info {
  color: var(--color-info)
}

.text-center {
  text-align: center;
}

.text-weight {
  font-weight: 700;
}

.background-block {
  border-radius: 12px;
  padding: 45px;
}

.background-block::before {
  width: 100%;
  height: 100%;

  position: absolute;
  top: 0;
  left: 0;

  content: '';

  background: url('../img/main/hero-01.svg');
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;

  z-index: -1;
  opacity: 0.5;
}

.title-color {
  color: var(--color-primary-light);
}

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

.about__slider {
  position: relative;
  width: 100%;
  height: auto;

  border-radius: 12px;
}

.slider__image {
  width: var(--width-slide);
  height: var(--height-slide);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 12px;
}

.slider__buttons {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;

  z-index: 3;
}

.slider__btn {
  display: block;
  width: 42px;
  height: 42px;
  padding: 0;

  background: var(--color-light-l) url('../img/icons/arrow.png') no-repeat
    center/16px;
  border-radius: 50%;
  border: 0;

  cursor: pointer;
}

.slider__btn-prev {
  transform: rotate(180deg);
}

/*==================== ANIMATION ====================*/
.fade-animation {
  opacity: 0;
  transform: translateY(1%);
}

.fade-animation.element-show {
  opacity: 1;
  transition: all 1.5s;
  transform: translateY(0%);
}

/* MEDIA */

@media (max-width: 1240px) {
  .container {
    max-width: 1024px;
    padding: 0 20px;
  }

  .section-offset {
    padding: 30px 0;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  .background-block {
    padding: 25px;
  }

  .background-block::before {
    background-size: 90%;
  }
  
}

@media (max-width: 1024px) {
  body {
    font-size: 15px !important;
  }

  main {
    margin-top: 94.75px;
  }

  .container {
    max-width: 930px;
    padding: 0 15px;
  }

  .section-offset {
    padding: 30px 0;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 17px;
  }

  body {
    min-width: 320px;

    font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    background-color: var(--color-light-xl);

    color: var(--color-dark-3xl);
  }

  .background-block {
    padding: 20px;
  }

  .background-block::before {
    background-size: 70%;
  }

  :root {
    --width-slide: 100%;
    --height-slide: 550px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 710px;
    padding: 0 10px;
  }

  .section-offset {
    padding: 10px 0;
  }

  .background-block {
    padding: 15px;
  }

  .background-block::before {
    background-position: bottom left;
    background-size: 32%;
  }

  .visually-hidden {
    position: static;
    transform: scale(1);
  }

}

@media (max-width: 425px) {
  .container {
    width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  .background-block {
    padding: 10px;
  }

  .background-block::before {
    background-size: contain;
    background-position: center;
    background-size: 70%;
  }

  :root {
    --width-slide: 100%;
    --height-slide: 400px;
  }
}
