.index_image_width {width: 240px;}
.avanstroy_image_width {width: 284px;}
.avanbox_image_width {width: 270px;}
.avanprom_image_width {width: 283px;}
.bright_blue_back {background-color: #0372FF;}
.almost_black_back {background-color: #021F3F;}
.green_back {background-color: #06FF89;}
.red_back {background-color: #F84517;}
.bright_blue_color {color: #0372FF;}
.almost_black_color {color: #021F3F;}
.white_color {color: white;}
.red_color {color: #F84517;}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Wix Madefor Display", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  position: relative;
  background-image: url('../img/pattern.png'); 
  background-repeat: no-repeat;            
  background-position: right bottom;       
  background-attachment: scroll;            
  background-size: 1000px; 
  background-color: #F8F9FB;
}

.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
}

.header {
  padding: 20px 0;
  position: relative;
}

.header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
}

.header-logo {
  flex-shrink: 0;
  z-index: 10;
  transition: z-index 0.3s ease;
}

.header-logo img {
  width: 240px;
  height: auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 40px;
  height: 40px;
  z-index: 1001;
}

.menu-toggle img {
  width: 100%;
  height: auto;
}

.nav-wrapper {
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-item {
  color: #021F3F;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.2s linear;
}

.nav-item:hover {
  color: #0372FF;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.page-avanprom .nav-item:hover {
  color: #F84517; 
}

.page-avanbox .nav-item:hover {
  color: #021F3F; 
}

.page-avanstroy .nav-item:hover {
  color: #0372FF; 
}

.nav-btn {
  font-size: 16px;
  font-weight: 500;
  border: none;
  width: 170px;
  height: 55px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-family: "Wix Madefor Display", sans-serif;
  flex-shrink: 0;
}

.nav-btn:hover {
  transform: scale(1.05);
}

.motto {
  margin-top: -250px;
  padding: 120px 0 60px 0;
}

.motto-img {
  width: 60px;
  height: auto;
  margin-bottom: 20px;
}

.motto-text {
  color: #021F3F;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
}

.threads {
  margin-top: -190px;
  padding: 60px 0;
  cursor: pointer;
}

.container-threads {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; 
  margin: 0 auto; 
  margin-bottom: 70px;
}

.threads-btn {
  padding: 30px;
  position: relative;
  box-sizing: border-box;
  height: 450px;
  width: 100%;
  max-width: 420px;
  border-radius: 30px;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.threads-btn:hover {
  transform: scale(1.02);
}

.threads-btn-logo {
  width: 80px;
  margin-bottom: 25px;
}

.threads-btn-logo img {
  width: 100%;
  height: auto;
}

.threads-btn-name {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
}

.threads-btn-text {
  font-size: 16px;
  font-weight: 500;
  margin-top: auto;
  padding-bottom: 15px;
}

.threads-btn-arrow {
  background: none;
  border: none;
  padding: 0;
  width: 48px;
  height: 48px;
  position: absolute;
  top: 30px;
  right: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.threads-btn-arrow img {
  width: 100%;
  height: auto;
}

.threads-btn-arrow:hover {
  transform: scale(1.05);
}

.application {
  padding: 100px 0 60px 0;
  background-color: #F8F9FB; 
  border-radius: 30px 30px 0 0;
  margin-top: -130px; 
  position: relative;
  z-index: 2; 
}

.application-text {
  font-size: 64px; 
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
}

.input-item::placeholder {
  color: #021F3F; 
  opacity: 0.3;
}

.input-group {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.input-item {
  width: calc(50% - 35px); 
  border: none;
  border-bottom: 1px solid #021F3F;
  font-family: "Wix Madefor Display", sans-serif;
  outline: none;
  max-width: 645px;
  font-size: 32px;
  padding-top: 45px;
  padding-bottom: 17px;
  font-weight: 500;
  background: transparent;
  box-sizing: border-box;
}

.application-btns {
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  gap: 45px;
  margin-top: 55px;
}

.application-btn_file {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #021F3F;
  opacity: 0.3;
  background-color: transparent;
  font-size: 32px;
  font-weight: 500;
  border: 2px solid #021F3F;
  width: 370px;
  height: 72px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-family: "Wix Madefor Display", sans-serif;
  flex-shrink: 0;
  position: relative;
}

.file-uppload-img {
  width: 35px;
  margin-right: 10px;
}

.application-btn_file:hover {
  transform: scale(1.05);
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.application-btn_text {
  display: flex;
  flex-direction: row; 
  align-items: center;
  gap: 30px;
}

.application-btn {
  font-size: 32px;
  font-weight: 500;
  border: none;
  width: 227px;
  height: 83px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease;
  font-family: "Wix Madefor Display", sans-serif;
  flex-shrink: 0;
}

.application-btn:hover {
  transform: scale(1.05);
}

.application-btn-text {
  max-width: 500px;
  font-size: 18px;
  color: #021F3F;
  opacity: 0.3;
  font-family: "Wix Madefor Display", sans-serif;
}

.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.file-name {
  margin-top: 10px;
  font-size: 18px;
  color: #021F3F;
  opacity: 0.3;
  font-family: "Wix Madefor Display", sans-serif;
}

.contacts {
  padding: 160px 0 60px 0;
}

.contacts .contacts-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end; 
}


.contacts-left {
  max-width: 300px;
  display: flex;
  flex-direction: column;
}

.contacts-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto; 
}

.contacts-text1 {
  color: #021F3F;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
  margin-bottom: 30px;
}

.contacts-text2 {
  color: #021F3F;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  width: 250px;
  margin-bottom: 40px;
}

.contacts-text3 {
  color: #021F3F;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.3;
  width: 250px;
}

.contacts-text4 {
  color: #021F3F;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
  text-align: right;
  margin-bottom: 20px;
}

.intro-wrapper {
  margin-top: 60px;
  margin-bottom: 100px;
}

.intro-wrapper .container {
  display: flex;          
  align-items: center;     
  gap: 10px;               
  margin: 0 auto;          
}

.intro {
  flex: 1;
  display: flex;
  align-items: stretch; 
  min-height: 534px;    
  border-radius: 30px;
  padding: 40px;
}

.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  flex: 1;                        
}

.intro-img {
  width: 60px;
  height: auto;
  margin-bottom: 20px;
}

.intro-text {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
}

.intro-image {
  width: 497px;
  height: auto;
  border-radius: 30px;
}

.products {
  padding: 120px 0;
}

.products-title {
  font-size: 64px;
  font-weight: 500;
  color: #021F3F;
  margin-bottom: 90px;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.product-item {
  flex: 1 1 calc(50% - 50px);
  max-width: calc(50% - 50px);
  margin-bottom: 20px;
}

.product-item h3 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
}

.product-item p {
  font-size: 18px;
  font-weight: 500;
  color: #021F3F;
  line-height: 1.5;
}

.features {
  margin-top: 100px;
  margin-bottom: 100px;
  padding-top: 100px;
  padding-bottom: 200px;
  border-radius: 30px 30px 0 0; /* скругленные верхние углы */
}

.features-title {
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 90px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.feature-item {
  flex: 1 1 calc(50% - 40px);
  max-width: calc(50% - 40px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-icon {
  width: 120px;
  height: auto;
}

.feature-item h3 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 18px;
  line-height: 1.5;
}

.custom-select-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  position: relative;
  width: calc(50% - 35px);
  max-width: 645px;
  font-family: "Wix Madefor Display", sans-serif;
  font-size: 37px;
  font-weight: 500;
  padding-top: 45px;
  padding-bottom: 17px;
  box-sizing: border-box;
}

.custom-select-display {
  flex: 1;
  font-size: inherit;
  font-weight: inherit;
  color: rgba(2, 31, 63, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.custom-select-display.selected {
  color: #021F3F;
}

.custom-select-arrow {
  width: 24px;
  flex-shrink: 0;
  transition: transform 0.25s ease; 
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background-color: #021F3F;
}

.native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
}

.custom-select-wrapper {
  padding: 45px 40px 17px 0;
  height: auto;
}