@font-face {
  font-family: "Gilroy-ExtraBold";
  src: url("../fonts/Gilroy-ExtraBold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy-Bold";
  src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fff;
  font-family: "Inter", sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  line-height: 1;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  font-weight: normal;
}

ul,
ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

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

li,
.grey {
  color: #94a3b8;
}

.grey {
  font-size: 1rem !important;
  margin-top: 0.625rem !important;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4% 2%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 3rem;
}

h1,
h2,
h3 {
  background: linear-gradient(90deg, #00e1ff 0%, #00ff2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-family: "Gilroy-ExtraBold", sans-serif;
}

h2,
h3,
h4 {
  font-family: "Gilroy-Bold", sans-serif;
}

h4 {
  font-size: 1.875rem;
  font-weight: normal;
}

.block h4 {
  font-size: 2rem;
  width: 100%;
}

label,
li {
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
}

p,
b {
  font-family: "Inter", sans-serif;
  line-height: 1.375rem;
}

b {
  font-size: 1.125rem;
}

h1 {
  font-size: 6rem;
  font-weight: bolder;
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
  text-transform: uppercase;
  line-height: 5.3125rem;
}

h2 {
  font-size: 6rem;
  font-weight: bold;
}

h1 span {
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: normal;
  font-size: 5.3125rem;
}

h2 span {
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

main {
  background-image: url("../img/bg.png");
  background-repeat: no-repeat;
  background-size: cover;
}

.greens {
  background: linear-gradient(90deg, #00e1ff 0%, #00ff2b 100%);
  border-radius: 1.5625rem;
  width: fit-content;
  position: absolute;
  top: -4%;
  padding: 0.625rem 1.25rem;
  right: -5%;
}

.dark {
  font-size: 1.75rem;
  font-weight: bold;
  color: #000;
}

.yellow {
  color: #fbd54b;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 5%;
  margin-bottom: 2%;
}

.aqua {
  margin-top: 5%;
  margin-bottom: 2%;
  color: #00ffff;
  font-size: 1rem;
  font-weight: bold;
}

a.btn,
button {
  background: linear-gradient(90deg, #00e1ff 0%, #00ff2b 100%);
  color: #000;
  padding: 1.125rem 2.6875rem;
  border-radius: 0.9375rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.first .container p {
  width: 60%;
  margin: 0 auto;
  font-size: 1.5rem;
}

.second .container p,
.four .container p {
  font-size: 1.25rem;
}

.green {
    margin-top: 5%;
}
.first .green {
    margin-top: 15%;
}

.first .container img {
  margin-bottom: 5%;
  max-width: 100%;
  height: auto;
}

.blocks,
.nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  margin: auto;
  margin-top: 4rem;
}

.blocks {
  align-items: stretch;
}

.block {
  width: 100%;
  max-width: calc(26% - 4rem);
  flex: 1 1 calc(26% - 1.875rem);
  border: 2px solid #787878;
  border-radius: 0.9375rem;
  padding: 2%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.num p {
  font-size: 1rem;
  max-width: 80%;
  margin: 0 auto;
}

.num {
  text-align: center;
  position: relative;
  max-width: calc(25% - 4rem);
  max-height: 15.875rem;
  border-radius: 0.9375rem;
  border: 2px solid #787878;
  padding-bottom: 15%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.num img {
  margin-top: -6.25rem;
  max-width: 100%;
  height: auto;
}

ul.check li {
  list-style: none;
  padding-left: 1.5625rem;
  margin: 0.625rem 0;
  background: url("../img/check.png") no-repeat left center;
  background-size: 0.9375rem 0.9375rem;
}

ul.dot li {
  list-style: none;
  padding-left: 1.5625rem;
  margin: 0.625rem 0;
  background: url("../img/dot.png") no-repeat left center;
  background-size: 0.9375rem 0.9375rem;
}

form {
  position: relative;
  border-radius: 0.9375rem;
  border: 2px solid #787878;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 1.25rem;
  width: 100%;
  max-width: 48%;
}

form button {
  width: 90%;
  padding: 0.9375rem 0;
  font-size: 0.875rem;
}

.contacts {
  display: flex;
  gap: 15%;
}

.inp {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0.9375rem auto;
  gap: 0.625rem;
}

input,
textarea {
  background-color: #000;
  padding: 0.9375rem;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  border-radius: 0.9375rem;
  border: 2px solid #787878;
}

#message {
  min-height: 8rem;
  text-align: left;
  vertical-align: top;
}

.contact h4 {
  font-size: 1rem;
  font-family: "Inter", sans-serif;
}

.contact div {
  margin-top: 1.875rem;
}

.contact,
.social {
  min-width: fit-content;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.names {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.social {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
}

.bottom {
  margin-top: 1.875rem;
}

.hidden {
  display: none;
}

/* Media Queries for Responsive Design */

/* Tablets and smaller desktops (1200px and below) */
@media (max-width: 1300px) {
    .num{
        max-height: 18rem;
    }
}
@media (max-width: 1200px) {
  .container {
    max-width: 90%;
    padding: 5% 3%;
    gap: 2rem;
  }

  h1 {
    font-size: 4.5rem;
    line-height: 4rem;
  }

  h1 span {
    font-size: 4rem;
  }

  h2 {
    font-size: 4.5rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  .block h4 {
    font-size: 1.75rem;
  }

  .first .container p {
    width: 70%;
    font-size: 1.25rem;
  }

  .second .container p,
  .four .container p {
    font-size: 1.125rem;
  }

  .block {
    max-width: calc(80% - 1.5rem);
    flex: 1 1 calc(50% - 1.5rem);
    margin: auto;
  }

  .nums > * {
    flex: 1 1 calc(50% - 4rem); /* два елементи в рядку */
    max-width: calc(50% - 4rem);
  }

  form {
    max-width: 60%;
  }
}

/* Tablets and large mobile devices (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 6% 4%;
    gap: 1.5rem;
  }
  .first .container {
        padding: 30% 0;
  }

  h1 {
    font-size: 3rem;
    line-height: 2.8rem;
  }

  h1 span {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 3rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .block h4 {
    font-size: 1.5rem;
  }

  .first .container p {
    width: 90%;
    font-size: 1.125rem;
  }

  .second .container p,
  .four .container p {
    font-size: 1rem;
  }

  .block {
    max-width: 100%;
    flex: 1 1 100%;
  }
  
  .num {
    margin: auto;
    flex: 1 1 95%; /* чотири елементи в рядку */
    max-width: 95%;
  }


  form {
    max-width: 100%;
    color: transparent;
  }

  .contacts {
    gap: 2rem;
  }

  a.btn,
  button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
  p {
    text-align: center;
  }
  .num img {
    margin-top: -6.5rem;
    margin-bottom: -1rem;
  }
  .container {
    padding: 8% 5%;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 2rem;
  }

  h1 span {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1rem;
  }

  .block h4 {
    font-size: 1.25rem;
    width: 70%;
  }

  .first .container p {
    width: 100%;
    font-size: 1rem;
  }

  .second .container p,
  .four .container p {
    font-size: 0.875rem;
  }

  .greens {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .dark {
    font-size: 1.25rem;
  }

  .yellow,
  .aqua {
    font-size: 0.875rem;
  }

  a.btn,
  button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .block {
    padding: 4%;
  }

  .nums {
    margin-top: 5rem;
    gap: 5rem;
  }

  input,
  textarea {
    padding: 0.75rem;
    font-size: 0.75rem;
  }

  form button {
    padding: 0.75rem 0;
    font-size: 0.75rem;
  }
}
::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;  
}

* {
  -ms-overflow-style: none;
}