/* =========================================
   1. ZMIENNE I BAZA
   ========================================= */
:root {
  --primary: #400a63;
  --secondary: #a054a0;
  --text: #444444;
}

html,
body {
  overflow-x: clip;
}

body {
  counter-reset: h2-counter section-counter;
  padding: 0 20px;
}

/* =========================================
   2. TYPOGRAFIA
   ========================================= */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}

p,
li {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 33px;
  color: var(--text);
}

p strong,
h3 {
  color: black;
}

p strong {
  font-weight: 500;
}
p span {
  color: var(--secondary);
}
li strong {
  color: var(--primary);
  font-weight: 500;
}
li a {
  word-wrap: break-word;
}

h1,
.bottom h2 {
  color: var(--primary);
  font-size: 54px;
  font-weight: 700;
}

h1 strong,
.bottom h2 strong {
  font-size: 40px;
  font-weight: 400;
}

h1 strong a {
  color: var(--secondary);
  text-decoration: unset;
  overflow-wrap: anywhere;
}

h1 + p {
  font-size: 20px;
  margin: 25px 0 0;
}

h3 {
  margin: 40px 0;
  font-weight: 600;
}
h4 {
  margin: 40px 0 20px;
}

::marker {
  color: var(--secondary);
}

/* =========================================
   3. SYSTEM LICZNIKÓW (COUNTERS) I NAGŁÓWKI
   ========================================= */
.content {
  counter-reset: h2-counter;
}

.content h2 {
  font-size: 35px;
  font-weight: 700;
  color: black;
  border-bottom: 4px solid var(--secondary);
  display: inline-block;
  padding: 0 0 10px;
  margin: 40px 0;
}

/* Liczniki H2 (główne sekcje) */
.content h2:not(section h2) {
  counter-reset: section-counter;
  counter-increment: h2-counter;
}

.content h2:not(section h2)::before {
  content: counter(h2-counter, decimal-leading-zero) ". ";
  color: var(--secondary);
}

/* Liczniki H3 wewnątrz sekcji */
.content section h3:first-child {
  counter-reset: h4-counter;
  counter-increment: section-counter;
  color: var(--secondary);
  font-size: 30px;
  font-weight: 600;
}

section h3:first-child a {
  word-break: break-word;
}
section h3:first-child::before {
  content: counter(h2-counter, decimal-leading-zero) "."
    counter(section-counter) ". ";
}

/* Liczniki H4 wewnątrz sekcji */
section h4:not(section .page-content h4) {
  counter-increment: h4-counter;
  font-size: 22px;
  font-weight: 600;
}

section h4::before {
  content: counter(h2-counter, decimal-leading-zero) "."
    counter(section-counter) "." counter(h4-counter) ". ";
  color: var(--secondary);
}

/* Wyjątki dla .page-content */
.page-content h2,
.page-content h3,
.page-content h4,
.page-content section h3,
.page-content section h4 {
  counter-increment: none !important;
  counter-reset: none !important;
}

.page-content h2::before,
.page-content h3::before,
.page-content h4::before,
.page-content section h3::before,
.page-content section h4::before {
  display: none;
}

/* =========================================
   4. KOMPONENTY
   ========================================= */
