/* Reset and base styles */
* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

@font-face {
  font-family: "Mariupol";
  src: url("../fonts/Mariupol-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Mariupol";
  src: url("../fonts/Mariupol-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

body {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Mariupol", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: #e7e8e7;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

@media only screen and (max-width: 400px) {
  .container {
    padding: 0 40px;
  }
}

.top {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 100px;
  background: url("../img/dummy-bg.jpg") top center repeat;
  background-size: 80% auto;
}

@media only screen and (max-width: 400px) {
  .top {
    padding-top: 53px;
    padding-bottom: 56px;
    background: url("../img/dummy-bg.jpg") top center repeat;
    background-size: 200% auto;
  }
}

/* Top grid layout */
.top__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

@media only screen and (max-width: 767px) {
  .top__grid {
    display: block;
  }
}

/* Top content */
.top__content {
  width: 100%;
  max-width: 650px;
  margin-right: 20px;
}

@media only screen and (max-width: 767px) {
  .top__content {
    max-width: 100%;
    margin-right: 0;
  }
}

/* Logo */
.top__logo {
  width: 100%;
  max-width: 170px;
  margin-left: 20px;
  margin-bottom: 64px;
}

@media only screen and (max-width: 767px) {
  .top__logo {
    margin-left: 0;
  }
}

@media only screen and (max-width: 400px) {
  .top__logo {
    max-width: 90px;
    margin-bottom: 43px;
  }
}

/* Info section */
.top__info {
  position: relative;
  margin-bottom: 95px;
  padding: 40px 30px 50px 20px;
}

@media only screen and (max-width: 767px) {
  .top__info {
    padding: 0;
  }
}

@media only screen and (max-width: 400px) {
  .top__info {
    margin-bottom: 38px;
  }
}

.top__info-main {
  margin-bottom: 35px;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -3%;
  color: #cbff3c;
}

@media only screen and (max-width: 500px) {
  .top__info-main {
    font-size: 24px;
  }
}

@media only screen and (max-width: 400px) {
  .top__info-main {
    margin-bottom: 28px;
    font-size: 15px;
  }
}

.top__info-secondary {
  padding-right: 25px;
  font-size: 20px;
  line-height: 1;
}

@media only screen and (max-width: 500px) {
  .top__info-secondary {
    font-size: 16px;
  }
}

@media only screen and (max-width: 400px) {
  .top__info-secondary {
    padding: 0;
    font-size: 12px;
  }
}

/* Corner images */
.top__info-images .corner {
  position: absolute;
}

@media only screen and (max-width: 767px) {
  .top__info-images .corner {
    display: none;
  }
}

.top__info-images .corner_1 {
  top: 15px;
  left: 0;
  width: 27px;
}

.top__info-images .corner_2 {
  top: 0;
  right: 0;
  width: 32px;
}

.top__info-images .corner_3 {
  bottom: 0;
  right: 0;
  width: 24px;
}

/* Top image */
.top__image {
  flex-shrink: 1.5;
  width: 100%;
  max-width: 300px;
  margin-top: 140px;
}

@media only screen and (max-width: 767px) {
  .top__image {
    display: none;
  }
}

/* Contacts section */
.top__contacts {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding-left: 20px;
}

@media only screen and (max-width: 767px) {
  .top__contacts {
    padding-left: 0;
  }
}

@media only screen and (max-width: 500px) {
  .top__contacts {
    flex-direction: column;
    justify-content: flex-start;
  }
}

.top__contact {
  font-size: 24px;
  line-height: 1;
}

@media only screen and (max-width: 500px) {
  .top__contact {
    font-size: 19px;
  }
}

@media only screen and (max-width: 400px) {
  .top__contact {
    font-size: 15px;
  }
}

.top__contact .title {
  font-weight: 500;
}

.top__contact .link {
  text-decoration: underline;
  color: #cbff3c;
}
