/* Offset anchor scroll for fixed header (85px) */
html {
  scroll-padding-top: 95px;
}

/* Hero vacancy Section */
.hero-vacancy {
  background-image: url("../../images/lab-bg.svg");
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  max-width: 1435px;
  width: calc(100% - 80px);
  height: 780px;
  margin: 50px auto 0;
  padding: 50px;
  z-index: 2;
}

.hero-illustration {
  z-index: -1;
  position: absolute;
  bottom: 0;
  right: -50px;
  bottom: -50px;
  width: 107.4%;
  display: flex;
  justify-content: end;
}

.hero-vacancy-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 76px);
  color: #ffffff;
}

.hero-vacancy-content {
  display: flex;
  position: relative;
  height: 100%;
}

.hero-vacancy-text {
  flex: 1;
  max-width: 100%;
  position: relative;
}

.hero-vacancy-description {
  margin-top: 30px;
  font-family: "Inter";
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #fff;
}

.hero-vacancy-description > div:first-child {
  margin-bottom: 12px;
}

.hero-btns {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-btn {
  border: none;
  background: #b0e881;
  padding: 25px 70px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2;
  width: 560px;
  text-decoration: none;
  color: #183b59;
  font-family: "Inter";
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  display: block;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.btn-primary {
  margin-top: 20px;
  padding: 25px 63px;
  background-color: #fff;
  color: #0c6ed6;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.hero-btn:hover {
  background: #caff9f;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: #eaeffd;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
}

.hero-btn:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.nav-link.active {
  color: #2b7ce9;
}

.nav-link.active::after {
  width: 100%;
}

@media screen and (max-width: 1440px) {
  .hero-vacancy {
    height: 630px;
    padding: 40px;
    margin-top: 40px;
  }

  .hero-vacancy-title br {
    display: block;
  }

  .hero-vacancy-description {
    margin-top: 15px;
    font-size: 22px;
  }

  .hero-btns {
    margin-top: 30px;
  }

  .hero-btn {
    padding: 20px 50px;
    width: 560px;
  }

  .btn-primary {
    padding: 20px 45px;
  }

  .hero-illustration {
    max-width: 93%;
    right: -40px;
    bottom: -40px;
  }
}

@media screen and (max-width: 1180px) {
  .hero-vacancy {
    height: 550px;
    padding: 30px;
  }

  .hero-btns {
    margin-top: 10px;
  }

  .hero-btn {
    padding: 20px 50px;
    width: 500px;
    font-size: 24px;
  }

  .btn-primary {
    padding: 20px 45px;
  }

  .hero-vacancy-description {
    font-size: clamp(18px, 7vw, 22px);
    margin-top: 10px;
  }

  .hero-illustration {
    max-width: 90%;
    right: -30px;
    bottom: -30px;
  }
}

@media screen and (max-width: 1080px) {
  .hero-vacancy {
    height: 520px;
    border-radius: 25px;
    padding: 25px;
    margin-top: 30px;
  }

  .hero-vacancy-title {
    font-size: 45px;
  }

  .hero-vacancy-description {
    font-size: clamp(20px, 2.4vw, 25px);
  }

  .hero-btns {
    margin-top: 40px;
  }

  .hero-btn {
    padding: 15px 40px;
    border-radius: 15px;
    width: 400px;
    font-size: 20px;
  }

  .btn-primary {
    padding: 15px 35px;
  }

  .hero-illustration {
    max-width: 95%;
    right: -25px;
    bottom: -25px;
  }

  .hero-vacancy-description {
    margin-top: 10px;
  }
}

@media screen and (max-width: 950px) {
  .hero-vacancy {
    width: calc(100% - 60px);
    height: 500px;
  }

  .hero-illustration {
    max-width: 90%;
  }
}

@media screen and (max-width: 840px) {
  .hero-vacancy {
    height: auto;
    padding: 20px;
  }

  .hero-vacancy-content {
    flex-direction: column;
  }

  .hero-vacancy-title {
    font-size: clamp(24px, 5vw, 30px);
  }

  .hero-vacancy-description {
    font-size: clamp(16px, 2vw, 18px);
  }

  .hero-btns {
    margin-top: 20px;
    position: relative;
    bottom: auto;
    left: auto;
  }

  .hero-btn {
    padding: 15px 30px;
    border-radius: 15px;
    max-width: 300px;
    width: 100%;
    font-size: 15px;
  }

  .btn-primary {
    padding: 15px 25px;
  }

  .hero-illustration {
    right: -20px;
    bottom: -20px;
    width: 100%;
  }

  .hero-vacancy-text {
    order: 1;
  }
}

@media screen and (max-width: 768px) {
  .hero-vacancy {
    width: calc(100% - 40px);
    border-radius: 20px;
    margin-top: 25px;
  }
}

@media screen and (max-width: 640px) {
  .hero-illustration {
    max-width: 80%;
  }

  .hero-vacancy-title {
    font-size: clamp(15px, 2vw, 22px);
  }

  .hero-vacancy-description {
    font-size: clamp(15px, 2vw, 20px);
  }
}

@media screen and (max-width: 570px) {
  .hero-vacancy-title {
    font-size: clamp(20px, 7vw, 30px);
  }

  .hero-vacancy-description {
    font-size: 15px;
  }

  .hero-btns {
    margin-top: 30px;
  }

  .hero-btn {
    text-align: center;
  }

  .hero-illustration {
    position: relative;
    bottom: auto;
    max-width: 215%;
    width: 211%;
    display: flex;
    order: 2;
    right: 105%;
    /* bottom: -25px; */
  }

  .hero-btn,
  .btn-primary {
    font-size: clamp(12px, 5vw, 16px);
    font-weight: 800;
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
  }

  .hero-vacancy {
    margin-top: 20px;
    padding-bottom: 0;
  }
}

@media screen and (max-width: 410px) {
  .hero-illustration {
    right: 102.5%;
  }
}

/* become-author-section */
.become-author-section {
  background-image: url("../../images/vacancy-author.svg");
  padding: 80px 40px 70px 40px;
  margin-top: 100px;
  position: relative;
}

.become-author-section .container .become-author-title {
  color: #0c6ed6;
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.become-author-section .container .become-author-subtitle {
  font-family: "Inter";
  font-size: 32px;
  color: #183b59;
  font-weight: 800;
}

.vacancy-author-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.vacancy-author-card {
  background-color: #b0e881;
  border-radius: 20px;
  padding: 30px 40px;
  position: relative;
  height: 450px;
  max-width: 465px;
  width: 100%;
  overflow: hidden;
}

.vacancy-author-card-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: block;
}

.vacancy-author-card-title {
  font-family: "Inter";
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
}

.vacancy-author-card-description {
  font-family: "Inter";
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  margin-top: 20px;
}

@media screen and (max-width: 1440px) {
  .become-author-section {
    padding: 60px 30px;
    margin-top: 60px;
  }

  .become-author-section .container .become-author-title {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 1400px) {
  .vacancy-author-card {
    height: 350px;
    padding: 25px 35px;
  }

  .vacancy-author-card-img {
    width: 75%;
  }

  .vacancy-author-card-title {
    font-size: 28px;
  }

  .vacancy-author-card-description {
    font-size: 20px;
    margin-top: 20px;
  }
}

@media screen and (max-width: 1175px) {
  .vacancy-author-card {
    height: 300px;
    padding: 20px 30px;
  }

  .vacancy-author-card-img {
    width: 85%;
  }

  .vacancy-author-card-title {
    font-size: 25px;
  }

  .vacancy-author-card-description {
    font-size: 17px;
    margin-top: 7px;
  }

  .vacancy-author-cards {
    gap: 15px;
  }
}

@media screen and (max-width: 1000px) {
  .vacancy-author-cards {
    margin-top: 20px;
  }

  .vacancy-author-card {
    height: 250px;
    padding: 15px 25px;
  }

  .vacancy-author-card-img {
    width: 75%;
  }

  .vacancy-author-card-title {
    font-size: 22px;
  }

  .vacancy-author-card-description {
    font-size: 15px;
    margin-top: 7px;
  }

  .become-author-section .container .become-author-title {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 835px) {
  .vacancy-author-cards {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 15px;
  }

  .vacancy-author-card {
    max-width: 100%;
    height: 290px;
    padding: 15px 20px;
  }

  .vacancy-author-card-img {
    width: clamp(55%, 50vw, 90%);
  }

  .vacancy-author-card-title {
    font-size: clamp(20px, 3vw, 28px);
  }

  .vacancy-author-card-title br {
    display: none;
  }

  .vacancy-author-card-description {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-top: 15px;
  }

  .vacancy-author-card-description br {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .become-author-section {
    padding: 50px 20px;
    margin-top: 50px;
  }

  .become-author-section .container .become-author-title {
    font-size: clamp(18px, 5vw, 36px);
  }

  .become-author-section .container .become-author-subtitle {
    font-size: clamp(16px, 4vw, 32px);
  }
}

@media screen and (max-width: 668px) {
  .vacancy-author-card-img {
    width: 330px;
  }

  .vacancy-author-cards {
    gap: 10px;
  }
}

@media screen and (max-width: 520px) {
  .vacancy-author-card-img {
    display: none;
  }

  .vacancy-author-card {
    height: 124px;
    border-radius: 15px;
    padding: 20px 15px;
  }

  .vacancy-author-card-title {
    font-size: 18px;
  }

  .vacancy-author-card-description {
    font-size: 12px;
  }
}

@media screen and (max-width: 330px) {
  .vacancy-author-card-title {
    font-size: 17px;
  }

  .vacancy-author-card-description {
    margin-top: 10px;
    font-size: 11px;
  }
}

/* Author Requirements Section */
.author-requirements-section {
  margin-top: 20px;
  padding: 0;
}

.author-requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.author-requirements-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-requirements-left {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 40px;
  height: 100%;
}

.author-requirements-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
  margin-bottom: 20px;
}

.author-requirements-list {
  list-style: none;
  margin: 12px 0 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.author-requirements-item {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  line-height: 1.4;
  position: relative;
  padding-left: 30px;
  position: relative;
  padding-left: 16px;
  list-style: none;
}

.author-requirements-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #0c6ed6;
  border-radius: 1px;
  flex-shrink: 0;
}

.author-offers {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 30px 50px 40px;
}

.author-offers-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
  margin-bottom: 20px;
}

.author-offers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.author-offers-item {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  line-height: 1.4;
  position: relative;
  padding-left: 30px;
  position: relative;
  padding-left: 16px;
  list-style: none;
}

.author-offers-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background-color: #0c6ed6;
  border-radius: 1px;
  flex-shrink: 0;
}

.author-join {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 30px 50px 40px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.author-join-title {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #183b59;
  margin-bottom: 20px;
}

.author-join-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #183b59;
  line-height: 1.6;
  margin-bottom: 50px;
}

.author-join-button {
  display: inline-block;
  background-color: #b0e881;
  color: #183b59;
  max-width: 465px;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 50px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.author-join-button:hover {
  background-color: #caff9f;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
}

.author-join-button:focus {
  outline: 3px solid rgba(12, 110, 214, 0.5);
  outline-offset: 2px;
}

@media screen and (max-width: 1400px) {
  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: 28px;
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: 22px;
  }

  .author-join-button {
    font-size: 28px;
    padding: 18px 45px;
  }
}

@media screen and (max-width: 1200px) {
  .author-requirements-grid {
    gap: 15px;
  }

  .author-requirements-right {
    gap: 15px;
  }

  .author-requirements-left,
  .author-offers,
  .author-join {
    padding: 35px;
  }

  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: 20px;
  }

  .author-requirements-section {
    margin-top: 15px;
  }

  .author-join-button {
    font-size: 26px;
    padding: 16px 40px;
  }

  .author-requirements-item::before {
    top: 0.64em;
  }
}

@media screen and (max-width: 1000px) {
  .author-requirements-left,
  .author-offers,
  .author-join {
    padding: 30px;
  }

  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: 18px;
  }

  .author-requirements-list,
  .author-offers-list {
    gap: 15px;
  }

  .author-join-button {
    font-size: 24px;
    padding: 15px 35px;
  }
}

