@font-face {
  font-family: "Noto Sans Local";
  src: url("Fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f8f5f6;
  --surface: #ffffff;
  --surface-soft: #fcfafb;
  --primary: #c73572;
  --primary-hover: #a92b5f;
  --text: #302a2d;
  --muted: #71686c;
  --border: #e8dce1;
  --focus: rgba(199, 53, 114, 0.12);
  --shadow: 0 18px 55px rgba(64, 38, 49, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 48px 20px;
  font-family: "Noto Sans", "Noto Sans Local", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 53, 114, 0.08), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(199, 53, 114, 0.06), transparent 32%),
    var(--background);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.form-container {
  width: 100%;
  max-width: 820px;
  padding: 44px 52px 52px;
  background: var(--surface);
  border: 1px solid rgba(232, 220, 225, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}


.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 18px;
}

.lang-button {
  min-width: 56px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.2s ease;
}

.lang-button:hover {
  color: var(--primary);
  border-color: rgba(199, 53, 114, 0.45);
}

.lang-button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.lang-button:active {
  transform: translateY(1px);
}

.lang-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-container > img {
  display: block;
  width: min(72%, 500px);
  height: auto;
  margin: 0 auto 30px;
}

.form-container h2 {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--primary);
  font-size: clamp(25px, 4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.form-container p {
  margin: 0 auto 34px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
}

.form-container p strong {
  font-weight: 700;
}

form {
  margin-top: 8px;
  padding: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.form-container input[type="text"] {
  width: 100%;
  min-height: 54px;
  margin: 0 0 16px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-container input[type="text"]::placeholder {
  color: #9a9094;
}

.form-container input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus);
}


.button {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 14px 24px;
  border: none;
  border-radius: 11px;
  background: var(--primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(199, 53, 114, 0.20);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(199, 53, 114, 0.25);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(199, 53, 114, 0.22);
  outline-offset: 3px;
}

.hidden-text {
  display: none;
}

@media (max-width: 640px) {
  body {
    padding: 18px 12px;
  }

  .form-container {
    padding: 30px 20px 24px;
    border-radius: 18px;
  }

  .language-switcher {
    justify-content: center;
    margin-bottom: 24px;
  }

  .lang-button {
    flex: 1;
    max-width: 82px;
    height: 40px;
  }

  .form-container > img {
    width: 88%;
    margin-bottom: 24px;
  }

  .form-container h2 {
    margin-bottom: 20px;
  }

  .form-container p {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.65;
  }

  form {
    padding: 18px;
    border-radius: 14px;
  }
}
