/* ============================================
   1. СТИЛИ ДЛЯ СТРАНИЦЫ /PROCESS
   ============================================ */
.process-page {
  font-family: 'Inter', sans-serif;
  background-color: #F5F1EA;
  color: #2C2C2A;
}

.process-page .font-display { 
  font-family: 'Playfair Display', serif; 
}

.process-page .step-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.process-page .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(44, 44, 42, 0.15);
}

.process-page .step-number {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 600;
  color: rgba(122, 139, 122, 0.2);
  line-height: 1;
  margin-bottom: 20px;
}

/* ============================================
   2. СТИЛИ ДЛЯ БЛОГА (ПОТОК / T-FEED)
   ============================================ */
.t-feed__container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-rows: 1fr !important;
  gap: 24px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  align-items: stretch !important;
}

.t-feed__item {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 420px !important;
  background: white !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.t-feed__item img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 16px 16px 0 0 !important;
  flex-shrink: 0 !important;
}

.t-feed__item .t-feed__content {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px !important;
}

.t-feed__item .t-feed__title {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  min-height: 40px !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
}

.t-feed__item .t-feed__descr {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #6B6B65 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: auto !important;
}

.t-feed__item .t-feed__date,
.t-feed__item .t-feed__category {
  font-size: 11px !important;
  color: #9A9A98 !important;
  margin-top: 8px !important;
}

.custom-show-more-wrapper {
  text-align: center;
  margin: 50px 0 30px !important;
  grid-column: 1 / -1 !important;
}

/* ============================================
   3. УНИВЕРСАЛЬНАЯ ФИКСАЦИЯ ВСЕХ ПОПАПОВ
   ============================================ */

#payment-popup .popup-box,
.popup-box,
#popup-box,
.t-popup__container,
.t706__cartwin-content {
  width: 100% !important;
  max-width: 480px !important;
  margin: auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#payment-popup input[type="text"],
#payment-popup input[type="tel"],
#payment-popup input[type="email"],
.popup-box input[type="text"],
.popup-box input[type="tel"],
.popup-box input[type="email"],
.t-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#payment-popup input[type="checkbox"],
#payment-popup input[type="radio"],
.popup-box input[type="checkbox"],
.popup-box input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#payment-popup label,
.popup-box label,
#payment-popup .field-check,
#payment-popup .pay-methods label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  white-space: normal !important;
  box-sizing: border-box !important;
}

#payment-popup .submit-btn,
.popup-box .submit-btn,
.t-submit {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ============================================
   4. АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ
   ============================================ */
@media (max-width: 1100px) {
  .t-feed__container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 900px) {
  .t-feed__container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  .t-feed__item {
    min-height: 400px !important;
  }
}

@media (max-width: 600px) {
  .t-feed__container {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
  }

  .t-feed__item {
    min-height: 280px !important;
  }

  .t-feed__item img {
    height: 140px !important;
    border-radius: 12px 12px 0 0 !important;
  }

  .t-feed__item .t-feed__content {
    padding: 10px !important;
  }

  .t-feed__item .t-feed__title {
    font-size: 13px !important;
    min-height: 32px !important;
    margin-bottom: 6px !important;
  }

  .t-feed__item .t-feed__descr {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  .t-feed__item .t-feed__date,
  .t-feed__item .t-feed__category {
    font-size: 9px !important;
    margin-top: 6px !important;
  }

  .process-page section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .process-page .step-card {
    padding: 15px !important;
    margin-bottom: 8px !important;
  }

  .process-page h1 {
    font-size: 1.8rem !important;
    margin-bottom: 8px !important;
  }

  .process-page h2 {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
  }

  .process-page h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }

  .process-page p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }

  .process-page .step-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }

  .process-page .btn-primary {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }

  #payment-popup .popup-box,
  .popup-box,
  #popup-box,
  .t-popup__container,
  .t706__cartwin-content {
    max-width: 90vw !important;
    padding: 20px 16px !important;
  }
}

@media (max-width: 400px) {
  .t-feed__container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .t-feed__item {
    min-height: 260px !important;
  }

  .t-feed__item img {
    height: 120px !important;
  }

  .t-feed__item .t-feed__title {
    font-size: 12px !important;
  }

  .t-feed__item .t-feed__descr {
    font-size: 10px !important;
  }

  .process-page .step-card {
    padding: 12px !important;
  }

  .process-page h1 {
    font-size: 1.6rem !important;
  }

  .process-page h2 {
    font-size: 1.3rem !important;
  }

  .process-page p {
    font-size: 13px !important;
  }
}

/* ============================================
   5. ИСПРАВЛЕНИЯ ДЛЯ ДЕСКТОРНОЙ ВЕРСИИ (СКРИНЫ > 960px)
   ============================================ */
@media (min-width: 961px) {
  .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }

  section {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero .container,
  .hero-content {
    max-width: 1200px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .about-grid, 
  .about-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .benefits-grid, 
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
  }

  .steps-grid, 
  .process-steps {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
  }

  .reviews-grid,
  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
  }
}/* 1. Жесткое ограничение ширины самого окна попапа */
#consult-popup .popup-box,
#payment-popup .popup-box,
.popup-box {
  max-width: 550px !important;
  width: 90% !important;
  margin: 40px auto !important;
  padding: 30px 25px !important;
  position: relative !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
}

/* 2. Отступы для чекбоксов и текста согласия (чтобы кнопка не налезала) */
#consult-popup .field-check,
#payment-popup .field-check,
.popup-box .field-check {
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  clear: both !important;
}

/* 3. Фиксация кнопки «Отправить» */
#consult-popup .submit-btn,
#payment-popup .submit-btn,
.popup-box .submit-btn,
.popup-box button[type="submit"] {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin-top: 15px !important;
  clear: both !important;
}