@media screen and (max-width: 835px) {
  .author-requirements-grid {
    grid-template-columns: 1fr;
  }

  .author-requirements-left,
  .author-offers,
  .author-join {
    padding: 30px 25px;
  }

  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: clamp(20px, 4vw, 24px);
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: clamp(15px, 2.5vw, 18px);
  }

  .author-offers-item::before {
    top: 0.6em;
  }
}

@media screen and (max-width: 668px) {
  .author-requirements-section {
    margin-top: 10px;
  }

  .author-requirements-grid {
    gap: 10px;
  }

  .author-requirements-right {
    gap: 10px;
  }
}

@media screen and (max-width: 640px) {
  .author-requirements-left,
  .author-offers,
  .author-join {
    padding: 25px 20px;
    border-radius: 15px;
  }

  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: clamp(18px, 5vw, 22px);
    margin-bottom: 15px;
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: clamp(14px, 3vw, 16px);
  }

  .author-requirements-item::before,
  .author-offers-item::before {
    font-size: 20px;
  }

  .author-requirements-list,
  .author-offers-list {
    gap: 12px;
  }

  .author-join-text {
    margin-bottom: 20px;
  }

  .author-join-button {
    font-size: clamp(22px, 4vw, 24px);
    padding: 14px 30px;
    border-radius: 12px;
  }

  .author-requirements-item::before {
    top: 0.5em;
  }

  .author-offers-item::before {
    top: 0.5em;
  }
}

