/* Скрытие стандартной обертки и шапки темы Битрикс */
.detail-page__header {
  display: none !important;
}
.detail-page,
.detail-page__container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 34px 0px 0px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
@media screen and (max-width: 700px) {
  .detail-page__container {
    padding: 20px 0 50px;
  }
}
@media screen and (max-width: 500px) {
  .detail-page {
    padding-left: 50px !important;
  }
}
/* ==========================================================================
   QazTourism - Standards Database Page Styles
   Designed 1-to-1 matching exact mockup specifications
   ========================================================================== */

:root {
  --sb-navy: #161e61;
  --sb-navy-dark: #122448;
  --sb-gold: #f5a623;
  --sb-gold-gradient: linear-gradient(135deg, #f7b731 0%, #f5a623 100%);
  --sb-cyan: #00a8cc;
  --sb-bg-hero: linear-gradient(180deg, #eef7fc 0%, #f7fcff 100%);
  --sb-border: #e2e8f0;
  --sb-radius: 16px;
  --sb-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sb-page-wrapper {
  font-family: var(--sb-font);
  color: #1e293b;
  background-color: #f8fafc;
  width: 100%;
}

.sb-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Hero Section (Exact Match to Mockup Screenshot)
   -------------------------------------------------------------------------- */
.sb-hero-outer {
  width: 100%;
  background: linear-gradient(180deg, #eef7fc 0%, #f7fcff 100%);
  padding: 88px 0 96px 0;
  position: relative;
  overflow: hidden;
}

/* Checkmarks watermark background pattern */
.sb-hero-outer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 22L18 30L34 14' stroke='%23f5a623' stroke-width='2' stroke-opacity='0.18' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.9;
  pointer-events: none;
}

.sb-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.sb-hero-content {
  max-width: 620px;
}

.sb-breadcrumbs {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.sb-breadcrumbs .gold {
  color: #f5a623;
  text-decoration: none;
  font-weight: 600;
}

.sb-breadcrumbs .sep {
  margin: 0 8px;
  color: #94a3b8;
}

.sb-breadcrumbs .muted {
  color: #64748b;
}

.sb-hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.sb-hero-title .gold {
  color: #f5a623;
}

.sb-hero-title .dark {
  color: #161e61;
}

.sb-hero-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

/* Hero Graphic Illustration (Stack of 4 Books + Cyan Magnifying Glass) */
.sb-hero-graphic {
  position: relative;
  flex-shrink: 0;
  margin-right: 40px;
}

.sb-books-stack {
  width: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.sb-book {
  height: 26px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sb-book.book-1 {
  width: 190px;
  background: #dbe2e8;
}
.sb-book.book-2 {
  width: 220px;
  background: #f5a623;
}
.sb-book.book-3 {
  width: 210px;
  background: #00a8cc;
}
.sb-book.book-4 {
  width: 235px;
  background: #192742;
}

/* Cyan Magnifying Glass */
.sb-magnifier {
  position: absolute;
  top: -45px;
  right: -25px;
  width: 110px;
  height: 110px;
  z-index: 3;
}

.sb-spark {
  position: absolute;
  color: #f5a623;
  font-size: 20px;
  z-index: 2;
}

.sb-spark.spark-1 {
  top: -25px;
  left: 20px;
}

.sb-spark.spark-2 {
  top: 15px;
  left: 0px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Search & Controls Row
   -------------------------------------------------------------------------- */
.sb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}

.sb-search-box {
  position: relative;
  flex: 1;
  max-width: 760px;
}

.sb-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sb-search-input {
  width: 100%;
  height: 50px;
  background: #f0f6fa;
  border: 1px solid #dce8f0;
  border-radius: 16px;
  padding: 0 20px 0 52px;
  font-size: 14px;
  color: #1e293b;
  box-shadow: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.sb-search-input::placeholder {
  color: #a0aec0;
}

.sb-search-input:focus {
  background: #ffffff;
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.sb-sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0 22px;
  height: 48px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sb-sort-label {
  font-size: 14px;
  font-weight: 700;
  color: #122448;
  white-space: nowrap;
}

.sb-sort-select {
  height: 100%;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #f5a623;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23f5a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.sb-sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  margin-bottom: 32px;
}

.sb-sync-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* --------------------------------------------------------------------------
   Catalog Layout (Sidebar + Content Cards)
   -------------------------------------------------------------------------- */
.sb-catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 60px;
}

/* Sidebar Filters */
.sb-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.sb-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: #161e61;
}

.sb-reset-btn {
  background: none;
  border: none;
  color: #f5a623;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.sb-reset-btn:hover {
  text-decoration: underline;
}

.sb-filter-group {
  margin-bottom: 24px;
}

.sb-filter-group:last-child {
  margin-bottom: 0;
}

.sb-filter-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 14px;
}

.sb-filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Checkbox */
.sb-checkbox {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.sb-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.sb-checkmark {
  height: 18px;
  width: 18px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.sb-checkbox:hover input ~ .sb-checkmark {
  border-color: #f5a623;
}

.sb-checkbox input:checked ~ .sb-checkmark {
  background-color: #f5a623;
  border-color: #f5a623;
}

.sb-checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.sb-checkbox input:checked ~ .sb-checkmark:after {
  display: block;
}

.sb-label-text {
  flex: 1;
  font-weight: 500;
}

.sb-count {
  font-size: 12px;
  font-weight: 700;
  color: #f5a623;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Cards Grid Area
   -------------------------------------------------------------------------- */
.sb-content {
  display: flex;
  flex-direction: column;
}

.sb-results-header {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.sb-results-header strong {
  color: #161e61;
  font-weight: 800;
}

.sb-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.sb-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 26px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
}

.sb-card:hover {
  transform: translateY(-2px);
  border-color: #f5a623;
  box-shadow: 0 14px 30px rgba(245, 166, 35, 0.15);
}

.sb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sb-code-badge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.2px;
}

.sb-status-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 12px;
}

.sb-status-badge.status-new {
  background: #fdeed9;
  color: #f5a623;
}

.sb-status-badge.status-updated {
  background: #e0f2fe;
  color: #0284c7;
}

.sb-status-badge.status-active {
  background: #dcfce7;
  color: #16a34a;
}

.sb-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #122448;
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.sb-card-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.sb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.sb-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 12px;
}

.sb-tag:first-child {
  background: #e0f7fa;
  border: none;
  color: #00838f;
}

.sb-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #edf2f7;
}

.sb-price-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-pdf-icon {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #e53e3e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sb-price-text {
  font-size: 15px;
  font-weight: 700;
  color: #00a86b;
}

.sb-btn-access {
  background: linear-gradient(180deg, #f7b731 0%, #f5a623 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

.sb-btn-access:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Pagination (Exact Match to Screenshot)
   -------------------------------------------------------------------------- */
.sb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.sb-page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-page-btn {
  height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #122448;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sb-page-btn:hover:not(.disabled):not(.active) {
  border-color: #f5a623;
  color: #f5a623;
}

.sb-page-btn.active {
  background: linear-gradient(180deg, #f7b731 0%, #f5a623 100%);
  border-color: #f5a623;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.35);
}

.sb-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sb-page-dots {
  color: #122448;
  font-weight: 700;
  font-size: 15px;
  padding: 0 6px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Flawless Mobile & Tablet Layout)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sb-hero-title {
    font-size: 44px;
  }
}

@media (max-width: 992px) {
  .sb-hero-outer {
    padding: 60px 0 70px 0;
  }

  .sb-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }

  .sb-hero-content {
    max-width: 100%;
  }

  .sb-hero-desc {
    margin: 0 auto;
  }

  .sb-hero-graphic {
    margin-right: 0;
  }

  .sb-catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .sb-hero-title {
    font-size: 32px;
  }

  .sb-hero-desc {
    font-size: 14px;
  }

  .sb-controls-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .sb-search-box {
    max-width: 100%;
  }

  .sb-sort-box {
    justify-content: space-between;
    width: 100%;
  }

  .sb-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sb-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }

  .sb-page-btn {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sb-container {
    padding: 0 14px;
  }

  .sb-hero-outer {
    padding: 44px 0 52px 0;
  }

  .sb-hero-title {
    font-size: 26px;
  }

  .sb-books-stack {
    width: 190px;
  }

  .sb-book.book-1 {
    width: 140px;
  }
  .sb-book.book-2 {
    width: 170px;
  }
  .sb-book.book-3 {
    width: 160px;
  }
  .sb-book.book-4 {
    width: 185px;
  }

  .sb-magnifier {
    width: 80px;
    height: 80px;
    top: -35px;
    right: -15px;
  }

  .sb-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .sb-code-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .sb-status-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .sb-card-title {
    font-size: 15px;
  }

  .sb-card-desc {
    font-size: 12px;
  }

  .sb-btn-access {
    height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }
}
