/* first-section.css */
/* Основные стили секции */
/* Исправленные стили */
.first {
  min-height: 100vh;
  height: 100vh; /* Для десктопа */
  overflow: hidden;
  position: relative;
}

.first-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.first-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0 80px 20px;
  background-image: url('../images/main_imgs/banner_new.webp');
  background-repeat: no-repeat;
  background-size: cover;
  /* background-position: calc(50% - -10px) center; */
  position: relative;
  z-index: 1;
  border-radius: 40px;
}

#emailInput {
  outline: none;
  border: 1px solid #000;
}

#emailInput:focus {
  border: 1px solid #0088cc; /* или любой другой цвет */
  outline: none;
}

.first-inner {
  width: 50%;
  margin: 0 10px 0 auto;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.legal-text {
  font-size: 15px;
}

.first-item .full_search {
  text-align: right;
}

.first-inner p {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: left;
}

/* Первый блок (заголовок) */
.first-inner > .first-item:first-child {
  margin: clamp(20px, 2px, 28px) 0;
}

.first-inner > .first-item:first-child p {
  font-size: clamp(42px, 4px, 48px);
  font-weight: 600;
  margin-bottom: 0;
}

/* Контейнер поиска */
.search-container {
  display: flex;
  align-items: stretch;
  padding: 0 20px 0 0;
}

.search-input {
  display: flex;
  flex: 0.8;
}

.search-input input {
  border: 1px solid #000 !important;
  border-radius: 10px 0 0 10px;
  border-right: none !important;
  padding: 0 0 0 15px;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 16px;
  background-color: transparent;
  color: rgb(0, 0, 0);
}

.search-container p {
  border: 1px solid #000;
  border-radius: 10px 0 0 10px;
  border-right: none;
  padding: 0 0 0 15px;
  margin: 0;
  display: flex;
  align-items: center;
  flex: 0.8;
  font-size: 16px;
  background-color: transparent;
  color: rgb(0, 0, 0);
}

.search-container button {
  padding: 10px 30px;
  background-color: #0088cc;
  color: #fff;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.search-container button:hover {
  background-color: #0088cc;
}

/* Ссылка расширенного поиска */
.first-inner > .first-item:last-child > p:last-child {
  text-align: right;
  width: 94%;
}

.first-item a {
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 17px;
}

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

/* Карточки */
.cards-wrapper {
  padding: 15px 0 25px;
  background: var(--white-transparent);
  border-radius: 10px;
  margin-top: clamp(40px, 4px, 52px);
  /* margin: clamp(20px, 2px, 28px) 0; */
}

.cards-wrapper h2 {
  color: black;
  /* margin-bottom: 15px; */
  font-size: 20px;
}

.cards-wrapper > p {
  color: black;
  margin-bottom: 20px;
  font-size: 16px;
}

.item-wrapper {
  /*display: flex;
  gap: 10px;*/
  margin-top: 30px;
}

.item-content {
  background-image: url('../images/main_imgs/fon_1.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}

.item-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-content h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: black;
  line-height: 1.2;
  text-align: center;
}

.item-content p {
  text-align: left;
  color: black;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  font-weight: 400;
}

.legal-text a {
  color: #0088cc;
  text-decoration: none;
}

.img_wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}

.img_wrapper img {
  width: 120px;
}

.first__img-mobile img {
  max-width: 100%;
  width: 100%;
  display: block;
  border-radius: 40px;
}

.item__wrapper-slider {
  padding: 0 0 60px;
}

.item__wrapper-slider .slick-track {
  display: flex;
}

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

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

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

.item__wrapper-slider .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;
}

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


/* Адаптивность для маленьких экранов */
@media (max-width: 1300px) {
  .first-inner > .first-item:first-child p {
    font-size: clamp(40px, 4px, 48px);
    line-height: 1.3;
  }
}

@media (max-width: 1200px) {
  .first-wrapper {    
    margin: 0 15px 20px;
  }

  .first-inner > .first-item:first-child p {
    font-size: clamp(35px, 4px, 48px);
    line-height: 1.2;
  }
}

@media (max-width: 1100px) {
  .first-inner {
    width: 55%;
  }
}

@media (max-width: 1000px) {
  .first {
    min-height: auto;
    height: auto;
    overflow: unset;
  }
  
  .header {
    margin: 0;
  }

  .first-wrapper {
    display: block;
    background: none;
    margin: 0 15px;
  }

  .first-inner > .first-item:first-child p {
    font-size: 32px;
    text-align: center;
  }

  .first-inner {
    width: 100%;
    padding: 0 0 20px;
    margin: 0;
  }

  .first__img-mobile {
    display: block;
    margin: 0 0 30px;
  }

  .search-container {
    justify-content: center;
    padding: 0;
  }

  .legal-text {
    text-align: center;
    line-height: 1;
  }

  .legal-text br {
    display: none;
  }

  .cards-wrapper {
    padding: 15px 0 0;
    margin-top: clamp(20px, 4px, 52px);
  }
}

@media (max-width: 900px) {
  
}

@media (max-width: 800px) {
  
}

@media (max-width: 700px) {
  .search-input {
    flex: 0.9;
  }
}

@media (max-width: 600px) {
  .first-inner > .first-item:first-child {
    margin: 15px 0;
  }

  .first-inner > .first-item:first-child p {
    font-size: 28px;
  }
}

@media (max-width: 500px) {
  .first-inner > .first-item:first-child p {
    font-size: 25px;
  }

  .cards-wrapper {
    padding: 5px 0 0;
    margin-top: clamp(15px, 4px, 52px);
  }

  .first__img-mobile img {
    border-radius: 10px;
  }

  .search-input {
    flex: 1;
  }

  .search-input input {
    font-size: 12px;
    padding: 0 0 0 10px;
  }

  .search-container button {
    font-size: 12px;
    padding: 10px;
  }

  .legal-text {
    text-align: left;
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .first-inner > .first-item:first-child p {
    font-size: 22px;
  }
}
