* {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
}

header {
    background-image: url('img/header.webp');
    background-size: cover;
    background-position: center;
    height:100vh;
}

.intro-text {
    color: white;
    padding:100px;
    width:60%;
}
.intro-text img {
    display: block;
    width:240px;
    margin-bottom: 80px;
}

.intro-text h1 {
    font-size: 64px;
    font-weight: 900;
    margin-top: 0;
}

.intro-text h4 {
    background-color: #B33364;
    display: inline-block;
    padding:2px 4px;
    font-size: 24px;
    margin-bottom: 4px;
}

.intro-text h2 {
    font-style: italic;
    font-size: 28px;
    margin-top: 40px;
}

.intro-text h3 {
    font-size: 24px;
}

.intro-text p {
    line-height: 1.36;
}

.main {
    max-width: 1140px;
    margin:100px auto;
    padding:0 20px;
}

.flex {
    display: flex;
    gap:30px;
}

.flex div {
    width:33%;
    border: 1px solid black;
    border-radius: 12px;
    padding:20px 20px 60px;
    text-align: center;
    position: relative;
}

.flex div h2 {
    font-weight: 900;
}

.button {
    background-color: #0C3C56;
    border-radius: 6px;
    padding:8px 20px;
    color:white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    margin:10px auto;
    display: inline-block;
    position: absolute;
    bottom:10px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
    text-decoration: none;
}

.button:hover {
    background-color:#B33364;
}

.contact {
    text-align: center;
}

.contact > h2 {
    font-size: 48px;
    font-weight: 900;
}

.flex.contact {
    justify-content: center;
}

.flex.contact div {
    padding-bottom: 40px;
    border: none;
}

.flex.contact div a {
    text-decoration: none;
    display: inline-block;
    margin:2px 0;
    color:black;
    transition:all 0.3s;
}

.flex.contact div a:hover {
    text-decoration: underline;
    text-decoration-color: #B33364;
}

@media screen and (max-width: 1180px) {
  .intro-text {
    padding:40px;
  }
}

@media screen and (max-width: 950px) {

  .flex {
    flex-wrap: wrap;
    justify-content: center;
  }

  .flex div {
    width:calc(50% - 40px);
  }

  .flex div:last-child {
    width:calc(100% - 50px);
  }

  .flex.contact div, .flex.contact div:last-child {
    width:calc(50% - 40px);
  }
}

@media screen and (max-width: 1200px) and (max-height: 800px) {
  header {
    height: auto;
  }
}

@media screen and (max-width: 640px) {
  header {
   background-image: none;
   background-color: #0C3C56;
   height: auto;
  }

  .intro-text {
    width:100%;
  }

  .flex div {
    width:100% !important;
  }


}