@media screen and (max-width: 480px) {
  .author-requirements-left,
  .author-offers,
  .author-join {
    padding: 20px 15px;
  }

  .author-requirements-title,
  .author-offers-title,
  .author-join-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .author-requirements-item,
  .author-offers-item,
  .author-join-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .author-requirements-item::before,
  .author-offers-item::before {
    font-size: 18px;
  }

  .author-requirements-list,
  .author-offers-list {
    gap: 10px;
  }

  .author-join-text {
    margin-bottom: 15px;
  }

  .author-join-button {
    font-size: 16px;
    padding: 12px 25px;
  }
}

/* project worker section */
.project-worker-section {
  margin-top: 100px;
}

.project-worker-title,
.project-worker-title-mobile-changed {
  color: #0c6ed6;
  font-family: "Inter";
  font-weight: 900;
  font-size: 36px;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.project-worker-title-mobile-changed {
  display: none;
}

.project-worker-subtitle {
  font-family: "Inter";
  font-size: 32px;
  color: #183b59;
  font-weight: 800;
  padding-bottom: 30px;
}

.project-worker-subtitle-mobile,
.project-worker-subtitle-mobile-changed {
  display: none;
}

.project-worker-content {
  background-color: #0c6ed6;
  border-radius: 30px;
  padding: 0 10px 0 40px;
  position: relative;
  overflow: hidden;
}

.project-worker-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.project-worker-text {
  color: #ffffff;
}

.project-worker-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  padding-top: 40px;
  font-size: clamp(20px, 2.5vw, 32px);
  color: #ffffff;
}

