/**
 * Секции #hr-product и #ready-products: классы и значения как на interfinance.kz
 * (styles.css — .hr-product-*, responsive.css — 1023px / 767px).
 * Селекторы привязаны к id секций, чтобы Bootstrap .btn / .container не ломали вид.
 */

section#hr-product.hr-product-section,
section#ready-products.hr-product-section {
  padding: 88px 20px;
  scroll-margin-top: 90px;
  font-family: Arial, Helvetica, sans-serif;
}

section#hr-product.hr-product-section {
  background: #f8f9fc;
}

section#ready-products.hr-product-section {
  position: relative;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(15, 23, 42, 0.03)),
    #f8fafc;
}

section#hr-product.hr-product-section .container.hr-product-container,
section#ready-products.hr-product-section .container.hr-product-container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* P2P: плитки слева, текст справа (зеркало HR) */
section#ready-products.hr-product-section .container.hr-product-container {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

section#ready-products.hr-product-section .hr-product-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  text-align: left;
}

section#ready-products.hr-product-section .hr-product-grid {
  grid-column: 1;
  grid-row: 1;
}

section#hr-product.hr-product-section .hr-product-copy,
section#ready-products.hr-product-section .hr-product-copy {
  max-width: 500px;
}

section#hr-product.hr-product-section .hr-product-eyebrow,
section#ready-products.hr-product-section .hr-product-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #007bff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

section#hr-product.hr-product-section .hr-product-copy h2,
section#ready-products.hr-product-section .hr-product-copy h2 {
  color: #191b45;
  font-size: 2.55rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
}

section#hr-product.hr-product-section .hr-product-copy p,
section#ready-products.hr-product-section .hr-product-copy p {
  color: #425466;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

section#hr-product.hr-product-section .hr-product-actions,
section#ready-products.hr-product-section .hr-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Как .btn + .hr-product-actions .btn на interfinance.kz */
section#hr-product.hr-product-section .hr-product-actions .btn,
section#ready-products.hr-product-section .hr-product-actions .btn {
  padding: 0.75rem 2.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
  box-sizing: border-box;
}

section#ready-products.hr-product-section .hr-product-actions .btn-secondary-custom {
  background: #fff;
  color: #007bff;
  border: 1px solid #007bff;
}

section#ready-products.hr-product-section .hr-product-actions .btn-secondary-custom:hover {
  background: #f8f9fa;
  color: #0056b3;
  border-color: #0056b3;
}

section#hr-product.hr-product-section .hr-product-actions .hr-product-btn,
section#ready-products.hr-product-section .hr-product-actions .hr-product-btn {
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.18);
}

section#hr-product.hr-product-section .hr-product-actions .hr-product-btn:hover,
section#ready-products.hr-product-section .hr-product-actions .hr-product-btn:hover {
  background: #0056b3;
}

section#hr-product.hr-product-section .hr-product-grid,
section#ready-products.hr-product-section .hr-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

section#hr-product.hr-product-section .hr-product-tile,
section#ready-products.hr-product-section .hr-product-tile {
  min-height: 190px;
  background: #fff;
  border: 1px solid rgba(0, 123, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

section#hr-product.hr-product-section .hr-product-tile i,
section#ready-products.hr-product-section .hr-product-tile i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  background: #eaf4ff;
  color: #007bff;
  border-radius: 8px;
  font-size: 1.25rem;
}

section#hr-product.hr-product-section .hr-product-tile i[class*="fa-"],
section#ready-products.hr-product-section .hr-product-tile i[class*="fa-"] {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

section#hr-product.hr-product-section .hr-product-tile h3,
section#ready-products.hr-product-section .hr-product-tile h3 {
  color: #191b45;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
}

section#hr-product.hr-product-section .hr-product-tile p,
section#ready-products.hr-product-section .hr-product-tile p {
  color: #52606d;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1023px) {
  section#hr-product.hr-product-section .container.hr-product-container,
  section#ready-products.hr-product-section .container.hr-product-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  section#ready-products.hr-product-section .hr-product-copy,
  section#ready-products.hr-product-section .hr-product-grid {
    grid-column: auto;
    grid-row: auto;
  }

  section#hr-product.hr-product-section .hr-product-copy,
  section#ready-products.hr-product-section .hr-product-copy {
    margin: 0 auto;
  }

  section#hr-product.hr-product-section .hr-product-actions,
  section#ready-products.hr-product-section .hr-product-actions {
    justify-content: center;
  }

  section#hr-product.hr-product-section .hr-product-grid,
  section#ready-products.hr-product-section .hr-product-grid {
    max-width: 720px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  section#hr-product.hr-product-section,
  section#ready-products.hr-product-section {
    padding: 56px 20px;
  }

  section#hr-product.hr-product-section .hr-product-copy h2,
  section#ready-products.hr-product-section .hr-product-copy h2 {
    font-size: 2rem;
  }

  section#hr-product.hr-product-section .hr-product-copy p,
  section#ready-products.hr-product-section .hr-product-copy p {
    font-size: 1rem;
  }

  section#hr-product.hr-product-section .hr-product-grid,
  section#ready-products.hr-product-section .hr-product-grid {
    grid-template-columns: 1fr;
  }

  section#hr-product.hr-product-section .hr-product-tile,
  section#ready-products.hr-product-section .hr-product-tile {
    min-height: 0;
    padding: 22px 20px;
  }
}
