.mak-pricelist,
.mak-publications {
  --mak-gold: #c69a5a;
  --mak-purple: #8c48dd;
  --mak-purple-dark: #7130c4;
  --mak-orange: #ff7651;
  --mak-dark: #1d1820;
  --mak-text: #6b6470;
  --mak-muted: #918895;
  --mak-border: #eadfea;
  --mak-soft: #fbf8fc;
  --mak-soft-purple: #f7f1ff;
  --mak-white: #fff;

  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--mak-dark);
  font-family: inherit;
}

.mak-pricelist *,
.mak-publications * {
  box-sizing: border-box;
}

/* ---------- DIGITALNI CJENIK ---------- */

.mak-current-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: 36px 38px;
  border: 1px solid rgba(140, 72, 221, .12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 5% 0%, rgba(154, 77, 244, .14), transparent 32%),
    radial-gradient(circle at 98% 100%, rgba(255, 118, 81, .10), transparent 30%),
    #fff;
  box-shadow: 0 18px 50px rgba(91, 54, 112, .08);
}

.mak-current-card__decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.mak-current-card__decoration--one {
  width: 86px;
  height: 86px;
  top: -37px;
  left: -28px;
  background: linear-gradient(135deg, #ceb9ff, #9138ec);
  opacity: .78;
}

.mak-current-card__decoration--two {
  width: 13px;
  height: 13px;
  right: 5%;
  top: 24px;
  background: var(--mak-orange);
}

.mak-current-card__main,
.mak-current-card__action {
  position: relative;
  z-index: 1;
}

.mak-current-card__eyebrow,
.mak-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--mak-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mak-current-card h3 {
  margin: 0 0 24px;
  color: var(--mak-dark);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.mak-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.mak-current-meta > div {
  min-width: 125px;
  padding: 11px 14px;
  border: 1px solid rgba(140, 72, 221, .10);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}

.mak-current-meta span,
.mak-current-file > span,
.mak-business-strip span,
.mak-archive-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--mak-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mak-current-meta strong {
  color: var(--mak-dark);
  font-size: 14px;
}

.mak-current-file {
  max-width: 720px;
}

.mak-current-file code,
.mak-archive-item code {
  display: block;
  overflow-wrap: anywhere;
  color: #655b68;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  background: transparent;
}

.mak-download {
  display: flex;
  min-width: 220px;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, #984cf1, #7531cb);
  box-shadow: 0 14px 28px rgba(125, 52, 208, .20);
  color: #fff !important;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mak-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(125, 52, 208, .27);
}

.mak-download span {
  font-size: 15px;
  font-weight: 700;
}

.mak-download small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
}

.mak-business-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.mak-business-strip > div {
  padding: 18px 20px;
  border: 1px solid var(--mak-border);
  border-radius: 14px;
  background: var(--mak-soft);
}

.mak-business-strip strong {
  display: block;
  color: var(--mak-dark);
  font-size: 13px;
  line-height: 1.55;
}

.mak-business-strip small {
  display: block;
  margin-top: 4px;
  color: var(--mak-text);
}

.mak-archive {
  margin-top: 46px;
}

.mak-archive-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mak-archive-heading h3 {
  margin: 0 0 7px;
  color: var(--mak-dark);
  font-size: clamp(24px, 3vw, 32px);
}

.mak-archive-heading p {
  margin: 0;
  color: var(--mak-text);
  line-height: 1.6;
}

.mak-archive-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mak-soft-purple);
  color: var(--mak-purple-dark);
  font-size: 12px;
  font-weight: 700;
}

.mak-empty-card {
  display: flex;
  gap: 5px;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px dashed #d9cbe5;
  border-radius: 14px;
  background: #fcfafd;
}

.mak-empty-card strong {
  color: var(--mak-dark);
}

.mak-empty-card span {
  color: var(--mak-text);
  font-size: 13px;
  line-height: 1.55;
}

.mak-archive-list {
  display: grid;
  gap: 10px;
}

.mak-archive-item {
  display: grid;
  grid-template-columns: 170px 90px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--mak-border);
  border-radius: 13px;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease;
}

.mak-archive-item:hover {
  transform: translateY(-1px);
  border-color: #d7c1e9;
}

.mak-archive-item strong {
  color: var(--mak-dark);
  font-size: 13px;
}

.mak-archive-download {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(140, 72, 221, .25);
  border-radius: 9px;
  color: var(--mak-purple-dark) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.mak-archive-download:hover {
  background: var(--mak-soft-purple);
}

/* ---------- VIZUALNI CJENIK ---------- */

.mak-table-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mak-summary-pill {
  display: inline-flex;
  min-width: 120px;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(140, 72, 221, .13);
  border-radius: 999px;
  background: var(--mak-soft-purple);
}

.mak-summary-pill strong {
  color: var(--mak-purple-dark);
  font-size: 15px;
}

.mak-summary-pill small {
  color: var(--mak-text);
  font-size: 11px;
}

.mak-table-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mak-border);
  border-radius: 16px;
  background: var(--mak-white);
  box-shadow: 0 12px 36px rgba(72, 47, 82, .045);
}