/* Listy */
ul,
ol {
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ol {
  padding: 0;
  margin: 0 0 25px;
  list-style: none;
}

ol li::before {
  content: "";
  width: 25px;
  height: 25px;
  margin: 0 10px 0 0;
  aspect-ratio: 1;
  background-image: url(../images/layout/checkbox.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  transform: translateY(5px);
}

ol li.unchecked::before {
  background-image: url(../images/layout/checkbox-x.svg);
}

/* Największe sukcesy - lista z fioletowym ptaszkiem (jak globalne ol li) */
.biggest-successes ul,
.biggest-successes ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.biggest-successes > .success-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.biggest-successes > .success-item p {
  margin: 0;
}

.biggest-successes > .success-item::before {
  content: "";
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  aspect-ratio: 1;
  background-image: url(../images/layout/checkbox.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
  margin-top: 1px;
}

/* Statystyki */
.stats {
  padding: 0;
  list-style: none;
}

.stats li strong {
  min-width: 60px;
  color: var(--secondary);
  font-weight: 600;
  display: inline-block;
}

.stats:has(> li > .stats) {
  columns: 3;
  display: block;
  break-inside: avoid;
}

.stats:has(> li > .stats) li ul {
  margin: 0 0 70px;
}

/* Alerty */
.alert {
  background-color: #ebe4f3;
  color: var(--primary);
  margin: 30px 0;
}

.alert strong {
  color: var(--primary);
}

.alert.alert-success {
  background-color: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
}

.alert.alert-success strong {
  color: var(--bs-success-text-emphasis);
}

/* Wskaźniki trendu */
.growth,
.decrease {
  position: relative;
}

.growth::after,
.decrease::after {
  content: "▲";
  color: rgb(10, 167, 10);
  font-size: 15px;
  position: absolute;
  top: 50%;
  transform: translate(10px, -50%);
}

.decrease::after {
  content: "▼";
  color: red;
}

/* Przyciski */
.btn {
  padding: 15px 40px;
}
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  display: block;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

/* =========================================
   5. SEKCJE SPECYFICZNE
   ========================================= */
.content img {
  width: 100%;
}

.content .page-content img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.content section {
  padding: 25px 25px 0 25px;

}

.content section > :first-child {
  margin-top: 0;
}
.content section > :last-child {
  margin-bottom: 0;
}

.content section strong {
  color: var(--primary);
  background-color: #ebe4f3;
  font-weight: inherit;
}

.content section h2 {
  counter-reset: none !important;
  counter-increment: none !important;
}

.content section h2::before {
  content: none !important;
}

.content section h2,
.content section h3,
.content section h4 {
  font-size: 22px;
  border: none;
  font-weight: 500;
  margin: 40px 0 20px;
  color: black;
  display: block;
}

.content section h3,
.content section h4 {
  font-size: 18px;
}

/* Partnerzy i Klienci */
.partners img {
  height: 95px;
}
.clients h3 {
  text-align: left;
}
.clients h3::after {
  display: none;
}
.clients img {
  height: 100px;
  object-fit: contain;
  object-position: center;
}
img[alt="Google Rising Stars"] {
  height: 75px;
}

/* Okładka: elastyczny rozkład - logo góra, partnerzy dół, tytuł środek */
header .flex-column.justify-content-between {
  justify-content: space-between !important;
  gap: 2rem !important;
}
/* Dokumenty z grafiką: podnieś partnerów znad białego fade i zmniejsz odstępy (grafika nietknięta) */
header .col-lg-5.flex-column.justify-content-between {
  padding-bottom: 100px !important;
}
.content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Pierwszy element tresci tuz pod okladka (rozne dokumenty - h2/h3/p/section) */
.content > .row:first-child > .col > :first-child {
  margin-top: 0 !important;
}

/* Sekcja Bottom */
.bottom {
  background-image: url("../images/layout/background.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.bottom-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bottom-logo::before {
  content: "";
  width: 1px;
  height: 2px;
  flex-grow: 1;
  background-color: var(--primary);
}

.summary {
  color: var(--secondary);
}
.bottom h2 strong {
  display: block;
}
h3 strong,
.bottom .contact-details li strong {
  font-weight: 800;
}
.bottom h3 {
  text-align: center;
  font-size: 27px;
}

.bottom .contact-details {
  list-style: none;
  padding: 0 40px !important;
}

.bottom .contact-details li {
  font-size: 30px;
}
.bottom .contact-details li a {
  text-decoration: unset;
  color: var(--secondary);
}
.bottom .contact-details li strong {
  display: inline-block;
  width: 125px;
}

.bottom h3::after,
.bottom .contact-details::after {
  content: "";
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, white, #d7c7de, white);
  display: block;
  margin: 40px 0 0;
}

/* Sekcja Account */
.account h3::after,
.account-details .contact-details::after {
  display: none;
}
.account img {
  width: 275px;
  height: 275px;
  object-fit: cover;
  transform: translateY(-65px);
}

.account-details {
  position: relative;
  border-right: 4px solid var(--primary);
  padding: 25px;
}

.account-details h4 {
  font-size: 25px !important;
}

.account-details::before,
.account-details::after {
  content: "";
  position: absolute;
  width: calc(100% + 50px);
  background: linear-gradient(90deg, #d7c7de, var(--primary));
  height: 4px;
  top: 0;
  left: -50px;
}

.account-details::after {
  top: unset;
  bottom: 0;
}
.account-details em {
  font-size: 18px;
  font-style: normal;
}
.account-details .contact-details {
  padding: 0 !important;
}
.account-details .contact-details li {
  font-size: 20px;
}
.account-details .contact-details li strong {
  width: 90px;
}

/* Stopka lokalna (Koordynator projektu) - ten sam font i ramka co u opiekuna */

/* Inne / Globalne klasy pomocnicze */
.card-body > :first-child {
  margin-top: 0;
}
.card-body > :last-child {
  margin-bottom: 0;
}
.card-body h2,
.card-body h3 {
  background-color: var(--secondary);
  color: white;
  padding: 15px 30px;
  border-radius: 0.375rem;
}

.card-body h2::before {
  content: none !important;
}
.card-body h2 {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0;
}

.page-content ol {
  list-style: decimal;
  padding-left: 32px;
}
.page-content li {
  display: list-item;
}
.page-content li::before {
  display: none;
}

.links {
  flex-wrap: wrap;
  flex-direction: row;
}
.links a {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.keywords {
  font-size: 14px;
  line-height: 24px;
}
.table th {
  font-weight: 500;
  font-size: 17px;
  padding: 20px;
  white-space: nowrap;
}
.table td {
  padding: 20px;
}

/* Tabele wstawiane w edytorze tresci (TinyMCE) i renderowane w .page-content dokumentow wyjsciowych. */
.page-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 18px;
}
.page-content table td,
.page-content table th {
  border: 1px solid #ccc !important;
  padding: 8px 12px;
  font-size: 15px;
  vertical-align: top;
}
.page-content table th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
}

/* =========================================
   6. MEDIA QUERIES
   ========================================= */
@media (min-width: 767px) {
  .links.has-more-items li {
    width: calc(100% / 4 - 10px);
    padding: 0 30px 0 0;
  }
}

@media (max-width: 1400px) {
  h1,
  .bottom h2 {
    font-size: 42px;
  }
  h1 strong,
  .bottom h2 strong {
    font-size: 30px;
  }
}

@media (max-width: 991px) {
  h1 {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .bottom h2 {
    text-align: center;
  }
  .stats:has(> li > .stats) {
    display: flex;
  }
}

@media (max-width: 767px) {
  .content h2 {
    font-size: 25px;
  }
  .content h3 {
    font-size: 20px;
  }

  .partners img {
    height: 70px;
  }

  .account-columns {
    flex-direction: column;
    align-items: center;
  }
  .account img {
    transform: none;
  }

  .account-details {
    text-align: center;
    border-right: none;
    border-bottom: 4px solid var(--primary);
  }

  .account-details::before,
  .account-details::after {
    width: 4px;
    height: calc(100% + 50px);
    left: 0;
    bottom: 0;
    top: unset;
    background: linear-gradient(180deg, #d7c7de, var(--primary));
  }
  .account-details::after {
    right: 0;
    left: unset;
  }

  .bottom .contact-details {
    padding: 0 !important;
  }
  .bottom .contact-details li {
    font-size: 20px;
    text-align: center;
  }
  .bottom .contact-details li strong {
    width: 90px;
  }
}

@media (max-width: 575px) {
  .partners img {
    height: 125px;
  }

  .partners > div {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

.no-bullets {
  list-style-type: none;
  padding-left: 0;
}

.keywords-selection {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.keywords-selection li {
  width: calc((100% - 2 * 10px) / 3);
}

@media (max-width: 991px) {
  .keywords-selection li {
    width: calc((100% - 10px) / 2);
  }
}

@media (max-width: 575px) {
  .keywords-selection li {
    width: 100%;
  }
}

/* Modal */
.pikseo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pikseo-modal__box {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  max-width: 560px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.pikseo-modal__header {
  height: 8px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.pikseo-modal__box h3,
.pikseo-modal__box p,
.pikseo-modal__box .btn {
  margin-left: 40px;
  margin-right: 40px;
}

.pikseo-modal__box h3 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.pikseo-modal__box h3::after {
  display: none;
}

.pikseo-modal__box p {
  font-size: 16px;
  line-height: 26px;
  color: #555;
  margin-bottom: 12px;
}

.pikseo-modal__box .btn {
  margin-top: 24px;
  margin-bottom: 40px;
  display: inline-block;
}

/* Podsumowanie - lista w kolumnach */
.summary-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
}

.summary-columns li {
  width: calc((100% - 2 * 10px) / 3);
}

@media (max-width: 991px) {
  .summary-columns li {
    width: calc((100% - 10px) / 2);
  }
}

@media (max-width: 575px) {
  .summary-columns li {
    width: 100%;
  }
}

/* Podsumowanie - empty state */
.summary-empty {
  border: 2px dashed #d7c7de;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
}

.summary-empty strong {
  display: block;
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 8px;
  background: none;
  font-weight: 500;
}

.summary-empty p {
  color: #888;
  font-size: 16px;
  margin: 0;
}

/* Checkboxy - rekomendacja fraz */
.no-bullets input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 5px;
  margin-right: 10px;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.no-bullets input[type="checkbox"]:checked {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.no-bullets input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 10, 99, 0.25);
}

.no-bullets label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

h2 + h3 {
  margin-top: 0;
}

#gsc,
#ga4 {
  margin: 16px 0;
}
.device-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.device-tabs button {
  padding: 6px 18px;
  border: 1px solid #400a63;
  background: #fff;
  color: #400a63;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition:
    background 0.15s,
    color 0.15s;
}
#gsc-view-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
#gsc-view-toggle button {
  padding: 5px 16px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #555;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
#gsc td:nth-child(4),
#gsc td:nth-child(5),
#gsc td:nth-child(6),
#gsc td:nth-child(7) {
  text-align: right;
  white-space: nowrap;
}

/* Podział słów kluczowych - toolbar */
.phrase-toolbar {
  margin: 18px 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;

}

.phrase-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.phrase-toolbar__dropdown {
  border: 1px solid #d5deea;
  background: #f7f9fc;
  color: #192533;
  border-radius: 6px;
  padding: 9px 14px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.phrase-legend summary {
  list-style: none;
}

.phrase-legend summary::-webkit-details-marker {
  display: none;
}

.phrase-legend .phrase-toolbar__dropdown::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
  transform: translateY(-1px);
}

.phrase-legend[open] .phrase-toolbar__dropdown::after {
  content: "▴";
}

.phrase-toolbar__dropdown:hover {
  background: #f1f5fb;
  border-color: #c3d0e1;
}

.phrase-toolbar__dropdown:focus-visible {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.phrase-legend__content {
  margin-top: 10px;
  padding: 2px 0 0;
}

.phrase-toolbar__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a6472;
  font-family: "Inter", sans-serif;
  font-size: 15px;
}

.phrase-toolbar__summary strong {
  color: #232f3e;
  font-weight: 600;
  background: #eef2ff;
  border: 1px solid #d8deff;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0;
}

.phrase-toolbar__chips,
.phrase-toolbar__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phrase-toolbar__chips {
  margin-bottom: 14px;
}

.phrase-chip {
  border: 1px solid #d5deea;
  background: #fff;
  color: #243244;
  border-radius: 6px;
  padding: 9px 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.phrase-chip:hover {
  background: #f7f9fc;
  border-color: #bac9dc;
  color: #182536;
}

.phrase-chip.is-active {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #7e22ce;
  box-shadow: none;
}

.phrase-chip--important {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.phrase-chip--client {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.phrase-chip--contract {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.phrase-chip--outside {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.phrase-chip--important:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.phrase-chip--client:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.phrase-chip--contract:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.phrase-chip--outside:hover {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.phrase-chip:focus-visible {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

.phrase-chip--dot-main::before,
.phrase-chip--dot-important::before,
.phrase-chip--dot-client::before,
.phrase-chip--dot-contract::before,
.phrase-chip--dot-outside::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.phrase-chip--dot-main::before {
  background: #a21caf;
  box-shadow: 0 0 0 1px rgba(162, 28, 175, 0.28);
}

.phrase-chip--dot-important::before {
  background: #64748b;
}

.phrase-chip--dot-client::before {
  background: #1d4ed8;
}

.phrase-chip--dot-contract::before {
  background: #047857;
}

.phrase-chip--dot-outside::before {
  background: #c2410c;
}

.position-badge {
  border-radius: 4px;
  padding: 6px 12px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
  white-space: nowrap;
}

.position-badge--top {
  background: #e8f5ff;
  color: #0c4a6e;
  border-color: #b9e2ff;
}

.position-badge--high {
  background: #ecfeff;
  color: #0f766e;
  border-color: #b9f1ee;
}

.position-badge--mid {
  background: #f0fdf4;
  color: #166534;
  border-color: #c9f2d5;
}

.position-badge--low {
  background: #fffbeb;
  color: #92400e;
  border-color: #f9e7b3;
}

@media (max-width: 767px) {
  .phrase-toolbar {
    padding: 0;
    border-radius: 0;
  }

  .phrase-toolbar__top {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .phrase-chip {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Podział słów kluczowych - board */
.content .keywords-board {
  --stage-accent: #4f46e5;
  --stage-accent-soft: #eef2ff;
  margin: 22px 0 36px;
}
.content .keywords-board:nth-of-type(10n + 1) { --stage-accent: #4f46e5; --stage-accent-soft: #eef2ff; }
.content .keywords-board:nth-of-type(10n + 2) { --stage-accent: #0f766e; --stage-accent-soft: #ecfdf5; }
.content .keywords-board:nth-of-type(10n + 3) { --stage-accent: #0369a1; --stage-accent-soft: #eff6ff; }
.content .keywords-board:nth-of-type(10n + 4) { --stage-accent: #b45309; --stage-accent-soft: #fffbeb; }
.content .keywords-board:nth-of-type(10n + 5) { --stage-accent: #be123c; --stage-accent-soft: #fff1f2; }
.content .keywords-board:nth-of-type(10n + 6) { --stage-accent: #7c3aed; --stage-accent-soft: #f5f3ff; }
.content .keywords-board:nth-of-type(10n + 7) { --stage-accent: #0e7490; --stage-accent-soft: #ecfeff; }
.content .keywords-board:nth-of-type(10n + 8) { --stage-accent: #15803d; --stage-accent-soft: #f0fdf4; }
.content .keywords-board:nth-of-type(10n + 9) { --stage-accent: #c2410c; --stage-accent-soft: #fff7ed; }
.content .keywords-board:nth-of-type(10n + 10) { --stage-accent: #334155; --stage-accent-soft: #f1f5f9; }
.content .keywords-board__title {
  margin: 0 0 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
}
.content .keywords-board__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.content .keyword-column {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid #e9edf4;
  border-top: 0;
  border-radius: 5px;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
}
.content .keyword-column__header {
  --link-green-bg: #deefe9;
  --link-green-border: #a8cec1;
  padding: 0;
  border-top: 0;
  margin: 0;
}
/* `.keyword-column__header a` kept for backward compatibility with frozen send
   snapshots rendered before `.keyword-column__bar` existed: their stored HTML has
   a bare <a> child (no class), so the bar styling must still target it. New live
   renders carry `.keyword-column__bar` on both the <a> and the static <div>. */
.content .keyword-column__header a,
.content .keyword-column__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  height: 64px;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 65%),
    linear-gradient(135deg, #5a2fa8 0%, #421c80 55%, #2d1466 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px 5px 0 0;
  padding: 0 16px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.38;
  text-decoration: none;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
}
.content a.keyword-column__bar {
  cursor: pointer;
}
.content .keyword-column__link-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content .keyword-column__header a::after,
.content .keyword-column__bar--static[data-full]::after {
  content: attr(href);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  max-width: min(640px, 90vw);
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  padding: 10px 12px;
  color: #0f172a;
  font: 500 13px/1.35 "Inter", sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
  z-index: 20;
}
/* Static bar (new page / non-clickable) has no href, so pull the full header from data-full. */
.content .keyword-column__bar--static[data-full]::after {
  content: attr(data-full);
}
.content .keyword-column__header a:hover::after,
.content .keyword-column__header a:focus-visible::after,
.content .keyword-column__bar--static[data-full]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.content .keyword-column__header a:hover,
.content .keyword-column__header a:focus-visible,
.content .keyword-column__bar--static[data-full]:hover {
  z-index: 25;
}
.content .keyword-column__header a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}
.content .keyword-column__tag {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font: 700 10px/1 "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.content .keyword-column__list {
  padding: 12px 10px 10px;
  display: grid;
  gap: 7px;
  align-content: start;
  grid-auto-rows: min-content;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  position: relative;
}
.content .keyword-scroll-hint {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  height: 44px;
  margin-top: -44px;
  padding-bottom: 8px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.95) 55%, rgba(248, 250, 252, 1) 100%);
  color: #64748b;
  font: 600 11px/1 "Inter", sans-serif;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}
.content .keyword-column__list.has-scroll-hint .keyword-scroll-hint {
  display: flex;
}
.content .keyword-column__list::-webkit-scrollbar {
  width: 8px;
}
.content .keyword-column__list::-webkit-scrollbar-track {
  background: transparent;
}
.content .keyword-column__list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.content .keyword-column__list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.content .keyword-item {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 7px;
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  position: relative;
}
.content .keyword-item > span:first-child {
  font: 500 14px/1.36 "Inter", sans-serif;
  color: #334155;
  flex: 1 1 auto;
  min-width: 0;
}
.content .keyword-item .position-badge { margin-top: 1px; }

.content .keyword-item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #cbd5e1;
  margin-top: 0;
}

.content .keyword-item--main::before {
  background: linear-gradient(180deg, #5b4ae6, #4338ca);
}

.content .keyword-item--important::before {
  background: #64748b;
}

.content .keyword-item--client::before {
  background: #1d4ed8;
}

.content .keyword-item--contract::before {
  background: #0f766e;
}

.content .keyword-item--outside::before {
  background: #ea580c;
}
@media (max-width: 1199px) {
  .content .keywords-board__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .content .keywords-board__grid { grid-template-columns: 1fr; }
  .content .keywords-board__title { font-size: 20px; }
  .content .keyword-column__header { padding: 0; }
  .content .keyword-column__tag { padding: 4px 8px; }
  .content .keyword-column { height: auto; }
  .content .keyword-column__header a,
  .content .keyword-column__bar {
    min-height: 0;
    height: auto;
    padding: 10px 12px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    align-items: flex-start;
  }
  .content .keyword-column__link-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: block;
    line-height: 1.45;
  }
  .content .keyword-column__header a::after {
    display: none;
  }
  .content .keyword-column__list {
    overflow: visible;
    max-height: none;
    flex: 0 0 auto;
  }
  .content .keyword-column__list .keyword-scroll-hint {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phrase-chip,
  .content .keyword-column__header a::after {
    transition: none;
  }
}

/* Brief GMF - formularz */
.gmf-brief-section {
  margin: 10px 0 30px;
}

.gmf-brief-form {
  max-width: 100%;
  border: 1px solid #decdf0;
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(circle at 92% -4%, rgb(157 78 221 / 2%), transparent 42%), linear-gradient(135deg, #fff 0%, #fbf6ff4d 100%);
}

.gmf-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid #decdf0;
}

.gmf-brief-header h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 600;
  color: #24113a;
  counter-increment: none;
  counter-reset: none;
}

.gmf-brief-header h2::before {
  display: none;
  content: none;
}

.gmf-brief-header p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.gmf-brief-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6c3fb0;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.gmf-brief-meta__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

/* Pasek kroków */
.gmf-steps {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px !important;
  margin: 0 !important;
  padding: 16px 28px !important;
  list-style: none !important;
  border-bottom: 1px solid #decdf0;
}

.gmf-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9a86ad;
  cursor: default;
  transform: none;
}

/* wyłączenie globalnego „checkboxa” z ol li::before */
.gmf-steps__item::before {
  content: none !important;
  display: none !important;
}

.gmf-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #8a6f9e;
  background: #f1e8fa;
  box-shadow: inset 0 0 0 1px #e1d2ec;
}

.gmf-steps__item.is-active {
  color: #3d1f53;
}

.gmf-steps__item.is-active .gmf-steps__num {
  color: #fff;
  background: linear-gradient(135deg, #5a2fa8, #2d1466);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.gmf-steps__item {
  cursor: pointer;
}

.gmf-steps__item.is-done {
  color: #6c3fb0;
}

.gmf-steps__item.is-done .gmf-steps__num {
  color: #14532d;
  background: #ccefdc;
  box-shadow: none;
}

.gmf-step {
  display: none;
}

.gmf-step.is-active {
  display: block;
}

.gmf-brief-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gmf-panel {
  padding: 22px 24px 24px;
}

.gmf-panel + .gmf-panel {
  border-left: 1px solid #decdf0;
}

.gmf-panel-head {
  margin-bottom: 24px;
}

.content .gmf-panel-head h3,
.content section .gmf-panel-head h3:first-child {
  margin: 0 !important;
  color: #321047 !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  counter-increment: none !important;
  counter-reset: none !important;
}

.content .gmf-panel-head h3::before {
  display: none;
  content: none;
}

.gmf-panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
}

.gmf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.gmf-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.gmf-field-full {
  grid-column: 1 / -1;
}

.gmf-field label {
  font-size: 13px;
  font-weight: 500;
  color: #3d1f53;
}

.gmf-field small {
  font-size: 11px;
  line-height: 1.35;
}

.gmf-field input[type="text"],
.gmf-field input[type="tel"],
.gmf-field input[type="url"],
.gmf-field input[type="email"],
.gmf-field input[type="number"],
.gmf-field input[type="time"],
.gmf-field input[type="month"],
.gmf-field input[type="date"],
.gmf-field textarea {
  border: 1px solid #e1d2ec;
  border-radius: 7px;
  padding: 9px 11px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  color: #2f1b3d;
  background: rgba(255, 255, 255, 0.94);
}

.gmf-field textarea {
  resize: vertical;
}

.gmf-field input:focus,
.gmf-field textarea:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.14);
}

.gmf-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.gmf-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1d2ec;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.78);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #4b2762;
  cursor: pointer;
}

.gmf-choice input[type="radio"] {
  accent-color: #8a2be2;
}

.gmf-choice:has(input:checked) {
  background: #f7edff;
  border-color: #d8b4fe;
  color: #6d1fa2;
}

.gmf-hours-table {
  border: 1px solid #e5d6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.gmf-hours-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(94px, 1fr) minmax(94px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(122, 63, 185, 0.12);
}

.gmf-hours-row:last-child {
  border-bottom: 0;
}

.gmf-day {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #44245a;
}

.gmf-closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6d4a80;
}

.gmf-form-actions {
  padding: 18px 24px 24px;
  border-top: 1px solid #decdf0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.gmf-actions-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gmf-form-actions .btn.btn-primary {
  border: 0;
  border-radius: 10px;
  padding: 13px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 65%),
    linear-gradient(135deg, #5a2fa8 0%, #421c80 55%, #2d1466 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(45, 20, 102, 0.22);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gmf-form-actions .btn.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(45, 20, 102, 0.28);
}

.gmf-form-actions .btn.btn-primary:active {
  transform: translateY(1px);
}

/* Przycisk „Wstecz” */
.gmf-btn-back {
  border: 1px solid #d8c6ec;
  border-radius: 10px;
  padding: 12px 22px;
  background: #fff;
  color: #5a2fa8;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gmf-btn-back:hover {
  background: #f7edff;
  border-color: #c4a3ec;
}

/* Wyszarzony przycisk wysyłki (nieaktywny do ostatniego kroku) */
.gmf-form-actions .btn.btn-primary.gmf-btn-submit:disabled {
  cursor: not-allowed;
  color: #9a8caf;
  background: #ece6f3;
  box-shadow: inset 0 0 0 1px rgba(90, 47, 168, 0.08);
  filter: none;
  transform: none;
}

.gmf-form-actions .btn.btn-primary.gmf-btn-submit:disabled:hover {
  filter: none;
}

[data-back][hidden],
[data-next][hidden] {
  display: none;
}

.gmf-form-note {
  border: 1px solid #ccefdc;
  border-radius: 8px;
  padding: 8px 12px 8px 10px;
  background: #f2fbf6;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.gmf-form-note__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  flex-shrink: 0;
  background: #22c55e;
  box-shadow: inset 0 0 0 5px #dcfce7;
}

.gmf-form-note strong,
.gmf-form-note small {
  display: block;
  margin: 0 0 5px;
}

.gmf-form-note strong {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #14532d;
  font-weight: 600;
}

.gmf-form-note small {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: #4d7c5c;
}

/* Krok 3 – media */
.gmf-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gmf-media-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  border: 1px solid #e5d6ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.gmf-media-card__title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d1f53;
}

.gmf-media-card__hint {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #927aa3;
  flex-grow: 1;
}

.gmf-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  cursor: pointer;
}

.gmf-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.gmf-upload__btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #d8c6ec;
  background: #f7edff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #5a2fa8;
}

.gmf-upload:hover .gmf-upload__btn {
  background: #efe0ff;
  border-color: #c4a3ec;
}

.gmf-upload__name {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #927aa3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Krok 4 – usługi i atrybuty */
.gmf-attr-block {
  padding: 18px 0 4px;
  border-top: 1px solid #ece1f6;
}

.gmf-attr-block:first-of-type {
  padding-top: 4px;
  border-top: 0;
}

.content .gmf-attr-title {
  margin: 0 0 14px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #4b2762 !important;
  border: 0 !important;
}

.content .gmf-attr-title::before {
  content: none !important;
}

/* Eleganckie checkboxy */
.gmf-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 16px;
}

.gmf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e8dcf3;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #3d1f53;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gmf-check:hover {
  border-color: #d2b6ee;
  background: #faf5ff;
}

.gmf-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.gmf-check__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #c9b2e2;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gmf-check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.gmf-check input:checked ~ .gmf-check__box {
  background: linear-gradient(135deg, #5a2fa8, #2d1466);
  border-color: #5a2fa8;
}

.gmf-check input:checked ~ .gmf-check__box::after {
  transform: rotate(45deg) scale(1);
}

.gmf-check:has(input:checked) {
  border-color: #c4a3ec;
  background: #f7edff;
}

.gmf-check input:focus-visible ~ .gmf-check__box {
  outline: 2px solid rgba(157, 78, 221, 0.4);
  outline-offset: 2px;
}

/* Wyposażenie pokoju – segmentowany wybór 3-stanowy */
.gmf-attr-table {
  border: 1px solid #e8dcf3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.gmf-attr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0e7f8;
}

.gmf-attr-row:last-child {
  border-bottom: 0;
}

.gmf-attr-row__name {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #3d1f53;
}

.gmf-segment {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid #e1d2ec;
  border-radius: 999px;
  background: #fff;
  padding: 2px;
}

.gmf-segment__opt {
  position: relative;
  cursor: pointer;
}

.gmf-segment__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.gmf-segment__opt span {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6d4a80;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.gmf-segment__opt:hover span {
  color: #4b2762;
}

.gmf-segment__opt input:checked + span {
  background: linear-gradient(135deg, #5a2fa8, #2d1466);
  color: #fff;
}

.gmf-segment__opt input:focus-visible + span {
  outline: 2px solid rgba(157, 78, 221, 0.4);
  outline-offset: 1px;
}

/* Pola dodatkowe (liczba restauracji, godziny) */
.gmf-attr-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.gmf-attr-inline label {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3d1f53;
}

.gmf-attr-inline input[type="number"] {
  width: 110px;
  border: 1px solid #e1d2ec;
  border-radius: 7px;
  padding: 9px 11px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #2f1b3d;
  background: rgba(255, 255, 255, 0.94);
}

.gmf-attr-inline--times {
  flex-wrap: wrap;
  gap: 16px;
}

.gmf-attr-inline--times .gmf-field {
  gap: 6px;
}

.gmf-attr-inline input:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.14);
}

@media (max-width: 991px) {
  .gmf-steps {
    padding: 14px 20px;
  }

  .gmf-attr-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gmf-segment {
    width: 100%;
    justify-content: space-between;
  }

  .gmf-segment__opt {
    flex: 1;
  }

  .gmf-segment__opt span {
    text-align: center;
    padding: 7px 8px;
  }

  .gmf-media-grid {
    grid-template-columns: 1fr;
  }

  .gmf-brief-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .gmf-brief-body {
    grid-template-columns: 1fr;
  }

  .gmf-panel {
    padding: 0 0 20px;
  }

  .gmf-panel + .gmf-panel {
    border-left: 0;
    border-top: 1px solid #decdf0;
  }

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

  .gmf-hours-row {
    grid-template-columns: 1fr 1fr;
  }

  .gmf-day {
    grid-column: 1 / -1;
  }

  .gmf-form-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 20px;
  }

  .gmf-form-note {
    margin-right: 0;
  }

  .gmf-actions-btns {
    width: 100%;
  }

  .gmf-actions-btns .btn.btn-primary {
    flex: 1;
  }
}

@media (max-width: 991px) {
  .content .keyword-column {
    height: auto;
  }
  .content .keyword-column__list {
    overflow: visible;
    max-height: none;
    flex: 0 0 auto;
    min-height: auto;
  }
  .content .keyword-column__list .keyword-scroll-hint {
    display: none !important;
  }
}
