@import url("https://fonts.googleapis.com/css2?family=Boldonse&family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Inter:wght@100..900&display=swap");

/* Подключаем шрифт Calypso */
@font-face {
  font-family: 'Calypso';
  src: url('../fonts/Calypso.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --color-primary-cosmos: #000000;
  --color-secondary-cosmos: #000000;
  --color-accent-cosmos: #ff2c2c;
  --color-text-cosmos: #f5f5f5;
  --color-text-muted-cosmos: rgba(245, 245, 245, 0.7);
  --color-border-cosmos: rgba(255, 255, 255, 0.05);
  --color-overlay-cosmos: rgba(0, 0, 0, 0.5);
  /* Typography */
  --font-primary-cosmos: "Inter", sans-serif;
  --font-display-cosmos: "Boldonse", serif;
  --font-serif-cosmos: "EB Garamond", serif;
  --font-calypso-cosmos: "Calypso", serif;
  --text-xs-cosmos: 0.7rem;
  --text-sm-cosmos: 0.875rem;
  --text-base-cosmos: 1rem;
  --text-lg-cosmos: 1.2rem;
  --text-xl-cosmos: 1.5rem;
  --text-2xl-cosmos: 2rem;
  --text-3xl-cosmos: 3rem;
  --text-mega-cosmos: clamp(2rem, 6vw, 5rem);
  /* Spacing */
  --space-1-cosmos: 0.25rem;
  --space-2-cosmos: 0.5rem;
  --space-3-cosmos: 0.75rem;
  --space-4-cosmos: 1rem;
  --space-5-cosmos: 1.5rem;
  --space-6-cosmos: 2rem;
  --space-8-cosmos: 3rem;
  --space-10-cosmos: 4rem;
  --space-12-cosmos: 6rem;
  /* Layout */
  --panel-padding-cosmos: 5%;
  /* Animations */
  --transition-fast-cosmos: 0.2s ease;
  --transition-medium-cosmos: 0.3s ease;
  --transition-slow-cosmos: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo-cosmos: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back-cosmos: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary-cosmos);
  background: #000000;
  color: var(--color-text-cosmos);
  overflow-x: hidden;
  line-height: 1.5;

  /* Скрытие скроллбара */
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
  display: none !important;
  /* Chrome, Safari, Opera */
}

html {
  /* Скрытие скроллбара */
  scrollbar-width: none !important;
  /* Firefox */
  -ms-overflow-style: none !important;
  /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
  display: none !important;
  /* Chrome, Safari, Opera */
}

/* Canvas styling */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* Allow clicks to pass through to content */
}

.cosmos{
    overflow: hidden;
    background: #000000;
}


/* Content positioned above canvas */

/* Стили для модального окна формы заявки */
.lead-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999999 !important;
  align-items: center;
  justify-content: center;
}

.lead-modal-overlay.open {
  display: flex;
}

.lead-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lead-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lead-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.lead-modal-content h2 {
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.lead-form-modal .form-group {
  margin-bottom: 2px;
}

.lead-form-modal input,
.lead-form-modal select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: #ffffff;
  color: #333;
}

.lead-form-modal input:focus,
.lead-form-modal select:focus {
  outline: none;
  border-color: #007bff;
}

.lead-form-modal .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
  cursor: pointer;
}

.lead-form-modal .checkbox input {
  width: auto;
  margin: 0;
}

.lead-form-modal .checkbox .label-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.lead-form-modal .checkbox .label-text a {
  color: #007bff;
  text-decoration: none;
}

