@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  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, U+FEFF, U+FFFD;
}

:root {
  --blue: #2a87ff;
  --blue-dark: #1b6fe0;
  --blue-light: #58a1ff;
  --blue-soft: #d7e7fc;
  --bg: #f1f7ff;
  --white: #ffffff;
  --ink: #081a2c;
  --muted: #5b6b7d;
  --line: #cfdbe8;
  --danger: #d43a3a;
  --radius: 24px;
  --radius-field: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 320px) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
}

.topbar,
.page,
.footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.topbar {
  padding-top: 24px;
  padding-bottom: 24px;
}

.topbar__logo {
  display: inline-block;
}

.topbar__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.page {
  flex: 1;
}

.loading {
  color: var(--muted);
}

.footer {
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}

/* Карточка: синий блок с описанием + белый блок с формой */

.card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(42, 135, 255, 0.16);
  overflow: hidden;
}

.card--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
}

.hero {
  position: relative;
  padding: 48px 40px;
  color: var(--white);
  background:
    radial-gradient(circle at 105% 102%, rgba(255, 255, 255, 0.22) 0 140px, transparent 141px),
    radial-gradient(circle at 62% 112%, rgba(255, 255, 255, 0.14) 0 110px, transparent 111px),
    radial-gradient(circle at -8% -6%, rgba(255, 255, 255, 0.12) 0 120px, transparent 121px),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-light) 100%);
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  margin: 20px 0 28px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero__meta {
  margin: 0 0 24px;
  display: grid;
  gap: 16px;
}

.hero__meta dt {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}

.hero__meta dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.hero__text {
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
  white-space: pre-line;
}

.panel {
  padding: 48px 40px;
}

/* Форма */

.form__title {
  margin: 0 0 24px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.form__note {
  margin: -8px 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-field);
  background: var(--blue-soft);
  font-size: 14px;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field__hint {
  margin: -4px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
  color: #9aa8b7;
}

.field input:hover {
  border-color: var(--blue-light);
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(42, 135, 255, 0.18);
}

.field.is-invalid input {
  border-color: var(--danger);
}

.field.is-invalid input:focus {
  box-shadow: 0 0 0 4px rgba(212, 58, 58, 0.15);
}

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

.field__error:empty {
  display: none;
}

.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Регион: поле с выпадающим списком */

.combo__list {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  top: 80px;
  max-height: 240px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-field);
  box-shadow: 0 12px 32px rgba(8, 26, 44, 0.14);
}

.combo__option {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.combo__option.is-active,
.combo__option:hover {
  background: var(--blue-soft);
}

.combo__empty {
  padding: 9px 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Согласие */

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
  margin: 20px 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.consent label {
  cursor: pointer;
}

.consent a {
  color: var(--blue);
}

.consent .field__error {
  grid-column: 2;
}

.form__error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-field);
  background: #fdecec;
  color: var(--danger);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--blue);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover {
  background: var(--blue-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(42, 135, 255, 0.4);
  outline-offset: 2px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  background: #a9c9f5;
  cursor: default;
  pointer-events: none;
}

/* Экран успеха */

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}

.success__title {
  margin: 20px 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.success__text {
  margin: 0 0 28px;
  max-width: 380px;
  color: var(--muted);
}

.success__note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* Список вебинаров */

.list__title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.25;
}

.list__text {
  margin: 0 0 24px;
  color: var(--muted);
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list__item {
  display: block;
  padding: 16px 20px;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.15s, background 0.15s;
}

.list__item:hover {
  border-color: var(--blue);
  background: #f6faff;
}

.list__item-when {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.list__item-title {
  display: block;
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero,
  .panel {
    padding: 32px 24px;
  }

  .hero__title {
    font-size: 21px;
    margin: 16px 0 20px;
  }

  .success {
    padding: 16px 0;
  }
}

@media (max-width: 420px) {
  .hero,
  .panel {
    padding: 28px 16px;
  }
}
