@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Montserrat-Regular.woff) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Montserrat-Medium.woff) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Montserrat-SemiBold.woff) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/Montserrat-Bold.woff) format('woff2');
}

:root {
  --bg-color-main: #212121;
  --bg-color-secondary: #F7F7F7;

  --text-color-main: #212020;
  --text-color-secondary: #666666;
  --text-color-white: #ffffff;

  --active-color: #209672;
  --active-gradient: linear-gradient(90deg, #429571 0%, #5FCFA1 100%);

  --other-color-graphite: #2A2B2B;

  --font-family-main: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: var(--font-family-main);

  font-weight: 500;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

a {
  color: var(--text-color-white);
}

body {
  color: var(--text-color-main);
}

.sub2 {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.sub1 {
  font-weight: 700;
  font-size: 22px;
}

h2 {
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
}

h1 {
  font-weight: 800;
  font-size: clamp(28px, 8vw, 35px);
  text-transform: uppercase;
}

.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {

  *,
  *::after,
  *::before {
    font-size: 20px;
  }

  .sub2 {
    font-size: 22px;
  }

  .sub1 {
    font-size: 28px;
  }

  h2 {
    font-size: 48px;
  }

  h1 {
    font-size: 52px;
  }

  .container {
    max-width: 1210px;
    padding: 0 50px;
  }
}

@media screen and (min-width: 1280px) {
  .sub2 {
    font-size: 24px;
  }

  .sub1 {
    font-size: 32px;
  }

  h2 {
    font-size: 52px;
  }
}

header {
  z-index: 3;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--bg-color-main);

  padding: 10px 0 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--text-color-white);

  transition: color .5s;
}

.header__icon {
  max-width: 80%;
}

.header__icon .white {
  transition: fill .5s;
}

.header__burger {
  cursor: pointer;
  background-color: transparent;
  border: 0;
  outline: none;
}

.header__nav {
  color: var(--text-color-white);
  list-style: none;

  display: none;
  transition: color .5s;
}

.header__nav li:not(:last-of-type) {
  margin-right: 1.5em;
}

header.dark {
  color: var(--text-color-main);
}

header.dark .header__nav {
  color: var(--text-color-main);
}

header.dark .header__icon .white {
  fill: var(--text-color-main);
}

.header__nav a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

@media screen and (min-width: 1024px) {
  .header__burger {
    display: none;
  }

  .header__nav {
    display: flex;
  }
}

.mobile_menu {
  display: block;

  width: 100vw;
  height: 100vh;
  height: calc(var(--vh) * 100);
  padding-top: 80px;
  padding-bottom: 100px;

  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 2;

  background-color: var(--bg-color-main);
  pointer-events: none;

  opacity: 0;
  transition: opacity .2s;
}

.mobile_menu .container {
  height: 100%;
}

.mobile_menu__nav {
  color: var(--text-color-white);
  list-style: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  transform: translateX(100vw);
  transition: all .5s;
}

.mobile_menu__nav a {
  color: inherit;
  font-weight: 600;
  font-size: 1.3em;
  text-decoration: none;
  white-space: nowrap;
}

.mobile_menu__nav li:not(:last-of-type) {
  margin-bottom: .5em;
}

.mobile_menu.open {
  opacity: 1;
  pointer-events: initial;
}

.mobile_menu.open .mobile_menu__nav {
  transform: translateX(0);
}

@media screen and (min-width: 1024px) {
  .mobile_menu {
    display: none;
  }
}


button.main-button {
  cursor: pointer;
  z-index: 2;

  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);

  padding: 14px 60px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 50px;

  background-color: var(--active-color);
  color: var(--text-color-main);
  transition: color .1s;
  border: 0;
  outline: none;
  overflow: hidden;
}

button.main-button::before {
  content: '';
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--active-gradient);

  transition: opacity .2s;
}

button.main-button:hover::before {
  opacity: 0;
}

button.main-button:active {
  background-color: var(--active-color);
  color: var(--text-color-white);
}

button.main-button:active::before {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  button.main-button {
    padding: 20px 70px;
  }
}

main {
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
  background-color: var(--bg-color-main);
}

section .container {
  width: 100%;
  height: 100%;
}

section.preview {
  height: 100vh;
  height: calc(var(--vh) * 100);
  color: var(--text-color-white);
}

section.preview .container {
  position: relative;
}

section.preview>.container {
  width: 100%;
  position: relative;
}

section .preview__content {
  z-index: 1;
  position: absolute;
  top: 25vh;
  left: 50%;
  top: calc(var(--vh) * 25);
  transform: translateX(-50%);

  width: 100%;
  max-width: 640px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

section .preview__content h1 {
  text-align: center;
  max-width: 300px;
}

section .preview__content img {
  max-width: 90vw;
  margin-bottom: 20px;
}

@media screen and (min-width: 321px) {
  section.preview>.container::before,
  section.preview>.container::after {
    content: '';
    display: block;
    pointer-events: none;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh) * 100);
    position: absolute;
    top: 0;

    background-repeat: no-repeat;
  }

  section.preview>.container::before {
    left: -100px;
    background-image: url(../images/imgDogfull.png);
    background-position: left bottom;
  }

  section.preview>.container::after {
    right: -70px;
    background-image: url(../images/imgPepper.png);
    background-position: right 85%;
  }
}

