@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;400;600;800&display=swap");

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

:focus:not(:focus-visible) {
  outline: none;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

a,
label,
button,
select,
[type="radio"],
[type="submit"],
[type="checkbox"] {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  pointer-events: none;
}

ul {
  list-style: none;
  padding-left: 0;
}

a {
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  background-color: #ffffff;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

a {
  position: relative;
  padding: 1rem;
  display: block;
  width: fit-content;
  margin: auto;
}

a img {
  max-width: 1000px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media only screen and (max-width: 786px) {
  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
  }
}

section.welcome {
  display: flex;
}

section.welcome > div:first-child {
  width: 55%;
}

section.welcome > div:last-child {
  width: 45%;
  background-image: url(/img/csalad_koz.jpg);
  background-size: cover;
  background-position: bottom;
}

section.welcome div:first-child .content-wrap {
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin: 12rem 12%;
}

section.welcome div:first-child .content-wrap h1 {
  margin-bottom: 2rem;
}

section.welcome div:first-child .content-wrap h1 span {
  color: #0074bf;
}

section.welcome div:first-child .content-wrap .buttons {
  display: flex;
  width: fit-content;
}

section.welcome div:first-child .content-wrap .buttons a {
  font-size: 1rem;
  color: black;
  background: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1px solid black;
  border-radius: 0.5rem;
}

@media only screen and (max-width: 786px) {
  section.welcome {
    flex-direction: column-reverse;
  }
  section.welcome > div:first-child {
    width: 100%;
  }
  section.welcome div:first-child .content-wrap {
    margin: 0;
    padding: 4rem 2rem 8rem;
  }
  section.welcome > div:last-child {
    width: 100%;
    height: 325px;
    background-image: url(/img/csalad_koz.jpg);
    background-size: cover;
    background-position: bottom;
  }
}

section.sub-welcome {
  display: flex;
  background-color: #021128;
  align-items: center;
}

section.sub-welcome > div:first-child {
  width: 60%;
}

section.sub-welcome > div:last-child {
  position: relative;
  width: 40%;
  padding: 4rem 6rem 4rem 0;
}

section.sub-welcome div:first-child .content-wrap {
  width: 100%;
  max-width: 600px;
  text-align: left;
  margin: 8rem 12%;
}

section.sub-welcome div:first-child .content-wrap h1 {
  margin-bottom: 2rem;
  color: #ffffff;
}

section.sub-welcome div:first-child .content-wrap h1 span {
  color: #0074bf;
}

section.sub-welcome div:first-child .content-wrap p {
  color: #ffffff;
}

section.sub-welcome div:first-child .content-wrap p:last-of-type {
  margin-bottom: 2rem;
}

section.sub-welcome div:first-child .content-wrap .buttons {
  display: flex;
  width: fit-content;
}

section.sub-welcome div:first-child .content-wrap .buttons a {
  font-size: 1rem;
  color: #ffffff;
  background: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1px solid #ffffff;
  border-radius: 0.5rem;
}

section.sub-welcome > div:last-child img:first-child {
  position: absolute;
  left: 3rem;
  top: 4rem;
  width: 75px;
  padding: 1rem;
  background-color: #ffffff;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

section.sub-welcome > div:last-child img:last-child {
  max-width: 600px;
  border-radius: 1rem;
  box-shadow: 30px 30px #0074bf;
}

@media only screen and (max-width: 786px) {
  section.sub-welcome {
    flex-direction: column-reverse;
  }
  section.sub-welcome > div:first-child {
    width: 100%;
  }
  section.sub-welcome div:first-child .content-wrap {
    margin: 0;
    padding: 2rem 2rem 4rem;
  }
  section.sub-welcome > div:last-child {
    position: relative;
    width: 100%;
    padding: 4rem 2.5rem 4rem 2rem;
  }
}

section.advantages {
  background-color: #0074bf;
  color: #ffffff;
  padding: 6rem 4rem;
}

section.advantages h2 {
  margin-bottom: 2rem;
}

section.advantages > p {
  font-size: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

section.advantages .cards-list {
  display: flex;
  width: fit-content;
  flex-direction: row;
  margin: 0 auto 3rem;
}

section.advantages .cards-list .card {
  background-color: #2d82c5;
  max-width: 350px;
  padding: 3rem 2rem;
  border-radius: 0.5rem;
}

section.advantages .cards-list .card img {
  width: 100px;
  margin: 0 auto 1.5rem;
}

section.advantages .cards-list .card h3 {
  margin-bottom: 1rem;
}

section.advantages .cards-list .card p {
  margin-bottom: 0;
}

section.advantages .cards-list .card:not(:last-child) {
  margin-right: 1.5rem;
}

section.advantages a {
  font-size: 1rem;
  color: #ffffff;
  background: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1px solid #ffffff;
  border-radius: 0.5rem;
}

@media only screen and (max-width: 786px) {
  section.advantages {
    padding: 6rem 2rem;
  }
  section.advantages .cards-list {
    flex-direction: column;
  }
  section.advantages .cards-list .card:not(:last-child) {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
}

section.refrences {
  padding: 8rem 4rem 0;
}

section.refrences h2 {
  margin-bottom: 2rem;
}

section.refrences > p {
  font-size: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

section.refrences .img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: auto;
}

@media only screen and (max-width: 786px) {
  section.refrences {
    padding: 8rem 2rem 0;
  }
  section.refrences .img-grid {
    grid-template-columns: 1fr;
  }
}

section.services {
  background-color: #021128;
  color: #ffffff;
  margin-top: -10rem;
  padding: 18rem 4rem 6rem;
}

section.services h2 {
  margin-bottom: 2rem;
}

section.services > p {
  font-size: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

section.services .cards-grid {
  display: grid;
  width: fit-content;
  margin: auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

section.services .cards-grid .card {
  max-width: 400px;
  padding: 4rem 3rem;
  border: 1px solid rgb(0 0 0 / 0);
  border-radius: 0.5rem;
  text-align: left;
  /* cursor: pointer; */
  transition: 0.3s;
}

/* section.services .cards-grid .card:hover {
  border: 1px solid #ffffff;
  transform: translateY(-1px);
} */

section.services .cards-grid .card img {
  height: 75px;
  width: auto;
  margin-bottom: 2rem;
}

section.services .cards-grid .card h3 {
  margin-bottom: 1rem;
}

section.services .cards-grid .card p {
  margin-bottom: 0;
}

@media only screen and (max-width: 786px) {
  section.services {
    padding: 18rem 0 6rem;
  }
  section.services h2 {
    padding: 0 2rem;
  }

  section.services > p {
    padding: 0 2rem;
  }
  section.services .cards-grid {
    grid-template-columns: 1fr;
  }
  section.services .cards-grid .card {
    padding: 3rem 2rem;
  }
}

section.roof-service {
  padding: 8rem 4rem;
  margin-bottom: 4rem;
}

section.roof-service h2 {
  margin-bottom: 2rem;
}

section.roof-service > p {
  font-size: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

section.roof-service .cards-list {
  display: flex;
  width: fit-content;
  flex-direction: row;
  margin: 0 auto 3rem;
}

section.roof-service .cards-list .card {
  max-width: 400px;
  padding: 3rem 0;
  border-radius: 0.5rem;
}

section.roof-service .cards-list .card img {
  height: 100px;
  margin: 0 auto 1rem;
}

section.roof-service .cards-list .card h3 {
  margin-bottom: 1rem;
}

section.roof-service .cards-list .card p {
  margin-bottom: 0;
}

section.roof-service .cards-list .card:not(:last-child) {
  margin-right: 1.5rem;
}

section.roof-service a {
  font-size: 1rem;
  color: #ffffff;
  background-color: #0074bf;
  padding: 0.75rem 1.5rem;
  display: flex;
  width: fit-content;
  font-weight: 600;
  border-radius: 0.5rem;
}

@media only screen and (max-width: 786px) {
  section.roof-service {
    padding: 4rem 2rem;
  }
  section.roof-service .cards-list {
    flex-direction: column;
  }
  section.roof-service .cards-list .card {
    padding: 2rem 0;
    border-radius: 0.5rem;
  }
  section.roof-service .cards-list .card:not(:last-child) {
    margin-right: 0;
  }
}

section.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

section.about .texts {
  text-align: left;
  padding: 2rem 6rem;
}

section.about .texts h1 {
  margin-bottom: 2rem;
}

section.about .texts h1 span {
  color: #0074bf;
}

section.about .texts p {
  font-size: 1.25rem;
}

section.about .image {
  margin-left: auto;
  max-width: 640px;
}

section.about .image img {
  width: 100%;
}

@media only screen and (max-width: 786px) {
  section.about {
    grid-template-columns: 1fr;
  }
  section.about .texts {
    padding: 2rem;
  }
}

section.contact-form {
  padding: 8rem 4rem;
  margin-bottom: 4rem;
}

section.contact-form > h2 {
  max-width: 1100px;
  margin: auto;
  margin-bottom: 4rem;
}

section.contact-form .row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: fit-content;
  margin: auto;
  text-align: left;
}

section.contact-form .row .personal-details,
section.contact-form .row .roof-details {
  max-width: 375px;
}

section.contact-form .row h2 {
  margin-bottom: 1.5rem;
}

section.contact-form .row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

section.contact-form .row label input,
section.contact-form .row label select {
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 24px;
  padding: 0.5rem;
  width: 100%;
  border: 1.5px solid black;
  border-radius: 0.125rem;
  outline: none;
  margin-top: 0.25rem;
}

section.contact-form .row .checkbox {
  display: flex;
  align-items: baseline;
  margin-top: 1.5rem;
}

section.contact-form .row .checkbox input {
  margin-right: 0.5rem;
}

section.contact-form .row .checkbox label {
  font-weight: 400;
  font-size: 1rem;
}

section.contact-form .row .checkbox label a {
  display: inline;
  padding: 0;
  color: inherit;
  text-decoration: underline;
}

section.contact-form .row button {
  font-family: inherit;
  width: 100%;
  border: none;
  font-size: 1rem;
  color: #ffffff;
  background-color: #0074bf;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  margin-top: 0.75rem;
}

@media only screen and (max-width: 786px) {
  section.contact-form {
    padding: 8rem 2rem;
  }
  section.contact-form .row {
    flex-direction: column;
  }
}

section.workflow {
  padding: 0 4rem 4rem;
}

section.workflow h2 {
  margin-bottom: 3rem;
}

section.workflow .steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: fit-content;
  margin: auto;
}

section.workflow .steps-grid .card {
  max-width: 400px;
  position: relative;
  padding: 1.5rem;
  text-align: left;
}

section.workflow .steps-grid .card > p {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  background-color: #000000;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

section.workflow .steps-grid .card:nth-child(2n + 1) > p {
  background-color: #0074bf;
}

section.workflow .steps-grid .card div {
  border: 2px solid #0074bf;
  border-radius: 2rem;
  padding: 2.5rem 2rem 1rem;
  height: 100%;
}

section.workflow .steps-grid .card div h3 {
  margin-bottom: 1rem;
}

@media only screen and (max-width: 786px) {
  section.workflow {
    padding: 6rem 2rem 4rem;
  }
  section.workflow .steps-grid {
    grid-template-columns: 1fr;
  }
}
