html { scroll-behavior: smooth; }
    body { margin: 0; min-width: 320px; background: #fafaf0; }

.cmg-price,
  .cmg-price * {
    box-sizing: border-box;
  }

  .cmg-price {
    --cmg-bg: #fafaf0;
    --cmg-paper: #fffdf8;
    --cmg-ink: #151514;
    --cmg-muted: #67645c;
    --cmg-line: rgba(21, 21, 20, 0.12);
    --cmg-red: #9b6466;
    --cmg-blue: #678da8;
    --cmg-gold: #b89a58;
    --cmg-shadow: 0 18px 48px rgba(21, 21, 20, 0.1);
    width: 100%;
    overflow-x: hidden;
    padding: clamp(18px, 4vw, 42px) 16px;
    background: var(--cmg-bg);
    color: var(--cmg-ink);
    font-family: "Quicksand", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.55;
  }

  .cmg-price a {
    color: inherit;
    text-decoration: none;
  }

  .cmg-price__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
  }

  .cmg-price__kicker,
  .cmg-price__label {
    margin: 0 0 12px;
    color: var(--cmg-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .cmg-price h3 {
    margin: 0;
    color: var(--cmg-ink);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .cmg-price__tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 14px 18px;
    align-items: end;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: rgba(255, 253, 244, 0.96);
    box-shadow: 0 16px 42px rgba(21, 21, 20, 0.06);
  }

  .cmg-price__search {
    display: grid;
    gap: 7px;
    color: var(--cmg-ink);
    font-weight: 800;
  }

  .cmg-price__search-field {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
  }

  .cmg-price__search-input {
    position: relative;
    min-width: 0;
    display: block;
  }

  .cmg-price__search input {
    width: 100%;
    min-height: 52px;
    padding: 0 52px 0 18px;
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cmg-ink);
    outline: none;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .cmg-price__search input:focus {
    border-color: var(--cmg-blue);
    box-shadow: 0 0 0 4px rgba(103, 141, 168, 0.14);
  }

  .cmg-price__clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0 0 2px;
    color: var(--cmg-muted);
    background: #f0f2ef;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  }

  .cmg-price__clear[hidden] {
    display: none;
  }

  .cmg-price__clear:hover {
    color: var(--cmg-ink);
    background: #e3e8e8;
    transform: translateY(-50%) scale(1.04);
  }

  .cmg-price__submit {
    min-width: 112px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #435f75;
    border-radius: 8px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, #678da8, #435f75);
    box-shadow: 0 8px 18px rgba(67, 95, 117, 0.2);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  .cmg-price__submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
  }

  .cmg-price__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(67, 95, 117, 0.27);
  }

  .cmg-price__submit:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(67, 95, 117, 0.2);
  }

  .cmg-price__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .cmg-price__filters button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--cmg-line);
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
    color: var(--cmg-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .cmg-price__filters button:hover {
    transform: translateY(-1px);
  }

  .cmg-price__filters button.is-active {
    background: var(--cmg-ink);
    color: #fff;
  }

  .cmg-price__result {
    grid-column: 1 / -1;
    min-height: 22px;
    margin: 0;
    color: var(--cmg-muted);
    font-weight: 800;
  }

  .cmg-price__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .cmg-price__card {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: var(--cmg-paper);
    box-shadow: 0 12px 34px rgba(21, 21, 20, 0.06);
    opacity: 1;
    transform: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .cmg-price__card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .cmg-price__card:hover {
    border-color: rgba(181, 43, 50, 0.22);
    box-shadow: var(--cmg-shadow);
  }

  .cmg-price__card.is-hidden {
    display: none;
  }

  .cmg-price__card.is-featured {
    border-color: rgba(181, 43, 50, 0.24);
    background: linear-gradient(145deg, #fffdf8, #f4f1e5);
  }

  .cmg-price__card.is-wide {
    grid-column: 1 / -1;
  }

  .cmg-price__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
  }

  /* Korzystamy z jednego, własnego przycisku czyszczenia pola. */
  .cmg-price__search input::-webkit-search-cancel-button,
  .cmg-price__search input::-webkit-search-decoration {
    display: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .cmg-price__search input::-ms-clear,
  .cmg-price__search input::-ms-reveal {
    width: 0;
    height: 0;
    display: none;
  }

  .cmg-price__profile-link {
    align-self: flex-start;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }

  .cmg-price__card h3 {
    font-size: clamp(22px, 2vw, 29px);
  }

  .cmg-price__meta {
    margin: 9px 0 0;
    color: var(--cmg-muted);
  }

  .cmg-price__card.is-featured h3 {
    color: var(--cmg-ink);
  }

  .cmg-price__card.is-featured .cmg-price__meta {
    color: var(--cmg-muted);
  }

  .cmg-price__card.is-featured .cmg-price__label {
    color: var(--cmg-red);
  }

  .cmg-price__badge {
    align-self: start;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--cmg-bg);
    color: var(--cmg-blue);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
  }

  .cmg-price__card.is-featured .cmg-price__badge {
    background: #fff;
    color: var(--cmg-ink);
  }

  .cmg-price__services {
    display: grid;
    gap: 8px;
  }

  .cmg-price__services a,
  .cmg-price__services div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 50px;
    padding: 13px 14px;
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .cmg-price__services a:hover {
    transform: translateX(3px);
    border-color: rgba(103, 141, 168, 0.3);
    background: #fff;
  }

  .cmg-price__card.is-featured .cmg-price__services a,
  .cmg-price__card.is-featured .cmg-price__services div {
    border-color: rgba(181, 43, 50, 0.14);
    background: rgba(255, 255, 255, 0.62);
  }

  .cmg-price__services span {
    font-weight: 800;
  }

  .cmg-price__services small {
    display: block;
    margin-top: 2px;
    color: var(--cmg-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .cmg-price__services b {
    color: var(--cmg-blue);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
  }

  .cmg-price__card.is-featured .cmg-price__services b {
    color: var(--cmg-blue);
  }

  .cmg-price__diagnostics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cmg-price__empty {
    display: none;
    margin: 18px 0 0;
    padding: 22px;
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cmg-muted);
    font-weight: 800;
    text-align: center;
  }

  .cmg-price__empty.is-visible {
    display: block;
  }

  .cmg-price__faq {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
  }

  .cmg-price__faq details {
    border: 1px solid var(--cmg-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(21, 21, 20, 0.05);
  }

  .cmg-price__faq summary {
    cursor: pointer;
    padding: 18px;
    color: var(--cmg-ink);
    font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
  }

  .cmg-price__faq p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--cmg-muted);
  }

  @media (max-width: 880px) {
    .cmg-price__tools,
    .cmg-price__grid,
    .cmg-price__faq {
      grid-template-columns: 1fr;
    }

    .cmg-price__filters {
      justify-content: flex-start;
    }

    .cmg-price__diagnostics {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .cmg-price {
      padding-inline: 12px;
    }

    .cmg-price__tools,
    .cmg-price__card {
      padding: 18px;
    }

    .cmg-price__head,
    .cmg-price__services a,
    .cmg-price__services div {
      grid-template-columns: 1fr;
    }

    .cmg-price__badge,
    .cmg-price__services b {
      justify-self: start;
      text-align: left;
      white-space: normal;
    }

    .cmg-price__filters {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }

    .cmg-price__filters button {
      width: 100%;
    }
  }

.no-js .cmg-price__card { opacity: 1 !important; transform: none !important; }
