/* ===== RESET ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
  font-family: "Inter", Arial, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #1c1c1c;
  line-height: 1.6;
  background: #ffffff;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== ACCESSIBILITY ===== */

.skip-link {
  position: absolute;
  left: 20px;
  top: -60px;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

#main-content,
#main-navigation {
  scroll-margin-top: 120px;
}

/* ===== HEADER ===== */

.site-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e9eef4;
}

.site-topbar {
  background: #ffffff;
}

.site-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-umb {
  display: block;
  max-height: 72px;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-left: 20px;
}

.site-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.utility-link {
  color: #344054;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
  transition: color 0.2s ease;
}

.utility-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e5007d;
  transition: width 0.25s ease;
}

.utility-link:hover,
.utility-link:focus {
  color: #122033;
}

.utility-link:hover::after,
.utility-link:focus::after {
  width: 100%;
}

/* ===== LANGUAGE SWITCHER ===== */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 4px;
}

.lang-switcher a,
.lang-switcher .active-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.lang-switcher a {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid rgba(31, 42, 68, 0.16);
}

.lang-switcher a:hover {
  background: #f7f9fc;
  border-color: rgba(31, 42, 68, 0.3);
}

.lang-switcher a:focus {
  outline: 2px solid #1f2a44;
  outline-offset: 2px;
}

.lang-switcher .active-lang {
  background: #1f2a44;
  color: #ffffff;
  border: 1px solid #1f2a44;
}

/* ===== AUTH ===== */

.auth-user {
  color: #667085;
  font-weight: 500;
  font-size: 0.95rem;
}

.auth-link {
  position: relative;
  text-decoration: none;
  color: #1f2a44;
  font-weight: 700;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.auth-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #e5007d;
  transition: width 0.25s ease;
}

.auth-link:hover,
.auth-link:focus {
  color: #122033;
}

.auth-link:hover::after,
.auth-link:focus::after {
  width: 100%;
}

.logout-form {
  margin: 0;
}

.auth-link-button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* ===== MAIN NAV ===== */

.mainnav {
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #e6ebf2;
}

.mainnav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  color: #1f2a44;
  background: #f5f7fb;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-link:hover,
.home-link:focus {
  background: #1f2a44;
  color: #ffffff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  margin-left: auto;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #1f2a44;
  display: block;
  border-radius: 999px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
}

.menu-link {
  color: #122033;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 20px 0;
  position: relative;
  display: block;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.menu-link:hover,
.menu-link:focus {
  color: #000000;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 0;
  height: 2px;
  background: #ff4fa3;
  transition: width 0.25s ease;
}

.menu-link:hover::after,
.menu-link:focus::after {
  width: 100%;
}

.menu-link:focus,
.mega-heading:focus,
.system-links a:focus,
.home-link:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* ===== MEGA MENU ===== */

.mega-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  padding: 10px 0;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  display: none;
  z-index: 9999;
}