.project-worker-illustration {
  padding-top: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.project-worker-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

@media screen and (max-width: 1492px) {
  .project-worker-wrapper {
    gap: 50px;
  }

  .project-worker-description {
    font-size: clamp(18px, 2.2vw, 28px);
  }
}

@media screen and (max-width: 1440px) {
  .project-worker-title,
  .project-worker-title-mobile-changed {
    margin-bottom: 30px;
  }

  .project-worker-section {
    margin-top: 60px;
  }
}

@media screen and (max-width: 1345px) {
  .project-worker-wrapper {
    gap: 40px;
  }

  .project-worker-description {
    font-size: clamp(18px, 2vw, 26px);
  }
}

@media screen and (max-width: 1024px) {
  .project-worker-content {
    border-radius: 25px;
  }

  .project-worker-section {
    margin-top: 50px;
  }

  .project-worker-title,
  .project-worker-title-mobile-changed {
    margin-bottom: 20px;
  }

  .project-worker-wrapper {
    gap: 25px;
  }

  .project-worker-description {
    font-size: clamp(16px, 2vw, 24px);
  }
}

@media screen and (max-width: 922px) {
  .project-worker-title,
  .project-worker-title-mobile-changed {
    font-size: clamp(18px, 5vw, 36px);
  }

  .project-worker-title-mobile-changed {
    display: block;
  }

  .project-worker-title,
  .team-cards-top-title {
    display: none;
  }

  .project-worker-content {
    padding-left: 30px;
    padding-right: 30px;
  }

  .project-worker-subtitle-mobile {
    display: block;
    padding-top: 20px;
    line-height: 1.2;
  }

  .project-worker-subtitle-mobile-changed {
    display: block;
    font-family: "Inter";
    font-size: 25px;
    color: #183b59;
    font-weight: 700;
    padding-bottom: 15px;
  }

  .project-worker-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-worker-text {
    order: 1;
  }

  .project-worker-illustration {
    order: 2;
  }

  .project-worker-description {
    font-size: clamp(12px, 4vw, 15px);
    font-weight: 400;
    padding-top: 10px;
    line-height: 1.4;
  }

  .project-worker-subtitle {
    display: none;
  }

  .project-worker-description br {
    display: none;
  }

  .project-worker-image {
    max-width: 80%;
  }
}

@media screen and (max-width: 640px) {
  .project-worker-content {
    padding-left: 0;
    padding-right: 0;
    border-radius: 20px;
  }

  .project-worker-subtitle-mobile-changed {
    font-size: 20px;
  }

  .project-worker-description {
    font-size: clamp(12px, 4vw, 16px);
    padding-left: 15px;
    padding-right: 15px;
  }

  .project-worker-subtitle-mobile {
    padding-top: 20px;
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    padding-left: 15px;
    padding-right: 15px;
  }

  .project-worker-image {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .project-worker-subtitle-mobile-changed {
    font-size: 16px;
  }

  .project-worker-subtitle-mobile {
    line-height: 1.3;
  }

  .project-worker-description {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.2;
  }

  .project-worker-image {
    max-width: 100%;
  }
}

/* Team cards section */
.team-cards-section {
  padding: 20px 0 60px 0;
  margin-top: 0;
}

.team-cards-top {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 30px 40px;
  margin-bottom: 20px;
}

.team-cards-top-title,
.team-cards-top-title-mobile-changed {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
  margin: 0 0 20px 0;
}

.team-cards-top-title-mobile-changed {
  display: none;
}

.team-cards-roles {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  column-count: 3;
  column-gap: 32px;
}

.team-cards-roles li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
  margin-bottom: 0;
  break-inside: avoid;
}

.team-cards-roles li + li {
  margin-top: 15px;
}

.team-cards-roles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #0c6ed6;
  border-radius: 1px;
  flex-shrink: 0;
}

