.catalog {
  --cat-ink: #141414;
  --cat-paper: #f2f2eb;
  --cat-rust: #824b3c;
  --cat-sage: #a5aaa0;
  --cat-gap: clamp(18px, 2.222vw, 32px);
  --cat-section: clamp(82px, 9.72vw, 140px);
  background: var(--cat-paper);
  color: var(--cat-ink);
}
.catalog [hidden] {
  display: none !important;
}
.catalog h1,
.catalog h2,
.catalog h3,
.catalog p {
  margin: 0;
}
.catalog a {
  text-decoration: none;
  color: inherit;
}
.catalog a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.catalog h1,
.catalog h2,
.catalog h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cat-wrap {
  width: min(91.111%, 1600px);
  margin-inline: auto;
}
.cat-intro {
  padding-top: clamp(64px, 6.667vw, 96px);
  padding-bottom: clamp(70px, 8.61vw, 124px);
}
.cat-crumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: #575952;
  line-height: 20px;
}
.cat-crumb a {
  font-size: inherit;
  font-weight: 400;
}
.cat-intro-line {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 2.35%;
  align-items: end;
  margin-top: clamp(24px, 2.22vw, 32px);
}
.cat-intro-line h1 {
  font-size: clamp(74px, 9.167vw, 144px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.cat-intro-line p {
  font-size: clamp(17px, 1.46vw, 22px);
  line-height: 1.52;
  max-width: 520px;
}
.cat-project-filters,
.cat-news-filters {
  border-block: 1px solid currentColor;
  padding-block: 23px;
}
.cat-project-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cat-buttons,
.cat-stage-filters,
.cat-home-nav,
.cat-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog button {
  cursor: pointer;
  background: none;
  color: inherit;
  font: inherit;
}
.cat-buttons button {
  border: 1px solid var(--cat-rust);
  color: var(--cat-rust);
  min-height: 46px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
}
.cat-buttons button[aria-pressed="true"],
.cat-buttons button:hover {
  color: var(--cat-paper);
  background: var(--cat-rust);
}
.cat-stage-filters {
  gap: 3px;
}
.cat-stage-filters > span,
.cat-group-header small,
.cat-kicker,
.cat-meta,
.cat-featured-label {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 13px;
  font-weight: 600;
}
.cat-stage-filters > span {
  color: #62665e;
  margin-right: 7px;
}
.cat-stage-filters button {
  border: 0;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 550;
}
.cat-stage-filters button[aria-pressed="true"] {
  background: #e6dbd5;
}
.catalog [data-stage]:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cat-sage);
  margin-right: 8px;
}
.catalog [data-stage="V realizácii"]:before {
  background: #ff6d2a;
}
.catalog [data-stage="Dokončené"]:before {
  background: #161616;
}
.cat-group {
  padding-block: clamp(78px, 8.9vw, 128px);
}
.cat-group.cat-dark {
  background: var(--cat-ink);
  color: var(--cat-paper);
}
.cat-group-header {
  display: grid;
  grid-template-columns: 1fr 32%;
  gap: 30px;
  align-items: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: 32px;
  margin-bottom: clamp(44px, 5vw, 72px);
}
.cat-group-header h2 {
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.04;
}
.cat-group-header p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.cat-group-header small {
  display: block;
  font-size: 12px;
  color: var(--cat-rust);
}
.cat-dark .cat-group-header small {
  color: #d9d4c9;
}
.cat-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 40.625%) minmax(0, 1fr) minmax(0, 40.625%);
  gap: 60px var(--cat-gap);
}
.cat-project-grid .cat-project-card[data-width="wide"] {
  grid-column: span 2;
}
.cat-art {
  width: 100%;
  background: var(--cat-sage);
  mask: var(--shape) center / 100% 100% no-repeat;
}
.cat-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-project-grid .cat-art {
  height: clamp(258px, 31.95vw, 510px);
}
.cat-visual-link {
  display: block;
  position: relative;
}
.cat-status {
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: clamp(10px, 1.4vw, 20px);
  top: clamp(10px, 1.4vw, 20px);
  background: var(--cat-paper);
  color: var(--cat-ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  line-height: 1.25;
}
.cat-project-caption {
  position: relative;
  padding-top: 22px;
}
.cat-project-caption h3 {
  font-size: clamp(21px, 1.806vw, 28px);
  line-height: 1.16;
  margin-right: 56px;
}
.cat-project-caption .cat-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  margin-top: 7px;
  color: #63665d;
}
.cat-location svg {
  width: 15px;
  height: 16px;
  color: var(--cat-rust);
}
.cat-dark .cat-location,
.cat-dark .cat-summary {
  color: #d2d3c9;
}
.cat-project-caption .cat-summary {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
}
.cat-project-caption .cat-project-link {
  position: absolute;
  right: 0;
  top: 21px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--cat-rust);
  color: var(--cat-paper);
}
.cat-news-list {
  padding-bottom: var(--cat-section);
}
.cat-featured {
  display: grid;
  grid-template-columns: 56.86% 1fr;
  gap: 5.48%;
  align-items: center;
}
.cat-featured .cat-art {
  aspect-ratio: 746/520;
}
.cat-featured-label {
  display: inline-block;
  padding: 7px 12px;
  background: var(--cat-rust);
  color: var(--cat-paper);
  font-size: 12px;
}
.cat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.07em;
  font-size: 13px;
  color: #67685f;
}
.cat-meta strong {
  color: var(--cat-rust);
}
.cat-featured .cat-meta {
  margin: 18px 0 14px;
}
.cat-featured h2 {
  font-size: clamp(32px, 3.195vw, 52px);
  line-height: 1.05;
}
.cat-featured p {
  margin: 16px 0 18px;
  font-size: 17px;
  line-height: 1.6;
}
.cat-featured .cat-read {
  font-size: 15px;
  font-weight: 600;
  color: var(--cat-rust);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}
