:root {
  --blue: #173f9b;
  --yellow: #f4c914;
  --yellow-dark: #9d7a00;
  --light: #efefef;
  --dark-overlay: rgba(0, 0, 0, 0.52);
  --text: #111111;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  --container-padding: 30px;
  --font-main: Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--text);
}

/*body {
  background-color: var(--blue);
  background-image: url("../images/bg-desktop.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}*/

body {
  background-color: var(--blue);
  background-image: url("../images/bg-desktop.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.site-wrap {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*.hero-card {
  width: min(1380px, 100%);
  min-height: calc(100vh - 56px);
  background: rgba(245, 245, 245, 0.95);
  padding: 90px 95px 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}*/

.hero-card {
  background: transparent;
}

.hero-content {
  max-width: 920px;
}

.hero-title {
  color: var(--blue);
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 38px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 38px;
  align-items: center;
  margin-bottom: 42px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.2rem, 1.5vw, 2rem);
  font-weight: 700;
  color: #000;
}

.meta-item i {
  font-size: 1.8rem;
}

.cta-wrap {
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  font-size: 1.15rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-light {
  background: var(--white);
  color: var(--blue);
  font-size: 1rem;
}

.btn-full {
  width: 100%;
  font-size: 1.05rem;
  min-height: 54px;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 44px;
  align-items: center;
  margin-top: 70px;
}

.partners img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

/* FORM + SUCCESS */
.overlay-page {
  position: relative;
}

.overlay-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark-overlay);
}

.form-card,
.success-modal {
  position: relative;
  z-index: 2;
}

.form-card {
  width: min(640px, 100%);
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 26px 28px 28px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 900;
  color: #000;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #000;
}

.form-group input {
  width: 100%;
  height: 42px;
  border: none;
  outline: none;
  border-radius: 4px;
  background: #f2f2f2;
  padding: 0 12px;
  font-size: 1rem;
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.alert-error {
  background: #fff2f2;
  color: #a10000;
}

.alert ul {
  padding-left: 18px;
}

.form-card--dimmed {
  filter: brightness(0.6);
}

.form-fake {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fake-field {
  height: 42px;
  border-radius: 4px;
  background: #ececec;
}

.fake-field--text {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
  color: #111;
}

.fake-btn {
  margin-top: 8px;
  height: 54px;
  border-radius: 4px;
  background: #042c88;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.success-modal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-box {
  width: min(760px, 100%);
  background: var(--blue);
  color: var(--white);
  border-radius: 28px;
  padding: 42px 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-box p {
  font-size: clamp(1.5rem, 2vw, 2.6rem);
  line-height: 1.08;
  font-weight: 300;
}

.success-box strong {
  font-weight: 900;
}

.success-meta {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  font-size: 1rem;
}

.success-meta span {
  opacity: 0.8;
}

.success-actions {
  margin-top: 24px;
}

/* MOBILE */
@media (max-width: 991px) {
  /*body {
    background-image: url("../images/bg-mobile.png");
  }*/

  body {
    background-image: url("../images/bg-mobile.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }

  .site-wrap {
    padding: 20px;
  }

  .hero-card {
    padding: 44px 36px 40px;
    min-height: calc(100vh - 40px);
  }

  .hero-title {
    font-size: clamp(2.8rem, 10vw, 4.8rem);
    margin-bottom: 34px;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .meta-item {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .meta-item i {
    font-size: 1.9rem;
  }

  .partners {
    gap: 20px;
    margin-top: 40px;
  }

  .partners img {
    max-height: 48px;
  }

  .form-card {
    padding: 22px 18px 24px;
    width: min(100%, 460px);
  }

  .form-card h2 {
    font-size: 1.45rem;
  }

  .success-box {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .success-box p {
    font-size: clamp(1.15rem, 6vw, 2rem);
    line-height: 1.1;
  }
}

@media (max-width: 600px) {
  .site-wrap {
    padding: 18px;
  }

  .hero-card {
    padding: 42px 38px 34px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 11vw, 4rem);
  }

  .partners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .partners img:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .btn-primary {
    width: 100%;
  }
}

.form-checkbox {
  margin: 18px 0 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #173f9b;
}

.is-hidden {
  display: none;
}

.is-visible {
  display: block;
}
