/*
Theme Name: courses
Author: Max Severyn
Version: 1.0
*/

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.3;
  color: #333;
  letter-spacing: 0.02em;
  min-height: 100%;
  background-color: #fff;
}

.content {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1vh 25px 0;
  min-height: 100vh;
}

/* .header {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
} */

/* .header__title {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
} */

.header-banner {
  background: #16295b;
  border-radius: 18px;
  color: #fff;
  display: flex;
  height: fit-content;
  justify-content: space-between;
  margin-top: 200px;
  padding: 50px;
  width: 100%;
}

.header-banner__content {
  width: 70%;
}

.header-banner__title {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0;
}

.header-banner__description {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 155%;
  margin-top: 35px;
}

.header-banner__logo {
  width: 30%;
  height: auto;
}

.header-banner__button {
  font-size: 1rem;
  letter-spacing: 0.04em;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.1);
  color: #000;
  display: flex;
  font-weight: 700;
  height: 60px;
  justify-content: center;
  margin-top: 45px;
  transition: 0.3s all ease;
  width: 265px;
  cursor: pointer;
}

.header-banner__button:hover {
  background: #f0f0f0;
  color: #16295b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.information-board {
  margin-top: 35px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.information-board__item {
  align-items: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  display: flex;
  flex: 20%;
  flex-direction: column;
  font-size: 20px;
  min-height: 100px;
  padding: 40px 30px;
  text-align: left;
}

.information-board__item__header,
.study-format__content-description-block__header {
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
  margin-bottom: 5px;
  padding-left: 15px;
}

.information-board__item__header::before,
.study-format__content-description-block__header::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: #16295b;
}

.information-board__item__description {
  font-weight: 400;
  font-size: 1.3rem;
  padding-left: 15px;
  margin: 0;
}

.courses,
.benefits,
.study-format,
.legal,
.register {
  width: 100%;
  margin-top: 20px;
}

.register {
  margin-top: 40px;
}

.section-title {
  margin: 50px 0;
  font-size: 3.2rem;
  font-weight: 600;
}

.courses-board {
  margin-top: 35px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.courses-board__item {
  flex: 0 0 calc(50% - 10px);
  border-radius: 18px;
  display: flex;

  flex-direction: column;
  height: 250px;
  padding: 50px;
  box-sizing: border-box;
  background-color: red;
}

.courses-board__item--first {
  background-color: rgb(255, 218, 89);
}
.courses-board__item--second {
  background-color: rgb(209, 242, 255);
}
.courses-board__item--third {
  background-color: rgb(162, 232, 169);
}
.courses-board__item--fourth {
  background-color: rgb(255, 176, 167);
}

.courses-board__item--fifth {
  background-color: rgb(255, 230, 180);
}

.courses-board__item--sixth {
  background-color: rgb(209, 242, 255);
}

.courses-board__item__index {
  border-radius: 50%;
  background-color: black;
  width: fit-content;
  padding: 5px 12px;
  color: white;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
}

.courses-board__item__header {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 80%;
  text-align: left;
  margin-top: 25px;
  color: black;
}

.benefits-board {
  margin-top: 35px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.benefits-board__item__header {
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  max-width: 70%;
}

.benefits-board__item__description {
  font-size: 16px;
  font-weight: 400;
  margin-top: 15px;
  max-width: 80%;
  letter-spacing: 0.02em;
}

.benefits-board__item__icon {
  width: 72px;
}

.benefits-board__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 calc(33.333% - 13.33px);
  max-width: 400px;
  min-height: 250px;

  box-sizing: border-box;
  border-radius: 18px;
}

.study-format__content,
.study-format__group {
  border: 1px solid #000;
  border-radius: 18px;
  margin-top: 30px;
  min-height: 200px;
  padding: 35px;
  display: flex;
  gap: 40px;
  flex-direction: column;
  align-items: center;
}

.study-format__content-description-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.study-format__content-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.study-format__content-description {
  width: 60%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.study-format__content-description-block__header {
  font-size: 1.1rem;
}

.study-format__content-description-block__text {
  font-size: 1rem;
}

.study-format__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 10px;
}

.study-format__group {
  width: 50%;
}

.study-format__group-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 30px;
}

.study-format__group {
  gap: 5px;
}

.study-format__group-description,
.study-format__group-price {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  line-height: 1.4;
}

.study-format__group-button,
.result-column__button {
  cursor: pointer;
  align-items: center;
  align-self: center;
  background: #fff;
  border-radius: 14px;
  border: none;
  color: #000;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 50px;
  justify-content: center;
  justify-self: center;
  margin-bottom: 10px;
  margin-top: 30px;
  text-decoration: inherit;
  transition: 0.4s;
  width: 70%;
}

.study-format__group-button {
  background: #16295b;
  color: #fff;
}

.study-format__group-button:hover,
.result-column__button:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.study-format__group-button:hover {
  background: #265aa6;
}

.legal__wrapper,
.result__wrapper {
  align-items: flex-start;
  background-color: #16295b;
  border-radius: 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  min-height: 200px;
  padding: 50px 150px 50px 50px;
  position: relative;
  width: 100%;
}

