/* ===== Variables ===== */
:root {
  --color-bg-deep:    #071b13;
  --color-bg-dark:    #0f3325;
  --color-bg-mid:     #1d5039;
  --color-gold:       #d6a84b;
  --color-cream:      #f1dfb8;
  --color-white:      #ffffff;

  --font-family: 'Manrope', 'Inter', system-ui, sans-serif;

  --header-height: 64px;
  --container-max: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;

  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 40px rgba(214, 168, 75, 0.08);
  --border-gold: rgba(214, 168, 75, 0.22);
  --border-gold-hover: rgba(214, 168, 75, 0.45);
  --glass-emerald: linear-gradient(
    155deg,
    rgba(15, 51, 37, 0.72) 0%,
    rgba(7, 27, 19, 0.88) 100%
  );

  /* Effective top color of .vacancies: bg-deep + radial overlay at center */
  --vacancies-bg-top: #0f2e20;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-deep);
  color: var(--color-white);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin: 0 auto;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 27, 19, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 168, 75, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-cream);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.header__link:hover {
  color: var(--color-cream);
}

.header__link--accent {
  color: var(--color-gold);
}

.header__link--accent:hover {
  color: var(--color-cream);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #c4953a 100%);
  color: var(--color-bg-deep);
  box-shadow: 0 4px 24px rgba(214, 168, 75, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #e0b85a 0%, var(--color-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214, 168, 75, 0.45);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 760px;
  height: min(100vh, 920px);
  display: flex;
  align-items: center;
  background-color: var(--color-bg-deep);
  background-image:
    linear-gradient(
      105deg,
      rgba(7, 27, 19, 0.92) 0%,
      rgba(7, 27, 19, 0.78) 40%,
      rgba(7, 27, 19, 0.35) 70%,
      rgba(7, 27, 19, 0.15) 100%
    ),
    url('assets/hero-desktop.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(15, 46, 32, 0) 0%,
    rgba(15, 46, 32, 0.35) 45%,
    rgba(15, 46, 32, 0.8) 78%,
    var(--vacancies-bg-top) 100%
  );
}

.hero__inner {
  width: 100%;
  padding-top: var(--header-height);
  padding-bottom: 40px;
}

@media (min-width: 769px) {
  .hero__inner {
    padding-left: clamp(16px, 2.5vw, 40px);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 20px;
}

.hero__title {
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
}

.hero__salary {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: 26px;
}

.hero__salary-accent {
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-cream) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__benefits {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 30px;
}

.hero__benefits li {
  position: relative;
  padding-left: 22px;
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: 88px 0;
}

.section__title {
  position: relative;
  font-size: clamp(1.625rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-cream);
  margin-bottom: 52px;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.7;
}

/* ===== Vacancies ===== */
.vacancies {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(29, 80, 57, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-dark) 40%, var(--color-bg-dark) 100%);
}

.vacancies::before,
.vacancies::after {
  content: '';
  position: absolute;
  top: 0;
  width: 42.5%;
  height: 1px;
  pointer-events: none;
  z-index: 2;
}

.vacancies::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(214, 168, 75, 0.3) 0%,
    rgba(214, 168, 75, 0.22) 70%,
    transparent 100%
  );
}

.vacancies::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(214, 168, 75, 0.3) 0%,
    rgba(214, 168, 75, 0.22) 70%,
    transparent 100%
  );
}

.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background: var(--glass-emerald);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-glow), inset 0 1px 0 rgba(241, 223, 184, 0.06);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(214, 168, 75, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 223, 184, 0.18), transparent);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold-hover);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 56px rgba(214, 168, 75, 0.1),
    inset 0 1px 0 rgba(241, 223, 184, 0.1);
}

.card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-gold);
  background: rgba(214, 168, 75, 0.08);
  border: 1px solid rgba(214, 168, 75, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(214, 168, 75, 0.06);
}

.card__icon svg {
  width: 20px;
  height: 20px;
}

.card__title {
  position: relative;
  z-index: 1;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.card__text {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  flex-grow: 1;
}

/* ===== Conditions ===== */
.conditions {
  background:
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(29, 80, 57, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 80%, rgba(214, 168, 75, 0.04) 0%, transparent 55%),
    linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg-deep) 50%, var(--color-bg-deep) 100%);
}

.conditions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 168, 75, 0.12), transparent);
}

.conditions__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.condition {
  position: relative;
  text-align: center;
  padding: 28px 16px 26px;
  background: var(--glass-emerald);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(241, 223, 184, 0.05);
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.condition::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(214, 168, 75, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.condition:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold-hover);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(214, 168, 75, 0.07),
    inset 0 1px 0 rgba(241, 223, 184, 0.08);
}

.condition__value {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(1.125rem, 2.2vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.condition__label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== CTA Block ===== */
.cta-block {
  position: relative;
  padding: 96px 0 108px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, rgba(214, 168, 75, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 90% 40% at 50% 100%, rgba(29, 80, 57, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-bg-deep) 0%, #0a2218 50%, var(--color-bg-dark) 100%);
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 168, 75, 0.18), transparent);
}

.cta-block::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(400px, 60vh);
  background: radial-gradient(ellipse, rgba(214, 168, 75, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 52px 44px;
  background:
    linear-gradient(165deg, rgba(15, 51, 37, 0.85) 0%, rgba(7, 27, 19, 0.95) 100%);
  border: 1px solid rgba(214, 168, 75, 0.28);
  border-radius: 24px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(214, 168, 75, 0.08),
    inset 0 1px 0 rgba(241, 223, 184, 0.1),
    inset 0 0 60px rgba(214, 168, 75, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.cta-block__inner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(214, 168, 75, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-block__inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214, 168, 75, 0.35), transparent);
  pointer-events: none;
}

.cta-block__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4375rem, 2.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-cream);
  margin-bottom: 14px;
}