.lead-form-modal .submit-btn {
  width: 100%;
  padding: 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lead-form-modal .submit-btn:hover {
  background: #0056b3;
}
.section-cosmos-first {
  margin-bottom: 30vh !important;
}


@media (max-width: 768px) {
  .lead-modal {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .lead-modal-content h2 {
    font-size: 24px;
  }
}
.content-cosmos {
  position: relative;
  z-index: 2;
}

/* Лид-форма справа от яблока */
.eden-lead-form {
  position: absolute;
  top: 50vh;
  right: min(5vw, 48px);
  transform: translateY(-50%);
  z-index: 10000;
  width: min(500px, 40vw);
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  border: none;
  padding: 15px;
}

/* Мобильная версия - форма перед текстом, кнопка после */
@media (max-width: 768px) {
  .eden-lead-form {
    position: absolute;
    top: 40vh !important;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    transform: translateX(0) !important;
    width: 100%;
  }
  
  .cosmos-cta-btn {
    order: 4; /* Кнопка последней */
    margin-top: -120px; /* Поднимаем кнопку еще в 3 раза выше на мобильных */
    margin-left: 0; /* Сдвигаем влево */
    margin-right: 10%; /* Сдвигаем вправо, как и текст на мобильных */
    max-width: 280px; /* Немного меньше на мобильных */
    background: #152b3b; /* Новый цвет */
    color: #ffffff; /* Белый текст */
    box-shadow: 0 12px 30px rgba(21, 43, 59, 0.35); /* Тень в тон новому цвету */
  }
  
  /* Контейнер для правильного порядка */
  .cosmos .content-cosmos {
    display: flex;
    flex-direction: column;
  }
  
  /* Секции с текстом */
  .section-cosmos {
    height: auto; /* Автоматическая высота */
    min-height: 60vh; /* Минимальная высота для мобильных */
    padding-top: 6vh; /* Отступ сверху */
    margin-bottom: 2vh; /* Положительный отступ между секциями */
  }
  
  /* Первая секция cosmos на мобильных */
  /* .section-cosmos-first {
    margin-bottom: 40vh !important;
  } */
  /* Отступ теперь устанавливается динамически через JavaScript */
 
  /* Стили для полей формы на мобильных */
  .lead-form input[type="text"], 
  .lead-form input[type="tel"], 
  .lead-form select {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgb(255 255 255);
    color: #000000;
    padding: 0 20px;
    outline: none;
    font-size: 16px;
  }
  
  /* Форма поверх всех элементов на мобильных */
  .eden-lead-form {
    z-index: 999999 !important;
    position: relative;
  }
  
  /* Родительский контейнер формы тоже должен быть поверх */
  .content-cosmos {
    position: relative;
    z-index: 999999 !important;
  }
  
  /* Последняя секция с кнопкой на мобильных - убираем отрицательный margin */
  .section-cosmos:last-of-type {
    margin-bottom: 0;
  }
  
  /* На мобильных устройствах сдвигаем контент меньше */
  .section-inner-cosmos {
    margin-right: 10%;
    justify-content: center;
    /* Убираем position: absolute - это ломает высоту секций */
    position: relative;
    top: auto;
  }
  
  /* Последняя секция cosmos на мобильных */
  .section-cosmos-last {
    min-height: 40vh; /* Минимальная высота для кнопки */
    height: auto;
  }
}

/* Черный placeholder для поля имени на всех устройствах */
#leadName::placeholder {
  color: #000000 !important;
}



/* CTA-кнопка на месте текста */
.cosmos-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: auto;
  max-width: 320px;
  padding: 0 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #152b3b;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(21, 43, 59, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-left: 0;
  /* margin-right: 20%; */
  margin: 0px 0 30vh 5%;
}

/* Последняя секция с кнопкой - убираем отрицательный margin */
.section-cosmos:last-of-type {
  margin-bottom: 0;
}
.cosmos-cta-btn:hover { 
  transform: translateY(-1px); 
  box-shadow: 0 16px 40px rgba(21, 43, 59, 0.45); /* Тень в тон новому цвету при hover */
  background: #1a3447; /* Немного светлее при hover */
}
.cosmos-cta-btn:active { transform: translateY(0); }

/* Модалка заявки */
.lead-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lead-modal-overlay.open { display: flex; }

.lead-modal {
  display: flex;
  max-width: 1000px;
  width: 90vw;
  max-height: 90vh;
  height: 700px;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  padding: 0;
}