.team-cards-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.team-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
}

.team-card-title {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #183b59;
  margin: 0 0 20px 0;
}

.team-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.team-card-list li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #183b59;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
  list-style: none;
}

.team-card-list-item-mobile-changed {
  display: none;
}

.team-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background-color: #0c6ed6;
  border-radius: 1px;
  flex-shrink: 0;
}

.team-card-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #183b59;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1;
}

.team-card-btn {
  display: inline-block;
  background-color: #0c6ed6;
  color: #fff;
  max-width: 465px;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 50px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  align-self: flex-start;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.team-card-btn:hover {
  background-color: #1a7ee8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
}

.team-card-btn:focus {
  outline: 3px solid rgba(12, 110, 214, 0.5);
  outline-offset: 2px;
}

@media screen and (max-width: 1400px) {
  .team-cards-top-title,
  .team-card-title {
    font-size: 28px;
  }

  .team-cards-roles li,
  .team-card-list li {
    font-size: 22px;
  }

  .team-card-text {
    font-size: 22px;
  }

  .team-card-btn {
    font-size: 28px;
    padding: 18px 45px;
  }
}

@media screen and (max-width: 1200px) {
  .team-card-btn {
    font-size: 26px;
    padding: 16px 40px;
  }

  .team-cards-section {
    padding: 15px 0 0 0;
  }

  .team-cards-top {
    margin-bottom: 15px;
  }

  .team-cards-bottom {
    gap: 15px;
  }
}

@media screen and (max-width: 1024px) {
  .team-cards-top,
  .team-card {
    padding: 35px;
  }

  .team-cards-top-title,
  .team-card-title {
    font-size: 26px;
  }

  .team-cards-roles li,
  .team-card-list li {
    font-size: 20px;
  }

  .team-card-text {
    font-size: 20px;
  }

  .team-cards-roles {
    column-gap: 28px;
  }
}

@media screen and (max-width: 922px) {
  .team-cards-top-title-mobile-changed {
    display: block;
  }

  .team-card-list-item-mobile-changed {
    display: block;
  }

  .team-card-list-item-mobile-hidden {
    display: none;
  }
}

@media screen and (max-width: 835px) {
  .team-cards-roles {
    column-count: 2;
  }

  .team-cards-bottom {
    grid-template-columns: 1fr;
  }

  .team-cards-top,
  .team-card {
    padding: 30px 25px;
  }

  .team-cards-top-title,
  .team-cards-top-title-mobile-changed,
  .team-card-title {
    font-size: 24px;
  }

  .team-cards-roles li,
  .team-card-list li {
    font-size: 18px;
  }

  .team-card-list {
    gap: 15px;
  }

  .team-card-text {
    font-size: 18px;
  }

  .team-card-btn {
    font-size: 24px;
    padding: 15px 35px;
  }
}

@media screen and (max-width: 668px) {
  .team-cards-section {
    padding: 10px 0 0 0;
  }

  .team-cards-top {
    margin-bottom: 10px;
  }

  .team-cards-bottom {
    gap: 10px;
  }
}

@media screen and (max-width: 640px) {
  .team-cards-section {
    padding: 40px 0 0 0;
  }

  .team-cards-top {
    padding: 25px 20px;
  }

  .team-cards-top-title,
  .team-cards-top-title-mobile-changed,
  .team-card-title {
    font-size: clamp(18px, 5vw, 22px);
  }

  /* .team-cards-roles {
    column-count: 1;
    column-gap: 0;
  } */

  .team-cards-roles li + li {
    margin-top: 12px;
  }

  .team-cards-roles li,
  .team-card-list li {
    font-size: clamp(14px, 3vw, 16px);
  }

  .team-cards-roles li::before,
  .team-card-list li::before {
    top: 0.7em;
  }

  .team-card {
    padding: 25px 20px;
  }

  .team-card-text {
    font-size: clamp(14px, 3vw, 16px);
  }

  .team-card-btn {
    font-size: clamp(22px, 4vw, 24px);
    padding: 14px 30px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    align-self: stretch;
  }
}

@media screen and (max-width: 480px) {
  .team-cards-top,
  .team-card {
    padding: 20px 15px;
  }

  .team-cards-top-title,
  .team-cards-top-title-mobile-changed,
  .team-card-title {
    font-size: 18px;
  }

  .team-cards-roles li,
  .team-card-list li {
    font-size: 14px;
  }

  .team-card-list {
    gap: 10px;
  }

  .team-card-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .team-cards-roles li::before,
  .team-card-list li::before {
    width: 6px;
    height: 6px;
  }

  .team-card-btn {
    font-size: 16px;
    padding: 12px 25px;
  }
}

@media screen and (max-width: 360px) {
  .team-cards-roles {
    column-count: 1;
    column-gap: 0;
  }
}

/* Author popup (same design as review popup on about-library) */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.popup.active {
  display: block;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.popup__content {
  position: relative;
  background: #fff;
  margin: 50px auto;
  padding: 0;
  border-radius: 30px;
  max-width: 700px;
  width: calc(100% - 40px);
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: authorPopupShow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes authorPopupShow {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup__header {
  position: relative;
  flex-shrink: 0;
  padding: 20px 40px 0;
  z-index: 2;
}

.popup__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 40px 40px;
  margin-bottom: 20px;
}

.popup__close {
  position: absolute;
  background-color: #fff;
  border: none;
  cursor: pointer;
  top: 20px;
  right: 20px;
  padding: 0;
  transition: transform 0.2s ease;
}

.popup__close:hover {
  transform: scale(1.2);
}

.popup__title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #183b59;
  margin: 0 0 20px 0;
  padding-top: 10px;
}

.popup__subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #183b59;
  margin: 0 0 25px 0;
  line-height: 1.4;
}

.popup__body::-webkit-scrollbar {
  width: 8px;
}

.popup__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.popup__body::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.popup__body::-webkit-scrollbar-thumb:hover {
  background: #b8b8b8;
}

/* Author popup form */
.popup--author .form-group {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.popup--author .form-input,
.popup--author .form-textarea {
  font-family: "Inter", sans-serif;
  padding: 18px 20px;
  border: 2px solid #0c6ed6;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  color: #183b59;
}

.popup--author .form-input {
  border-radius: 20px;
}

.popup--author .form-textarea {
  border-radius: 30px;
  resize: vertical;
  min-height: 150px;
  margin-bottom: 0;
}

.popup--author .form-input::placeholder,
.popup--author .form-textarea::placeholder {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #86bcfc;
}

.popup--author .form-input:focus,
.popup--author .form-textarea:focus {
  outline: none;
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.popup--author .checkbox-group {
  margin: 10px 0;
}

.popup--author .checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 13px;
}

.popup--author .checkbox-input {
  display: none;
}

.popup--author .checkbox-custom {
  width: 14px;
  height: 14px;
  border: 2px solid #183b59;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #f8faff;
  margin-top: 2px;
}

.popup--author .checkbox-input:checked + .checkbox-custom {
  border-color: #183b59;
}

.popup--author .checkbox-input:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #183b59;
  font-size: 14px;
  font-weight: bold;
}

.popup--author .checkbox-text,
.popup--author .agreement-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: #183b59;
}

