* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  padding-top: 0;
  margin-bottom: 20px;
}
h1 {
  color: #d19c97;
}

h2 {
  color: #a47764;
}
h4 {
  color: #d19c97;
  font-size: xxx-large;
}

.header {
  min-height: 100vh;
  background: url("images/bg-main2.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  padding-top: 40px;
  padding-left: 300px;
  margin: 0;
}
header h2 {
  color: #fff;
}
.logo {
  background: url("svg/avonlogo.svg") no-repeat center;
  width: 190px;
  height: 46px;
  margin-bottom: 150px;
}
.title {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.avon {
  letter-spacing: 0.1em;
}

.text-header-top {
  width: 30%;
  padding-bottom: 50px;
}

.text-header {
  width: 40%;
  padding-bottom: 50px;
  padding-top: 70px;
}
.pryvit {
  font-size: 3em;
  font-weight: bold;
}
.button1 {
  display: flex;
}
.avon-button {
  color: #fff;
  font-family: "Inter", sans-serif;
  padding: 22px 50px 20px 50px;
  background: #d19c97;
  font-size: 17px;
  text-decoration: none;
  border-radius: 50px;
  outline: none;
  border: none; 
  margin-bottom: 100px;
}
.avon-button:hover {
  background-color: #a793b9;
}
.avon-button:active {
  color: #8c645c;
}

.title-forma {
  color: #fff;
  margin-bottom: 24px;
}
.text-forma {
  color: #fff;
  margin-bottom: 36px;
}
.data-forma {
  color: #fff;
  margin-bottom: 12px;
}
.radio-group {
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center; 
  gap: 20px; 
  align-items: 
}
input[type="radio"] {
  cursor: pointer;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  display: none; 
  justify-content: center;
  align-items: center;
}

.modal {
  background-color: rgba(
    202,
    128,
    180,
    0.95
  ); 
  padding: 20px;
  width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
  padding: 20px;
  width: 400px;
  border-radius: 12px;
  position: relative;
  text-align: center;
}
.fieldset {
  border-radius: 0 0 12px 12px; 
}
.fieldset2 {
  margin-bottom: 20px;
}
input,
textarea,
select {
  color: #000;
  font-size: 1.2em;
  width: 100%; 
  height: 2em; 
  padding: 10px;
  margin-bottom: 10px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none; 
  border: 3px solid #a793b9; 
  box-shadow: 0 0 5px rgba(164, 119, 100, 0.8); 
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Кнопка закрытия */
.modal-btn-close {
  color: #c9b1c2;
  position: absolute;
  top: 20px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.avon-button2 {
  color: #fff;
  font-family: "Inter", sans-serif;
  padding: 22px 50px 20px 50px;
  background: #cc54a8;
  font-size: 17px;
  text-decoration: none;
  border-radius: 50px;
  outline: none; 
  border: none; 
  margin-bottom: 10px;
}
.avon-button2:hover {
  background-color: #a793b9;
}
.avon-button2:active {
  color: #8c645c;
}

.link1 {
  color: #fff;
  padding-left: 5px;
}
.link1:hover {
  color: #fdd;
}
.thankyou {
  color: #fff;
  font-size: large;
  padding-bottom: 24px;
}
.advantages {
  display: flex; 
  gap: 20px; 
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center; 
}
.adv-item {
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.ring1 {
  width: 50px; 
  height: 50px;
  background-color: #a793b9; 
  color: #fff; 
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; 
}
.ring2 {
  width: 50px; 
  height: 50px;
  background-color: #ca80b4;
  color: #fff; 
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; 
}
.ring3 {
  width: 50px; 
  height: 50px;
  background-color: #e4c7b9; 
  color: #fff; 
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%; 
}

main {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  min-height: 100vh; 
  
} 

.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center; 
  font-family: "Inter", sans-serif;
  border: 0px solid #ca80b4; 
  padding: 20px;

  width: 100%;
  background-color: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); 
}

main h2 {
  padding-top: 24px;
  text-align: center; 
}

.text-container {
  max-width: 600px; 
  font-size: 18px;
  line-height: 1.5;
  border: 1px solid #d19c97; 
  padding: 15px;
  margin-bottom: 20px; 
  border-radius: 10px; 
  width: 100%; 
}

.text-container h3 {
  text-align: center; 
}

.text-container p {
  text-align: left; 
}

.fullText {
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  max-height: 0;
}

.fullText.visible {
  max-height: 700px;
}

.toggleButton {
  background-color: #ca80b4;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 15px;
  margin-top: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  outline: none;
  display: block;
  margin-left: auto;
  margin-right: auto; 
}

.toggleButton:hover {
  background-color: #a793b9;
}


.flex-container + section {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

footer {
  background-color: #a793b9;
  color: #fff;
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.logo2 {
  background: url("svg/avonlogo.svg") no-repeat center;
  width: 190px;
  height: 46px;
  margin-bottom: 10px; 
}

.section-end {
  width: 100%;
  margin-left: 0px;
  margin-right: 0px;
}
.li {
  background-color: #b57863;
  
 }
ul {
  list-style: none;
  color: #fff;
  text-align: center;
  padding-top: 30px;
  padding-right: 30px;
  padding-bottom: 20px;
  padding-left: 30px;
  font-size: 22px;
  font-weight: bolder;
  line-height: 1.8;
  margin-bottom: 20px;
 }

.avon-button-list {
  color: #fff;
  font-family: "Inter", sans-serif;
  padding: 22px 50px 20px 50px;
  background: #d19c97;
  font-size: 17px;
  text-decoration: none;
  border-radius: 50px;
  outline: none; 
  border: none; 
  /*margin-bottom: 50px;*/
  display: block; 
  margin: 20px auto 50px auto; 
}
.avon-button-list:hover {
  background-color: #a793b9;
}
.avon-button-list:active {
  color: #8c645c;
}

@media (max-width: 768px) {
  .header {
    font-size: 17px;
    text-align: center;
    padding-top: 20px;
    padding-left: 0;
    background: url("images/bg-main2.jpg") no-repeat center center;
    background-size: cover; /* Гарантирует, что фон растягивается */
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
  }
  
  .advantages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-bottom: 40px;
  }

  .text-header-top {
    width: 100%;
    padding-bottom: 148px;
    padding-top: 20px;
  }

  .text-header {
    width: 100%;
  }

  .button1 {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    margin: 0 auto 0px auto; 
  }
  .logo {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    margin: 0 auto 124px auto; 
      
  }
  .flex-container{
    box-shadow: none;
  }
 
   .li {
    border-radius: 50px;
  }
}