.cta-block__text {
  position: relative;
  z-index: 1;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn--primary {
  position: relative;
  z-index: 1;
  box-shadow:
    0 4px 24px rgba(214, 168, 75, 0.4),
    0 0 40px rgba(214, 168, 75, 0.15);
}

.cta-block .btn--primary:hover {
  box-shadow:
    0 8px 36px rgba(214, 168, 75, 0.5),
    0 0 56px rgba(214, 168, 75, 0.2);
}

/* ===== Footer ===== */
.footer {
  padding: 28px 0;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(214, 168, 75, 0.08);
}

.footer__inner {
  text-align: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Responsive ===== */

@media (max-height: 800px) and (min-width: 769px) {
  .hero {
    min-height: 680px;
    height: auto;
  }

  .hero__inner {
    padding-bottom: 28px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__subtitle {
    margin-bottom: 28px;
  }

  .hero__salary {
    margin-bottom: 20px;
  }

  .hero__benefits {
    gap: 10px;
    margin-bottom: 24px;
  }
}

@media (min-width: 1200px) and (max-width: 1500px) {
  .hero {
    background-position: 58% center;
  }
}

@media (max-width: 1440px) {
  .header__nav {
    gap: 24px;
  }
}

@media (max-width: 1200px) {
  .hero__content {
    max-width: 520px;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 1100px) {
  .vacancies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .card {
    padding: 24px 20px 26px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .hero__inner {
    padding-left: clamp(20px, 3.5vw, 36px);
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }

  .header__nav {
    gap: 20px;
  }

  .header__link {
    font-size: 0.8125rem;
  }

  .hero__content {
    max-width: 480px;
  }

  .conditions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .cta-block {
    padding: 80px 0 96px;
  }

  .cta-block__inner {
    padding: 44px 36px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .container {
    width: min(var(--container-max), calc(100% - 32px));
  }

  .header__logo {
    font-size: 1rem;
  }

  .header__nav {
    gap: 16px;
  }

  .header__link {
    font-size: 0.8125rem;
  }

  .hero {
    min-height: max(640px, 100svh);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background-image:
      linear-gradient(
        180deg,
        rgba(7, 27, 19, 0.88) 0%,
        rgba(7, 27, 19, 0.72) 45%,
        rgba(7, 27, 19, 0.45) 75%,
        rgba(7, 27, 19, 0.25) 100%
      ),
      url('assets/hero-mobile.png');
    background-position: center center;
    background-size: cover;
  }

  .hero__inner {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: calc(100svh - var(--header-height));
    padding-top: calc(var(--header-height) + 4vh);
    padding-bottom: 12vh;
    padding-left: 0;
  }

  .hero__content {
    max-width: 78%;
    padding-top: 0;
  }

  .hero__title {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: clamp(16px, 3.8vw, 18px);
    margin-bottom: 28px;
  }

  .hero__salary {
    font-size: clamp(20px, 4.5vw, 24px);
    margin-bottom: 22px;
  }

  .hero__salary-accent {
    font-size: clamp(24px, 5.5vw, 28px);
  }

  .hero__benefits {
    gap: 12px;
    margin-bottom: 26px;
  }

  .hero__benefits li {
    font-size: clamp(14px, 3.2vw, 15px);
    padding-left: 18px;
  }

  .hero__benefits li::before {
    width: 6px;
    height: 6px;
  }

  .btn {
    padding: 13px 26px;
    font-size: 0.9375rem;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    margin-bottom: 36px;
    letter-spacing: 0.03em;
  }

  .section__title::after {
    width: 36px;
    margin-top: 14px;
  }

  .vacancies__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .card {
    padding: 22px 20px 24px;
    border-radius: 16px;
  }

  .card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .card__icon svg {
    width: 18px;
    height: 18px;
  }

  .conditions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .condition {
    padding: 22px 14px 20px;
    border-radius: 16px;
  }

  .condition__label {
    font-size: 0.75rem;
  }

  .cta-block {
    padding: 64px 0 80px;
  }

  .cta-block__inner {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .cta-block__title {
    font-size: clamp(1.375rem, 5vw, 1.625rem);
  }

  .cta-block__text {
    font-size: 0.875rem;
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .header__nav {
    gap: 12px;
  }

  .header__link:not(.header__link--accent) {
    display: none;
  }

  .header__link--accent {
    font-size: 0.8125rem;
  }

  .hero__content {
    max-width: 88%;
  }

  .conditions__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(var(--container-max), calc(100% - 28px));
  }

  .header__logo {
    font-size: 0.9375rem;
  }

  .header__link--accent {
    font-size: 0.75rem;
  }

  .hero__content {
    max-width: 92%;
  }

  .hero__title {
    font-size: clamp(30px, 7.5vw, 36px);
  }

  .hero__benefits li {
    font-size: 14px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
  }

  .cta-block__inner {
    padding: 36px 20px;
  }
}

@media (max-width: 375px) {
  .container {
    width: min(var(--container-max), calc(100% - 24px));
  }

  .header__nav {
    gap: 10px;
  }

  .header__logo {
    font-size: 0.875rem;
  }

  .hero__subtitle {
    margin-bottom: 24px;
  }

  .hero__salary {
    margin-bottom: 20px;
  }

  .hero__benefits {
    margin-bottom: 22px;
  }

  .section {
    padding: 52px 0;
  }

  .card {
    padding: 20px 18px 22px;
  }

  .condition {
    padding: 20px 12px 18px;
  }
}
