@font-face {
  font-family: "Dela Gothic One";
  src: local("Dela Gothic One"), url("../fonts/dela-gothic-one-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Dela Gothic One";
  src: local("Dela Gothic One"), url("../fonts/dela-gothic-one-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --purple: #7138c7;
  --purple-deep: #3d146f;
  --purple-ink: #27123f;
  --lavender: #d8c5f6;
  --lavender-soft: #f2ecfb;
  --pink: #f7b4df;
  --white: #ffffff;
  --text: #271d31;
  --muted: #756d7d;
  --line: #ddd6e4;
  --danger: #b3264b;
  --success: #14734a;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 22px 70px rgba(62, 20, 111, 0.11);
  --container: 1180px;
  --body-font: "Stolzl", "Manrope", "Segoe UI", Arial, sans-serif;
  --display-font: "Dela Gothic One", "Arial Black", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--lavender-soft);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: var(--white);
  background: var(--purple);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image: radial-gradient(circle, #fff 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to right, transparent, #000 44%, #000);
}

.hero__orb {
  position: absolute;
  border: 44px solid currentColor;
  border-radius: 42% 58% 61% 39% / 47% 31% 69% 53%;
  transform: rotate(22deg);
  pointer-events: none;
}

.hero__orb--one {
  top: -185px;
  right: -120px;
  width: 520px;
  height: 520px;
  color: var(--pink);
  opacity: 0.52;
}

.hero__orb--two {
  right: 13%;
  bottom: -260px;
  width: 430px;
  height: 430px;
  color: var(--lavender);
  opacity: 0.24;
  transform: rotate(-26deg);
}

.hero__inner,
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: flex;
  align-items: center;
  padding-top: 32px;
}

.hero__logos {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.hero__mediabez-logo {
  display: flex;
  min-width: 0;
  align-items: center;
}

.hero__mediabez-logo {
  gap: 10px;
  text-decoration: none;
}

.hero__mediabez-symbol {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.hero__mediabez-symbol img {
  display: block;
  width: 23px;
  height: 17px;
}

.hero__mediabez-wordmark {
  display: block;
  width: 150px;
  height: auto;
}

.hero__firsts-wordmark,
.hero__firsts-symbol {
  display: block;
  width: 110px;
  height: auto;
}

.hero__content {
  display: grid;
  align-content: center;
  min-width: 0;
  max-width: var(--container);
  min-height: 530px;
  padding-block: 70px 100px;
}

.hero__project {
  width: fit-content;
  margin: 0 0 28px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pink);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  width: 100%;
  max-width: 1000px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.hero__lead--note {
  margin-top: 4px;
}

.hero__start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 54px;
  margin-top: 34px;
  padding: 0 26px;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--purple-deep);
  background: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero__start:hover {
  color: var(--white);
  background: transparent;
  transform: translateY(-2px);
}

.form-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding-block: 84px 110px;
}

.form-aside__sticky {
  position: sticky;
  top: 28px;
}

.form-aside__number {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--purple-deep);
  background: var(--lavender);
  font-size: 13px;
  font-weight: 800;
}

.form-aside h2 {
  margin: 0 0 14px;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.form-aside p {
  margin: 0;
  color: var(--muted);
}

.form-aside__note {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.form-aside__note > span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--purple);
  font-weight: 800;
}

.form-aside__note p {
  font-size: 13px;
}

