/* Страница регистрации. Подключайте после общего styles.css.
   Шапка, подвал, шрифты, цвета и лёгкая анимация — из готового сайта. */

.registration-page .home-link {
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
}

.registration-main {
  position: relative;
  isolation: isolate;
  padding-bottom: 12px;
}

/* Фоновая картинка сохраняет пропорции. Нижний край плавно уходит в белый. */
.registration-background {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  display: block;
  height: 570px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(105deg, #effbff, #c0dcff 55%, #8294ff);
}

.registration-background img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.registration-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0) 58%, #fff 100%);
}

.registration-hero {
  padding-block: clamp(32px, 3.2vw, 48px) 42px;
}

.registration-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 40px;
  margin-bottom: 24px;
  padding-block: 4px;
  color: var(--blue);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.3;
  text-decoration: none;
  text-underline-offset: 5px;
}

.registration-back svg {
  flex-shrink: 0;
  width: 26px;
  height: 22px;
  transition: transform 220ms var(--ease);
}

.registration-title {
  font-size: clamp(40px, 5.15vw, 74px);
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

.registration-description {
  max-width: 1060px;
  margin-top: 18px;
  font-size: clamp(21px, 2.15vw, 29px);
  line-height: 1.3;
}

.registration-form-card {
  width: min(100%, 1000px);
  margin-inline: auto;
  padding: clamp(12px, 2.2vw, 32px);
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(45 54 91 / .035);
}

.registration-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  background: #fff;
  /* Без height/min-height/max-height: сохраняем изменение высоты Яндексом.
     Без scrolling="no": при недоступном embed.js форма остаётся прокручиваемой. */
}

.registration-alternative {
  margin-top: 20px;
  text-align: center;
}

.registration-alternative a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--blue);
  font-size: 19px;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 5px;
}

.registration-alternative svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 220ms var(--ease);
}

.registration-noscript {
  margin: 8px auto 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .registration-back:hover,
  .registration-alternative a:hover { text-decoration: underline; }
  .registration-back:hover svg { transform: translateX(-3px); }
  .registration-alternative a:hover svg { transform: translate(2px, -2px); }
}

@media (max-width: 900px) {
  .registration-background { height: 520px; }
  .registration-description { max-width: 720px; }
}

@media (max-width: 600px) {
  .registration-main { padding-bottom: 0; }
  .registration-background { height: 470px; }
  .registration-background img { object-position: 65% top; }
  .registration-hero { padding-block: 25px 28px; }
  .registration-back { gap: 9px; margin-bottom: 21px; font-size: 17px; }
  .registration-back svg { width: 23px; }
  .registration-title { font-size: clamp(33px, 8.9vw, 46px); line-height: 1.08; }
  .registration-description { margin-top: 16px; font-size: 20px; line-height: 1.35; }
  .registration-form-section { width: calc(100% - 24px); }
  .registration-form-card { padding: 8px 0; border-radius: 18px; }
  .registration-alternative { margin-top: 14px; }
  .registration-alternative a { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .registration-back svg,
  .registration-alternative svg { transition: none; transform: none !important; }
}
