body {
  margin: 0;
  background: black;
  font-family: 'Inter', sans-serif;
  color: #D9D9D9;
}

a {
  color: inherit;
  text-decoration: none;
}

a.underline {
  text-decoration: underline;
}

.menu {
  position: relative;
  max-width: 2000px;
  height: 140px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 3s ease-in;
}

.menu.loaded {
  opacity: 1;
}

.menu-label,
.menu-text-gallery,
.menu-text-about,
.menu-text-session {
  position: absolute;
  font-weight: 100;
  font-size: 25px;
  line-height: 1.2;
  margin: 0;
}

.menu-label {
  top: 60px;
  left: 60px;
}

.menu-text-gallery {
  top: 60px;
  right: 380px;
  cursor: pointer;
}

.menu-text-about {
  top: 60px;
  right: 250px;
  cursor: pointer;
}

.menu-text-session {
  top: 60px;
  right: 60px;
  cursor: pointer;
}

.session-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  max-width: 1300px;
  margin: 100px auto 60px;
  padding: 0 60px;
}

.photo-block {
  flex: 1;
  transform: translateX(-30px); /* начальное смещение влево */
  opacity: 0;
  transition: opacity 5s ease, transform 5s ease;
}

.photo-block.loaded {
  transform: translateX(0); /* возвращение в норму */
  opacity: 1;
}

.photo-block img {
  width: 100%;
  height: auto;
  display: block;
}

.form-and-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.form-row {
  display: flex;
  gap: 60px;
  height: 90px;
  margin-bottom: -30px;
}

.form-block input,
.form-block textarea {
  flex: 1;
  background: transparent;
  border: 1px solid #555;
  padding: 12px;
  color: #D9D9D9;
  font-size: 16px;
  border-radius: 4px;
}

.form-block textarea {
  resize: none;
  min-height: 120px;
}

.form-block button {
  all: unset;
  display: inline-block;
  text-align: center;
  border: 1px solid #555;
  color: #D9D9D9;
  background: transparent;
  font-size: 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  cursor: pointer;
  height: 60px;
  width: 280px;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 0 0px rgba(255, 255, 255, 0); /* начальное значение */
  border-radius: 4px;
}

.form-button-wrapper {
  display: flex;
  justify-content: center;
  min-height: 80px;
  position: relative;
}

#captcha-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none; /* до инициализации */
}

.text-block {
  font-size: 16px;
  color: #D9D9D9;
  line-height: 1.3em;
}

.text-block ul {
  padding-left: 20px;
  margin-top: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-field label {
  font-size: 18px;
  color: inherit;
  margin-bottom: 10px;
  font-weight: 200;
}

.form-block input,
.form-block textarea,
.form-block input:focus,
.form-block textarea:focus,
.form-block input:active,
.form-block textarea:active {
  outline: none;              /* убирает glow */
  border: 1px solid #555;  /* меняет цвет рамки при фокусе */
  color: #D9D9D9;             /* цвет текста */
  background: transparent;
  font-size: 18px;
  font-weight: 100; /* вот это добавь */
  font-family: 'Inter', sans-serif;
  border-radius: 4px;
}

.form-block button:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* мягкое белое сияние */
}

.form-block button:active {
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
}

.session-layout,
.form-and-text,
.form-block,
.text-block {
  opacity: 0;
  transition: opacity 3s ease-in;
}

.session-layout.loaded,
.photo-block.loaded,
.form-and-text.loaded,
.form-block.loaded,
.text-block.loaded {
  opacity: 1;
  font-weight: 200;
}

.form-sent {
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 100;
  color: #D9D9D9;
  padding: 40px 20px;
  box-sizing: border-box;
}

.form-block input {
  transition: box-shadow 1s ease, border-color 1s ease;
}

.input-error {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.alert {
  text-align: center;
  padding-bottom: 30px;
}

@media (max-width: 768px) {

  .session-layout {
    flex-direction: column-reverse; /* ⬅ картинка станет под текстом */
    align-items: stretch;
    gap: 0px;
    margin: 30px 0;
    padding: 0 30px;
  }

  .form-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-field {
    flex: 1;
    min-width: 0;
  }

  input, textarea {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

  .form-block textarea {
    min-height: 100px;
  }

  .menu-label {
    top: 30px;
    width: 300px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .menu-text-session,
  .menu-text-about,
  .menu-text-gallery {
    top: 85px;
    transform: translateX(-50%);
    font-size: 17px;
    text-align: center;
    font-weight: 200;
  }

  .menu-text-session {
    left: 50%;
  }

  .menu-text-about {
    left: 75%;
  }

  .menu-text-gallery {
    left: 12%;
  }

  .photo-block img {
    max-width: 100%;
    height: auto;
  }

  .text-block,
  .text-block.loaded {
    font-weight: 200;
    font-size: 16px;
  }

}