.legal-column {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.legal-column__header {
  font-size: 1.4rem;
  margin-bottom: 40px;
}

.legal-pay {
  width: 60%;
}

.legal-column__item {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  font-size: 16px;
  margin-bottom: 15px;
}

.legal-column__item__header {
  font-weight: 700;
  font-size: 1.1rem;
}

.legal-column__item__description {
  max-width: 400px;
  text-align: right;
}

.legal-column__alert {
  background: #361111;
  border-radius: 18px;
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.legal-docs__item__description {
  margin: 10px 0;
}

.register-alert {
  padding: 15px 20px;
  font-size: 1.4rem;
}

.register__form {
  width: 50%;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.register__form-title {
  font-size: 18px;
  font-weight: 700;
  margin: 20px 0 10px;
}

.register__form-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.register__form-input {
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.register__wrapper {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
}

.register__form-input:focus {
  border-color: #000;
}

.subjects__select {
  display: grid;
  grid-template-columns: 200px 150px 150px;
  grid-template-rows: 75px auto 1fr 1fr 1fr auto auto;
  align-items: center;
}

.subjects__select--header {
  display: contents;
  text-align: center;
}

.subjects__select--header__item {
  font-size: 1.2rem;
  font-weight: 700;
}

.option-item {
  display: contents;
}

.option-item__title {
  grid-column: 1;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.option-item__radio {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.option-item__input {
  display: none;
}

.option-item__custom {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  border: 1px solid #1e90ff;
  background-color: #265aa6;
  margin: 10px;
  transition: border-color 0.3s, background-color 0.3s;
}

.option-item__input:checked + .option-item__custom {
  background-color: #16295b;
  border-color: #1e90ff;
}

.option-item__custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.option-item__input:checked + .option-item__custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.option-item__text {
  color: #222;
}

.result__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  padding: 30px 50px;
  margin: 100px auto;
}

.result-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-column__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-column__item__header {
  font-weight: 700;
  font-size: 1.4rem;
}

.result-column__item__alert {
  display: block;
  margin-top: 30px;
  color: #c4c2c2;
  font-size: 14px;
}

.vstup-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  color: black;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid black;
  border-radius: 12px;
  width: 300px;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
}

.vstup-popup__content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.vstup-popup__title {
  margin: 10px 0;
  text-align: center;
  font-size: 18px;
}

.vstup-popup__button {
  background-color: #16295b;
  color: white;
  border: none;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  width: 200px;
  margin: 5px auto;
  text-decoration: none;
  text-align: center;
  transition: 0.3s background-color ease;
}

.vstup-popup__button:hover {
  background-color: #0d1c3e;
}

.vstup-popup__close {
  border: none;
  background: none;
  font-size: 20px;
  width: 20px;
  margin-left: auto;
  position: absolute;
  top: 10px;
  right: 15px;
}

@media screen and (max-width: 1280px) {
  .header-banner__title {
    font-size: 3rem;
  }

  .header-banner {
    align-items: center;
    text-align: center;
  }

  .header-banner__button {
    margin: 45px auto 0 auto;
    display: block;
  }

  .header-banner__content {
    width: 80%;
    padding: 30px;
  }

  .header-banner {
    flex-direction: column;
    padding: 30px;
  }

  .legal__wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .legal-column {
    width: 100%;
    align-items: center;
    text-align: center;
    text-align: center;
    gap: 20px;
  }

  .legal-column__item,
  .legal-docs__item__description {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .legal-column__item__description {
    text-align: center;
  }

  .legal-column__alert {
    margin-top: 0;
  }

  .subjects__select {
    justify-content: center;
  }

  .benefits-board {
    flex-direction: column;
    align-items: center;
  }
  .benefits-board__item {
    width: 100%;
    align-items: center;
    text-align: center;
  }
}

.success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-popup__content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: popupFade 0.3s ease-out;
}

.success-popup__close {
  position: absolute;
  top: 10px;
  right: 20px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.success-popup__close:hover {
  color: #e74c3c;
}

.success-popup__content--header {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #16295b;
}

.success-popup__content--description {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

@keyframes popupFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media screen and (max-width: 1200px) {
  .header-banner {
    margin-top: 70px;
  }
}

@media screen and (max-width: 768px) {
  .content-wrapper {
    padding: 1vh 15px 0;
  }

  .section-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .courses-board__item__header {
    font-size: 1.8rem;
  }

  .information-board,
  .courses-board,
  .benefits-board {
    flex-direction: column;
    gap: 15px;
  }

  .study-format__content {
    align-items: center;
  }

  .study-format__content-description {
    flex-direction: column;
    gap: 15px;
  }

  .study-format__content-description-block {
    width: 100%;
    text-align: center;
  }

  .study-format__wrapper {
    flex-direction: column;
    align-items: center;
  }
  .study-format__group {
    width: 100%;
  }

  .header-banner__title {
    font-size: 2.2rem;
    text-align: center;
  }

  .register__wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .register__form {
    width: 100%;
  }

  .subjects__select {
    display: grid;
    grid-template-columns: 150px 100px 100px;
  }

  .result__wrapper {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    gap: 20px;
  }

  .result-column__item {
    margin-bottom: 10px;
  }

  .result-column__item__alert {
    text-align: center;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .result-column {
    width: 100%;
  }
  .header-banner__content {
    width: 100%;
    padding: 20px 0;
  }

  .header-banner {
    padding: 20px;
  }
}
