/* Страница входа C-IWE — по макету variant-a. Шрифт Manrope лежит на шлюзе (OFL), не с Google. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #081D39;
  --cream: #FFFEF5;
  --cream-2: #F6F1E4;
  --green: #84C40E;
  --teal: #0A5352;
  --white: #FFFFFF;
  --red: #B42318;
  --secondary: #425268;
  --line: #AAB1B9;
}

* { box-sizing: border-box; }

html {
  background: var(--cream);
  color: var(--navy);
  font-family: "Manrope", sans-serif;
}

body { min-width: 320px; min-height: 100vh; margin: 0; }

button, input { font: inherit; }

.page {
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  background: var(--navy);
  color: var(--cream);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  border: 1px solid var(--cream-2);
  border-radius: 50%;
  pointer-events: none;
}

.brand-panel::before { right: -150px; bottom: -170px; width: 430px; height: 430px; }
.brand-panel::after { right: 42px; bottom: 48px; width: 120px; height: 120px; border-color: var(--green); }

.project {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--cream-2);
  font-size: 13px;
  font-weight: 500;
}

/* Знак PM Culture в цвете Cream-2 (перекрашен из серого, прозрачный фон). */
.project img { display: block; width: auto; height: 40px; }

/* Иконка приложения (звезда в скобках) слева от C-IWE — по размеру заголовка. */
.brand-title { display: flex; align-items: center; gap: .14em; }
.app-icon { flex: none; width: .92em; height: .92em; margin-left: -.04em; }

.brand-content { position: relative; z-index: 1; max-width: 560px; margin: 56px 0; }

h1 {
  margin: 0;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.065em;
}

.eyebrow {
  margin: 12px 0 0;
  color: var(--cream-2);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.eyebrow-initial { color: var(--green); font-weight: 800; }

.descriptor {
  max-width: 480px;
  margin: 18px 0 40px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
}

.points { display: grid; gap: 18px; max-width: 510px; margin: 0; padding: 0; list-style: none; }

.points li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 15px;
  align-items: start;
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.55;
}

.points li::before {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.brand-foot { position: relative; z-index: 1; color: var(--cream-2); font-size: 13px; }

.form-panel { display: flex; min-width: 0; padding: 30px clamp(30px, 7vw, 112px); background: var(--cream); }

.form-wrap { width: min(100%, 470px); margin: auto; }

.form-kicker {
  display: inline-block;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--cream-2);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h2 { margin: 0 0 10px; font-size: clamp(32px, 3vw, 44px); line-height: 1.15; letter-spacing: -.035em; }

.intro { margin: 0 0 30px; color: var(--secondary); font-size: 15px; line-height: 1.6; }

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  /* Тёмно-зелёная Teal по брендбуку, текст — Cream (контраст ~8.8:1). */
  border: 1px solid var(--teal);
  border-radius: 10px;
  outline: 3px solid transparent;
  outline-offset: 2px;
  background: var(--teal);
  color: var(--cream);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .15s, transform .15s, opacity .15s;
}

.submit:hover { border-color: var(--green); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { border-color: var(--green); outline-color: var(--green); }
.submit.is-disabled { opacity: .55; cursor: progress; }

.submit svg { width: 22px; height: 22px; flex: none; }

.qr {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  border-radius: 10px;
  padding: 14px;
  background: var(--cream-2);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}

.qr-code {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 6px;
  padding: 8px;
  background: var(--white);
}

.qr-code svg { display: block; width: 100%; height: 100%; }
.qr p { margin: 0; }

.status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.status.ok { color: var(--teal); }
.status.warn { border-left: 3px solid var(--green); padding: 10px 12px; background: var(--cream-2); color: var(--navy); }
.status.err { border-left: 3px solid var(--red); padding: 10px 12px; background: #FDECEB; color: #8A1C14; }

.help { margin-top: 26px; border-top: 1px solid var(--cream-2); padding-top: 18px; color: var(--secondary); font-size: 13px; line-height: 1.55; }
.help p { margin: 0 0 10px; }
.help strong { color: var(--navy); }
.help a { color: var(--teal); font-weight: 700; text-underline-offset: 2px; }

.note { margin: 0 0 22px; color: var(--secondary); font-size: 15px; line-height: 1.6; }

.mobile-foot { display: none; }

@media (max-width: 760px) {
  .page { display: block; }
  .brand-panel { display: block; min-height: 0; padding: 22px 24px 24px; }
  .brand-panel::before, .brand-panel::after { display: none; }
  .project { font-size: 12px; }
  .project img { height: 30px; }
  .brand-content { margin: 16px 0 0; }
  .points, .brand-foot { display: none; }
  h1 { font-size: 48px; }
  .eyebrow { margin-top: 7px; font-size: 13px; line-height: 1.35; letter-spacing: -.01em; white-space: nowrap; }
  .descriptor { max-width: 330px; margin: 8px 0 0; font-size: 14px; }
  .form-panel { padding: 26px 24px 24px; }
  .form-wrap { margin: 0 auto; }
  .form-kicker { display: none; }
  h2 { font-size: 30px; }
  .intro { margin-bottom: 22px; }
  /* На телефоне QR не нужен: кнопка сама открывает Telegram. */
  .qr { display: none; }
  .mobile-foot { display: flex; justify-content: space-between; margin-top: 28px; color: var(--secondary); font-size: 12px; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .brand-panel { padding-top: 30px; padding-bottom: 30px; }
  .brand-content { margin: 30px 0; }
  .descriptor { margin: 14px 0 25px; }
  .points { gap: 10px; }
}
