/* Базові стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden; 
}

/* Header */
header {
  width: 80vw;
  height: 15vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.textLogo {
  color: #3c65ff;
  font-size: 42px;
  font-weight: 700;
}

a {
  color: rgb(76, 85, 106);
  text-decoration: none;
}

.aHeader {
  margin: 0 0.5rem;
}

.blue {
  color: #3c65ff;
}

.menu-toggle {
  display: none;
}

.hamburger-icon {
  display: none; 
  font-size: 28px; 
  color: #3c65ff; 
  cursor: pointer;
  z-index: 20; 
  padding: 5px;
  
  -webkit-tap-highlight-color: transparent; 
  outline: none; 
}

.main-nav {
  display: flex;
}

.main-nav .about {
  display: flex;
  flex-direction: row; 
  align-items: center;
}

.container {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.Maria {
  margin-top: 1.5rem;
  text-align: center;
  width: 90vw;
  padding: 0 15px;
}

h1 {
  font-size: 58px;
  color: rgb(40, 45, 56);
}

.pAbout {
  color: rgb(76, 85, 106);
  font-size: 20px;
  margin-top: 2rem;
  line-height: 1.5;
}

img {
  width: 400px;
  margin-top: 3rem;
  border-radius: 0.5rem;
  max-width: 90%; 
  height: auto; 
}

.iKnow {
  width: 70vw;
  height: max-content;
  margin-top: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
}

h2 {
  font-size: 52px;
  color: rgb(40, 45, 56);
}

.area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.area1,
.area2,
.area3 {
  width: auto; 
  border: 1px rgb(220, 220, 220) solid;
  box-shadow: 4px 5px 10px rgb(221, 221, 221);
  border-radius: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

h3 {
  font-size: 22px;
  color: #282d38;
  margin: 1.5rem 0;
  font-weight: 700;
}

h4 {
  font-size: 18px;
  color: #717d99;
  font-family: sans-serif;
  font-weight: normal;
  margin-bottom: 1rem;
}

h5 {
  font-size: 18px;
  color: #741cff;
  font-family: sans-serif;
  font-weight: normal;
  margin-top: 1.5rem;
}

.bottom {
  margin-bottom: 3rem;
}

.bottom1,
.bottom2 {
  margin-top: 0.5rem;
}

footer {
  color: white;
  background-color: rgb(116, 28, 255);
  width: 100vw;
  height: auto; 
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.aboutF .aHeader {
  color: white;
  /* margin: 0.5rem 0; */
}

.aboutF {
  margin-top: 1.5rem;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
}

.fCreated {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  width: 90%;
}

.created {
  color: rgb(208, 208, 208);
  font-size: 14px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  header {
    width: 90vw;
  }
  .Maria {
    width: 90vw;
  }
  h1 {
    font-size: 48px;
  }
  .pAbout {
    font-size: 18px;
  }
  .iKnow {
    width: 90vw;
  }
  .area {
    grid-template-columns: 1fr; 
  }
  .area1,
  .area2,
  .area3 {
    width: 90vw;
    margin: 0 auto;
  }
}

@media (max-width: 501px) {
  header {
    height: 10vh;
    padding: 0 15px;
  }
  .textLogo {
    font-size: 36px;
  }

  .hamburger-icon {
    display: flex; 
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: flex; 
    flex-direction: column;
    position: absolute; 
    top: 10vh; 
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    padding: 1rem 0;
    height: calc(100vh - 10vh);
    overflow-y: auto; 

    max-height: 0; 
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.9s ease-out, opacity 0.9s ease-out, visibility 0.9s;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 100vh; 
    opacity: 1;
    visibility: visible;
    transition: max-height 0.9s ease-in, opacity 0.9s ease-in, visibility 0.9s; /* Плавне зникнення */
  }

  .main-nav .about {
    flex-direction: column; 
    width: 100%;
    align-items: center;
    padding-top: 1rem;
  }

  .main-nav .aHeader {
    margin: 0.75rem 0;
    font-size: 18px;
  }
  .main-nav .blue {
    margin-top: 0.5rem;
  }

  .Maria {
    width: 95vw;
    padding: 0 10px;
  }
  h1 {
    font-size: 38px;
  }
  .pAbout {
    font-size: 16px;
    margin-top: 1.5rem;
  }
  img {
    max-width: 90%;
    width: auto;
    margin-top: 2rem;
  }
  h2 {
    font-size: 42px;
    margin-top: 3rem;
  }
  .iKnow {
    width: 95vw;
    margin-top: 4rem;
  }
  .area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .area1,
  .area2,
  .area3 {
    width: 95%;
    margin: 0 auto;
    padding: 1rem;
  }
  h3 {
    font-size: 20px;
    margin: 1rem 0;
  }
  h4 {
    font-size: 16px;
    margin-bottom: 0.8rem;
  }
  h5 {
    font-size: 16px;
    margin-top: 1rem;
  }
  .bottom {
    margin-bottom: 1.5rem;
  }
  .bottom1,
  .bottom2 {
    margin-top: 0.5rem;
  }

  footer {
    padding: 2rem 0;
  }
  .aboutF {
    margin-top: 1rem;
  }
  .fCreated {
    margin-top: 1.5rem;
  }
}

@media (max-width: 430px) {
  header {
    padding: 0 10px;
  }
  .textLogo {
    font-size: 32px;
  }
  h1 {
    font-size: 32px;
  }
  .pAbout {
    font-size: 14px;
  }
  h2 {
    font-size: 36px;
  }
  h3 {
    font-size: 18px;
  }
  h4 {
    font-size: 15px;
  }
  h5 {
    font-size: 15px;
  }
  .created {
    font-size: 12px;
  }
}