/* Scoped category landing: the established tendre fit-out palette, with a clearer directory-led rhythm. */
body:has(.core-category-page) {
  padding: 0 !important;
  margin: 0 !important;
  background: #f7f6f1;
  overflow-x: hidden;
}

body:has(.core-category-page) > main {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  margin: 0 !important;
}

.core-category-page {
  --cc-wrap: min(1200px, calc(100% - 72px));
  --cc-ink: #2c3e50;
  --cc-paper: #f7f6f1;
  --cc-panel: #eeece4;
  --cc-yellow: #ffc002;
  --cc-line: #dedfd8;
  overflow: hidden;
  background: var(--cc-paper);
  color: var(--cc-ink);
}

.core-category-page .of-header__inner,
.core-category-page .cc-intro__inner,
.core-category-page .cc-groups,
.core-category-page .of-section,
.core-category-page .of-footer-wrap .homepage-footer {
  width: var(--cc-wrap);
}

.core-category-page .of-header {
  background: rgba(247, 246, 241, .97);
}

.core-category-page .cc-hero {
  min-height: 590px;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  padding: 64px max(calc((100vw - 1200px) / 2), 36px);
  background: var(--cc-panel);
}

.core-category-page .cc-hero__image {
  inset: 0 0 0 37%;
}

.core-category-page .cc-hero__image img {
  object-position: center 56%;
}

.core-category-page .cc-hero::before {
  background: linear-gradient(90deg, #f7f6f1 0%, #f7f6f1 31%, rgba(247,246,241,.94) 43%, rgba(247,246,241,.38) 63%, rgba(247,246,241,.08) 100%);
}

.core-category-page .cc-hero__copy {
  width: min(600px, 100%);
  max-width: 600px;
  padding: 8px 0 30px;
  color: var(--cc-ink);
  text-shadow: none;
}

.core-category-page .cc-hero h1 {
  color: var(--cc-ink) !important;
  max-width: 570px;
  font-size: clamp(45px, 5.5vw, 71px);
  line-height: .99;
  letter-spacing: -2.9px;
}

.core-category-page .cc-hero .cc-hero__copy > .of-kicker {
  color: #536273;
}

.core-category-page .cc-hero .cc-hero__copy > p:not(.of-kicker) {
  color: #44515d;
}

.core-category-page .cc-hero__copy > p:not(.of-kicker) {
  max-width: 490px;
  margin: 23px 0 25px;
  font-size: 15px;
  line-height: 1.72;
}

.core-category-page .cc-hero .of-hero__actions {
  gap: 23px;
  flex-wrap: wrap;
}

.core-category-page .cc-hero__caption {
  position: absolute;
  right: max(calc((100vw - 1200px) / 2), 36px);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  background: rgba(247, 246, 241, .86);
  color: #526273;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.core-category-page .cc-hero__caption span:last-child {
  color: var(--cc-ink);
  letter-spacing: .3px;
}

.cc-intro {
  padding: 69px 0 0;
}

.cc-intro__inner {
  margin: 0 auto;
}

.cc-intro__inner > .of-kicker {
  margin-bottom: 14px;
}

.cc-intro__grid {
  display: grid;
  grid-template-columns: 1fr .72fr;
  align-items: end;
  gap: 9%;
  padding-bottom: 34px;
}

.cc-intro__grid h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.04;
  letter-spacing: -1.8px;
}

.cc-intro__grid > div {
  padding-bottom: 2px;
}

.cc-intro__grid p {
  margin: 0 0 16px;
  color: #65716b;
  font-size: 12px;
  line-height: 1.8;
}

.cc-intro__rule {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0 0;
  border-top: 1px solid var(--cc-line);
  color: #768078;
  font: 600 9px/1 var(--of-font);
  letter-spacing: 1px;
}

.cc-intro__rule i {
  width: 70px;
  height: 1px;
  background: var(--cc-yellow);
}

.core-category-page .cc-groups {
  margin: 0 auto;
  padding: 72px 0 86px;
}

.cc-groups__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 29px;
}

.cc-groups__heading .of-kicker {
  margin-bottom: 9px;
}

.cc-groups__heading .of-section-title {
  font-size: clamp(37px, 4.3vw, 54px);
  letter-spacing: -1.9px;
}