@media screen and (min-width: 768px) {
  section.preview .container::before {
    left: 0;
  }

  section.preview .container::after {
    right: 0;
  }

  section .preview__content h1 {
    max-width: fit-content;
  }
}

@media screen and (min-width: 1280px) {
  section.preview .container::before {
    background-size: auto 500px;
  }

  section.preview .container::after {
    background-size: auto 420px;
  }

  section .preview__content {
    top: 45%;
    transform: translate(-50%, -50%);
  }
}

section.slogans {
  height: 400vh;
  width: 100vw;
  height: calc(var(--vh) * 400);
  color: var(--text-color-white);
}

section.slogans .container {
  position: relative;
}

section .slogans__content {
  width: 100%;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;

  /* transform: translateY(300vh); */
}

section .slogans__content>div {
  width: 100%;
  height: 100%;
  position: relative;
}

section .slogans__item {
  position: absolute;
  top: 50vh;
  left: 0;
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
}

section .slogans__item:not(:first-of-type) {
  display: none;
}

section.traffis {
  background-color: var(--bg-color-secondary);
}

section .traffis__content {
  padding: 60px 0;
  display: grid;
  justify-items: center;
}

section .traffis__content h2 {
  margin-bottom: 1em;
}

section .traffis__content p {
  color: var(--text-color-secondary);
}

section .traffis__content img {
  max-width: 100%;
}

@media screen and (min-width: 768px) {
  section .traffis__content {
    grid-template-columns: 1fr 1fr;
  }
}

section.green {
  background-image: var(--active-gradient);
  color: var(--text-color-white);
  text-align: center;
}

section .green__content {
  padding: 60px 0;
}

section.iphones {
  background-color: var(--bg-color-secondary);
  position: relative;

  width: 100vw;

  padding-top: 60px;
  padding-bottom: 60px;

  display: flex;
  align-items: center;
}

section.iphones .container {
  height: fit-content;
  overflow-x: auto;

}

section .iphones__content {
  padding-bottom: 30px;

  display: flex;
  align-items: center;
  width: max-content;
  margin: auto;
}

section .iphones__item {
  width: clamp(217px, 33vh, calc(217px * 1.2));
  height: clamp(457px, 70vh, calc(457px * 1.2));
  width: clamp(217px, calc(var(--vh) * 33), calc(217px * 1.2));
  height: clamp(457px, calc(var(--vh) * 70), calc(457px * 1.2));
  background-color: #E2E2E2;
  border: 5px solid var(--other-color-graphite);
  border-radius: 26px;

  position: relative;

  overflow: hidden;
}

section .iphones__item:not(:last-of-type) {
  margin-right: 30px;
}

section .iphones__item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(calc(-50% - 7px));
  display: block;
  width: 26px;
  height: 8px;
  border-radius: 26px;
  background-color: var(--other-color-graphite);
}

section .iphones__item::after {
  content: '';
  position: absolute;
  top: 5.5px;
  left: 50%;
  transform: translateX(calc(-50% + 16px));
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 26px;
  background-color: var(--other-color-graphite);
}

section .iphones__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.solutions {
  background-color: var(--bg-color-main);
  color: var(--text-color-white);

  width: 100vw;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 80px 0;
}

section.solutions .container {
  height: fit-content;
}

section .solutions__content {
  padding-bottom: 30px;
  overflow-x: auto;
}

section h2 {
  margin-bottom: 30px;
}

section .solutions__slides {
  display: flex;
  width: max-content;
}

section .solutions__slides-item {
  flex-shrink: 0;
  width: clamp(270px, 35vw, calc(270px * 2));
}

section .solutions__slides-item:not(:last-of-type) {
  margin-right: 20px;
}

section .solutions__slides-item-image {
  overflow: hidden;
  width: 100%;
  height: clamp(180px, 23vw, calc(180px * 2));
  border-radius: 16px;
  background-color: var(--other-color-graphite);
  margin-bottom: 16px;
}

section .solutions__slides-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section .solutions__slides-item .sub2 {
  margin-bottom: 8px;
}

section .solutions__slides-item p:not(.sub2) {
  color: var(--text-color-secondary);
}

@media screen and (min-width: 768px) {
  section .solutions__slides-item-image {
    border-radius: 24px;
  }
}

footer {
  background-color: var(--bg-color-main);
  color: var(--text-color-white);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 100px;
  padding-bottom: 100px;
}

footer p {
  margin: 20px;
}

@media screen and (min-width: 768px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 150px;
    padding-bottom: 150px;
  }
}

.trigger {
  position: absolute;
  width: 100px;
}

/* width */
.solutions ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
.solutions ::-webkit-scrollbar-track {
  background: var(--bg-color-main);
  margin: var(--scrool-margin);
}

/* Handle */
.solutions ::-webkit-scrollbar-thumb {
  background: var(--text-color-secondary);
  border-radius: 5px;

  transition: all 1s;
}

/* Handle on hover */
.solutions ::-webkit-scrollbar-thumb:hover {
  background: var(--bg-color-secondary);
}

/* width */
.iphones ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
.iphones ::-webkit-scrollbar-track {
  background: var(--bg-color-secondary);
  margin: var(--scrool-margin);
}

/* Handle */
.iphones ::-webkit-scrollbar-thumb {
  background: var(--text-color-secondary);
  border-radius: 5px;

  transition: all 1s;
}

/* Handle on hover */
.iphones ::-webkit-scrollbar-thumb:hover {
  background: var(--bg-color-main);
}