.popup--author .agreement-text {
  margin-top: 30px;
}

.popup--author .checkbox-link,
.popup--author .agreement-link {
  color: inherit;
  text-decoration: underline;
}

.popup--author .author-submit-btn {
  color: #fff;
  background-color: #0c6ed6;
  border: none;
  padding: 17px 40px;
  border-radius: 20px;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  width: 100%;
  max-width: 420px;
  display: block;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.popup--author .author-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, #0c6ed6, #0a5bb8);
}

.popup--author .author-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.popup--author .author-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.popup--author .error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  display: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  padding-left: 5px;
}

.popup--author .error-message.show {
  display: block;
}

.popup--author .form-input.error,
.popup--author .form-textarea.error {
  border-color: #dc3545;
  background: #fff5f5;
}

.popup--author .checkbox-label.error .checkbox-custom {
  border-color: #dc3545;
  background: #fff5f5;
}

/* Apply popup (Откликнуться) — same form look as author */
.popup--apply .form-group {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.popup--apply .form-input,
.popup--apply .form-textarea {
  font-family: "Inter", sans-serif;
  padding: 18px 20px;
  border: 2px solid #0c6ed6;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  color: #183b59;
}

.popup--apply .form-input {
  border-radius: 20px;
}

.popup--apply .form-textarea {
  border-radius: 30px;
  resize: vertical;
  min-height: 150px;
  margin-bottom: 0;
}

.popup--apply .form-input::placeholder,
.popup--apply .form-textarea::placeholder {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #86bcfc;
}

.popup--apply .form-input:focus,
.popup--apply .form-textarea:focus {
  outline: none;
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.popup--apply .checkbox-group {
  margin: 10px 0;
}

.popup--apply .checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 13px;
}

.popup--apply .checkbox-input {
  display: none;
}

.popup--apply .checkbox-custom {
  width: 14px;
  height: 14px;
  border: 2px solid #183b59;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #f8faff;
  margin-top: 2px;
}

.popup--apply .checkbox-input:checked + .checkbox-custom {
  border-color: #183b59;
}

.popup--apply .checkbox-input:checked + .checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #183b59;
  font-size: 14px;
  font-weight: bold;
}

