﻿/* Compact page rhythm and the combined candidate actions block. */
.section {
  padding-block: 52px;
}

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

.candidate-compact-section {
  padding-block: 52px;
  padding-bottom: 26px;
}

/* These sections now contain one panel each{
  grid-template-columns: minmax(0, 1fr);
}

.candidate-package {
  padding-block: 52px;
}

.candidate-compact-section + .candidate-package {
  padding-top: 26px;
}

.desktop-nav {
  gap: 16px;
  font-size: 12px;
}

.contacts-section {
  scroll-margin-top: 110px;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-details-grid article {
  min-width: 0;
  padding: 30px;
  background: var(--white);
}

.contact-details-grid article + article {
  border-left: 1px solid var(--line);
}

.contact-details-grid article > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-details-grid h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.contact-details-grid h3:first-child { margin-top: 0; }
.contact-details-grid h3:last-child { margin-bottom: 0; }

.contact-details-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Two content rows (brand+links, requisites+copy) plus one intentionally empty bottom row inside the tricolor band. */
.footer-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(0, 1fr) auto;
  grid-template-rows: minmax(76px, 1fr) minmax(76px, 1fr) minmax(56px, 1fr);
  align-items: center;
  column-gap: 34px;
  padding-block: 0;
}

.footer-main .brand {
  grid-column: 1;
  grid-row: 1;
}

.footer-links {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
}

.footer-links a {
  color: var(--muted);
}

.footer-links span {
  color: var(--muted);
}

.footer-links a:hover,
.policy-link:hover {
  color: var(--green);
}

/* Footer legal links are buttons that open the in-page document viewer. */
.policy-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-requisites {
  grid-column: 1 / 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-requisites > span:last-child { justify-self: end; }

.footer-main > .footer-copy {
  grid-column: 3 / 4;
  grid-row: 2;
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.candidate-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.candidate-split__right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.candidate-photo {
  position: relative;
  display: block;
  width: min(86%, 484px);
  margin-inline: auto;
  aspect-ratio: 1696 / 2528;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

/* Hero-style subtle zoom; the whole block scales so the CTA stays over the baked-in button. */
.candidate-photo { transition: transform .2s ease; }
@media (hover:hover) {
  .candidate-photo:hover { transform: scale(1.015); }
}

.candidate-photo::before,
.candidate-photo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 1;
  pointer-events: none;
}

.candidate-photo::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(250,250,247,0));
}

.candidate-photo::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(250,250,247,0));
}

.candidate-photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-banner {
  min-height: 190px;
  padding: 25px 28px;
  border: 1px solid #cdd6e3;
  border-radius: var(--radius);
  background: var(--white);
  color: #203b68;
}

.candidate-banner__number {
  display: block;
  color: #9d2941;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.candidate-banner__title {
  margin: 22px 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.candidate-banner__text {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (min-width: 761px) {
  }

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    align-content: center;
    gap: 6px;
    width: 44px;
    height: 42px;
    padding: 11px;
    border: 1px solid #d0d8cd;
    border-radius: 4px;
    background: transparent;
  }

  .menu-toggle span {
    width: 20px;
    height: 1px;
    background: var(--green);
  }

  .mobile-nav {
    display: grid;
    gap: 3px;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav a {
    padding: 12px;
    font-size: 16px;
  }}

@media (max-width: 760px) {
  .section,
  .candidate-compact-section,
  .candidate-package {
    padding-block: 36px;
  }

  .candidate-compact-section {
    padding-bottom: 18px;
  }

  .candidate-compact-section + .candidate-package {
    padding-top: 18px;
  }

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

  .candidate-split {
    grid-template-columns: 1fr;
  }

  .candidate-photo {
    width: 100%;
  }

  .candidate-cta {
    font-size: 12.5px;
  }

  .candidate-split__right {
    display: none;
  }

  .candidate-banner {
    min-height: 0;
    padding: 23px 24px;
  }

  .candidate-banner__title {
    margin-top: 18px;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .contact-details-grid article {
    padding: 26px 24px;
  }

  .contact-details-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
    grid-template-rows: none;
    row-gap: 24px;
    padding-block: 34px;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
  }

    .footer-requisites {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-requisites > span:last-child { justify-self: start; }

  .footer-main > .footer-copy {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
  }

  }

/* Simplified vacancy rows show only the title; details remain in the modal. */
/* Soft depth under the sticky header so it does not melt into the page background. */
.header {
  box-shadow: 0 18px 30px -20px rgba(18, 34, 61, .55), 0 6px 18px rgba(18, 34, 61, .08);
}

/* Mirror the header depth so the footer reads as a separate band at the bottom. */
.footer {
  box-shadow: 0 -18px 30px -20px rgba(18, 34, 61, .55), 0 -6px 18px rgba(18, 34, 61, .08);
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.job-row .job-name { flex: 1 1 auto; }
.job-row .job-salary { flex: 0 0 auto; }
.job-row .job-arrow { flex: 0 0 40px; }
.detail-grid > div:only-child { grid-column: 1 / -1; }
.detail-grid p { margin: 0; font-size: 14px; line-height: 1.85; }
.package-action--lost { justify-content: flex-end; }
.contacts-question { margin-top: 24px; }
.steps-action { margin-top: 44px; }
.steps-cta { background: var(--white); border-color: var(--white); color: var(--green); }
.steps-cta:hover { background: #eef3ee; border-color: #eef3ee; }

@media (max-width: 760px) {
  .job-row { display: flex; }
  .job-row .job-arrow { flex-basis: 40px; }
  .package-action--lost { justify-content: stretch; }
  .package-action--lost .button,
  .contacts-question { width: 100%; }
  .steps-action { margin-top: 32px; }
  .steps-action .button { width: 100%; gap: 18px; }}.vacancies-bottom .text-button { margin-left: auto; }

.candidate-cta {
  position: absolute;
  z-index: 2;
  left: 9%;
  width: 82%;
  bottom: 5%;
  height: 7%;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: #2e7d32;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: filter .15s ease;
}

.candidate-cta:hover {
  filter: brightness(1.1);
}
