/* ==========================================================================
   LANDING: ПРОТЕЗ «БАБОЧКА» ЗА 9 990 ₽ (Halif Dent)
   ========================================================================== */

:root {
  --teal-main: #008a90;
  --teal-hover: #007378;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --card-border: #e2e8f0;
  --gold-price: #f7b928;
}

/* Базовая обертка */
.landing-butterfly {
  color: var(--text-dark);
  font-family: inherit;
  overflow-x: hidden;
}

.landing-butterfly *,
.landing-butterfly *::before,
.landing-butterfly *::after {
  box-sizing: border-box;
}

.landing-butterfly .container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  font-size: 26px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: var(--text-dark) !important;
  margin: 0 0 35px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* ==========================================================================
   1. HERO ЭКРАН (ПК ВЕРСИЯ)
   ========================================================================== */
.section-hero {
  padding: 50px 0 40px !important;
  background: #ffffff !important;
}

.hero-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 40px !important;
}

.hero-left {
  flex: 1 1 500px !important;
}

.hero-title {
  font-size: 38px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin: 0 0 15px 0 !important;
  color: var(--text-dark) !important;
}

.hero-price {
  color: var(--teal-main) !important;
}

.hero-desc {
  font-size: 18px !important;
  color: var(--text-muted) !important;
  margin: 0 0 25px 0 !important;
}

.hero-advantages {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 35px 0 !important;
}

.hero-advantages li {
  position: relative !important;
  padding-left: 28px !important;
  margin-bottom: 12px !important;
  font-size: 15px !important;
  color: var(--text-dark) !important;
}

.hero-advantages li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: var(--teal-main) !important;
  font-weight: bold !important;
}

/* ПК: кнопка и текст в одну горизонтальную линию */
.hero-cta-box {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.btn-hero {
  display: inline-block !important;
  background: var(--teal-main) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 14px 28px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background 0.2s ease !important;
}

.btn-hero:hover {
  background: var(--teal-hover) !important;
}

.hero-response-time {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
}

.hero-right {
  flex: 1 1 550px !important;
  position: relative !important;
}

.hero-image-wrap {
  position: relative !important;
}

.hero-main-photo {
  width: 100% !important;
  border-radius: 12px !important;
  display: block !important;
}

.hero-protez-badge {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  width: 120px !important;
  height: 120px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
}

.hero-protez-badge img {
  width: 90% !important;
  object-fit: contain !important;
}

.hero-floating-quote {
  position: absolute !important;
  right: 15px !important;
  bottom: 30px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 14px 18px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  max-width: 210px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   2. ЛИНЕЙКА ПРЕИМУЩЕСТВ (ПК: 5 В РЯД)
   ========================================================================== */
.section-feature-line {
  background: #ffffff !important;
  border-top: 1px solid var(--card-border) !important;
  border-bottom: 1px solid var(--card-border) !important;
  padding: 24px 0 !important;
}

.feature-line-grid {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 15px !important;
}

.f-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  max-width: 210px !important;
  line-height: 1.3 !important;
}

.f-icon {
  flex-shrink: 0 !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.f-icon svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================================
   3. РЕЗУЛЬТАТЫ НАШИХ РАБОТ (ДО / ПОСЛЕ)
   ========================================================================== */
.section-works {
  padding: 60px 0 !important;
  background: var(--bg-light) !important;
}

.works-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

.work-card {
  background: #ffffff !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  text-align: center !important;
  border: 1px solid var(--card-border) !important;
}

.work-images {
  display: flex !important;
  height: 120px !important;
  background-color: #f1f5f9 !important;
}

.work-half {
  flex: 1 !important;
  position: relative !important;
  overflow: hidden !important;
}

.work-half img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  background-color: #e2e8f0 !important;
}

.work-tag {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  z-index: 2 !important;
}

.work-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 12px 10px !important;
  margin: 0 !important;
  color: var(--text-dark) !important;
}

/* ==========================================================================
   4. ОТЗЫВЫ ПАЦИЕНТОВ
   ========================================================================== */
.section-reviews {
  padding: 60px 0 !important;
  background: var(--bg-light) !important;
}

.reviews-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}

.review-box {
  background: #ffffff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.review-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.reviewer-avatar img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
}

.reviewer-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  display: block !important;
  color: var(--text-dark) !important;
}

.rating-stars {
  color: #f59e0b !important;
  font-size: 12px !important;
}

.review-body {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--text-muted) !important;
  margin: 0 0 15px 0 !important;
}

.review-date {
  font-size: 11px !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   5. БАННЕР С ФОРМОЙ ЗАЯВКИ (LEAD CARD)
   ========================================================================== */
.section-lead-card {
  padding: 40px 0 !important;
  background: #ffffff !important;
}

.lead-card-box {
  display: flex !important;
  flex-direction: row !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 2px solid var(--teal-main) !important;
  box-shadow: 0 10px 30px rgba(0, 138, 144, 0.08) !important;
  background: #ffffff !important;
  min-height: 230px !important;
}

.lead-side-banner {
  flex: 0 0 60% !important;
  max-width: 60% !important;
  background-color: var(--teal-main) !important;
  padding: 26px 30px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
}

.lead-banner-top {
  margin-bottom: 12px !important;
  position: relative !important;
  z-index: 2 !important;
}

.lead-banner-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2 !important;
}

.lead-price-gold {
  color: var(--gold-price) !important;
}

.lead-banner-sub {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 !important;
}

.lead-banner-bottom {
  position: static !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 15px !important;
  margin-top: auto !important;
  z-index: 2 !important;
}

.lead-mini-features {
  display: flex !important;
  align-items: flex-start !important;
  gap: 32px !important;
  max-width: 65% !important;
  margin-top: 20px !important;
}

