/* pelmet.eu – statická verze původního webu (rozměry a barvy převzaté 1:1) */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: 'Jura', Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  padding-bottom: 10px;
  font-weight: 700;
}

p { margin: 0; }

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

a { color: inherit; }

/* ---------- kostra ---------- */

.row {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 27px 0;
}

.confetti {
  background: #000 url('/img/konfety.png') center / cover no-repeat;
}

/* ---------- úvod ---------- */

.hero { padding: 54px 0 2px; }
.hero .row { padding-bottom: 56px; }

.hero h1 {
  color: #fff022;
  font-size: 117px;
  line-height: 1.1em;
  text-align: center;
}

/* ---------- kdo jsme ---------- */

.about { padding: 11px 0; }
.about .row:first-child { padding-bottom: 0; }

.about h2 {
  font-size: 80px;
  line-height: 1.1em;
}

.about p {
  font-size: 28px;
  line-height: 1em;
}

/* ---------- tým a tech stack ---------- */

.cards { padding: 2px 0 5px; }

.cards__row {
  display: grid;
  grid-template-columns: 48.5% 48.5%;
  column-gap: 3%;
}

.card {
  padding: 40px 40px 120px;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}
.card--team { background-color: #ff6af0; background-image: url('/img/karta-tym.png'); color: #000; }
.card--stack { background-color: #6700ff; background-image: url('/img/karta-stack.png'); }

.card h2 {
  margin-bottom: 13px;
  font-size: 70px;
  line-height: 1.1em;
}
.card--stack h2 { font-weight: 600; }

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  padding-bottom: 10px;
  font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1em;
}
.card--team li + li { margin-top: 14px; }

/* ---------- přidej se k nám ---------- */

.join { padding: 54px 0 6px; }

.join__row {
  display: grid;
  grid-template-columns: 47.25% 47.25%;
  column-gap: 5.5%;
  padding: 0;
}

.join__box {
  padding: 60px;
  border: 8px solid #fff022;
  background: url('/img/tecky.png') round;
}

.join__box h2 {
  font-size: 80px;
  font-weight: 600;
  line-height: 1.1em;
}

.join__text { padding: 25px 0 29px; }

.join__text h3 {
  margin: 0 120px 30px 0;
  font-size: min(48px, 4.5vw); /* „developery“ se jinak kolem 1000 px nevejde */
  line-height: 1.2em;
}

.join__text p {
  max-width: 800px;
  font-weight: 600;
}

.join__image { margin-right: -10vw; }
.join__image img { width: 100%; }

/* ---------- kontakt ---------- */

.contact { padding: 5px 0 14px; }

.contact__button {
  position: relative;
  display: inline-block;
  margin-bottom: 2.75%;
  padding: 8% 2em 8% .7em;
  background: #000;
  color: #fff;
  font-size: 80px;
  font-weight: 500;
  line-height: 1.2em;
  text-decoration: none;
  transition: color .3s ease, background-color .3s ease;
}
.contact__button:hover,
.contact__button:focus-visible {
  background: #ff6af0;
  color: #000;
}

.contact__cursor {
  position: absolute;
  top: 50%;
  right: .9em;
  width: .56em;
  height: .8em;
  transform: translateY(-50%);
}

.contact__info { max-width: 800px; }

/* ---------- 404 ---------- */

.notfound { min-height: 100vh; padding-top: 15vh; }
.notfound h1 { color: #fff022; font-size: 80px; line-height: 1.1em; }
.notfound p { margin: 20px 0 40px; }
.notfound a { color: #fff022; font-weight: 700; }

/* ---------- tablet a mobil ---------- */

@media (max-width: 980px) {
  .row { padding: 30px 0; }
  .hero { padding-top: 50px; }
  .hero .row { padding-bottom: 56px; }
  .hero h1 { font-size: 60px; }

  .about .row:first-child { padding-bottom: 0; }
  .about h2 { font-size: 40px; }
  .about p { font-size: 20px; }

  .cards__row,
  .join__row { display: block; }
  .card { padding: 40px 30px; }
  .card--team { margin-bottom: 30px; }
  .card h2 { margin-bottom: 30px; font-size: 40px; }
  .card--team li + li { margin-top: 30px; }

  .join { padding-top: 50px; }
  .join__row { padding: 0; }
  .join__box { padding: 30px 20px; }
  .join__box h2 { font-size: 30px; }
  .join__text { padding-bottom: 30px; }
  .join__text h3 { font-size: 32px; }
  .join__text p { font-size: 16px; }
  .join__image { margin: 30px 0 0; }

  .contact__button { margin-bottom: 29px; font-size: 33px; }
  .contact__info { font-size: 14px; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 50px; }
  .about h2 { font-size: 35px; }
  .about p { font-size: 17px; }
  .card { padding: 40px 20px; }
  .card h2 { font-size: 26px; }
  .join__box { border-width: 4px; }
  .join__text h3 { font-size: 19px; }
  .notfound h1 { font-size: 40px; }
}
