:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #172620;
  --lime: #d9fa88;
  --rule: #cdd4c8;
  font: 100%/1.45 "Inter", "Arial", sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased }
a { font: inherit; -webkit-tap-highlight-color: transparent }
::selection { color: var(--ink); background: var(--lime) }
:focus-visible { outline: 3px solid #197798; outline-offset: 4px }
.frame { width: min(81rem, 88%); margin-inline: auto }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #193331 }
.city, .hero::after { position: absolute; inset: 0; pointer-events: none; z-index: -1 }
.city {
  background: #28403b url("assets/tallinn.webp") center 48% / cover no-repeat;
  transform: scale(1.008);
  filter: blur(1.2px);
}
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(10,29,25,.89), rgba(11,31,25,.79) 26%, rgba(12,30,26,.36) 52%, rgba(13,25,24,.04) 79%),
              linear-gradient(180deg, rgba(13,30,29,.46), transparent 25%, transparent 62%, rgba(12,29,26,.49));
}
.hero-inner { position: relative }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.2rem; border-bottom: 1px solid #ffffff47 }
.identity, .places, .places span, .apply { display: inline-flex; align-items: center }
.identity { gap: .7rem; font-size: 1.06rem; font-weight: 650; letter-spacing: -.025em }
.identity img { width: 2.25rem; height: 2.25rem }
.places { gap: 1.15rem; font-size: .92rem; font-weight: 550; text-shadow: 0 1px 5px #19241e }
.places span { gap: .47rem }
.flag { display: inline-block; width: 1.21rem; height: .83rem; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff42 }
.estonia { background: linear-gradient(#479ee6 33.3%,#16191c 33.3% 66.6%,#faf9f2 66.6%) }
.lithuania { background: linear-gradient(#f4bf37 33.3%,#167656 33.3% 66.6%,#bd4745 66.6%) }
.offer { padding: clamp(2.7rem,5.3vw,5.2rem) 0 clamp(3rem,5.3vw,5rem); max-width: 39rem }
h1,h2,p { margin: 0 }
h1 { font-size: clamp(3.9rem,7.3vw,6.6rem); font-weight: 630; line-height: .96; letter-spacing: -.045em }
.salary { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .68rem; margin-top: 1.75rem }
.salary strong { color: var(--lime); font-size: clamp(2rem,3.2vw,3rem); font-weight: 600; letter-spacing: -.043em; line-height: 1.1 }
.salary span { font-size: 1.08rem; color: #f3f5e9 }
.pay-method { font-size: clamp(1rem,1.35vw,1.14rem); margin-top: .65rem; line-height: 1.55; color: #f2f4ee }
.apply {
  gap: .72rem; justify-content: center; min-height: 3.55rem; margin-top: 1.85rem; padding: .8rem 1.55rem;
  background: var(--lime); color: #15241b; border-radius: .62rem; font-size: 1.05rem;
  font-weight: 700; text-decoration: none; transition: background .16s, transform .16s;
}
.apply:hover { background: #e7ffa7; transform: translateY(-2px) }
.apply:active { transform: translateY(0) }
.apply:focus-visible { outline-color: white }
.tasks { padding-block: clamp(2.2rem,4vw,3.95rem) clamp(2.2rem,3.6vw,3.5rem) }
h2 { font-size: clamp(1.9rem,3.15vw,3rem); font-weight: 600; letter-spacing: -.044em; line-height: 1.12 }
.task-list { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 1.8rem 0 0; padding: 0 }
.task-list li { display: flex; gap: 1.05rem; align-items: center; padding-inline: clamp(1rem,2.4vw,2.4rem); border-inline-start: 1px solid var(--rule); font-size: clamp(1rem,1.35vw,1.2rem); line-height: 1.42; font-weight: 500; letter-spacing: -.015em }
.task-list li:first-child { border: 0; padding-inline-start: 0 }
.task-list li:last-child { padding-inline-end: 0 }
.task-icon { flex: 0 0 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: #e7eddf; color: #284a3b }
.task-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem; border-top: 1px solid var(--rule); min-height: 4rem; color: #526055; font-size: .85rem }
@media (max-width: 54rem) {
  .frame { width: 90% }
  .task-list li { gap: .7rem; padding-inline: .85rem }
  .task-icon { flex-basis: 2.45rem; height: 2.45rem }
  .wide-break { display: none }
}
@media (max-width: 38rem) {
  .frame { width: calc(100% - 2.5rem) }
  .masthead { min-height: 4.25rem; gap: .5rem }
  .identity { gap: .45rem; font-size: .92rem }
  .identity img { width: 1.9rem; height: 1.9rem }
  .places { gap: .55rem; font-size: .82rem }
  .places span { gap: .25rem }
  .flag { width: .89rem; height: .61rem }
  .hero::after { background: linear-gradient(90deg,rgba(10,29,25,.57),rgba(10,29,25,.14) 90%), linear-gradient(0deg,rgba(10,23,20,.89),rgba(10,23,20,.43) 64%,rgba(10,23,20,.23) 88%,rgba(10,23,20,.48)) }
  .city { background-position: 66% center }
  .offer { padding: clamp(2.65rem,12vw,4rem) 0 3.4rem }
  h1 { font-size: clamp(3.15rem,12.6vw,4.7rem); line-height: .98 }
  .salary { margin-top: 1.55rem; column-gap: .48rem }
  .salary span { font-size: 1rem }
  .pay-method { max-width: 21rem; margin-top: .6rem }
  .apply { margin-top: 1.35rem; min-height: 3.25rem; font-size: 1rem }
  .tasks { padding-block: 1.85rem 1.35rem }
  h2 { font-size: 1.85rem }
  .task-list { grid-template-columns: 1fr; margin-top: .9rem }
  .task-list li,.task-list li:first-child { padding: .72rem 0; gap: .9rem; border: 0 }
  .task-list li + li { border-top: 1px solid var(--rule) }
  .footer { min-height: 3.5rem }
}
@media (max-width: 22.5rem) {
  .frame { width: calc(100% - 1.75rem) }
  .places { gap: .45rem }
  .flag { display: none }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important } }
