@import url("https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Forum&display=swap");
body {
  background-color: #f5f5f5;
  background-image: url(img/back.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Didact Gothic", sans-serif;
  color: #212121;
  font-size: 20px;
}

.wrap {
  max-width: 980px;
  margin: auto;
}

.c_rown {
  color: #AF936C;
}

.btn {
  background-color: #00425A;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 3px solid #AF936C;
  color: #f7f7f7;
  margin-top: 20px;
}
.btn:hover {
  background-color: #AF936C;
  cursor: pointer;
}

h1 {
  font-family: "Forum", serif;
}

.bf {
  padding: 15px;
  background-color: #00425A;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  align-items: center;
  background-image: url(img/body.png);
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  font-family: "Forum", serif;
  font-size: 32px;
}
.top_title_one {
  margin-left: -300px;
}
.top_title_two {
  font-size: 80px;
  margin: 10px;
}
.top_title_three {
  margin-right: -300px;
}
.top p {
  font-size: 18px;
  max-width: 560px;
  margin-top: 50px;
}

.col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
}
.col_block {
  border: 3px #AF936C solid;
  border-radius: 15px;
  background-color: #f7f7f7;
  padding: 20px;
}
.col_block a {
  text-decoration: none;
}
.col_block_title {
  font-size: 26px;
  font-family: "Forum", serif;
  margin-bottom: 20px;
  padding-bottom: 20px;
  text-align: center;
  border-bottom: 3px solid #AF936C;
}
.col_block_old {
  margin: 30px 0 15px 0;
  font-size: 14px;
  text-align: center;
}
.col_block_text p {
  margin: 2px;
  font-size: 16px;
}

.autor {
  margin-top: 200px;
}
.autor_block {
  display: flex;
  padding: 30px 50px;
  border: 3px solid #AF936C;
  border-radius: 20px;
  background-color: #f7f7f7;
}
.autor_block img {
  max-width: 250px;
  max-height: 250px;
  margin: -80px 0;
  border-radius: 300px;
  margin-right: 30px;
}
.autor_title {
  font-family: "Forum", serif;
  font-size: 60px;
}
.autor_title span {
  display: block;
  font-family: "Didact Gothic", sans-serif;
  margin-bottom: 10px;
  font-size: 22px;
}
.autor_col {
  display: grid;
  grid-template-columns: 1fr 2fr;
}
.autor_col_social {
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  text-align: center;
}
.autor_col_social img {
  margin-top: 5px;
  width: 32px;
  margin: 10px 5px;
}
.autor_col_social a {
  text-decoration: none;
}
.autor_col_text {
  padding: 30px;
}

.pryklad {
  text-align: center;
  margin: 50px 0;
}
.pryklad a {
  border: 1px solid #AF936C;
  padding: 10px 20px;
  color: #00425A;
  text-decoration: none;
  border-radius: 10px;
}
.pryklad a:hover {
  background-color: #AF936C;
}

/* Стилі для модальних вікон */
.modal {
  display: none; /* Вікно приховане за замовчуванням */
  position: fixed; /* Прикріплюємо вікно до екрану */
  z-index: 1; /* Встановлюємо верхній шар */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Додаємо прокрутку, якщо контент більший за вікно */
  background-color: rgba(0,0,0,0.8); /* Додаємо затемнення */
}

.modal-content {
  background-color: #fff; /* Білий колір для контенту */
  margin: 30px auto; /* Центруємо контент на сторінці */
  padding: 20px;
  border: 1px solid #888;
  width: 30%; /* Ширина контенту */
}

/* Стилі для кнопки відкриття вікна */
.open-modal-btn {
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #191919;
}

.modal-content {
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
}

.form_title {
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}

input, select {
  padding: 10px;
  border-radius: 5px;
  font-family: "Didact Gothic", sans-serif;
  font-size: 18px;
  margin: 10px 0;
}

@media screen and (max-width: 768px) {
  .col {
    padding: 20px;
    display: block;
  }
  .col_block {
    margin-bottom: 30px;
  }
  .autor {
    padding: 20px;
    margin-top: 50px;
  }
  .autor_block {
    display: block;
  }
  .autor_block img {
    margin: -100px 0 20px 0;
    max-width: 150px;
  }
  .autor_title {
    font-size: 40px;
  }
  .autor_title span {
    font-size: 20px;
  }
}
@media screen and (max-width: 576px) {
  .bf {
    border-radius: 0;
    font-size: 16px;
  }
  .top_title_one, .top_title_three {
    margin: 0;
    font-size: 28px;
  }
  .top_title_two {
    font-size: 48px;
  }
  .top p {
    padding: 0 20px;
  }
  .col {
    padding: 20px;
    display: block;
  }
  .col_block {
    margin-bottom: 30px;
  }
  .col_col {
    display: flex;
    flex-direction: column;
  }
  .col_col_social {
    padding-top: 20px;
  }
  .col_col_text {
    padding-top: 0;
  }
}
@media screen and (max-width: 480px) {
  .top {
    min-height: 400px;
  }
  .top_title_one, .top_title_three {
    margin: 0;
    font-size: 28px;
  }
  .top_title_two {
    font-size: 48px;
  }
  .autor_col {
    display: flex;
    flex-direction: column;
  }
  .autor_col_text {
    padding: 10px 0;
  }
}