/*--------------------------------------------------------------
>>> FONTS
--------------------------------------------------------------*/
@font-face {
  font-family: 'Cygre-Book';
  src: url('fonts/Cygre-Book.woff2') format('woff2'),
       url('fonts/Cygre-Book.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cygre-Light';
  src: url('fonts/Cygre-Light.woff2') format('woff2'),
       url('fonts/Cygre-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Cygre-Medium';
  src: url('fonts/Cygre-Medium.woff2') format('woff2'),
       url('fonts/Cygre-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Cygre-SemiBoldIt';
  src: url('fonts/Cygre-SemiBoldIt.woff2') format('woff2'),
       url('fonts/Cygre-SemiBoldIt.woff') format('woff');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Cygre-Bold';
  src: url('fonts/Cygre-Bold.woff2') format('woff2'),
       url('fonts/Cygre-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}
/*--------------------------------------------------------------
>>> BASE STYLES (Mobile-first)
--------------------------------------------------------------*/
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Cygre-Book', sans-serif;
  background: url('background/background.webp') no-repeat center center fixed;
  background-size: cover;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* LEFT SECTION */
.left {
  width: 100%;
}
.left-wrapper {
  padding: 24px;
}
.headline {
  color: white;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.highlight {
  font-family: 'Cygre-SemiBold', sans-serif;
  color: #73CAFC;
}
.subheadline {
  font-family: 'Cygre-Light', sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: white;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.advantage {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.advantage-number {
  padding-left: 20px;
  
  font-family: 'Cygre-Bold', sans-serif;
  font-size: 90px;
  color: transparent;
  -webkit-text-stroke: 1px #7F7F7F;
          text-stroke: 1px #7F7F7F;
  opacity: 0.5;
}
.advantage-content {
  margin-left: -40px;
}
.advantage-title {
  margin-bottom: 12px;
  font-family: 'Cygre-Medium', sans-serif;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.15px;
  color: #73CAFC;
}
.advantage-description {
  font-family: 'Cygre-Book', sans-serif;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 0.15px;
  color: white;
}

/* Buy Button */
.buy-button {
  display: block;
  width: 90%;
  max-width: 345px;
  height: 45px;
  margin: 32px auto;
  background-color: #1B6793;
  border-radius: 16px;
  font-family: 'Cygre-SemiBold', sans-serif;
  font-size: 12px;
  color: white;
  text-align: center;
  line-height: 22px;
  text-decoration: none;
}

/* RIGHT SECTION */
.right {
  width: 100%;
}
.right-wrapper {
  padding: 24px;
}

.contact-wrapper {
  width: 100%;
  max-width: 382px;
  aspect-ratio: 382 / 790;
  margin: 0 auto;
  background: url('background/iphone.webp') no-repeat center center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  box-sizing: border-box;

  min-height: 700px;
  padding-bottom: 80px;
}

.contact-title {
  font-family: 'Cygre-Medium', sans-serif;
  font-size: 24px;
  text-align: center;
  color: white;
  margin-bottom: 12px;
}
.contact-subtitle {
  font-family: 'Cygre-Book', sans-serif;
  font-size: 14px;
  text-align: center;
  line-height: 18px;
  color: white;
  margin-bottom: 24px;
}

.contact-form {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.contact-input {
  width: 100%;
  max-width: 300px;
  height: 44px;
  border-radius: 16px;
  border: none;
  background-color: rgba(192, 192, 192, 0.5);
  font-family: 'Cygre-Book', sans-serif;
  font-size: 16px;
  color: white;
  padding: 0 16px;
  box-sizing: border-box;
}
.contact-input.message {
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url('icon/message.webp');
  background-repeat: no-repeat;
  background-position: 12px 12px;
  background-size: 20px 20px;
  padding-left: 44px;
  padding-top: 16px;
  line-height: 16px;
  height: 180px;
}
.contact-input.date {
  height: 44px;
  line-height: 22px;
  text-align: center;
  white-space: pre-line;
}
.contact-input::placeholder {
  color: white;
  opacity: 0.7;
}

.send-button {
  width: 200px;
  height: 55px;
  background-color: #1B6793;
  border: none;
  border-radius: 16px;
  font-family: 'Cygre-SemiBold', sans-serif;
  font-size: 16px;
  color: white;
  cursor: pointer;
  text-align: center;
}

/*--------------------------------------------------------------
>>> ADAPTIVE BREAKPOINTS
--------------------------------------------------------------*/
@media (min-width: 481px) {
  .advantages {
    grid-template-columns: 1fr 1fr;
  }
  .headline {
    font-size: 28px;
  }
  .buy-button{
    line-height: 45px;
  }
}

@media (min-width: 769px) {
  .container {
    flex-direction: row;
  }
  .left {
    width: 58%;
  }
  .right {
    width: 42%;
  }
}

/* === Enhanced Responsive Breakpoints === */

/* Tablets landscape and small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .headline {
    font-size: 28px;
    line-height: 36px;
  }
  .subheadline {
    font-size: 20px;
    line-height: 28px;
  }
  .advantage-number {
  padding-left: 20px;
  
    font-size: 100px;
  }
  .advantage-title {
    font-size: 17px;
  }
  .advantage-description {
    font-size: 15px;
  }
}

/* Medium desktops (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .headline {
    font-size: 32px;
    line-height: 40px;
  }
  .subheadline {
    font-size: 22px;
    line-height: 30px;
  }
  .advantage-number {
  padding-left: 20px;
  
    font-size: 120px;
  }
  .advantage-title {
    font-size: 18px;
  }
  .advantage-description {
    font-size: 16px;
  }
}

/* Large desktops (1201px - 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
  .headline {
    font-size: 36px;
    line-height: 44px;
  }
  .subheadline {
    font-size: 24px;
    line-height: 32px;
  }
  .advantage-number {
  padding-left: 20px;
  
    font-size: 140px;
  }
}

/* Ultra-wide screens (1441px and up) */
@media (min-width: 1441px) {
  .headline {
    font-size: 42px;
    line-height: 48px;
  }
  .subheadline {
    font-size: 26px;
    line-height: 34px;
  }
  .advantage-number {
  padding-left: 20px;
  
    font-size: 150px;
  }
  .advantage-title {
    font-size: 20px;
  }
  .advantage-description {
    font-size: 18px;
  }
}

#advantages_1 .advantage-content {
  margin-left: -24px;
}


/* Icons inside form fields */
.contact-input.name {
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url('icon/name.webp');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px 20px;
  padding-left: 44px;
}

.contact-input.email {
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url('icon/email.webp');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px 20px;
  padding-left: 44px;
}

.contact-input.message {
  background-color: rgba(192, 192, 192, 0.5);
  background-image: url('icon/message.webp');
  background-repeat: no-repeat;
  background-position: 12px 12px;
  background-size: 20px 20px;
  padding-left: 44px;
  padding-top: 16px;

  height: 180px;
}


/* Дополнительная адаптация SmartCaptcha для очень узких экранов (до 400px) */
@media (max-width: 400px) {
  .form-group #captcha-container {
    padding: 4px;
    min-height: 64px;
    font-size: 13px;
  }
}


/* Адаптация SmartCaptcha для ландшафтного режима */
@media screen and (max-width: 800px) and (orientation: landscape) {
  .form-group #captcha-container {
    padding: 5px;
    min-height: 60px;
    font-size: 13px;
  }
}

/* Адаптация SmartCaptcha для ретина-экранов */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
  .form-group #captcha-container {
    border-width: 1.5px;
    font-size: 14px;
  }
}


/* Универсальная адаптация сайта от 50px до бесконечности */

/* Малые экраны до 400px */
@media (max-width: 400px) {
  body {
    font-size: 14px;
  }
  .contact-form,
  .form-group {
    padding: 10px;
  }
  .contact-input {
    font-size: 14px;
    padding: 8px;
  }
}

/* Средние экраны до 768px */
@media (min-width: 401px) and (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .contact-form {
    padding: 15px 20px;
  }
  .contact-input {
    font-size: 15px;
    padding: 10px;
  }
}

/* Планшеты и десктопы от 769px */
@media (min-width: 769px) {
  body {
    font-size: 16px;
  }
  .contact-form {
    padding: 20px 30px;
  }
  .contact-input {
    font-size: 16px;
    padding: 12px;
  }
}


/* Полная адаптация SmartCaptcha */
.form-group #captcha-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Внутренние элементы капчи не выходят за границы */
.form-group {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.contact-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* Жёсткое ограничение встроенного контейнера капчи от Yandex */
#captcha-container > div {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Контейнер формы и группы тоже не дают вылезать */
.form-group {
  max-width: 100%;
  overflow-x: hidden;
}

.contact-form {
  max-width: 100%;
  overflow-x: hidden;
}


/* Визуальные правки для соответствия стилю формы */
#captcha-container > div {
  border-radius: 16px !important; /* Скруглённые углы */
  padding: 4px !important;         /* Меньше внутренних отступов */
  margin-bottom: 12px !important;  /* Отступ до кнопки */
}

/* Кнопка отправки остаётся в блоке и не уезжает */
.contact-form button,
.form-submit {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
}


/* Отступы вокруг капчи */
.form-group {
  margin: 12px 0;
}

/* Внутренние элементы SmartCaptcha */
#captcha-container > div {
  border-radius: 16px !important;
  padding: 6px !important;
  margin: 0 auto !important;
}

/* Контейнер формы: ограничение ширины и нижний отступ */
.contact-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 20px; /* чтобы кнопка не выходила за фон */
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