.mak-table {
  width: 100%;
  border-collapse: collapse;
}

.mak-table--compact {
  min-width: 0;
  table-layout: fixed;
}

.mak-table--compact th:nth-child(1),
.mak-table--compact td:nth-child(1) {
  width: 11%;
}

.mak-table--compact th:nth-child(2),
.mak-table--compact td:nth-child(2) {
  width: 49%;
}

.mak-table--compact th:nth-child(3),
.mak-table--compact td:nth-child(3),
.mak-table--compact th:nth-child(4),
.mak-table--compact td:nth-child(4) {
  width: 20%;
}

.mak-table th,
.mak-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mak-border);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.mak-table th {
  background: #f8f5fa;
  color: #716975;
  font-size: 10px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.mak-table tbody tr:nth-child(even) {
  background: #fdfbfd;
}

.mak-table tbody tr:hover {
  background: #faf5ff;
}

.mak-table tbody tr:last-child td {
  border-bottom: 0;
}

.mak-table--compact td:nth-child(2) strong {
  color: var(--mak-dark);
}

.mak-table--compact td:nth-child(4) strong {
  color: var(--mak-purple-dark);
  font-size: 14px;
}

.mak-pricelist-empty {
  padding: 22px;
  border: 1px solid var(--mak-border);
  border-radius: 14px;
  background: var(--mak-soft);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 820px) {
  .mak-current-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 24px;
  }

  .mak-current-card__action {
    width: 100%;
  }

  .mak-download {
    width: 100%;
    min-width: 0;
  }

  .mak-business-strip {
    grid-template-columns: 1fr;
  }

  .mak-archive-item {
    grid-template-columns: 1fr 90px;
  }

  .mak-archive-item__file,
  .mak-archive-download {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .mak-pricelist,
  .mak-publications {
    width: min(100% - 24px, 1180px);
  }

  .mak-current-card {
    gap: 20px;
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .mak-current-card h3 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 1.15;
  }

  .mak-current-card__eyebrow {
    font-size: 10px;
    letter-spacing: .16em;
  }

  .mak-current-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mak-current-meta > div {
    min-width: 0;
    padding: 12px 14px;
  }

  .mak-current-file code {
    font-size: 11px;
    line-height: 1.55;
    word-break: break-word;
  }

  .mak-download {
    min-height: 70px;
    padding: 14px 18px;
    border-radius: 13px;
  }

  .mak-business-strip {
    gap: 10px;
    margin-top: 12px;
  }

  .mak-business-strip > div {
    padding: 16px;
    border-radius: 13px;
  }

  .mak-business-strip strong {
    font-size: 13px;
    line-height: 1.6;
  }

  .mak-archive {
    margin-top: 36px;
  }

  .mak-archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mak-archive-heading h3 {
    font-size: 28px;
  }

  .mak-archive-heading p {
    font-size: 14px;
  }

  .mak-empty-card {
    padding: 18px;
  }

  .mak-archive-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .mak-archive-item__file,
  .mak-archive-download {
    grid-column: auto;
  }

  .mak-archive-download {
    width: 100%;
  }

  .mak-table-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
  }

  .mak-summary-pill {
    min-width: 0;
    justify-content: center;
    padding: 11px 10px;
    border-radius: 14px;
  }

  .mak-summary-pill:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 125px;
  }

  .mak-summary-pill strong {
    font-size: 18px;
  }

  .mak-summary-pill small {
    font-size: 11px;
  }

  /* Mobilni cjenik: samo naziv, šifra i dvije cijene. */
  .mak-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mak-table--compact,
  .mak-table--compact tbody {
    display: block;
    width: 100%;
  }

  .mak-table--compact thead {
    display: none;
  }

  .mak-table--compact tbody {
    display: grid;
    gap: 12px;
  }

  .mak-table--compact tbody tr {
    display: grid;
    grid-template-columns: 36% 64%;
    overflow: hidden;
    border: 1px solid var(--mak-border);
    border-radius: 16px;
    background: #fff !important;
    box-shadow: 0 9px 24px rgba(72, 47, 82, .045);
  }

  .mak-table--compact tbody tr:hover {
    background: #fff !important;
  }

  .mak-table--compact td {
    display: flex;
    width: auto !important;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--mak-border);
    font-size: 13px;
    line-height: 1.4;
  }

  .mak-table--compact td::before {
    content: attr(data-label);
    color: var(--mak-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .mak-table--compact td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 15px 14px;
    background: linear-gradient(135deg, #fbf8fd, #fff);
  }

  .mak-table--compact td:nth-child(2) strong {
    color: var(--mak-dark);
    font-size: 16px;
    line-height: 1.35;
  }

  .mak-table--compact td:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid var(--mak-border);
    border-bottom: 0;
  }

  .mak-table--compact td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    border-bottom: 0;
    background: #fdfafd;
  }

  .mak-table--compact td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 14px;
    border-top: 1px solid var(--mak-border);
    border-bottom: 0;
    background: var(--mak-soft-purple);
  }

  .mak-table--compact td:nth-child(4) strong {
    color: var(--mak-purple-dark);
    font-size: 17px;
  }
}
