:root {
  --header-height: 56px;
  --page-max-width: 430px;
  --bg-color: #e9edf3;
  --white: #ffffff;
  --ink: #0b1f3f;
  --accent: #f2c300;
  --switcher-bg: #f4f6fb;
  --switcher-border: #d9dfeb;
  --switcher-text: #163765;
  --switcher-active: #062a57;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--ink);
  overflow: hidden;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: var(--page-max-width);
  height: 100dvh;
  margin: 0 auto;
  background: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max-width);
  height: var(--header-height);
  padding: 8px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--white);
  border-bottom: 1px solid #d8dde6;
  z-index: 100;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo {
  height: 24px;
  width: auto;
  display: block;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--switcher-border);
  border-radius: 999px;
  background: var(--switcher-bg);
  transform: scale(0.8);
  transform-origin: center center;
  flex-shrink: 0;
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--switcher-text);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.language-option.is-active {
  background: var(--switcher-active);
  color: #ffffff;
}

.language-check {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--switcher-active);
  flex: 0 0 auto;
}

.language-check svg {
  width: 9px;
  height: 9px;
  display: block;
  fill: currentColor;
}

.join-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.join-btn img {
  display: block;
  height: 26px;
  width: auto;
}

.content {
  height: calc(100% - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-cta-section,
.content-image-section {
  background: #ffffff;
}

.scroll-cta-section {
  display: flex;
  justify-content: center;
  padding: 0 46px;
}

.scroll-to-form-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  touch-action: manipulation;
}

.scroll-to-form-btn img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.content-image-section img {
  width: 100%;
  height: auto;
  display: block;
}

.form-anchor {
  scroll-margin-top: calc(var(--header-height) + 8px);
  padding: 30px 50px 28px;
}

.form-anchor {
  background: #ffffff;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #17345a;
}

.required-star {
  display: none;
  color: #c62828;
  font-size: 13px;
  line-height: 1;
}

.field-group.is-missing .required-star {
  display: inline;
}

.field-label img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.field-group input,
.field-group select {
  width: 100%;
  height: 58px;
  padding: 0 14px;
  border: 1px solid #94a3b8;
  border-radius: 0;
  background: #f2f4f6;
  color: #353f4b;
  font-size: 18px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.field-group input::placeholder {
  color: #4f5965;
  opacity: 1;
}

.field-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2356606f' d='M7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.submit-image-btn {
  margin-top: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.submit-image-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.success-banner {
  padding: 24px 20px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  color: #1b5e20;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.submit-image-btn img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  body {
    padding: 24px 0;
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: calc(100dvh - 48px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 31, 58, 0.15);
  }

  .content {
    height: auto;
    min-height: calc(100dvh - 48px - var(--header-height));
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-left: 6px;
    padding-right: 6px;
    gap: 4px;
  }

  .language-switcher {
    transform: scale(0.7);
  }

  .join-btn img {
    height: 26px;
  }
}

@media (max-width: 340px) {
  .language-switcher {
    transform: scale(0.6);
  }
}
