:root {
  --blue: #5d7fe6;
  --green: #8dc63f;
  --green-dark: #6fa82e;
  --text: #1e2a4a;
  --muted: #5a6785;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(93, 127, 230, 0.22);
}

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

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

.screen {
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  gap: clamp(2px, 0.9vh, 8px);
}

.top {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;
  width: min(70vw, 240px);
  height: auto;
  max-height: clamp(44px, 11vh, 76px);
  object-fit: contain;
}

.hero {
  flex: 0 0 auto;
  text-align: center;
}

.title {
  margin: 0 0 0.15em;
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue);
  line-height: 1.15;
}

.lead {
  margin: 0 0 0.28em;
  font-size: clamp(0.65rem, 2.35vw, 0.8rem);
  color: var(--muted);
  line-height: 1.2;
  padding: 0 4px;
}

.salary-hit {
  margin: 0.15em 0 0;
  padding: clamp(6px, 1.5vw, 10px) clamp(8px, 2vw, 12px);
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(145deg, rgba(93, 127, 230, 0.14), rgba(141, 198, 63, 0.18));
  border: 1px solid rgba(93, 127, 230, 0.28);
  box-shadow: 0 4px 16px rgba(93, 127, 230, 0.12);
}

.salary-hit__kicker {
  margin: 0 0 0.1em;
  font-size: clamp(0.58rem, 2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.salary-hit__sum {
  margin: 0 0 0.35em;
  line-height: 1.05;
}

.salary-hit__euro {
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.salary-hit__per {
  display: inline-block;
  margin-left: 0.15em;
  font-size: clamp(0.72rem, 2.8vw, 0.88rem);
  font-weight: 700;
  color: var(--text);
  vertical-align: middle;
}

.perks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0.2em 0 0;
  font-size: clamp(0.62rem, 2.35vw, 0.78rem);
  font-weight: 600;
  color: var(--green-dark);
  line-height: 1.25;
}

.perks-list li:first-child {
  margin-top: 0.15em;
}

.perks-list__mark {
  flex-shrink: 0;
  width: 1em;
  font-weight: 800;
  color: var(--green);
}

.tiles {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(4px, 1vw, 8px);
  align-content: stretch;
}

.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(93, 127, 230, 0.08), rgba(141, 198, 63, 0.1));
  box-shadow: 0 1px 0 rgba(93, 127, 230, 0.12);
}

.tile img {
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  object-fit: cover;
  display: block;
  min-height: 0;
}

.tile figcaption {
  flex: 0 0 auto;
  padding: 3px 4px 5px;
  font-size: clamp(0.58rem, 2.1vw, 0.72rem);
  font-weight: 600;
  text-align: center;
  color: var(--blue);
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.92);
}

.cta {
  flex: 0 0 auto;
  text-align: center;
  padding-top: 2px;
}

.wa-btn {
  appearance: none;
  border: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.wa-btn:active {
  transform: scale(0.98);
}

.wa-btn__icon {
  display: flex;
  flex-shrink: 0;
}

.cta__hint {
  margin: 4px 0 0;
  font-size: clamp(0.58rem, 2.2vw, 0.68rem);
  color: var(--muted);
}

.site-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 2px;
  line-height: 1.25;
}

.legal {
  margin: 0;
  font-size: clamp(0.48rem, 1.65vw, 0.6rem);
  color: var(--muted);
}

.legal strong {
  color: var(--text);
  font-weight: 700;
}

.legal__mailto {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__sep {
  margin: 0 0.2em;
  opacity: 0.6;
}

.legal__policy {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgba(30, 42, 74, 0.48);
  backdrop-filter: blur(2px);
}

.modal[hidden] {
  display: none !important;
}

.modal__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: min(82dvh, 520px);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(30, 42, 74, 0.25);
}

.modal__title {
  margin: 0 28px 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(93, 127, 230, 0.12);
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

.modal__body p {
  margin: 0 0 0.75em;
}

.modal__body p:last-child {
  margin-bottom: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .wa-btn:active {
    transform: none;
  }
}
