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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 300;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  height: 60px;
  line-height: 56px;
  padding: 0 60px;
  border-radius: 30px;
  border: 0 none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn:hover { opacity: .85; transform: translateY(-1px); }

.btn--white { color: #0a8fc4; background-color: #ffffff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn--blue { color: #ffffff; background-color: #0a8fc4; }
.btn--blue:hover { box-shadow: 0 6px 18px rgba(10,143,196,.35); }
.btn--outline { color: #0a8fc4; background-color: transparent; border: 2px solid #0a8fc4; line-height: 56px; }
.btn--outline:hover { background-color: #0a8fc4; color: #ffffff; opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__filter {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(to bottom, rgba(26, 40, 120, 0.7), rgba(10, 143, 196, 0.7));
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 72px);
  line-height: 1.17;
  letter-spacing: 1px;
  color: #ffffff;
  margin: 24px 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.3);
  animation: heroZoom .9s cubic-bezier(.19,1,.22,1) both;
}

.hero__descr {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  color: #ffffff;
  margin: 15px 0 30px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  animation: heroZoom .9s cubic-bezier(.19,1,.22,1) .3s both;
}

.hero__buttons {
  margin-top: 45px;
  animation: heroZoom .9s cubic-bezier(.19,1,.22,1) .6s both;
}

@keyframes heroZoom {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Sections ===== */
.section { padding: 150px 0; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 105px;
}

.section-title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.25;
  color: #000;
  margin: 0 0 30px;
}

.section-descr {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 300;
  color: #000;
  margin: 0 auto;
}

/* ===== Cards ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 40px;
  justify-content: center;
}

.card {
  flex: 1 1 300px;
  max-width: 360px;
  text-align: center;
}

.card__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  color: #0a8fc4;
}

.card__icon svg { width: 100%; height: 100%; }

.card__title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.17;
  color: #000;
  margin: 0 0 25px;
}

.card__title--stack {
  font-size: 24px;
  margin: 18px 0 25px;
  letter-spacing: .5px;
}

.card__descr {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: #000;
  margin: 0;
  padding: 0 20px;
}

.stack-cta {
  text-align: center;
  margin-top: 105px;
}

/* ===== Join us ===== */
.join {
  padding: 150px 0;
  background-color: #f0f0f0;
}

.join__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
}

.join__media {
  flex: 1 1 480px;
  min-width: 0;
}

.join__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.join__text {
  flex: 0 1 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.join__title {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.23;
  color: #000;
  margin: 0 0 24px;
}

.join__descr {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: #000;
  margin: 0 0 16px;
}

.join__text .btn { margin-top: 14px; align-self: flex-start; }

/* ===== Contact form ===== */
.contact { padding: 150px 0; }

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-form__row input { flex: 1 1 240px; min-width: 0; }

.contact-form input,
.contact-form textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #000;
  padding: 16px 22px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  outline: none;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  border-radius: 24px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0a8fc4;
  box-shadow: 0 0 0 3px rgba(10,143,196,.12);
}

.contact-form button {
  align-self: center;
  min-width: 220px;
}

.contact-form__status { text-align: center; font-size: 16px; min-height: 24px; }

/* ===== Footer ===== */
.footer {
  padding: 75px 0;
  background-color: #111111;
  text-align: center;
}

.footer__logo {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 4px;
  color: #ffffff;
  margin-bottom: 22px;
}

.footer__descr {
  font-size: 14px;
  line-height: 26px;
  letter-spacing: 1px;
  color: #ffffff;
  opacity: .7;
}

.footer__credit { margin-top: 30px; }

.footer__credit a {
  opacity: 0.5;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
}

/* ===== Responsive ===== */
@media screen and (max-width: 960px) {
  .section { padding: 90px 0; }
  .join { padding: 90px 0; }
  .contact { padding: 90px 0; }
  .section-head { margin-bottom: 45px; }
  .stack-cta { margin-top: 45px; }
  .join__text { flex: 1 1 100%; }
}

@media screen and (max-width: 480px) {
  .btn { padding: 0 30px; height: 50px; line-height: 46px; font-size: 15px; }
  .btn--outline { line-height: 46px; }
  .hero__buttons { margin-top: 30px; }
  .card { flex: 1 1 100%; max-width: 100%; }
}