.application-form {
  display: grid;
  gap: 28px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-section {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(113, 56, 199, 0.08);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-heading__index {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--purple);
  font-family: var(--display-font);
  font-size: 14px;
}

.section-heading p {
  margin: 1px 0 4px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
}

.field + .field {
  margin-top: 42px;
}

.field > label,
.field > legend {
  display: block;
  width: 100%;
  padding: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.field__number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  place-items: center;
  border-radius: 8px;
  color: var(--purple-deep);
  background: var(--lavender-soft);
  font-size: 12px;
  vertical-align: 2px;
}

.required {
  color: var(--danger);
}

.field__hint,
.documents-intro {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.documents-intro {
  max-width: 640px;
  margin: -18px 0 22px;
}

.documents-template {
  margin: 0 0 38px;
  padding: 22px 24px 24px;
  border: 1.5px solid rgba(113, 56, 199, 0.34);
  border-radius: 18px;
  background: var(--lavender-soft);
}

.documents-template__label {
  margin: 0 0 7px !important;
  color: var(--purple) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.documents-template h3 {
  margin: 0 0 8px;
  color: var(--purple-deep);
  font-family: var(--display-font);
  font-size: 19px;
  line-height: 1.35;
}

.documents-template > p:not(.documents-template__label) {
  max-width: 600px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.documents-template .documents-template__pending {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid rgba(113, 56, 199, 0.24);
  border-radius: 11px;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.documents-template a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 11px;
  color: var(--white);
  background: var(--purple);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.documents-template a:hover {
  background: var(--purple-deep);
  transform: translateY(-1px);
}

.documents-template a:focus-visible {
  outline: 3px solid rgba(113, 56, 199, 0.25);
  outline-offset: 3px;
}

.documents-template__links {
  display: grid;
  gap: 10px;
}

.documents-template__links a {
  justify-content: flex-start;
  text-align: left;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="date"],
.field textarea {
  width: 100%;
  min-height: 58px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  outline: none;
  color: var(--text);
  background: #fff;
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(113, 56, 199, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa2b1;
}

.field--compact input {
  max-width: 290px;
}

.field--invalid input[type="text"],
.field--invalid input[type="tel"],
.field--invalid input[type="url"],
.field--invalid input[type="date"],
.field--invalid textarea,
.field--invalid .choice-grid,
.field--invalid .file-picker,
.field--invalid .consent-check {
  border-color: var(--danger);
  background: #fff8fa;
}

.field__error {
  min-height: 20px;
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.field__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px 12px 47px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: border 150ms ease, background 150ms ease, color 150ms ease;
}

.choice span::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #aaa2b1;
  border-radius: 50%;
  background: #fff;
}

.choice input:checked + span {
  border-color: var(--purple);
  color: var(--purple-deep);
  background: var(--lavender-soft);
}

.choice input:checked + span::before {
  border: 5px solid var(--purple);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(113, 56, 199, 0.25);
  outline-offset: 2px;
}

.file-field input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.file-picker {
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 11px 16px 11px 11px !important;
  border: 1.5px dashed #b5a8c2;
  border-radius: 15px;
  cursor: pointer;
  background: #fcfaff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.file-picker:hover {
  border-color: var(--purple);
  background: var(--lavender-soft);
}

.file-picker.is-dragover {
  border-color: var(--purple);
  background: #f3ebff;
  box-shadow: 0 0 0 5px rgba(113, 56, 199, 0.14);
  transform: translateY(-2px);
}

.file-picker__button {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--purple);
  font-size: 13px;
  font-weight: 800;
}

.file-picker__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.file-picker__drop-hint {
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 750;
}

.file-picker__name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field input:focus-visible + .file-picker {
  outline: 3px solid rgba(113, 56, 199, 0.25);
  outline-offset: 2px;
}

.form-section--final .section-heading {
  margin-bottom: clamp(76px, 7vw, 92px);
}

.consent-check {
  display: grid !important;
  grid-template-columns: 25px 1fr;
  gap: 13px;
  align-items: start;
  padding: 20px !important;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: #fcfaff;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.consent-check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--purple);
}

.consent-check a {
  color: var(--purple-deep);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 24px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
}

.form-status--error {
  color: var(--danger);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  padding: 0 15px 0 25px;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: var(--purple);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.submit-button:hover:not(:disabled) {
  background: var(--purple-deep);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.submit-button__arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: var(--purple-deep);
  background: var(--white);
  font-size: 22px;
}

.submit-button.is-loading .submit-button__arrow {
  animation: pulse 900ms ease-in-out infinite alternate;
}

.submit-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.success-panel {
  grid-column: 2;
  padding: 70px 48px;
  border-radius: var(--radius-xl);
  outline: none;
  color: var(--white);
  background: var(--purple);
  box-shadow: var(--shadow);
  text-align: center;
}

.form-layout--success {
  grid-template-columns: minmax(0, 1fr);
}

.form-layout--success .success-panel {
  grid-column: 1;
  width: min(100%, 900px);
  margin-inline: auto;
}

.success-panel__mark {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--purple-deep);
  background: var(--white);
  font-size: 36px;
  font-weight: 900;
}

.success-panel > p:first-of-type {
  margin: 0 0 14px;
  color: var(--lavender);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.success-panel h2 {
  margin: 0 auto 20px;
  font-family: var(--display-font);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.2;
}

.success-panel p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  color: var(--white);
  background: var(--purple-deep);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 170px;
  padding-block: 36px;
}

.site-footer__grant {
  max-width: 550px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.22;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  text-underline-offset: 3px;
}

/* Документы */
.document-page {
  min-height: 100vh;
  background: var(--lavender-soft);
}

.document-header {
  color: var(--white);
  background: var(--purple);
}

.document-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
}

.document-header__back {
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.document-main {
  padding-block: 72px 100px;
}

.document-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.document-card__label {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-card h1 {
  margin: 0 0 40px;
  font-family: var(--display-font);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.document-card h2 {
  margin: 38px 0 12px;
  font-size: 20px;
}

.document-card p,
.document-card li {
  color: #514858;
}

.document-card a {
  color: var(--purple-deep);
  font-weight: 700;
}

.document-card__warning {
  margin-bottom: 30px;
  padding: 17px 19px;
  border-left: 4px solid var(--purple);
  border-radius: 0 12px 12px 0;
  background: var(--lavender-soft);
  font-size: 14px;
}

@keyframes pulse {
  to { transform: scale(0.88); }
}

@media (max-width: 900px) {
  .hero {
    min-height: 610px;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }

  .form-aside__sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .form-aside__number,
  .form-aside h2 {
    grid-column: 1;
  }

  .form-aside h2 {
    margin-top: 0;
  }

  .form-aside__sticky > p:not(.form-aside__number) {
    grid-column: 1;
  }

  .form-aside__note {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .success-panel {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero__inner {
    align-items: center;
    padding-top: 20px;
  }

  .hero__logos {
    gap: 16px;
  }

  .hero__mediabez-logo {
    gap: 8px;
  }

  .hero__mediabez-symbol {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .hero__mediabez-symbol img {
    width: 18px;
    height: 14px;
  }

  .hero__mediabez-wordmark {
    width: 110px;
  }

  .hero__firsts-wordmark,
  .hero__firsts-symbol {
    width: 64px;
  }

  .hero__content {
    min-height: 500px;
    padding-block: 58px 78px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.8vw, 37px);
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 16px;
  }

  .hero__orb--one {
    top: -170px;
    right: -260px;
  }

  .form-layout {
    padding-bottom: 66px;
  }

  .form-aside__sticky {
    display: block;
  }

  .form-aside h2 {
    margin-top: 18px;
  }

  .form-aside__note {
    margin-top: 22px;
  }

  .form-section {
    padding: 24px 18px 28px;
    border-radius: 24px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 22px;
  }

  .form-section--final .section-heading {
    margin-bottom: 60px;
  }

  .section-heading__index {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .field > label,
  .field > legend {
    font-size: 16px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .file-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .file-picker__button {
    text-align: center;
  }

  .file-picker__name {
    padding-inline: 4px;
  }

  .documents-template {
    padding: 20px 18px 22px;
  }

  .documents-template a {
    width: 100%;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-items: start;
  }

  .document-header__inner {
    min-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