.lead-feat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  flex: 1 1 0 !important;
}

.lead-feat-icon {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.lead-feat-icon svg {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
}

.lead-feat-text {
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px !important;
}

.lead-banner-protez {
  position: absolute !important;
  right: 25px !important;
  top: 46% !important;
  transform: translateY(-50%) !important;
  width: 250px !important;
  max-width: 44% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.lead-banner-protez img {
  width: 100% !important;
  height: auto !important;
  max-height: 165px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22)) !important;
}

.lead-side-form {
  flex: 0 0 40% !important;
  max-width: 40% !important;
  background-color: #ffffff !important;
  padding: 26px 28px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.lead-form-heading {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--text-dark) !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: 0.2px !important;
}

.lead-promo-form {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.lead-inputs-row {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.lead-field {
  flex: 1 1 50% !important;
  position: relative !important;
}

.lead-input {
  width: 100% !important;
  height: 40px !important;
  background-color: #ffffff !important;
  border: 1px solid #dce2e6 !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  color: var(--text-dark) !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

.lead-input:focus {
  border-color: var(--teal-main) !important;
}

.lead-input::placeholder {
  color: #94a3b8 !important;
}

.lead-btn-submit {
  width: 100% !important;
  height: 42px !important;
  background-color: var(--teal-main) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.lead-btn-submit:hover {
  background-color: var(--teal-hover) !important;
}

.lead-agreement-box {
  margin: 10px 0 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.lead-checkbox-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: #000000 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.lead-checkbox-label input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  cursor: pointer !important;
  accent-color: var(--teal-main) !important;
  flex-shrink: 0 !important;
}

.lead-checkbox-label a {
  color: #000000 !important;
  text-decoration: underline !important;
  transition: opacity 0.2s ease !important;
}

.lead-checkbox-label a:hover {
  opacity: 0.7 !important;
  text-decoration: none !important;
}

.error_agreementapplication {
  display: block !important;
  font-size: 10.5px !important;
  color: #ef4444 !important;
  margin-top: 3px !important;
}

.lead-note {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  margin: 8px 0 0 0 !important;
}

/* ==========================================================================
   6. КАК МЫ РАБОТАЕМ
   ========================================================================== */
.section-workflow {
  padding: 50px 0 70px !important;
  background: #ffffff !important;
}

.workflow-chain {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

.workflow-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 1 auto !important;
}

.workflow-icon-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.workflow-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  background-color: var(--teal-main) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.workflow-icon-circle {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.workflow-icon-circle svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.workflow-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
}

.workflow-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.2 !important;
}

.workflow-desc {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  max-width: 135px !important;
}

.workflow-arrow {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  opacity: 0.55 !important;
}

/* ==========================================================================
   АДАПТИВНОСТЬ (RESPONSIVE)
   ========================================================================== */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column !important;
  }

  .works-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .workflow-chain {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 24px 30px !important;
  }

  .workflow-arrow {
    display: none !important;
  }
}

/* Экраны планшетов для баннера формы (до 960px) */
@media (max-width: 960px) {
  .lead-card-box {
    flex-direction: column !important;
  }

  .lead-side-banner,
  .lead-side-form {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .lead-side-banner {
    overflow: visible !important;
  }

  .lead-banner-bottom {
    position: relative !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .lead-banner-protez {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 210px !important;
    max-width: 100% !important;
    margin: 15px auto 0 !important;
  }

  .lead-mini-features {
    max-width: 100% !important;
    gap: 16px !important;
    justify-content: space-around !important;
    width: 100% !important;
  }
}

/* Смартфоны и узкие экраны (до 768px): КНОПКА НА ВСЮ ШИРИНУ И ВЫРАВНИВАНИЕ СЕТКИ */
@media (max-width: 768px) {
  .section-hero {
    padding: 25px 0 20px !important;
  }

  .hero-container {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .hero-left,
  .hero-right {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }

  /* Кнопка на всю ширину, текст Ответим за 5 минут снизу по центру */
  .hero-cta-box {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btn-hero {
    width: 100% !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }

  .hero-response-time {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    font-size: 12.5px !important;
    padding-left: 0 !important;
  }

  .hero-image-wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-main-photo {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .hero-floating-quote {
    display: none !important;
  }

  .hero-protez-badge {
    width: 75px !important;
    height: 75px !important;
    top: 10px !important;
    right: 10px !important;
    padding: 6px !important;
  }

  /* Линейка преимуществ: одинаковая высота ячеек 2 + 2 + 1 */
  .section-feature-line {
    padding: 16px 0 14px !important;
    margin: 0 !important;
  }

  .section-feature-line .container {
    padding: 0 10px !important;
  }

  .feature-line-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .f-item {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 118px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f6 !important;
    box-sizing: border-box !important;
  }

  .f-item:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .f-item:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .f-item:nth-of-type(3) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .f-item:nth-of-type(4) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  .f-item:nth-of-type(5) {
    grid-column: 1 / span 2 !important;
    grid-row: 3 !important;
    width: 100% !important;
    min-height: 100px !important;
  }

  .f-icon {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    margin: 0 auto 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .f-icon svg {
    width: 100% !important;
    height: 100% !important;
  }

  .f-item span {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 32px !important;
    text-align: center !important;
  }

  .work-images {
    height: 130px !important;
    background-color: #f1f5f9 !important;
  }

  .work-half img {
    min-height: 100% !important;
    background-color: #e2e8f0 !important;
  }
}

/* Мобильные экраны (до 640px) */
@media (max-width: 640px) {
  .hero-title {
    font-size: 28px !important;
  }

  .hero-desc {
    font-size: 15px !important;
  }

  .works-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .lead-inputs-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .workflow-chain {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding-left: 10px !important;
  }

  .workflow-desc {
    max-width: none !important;
  }
}