.lead-modal-title {
  margin: 0 0 12px;
  color: #0e2233;
  font-family: var(--font-serif-cosmos);
  font-size: 32px;
  font-weight: 700;
}

.lead-step-photo {
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 14px;
  background: none;
  box-shadow: none;
}

/* Цвета модалки — контрастнее */
.lead-modal { background: #ffffffee; }
.lead-modal-title { color: #0e2233; }
.lead-underline-input { color: #0e2233; border-bottom-color: rgba(14,34,51,0.2); }
.lead-underline-input:focus { border-bottom-color: #0e2233; }
.lead-progress { color: #0e2233; }
.lead-step-dot { border-color: #0e2233; }
.lead-next-btn { background: #0e2233; }
.lead-next-btn.submit { background: #1d4560; }

@media (max-width: 480px) {
  .lead-step-photo { max-height: 40vh; height: auto; }
  
  .cosmos-cta-btn {
    margin: 0 auto; /* Центрируем по горизонтали */
    max-width: 240px; /* Еще меньше на очень маленьких экранах */
    font-size: 16px;
    height: 48px;
    background: #152b3b; /* Новый цвет */
    color: #ffffff; /* Белый текст */
    box-shadow: 0 12px 30px rgba(21, 43, 59, 0.35); /* Тень в тон новому цвету */
  }
}

.lead-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(16, 40, 61, 0.08);
  color: #0f273c;
  font-size: 20px; line-height: 32px;
}

/* Двухстраничная форма */
.lead-two-step { gap: 18px; }
.lead-steps { position: relative; }
/* Убрали старые стили lead-step */

/* Стиль, похожий на пример — подчеркивание */
.lead-underline-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(16,40,61,0.2);
  background: transparent;
  padding: 12px 4px 10px;
  font-size: 18px;
  color: #0f273c;
  outline: none;
}
.lead-underline-input:focus {
  border-bottom-color: #0f273c;
}

.lead-phone-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: end; border-bottom: 2px solid rgba(14,34,51,0.2); padding-bottom: 10px; }
.lead-phone-row .lead-underline-input { border-bottom: none; padding-left: 0; }
.country-select select { width: 100%; height: 36px; border: none; background: transparent; color: #0f273c; padding: 0 6px; outline: none; font-weight: 600; }
.country-select select:focus { outline: none; }

.lead-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.lead-progress { color: #0f273c; opacity: 0.8; display: flex; align-items: center; gap: 8px; }
.lead-step-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #0f273c; display: inline-block; }
.lead-step-dot.filled { background: #0f273c; }

.lead-next-btn {
  background: #c03a52; color: #ffffff; border: none; height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
}
.lead-next-btn.submit { background: #9d2f42; }
.lead-next-btn:hover { filter: brightness(1.05); }

@media (max-width: 480px) {
  .lead-phone-row { grid-template-columns: 100px 1fr; }
}

@media (max-width: 768px) {
  .eden-lead-form {
    top: auto; right: 50%; transform: translateX(50%);
    width: calc(100vw - 32px);
  }

  .lead-modal { padding: 22px; }
  
  /* Скрываем существующий крестик на мобильных только в модальном окне заявки */
  .lead-modal-overlay:not(#biographyModalOverlay) .lead-modal-close {
    display: none !important;
  }
  
  /* Стили для контейнера кнопок на мобильных */
  .submit-btn-container {
    margin-top: 20px;
    display: flex;
    align-items: center; /* вертикальное выравнивание */
    gap: 12px;
    width: 100%;
  }
  
  /* Кнопка закрытия на мобильных */
  .mobile-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(16, 40, 61, 0.2);
    background: rgba(16, 40, 61, 0.05);
    color: #0f273c;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  
  .mobile-modal-close:hover {
    background: rgba(16, 40, 61, 0.1);
    border-color: rgba(16, 40, 61, 0.3);
  }
  
  .mobile-modal-close:active {
    background: rgba(16, 40, 61, 0.15);
    transform: scale(0.95);
  }
}

@media (min-width: 769px) {
  .mobile-modal-close {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .eden-lead-form { 
    top: 35vh;
    right: 20px; 
    width: min(500px, 50vw);
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    padding: 15px;
  }
  
  /* На планшетах сдвигаем контент меньше */
  .section-inner-cosmos {
    margin-right: 15%; /* Сдвигаем влево на планшетах */
  }
  
  /* Заголовки на планшетах */
  .title-cosmos {
    font-size: clamp(3rem, 8vw, 6rem);
  }
}

@media (max-width: 768px) {
  .eden-lead-form {
    top: auto; right: 50%; transform: translateX(50%);
    width: calc(100vw - 32px);
  }
}

.section-cosmos {
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 0;
  margin-bottom: 5%;
}

.section-inner-cosmos {
  width: 100%;
  /* padding: 0 var(--panel-padding-cosmos); */
  padding: 0 1vw;
  max-width: 1600px;
  margin: 0; /* Убираем auto margin для сдвига влево */
  margin-right: 10%; /* Сдвигаем контент влево, убирая отступ справа */
  pointer-events: auto;
  /* Ensure clickable */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Центрируем контент по вертикали */
  min-height: 0; /* Позволяет контенту сжиматься */
}

.title-cosmos {
  font-family: var(--font-display-cosmos);
  font-size: var(--text-mega-cosmos);
  line-height: 0.8;
  margin-bottom: var(--space-4-cosmos);
  font-weight: 700;
  opacity: 0;
  /* For GSAP animation */
  transform: translateY(50px);
  /* Initial state for animation */
  text-transform: uppercase;
  color: #f4e8b0;
  letter-spacing: -0.02em;
  z-index: 20;
  position: relative;
}

.description-cosmos {
  font-family: var(--font-primary-cosmos);
  font-size: var(--text-xl-cosmos);
  max-width: 600px;
  margin-bottom: 0; /* Убираем margin-bottom для равномерности */
  opacity: 0;
  /* For GSAP animation */
  transform: translateY(30px);
  /* Initial state for animation */
  color: var(--color-text-muted-cosmos);
  font-weight: 300;
}

/* Третье описание - убираем специальный margin */
.description-cosmos-third {
  margin-top: 0; /* Убираем специальный отступ */
}

/* Добавляем отступ после второго описания */
.description-cosmos-second {
  margin-bottom: var(--space-12-cosmos); /* Увеличиваем отступ снизу с 2rem до 6rem */
}

.footer-cosmos {
  position: fixed;
  bottom: var(--space-4-cosmos);
  left: var(--space-4-cosmos);
  font-size: var(--text-sm-cosmos);
  color: var(--color-text-muted-cosmos);
  z-index: 3;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 768px) {
  .title-cosmos {
    font-size: clamp(2.8rem, 9vw, 5.5rem);
    margin-bottom: var(--space-3-cosmos); /* Уменьшили отступ на мобильных */
  }

  .description-cosmos {
    font-size: var(--text-lg-cosmos);
    margin-bottom: 0; /* Убираем margin-bottom для равномерности */
  }

  /* Отступ после второго описания на мобильных */
  .description-cosmos-second {
    margin-bottom: var(--space-8-cosmos); /* Увеличиваем отступ с 1rem до 3rem на мобильных */
  }

  .footer-cosmos {
    width: 100%;
    text-align: center;
    left: 0;
  }
  
  /* Мобильные стили для section-cosmos */
  .section-cosmos {
    height: auto;
    min-height: 40vh;
    padding-top: 2vh;
    margin: 5vh auto;
    align-items: center;
  }
  
  /* Мобильные стили для формы */
  .eden-lead-form {
    position: absolute;
    top: auto;
    /* bottom: 16px; */
    right: 50%;
    transform: translateX(50%);
    width: calc(100vw - 32px);
  }
  
  .cosmos-cta-btn {
    margin: 0 auto; /* Центрируем по горизонтали */
    order: 4; /* Кнопка последней на мобильных */
    max-width: 280px; /* Немного меньше на мобильных */
    background: #f4e8b0; /* Песочный цвет */
    color: #000000; /* Черный текст */
    box-shadow: 0 12px 30px rgba(244, 232, 176, 0.35); /* Песочная тень */
  }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
  .lead-form {
    max-width: 360px;
    gap: 12px;
    padding: 18px;
    margin: 0 auto;
  }
}

/* Новые стили для переделанного модального окна */
.lead-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lead-modal-close:hover,
.lead-modal-close:active,
.lead-modal-close:focus {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    outline: none;
}

/* Мобильные стили для кнопки закрытия */
@media (max-width: 768px) {
    .lead-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.7);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .lead-modal-close:hover,
    .lead-modal-close:active,
    .lead-modal-close:focus {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(1.02);
    }
}

.modal-photo-section {
    flex: 3;
    height: 100%;
    position: relative;
}

.modal-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* По умолчанию центрируем фото */
}

.modal-form-section {
    flex: 2;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8f9fa;
}

.modal-form-title {
    font-family: 'DRUZHOK', serif;
    font-size: 28px;
    color: #0f273c;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
}

.modal-lead-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Стили для шагов больше не нужны - форма одношаговая */

/* Стили для прогресса и кнопки "Далее" больше не нужны - форма одношаговая */

.contact-field {
    margin-bottom: 20px;
}

/* Скрытие полей контактов по умолчанию */
.hidden {
    display: none !important;
}

/* Окошко успешной отправки */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.success-modal.show {
    display: flex;
}

.success-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: default;
    animation: successPopup 0.3s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #ebe0aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0f273c;
    margin: 0 auto 20px;
    font-weight: bold;
}

.success-content h3 {
    color: #0f273c;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.success-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

@keyframes successPopup {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.input-hint {
    font-size: 12px;
    color: rgba(15, 39, 60, 0.7);
    margin-top: 5px;
    font-style: italic;
}

.modal-lead-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.modal-lead-form input,
.modal-lead-form select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
    color: #333;
}

.modal-lead-form input:focus,
.modal-lead-form select:focus {
    outline: none;
    border-color: #0f273c;
}

.modal-lead-form input::placeholder {
    color: #999;
}

.modal-lead-form select option {
    background: white;
    color: #333;
}

/* Скрытые поля */
.modal-lead-form .hidden {
    display: none;
}

/* Стили для телефона с кодом страны */
.modal-lead-form .phone-group {
    position: relative;
}

.modal-lead-form .phone-group .dial-code {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.modal-lead-form .phone-group input {
    padding-left: 45px;
}

/* Мобильная версия для phone-group */
@media (max-width: 768px) {
    .modal-lead-form .phone-group {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: white;
        padding: 8px 12px;
        margin-bottom: 15px;
    }
    
    .modal-lead-form .phone-group .dial-code {
        position: static;
        transform: none;
        color: #666;
        font-weight: 500;
        margin-right: 8px;
        font-size: 14px;
    }
    
    .modal-lead-form .phone-group input {
        padding-left: 0;
        border: none;
        background: transparent;
        font-size: 16px;
        width: 100%;
        flex: 1;
    }
    
    .modal-lead-form .phone-group input:focus {
        outline: none;
        box-shadow: none;
    }
}

/* Стили для select с каретками */
.modal-lead-form .select-group {
    position: relative;
}

.modal-lead-form .select-group .select-caret {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

/* Стили для чекбоксов */
.modal-lead-form .checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0;
    cursor: pointer;
}

.modal-lead-form .checkbox input[type="checkbox"] {
    display: none;
}

.modal-lead-form .checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-lead-form .checkbox-mark:hover {
    border-color: #0f273c;
}

.modal-lead-form .checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background: #0f273c;
    border-color: #0f273c;
}

.modal-lead-form .checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.modal-lead-form .checkbox-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.modal-lead-form .checkbox-text a {
    color: #0f273c;
    text-decoration: underline;
}

.modal-lead-form .checkbox.optional .checkbox-text {
    color: #666;
}

/* Кнопка отправки */
.modal-lead-form .submit-btn {
    background: #0f273c;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0px;
    width: 100%;
}

.modal-lead-form .submit-btn:hover {
    background: #1a3a5f;
    transform: translateY(-1px);
}

.phone-row {
    flex-direction: row !important;
    gap: 10px;
}

/* Мобильная версия для phone-group */
@media (max-width: 768px) {
    .modal-lead-form .phone-group {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background: white;
        margin-bottom: 20px;
        transition: border-color 0.3s ease;
    }
    
    .modal-lead-form .phone-group:focus-within {
        border-color: #0f273c;
    }
    
    .modal-lead-form .phone-group .dial-code {
        position: static;
        transform: none;
        color: #666;
        font-weight: 500;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .modal-lead-form .phone-group input {
        padding: 0;
        border: none;
        background: transparent;
        font-size: 16px;
        width: 100%;
        flex: 1;
        color: #333;
    }
    
    .modal-lead-form .phone-group input:focus {
        outline: none;
        box-shadow: none;
    }
    
    .modal-lead-form .phone-group input::placeholder {
        color: #999;
    }
}

@media (max-width: 480px) {
    .modal-photo-section {
        height: 0;
    }
}

.country-code {
    width: 80px;
    flex-shrink: 0;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox {
    cursor: pointer;
}

.checkbox input {
    display: none;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-mark:hover {
    border-color: #999;
}

.checkbox input:checked + .checkbox-mark {
    background: #0f273c;
    border-color: #0f273c;
}

.checkbox input:checked + .checkbox-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    color: #666;
}

.checkbox-text a {
    color: #0f273c;
    text-decoration: underline;
}

.modal-submit-btn {
    background: #0f273c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.modal-submit-btn:hover {
    background: #1a3a5f;
}

@media (max-width: 768px) {
    .lead-modal {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    
    .modal-photo-section {
        flex: none;
        height: 200px;
    }
    
    .modal-main-photo {
        object-fit: cover;
        object-position: center 30%; /* Позиционируем фото так, чтобы лицо было видно */
    }
    
    .modal-form-section {
        flex: none;
        padding: 20px;
        flex: 2;
        overflow-y: scroll;
    }
    
    .modal-form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* Дополнительные настройки для планшетов */
@media (max-width: 900px) and (min-width: 769px) {
    .modal-main-photo {
        object-position: center 35%; /* Промежуточное позиционирование для планшетов */
    }
}

@media (max-width: 768px) {
  .eden-lead-form {
    top: auto; right: 50%; transform: translateX(50%);
    width: calc(100vw - 32px);
  }
  
  .cosmos .content-cosmos {
    flex-direction: column;
    gap: 0; /* Убираем gap для равномерности */
  }
  
  /* Секции с текстом */
  
  
  /* Последняя секция с кнопкой на мобильных - убираем отрицательный margin */
  .section-cosmos:last-of-type {
    margin-bottom: 0;
  }
  
  /* На мобильных устройствах сдвигаем контент меньше */
  .section-inner-cosmos {
    margin-right: 10%; /* Сдвигаем влево на мобильных */
    justify-content: center; /* Центрируем контент */
  }
}

/* Hero-заголовок "Эдем" - делаем его намного больше */
.hero-title {
  font-size: clamp(8rem, 20vw, 15rem) !important; /* Огромный размер от 8rem до 15rem */
  line-height: 0.7 !important; /* Уменьшаем межстрочный интервал для больших заголовков */
  margin-bottom: var(--space-8-cosmos) !important; /* Увеличиваем отступ снизу */
  text-align: left !important; /* Выравниваем по левому краю */
  letter-spacing: -0.05em !important; /* Увеличиваем межбуквенный интервал */
  text-shadow: 0 0 50px rgba(244, 232, 176, 0.3) !important; /* Добавляем свечение */
  margin-right: 20% !important; /* Сдвигаем влево, как и остальной контент */
}

/* Мобильные стили для hero-заголовка */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(6rem, 25vw, 10rem) !important; /* На мобильных от 6rem до 10rem */
    line-height: 0.8 !important;
    margin-bottom: var(--space-6-cosmos) !important;
    margin-right: 10% !important; /* Сдвигаем влево на мобильных, как и остальной контент */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(4rem, 30vw, 8rem) !important; /* На очень маленьких экранах от 4rem до 8rem */
    line-height: 0.9 !important;
    margin-right: 10% !important; /* Сдвигаем влево на очень маленьких экранах */
  }
  
  /* Дополнительные настройки для фото на очень маленьких экранах */
  .modal-photo-section {
    height: 180px; /* Уменьшаем высоту на очень маленьких экранах */
  }
  
  .modal-main-photo {
    object-position: center 25%; /* Еще лучше позиционируем лицо */
  }
}

/* Стили для модального окна биографии */
.biography-modal {
  max-width: 800px !important;
  width: 95% !important;
}

.biography-subtitle {
  color: #666;
  font-size: 18px;
  margin-bottom: 30px;
  text-align: center;
  font-style: italic;
}

.biography-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.biography-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.biography-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.biography-section h4 {
  color: var(--accent-green);
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

.biography-section p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.biography-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.biography-section li {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.biography-section li::before {
  content: "•";
  color: var(--accent-green);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.biography-youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.biography-youtube-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Адаптивность для модального окна биографии */
@media (max-width: 768px) {
  .biography-modal {
    padding: 25px !important;
    max-width: 95% !important;
  }
  
  .biography-content {
    max-height: 50vh;
  }
  
  .biography-section h4 {
    font-size: 16px;
  }
  
  .biography-section p,
  .biography-section li {
    font-size: 14px;
  }
  
  .biography-youtube-link {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .biography-modal {
    padding: 20px !important;
  }
  
  .biography-content {
    max-height: 45vh;
  }
  
  .biography-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
}

/* Стили для кнопки биографии в видео-секции */
.biography-btn-video {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  font-family: 'Calmius', serif;
  box-shadow: 0 8px 25px rgba(17, 41, 62, 0.3);
}

.biography-btn-video:hover {
  background: #1a3a5f;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(17, 41, 62, 0.4);
}

.biography-btn-video:active {
  transform: translateY(-1px);
}

/* Адаптивность для кнопки биографии */
@media (max-width: 768px) {
  .biography-btn-video {
    padding: 12px 20px;
    font-size: 14px;
    margin-top: 25px;
  }
}

@media (max-width: 480px) {
  .biography-btn-video {
    padding: 10px 18px;
    font-size: 13px;
    margin-top: 20px;
  }
}

/* Медиа-запрос для title-cosmos на мобильных устройствах */
@media (max-width: 768px) {
  .title-cosmos {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .title-cosmos {
    font-size: 1.8rem;
  }
}

/* Мобильная версия для phone-group */
@media (max-width: 768px) {
    .modal-lead-form .phone-group {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background: white;
        margin-bottom: 20px;
        transition: border-color 0.3s ease;
    }
    
    .modal-lead-form .phone-group:focus-within {
        border-color: #0f273c;
    }
    
    .modal-lead-form .phone-group .dial-code {
        position: static;
        transform: none;
        color: #666;
        font-weight: 500;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .modal-lead-form .phone-group input {
        padding: 0;
        border: none;
        background: transparent;
        font-size: 16px;
        width: 100%;
        flex: 1;
        color: #333;
    }
    
    .modal-lead-form .phone-group input:focus {
        outline: none;
        box-shadow: none;
    }
    
    .modal-lead-form .phone-group input::placeholder {
        color: #999;
    }
}
