/* ==========================================================================
   HAIRSTORE HUB BUILDER - GLOBALNE KOMPONENTY
   ========================================================================== */

html { scroll-behavior: smooth; }

.hs-hub-wrapper {
  color: var(--color-text);
  max-width: 100%;
  margin: 0 auto 40px auto;
  box-sizing: border-box;
}

.hs-hub-wrapper * { box-sizing: border-box; }

/* --- 1. HERO BANNER --- */
.hs-hero {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 21 / 7;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  padding: 40px;
  margin-bottom: 40px;
  background-size: cover;
  background-position: center;
}

.hs-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.hs-hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: #ffffff;
}

.hs-hero-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.hs-hero-desc {
  font-size: 16px;
  margin: 0 0 24px 0;
  line-height: 1.5;
  opacity: 0.9;
}

.hs-btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.hs-btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

/* --- 2. PASEK ZAUFANIA --- */
.hs-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background-color: var(--color-bg-light);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.hs-trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hs-trust-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hs-trust-award-img {
  width: 60px; 
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-trust-award-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hs-trust-text h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
}

.hs-trust-text p {
  margin: 0;
  font-size: 12px;
  color: #666666;
  line-height: 1.4;
}

.hs-trust-awards {
  border-left: 2px dashed var(--color-border);
  padding-left: 20px;
}

/* --- 3. BANER RATY 0% --- */
.hs-installment-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8a0000 100%);
  border-radius: 12px;
  padding: 30px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  box-shadow: 0 10px 20px rgba(195, 0, 0, 0.15);
}

.hs-installment-content {
  max-width: 600px;
}

.hs-installment-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hs-installment-desc {
  font-size: 15px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.hs-installment-badge {
  background-color: #ffffff;
  color: var(--color-primary);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex-shrink: 0;
  text-align: center;
}

.hs-installment-badge span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 1px;
}

/* --- KOTWICA BESTSELLERÓW --- */
#bestsellery {
  scroll-margin-top: 40px; 
  margin-bottom: 50px;
}

/* --- 4. INSPIRACJE --- */
.hs-section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 30px 0;
}

.hs-inspirations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.hs-inspire-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-light);
  text-decoration: none;
  display: block;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.hs-inspire-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.hs-inspire-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 40px 24px 24px 24px;
  color: #ffffff;
}

.hs-inspire-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.hs-inspire-overlay span {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

/* --- 5. DEDYKOWANY OPIEKUN --- */
.hs-advisor {
  display: flex;
  background-color: var(--color-bg-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.hs-advisor-img {
  width: 40%;
  background-size: cover;
  background-position: center;
}

.hs-advisor-content {
  width: 60%;
  padding: 40px;
}

.hs-advisor-content h3 {
  font-size: 22px;
  margin: 0 0 16px 0;
}

.hs-advisor-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  color: #555555;
}

/* --- 6. MODAL KONTAKTOWY (POP-UP) --- */
.hs-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hs-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.hs-modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.hs-modal-overlay.active .hs-modal-content {
  transform: translateY(0);
}

.hs-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999999;
  line-height: 1;
  padding: 0;
}

.hs-modal-close:hover {
  color: var(--color-primary);
}

.hs-modal-header {
  margin-bottom: 20px;
}

.hs-modal-header h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.hs-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

.hs-form-group {
  margin-bottom: 15px;
}

.hs-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}

.hs-form-group input, .hs-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.hs-form-group input:focus, .hs-form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.hs-modal-submit {
  width: 100%;
  margin-top: 10px;
}

/* --- RESPONSyWNOŚĆ --- */
@media (max-width: 992px) {
  .hs-trust-bar { grid-template-columns: repeat(2, 1fr); }
  .hs-advisor { flex-direction: column; }
  .hs-advisor-img { width: 100%; aspect-ratio: 16 / 9; }
  .hs-advisor-content { width: 100%; }
}

@media (max-width: 768px) {
  .hs-hub-wrapper { padding: 0 10px; }
  .hs-hero { padding: 30px 20px; aspect-ratio: 1 / 1; }
  .hs-hero-title { font-size: 24px; }
  
  .hs-installment-banner {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
    gap: 20px;
  }
  .hs-installment-title { justify-content: center; font-size: 22px; }
  .hs-inspirations { grid-template-columns: 1fr; }

  .hs-trust-bar {
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    padding: 16px; 
  }
  .hs-trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px; 
    align-items: center;
  }
  .hs-trust-icon, .hs-trust-award-img { width: 36px; height: 36px; }
  .hs-trust-icon svg { width: 18px; height: 18px; }
  .hs-trust-text h4 { font-size: 12px; margin-bottom: 2px; }
  .hs-trust-text p { font-size: 10px; line-height: 1.3; }
  .hs-trust-awards { border-left: none; padding-left: 0; }
}