.popup--apply .checkbox-text,
.popup--apply .agreement-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: #183b59;
}

.popup--apply .agreement-text {
  margin-top: 30px;
}

.popup--apply .checkbox-link,
.popup--apply .agreement-link {
  color: inherit;
  text-decoration: underline;
}

.popup--apply .apply-submit-btn {
  color: #fff;
  background-color: #0c6ed6;
  border: none;
  padding: 17px 40px;
  border-radius: 20px;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  width: 100%;
  max-width: 420px;
  display: block;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}

.popup--apply .apply-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.28);
  background: linear-gradient(135deg, #0c6ed6, #0a5bb8);
}

.popup--apply .apply-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.popup--apply .error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 8px;
  display: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  padding-left: 5px;
}

.popup--apply .error-message.show {
  display: block;
}

.popup--apply .form-input.error,
.popup--apply .form-textarea.error {
  border-color: #dc3545;
  background: #fff5f5;
}

/* Интересующая должность — collapsible block */
.apply-position-block {
  border: 2px solid #0c6ed6;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.apply-position-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #86bcfc;
  text-align: left;
  transition:
    color 0.2s,
    background 0.2s;
}

.apply-position-toggle:hover {
  color: #183b59;
}

.apply-position-label {
  pointer-events: none;
}

.apply-position-chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.apply-position-block.is-open .apply-position-chevron {
  transform: rotate(-135deg);
}

