/* ========== ОБЩИЕ СТИЛИ ========== */
.first_employer {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.first-container_employer {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* height: 100% removed — вызывало наезд второй секции на первую */
}

/* ========== ШАПКА (HEADER) ========== */
.header_inner {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 8px 20px;
  backdrop-filter: blur(2px);
  justify-content: space-between;
}

/* ========== ПЕРВЫЙ БЛОК (FIRST) ========== */
.first-inner_employer {
  background-image: url('../images/main_imgs/fon_1.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* Fixed px margins replaced with clamp: min 16px, grows with viewport, max 80px */
  margin: 0 80px 20px;
  /* padding: clamp(24px, 4vw, 40px) 0 0; */
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(320px, 45vw, 500px);
  background-color: #f9f9f9;
  border-radius: 40px;
  flex: 1;
  align-items: center;
  background-position: calc(50% - -10px) center;
  position: relative;
  z-index: 1;
}

.item-content {
  background: transparent;
  padding: 0;
  margin: 60px 0 0 0;
}

.first-inner_employer .first-item:first-child p {
  /* 18px minimum, scales up to 24px */
  font-size: 20px;
  /* margin: clamp(24px, 4vw, 45px) 0 0; */
  line-height: 1.5;
  max-width: 100%;
}

.fist_title-mobile,
.fist_text-mobile {
  display: none;
}

.cards-wrapper {
  margin-top: 0;
  background: transparent;
}

.item-wrapper {
  display: grid;
  gap: 20px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  padding: 0 clamp(30px, 5vw, 80px);
  margin: 0;
}

/* .item-wrapper .item-content:first-child {
  flex: 0 0 60%;
  max-width: 60%;
} */

/* .item-wrapper .item-content:last-child {
  flex: 0 0 40%;
  max-width: 40%;
} */

.item-wrapper .item-content:first-child h2 {
  /* 28px on small screens, up to 54px on large */
  font-size: clamp(28px, 4.2vw, 48px);
  margin: 0 0 clamp(14px, 2vw, 25px);
  line-height: 1.2;
  font-weight: bold;
}

.item-wrapper .item-content:last-child {
  text-align: right;
}

.item-wrapper .item-content:last-child img {
  width: 75%;
  height: auto;
  display: inline-block;
  object-fit: contain;
  border-radius: 10px;
}

.item-content:hover {
  transform: none;
  box-shadow: none;
}

.first-item a {
  text-decoration: none;
}

/* ========== СТАТИСТИКА (STATS) ========== */
.stats-container {
  display: flex;
  color: black;
  /* Same margin pattern as the blocks */
  padding: 0 clamp(16px, 6vw, 80px);
  margin: 0 0 5px 0;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  flex-wrap: wrap;
  gap: 20px;
}

.stats-list {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats-list li {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 15px);
}

.stats-list li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #0088cc;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-list li span {
  font-weight: bold;
}

.stats-container > div:last-child a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}

.stats-container > div:last-child a:hover {
  opacity: 0.7;
}

/* ========== КНОПКИ (BUTTONS) ========== */
.newdiz-account {
  display: inline-flex;
  /* 
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  background-color: #0088cc;
  color: #fff;
  text-decoration: none;
  padding: clamp(9px, 0.9vw, 12px) clamp(14px, 1.8vw, 24px);
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: clamp(14px, 1.2vw, 16px); */
}

.newdiz-account:hover {
  background-color: #0077b3;
  transform: translateY(-2px);
}

.login-arrow {
  transition: transform 0.3s ease;
}

.newdiz-account:hover .login-arrow {
  transform: translateX(5px);
}

/* ========== ВТОРОЙ / ТРЕТИЙ / ЧЕТВЁРТЫЙ БЛОК — общие отступы ========== */
.second_employer,
.third_employer {
  color: #000;
  margin: clamp(24px, 3vw, 48px) clamp(16px, 6vw, 80px);
}

.fourth_employer {
  color: #000;
  /* The key fix: clamp keeps margins proportional on wide screens */
  margin: clamp(10px, 1.2vw, 15px) 80px;
}

.second_employer h2,
.third_employer h2,
.fourth_employer h2 {
  font-size: clamp(24px, 3vw, 40px);
  text-align: center;
  margin: 0 0 clamp(10px, 1.2vw, 15px);
}

/* ========== ВТОРОЙ БЛОК (SECOND) ========== */
.second-inner_employer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 25px);
}

.benefit-card {
  display: flex;
  background-color: #f9f9f9;
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 10px;
  gap: clamp(12px, 1.5vw, 20px);
  align-items: center;
}

