@font-face {
  font-family: 'e-Ukraine';
  src: url('/static/registration/fonts/e-ukrainehead-regular_w.woff2') format('woff2'),
       url('/static/registration/fonts/e-ukrainehead-regular_w.woff') format('woff');
}

body.body_listener {
  margin: 0;
  padding: 0;
  font-family: "e-Ukraine", Arial, sans-serif;
  background: url("../images/background.jpg") repeat-x top center;
  background-color: #f5f5f5;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  box-sizing: border-box;
}

.info-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;

  background-image: url("/static/registration/images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  color: #FFFFFF;
  font-size: 18px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* ничего не выходит за границы */
}

.learning_img {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40%;
  box-sizing: border-box;
}


.learning_image {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 10px;
  object-fit: cover;
  opacity: 0;
  animation: zoomIn 2s ease-in-out forwards;
  animation-delay: 0.1s;
}


@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


.info-text {
  flex: 1 1 300px; /* гибкий текстовый блок */
  font-family: 'e-Ukraine', sans-serif;
  line-height: 1.4;
  color: #ffffff;
  text-align: left;
  box-sizing: border-box;
  overflow-wrap: break-word;
}


.info-text .button {
  display: inline-block;
  background-color: #1d70b8;
  color: #ffffff;
  padding: 10px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 60%;
  }
}

.info-text .button:hover {
  background-color: #155a94;

}


@media (max-width: 768px) {
  .info-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .learning_img,
  .info-text {
    max-width: 100%;
  }

  .learning_image {
    max-width: 80%;
  }

}


.attention {
  color: #333333;
  font-weight: bold;
  font-size: 22px;
  font-family: 'e-Ukraine', sans-serif;
  line-height: 1.2;
}
.important{
  color: #FF6F00;
  font-weight: bold;
  font-size: 20px;
  font-family: 'e-Ukraine', sans-serif;
  line-height: 1.2;
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-text h3 {
  margin: 5px 0;
  color: #ffffff;
}


.button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(145deg, #6B5FCC, #5A4EAB);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.button:hover {
  background: linear-gradient(145deg, #7A68D2, #695AC0);
  transform: translateY(-2px);
}


form {
  background: #fff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  font-family: 'e-Ukraine', sans-serif;
  line-height: 1.2;
}


table.registration_table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
}

table.registration_table col:nth-child(1) {
  width: 25%;
}

table.registration_table td:first-child {
  font-size: clamp(12px, 3vw, 18px);
  line-height: 1.5;  /* Это будет означать, что межстрочное расстояние будет 1.5 от высоты шрифта */
}

table.registration_table col:nth-child(2) {
  width: 75%;
}

table.registration_table td {
  padding: 3px;
  word-wrap: break-word;
}


input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 15px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
  display: block;
  min-height: 45px;
  resize: vertical;
  font-family: 'e-Ukraine', sans-serif;
  line-height: 1.2;
}

input,select,textarea::placeholder {
   font-size: calc(1vw + 1em);
   font-family: 'e-Ukraine', sans-serif;
   line-height: 1.2;

}


input[type="tel"] {
  width: 80%;
  max-width: 80%;
  box-sizing: border-box;
  display: block;
}

.agree_img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    input::placeholder, select::placeholder, textarea::placeholder {
        font-size: calc(0.8vw + 0.8em);
    }
}

.error {
  color: red;
  font-size: 12px;
}


@media (min-width: 768px) {
  .container {
    padding: 20px;
  }

  .info-block {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

  .info-text h3 {
    font-size: 18px;
  }

  .button {
    width: auto;
    padding: 12px 25px;
  }

  table.registration_table td {
    padding: 12px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 45px;
  }
}


@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }

  .info-block {
    padding: 25px;
    gap: 30px;
  }

  .button {
    font-size: 16px;
  }

  .info-text h3 {
    font-size: 20px;
  }
}


@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .info-block {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .info-text h3 {
    font-size: 14px;
  }

  .button {
    width: 100%;
    padding: 10px;
  }

  input,
  select,
  textarea {
    padding: 10px;
    font-size: 14px;
    min-height: 35px;
  }
}