.apply-position-body {
  display: none;
  padding: 0 20px 20px;
  background: #fff;
}

.apply-position-block.is-open .apply-position-body {
  display: block;
}

/* Десктоп: 3 колонки, заполнение по колонкам (кол.1: 1–5, кол.2: 6–10, кол.3: 11–15) */
.apply-position-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 12px 24px;
}

.apply-position-grid .checkbox-label {
  margin: 0;
  white-space: nowrap;
}

.apply-position-grid .checkbox-text {
  font-size: 12px;
  font-weight: 400;
}

@media screen and (max-width: 640px) {
  .popup__content {
    width: calc(100% - 24px);
    margin: 20px auto;
    border-radius: 20px;
  }

  .popup__header {
    padding: 16px 20px 0;
  }

  .popup__body {
    padding: 0 20px 24px;
  }

  .popup__close {
    top: 16px;
    right: 16px;
  }

  .popup__title {
    font-size: 24px;
  }

  .popup__subtitle {
    font-size: 14px;
  }

  .popup--author .author-submit-btn {
    font-size: 22px;
    padding: 14px 24px;
  }

  .popup--apply .apply-submit-btn {
    font-size: 22px;
    padding: 14px 24px;
  }

  /* Моб: 2 колонки, заполнение по колонкам (кол.1: 1–8, кол.2: 9–15) */
  .apply-position-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, auto);
    grid-auto-flow: column;
    gap: 10px 16px;
  }

  .apply-position-grid .checkbox-label {
    white-space: normal;
  }

  .apply-position-grid .checkbox-text {
    font-size: 12px;
  }

  .apply-position-toggle {
    padding: 14px 16px;
    font-size: 15px;
  }

  .apply-position-body {
    padding: 12px 16px 16px;
  }
}

@media screen and (max-width: 380px) {
  .apply-position-grid {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    grid-auto-flow: row;
  }
}

/* success notification (Стать автором / Откликнуться) */
.notification {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.notification.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification__content {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  animation: notificationShow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes notificationShow {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.notification__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.notification__title {
  margin: 0 0 15px 0;
  color: #183b59;
  font-size: 24px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

.notification__text {
  margin: 0 0 30px 0;
  color: #666;
  line-height: 1.6;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.notification__close {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  min-width: 120px;
}

.notification__close:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