.benefit-card p {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.benefit-card img {
  width: clamp(72px, 9vw, 120px);
  height: auto;
  flex-shrink: 0;
}

/* ========== ТРЕТИЙ БЛОК (THIRD) ========== */
.third-inner_employer {
  /*display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);*/
  margin: 0 -10px;
}

.third_benefit-card {
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  padding: clamp(12px, 1.5vw, 20px);
  border-radius: 10px;
  gap: clamp(12px, 1.5vw, 20px);
  align-items: center;
  margin: 0 10px;
  height: auto;
}

.third_benefit-card img {
  width: 100%;
  height: auto;
  display: block;
}

.third_benefit-card h3 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: bold;
  margin: 0;
  text-align: center;
}

.third_benefit-card > div p {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
  margin: 0;
}

.benefit-feature {
  display: flex;
  gap: clamp(10px, 1.5vw, 20px);
  align-items: center;
  align-self: baseline;
}

.benefit-feature svg {
  width: clamp(28px, 3vw, 40px);
  height: auto;
  flex-shrink: 0;
}

.benefit-feature p {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.third-inner_employer .slick-track {
  display: flex;
}

.third-inner_employer .item__wrapper-dots {
	display: flex;
	justify-content: center;
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
}

.third-inner_employer .item__wrapper-dots li {
	margin: 0 5px;
  list-style: none;
}

.third-inner_employer .item__wrapper-dots li.slick-active button {
	background: #0088cc;
}

.third-inner_employer .item__wrapper-dots button {
	font-size: 0;
	width: 15px;
	height: 15px;
	background: transparent;
	border: none;
	cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 10px;
}

.third-inner_employer .item__wrapper-dots button:hover {
	background: #0088cc;
}

/* ========== ЧЕТВЕРТЫЙ БЛОК (FOURTH) ========== */
.fourth-inner_employer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(12px, 1.5vw, 20px);
}

.fourth_benefit-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: clamp(12px, 1.5vw, 20px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.fourth_benefit-card .image-wrapper {
  max-width: clamp(60px, 7vw, 100px);
  margin-bottom: clamp(10px, 1.2vw, 15px);
}

.fourth_benefit-card img {
  width: 100%;
  height: auto;
  display: block;
}

.fourth_benefit-card h3 {
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: bold;
  margin: clamp(10px, 1.2vw, 15px) 0 clamp(6px, 0.8vw, 10px);
  color: #000;
}

.fourth_benefit-card p {
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.5;
  margin: 0;
  color: #555;
}

/* ========== ПЯТЫЙ БЛОК (FIFTH) ========== */
.fifth_employer {
  color: #000;
  margin: clamp(28px, 4vw, 50px) clamp(16px, 6vw, 80px);
}

.fifth-container_employer p {
  font-size: clamp(11px, 0.9vw, 12px);
}

.item-content .fist_title {
  text-align: left;
}

.cards-wrapper .item-content:first-child > div {
  justify-content: left;
}


/* ---------- Адаптив ---------- */
@media (max-width: 1600px) {
  .item-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1500px) {
  .item-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1400px) {
  .item-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1300px) {
  .item-wrapper .item-content:first-child h2 {
    font-size: clamp(28px, 4vw, 42px);
  }
}

@media (max-width: 1200px) {
  .header_inner {
    gap: 10px;
    padding: 8px;
  }

  .stats-list {  
    gap: 5px;
    padding: 0 12px;
  }

  .first_employer {
    height: auto;
    overflow: unset;
  }

  .item-wrapper {
    display: flex;
    flex-direction: column-reverse;
  }

  .item-wrapper .item-content:last-child img {
    max-width: 600px;
  }

  .fist_text,
  .fist_title {
    display: none;
  }

  .fist_title-mobile {
    display: block;
    font-size: clamp(26px, 3.5vw, 40px);
    text-align: center;
    line-height: 1.3;
    padding: 20px 0 0;
  }

  .item-content p.fist_text-mobile {
    display: block;
    font-size: 20px;
    text-align: center;
    line-height: 1.3;
  }
}

@media (max-width: 1100px) {
  .stats-container {
    padding: 0 15px;
    margin: 20px 0;
  }

  .stats-list {
    padding: 0 0 0 5px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .first-inner_employer {
    margin: 20px 0;
    padding: 0 15px;
  }

  .second_employer,
  .third_employer,
  .fourth_employer {
    margin: 0 15px;
  }
}

@media (max-width: 1000px) {
  .third-inner_employer {
    padding: 0 0 60px;
    margin: 0 0 20px;
  }
}

@media (max-width: 800px) {
  .third-inner_employer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .fourth-inner_employer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .second-inner_employer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .header_inner {
    gap: 5px;
    padding: 5px;
  }

  .benefit-card {
    flex-direction: column-reverse;
  }

  .first-inner_employer {
    display: inline-block;
  }

  .first-item a {
    font-size: 14px;
  }

  .fist_title-mobile {
    font-size: 24px;
  }

  .second_employer h2,
  .third_employer h2,
  .fourth_employer h2 {
    font-size: clamp(20px, 3vw, 40px);
  }
}
 

