:root {
  --brand: #6341a8;
  --brand-dark: #4f328b;
  --ink: #1d1830;
  --muted: #6a6478;
  --line: #e8e3f3;
  --surface: #ffffff;
  --soft: #f6f2ff;
  --accent: #38a3a5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-size-adjust: 100%;
  background: #f7f4fb;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(99, 65, 168, 0.92) 0, rgba(99, 65, 168, 0.78) 270px, #f7f4fb 270px),
    url("../images/1577348813_1.jpg") center top / cover no-repeat fixed;
}

a {
  color: inherit;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.brand {
  margin-bottom: 28px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.vacancy-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(44, 33, 72, 0.1);
}

.vacancy-card {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}

.info-grid div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.info-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.info-grid strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

section + section {
  margin-top: 24px;
}

h2 {
  margin-bottom: 12px;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: 0;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

p + p {
  margin-top: 12px;
}

ul {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 17px;
}

li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(56, 163, 165, 0.12);
}

.contact-card {
  position: sticky;
  top: 18px;
  padding: 24px;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.contact-card h2 {
  color: #ffffff;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.86);
}

.contact-image {
  display: block;
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-image:hover,
.contact-image:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27, 19, 58, 0.24);
}

.contact-image:focus-visible,
.telegram-action:focus-visible,
.logo-link:focus-visible {
  outline: 3px solid rgba(56, 163, 165, 0.55);
  outline-offset: 3px;
}

.contact-image img {
  display: block;
  width: 100%;
  height: auto;
}

.telegram-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(99, 65, 168, 0.94) 0, rgba(99, 65, 168, 0.8) 250px, #f7f4fb 250px),
      url("../images/1577348813_1.jpg") center top / cover no-repeat;
  }

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

  .contact-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .brand {
    margin-bottom: 22px;
  }

  .logo-link img {
    width: 170px;
  }

  .vacancy-card,
  .contact-card {
    padding: 20px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .lead,
  p,
  li {
    font-size: 16px;
  }

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