/* coolvetica-700 */
@font-face {
  font-display: swap;
  font-family: 'Coolvetica';
  src: url('../fonts/coolvetica_rg.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* coolvetica-400 */
@font-face {
  font-display: swap;
  font-family: 'Coolvetica';
  src: url('../fonts/coolvetica-black-rg.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

/* rubik-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Rubik';
  src: url('../fonts/rubik-v28-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* Reset and base styles  */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

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

/* Links */

a, a:link, a:visited  {
  text-decoration: none;
	color: #000;
}

a:hover  {
  text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
  font-size: inherit;
	font-weight: inherit;
}


ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

img, svg {
	max-width: 100%;
	height: auto;
}

address {
  font-style: normal;
}

/* Form */

input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

body {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  line-height: 1;
  background-color: #F3F3F3;
}

.pink {
  color: #F70476;
}

.yellow {
  color: #FEBD32;
}

.blue {
  color: #1877F2
}

.white {
  color: #FFFFFF;
}

.green {
  color: #5DC97B;
}

.grey {
  color: #8F8F8A;
}

.red {
  color: #FE3232F6;
}

.rubik {
  font-family: 'Rubik';
}

.button {
  padding: 14px 30px;

  background-color: #FEBD32;
  border: 1px solid #000;
  border-radius: 30px;

  font-size: 20px;

  transition: 0.2s ease;
}

.button:hover {
  color: #FEBD32;
  background-color: transparent;
  border-color: #FEBD32;
}

.wrapper {
  position: relative;
  max-width: 1440px;
  margin: auto;
  padding: 0 50px;
}

/* header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;

  background-color: #F3F3F3;
}

.header_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 30px;
}

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

.logo_title {
  margin: 0;

  font-size: 30px;
  font-weight: 700;
}

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

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

  padding: 0;
  margin: 0;

  font-size: 20px;
}

.nav_item {
  position: relative;
  cursor: pointer;
}

.nav_item::after {
  position: absolute;
  bottom: -5px;
  left: 0;

  content: '';
  width: 100%;
  height: 1px;

  background-color: #000;
  transition: 0.2s ease;
  transform: scaleX(0);
  opacity: 0;
}

.nav_item:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav_products_mobile {
  display: none;
}

.current_item::after {
  opacity: 1;
  transform: scale(1);
}

.burger_menu {
  position: absolute;
  height: 18px;
  width: 32px;

  right: 30px;
  top: 50%;
  transform: translateY(-50%);

  cursor: pointer;
  display: none;
}

.line {
  position: absolute;
  width: 32px;
  height: 2px;
  transform: translateY(-50%);

  background-color: #000;
  transition: 0.2s ease;
}

.second {
  top: 50%;
  transform: translateY(-100%);
}

.third {
  bottom: 0;
}

.burger_close {
  .first {
    top: 50%;
    transform: rotate(45deg);
  }

  .second {
    display: none;
  }

  .third {
    top: 50%;
    transform: rotate(-45deg);
  }
}

/* main */
.main {
  margin-top: 157px;
}

/* meta */
.meta {
  margin-bottom: 207px;
}

.meta_img {
  margin-bottom: 44px;
}

.meta_name {
  margin-bottom: 31px;

  text-align: center;
  font-weight: 700;
  font-size: 45px;
}

.meta_desc {
  font-size: 30px;
  text-align: center;
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);

  width: 350px;
  height: 17px;

  background-image: url('../img/underline_2.svg');
  background-repeat: no-repeat;
}

.green_star {
  position: absolute;
  top: -66px;
  left: 331px;
}

.yellow_star {
  position: absolute;
  bottom: -45px;
  right: 190px;
}

/* footer */
.footer {
  background-color: #DFDFDF;
  padding: 71px 0 30px;

  .logo {
    margin: 0 20px 30px 0;
  }
}

.info_container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 95px;
}

.footer_nav {
  display: flex;
  gap: 55px;
}

.products_list {
  max-width: 240px;
}

.list_title {
  margin-bottom: 32px;

  font-size: 25px;
  font-weight: 900;
}

.footer_link {
  margin-bottom: 24px;

  line-height: 1.1;
  font-size: 25px;
}

.footer_link:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.info_links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.links_container {
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
}

a.info_link {
  color: rgba(0, 0, 0, 0.6);
}

.info_link:hover {
  text-decoration: underline;
}

/* section */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* automation_runs */
.automation_runs {
  max-width: 675px;
  margin-bottom: 93px;

  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  font-size: 40px;
}

.green_underline {
  position: relative;
  display: inline-block;
}

.green_underline::before {
  content: '';
  position: absolute;
  bottom: -5px;

  width: 100%;
  height: 13px;

  background-image: url('../img/green_underline.svg');
  background-repeat: no-repeat;
  background-size: cover;
}

/* yellow_highlight */
.yellow_highlight {
  position: relative;
}

.yellow_highlight::before {
  content: '';
  position: absolute;
  left: -12px;
  bottom: -2px;
  z-index: -1;

  width: 120%;
  height: 66px;

  background-image: url('../img/yellow_highlight.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* blue_highlight */
.blue_highlight {
  position: relative;
}

.blue_highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -35px;
  right: -50px;
  bottom: -8px;
  z-index: -1;

  background-image: url('../img/blue_highlight.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* auto-reply title */
.auto-reply_title {
  margin-bottom: 60px;

  font-weight: 700;
  text-align: center;
  font-size: 45px;
}

.auto-reply_highlight::before {
  left: -16px;
  bottom: -8px;
  height: 61px;
  background-size: contain;
}

/* section_title */
.section_title {
  margin-bottom: 51px;

  text-align: center;
  font-weight: 700;
  font-size: 60px;
}

/* icon caption */
.icon_caption_title {
  margin-bottom: 10px;

  font-weight: 900;
  letter-spacing: 1px;
  font-size: 25px;
}

.icon_caption {
  line-height: 1.2;
  font-size: 18px;
}

/* bold_text */
.bold_text {
  margin-bottom: 109px;

  font-weight: 700;
  text-align: center;
  font-size: 35px;
}

/* video */
.video_wrapper {
  position: relative;

  max-width: 832px;
  width: 100%;
  margin: auto;
  margin-bottom: 50px;
}

.video_item {
  padding-top: 56.25%
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* how it works */
.work {
  margin-bottom: 177px;
}

.work_title {
  margin-bottom: 66px;
}

/* dropdown menu */
.dropdown_wrap {
  position: absolute;
  top: 0;
  padding-top: 40px;

  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.dropdown_wrap.visible {
  opacity: 1;
  visibility: visible;
}

.dropdown_menu {
  max-width: 492px;
  width: 100%;

  background-color: #F3F3F3;
  border-radius: 10px;
  box-shadow: 0 8px 15px #00000040;
}

.menu_item {
  display: flex;
  gap: 10px;
  padding: 26px 64px;
  min-height: 134px;

  transition: 0.2s ease;
  line-height: 1;
}

.menu_item:hover {
  background-color: #FEBD321A;
}

.menu_item_title {
  font-size: 22px;
  margin-bottom: 8px;
}

.menu_item_subtitle {
  font-size: 18px;
  line-height: 1.1;
}

.menu_item:first-child .menu_item_subtitle {
  max-width: 204px;
}

.menu_item:last-child .menu_item_subtitle {
  max-width: 283px;
}

/* overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #666;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 2;
}

.overlay_active {
  opacity: 0.2;
  visibility: visible;
}

/* hidden */
.hidden {
  overflow: hidden;
}

@media screen and (max-width: 1350px) {
  .green_star {
    top: -65px;
  }

  .yellow_star {
    bottom: -120px;
  }
}

@media screen and (max-width: 1025px) {
  .wrapper {
    padding: 0 20px;
  }

  .footer {
    padding: 24px 16px;
  }

  .products_list {
    max-width: 150px;
  }

  .links_container {
    gap: 20px;
  }

  .work {
    margin-bottom: 150px;
  }

  .section_title {
    line-height: 1.2;
  }

  .burger_menu {
    display: block;
  }

  .header_nav,
  .nav_list {
    flex-direction: column;
    align-items: flex-start;
  }

  .header_nav {
    position: absolute;
    padding: 60px;
    transform: translateX(-150%);
    height: 100vh;
    top: 100px;
    background-color: #F3F3F3;
    transition: 0.3s ease;
  }

  .nav_active {
    transform: translateX(-20px);
  }

  .product_nav {
    display: none;
  }

  .nav_products_mobile {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .header_nav {
    padding: 20px;
  }

  .nav_active {
    transform: translateX(-10px);
  }

  .wrapper {
    padding: 0 10px;
  }

  .info_links {
    gap: 20px;

    flex-direction: column-reverse;
  }

  .blue_highlight::before {
    top: 0;
    left: -35px;
    right: -50px;
    bottom: -8px;

    background-size: 198px 50px;
  }

  .auto-reply_highlight::before {
    left: -12px;
    height: 44px;
  }

  .automation_runs {
    font-size: 24px;
    margin-bottom: 46px;
  }

  .section_title {
    font-size: 32px;
  }

  .bold_text {
    font-size: 24px;
    margin-bottom: 50px;
  }

  .green_star {
    left: 100px;
  }

  .meta {
    margin-bottom: 120px;
  }

  .meta_name {
    font-size: 32px;
  }

  .meta_desc {
    font-size: 24px;
    line-height: 1.3;
  }

  .underline::before {
    width: 277px;
    background-size: contain;
    bottom: -13px;
  }

  .yellow_star {
    right: 100px;
    bottom: -80px;
  }

  .list_title {
    font-size: 20px;
  }

  .work {
    margin-bottom: 100px;
  }

  .work_title {
    margin-bottom: 32px;
  }

  .footer_link {
    font-size: 18px;
  }

  .info_container {
    margin-bottom: 50px;
  }

  .links_container {
    flex-direction: column;
  }

  .yellow_highlight::before {
    left: -7px;
    bottom: -6px;
    background-size: contain;
  }
}