.cat-news-filters {
  margin-top: clamp(64px, 8.33vw, 120px);
  border-top: 0;
  padding: 0 0 28px;
}
.cat-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px var(--cat-gap);
}
.cat-news-list .cat-news-grid {
  margin-top: 46px;
}
.cat-news-card .cat-art {
  aspect-ratio: 4/3;
}
.cat-news-card > a {
  display: block;
}
.cat-news-card .cat-meta {
  margin: 20px 0 12px;
}
.cat-news-card h3 {
  font-size: clamp(21px, 1.67vw, 26px);
  line-height: 1.25;
}
.cat-news-card p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.52;
}
.cat-pager {
  justify-content: center;
  margin-top: clamp(48px, 5.21vw, 75px);
  gap: 5px;
}
.cat-pager button {
  border: 1px solid transparent;
  min-width: 48px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
}
.cat-pager button[data-step] {
  border-color: var(--cat-rust);
  color: var(--cat-rust);
}
.cat-pager button[aria-current="page"] {
  background: var(--cat-rust);
  color: var(--cat-paper);
}
.cat-pager button:disabled {
  cursor: default;
  opacity: 0.55;
}
.cat-empty {
  padding-block: 64px;
}
.cat-home-news,
.cat-home-projects {
  padding-block: var(--cat-section);
}
.cat-home-news {
  background: #e8e7df;
}
.cat-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px !important;
}
.cat-kicker:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #ff6d2a;
}
.cat-home-top,
.cat-home-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cat-home-top {
  margin-bottom: clamp(44px, 4.44vw, 64px);
}
.cat-home-top h2 {
  letter-spacing: 0.005em;
  font-size: clamp(40px, 4.167vw, 68px);
  line-height: 1.05;
}
.cat-home-top em {
  font-style: normal;
  color: var(--cat-rust);
}
.cat-home-top a {
  font-size: 15px;
  font-weight: 600;
}
.cat-home-nav {
  align-items: center;
}
.cat-home-nav .cat-buttons {
  gap: 0;
}
.cat-home-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--cat-gap);
}
.cat-home-project-grid .cat-project-card:first-child {
  grid-column: 1/-1;
}
.cat-home-project-grid .cat-art {
  aspect-ratio: 4/3;
}
.cat-home-project-grid .cat-project-card:first-child .cat-art {
  aspect-ratio: 1312/562;
}
.cat-home-project-grid h3 {
  font-size: 24px;
  margin-right: 110px;
}
.cat-home-project-grid .cat-project-link {
  background: none;
  color: var(--cat-rust);
  width: auto;
  height: auto;
  font-size: 14px;
  font-weight: 600;
  display: inline;
}
.cat-home-news .cat-home-top {
  margin-bottom: 56px;
}
@media (max-width: 1023px) {
  .cat-intro-line {
    grid-template-columns: 1fr 1fr;
  }
  .cat-group-header {
    grid-template-columns: 1fr 40%;
  }
  .cat-project-filters {
    align-items: start;
  }
  .cat-home-top,
  .cat-home-nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .cat-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-featured {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .cat-stage-filters {
    gap: 0;
  }
  .cat-stage-filters button {
    padding: 10px 7px;
  }
}
@media (max-width: 767px) {
  .cat-wrap {
    width: calc(100% - 40px);
  }
  .cat-intro {
    padding: 44px 0 54px;
  }
  .cat-intro-line,
  .cat-featured,
  .cat-group-header {
    grid-template-columns: 1fr;
  }
  .cat-intro-line {
    gap: 20px;
  }
  .cat-intro h1 {
    font-size: clamp(60px, 14vw, 84px);
  }
  .cat-buttons {
    gap: 5px;
  }
  .cat-buttons button {
    padding: 8px 11px;
    min-height: 38px;
  }
  .cat-project-filters {
    padding-block: 16px;
  }
  .cat-stage-filters {
    flex-wrap: wrap;
  }
  .cat-group,
  .cat-home-projects,
  .cat-home-news {
    padding-block: 64px;
  }
  .cat-group-header {
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 30px;
  }
  .cat-group-header p {
    font-size: 16px;
  }
  .cat-project-grid,
  .cat-home-project-grid,
  .cat-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cat-project-grid .cat-project-card:nth-child(n) {
    grid-column: auto;
    margin: 0;
  }
  .cat-project-grid .cat-art,
  .cat-home-project-grid .cat-project-card .cat-art {
    height: auto;
    aspect-ratio: 4/3;
  }
  .cat-project-caption {
    padding-top: 14px;
  }
  .cat-project-caption .cat-project-link {
    top: 12px;
  }
  .cat-home-project-grid h3 {
    font-size: 21px;
  }
  .cat-home-top,
  .cat-home-news .cat-home-top {
    margin-bottom: 30px;
  }
  .cat-home-nav {
    gap: 12px;
  }
  .cat-news-list .cat-news-grid {
    margin-top: 28px;
  }
  .cat-featured .cat-meta {
    margin: 12px 0;
  }
  .cat-featured p {
    font-size: 16px;
  }
  .cat-pager {
    gap: 3px;
  }
  .cat-pager button {
    min-width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  [data-catalog="projects"] .cat-intro {
    padding-bottom: clamp(70px, 8.33vw, 120px);
  }
  [data-catalog="news"] .cat-intro {
    padding-bottom: clamp(70px, 8.75vw, 126px);
  }
}

@media (max-width: 1023px) {
  .cat-project-filters { flex-wrap: wrap; }
  .cat-buttons button, .cat-stage-filters button, .cat-pager button,
  .cat-project-caption .cat-project-link { min-width: 44px; min-height: 44px; }
  .cat-home-nav a, .cat-read { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cat-wrap { width: calc(100% - 64px); }
  .cat-intro-line h1 { font-size: 80px; }
}
