/* ============================================================
   modpages.css — Layout + responsive fixes
   cardcred.ru
   ============================================================ */

.container, .main_banner_wrap, .line_wrap, .wrap-carusel2, .news_main_wrap, .foot_wrap, .bg_main {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
}

/* Header layout fixes */
.header-wrap-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 8px 20px !important;
}
.logo { flex-shrink: 0 !important; }
.logo img { height: 36px !important; width: auto !important; }
.header-menu-box { width: 100% !important; }
.header-menu {
  display: flex !important;
  justify-content: space-between !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  list-style: none !important;
}
.header-menu li { flex: 1 !important; text-align: center !important; }
.header-menu a {
  display: block !important;
  padding: 12px 4px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Full-width hero banner */
.hero-banner-full {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.hero-banner-full img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-height: 380px !important;
  object-fit: cover !important;
}

/* Main banner — убран */
.banner_title h1 { font-size: 2.5rem !important; line-height: 1.15 !important; }
.banner_text { font-size: 1.1rem !important; line-height: 1.6 !important; margin: 16px 0 !important; }
.flex { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; margin-bottom: 20px !important; }

/* Line offers */
.line_wrap {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  padding: 16px 20px !important;
}
.line_offer {
  padding: 10px 8px !important;
  transition: color .2s !important;
}
.line_offer a {
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.line_offer_img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.line_offer_info_fx {
  min-width: 0 !important;
  flex: 1 !important;
}
.line_offer_link { font-size: 14px !important; line-height: 1.2 !important; padding-bottom: 2px !important; }
.line_offer_info { font-size: 12px !important; line-height: 1.2 !important; }

/* Footer */
#footer { padding: 48px 0 0 !important; }
.foot_wrap { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 32px !important; padding: 40px 20px !important; }
.foot_menu { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.foot_menu .tit { font-size: 15px !important; margin-bottom: 6px !important; }
.foot_cop_wrap { padding: 20px !important; text-align: center !important; font-size: 13px !important; }

/* Carousel */
.rang_main_bg, .news_main_bg { padding: 48px 0 !important; }
.line-on-card, .news_main_title { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-bottom: 24px !important; font-size: 1.4rem !important; }
.slick-slide img { border-radius: 12px !important; }

/* Content pages */
.content_flex { display: flex !important; gap: 32px !important; padding: 32px 0 !important; }
.content_left { flex: 1 !important; min-width: 0 !important; }
.content_right { width: 340px !important; flex-shrink: 0 !important; }

/* Offer cards */
.short_offers { display: flex !important; flex-direction: column !important; gap: 16px !important; }
.short_offers .short_offer { padding: 18px !important; overflow: hidden !important; }

/* Admin button in header */
.nomob { display: flex !important; align-items: center !important; gap: 12px !important; }

/* Responsive */
@media (max-width: 768px) {
  .line_wrap { grid-template-columns: repeat(2, 1fr) !important; }
  .foot_wrap { grid-template-columns: 1fr !important; }
  .content_flex { flex-direction: column !important; }
  .content_right { width: 100% !important; }
  .main_banner_wrap { padding: 40px 20px !important; }
  .banner_title h1 { font-size: 1.8rem !important; }
}

@media (max-width: 480px) {
  .line_wrap { grid-template-columns: 1fr !important; }
}