.menu-item:hover .mega-menu,
.menu-item:focus-within .mega-menu {
  display: block;
  animation: fadeDown 0.18s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-container {
  padding: 6px 0;
}

.mega-columns {
  display: block;
}

.mega-heading {
  display: block;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
  color: #344054;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-heading:hover,
.mega-heading:focus {
  background: #f7f9fc;
  color: #122033;
}

.mega-heading::after {
  display: none;
}

/* ===== SYSTEM BAR ===== */

.system-bar {
  background: #164449;
  color: #ffffff;
  padding: 22px 0;
}

.system-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

.system-status:hover {
  opacity: 0.85;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
}

.system-ok .status-dot {
  background: #2ecc71;
}

.system-alert .status-dot {
  background: #e74c3c;
}

.system-warning .status-dot {
  background: #f39c12;
}

.system-info .status-dot {
  background: #3498db;
}

.system-links {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.system-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.system-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.system-links a:hover::after,
.system-links a:focus::after {
  width: 100%;
}

/* ===== PAGE / FOOTER ===== */

.page-content {
  padding: 40px 0 70px;
  background: #f8faf7;
}

.footer {
  padding: 35px 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 60px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* ===== ALERT PAGE ===== */

.alert-page {
  padding: 80px 0;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.alert-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.alert-alert .alert-indicator {
  background: #e74c3c;
}

.alert-warning .alert-indicator {
  background: #f39c12;
}

.alert-info .alert-indicator {
  background: #3498db;
}

.alert-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.alert-content {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-outline {
  border: 2px solid #164449;
  color: #164449;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: #164449;
  color: #ffffff;
}

/* ===== SEARCH / GLOBAL UI ===== */

.hidden {
  display: none;
}

.alert-box {
  background: #f5f7fb;
  border-left: 4px solid #ff4fa3;
  padding: 18px;
  margin: 25px 0;
  border-radius: 4px;
  font-size: 15px;
}

.search-input-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 18px 28px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #eef3ff;
  color: #1f2a44;
}

.badge-internal {
  background: #e6eef9;
  color: #1f2a44;
}

.badge-auth {
  background: #fff4f4;
  color: #c62828;
}

.restricted {
  opacity: 0.9;
}

/* ===== SEARCH PAGE ===== */

.search-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}

.search-item,
.search-card {
  padding-bottom: 18px;
  border-bottom: 1px solid #e6ebf2;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.search-item:hover,
.search-card:hover {
  background: #fafbfc;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.search-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2a44;
  text-decoration: none;
}

.search-title:hover {
  text-decoration: underline;
}

.search-title.locked {
  color: #555;
}

.search-snippet {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

.search-snippet mark {
  background: #fff2a8;
  padding: 2px 4px;
  border-radius: 3px;
}

.snippet-locked {
  font-style: italic;
  color: #777;
}

.search-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.search-actions {
  margin-top: 12px;
}

.search-page h2 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.search-card:first-child {
  border-left: 4px solid #1f2a44;
  padding-left: 12px;
}

.search-fallback {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e6ebf2;
}

.search-fallback h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #344054;
}

/* ===== ACTION BUTTONS ===== */

.action-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.action-btn:hover {
  transform: translateY(-1px);
}

.action-btn--primary {
  background: #1f2a44;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.16);
}

.action-btn--primary:hover {
  background: #e5007d;
  color: #ffffff;
}

.action-btn--secondary {
  background: #f7f8fa;
  color: #1f2a44;
  border-color: #d8dee8;
}

.action-btn--secondary:hover {
  background: #edf1f6;
  color: #122033;
}

.action-btn__icon {
  font-size: 1rem;
  line-height: 1;
}

.secondary-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-note {
  margin: 0;
  font-size: 0.85rem;
  color: #667085;
  line-height: 1.4;
}

.action-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
}

.mini-badge--internal {
  background: #eef2f6;
  color: #344054;
}

.mini-badge--auth {
  background: #fff1f3;
  color: #b42318;
}

/* ===== KB GRID ===== */

/* ===== RECOMMENDED TOOLS ===== */

.recommended-tools {
  width: 100%;
  padding: 42px 0 30px;
  margin-top: 48px;
}

.recommended-tools-inner {
  width: 100%;
  padding: 0 80px 28px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.recommended-label {
  font-weight: 700;
  font-size: 1.7rem;
  color: #1f2a44;
  flex-shrink: 0;
  padding-top: 10px;
}

.recommended-logos {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 24px;
  width: 100%;
}

.tool-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.tool-logo img {
  display: block;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ===== CHAT ===== */

#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1f2a44;
  color: #ffffff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#chat-window {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 350px;
  height: 500px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== ALERT LIST ===== */

.alert-list {
  padding: 30px 0 10px;
}

.alert-list h1 {
  margin-bottom: 28px;
  font-size: 2.2rem;
  color: #1f2a44;
}

.alert-card {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(20, 30, 60, 0.05);
}

.alert-body {
  flex: 1;
}

.alert-body h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #1f2a44;
}

.alert-content p {
  margin: 0 0 14px;
}

.alert-content ul,
.alert-content ol {
  margin: 0 0 14px 20px;
}

.alert-content li {
  margin-bottom: 6px;
}

.alert-content a {
  color: #1f2a44;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 42, 68, 0.2);
}

.alert-content a:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

/* ===== KB SIDEBAR HELP ===== */

.kb-sidebar-nav {
  padding-bottom: 10px;
}

.kb-sidebar-help {
  margin-top: 10px;
  padding: 18px 18px 6px;
  border-top: 1px solid #e7edf3;
}

.kb-sidebar-help-title {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: #122033;
}

.kb-sidebar-help-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #667085;
}

.kb-sidebar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1f2a44;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(31, 42, 68, 0.12);
}

.kb-sidebar-help-button:hover {
  background: #e5007d;
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .site-header-inner {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-tools {
    width: 100%;
    gap: 10px 14px;
    /*    
    justify-content: flex-start;
    */
  }

  .rwdd {
    display: none
  }

  .menu-item a {
    margin-left: 20px;
  }

  .mainnav-inner {
    min-height: 56px;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    z-index: 9999;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    padding: 8px 0;
  }

  .menu.active {
    display: flex;
  }

  .menu-item {
    width: 100%;
  }

  .menu-link {
    width: 100%;
    padding: 14px 18px;
  }

  .menu-link::after {
    display: none;
  }

  .mega-menu {
    display: none !important;
  }

  .system-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .alert-meta {
    flex-direction: column;
    gap: 8px;
  }
}

@media (min-width: 993px) {
  .menu {
    display: flex !important;
    position: static;
    width: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .recommended-tools-inner {
    flex-direction: column;
    gap: 20px;
    padding: 0 28px 22px;
  }

  .recommended-label {
    font-size: 1.35rem;
    padding-top: 0;
  }

  .recommended-logos {
    justify-content: flex-start;
    gap: 24px 32px;
  }

  .tool-logo img {
    max-height: 52px;
  }
}

@media (max-width: 700px) {
  .alert-card {
    padding: 18px;
    gap: 14px;
  }

  .alert-list h1 {
    font-size: 1.8rem;
  }

  .alert-body h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .recommended-tools {
    padding: 28px 0 20px;
    margin-top: 30px;
  }

  .recommended-tools-inner {
    gap: 16px;
    padding: 0 20px 16px;
  }

  .recommended-label {
    font-size: 1.15rem;
  }

  .recommended-logos {
    justify-content: flex-start;
    gap: 18px 24px;
  }

  .tool-logo {
    min-height: 52px;
  }

  .tool-logo img {
    max-height: 42px;
  }
}


/* Korekta wysokości i odstępów w headerze */
.site-header-inner {
  min-height: 70px; /* Zmniejszone z 92px */
  padding: 10px 0;
}

.logo-umb {
  max-height: 60px; /* Zmniejszone z 72px */
}

/* Usunięcie linii pod linkami w menu górnym (topbar) */
.utility-link::after, .auth-link::after {
  display: none;
}

.utility-link, .auth-link {
  font-size: 0.85rem;
  color: #333;
}

/* Nawigacja główna - ciemniejszy tekst i mniejsze paddingi */
.mainnav {
  border-top: none;
}

.menu-link {
  padding: 15px 0; /* Zmniejszone dla smukłości */
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #122033;
}

.menu-link::after {
  bottom: 0px; /* Linia przyklejona do dołu paska */
}

/* Układ Hero */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 380px; /* Stała szerokość karty po prawej */
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
}

.hero-main h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0;
  color: #fff;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 600px;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* KARTA BOCZNA (Ta biała z prawej) */
.hero-side-card {
  background: #fff;
  border-radius: 20px;
  padding: 0px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  color: #1c1c1c;
}

.hero-side-icon {
  background: #f4f6fb;
  color: #1f2a44;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-side-kicker {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.hero-side-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-side-text {
  font-size: 0.95rem;
  color: #475467;
  margin-bottom: 30px;
}

/* PRZYCISKI W KARCIE */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #164449; /* Kolor ze zdjęcia */
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin-bottom: 12px;
}

.btn-primary:hover {
  background: #0d2b2e;
}

.hero-btn-outline {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: #344054;
  text-decoration: none;
  font-weight: 600;
}

/* WYSZUKIWARKA */
.hero-search-wrap {
  background: #fff;
  border-radius: 50px;
  padding: 5px 5px 5px 25px;
  display: flex;
  align-items: center;
  max-width: 650px;
}

.hero-search input {
  border: none;
  padding: 15px;
  font-size: 1rem;
  width: 100%;
  outline: none;
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-umb {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  max-width: 100%;
}

.utility-link {
  color: #344054;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

.auth-link {
  position: relative;
  text-decoration: none;
  color: #1f2a44;
  font-weight: 500;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.mainnav {
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #e6ebf2;
}

.mainnav-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  color: #2d6f2e;
  background: transparent;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-link:hover,
.home-link:focus {
  background: transparent;
  color: #1f5a24;
  transform: none;
}



.menu-link {
  color: #111827;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 18px 0;
  position: relative;
  display: block;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.menu-link:hover,
.menu-link:focus {
  color: #000000;
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 0;
  height: 2px;
  background: #ff4fa3;
  transition: width 0.25s ease;
}

.menu-link:hover::after,
.menu-link:focus::after {
  width: 100%;
}

.hero-main {
  max-width: 760px;
  width: 100%;
}

.hero-lead,
.hero-search-wrap {
  max-width: 760px;
  width: 100%;
}

.hero-search {
  width: 100%;
}


/* ===== MENU TOP / MAIN NAV – większe i luźniejsze ===== */

.mainnav-inner {
  min-height: 62px;
  gap: 30px;
}

.menu {
  gap: 38px;
}

.menu-link {
  font-size: 0.98rem;
  font-weight: 600;
  padding: 20px 0;
  letter-spacing: 0.01em;
}


/* ===== WIĘKSZY DOMEK ===== */

.home-link {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
}

.home-link svg {
  width: 22px;
  height: 22px;
}

/* ===== STOPKA JAK NA MOCKUPIE ===== */

.site-footer {
  background:
    linear-gradient(135deg, #08203a 0%, #0b2340 55%, #0f2a4a 100%);
  color: #ffffff;
  margin-top: 0;
  border-top: 0;
}

.site-footer-inner {
  min-height: 108px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
}

.site-footer-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
}

.site-footer-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus {
  color: #ffffff;
}

.site-footer-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

/* stary footer wyłączamy wizualnie */
.footer {
  display: none;
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }

  .site-footer-nav {
    gap: 18px 24px;
  }

  .site-footer-logo {
    height: 46px;
  }
}


/* ===== ACCESS DENIED / 403 ===== */

.access-denied-page {
  min-height: 58vh;
  padding: 72px 24px 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(47, 125, 50, 0.08), transparent 34%),
    linear-gradient(180deg, #f8faf7 0%, #ffffff 100%);
}

.access-denied-card {
  width: 100%;
  max-width: 620px;
  padding: 42px 40px 38px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.access-denied-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  border-radius: 24px;
  background: #eef6ec;
  color: #2f7d32;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-denied-kicker {
  margin: 0 0 10px;
  color: #e5007d;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-denied-card h1 {
  margin: 0;
  color: #122033;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.access-denied-card h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: #2f7d32;
}

.access-denied-description {
  max-width: 500px;
  margin: 22px auto 0;
  color: #344054;
  font-size: 1.04rem;
  line-height: 1.75;
}

.access-denied-note {
  margin: 24px auto 0;
  max-width: 500px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.6;
}

.access-denied-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.access-denied-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.access-denied-button:hover,
.access-denied-button:focus {
  transform: translateY(-1px);
}

.access-denied-button:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.access-denied-button--primary {
  background: #1f2a44;
  color: #ffffff;
  border: 1px solid #1f2a44;
  box-shadow: 0 10px 22px rgba(31, 42, 68, 0.16);
}

.access-denied-button--primary:hover,
.access-denied-button--primary:focus {
  background: #e5007d;
  border-color: #e5007d;
  color: #ffffff;
}

.access-denied-button--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #d8e0e8;
}

.access-denied-button--secondary:hover,
.access-denied-button--secondary:focus {
  background: #f8fafc;
  color: #122033;
  border-color: #cbd5e1;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 700px) {
  .access-denied-page {
    padding: 48px 18px 64px;
  }

  .access-denied-card {
    padding: 32px 22px 28px;
    border-radius: 18px;
  }

  .access-denied-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }

  .access-denied-icon svg {
    width: 36px;
    height: 36px;
  }

  .access-denied-actions {
    flex-direction: column;
  }

  .access-denied-button {
    width: 100%;
  }
}

/* ===== FIX: GRANATOWA BELKA NAWIGACJI ===== */

.mainnav {
  background: #0b2340 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.mainnav-inner {
  min-height: 62px;
}

.home-link {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

.home-link:hover,
.home-link:focus {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.home-link svg {
  color: currentColor;
}

.menu-link {
  color: #ffffff !important;
}

.menu-link:hover,
.menu-link:focus {
  color: #ffffff !important;
}

.menu-link::after {
  background: #ff4fa3 !important;
}

.hamburger span {
  background: #ffffff !important;
}

/* mobile dropdown */
@media (max-width: 992px) {
  .mainnav {
    background: #0b2340 !important;
  }

  .mainnav-inner {
    min-height: 58px;
  }

  .menu {
    background: #0b2340 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
  }

  .menu-link {
    color: #ffffff !important;
  }

  .menu-item a {
    margin-left: 0;
  }

  .mega-menu {
    display: none !important;
  }
}

/* ===== FIX: RÓŻOWY DOMEK HOME ===== */

.home-link {
  color: #e5007d !important;
  background: rgba(255, 255, 255, 0.10) !important;
}

.home-link:hover,
.home-link:focus {
  color: #ffffff !important;
  background: #e5007d !important;
  transform: translateY(-1px);
}

.home-link svg {
  color: currentColor !important;
  fill: currentColor !important;
}

/* ===== SEARCH RESULTS – COMPACT VERSION ===== */

.search-page {
  max-width: 980px;
  padding-top: 42px;
  padding-bottom: 64px;
}

.search-page-header {
  margin-bottom: 22px;
}

.search-page-header h1 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
}

.search-page-header h1::after {
  width: 44px;
  height: 3px;
  margin-top: 12px;
}

.search-form {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.search-form input {
  min-height: 46px;
  font-size: 0.95rem;
}

.search-form button {
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.92rem;
}

.search-summary {
  margin: 16px 0 16px;
  font-size: 0.94rem;
}

.search-results {
  gap: 12px;
}

.search-card {
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045);
}

.search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.search-card-link {
  padding: 17px 20px 15px;
}

.search-card-top {
  margin-bottom: 8px;
  gap: 12px;
}

.search-title {
  font-size: 1.05rem;
  line-height: 1.28;
  font-weight: 650;
}

.search-snippet {
  max-width: 760px;
  font-size: 0.92rem;
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-badge {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 650;
}

.search-access-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-card-footer {
  margin-top: 10px;
}

.search-button {
  font-size: 0.86rem;
  font-weight: 700;
}

.search-feedback {
  padding: 10px 20px 12px;
  gap: 8px;
  font-size: 0.8rem;
}

.search-feedback-btn {
  min-height: 28px;
  padding: 5px 10px;
  font-size: 0.78rem;
}

.search-empty {
  margin-top: 20px;
  padding: 26px 26px;
  border-radius: 18px;
}

.search-empty h2 {
  font-size: 1.18rem;
}

.search-empty p {
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .search-page {
    padding-top: 30px;
  }

  .search-card-link {
    padding: 16px 16px 14px;
  }

  .search-feedback {
    padding: 10px 16px 12px;
  }

  .search-title {
    font-size: 1rem;
  }
}
/* ===== SEARCH PAGE – BIG SEARCH, COMPACT RESULTS ===== */

/* większe pole wyszukiwania jak na głównej */
.search-page {
  max-width: 1080px;
  padding-top: 44px;
}

.search-page-header {
  margin-bottom: 22px;
}

.search-form {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e3e9f0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-form input {
  min-height: 56px;
  padding: 0;
  font-size: 1rem;
}

.search-form button {
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
}

/* mniej miejsca nad wynikami */
.search-summary {
  margin: 14px 0 12px;
}

/* karty bliżej siebie */
.search-results {
  gap: 7px;
}

/* wynik jako niski, poziomy kafelek */
.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-radius: 13px;
  box-shadow: none;
  border: 1px solid #e7ecf2;
  background: #ffffff;
  overflow: hidden;
}

.search-card:hover {
  transform: none;
  border-color: #d6dee8;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.055);
}

/* lewa część wyniku */
.search-card-link {
  min-width: 0;
  padding: 11px 16px 10px;
}

.search-card-top {
  display: block;
  margin: 0;
}

/* ukrycie informacji: artykuł / punkt pomocy / restricted label */
.search-badges,
.search-badge,
.search-badge--restricted {
  display: none !important;
}

/* tytuł mniejszy, maks 1 linia */
.search-title {
  margin: 0;
  color: #122033;
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* intro maks 1 linia */
.search-snippet {
  margin: 4px 0 0;
  max-width: none;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ostrzeżenie też ma być niskie */
.search-access-warning {
  margin-top: 6px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.3;
}

/* link "Przejdź" pod intro, ale subtelny */
.search-card-footer {
  margin-top: 5px;
}

.search-button {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e5007d;
}

/* prawa część: czy wynik pomocny */
.search-feedback {
  width: 190px;
  min-width: 190px;
  padding: 9px 12px;
  border-top: 0;
  border-left: 1px solid #eef2f6;
  background: #fbfcfd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-content: center;
  flex-wrap: wrap;
  color: #667085;
  font-size: 0.74rem;
  line-height: 1.25;
  text-align: center;
}

.search-feedback span {
  width: 100%;
}

.search-feedback-btn {
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.search-feedback.is-done {
  color: #16723a;
  background: #f3faf5;
}

/* gdy nie ma feedbacku, link zajmuje całą szerokość */
.search-card:not(:has(.search-feedback)) {
  grid-template-columns: 1fr;
}

/* stary fix na pierwszy wynik */
.search-card:first-child {
  border-left: 1px solid #e7ecf2 !important;
  padding-left: 0 !important;
}

/* mobile: feedback wraca pod spód, ale nadal kompaktowy */
@media (max-width: 760px) {
  .search-form {
    min-height: auto;
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 12px;
  }

  .search-form input {
    min-height: 48px;
    padding: 0 8px;
  }

  .search-form button {
    min-height: 48px;
    width: 100%;
  }

  .search-card {
    grid-template-columns: 1fr;
  }

  .search-card-link {
    padding: 12px 14px 10px;
  }

  .search-feedback {
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid #eef2f6;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 14px 10px;
  }

  .search-feedback span {
    width: auto;
  }
}

/* ===== SEARCH – usuń żółte podświetlenia ===== */

/* podświetlenie trafionych słów */
.search-snippet mark {
  background: #f1f5f9 !important;
  color: #122033 !important;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(229, 0, 125, 0.35);
}

/* ostrzeżenie o ograniczonym dostępie bez żółtego */
.search-access-warning {
  background: #f8fafc !important;
  border-color: #e6ebf2 !important;
  color: #667085 !important;
}

/* jeżeli gdzieś łapie globalny mark */
mark {
  background: #f1f5f9 !important;
  color: #122033 !important;
  border-radius: 4px;
  padding: 1px 4px;
}

/* ===== FIX: MARK / PODŚWIETLENIE WYNIKÓW ===== */

mark,
.search-snippet mark,
.search-title mark {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #122033 !important;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 rgba(229, 0, 125, 0.35);
}

/* ===== SEARCH – MARK bardziej widoczny, ale nie krzyczący ===== */

mark,
.search-snippet mark,
.search-title mark {
  background: #ffe7f3 !important;
  background-color: #ffe7f3 !important;
  color: #122033 !important;
  padding: 1px 5px;
  border-radius: 5px;
  box-shadow: inset 0 -2px 0 rgba(229, 0, 125, 0.22);
}

/* ===== SEARCH INPUT – więcej oddechu z lewej ===== */

.search-form {
  padding-left: 28px !important;
}

.search-form input {
  padding-left: 10px !important;
  padding-right: 14px !important;
  color: #122033;
}

.search-form input::placeholder {
  color: #7b8493;
  opacity: 1;
  font-weight: 400;
}

/* ===== SEARCH – spokojne podświetlenie trafień ===== */

mark,
.search-snippet mark,
.search-title mark {
  background: #fff3d6 !important;
  background-color: #fff3d6 !important;
  color: #122033 !important;
  padding: 1px 5px;
  border-radius: 5px;
  box-shadow: inset 0 -2px 0 rgba(180, 118, 0, 0.22);
}
/* ===== SEARCH RESULTS – LIGHT CLEAN VERSION ===== */

.search-page-modern {
  max-width: 980px;
  margin: 0 auto;
  padding: 38px 24px 70px;
}

/* header strony */

.search-hero {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e7edf3;
}

.search-eyebrow {
  margin: 0 0 8px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-hero h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.search-hero-text {
  max-width: 660px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 1rem;
  line-height: 1.65;
}

/* formularz */

.search-form-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  max-width: 720px;
}

.search-form-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-form-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  pointer-events: none;
}

.search-form-modern input {
  width: 100%;
  min-height: 50px;
  padding: 0 17px 0 48px;
  border: 1px solid #d8e0e8;
  border-radius: 999px;
  background: #ffffff;
  color: #122033;
  font: inherit;
  outline: none;
}

.search-form-modern input:focus {
  border-color: #b9c6d4;
  box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.06);
}

.search-form-modern button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid #1f2a44;
  border-radius: 999px;
  background: #1f2a44;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.search-form-modern button:hover,
.search-form-modern button:focus {
  background: #e5007d;
  border-color: #e5007d;
}

/* podsumowanie */

.search-summary-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  color: #667085;
  font-size: 0.94rem;
}

.search-summary-modern strong {
  color: #111827;
  font-weight: 650;
}

.search-count {
  color: #98a2b3;
  font-size: 0.88rem;
}

/* lista wyników */

.search-results-modern {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e7edf3;
}

.search-card-modern {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid #e7edf3;
  background: transparent;
}

.search-card-modern:hover .search-title a {
  color: #e5007d;
}

.search-card-main {
  min-width: 0;
}

/* typ wyniku */

.search-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.search-type-badge,
.search-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 650;
}

.search-type-badge {
  background: #f2f4f7;
  color: #475467;
}

.search-type-badge--service {
  background: #eef2f6;
  color: #1f2a44;
}

.search-type-badge--instruction {
  background: #eef4ff;
  color: #315b9d;
}

.search-type-badge--article {
  background: #fff3f8;
  color: #b40063;
}

.search-type-badge--login {
  background: #f4f1ff;
  color: #5b3fb0;
}

.search-access-badge {
  background: #fff7ed;
  color: #b45309;
}

/* treść wyniku */

.search-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.search-title a {
  color: #111827;
  text-decoration: none;
}

.search-title a:hover,
.search-title a:focus {
  color: #e5007d;
}

.search-snippet {
  max-width: 760px;
  margin: 9px 0 0;
  color: #667085;
  font-size: 0.96rem;
  line-height: 1.65;
}

.search-snippet mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: #fff0a6;
  color: inherit;
}

.search-access-warning {
  max-width: 720px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* akcje */

.search-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.search-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-action--primary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #cfd8e3;
}

.search-action--primary:hover,
.search-action--primary:focus {
  background: #1f2a44;
  border-color: #1f2a44;
  color: #ffffff;
}

.search-action--secondary {
  background: transparent;
  color: #667085;
  border: 1px solid transparent;
}

.search-action--secondary:hover,
.search-action--secondary:focus {
  color: #e5007d;
  background: #fff5fa;
}

/* feedback mały, mało widoczny */

.search-feedback-compact {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  opacity: 0.46;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.search-card-modern:hover .search-feedback-compact,
.search-feedback-compact:focus-within {
  opacity: 1;
  background: #f8fafc;
}

.search-feedback-label {
  margin-right: 2px;
  color: #98a2b3;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 500;
}

.search-feedback-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  background: #ffffff;
  color: #98a2b3;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-feedback-icon--yes:hover,
.search-feedback-icon--yes:focus {
  color: #216b2a;
  border-color: #bfd8bf;
  background: #f6fbf6;
}

.search-feedback-icon--no:hover,
.search-feedback-icon--no:focus {
  color: #c9006d;
  border-color: #f1bfd8;
  background: #fff7fb;
}

.search-feedback.is-sending {
  opacity: 0.35;
  pointer-events: none;
}

.search-feedback.is-done {
  opacity: 1;
  padding: 6px 10px;
  color: #667085;
  background: #f8fafc;
  font-size: 0.78rem;
  border-radius: 999px;
}

.search-feedback.is-error {
  opacity: 1;
  background: #fff7f7;
}

.search-feedback.is-error::after {
  content: "Błąd";
  color: #b42318;
  font-size: 0.72rem;
}

/* empty state */

.search-empty-modern {
  margin-top: 22px;
  padding: 28px 0;
  border-top: 1px solid #e7edf3;
}

.search-empty-modern h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.25rem;
  line-height: 1.3;
}

.search-empty-modern p {
  max-width: 620px;
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

.search-empty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #1f2a44;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.search-empty-button:hover,
.search-empty-button:focus {
  background: #e5007d;
}

/* accessibility helper */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
}

/* responsive */

@media (max-width: 760px) {
  .search-page-modern {
    padding: 28px 16px 54px;
  }

  .search-form-modern {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form-modern button {
    width: 100%;
  }

  .search-summary-modern {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .search-card-modern {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-feedback-compact {
    justify-self: start;
  }

  .search-card-actions {
    flex-direction: column;
  }

  .search-action {
    width: 100%;
  }
}

/* ===== SEARCH RESULTS – CLEAN MOCKUP STYLE ===== */

.search-page-clean {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.search-clean-header {
  margin-bottom: 26px;
}

.search-clean-header h1 {
  margin: 0 0 22px;
  color: #0b1437;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.search-clean-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-clean-input-wrap {
  position: relative;
}

.search-clean-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d89a8;
  pointer-events: none;
}

.search-clean-form input {
  width: 100%;
  min-height: 62px;
  padding: 0 24px 0 60px;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0b1437;
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.search-clean-form input:focus {
  border-color: #b8c5dc;
  box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.06);
}

.search-clean-form button {
  min-height: 62px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  background: #08143f;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 20, 63, 0.14);
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-clean-form button:hover,
.search-clean-form button:focus {
  background: #e5007d;
  transform: translateY(-1px);
}

.search-clean-panel {
  padding: 34px 34px 22px;
  border: 1px solid #edf1f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
}

.search-clean-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: #59657c;
  font-size: 0.98rem;
}

.search-clean-summary p {
  margin: 0;
}

.search-clean-summary strong {
  color: #0b1437;
  font-weight: 700;
}

.search-clean-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-clean-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid #edf1f6;
}

.search-clean-item:first-child {
  border-top: 0;
}

.search-clean-symbol {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5fb;
  color: #2b66c9;
}

.search-clean-symbol svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-clean-item--instruction .search-clean-symbol {
  background: #eef4ff;
  color: #2563eb;
}

.search-clean-item--article .search-clean-symbol {
  background: #fff0f8;
  color: #d12f92;
}

.search-clean-item--ticket .search-clean-symbol {
  background: #eef8f1;
  color: #23834a;
}

.search-clean-item--info .search-clean-symbol {
  background: #f4f1ff;
  color: #6d4ad8;
}

.search-clean-content {
  min-width: 0;
}

.search-clean-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.search-clean-type {
  display: inline-flex;
  align-items: center;
  color: #5d6a82;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.search-clean-type--instruction {
  color: #2563eb;
}

.search-clean-type--article {
  color: #d12f92;
}

.search-clean-type--ticket {
  color: #23834a;
}

.search-clean-type--info {
  color: #6d4ad8;
}

.search-clean-access {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 650;
}

.search-clean-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.34;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.search-clean-title a {
  color: #0b1437;
  text-decoration: none;
}

.search-clean-title a:hover,
.search-clean-title a:focus {
  color: #e5007d;
}

.search-clean-snippet {
  max-width: 760px;
  margin: 7px 0 0;
  color: #4d5871;
  font-size: 0.95rem;
  line-height: 1.58;
}

.search-clean-snippet mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: #fff1a8;
  color: inherit;
}

.search-clean-warning {
  margin-top: 10px;
  max-width: 720px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-clean-side {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 4px;
}

.search-clean-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.search-clean-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #d8e2f0;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.search-clean-action:hover,
.search-clean-action:focus {
  background: #f8fbff;
  border-color: #b9ccec;
  color: #0b1437;
}

.search-clean-action--ghost {
  min-height: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a94a6;
  font-size: 0.78rem;
  font-weight: 550;
}

.search-clean-action--ghost:hover,
.search-clean-action--ghost:focus {
  background: transparent;
  color: #e5007d;
}

/* feedback compact */

.search-feedback-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.48;
  transition: opacity 0.18s ease;
}

.search-clean-item:hover .search-feedback-compact,
.search-feedback-compact:focus-within {
  opacity: 1;
}

.search-feedback-label {
  margin-right: 2px;
  color: #98a2b3;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 500;
}

.search-feedback-icon {
  width: 25px;
  height: 25px;
  border: 1px solid #dfe6f0;
  border-radius: 999px;
  background: #ffffff;
  color: #98a2b3;
  font-size: 0.94rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.search-feedback-icon--yes:hover,
.search-feedback-icon--yes:focus {
  color: #23834a;
  border-color: #c4dec9;
  background: #f6fbf7;
}

.search-feedback-icon--no:hover,
.search-feedback-icon--no:focus {
  color: #d12f92;
  border-color: #f1c3dd;
  background: #fff7fb;
}

.search-feedback.is-sending {
  opacity: 0.35;
  pointer-events: none;
}

.search-feedback.is-done {
  opacity: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.76rem;
}

.search-feedback.is-error {
  opacity: 1;
}

.search-feedback.is-error::after {
  content: "Błąd";
  margin-left: 4px;
  color: #b42318;
  font-size: 0.72rem;
}

.search-clean-empty {
  padding: 18px 0 6px;
}

.search-clean-empty h2 {
  margin: 0 0 8px;
  color: #0b1437;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
}

.search-clean-empty p {
  max-width: 640px;
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

.search-clean-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #08143f;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.search-clean-empty a:hover,
.search-clean-empty a:focus {
  background: #e5007d;
}

/* ===== SEARCH CLEAN RESPONSIVE ===== */

@media (max-width: 900px) {
  .search-clean-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .search-clean-symbol {
    width: 50px;
    height: 50px;
  }

  .search-clean-side {
    grid-column: 2;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
    padding-top: 0;
  }

  .search-clean-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .search-page-clean {
    padding: 28px 16px 54px;
  }

  .search-clean-form {
    grid-template-columns: 1fr;
  }

  .search-clean-form button {
    width: 100%;
  }

  .search-clean-panel {
    padding: 22px 18px 14px;
    border-radius: 18px;
  }

  .search-clean-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .search-clean-symbol {
    display: none;
  }

  .search-clean-side {
    grid-column: auto;
  }

  .search-clean-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-clean-action {
    width: 100%;
  }

  .search-clean-action--ghost {
    width: auto;
    align-self: flex-start;
  }

  .search-feedback-compact {
    align-self: flex-end;
  }
}
/* ===== SEARCH RESULTS – CLEAN MOCKUP STYLE ===== */

.search-page-clean {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}

.search-clean-header {
  margin-bottom: 26px;
}

.search-clean-header h1 {
  margin: 0 0 22px;
  color: #0b1437;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.search-clean-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.search-clean-input-wrap {
  position: relative;
}

.search-clean-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #7d89a8;
  pointer-events: none;
}

.search-clean-form input {
  width: 100%;
  min-height: 62px;
  padding: 0 24px 0 60px;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0b1437;
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.search-clean-form input:focus {
  border-color: #b8c5dc;
  box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.06);
}

.search-clean-form button {
  min-height: 62px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  background: #08143f;
  color: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 20, 63, 0.14);
  transition: background 0.18s ease, transform 0.18s ease;
}

.search-clean-form button:hover,
.search-clean-form button:focus {
  background: #e5007d;
  transform: translateY(-1px);
}

.search-clean-panel {
  padding: 34px 34px 22px;
  border: 1px solid #edf1f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045);
}

.search-clean-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: #59657c;
  font-size: 0.98rem;
}

.search-clean-summary p {
  margin: 0;
}

.search-clean-summary strong {
  color: #0b1437;
  font-weight: 700;
}

.search-clean-results {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-clean-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid #edf1f6;
}

.search-clean-item:first-child {
  border-top: 0;
}

.search-clean-symbol {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5fb;
  color: #2b66c9;
}

.search-clean-symbol svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-clean-item--instruction .search-clean-symbol {
  background: #eef4ff;
  color: #2563eb;
}

.search-clean-item--article .search-clean-symbol {
  background: #fff0f8;
  color: #d12f92;
}

.search-clean-item--ticket .search-clean-symbol {
  background: #eef8f1;
  color: #23834a;
}

.search-clean-item--info .search-clean-symbol {
  background: #f4f1ff;
  color: #6d4ad8;
}

.search-clean-content {
  min-width: 0;
}

.search-clean-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
}

.search-clean-type {
  display: inline-flex;
  align-items: center;
  color: #5d6a82;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.search-clean-type--instruction {
  color: #2563eb;
}

.search-clean-type--article {
  color: #d12f92;
}

.search-clean-type--ticket {
  color: #23834a;
}

.search-clean-type--info {
  color: #6d4ad8;
}

.search-clean-access {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 650;
}

.search-clean-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.34;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.search-clean-title a {
  color: #0b1437;
  text-decoration: none;
}

.search-clean-title a:hover,
.search-clean-title a:focus {
  color: #e5007d;
}

.search-clean-snippet {
  max-width: 760px;
  margin: 7px 0 0;
  color: #4d5871;
  font-size: 0.95rem;
  line-height: 1.58;
}

.search-clean-snippet mark {
  padding: 1px 3px;
  border-radius: 4px;
  background: #fff1a8;
  color: inherit;
}

.search-clean-warning {
  margin-top: 10px;
  max-width: 720px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-clean-side {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding-top: 4px;
}

.search-clean-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.search-clean-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #d8e2f0;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.search-clean-action:hover,
.search-clean-action:focus {
  background: #f8fbff;
  border-color: #b9ccec;
  color: #0b1437;
}

.search-clean-action--ghost {
  min-height: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #8a94a6;
  font-size: 0.78rem;
  font-weight: 550;
}

.search-clean-action--ghost:hover,
.search-clean-action--ghost:focus {
  background: transparent;
  color: #e5007d;
}

/* feedback compact */

.search-feedback-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.48;
  transition: opacity 0.18s ease;
}

.search-clean-item:hover .search-feedback-compact,
.search-feedback-compact:focus-within {
  opacity: 1;
}

.search-feedback-label {
  margin-right: 2px;
  color: #98a2b3;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 500;
}

.search-feedback-icon {
  width: 25px;
  height: 25px;
  border: 1px solid #dfe6f0;
  border-radius: 999px;
  background: #ffffff;
  color: #98a2b3;
  font-size: 0.94rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.search-feedback-icon--yes:hover,
.search-feedback-icon--yes:focus {
  color: #23834a;
  border-color: #c4dec9;
  background: #f6fbf7;
}

.search-feedback-icon--no:hover,
.search-feedback-icon--no:focus {
  color: #d12f92;
  border-color: #f1c3dd;
  background: #fff7fb;
}

.search-feedback.is-sending {
  opacity: 0.35;
  pointer-events: none;
}

.search-feedback.is-done {
  opacity: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.76rem;
}

.search-feedback.is-error {
  opacity: 1;
}

.search-feedback.is-error::after {
  content: "Błąd";
  margin-left: 4px;
  color: #b42318;
  font-size: 0.72rem;
}

.search-clean-empty {
  padding: 18px 0 6px;
}

.search-clean-empty h2 {
  margin: 0 0 8px;
  color: #0b1437;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
}

.search-clean-empty p {
  max-width: 640px;
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

.search-clean-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 9px;
  background: #08143f;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.search-clean-empty a:hover,
.search-clean-empty a:focus {
  background: #e5007d;
}

/* ===== SEARCH CLEAN RESPONSIVE ===== */

@media (max-width: 900px) {
  .search-clean-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .search-clean-symbol {
    width: 50px;
    height: 50px;
  }

  .search-clean-side {
    grid-column: 2;
    align-items: flex-start;
    min-width: 0;
    gap: 12px;
    padding-top: 0;
  }

  .search-clean-actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .search-page-clean {
    padding: 28px 16px 54px;
  }

  .search-clean-form {
    grid-template-columns: 1fr;
  }

  .search-clean-form button {
    width: 100%;
  }

  .search-clean-panel {
    padding: 22px 18px 14px;
    border-radius: 18px;
  }

  .search-clean-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .search-clean-symbol {
    display: none;
  }

  .search-clean-side {
    grid-column: auto;
  }

  .search-clean-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-clean-action {
    width: 100%;
  }

  .search-clean-action--ghost {
    width: auto;
    align-self: flex-start;
  }

  .search-feedback-compact {
    align-self: flex-end;
  }
}
.search-clean-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: none;
}

.search-clean-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-clean-item {
  grid-template-columns: 52px minmax(0, 1fr) 150px;
  gap: 18px;
  padding: 20px 0;
}

/* ===== SEARCH ACTIONS – lighter right side ===== */

.search-clean-side {
  min-width: 140px;
  align-items: flex-end;
  gap: 12px;
  padding-top: 2px;
}

.search-clean-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.search-clean-action {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.15;
  box-shadow: none;
}

.search-clean-action:hover,
.search-clean-action:focus {
  background: #f8fbff;
  border-color: #bfd1ee;
  color: #0b1437;
}

.search-clean-action--ticket {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dde8df;
  color: #34865a;
  font-size: 0.76rem;
  font-weight: 600;
}

.search-clean-action--ticket:hover,
.search-clean-action--ticket:focus {
  background: #f6fbf7;
  border-color: #bfdcc7;
  color: #1f7a3a;
}

.search-clean-title {
  font-size: 1.08rem;
  line-height: 1.34;
  font-weight: 620;
  letter-spacing: -0.012em;
}

.search-clean-snippet {
  max-width: 740px;
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.58;
  color: #536174;
}

.search-clean-type {
  font-size: 0.68rem;
  letter-spacing: 0.065em;
  font-weight: 700;
}

.search-feedback-compact {
  gap: 4px;
  opacity: 0.38;
}

.search-feedback-label {
  font-size: 0.7rem;
}

.search-feedback-icon {
  width: 22px;
  height: 22px;
  font-size: 0.82rem;
}

.search-clean-panel {
  padding: 26px 32px 18px;
  border-radius: 22px;
}

.search-clean-summary {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.search-clean-item {
  padding: 18px 0;
}
/* większe same ikonki w wynikach wyszukiwania */

.search-clean-symbol svg {
  width: 31px;
  height: 31px;
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

    .search-page {
        padding: 0;
    }

    .search-page .wrap,
    .search-clean-panel,
    .search-clean-header {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .search-clean-item {
        display: block;
    }

    .search-clean-side {
        margin-top: 1rem;
    }

    .search-clean-actions {
        width: 100%;
    }

    .search-clean-action {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .search-clean-title {
        font-size: 1.2rem;
    }

    .search-clean-snippet {
        font-size: .95rem;
    }
}



.search-answer-box {
  margin: 0 0 24px;
  padding: 28px 32px;
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-left: 5px solid #e5007d;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.search-answer-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff0f7;
  color: #c6006b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-answer-box h2 {
  margin: 0 0 12px;
  color: #071b3a;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 800;
}

.search-answer-text {
  max-width: 880px;
  color: #344054;
  font-size: 1.05rem;
  line-height: 1.75;
}

.search-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-answer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.search-answer-button--primary {
  background: #1f2a44;
  color: #ffffff;
}

.search-answer-button--primary:hover {
  background: #e5007d;
  color: #ffffff;
}

.search-answer-button--secondary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #d8dee8;
}

.search-answer-button--secondary:hover {
  background: #f7f9fc;
}

.search-related-title {
  margin: 0 0 6px;
  color: #071b3a;
  font-size: 1.15rem;
  font-weight: 800;
}

.search-related-lead {
  margin: 0;
  color: #667085;
  font-size: 0.95rem;
}

.search-clean-item--compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.search-clean-item--compact .search-clean-title {
  font-size: 1.05rem;
}

.search-clean-item--compact .search-clean-symbol {
  width: 42px;
  height: 42px;
}

.search-clean-item--compact .search-clean-snippet {
  display: none;
}

.search-clean-item--compact .search-clean-side {
  align-self: center;
}
/* ===== SEARCH: COMPACT RELATED RESULTS ===== */

.search-clean-panel {
  padding: 24px;
}

.search-related-title {
  margin: 0 0 4px;
  color: #071b3a;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}

.search-related-lead {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.5;
}

.search-clean-results {
  gap: 10px;
}

.search-clean-item--compact {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: none;
  border: 1px solid #e8edf3;
  background: #ffffff;
}

.search-clean-item--compact:hover {
  background: #fbfcfe;
  transform: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.search-clean-item--compact .search-clean-symbol {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
}

.search-clean-item--compact .search-clean-symbol svg {
  width: 19px;
  height: 19px;
}

.search-clean-item--compact .search-clean-content {
  min-width: 0;
}

.search-clean-item--compact .search-clean-meta {
  margin-bottom: 4px;
  gap: 6px;
}

.search-clean-item--compact .search-clean-type,
.search-clean-item--compact .search-clean-access {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 0.68rem;
  line-height: 1;
}

.search-clean-item--compact .search-clean-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
}

.search-clean-item--compact .search-clean-title a {
  display: inline;
}

.search-clean-item--compact .search-clean-snippet {
  display: none;
}

.search-clean-item--compact .search-clean-warning {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.search-clean-item--compact .search-clean-side {
  align-self: center;
}

.search-clean-item--compact .search-clean-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot--warning,
.legend-dot--warning {
  background: #8b5cf6;
}

.status-label--warning {
  color: #7c3aed;
}

.search-clean-item--compact .search-clean-action {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.search-clean-item--compact .search-feedback {
  display: none;
}