.cc-groups__heading > p {
  max-width: 355px;
  margin: 0 0 5px;
  color: #65716b;
  font-size: 12px;
  line-height: 1.75;
}

.cc-group-list {
  display: grid;
  gap: 15px;
}

.cc-group {
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #e1e2da;
  background: #fffefa;
  animation: cc-rise .55s both;
  animation-delay: calc(var(--cc-order, 0) * 60ms);
}

.cc-group:nth-child(1) { --cc-order: 1; }
.cc-group:nth-child(2) { --cc-order: 2; }
.cc-group:nth-child(3) { --cc-order: 3; }
.cc-group:nth-child(4) { --cc-order: 4; }
.cc-group:nth-child(5) { --cc-order: 5; }

.cc-group__visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #e3e6df;
}

.cc-group__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(25, 43, 58, .02) 40%, rgba(25, 43, 58, .4));
  pointer-events: none;
}

.cc-group__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform .55s ease;
}

.cc-group:hover .cc-group__visual img {
  transform: scale(1.035);
}

.cc-group__index {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 17px;
  color: #fff;
  font: 600 12px/1 var(--of-font);
  letter-spacing: 1.5px;
}

.cc-group__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(23px, 3.1vw, 40px) clamp(24px, 4.1vw, 56px);
}

.cc-group__topline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
  color: #738078;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.cc-group__topline span:last-child {
  color: var(--cc-yellow);
  font-size: 13px;
}

.cc-group__content h3 {
  margin: 0;
  color: var(--cc-ink);
  font: 600 clamp(25px, 2.7vw, 34px)/1.12 var(--of-display);
  letter-spacing: -1px;
}

.cc-group__description {
  max-width: 620px;
  margin: 11px 0 17px;
  color: #6b7670;
  font-size: 11px;
  line-height: 1.72;
}

.cc-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-service-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  border: 1px solid #dfe2dc;
  border-radius: 2px;
  background: #f8f8f3;
  color: #40505f !important;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.cc-service-badge span {
  color: #89938c;
  font-size: 11px;
  font-weight: 400;
}

.cc-service-badge:hover {
  transform: translateY(-2px);
  border-color: #aebcb3;
  background: #edf0e9;
}

.cc-group__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 19px;
  color: var(--cc-ink) !important;
  text-decoration: none !important;
  font-size: 10px;
  font-weight: 700;
}

.cc-group__link span {
  color: #a07800;
  font-size: 16px;
  transition: transform .18s ease;
}

.cc-group__link:hover span {
  transform: translateX(4px);
}

.cc-guidance {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  padding: 58px max(calc((100vw - 1200px) / 2), 36px);
  background: #eeece4;
}

.cc-guidance__mark {
  display: flex;
  width: 132px;
  height: 132px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #d5d8d1;
  border-radius: 50%;
  color: var(--cc-ink);
  font: 600 27px/1 var(--of-display);
}

.cc-guidance__mark i {
  width: 28px;
  height: 1px;
  background: #b58b00;
}

.cc-guidance__copy {
  max-width: 570px;
}

.cc-guidance__copy .of-kicker {
  margin-bottom: 10px;
}

.cc-guidance__copy h2 {
  margin: 0;
  font: 600 clamp(29px, 3vw, 39px)/1.07 var(--of-display);
  letter-spacing: -1.3px;
}

.cc-guidance__copy > p:last-child {
  max-width: 540px;
  margin: 12px 0 0;
  color: #65716b;
  font-size: 11px;
  line-height: 1.75;
}

.cc-guidance__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.cc-guidance__secondary {
  color: #5d6a73 !important;
  text-decoration: none;
  font-size: 9px;
  line-height: 1.55;
}

.cc-guidance__secondary span {
  display: block;
  color: var(--cc-ink);
  font-weight: 700;
}

.core-category-page .cc-faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 82px;
  padding-top: 77px;
  padding-bottom: 82px;
}

.cc-faq__intro .of-section-title {
  font-size: clamp(35px, 4vw, 47px);
  letter-spacing: -1.7px;
}

.cc-faq__intro > p:last-child {
  max-width: 300px;
  margin: 16px 0 0;
  color: #68736d;
  font-size: 11px;
  line-height: 1.7;
}

.cc-faq .of-faq__list details p {
  font-size: 11px;
}

.core-category-page .cc-final {
  padding: 66px max(calc((100vw - 1200px) / 2), 36px);
}

