:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.64);
  --muted-2: rgba(244, 241, 234, 0.58);
  --accent: #e33442;
  --radius: 8px;
  --container: 1160px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(227, 52, 66, 0.2), transparent 28rem),
    linear-gradient(180deg, #07080a 0%, #101114 48%, #07080a 100%);
  font-family:
    Onest,
    Manrope,
    "Aptos",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(227, 52, 66, 0.52);
  outline-offset: 3px;
}

.container,
.section {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2));
  color: var(--text);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 241, 234, 0.92);
  font-size: 15px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 38px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.34));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav a,
.header-phone {
  transition: color 0.18s ease;
}

.nav a:hover,
.header-phone:hover {
  color: var(--text);
}

.header-phone {
  color: rgba(244, 241, 234, 0.9);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.86) 0%, rgba(8, 9, 11, 0.68) 42%, rgba(8, 9, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.02), rgba(8, 9, 11, 0.62)),
    url("./assets/hero.png") center right / cover no-repeat;
  filter: grayscale(0.12) saturate(0.9) contrast(1.05);
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(470px, 0.76fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
  padding: 108px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.04;
  font-weight: 590;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-info {
  display: grid;
  gap: 10px;
}

.payment-caption {
  width: max-content;
  margin: 0 0 4px;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.payment-grid {
  display: grid;
  gap: 8px;
}

.payment-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(227, 52, 66, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.078);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.payment-card span,
.hero-contacts span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-card strong {
  min-width: 0;
  color: var(--text);
  font-size: clamp(27px, 2.8vw, 36px);
  line-height: 1.04;
  font-weight: 630;
  white-space: nowrap;
}

.hero-contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.hero-contacts div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.085);
}

.hero-contacts strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.23;
  font-weight: 600;
}

.section {
  padding: 34px 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.08;
  font-weight: 590;
}

h3 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.24;
  font-weight: 590;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 99px;
}

.criteria-grid,
.benefits-grid,
.vacancy-grid {
  display: grid;
  gap: 10px;
}

.criteria-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits-grid,
.vacancy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.criteria-grid article,
.benefits-grid article,
.vacancy-card,
.faq-item,
.final-cta {
  background: linear-gradient(180deg, var(--panel), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.criteria-grid article,
.benefits-grid article,
.vacancy-card {
  padding: 18px;
}

.criteria-grid article:hover,
.benefits-grid article:hover,
.vacancy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 52, 66, 0.42);
  box-shadow: var(--shadow);
}

.criteria-grid p,
.benefits-grid p,
.vacancy-card p,
.faq-list p,
.faq-list li,
.final-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.vacancy-extra {
  display: none;
}

.jobs-section.is-expanded .vacancy-extra {
  display: block;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.28s ease,
    opacity 0.22s ease,
    margin-top 0.28s ease;
}

.accordion-panel > * {
  overflow: hidden;
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
  margin-top: 8px;
  opacity: 1;
}

.text-button {
  margin-top: 13px;
  padding: 0;
  color: #ff6470;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.12);
}

.button.ghost {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.faq-section {
  padding-top: 26px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  position: relative;
  width: 100%;
  min-height: 56px;
  padding: 17px 52px 17px 20px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
}

.faq-question::after {
  content: "";
  position: absolute;
  top: 23px;
  right: 23px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.faq-item.is-open {
  border-color: rgba(227, 52, 66, 0.42);
}

.faq-item.is-open .faq-question::after {
  transform: translateY(4px) rotate(225deg);
}

.faq-item .accordion-panel p,
.faq-item .accordion-panel ul {
  padding: 0 20px 18px;
}

ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

li + li {
  margin-top: 8px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: start;
  margin-bottom: 28px;
  padding: 30px;
}

.final-cta .eyebrow {
  margin-bottom: 8px;
}

.final-cta p {
  max-width: 620px;
  font-size: 17px;
}

.contact-card {
  padding: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.phone-large {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.08;
  font-weight: 620;
}

.contact-card .button {
  margin-top: 14px;
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  font-size: 21px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.56s ease,
    transform 0.56s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .hero-content,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-info {
    max-width: 650px;
  }

  .criteria-grid,
  .benefits-grid,
  .vacancy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container,
  .section {
    width: calc(100% - 44px);
  }

  .site-header {
    position: absolute;
    min-height: 68px;
    padding: 13px 22px;
  }

  .nav {
    display: none;
  }

  .brand span:last-child {
    max-width: none;
    font-size: 0;
    line-height: 1;
  }

  .brand span:last-child::after {
    content: "Приморский район";
    font-size: 15px;
    font-weight: 600;
  }

  .header-phone {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.76) 0%, rgba(8, 9, 11, 0.48) 46%, rgba(8, 9, 11, 0.9) 100%),
      url("./assets/hero.png") 86% center / cover no-repeat;
    filter: grayscale(0.02) saturate(1.08) contrast(1.04);
  }

  .hero-content {
    padding: 78px 0 30px;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 10px;
  }

  h1 {
    max-width: none;
    margin-bottom: 0;
    font-size: clamp(30px, 8.8vw, 34px);
    line-height: 1.04;
    white-space: nowrap;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 18px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .payment-card {
    grid-template-columns: 1fr;
    width: max-content;
    min-width: 0;
    gap: 5px;
    min-height: 60px;
    padding: 13px 15px;
  }

  .hero-info {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    width: 100%;
    margin-inline: 0;
  }

  .payment-caption {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    margin-top: 10px;
    color: var(--accent);
    font-size: 23px;
    font-weight: 760;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 8px 26px rgba(227, 52, 66, 0.36);
  }

  .payment-grid {
    grid-column: 2;
    grid-row: 1;
    justify-items: end;
  }

  .hero-contacts {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .payment-card strong {
    font-size: clamp(21px, 6vw, 24px);
  }

  .hero-contacts div {
    padding: 13px 14px;
  }

  .hero-contacts strong {
    font-size: 17px;
  }

  .section {
    padding: 28px 0;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2 {
    gap: 9px;
  }

  .section-heading h2::before {
    width: 18px;
  }

  .criteria-grid article,
  .benefits-grid article,
  .vacancy-card,
  .contact-card {
    padding: 16px;
  }

  .faq-section {
    padding-top: 28px;
  }

  .faq-question {
    min-height: 54px;
    padding: 16px 46px 16px 17px;
    font-size: 16px;
  }

  .faq-item .accordion-panel p,
  .faq-item .accordion-panel ul {
    padding: 0 17px 17px;
  }

  .final-cta {
    width: calc(100% - 44px);
    padding: 18px;
    margin-bottom: 22px;
  }
}
