/* Главная: SVG 1920×3490, координаты макета — проценты от --lf-src-h.
   Фон (canvas) на .landing__visual — на всю высоту героя + формы.
   Кадр .landing__frame — только герой и партнёры; подвал снаружи, отступ 32px. */

main:has(> .landing) {
  padding: 0;
  flex: 0 0 auto;
}

body:has(.landing) {
  background: #00141e;
}

.landing--auth .landing__visual {
  contain: layout style;
}

.landing__visual {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #00141e 0%, #004170 100%);
  --lf-src-h: 3490;
  --lf-visible-h: 2780;
  --lf-header-crop: 136;
}

.landing__artboard {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing__visual:not(.is-ready) .landing__artboard {
  opacity: 0;
}

.landing__visual.is-ready .landing__artboard {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: linear-gradient(160deg, #00141e 0%, #004170 100%);
}

.landing__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1920 / 2780;
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 auto;
}

.landing__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-100% * var(--lf-header-crop) / var(--lf-visible-h));
  height: calc(100% * var(--lf-src-h) / var(--lf-visible-h));
}

.landing__artboard .landing__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.landing__canvas--bg {
  z-index: 0;
}

.landing__canvas--fg {
  z-index: 2;
}

.landing__art {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.landing__overlay {
  z-index: 10;
}

/* --- Кликабельные зоны (прозрачные) --- */

.landing-hit {
  position: absolute;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.landing-hit--cta-register {
  left: 41.93%;
  top: 26.39%;
  width: 16.46%;
  height: 2.06%;
}

/* --- Партнёры (y из макета 1920×4101 → % от --lf-src-h 3490) --- */

.landing-partner {
  position: absolute;
  width: 8.33%;
  height: 4.58%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-partner--top {
  left: 62.66%;
  top: 51.52%;
}

.landing-partner--right {
  left: 46.15%;
  top: 42.23%;
}

.landing-partner--left {
  left: 29.17%;
  top: 51.52%;
}

.landing-partner--bottom {
  left: 46.15%;
  top: 60.89%;
}

.landing-partner__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

.landing-partner__link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Форма обратной связи (отдельная секция, не в canvas-оверлее) --- */

.landing-contact {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 100%;
  margin: -2.5rem 0 0;
  padding: 0 clamp(1rem, 5.42vw, 6.5rem) 1.5rem;
  box-sizing: border-box;
}

.landing-contact__card {
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.24) 88%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.landing-contact__title {
  margin: 0 0 1.25rem;
  font: 700 clamp(1.25rem, 2.8vw, 2.25rem) / 1.1 Inter, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

/* Кнопка раскрытия — только мобильная версия */
.landing-contact__toggle {
  display: none;
}

.landing-contact__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 1rem;
  align-items: start;
}

.landing-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.landing-form__label {
  font: 500 13px / 1.25 Inter, system-ui, sans-serif;
  color: #252a2f;
}

.landing-form__field--topic {
  grid-column: 1;
  grid-row: 1;
}

.landing-form__field--email {
  grid-column: 1;
  grid-row: 2;
}

.landing-form__field--name {
  grid-column: 1;
  grid-row: 3;
}

.landing-form__field--organization {
  grid-column: 1;
  grid-row: 4;
}

.landing-form__field--message {
  grid-column: 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
}

.landing-form__field--attachment {
  grid-column: 2;
  grid-row: 4;
}

.landing-form__consent {
  grid-column: 1;
  grid-row: 5;
  align-self: end;
  font-size: 14px;
  line-height: 1.35;
  color: #252a2f;
}

.landing-form__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
}

.landing-form__consent-text {
  flex: 1;
  min-width: 0;
}

.landing-form__consent a {
  color: #f57c00;
  text-decoration: underline;
}

.landing-form__consent a:hover {
  color: #ff9800;
}

.landing-form__actions {
  grid-column: 2;
  grid-row: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.landing-form__submit {
  min-width: 135px;
  height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 4px;
  background: #ffa629;
  color: #fff;
  font: 600 16px / 48px Inter, system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}

.landing-form__submit:hover {
  background: #ff9800;
}

.landing-form__result {
  width: 100%;
  text-align: right;
  font-size: 14px;
  color: #fff;
}

.landing-form__err {
  font-size: 11px;
  color: #c62828;
}

.landing-input,
.landing-form select.landing-input,
.landing-form textarea.landing-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 3px;
  background-color: #fff;
  color: #252a2f;
  font: 400 clamp(12px, 1.7vw, 16px) / 1.3 Inter, system-ui, sans-serif;
  box-shadow: none;
  outline: none;
}

.landing-input:focus,
.landing-form select.landing-input:focus,
.landing-form textarea.landing-input:focus {
  outline: 2px solid rgba(3, 124, 189, 0.45);
  outline-offset: 0;
}

.landing-input::placeholder,
.landing-form textarea.landing-input::placeholder {
  color: #acb9c1;
  opacity: 1;
}

.landing-form__field--message .landing-input,
.landing-form textarea.landing-input {
  min-height: 155px;
  height: 100%;
  padding-top: 0.5rem;
  resize: vertical;
}

.landing-form select.landing-input {
  appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23252a2f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
}

.landing-form__field--attachment .file-dropzone-wrap {
  width: 100%;
}

.landing-form__field--attachment .file-dropzone {
  min-height: 88px;
  padding: 0.5rem 0.75rem;
  gap: 0.35rem;
  font-size: 12px;
}

.landing-form__field--attachment .file-dropzone__icon {
  width: 18px;
  height: 18px;
}

.landing-form__field--attachment .file-dropzone-chosen {
  min-height: 88px;
  padding: 0.5rem 0.75rem;
  gap: 0.35rem;
}

.landing-form__field--attachment .file-dropzone-chosen__icon {
  width: 16px;
  height: 16px;
}

.landing-form__field--attachment .file-dropzone-chosen__label {
  font-size: clamp(9px, 1.1vw, 11px);
}

.landing-form__field--attachment .file-dropzone-chosen__name {
  font-size: clamp(10px, 1.2vw, 12px);
}

.landing-form__consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: #037cbd;
}

/* --- Адаптив: планшет и уже --- */

@media (max-width: 900px) {
  .landing-input,
  .landing-form select.landing-input,
  .landing-form textarea.landing-input {
    font-size: 14px;
  }

  .landing-form__consent {
    font-size: 12px;
  }
}

@media (max-width: 767.98px) {
  .landing__frame {
    aspect-ratio: 1920 / 2780;
  }

  .landing-contact {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding: 0.75rem 1rem 0;
  }

  .landing-contact:not(.is-open) {
    padding-top: 0.75rem;
  }

  .landing-contact__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    order: 2;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 4px;
    background: #ffa629;
    color: #fff;
    font: 600 16px / 1.25 Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .landing-contact__toggle:hover,
  .landing-contact__toggle:focus-visible {
    background: #ff9800;
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
  }

  .landing-contact__toggle-icon {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: -0.2rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
  }

  .landing-contact.is-open .landing-contact__toggle-icon {
    margin-top: 0.15rem;
    transform: rotate(-135deg);
  }

  .landing-contact__card {
    order: 1;
    padding: 1.25rem 1rem;
  }

  .landing-contact:not(.is-open) .landing-contact__card {
    display: none;
  }

  .landing-contact.is-open .landing-contact__card {
    margin-bottom: 0.75rem;
  }

  .landing-contact__form {
    grid-template-columns: 1fr;
    row-gap: 0.875rem;
  }

  .landing-form__field--topic,
  .landing-form__field--email,
  .landing-form__field--name,
  .landing-form__field--organization,
  .landing-form__field--message,
  .landing-form__field--attachment,
  .landing-form__consent,
  .landing-form__actions {
    grid-column: 1;
    grid-row: auto;
  }

  .landing-form__field--message .landing-input,
  .landing-form__field--message textarea.landing-input {
    min-height: 120px;
  }

  .landing-form__consent {
    font-size: 12px;
  }

  .landing-form__actions {
    align-items: stretch;
  }

  .landing-form__submit {
    width: 100%;
    min-width: 0;
  }

  .landing-form__result {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .landing-input,
  .landing-form select.landing-input,
  .landing-form textarea.landing-input {
    font-size: 16px;
  }
}
