:root {
  --bg: #f3efe6;
  --bg-card: #fffdf8;
  --ink: #1a1612;
  --muted: #6b6258;
  --line: #e4d8c4;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --ticket: #1a1612;
  --ticket-ink: #f6e7c3;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(26, 22, 18, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html {
  background: var(--bg);
}

body {
  min-height: 100dvh;
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(720px 380px at 50% -60px, #f6e7c3 0%, transparent 70%),
    radial-gradient(480px 260px at 110% 100%, #edd5b3 0%, transparent 68%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.view {
  width: 100%;
  min-height: 100dvh;
  max-width: 100%;
}

.view-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(24px + var(--safe-top)) 24px calc(28px + var(--safe-bottom));
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 390px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}

.vacancy-ticket {
  width: 100%;
  margin-top: 28px;
  padding: 22px 20px 20px;
  border-radius: var(--radius);
  background: var(--ticket);
  color: var(--ticket-ink);
  box-shadow: var(--shadow);
}

.vacancy-label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c4b089;
}

.vacancy-code {
  margin: 8px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(48px, 14vw, 64px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff8e7;
}

.vacancy-hint {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #d8c9a6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-note span {
  font-weight: 700;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("assets/telegram.svg") center / 22px 22px no-repeat;
  mask: url("assets/telegram.svg") center / 22px 22px no-repeat;
}

.btn-primary {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(194, 65, 12, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border-color: #d6c4a8;
  box-shadow: 0 6px 16px rgba(26, 22, 18, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff8ee;
  border-color: var(--accent);
}

@media (max-width: 320px) {
  .view-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 0;
  }

  .vacancy-ticket {
    padding: 18px 16px 16px;
  }
}

@media (min-width: 430px) {
  .view-main {
    padding-top: calc(32px + var(--safe-top));
  }
}