.core-category-page .cc-final .of-final__inner {
  max-width: 1200px;
}

.core-category-page .cc-final h2 {
  max-width: 720px;
}

.core-category-page .of-footer-wrap {
  background: var(--cc-paper);
}

.core-category-page .of-footer-wrap .homepage-footer {
  margin: 0 auto;
}

.core-category-page :focus-visible {
  outline: 3px solid #2c3e50;
  outline-offset: 4px;
}

@keyframes cc-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .core-category-page { --cc-wrap: min(100% - 48px, 760px); }
  .core-category-page .cc-hero {
    min-height: 560px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    padding-inline: 24px;
  }
  .cc-group { grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr); }
  .cc-guidance { grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding-inline: 24px; }
  .cc-guidance__mark { width: 104px; height: 104px; }
  .cc-guidance__action { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .core-category-page .cc-faq { gap: 42px; }
}

@media (max-width: 700px) {
  .core-category-page { --cc-wrap: calc(100% - 40px); }
  .core-category-page .of-header { height: 64px; }
  .core-category-page .of-header__inner { width: calc(100% - 36px); }
  .core-category-page .cc-hero {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    align-items: stretch;
    padding: 44px 20px 52px;
    background: #f2f1eb;
  }
  .core-category-page .cc-hero__image { inset: 0 0 auto; height: 340px; }
  .core-category-page .cc-hero__image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, #f2f1eb 0%, #f2f1ebeb 27%, #f2f1eb99 73%, #f2f1eb 100%);
  }
  .core-category-page .cc-hero::before { display: none; }
  .core-category-page .cc-hero__copy { position: relative; z-index: 1; padding: 0; }
  .core-category-page .cc-hero h1 { font-size: clamp(43px, 11vw, 60px); letter-spacing: -1.8px; }
  .core-category-page .cc-hero__copy > p:not(.of-kicker) { margin: 16px 0 19px; font-size: 12px; }
  .core-category-page .cc-hero__caption { right: 12px; bottom: 12px; font-size: 7px; }
  .cc-intro { padding-top: 49px; }
  .cc-intro__grid { grid-template-columns: 1fr; gap: 17px; padding-bottom: 25px; }
  .cc-intro__grid h2 { font-size: 38px; letter-spacing: -1.3px; }
  .cc-intro__grid p { font-size: 11px; }
  .core-category-page .cc-groups { padding: 54px 0 58px; }
  .cc-groups__heading { display: block; margin-bottom: 20px; }
  .cc-groups__heading .of-section-title { font-size: 39px; letter-spacing: -1.3px; }
  .cc-groups__heading > p { margin-top: 12px; font-size: 11px; }
  .cc-group-list { gap: 13px; }
  .cc-group { grid-template-columns: 1fr; }
  .cc-group__visual { min-height: 190px; height: 190px; }
  .cc-group__visual img { min-height: 190px; }
  .cc-group__content { padding: 22px 20px 23px; }
  .cc-group__content h3 { font-size: 27px; }
  .cc-group__description { margin: 9px 0 14px; font-size: 10px; }
  .cc-service-list { gap: 7px; }
  .cc-service-badge { min-height: 33px; padding: 6px 8px 6px 10px; font-size: 9px; }
  .cc-group__link { padding-top: 16px; }
  .cc-guidance { grid-template-columns: 1fr; gap: 19px; padding: 42px 20px; }
  .cc-guidance__mark { width: 76px; height: 76px; font-size: 20px; }
  .cc-guidance__mark i { width: 18px; }
  .cc-guidance__copy h2 { font-size: 32px; }
  .cc-guidance__action { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .core-category-page .cc-faq { display: block; padding-top: 54px; padding-bottom: 58px; }
  .cc-faq__intro .of-section-title { font-size: 38px; }
  .cc-faq .of-faq__list { margin-top: 21px; }
  .cc-faq .of-faq__list summary { min-height: 55px; font-size: 12px; }
  .cc-faq .of-faq__list details p { font-size: 10px; }
  .core-category-page .cc-final { padding: 49px 20px; }
  .core-category-page .cc-final h2 { font-size: 42px; }
  .core-category-page .cc-final .of-final__actions { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .core-category-page *,
  .core-category-page *::before,
  .core-category-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
