@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&display=swap");

:root {
  --bg: #edf5fb;
  --bg-2: #f7fbff;
  --card: #ffffff;
  --ink: #14324b;
  --muted: #4f6980;
  --line: #d6e4f0;
  --accent: #00a8b4;
  --accent-2: #2263a9;
  --accent-3: #e9f7fb;
  --danger: #be3a34;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Raleway", "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, #dff0ff 0%, transparent 33%),
    radial-gradient(circle at 85% 8%, #ddfbff 0%, transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.6;
}

.app-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-nav-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-brand {
  color: #164265;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #5fd4c8;
  position: relative;
  display: inline-block;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5fd4c8;
  top: -3px;
  right: -3px;
}

.brand-text {
  font-size: 1.05rem;
}

.layout {
  width: min(1160px, 92%);
  margin: 1.5rem auto 2rem;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.careers-layout {
  width: min(920px, 92%);
  margin: 1.5rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.job-card,
.apply-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 18px 34px rgba(17, 46, 79, 0.08);
}

.careers-hero,
.openings-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: 0 18px 34px rgba(17, 46, 79, 0.08);
}

.job-card {
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.apply-card {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand-link {
  display: inline-block;
  margin: 0.55rem 0 0.2rem;
  color: #2a77b8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin: 0.35rem 0 0.2rem;
  color: #4f6980;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a4f86;
  font-weight: 800;
  background: var(--accent-3);
  border: 1px solid #d4eef4;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2px;
  background: #f4f9fd;
  overflow: hidden;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  font-size: 0.81rem;
  font-weight: 800;
  border-radius: 9px;
}

.lang-btn.active {
  background: var(--accent-2);
  color: #fff;
}

h1,
h2 {
  margin: 0.2rem 0 0.68rem;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
}

h2 {
  font-size: 1.08rem;
}

.subtitle,
.helper,
.disclaimer,
.counter {
  color: var(--muted);
}

.subtitle {
  margin: 0 0 1rem;
  padding: 0.55rem 0.72rem;
  background: #f4fbff;
  border: 1px solid #d8ecf8;
  border-radius: 12px;
}

.full-offer h2 {
  margin-top: 1.45rem;
  border-left: 4px solid #cdeaf8;
  padding-left: 0.62rem;
}

.full-offer p {
  margin: 0.48rem 0;
}

.full-offer ul {
  margin: 0.35rem 0 0.95rem;
  padding-left: 1.05rem;
}

.full-offer li {
  margin: 0.3rem 0;
}

.lang-hidden {
  display: none;
}

.opening-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: #fcfeff;
}

.mission-block {
  margin: 0;
}

.opening-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.opening-link {
  display: inline-block;
  margin-top: 0.45rem;
  color: #1d4f7e;
  font-weight: 700;
  text-decoration: none;
}

.opening-link:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 0.45rem;
}

label {
  margin-top: 0.52rem;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
button {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.76rem;
  font: inherit;
}

input,
textarea {
  background: #fbfdff;
}

input:focus,
textarea:focus {
  border-color: #81b6df;
  outline: 3px solid rgba(34, 99, 169, 0.14);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.counter {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
}

button[type="submit"] {
  margin-top: 0.8rem;
  background: linear-gradient(110deg, var(--accent-2), var(--accent));
  color: #fff;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 94, 156, 0.26);
}

.hidden {
  display: none;
}

.error {
  border-color: var(--danger) !important;
}

.error-msg {
  margin: -0.1rem 0 0.4rem;
  color: var(--danger);
  font-size: 0.8rem;
}

.thanks {
  min-height: 100vh;
  padding: 1rem;
}

.thanks article {
  width: min(560px, 94%);
  margin: 2.2rem auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 18px 34px rgba(17, 46, 79, 0.1);
  text-align: center;
}

.thanks-switch {
  margin-bottom: 0.7rem;
}

.thanks a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .app-nav-inner {
    width: min(1160px, 94%);
    padding: 0.5rem 0;
    min-height: 58px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .apply-card {
    position: static;
  }

}
