/* 20260730 Sec01-07 SP adjustment implementation v1.0 */
/* 20260731 Sec04-06 SP visual refinement v1.4 */
/* 20260731 Sec06 heading veil smoothing v1.6 */
/* ==========================================================================
   Zero Next One BASE NIIKAPPU
   top-sec06.css
   Section 06 smartphone comp override
   --------------------------------------------------------------------------
   Section 06 / Nature Activities
   - Full background image
   - HTML text / cards / CTA
   - Smartphone comp first
   - Phase 1 typography refinement
   - Sub CTA blue button refinement
   - Marker: 20260612-sec06-sub-cta-blue-01
   ========================================================================== */

@media (max-width: 767px) {
  .page-top .p-activities {
    position: relative;
    width: 100%;
    min-height: max(100svh, 216.3vw);
    min-height: max(100dvh, 216.3vw);
    padding: 0 0 62px;
    color: #1f1c16;
    background: #efe4cf;
    overflow: hidden;
    isolation: isolate;
  }

  .page-top .p-activities::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("../img/top/sec06/sec06_bg_nature_sp.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
  }

  .page-top .p-activities__bg,
  .page-top .p-activities__decor,
  .page-top .p-activities__layout,
  .page-top .p-activities__visual {
    display: none !important;
  }

  .page-top .p-activities__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: clamp(84px, 21.4vw, 106px) 34px 0;
  }

  .page-top .p-activities__heading {
    position: relative;
    isolation: isolate;
    width: min(100%, 312px);
    margin: 0;
  }

  .page-top .p-activities__heading::before {
    content: "";
    position: absolute;
    left: -72px;
    right: -78px;
    top: -58px;
    bottom: -82px;
    z-index: -1;
    width: auto;
    height: auto;
    pointer-events: none;
    background:
      radial-gradient(
        ellipse 118% 94% at 23% 35%,
        rgba(250, 244, 231, 0.72) 0%,
        rgba(248, 241, 226, 0.54) 34%,
        rgba(247, 239, 221, 0.27) 59%,
        rgba(247, 239, 221, 0.075) 80%,
        rgba(247, 239, 221, 0) 100%
      ),
      radial-gradient(
        ellipse 92% 72% at 18% 76%,
        rgba(250, 244, 231, 0.3) 0%,
        rgba(247, 239, 221, 0.12) 54%,
        rgba(247, 239, 221, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(250, 244, 231, 0.34) 0%,
        rgba(248, 241, 226, 0.2) 38%,
        rgba(247, 239, 221, 0.055) 68%,
        rgba(247, 239, 221, 0) 94%
      );
    filter: blur(14px);
  }

  .page-top .p-activities__kicker {
    position: relative;
    margin: 0 0 clamp(18px, 4.4vw, 23px);
    color: #171511;
    font-family: var(--font-label);
    font-size: clamp(0.72rem, 2.84vw, 0.84rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow:
      0 1px 6px rgba(244, 235, 216, 0.78),
      0 0 12px rgba(244, 235, 216, 0.34);
  }

  .page-top .p-activities__kicker::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 11px;
    background: currentColor;
    opacity: 0.62;
  }

  .page-top .p-activities__title {
    margin: 0;
    color: #15273d;
    font-family: var(--font-heading);
    font-size: clamp(2.08rem, 8.7vw, 2.72rem);
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: 0.07em;
    text-shadow:
      0 2px 10px rgba(244, 235, 216, 0.48),
      0 0 18px rgba(244, 235, 216, 0.24);
  }

  .page-top .p-activities__title span {
    display: inline-block;
    white-space: nowrap;
  }

  .page-top .p-activities__lead {
    margin: clamp(18px, 4.4vw, 24px) 0 0;
    color: #16140f;
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 3.08vw, 0.92rem);
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.036em;
    text-shadow:
      0 1px 7px rgba(244, 235, 216, 0.68),
      0 0 12px rgba(244, 235, 216, 0.28);
  }

  .page-top .p-activities__cards {
    position: relative;
    display: grid;
    gap: 7px;
    width: calc(100% + 10px);
    max-width: none;
    margin: clamp(30px, 7.3vw, 42px) 0 0 -10px;
  }

  .page-top .p-activities-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(146px, 45%);
    align-items: center;
    gap: 7px;
    min-height: 100px;
    padding: 12px 9px 12px 17px;
    border: 1px solid rgba(76, 56, 33, 0.085);
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
      rgba(247, 239, 221, 0.9);
    box-shadow:
      0 6px 13px rgba(42, 32, 18, 0.065),
      inset 0 1px 0 rgba(255, 255, 255, 0.42);
    overflow: hidden;
  }

  .page-top .p-activities-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
  }

  .page-top .p-activities-card__head {
    position: static;
    display: block;
    width: 100%;
    margin: 0 0 6px;
    text-align: center;
  }

  /* Numbering is an attached corner index, not a floating text fragment. */
  .page-top .p-activities-card__num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: clamp(40px, 10.4vw, 44px);
    height: clamp(26px, 6.8vw, 29px);
    color: #fffaf0;
    border-radius: 11px 0 10px 0;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
      #43513d;
    box-shadow:
      inset -1px -1px 0 rgba(255, 250, 240, 0.16),
      1px 2px 5px rgba(45, 52, 39, 0.14);
    font-family: var(--font-label);
    font-size: clamp(0.72rem, 2.9vw, 0.86rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.075em;
    transform: none;
  }

  .page-top .p-activities-card__title {
    min-width: 0;
    margin: 0;
    color: #1f1c16;
    font-family: var(--font-ui);
    font-size: clamp(0.8rem, 3.16vw, 0.96rem);
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: 0.016em;
    white-space: nowrap;
  }

  .page-top .p-activities-card--river .p-activities-card__title {
    font-size: clamp(0.74rem, 2.94vw, 0.88rem);
    letter-spacing: 0;
  }

  .page-top .p-activities-card__text {
    position: relative;
    width: 100%;
    margin: 0;
    padding-top: 8px;
    color: #27231b;
    font-family: var(--font-ui);
    font-size: clamp(0.66rem, 2.58vw, 0.78rem);
    font-weight: 500;
    line-height: 1.56;
    letter-spacing: 0.018em;
  }

  .page-top .p-activities-card__text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(88px, 62%);
    height: 1px;
    background: rgba(65, 50, 32, 0.16);
    transform: translateX(-50%);
  }

  .page-top .p-activities-card__thumb {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #ded1b4;
  }

  .page-top .p-activities-card__thumb picture,
  .page-top .p-activities-card__thumb-img {
    display: block;
    width: 100%;
  }

  .page-top .p-activities-card__thumb-img {
    aspect-ratio: 1.82 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }

  .page-top .p-activities-card--horse .p-activities-card__thumb-img {
    object-position: center center;
  }

  .page-top .p-activities-card--river .p-activities-card__thumb-img {
    object-position: center center;
  }

  .page-top .p-activities-card--fire .p-activities-card__thumb-img {
    object-position: center center;
  }

  .page-top .p-activities__actions {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(100%, 326px);
    margin: clamp(20px, 4.9vw, 28px) auto 0;
  }

  .page-top .p-activities__primary-button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 999px;
    color: #fffaf0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
      #30472f;
    box-shadow: 0 8px 16px rgba(32, 29, 19, 0.15);
    font-family: var(--font-ui);
    font-size: clamp(0.96rem, 3.76vw, 1.1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.065em;
    text-decoration: none;
  }

  .page-top .p-activities__primary-button span:first-child {
    justify-self: center;
    transform: translateX(9px);
    white-space: nowrap;
  }

  .page-top .p-activities__primary-button span[aria-hidden="true"] {
    justify-self: end;
    font-size: 1.18em;
    line-height: 1;
  }

  .page-top .p-activities__sub-link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 0 auto;
    padding: 0 23px;
    border: 1px solid rgba(255, 250, 240, 0.28);
    border-radius: 999px;
    color: #fffaf0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
      #142637;
    box-shadow:
      0 8px 18px rgba(15, 22, 29, 0.22),
      inset 0 0 0 1px rgba(255, 250, 240, 0.08);
    font-family: var(--font-ui);
    font-size: clamp(0.92rem, 3.56vw, 1.04rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.055em;
    text-align: center;
    text-decoration: none;
  }

  .page-top .p-activities__sub-link::before,
  .page-top .p-activities__sub-link::after {
    content: none !important;
    display: none !important;
  }

  .page-top .p-activities__sub-link span:first-child {
    justify-self: center;
    transform: translateX(9px);
    white-space: nowrap;
  }

  .page-top .p-activities__sub-link span[aria-hidden="true"] {
    justify-self: end;
    display: block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: currentColor;
    font-size: 1.18em;
    line-height: 1;
  }

  @supports not (height: 100dvh) {
    .page-top .p-activities {
      min-height: max(100vh, 216.3vw);
    }
  }
}

@media (max-width: 374px) {
  .page-top .p-activities {
    min-height: max(100svh, 222vw);
    min-height: max(100dvh, 222vw);
  }

  .page-top .p-activities__inner {
    padding-top: 76px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .page-top .p-activities__heading {
    width: min(100%, 288px);
  }

  .page-top .p-activities__title {
    font-size: 1.9rem;
  }

  .page-top .p-activities__lead {
    font-size: 0.72rem;
  }

  .page-top .p-activities__cards {
    width: calc(100% + 8px);
    max-width: none;
    margin-left: -8px;
    margin-right: 0;
    gap: 7px;
  }

  .page-top .p-activities-card {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 42%);
    gap: 6px;
    min-height: 94px;
    padding: 10px 8px 10px 13px;
  }

  .page-top .p-activities-card__head {
    margin-bottom: 6px;
  }

  .page-top .p-activities-card__num {
    width: 38px;
    height: 25px;
    border-radius: 10px 0 9px 0;
    font-size: 0.68rem;
  }

  .page-top .p-activities-card__title {
    font-size: 0.72rem;
    letter-spacing: 0.002em;
  }

  .page-top .p-activities-card--river .p-activities-card__title {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .page-top .p-activities-card__text {
    font-size: 0.58rem;
  }

  .page-top .p-activities__primary-button {
    min-height: 48px;
    font-size: 0.88rem;
  }

  .page-top .p-activities__sub-link {
    min-height: 48px;
    padding-inline: 20px;
    font-size: 0.84rem;
    letter-spacing: 0.032em;
  }

  .page-top .p-activities__sub-link span:first-child {
    transform: translateX(7px);
  }

  @supports not (height: 100dvh) {
    .page-top .p-activities {
      min-height: max(100vh, 222vw);
    }
  }
}

/* --------------------------------------------------------------------------
   Section 06 / PC v3.1 - Niikappu Field Notes refinement
   --------------------------------------------------------------------------
   - Preserve the completed smartphone layout above.
   - Keep the existing nature background and thumbnail assets.
   - Present horse, river, and outdoor time as environmental field notes,
     not as bookable activities or independent service cards.
   - Remove the equal-card / pill-CTA / floating-hover appearance on tablet
     and desktop.
   - v3.1 tightens the Field Notes distance, strengthens note typography/lines,
     and keeps the third image ready for safe asset replacement.
   - Keep Header, Footer, main.css, PHP structure, and JavaScript untouched.
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .page-top .p-activities {
    --sec06-paper: var(--color-paper-warm, #f6eedc);
    --sec06-paper-base: var(--color-paper, #efe4cf);
    --sec06-ink: var(--color-ink, #1f1c16);
    --sec06-heading: var(--color-blue-niikappu, #15273d);
    --sec06-forest: var(--color-forest-deep, #243a2e);
    --sec06-number: var(--color-amber-deep, #7a471d);
    --sec06-line: rgba(74, 55, 32, 0.23);
    --sec06-scene-height: clamp(570px, 72vw, 700px);

    position: relative;
    width: 100%;
    min-height: 0;
    padding: 0 0 clamp(88px, 9vw, 118px);
    color: var(--sec06-ink);
    background:
      linear-gradient(
        180deg,
        var(--sec06-paper) 0%,
        var(--sec06-paper-base) 68%,
        var(--sec06-paper) 100%
      );
    overflow: hidden;
    overflow: clip;
    isolation: isolate;
  }

  .page-top .p-activities::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: var(--sec06-scene-height);
    pointer-events: none;
    background-image: url("../img/top/sec06/sec06_bg_nature_pc.png");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: 58% top;
  }

  .page-top .p-activities::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: calc(var(--sec06-scene-height) + clamp(150px, 18vw, 230px));
    pointer-events: none;
    background:
      radial-gradient(
        ellipse at 17% 24%,
        rgba(255, 248, 232, 0.91) 0%,
        rgba(247, 239, 221, 0.67) 34%,
        rgba(247, 239, 221, 0.22) 58%,
        rgba(247, 239, 221, 0) 76%
      ),
      linear-gradient(
        90deg,
        rgba(246, 238, 220, 0.79) 0%,
        rgba(246, 238, 220, 0.58) 29%,
        rgba(246, 238, 220, 0.17) 54%,
        rgba(246, 238, 220, 0) 84%
      ),
      linear-gradient(
        180deg,
        rgba(239, 228, 207, 0.02) 0%,
        rgba(239, 228, 207, 0.02) 47%,
        rgba(239, 228, 207, 0.62) 72%,
        var(--sec06-paper-base) 91%,
        var(--sec06-paper-base) 100%
      );
  }

  .page-top .p-activities__bg,
  .page-top .p-activities__decor,
  .page-top .p-activities__layout,
  .page-top .p-activities__visual {
    display: none !important;
  }

  .page-top .p-activities__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "cards"
      "actions";
    width: min(var(--pc-visual-max, 1240px), 100%);
    margin: 0 auto;
    padding: clamp(96px, 10vw, 122px) var(--side-padding) 0;
  }

  .page-top .p-activities__heading {
    position: relative;
    z-index: 2;
    grid-area: heading;
    isolation: isolate;
    width: min(100%, 520px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-top .p-activities__heading::before {
    content: "";
    position: absolute;
    top: -34px;
    left: -34px;
    z-index: -1;
    width: min(128%, 650px);
    height: calc(100% + 74px);
    pointer-events: none;
    background:
      radial-gradient(
        ellipse at 34% 42%,
        rgba(255, 248, 232, 0.83) 0%,
        rgba(247, 239, 221, 0.55) 48%,
        rgba(247, 239, 221, 0.18) 72%,
        rgba(247, 239, 221, 0) 100%
      );
    filter: blur(1.5px);
  }

  .page-top .p-activities__kicker {
    position: relative;
    margin: 0 0 clamp(24px, 3vw, 32px);
    color: rgba(31, 28, 22, 0.74);
    font-family: var(--font-label);
    font-size: clamp(0.72rem, 0.9vw, 0.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: none;
  }

  .page-top .p-activities__kicker::after {
    content: "";
    display: block;
    width: clamp(62px, 6.4vw, 76px);
    height: 1px;
    margin-top: 13px;
    background:
      linear-gradient(
        90deg,
        currentColor,
        rgba(122, 71, 29, 0.46),
        rgba(122, 71, 29, 0)
      );
    opacity: 0.72;
  }

  .page-top .p-activities__title {
    margin: 0;
    color: var(--sec06-heading);
    font-family: var(--font-heading);
    font-size: clamp(2.64rem, 5.35vw, 3.55rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(247, 239, 221, 0.38);
  }

  .page-top .p-activities__title span {
    display: inline-block;
    white-space: nowrap;
  }

  .page-top .p-activities__lead {
    width: min(100%, 45ch);
    margin: clamp(24px, 3vw, 32px) 0 0;
    color: var(--sec06-ink);
    font-family: var(--font-body);
    font-size: clamp(0.94rem, 1.18vw, 1.04rem);
    font-weight: 500;
    line-height: 1.98;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 8px rgba(247, 239, 221, 0.32);
  }

  .page-top .p-activities__lead br {
    display: none;
  }

  .page-top .p-activities__lead br + br {
    display: block;
    margin-top: 0.9em;
  }

  .page-top .p-activities__cards {
    position: relative;
    z-index: 2;
    grid-area: cards;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: clamp(72px, 8.6vw, 100px) auto 0;
    border-top: 1px solid var(--sec06-line);
    border-bottom: 1px solid var(--sec06-line);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0)),
      rgba(247, 239, 221, 0.36);
  }

  .page-top .p-activities__cards::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      repeating-linear-gradient(
        8deg,
        rgba(74, 55, 32, 0.012) 0,
        rgba(74, 55, 32, 0.012) 1px,
        transparent 1px,
        transparent 6px
      );
    opacity: 0.42;
  }

  .page-top .p-activities-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "thumb"
      "body";
    min-width: 0;
    min-height: 100%;
    padding: clamp(24px, 3.6vw, 34px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }

  .page-top .p-activities-card--horse {
    border-right: 1px solid var(--sec06-line);
  }

  .page-top .p-activities-card--river {
    border-right: 0;
  }

  .page-top .p-activities-card--fire {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    grid-template-rows: auto;
    grid-template-areas: "thumb body";
    align-items: center;
    column-gap: clamp(26px, 4.6vw, 48px);
    border-top: 1px solid var(--sec06-line);
  }

  .page-top .p-activities-card__body {
    grid-area: body;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(20px, 2.8vw, 28px) 0 0;
  }

  .page-top .p-activities-card--fire .p-activities-card__body {
    padding-top: 0;
  }

  .page-top .p-activities-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 12px;
    margin: 0 0 14px;
  }

  .page-top .p-activities-card__num {
    color: var(--sec06-number);
    font-family: var(--font-label);
    font-size: clamp(1.26rem, 2.4vw, 1.62rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.09em;
    opacity: 0.78;
  }

  .page-top .p-activities-card__title,
  .page-top .p-activities-card--river .p-activities-card__title {
    min-width: 0;
    margin: 0;
    color: var(--sec06-ink);
    font-family: var(--font-ui);
    font-size: clamp(1.12rem, 1.9vw, 1.36rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .page-top .p-activities-card__text {
    position: relative;
    max-width: 35ch;
    margin: 0;
    padding-top: 16px;
    color: rgba(31, 28, 22, 0.82);
    font-family: var(--font-ui);
    font-size: clamp(0.88rem, 1.18vw, 1rem);
    font-weight: 500;
    line-height: 1.86;
    letter-spacing: 0.012em;
  }

  .page-top .p-activities-card__text br {
    display: none;
  }

  .page-top .p-activities-card__text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(48px, 5vw, 66px);
    height: 1px;
    background:
      linear-gradient(
        90deg,
        rgba(122, 71, 29, 0.58),
        rgba(74, 55, 32, 0.18)
      );
  }

  .page-top .p-activities-card__thumb {
    position: relative;
    grid-area: thumb;
    aspect-ratio: 2 / 1;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #ded1b4;
  }

  .page-top .p-activities-card--fire .p-activities-card__thumb {
    aspect-ratio: 2.18 / 1;
  }

  .page-top .p-activities-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 250, 240, 0.18);
    box-shadow: inset 0 0 0 1px rgba(74, 55, 32, 0.07);
  }

  .page-top .p-activities-card__thumb picture,
  .page-top .p-activities-card__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .page-top .p-activities-card__thumb-img {
    object-fit: cover;
    object-position: center center;
    transition: transform 0.45s var(--ease-out-craft);
  }

  .page-top .p-activities-card--horse .p-activities-card__thumb-img,
  .page-top .p-activities-card--river .p-activities-card__thumb-img {
    object-position: center center;
  }

  .page-top .p-activities-card--fire .p-activities-card__thumb-img {
    object-position: center center;
  }

  .page-top .p-activities__actions {
    position: relative;
    z-index: 2;
    grid-area: actions;
    display: grid;
    justify-items: start;
    gap: 10px;
    width: min(100%, 430px);
    margin: clamp(32px, 4.2vw, 44px) 0 0;
  }

  .page-top .p-activities__primary-button {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
    width: 100%;
    min-height: 48px;
    padding: 7px 0 9px;
    border: 0;
    border-bottom: 1px solid rgba(36, 58, 46, 0.84);
    border-radius: 0;
    color: var(--sec06-forest);
    background: transparent;
    box-shadow: none;
    font-family: var(--font-ui);
    font-size: clamp(0.96rem, 1.24vw, 1.04rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.045em;
    text-align: left;
    text-decoration: none;
    transition:
      color 0.3s var(--ease-out-craft),
      border-color 0.3s var(--ease-out-craft);
  }

  .page-top .p-activities__primary-button span:first-child {
    justify-self: start;
    transform: none;
    white-space: normal;
  }

  .page-top .p-activities__primary-button span[aria-hidden="true"] {
    justify-self: end;
    color: var(--sec06-number);
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-craft);
  }

  .page-top .p-activities__sub-link {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    gap: 10px;
    width: fit-content;
    min-height: 44px;
    margin: 0;
    padding: 6px 0 8px;
    border: 0;
    border-radius: 0;
    color: rgba(31, 28, 22, 0.76);
    background: transparent;
    box-shadow: none;
    font-family: var(--font-ui);
    font-size: clamp(0.88rem, 1.08vw, 0.96rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: left;
    text-decoration: none;
    transition: color 0.3s var(--ease-out-craft);
  }

  .page-top .p-activities__sub-link::before {
    content: none !important;
    display: none !important;
  }

  .page-top .p-activities__sub-link::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: 5px;
    left: 0;
    height: 1px;
    background: rgba(122, 71, 29, 0.62);
    transform: scaleX(0.82);
    transform-origin: left center;
    transition:
      right 0.3s var(--ease-out-craft),
      transform 0.3s var(--ease-out-craft),
      opacity 0.3s var(--ease-out-craft);
  }

  .page-top .p-activities__sub-link span:first-child {
    justify-self: start;
    transform: none;
    white-space: normal;
  }

  .page-top .p-activities__sub-link span[aria-hidden="true"] {
    justify-self: end;
    display: inline-block;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    color: var(--sec06-number);
    font-size: 1.02em;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-craft);
  }

  .page-top .p-activities__primary-button:focus-visible,
  .page-top .p-activities__sub-link:focus-visible {
    outline: 2px solid var(--color-amber, #b68b16);
    outline-offset: 5px;
  }
}

@media (min-width: 1024px) {
  .page-top .p-activities {
    --sec06-scene-height: clamp(640px, 58vw, 740px);
    padding-bottom: clamp(96px, 8vw, 124px);
  }

  .page-top .p-activities::before {
    background-position: 56% top;
  }

  .page-top .p-activities__inner {
    grid-template-columns:
      minmax(320px, 0.44fr)
      minmax(0, 0.56fr);
    grid-template-areas:
      "heading ."
      "actions ."
      "cards cards";
    column-gap: clamp(48px, 6vw, 80px);
    width: min(var(--pc-visual-max, 1240px), 100%);
    padding-top: clamp(108px, 9vw, 136px);
  }

  .page-top .p-activities__heading {
    width: min(100%, 500px);
  }

  .page-top .p-activities__title {
    font-size: clamp(3rem, 4.7vw, 3.85rem);
  }

  .page-top .p-activities__actions {
    margin-top: clamp(30px, 3.4vw, 42px);
  }

  .page-top .p-activities__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(74px, 6.8vw, 100px);
  }

  .page-top .p-activities-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "thumb"
      "body";
    align-items: stretch;
    column-gap: 0;
    padding: clamp(26px, 2.8vw, 36px);
    border-top: 0;
    border-right: 1px solid var(--sec06-line);
  }

  .page-top .p-activities-card--river {
    border-right: 1px solid var(--sec06-line);
  }

  .page-top .p-activities-card--fire {
    grid-column: auto;
    border-right: 0;
  }

  .page-top .p-activities-card--fire .p-activities-card__body {
    padding-top: clamp(20px, 2.8vw, 28px);
  }
}

@media (min-width: 1280px) {
  .page-top .p-activities {
    --sec06-scene-height: clamp(680px, 52vw, 760px);
  }

  .page-top .p-activities::before {
    background-position: 53% top;
  }

  .page-top .p-activities__inner {
    grid-template-columns:
      minmax(360px, 0.38fr)
      minmax(0, 0.62fr);
    width: min(1260px, 100%);
    padding-top: clamp(122px, 8.8vw, 150px);
  }

  .page-top .p-activities__heading {
    width: min(100%, 510px);
  }

  .page-top .p-activities__cards {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1.12fr)
      minmax(0, 0.88fr);
    margin-top: clamp(80px, 6.9vw, 106px);
  }

  .page-top .p-activities-card {
    padding: clamp(30px, 3vw, 40px);
  }

  .page-top .p-activities-card__title,
  .page-top .p-activities-card--river .p-activities-card__title {
    font-size: clamp(1.2rem, 1.5vw, 1.44rem);
  }

  .page-top .p-activities-card--river .p-activities-card__thumb {
    aspect-ratio: 2.08 / 1;
  }

  .page-top .p-activities-card--fire .p-activities-card__thumb {
    aspect-ratio: 2.3 / 1;
  }
}

@media (min-width: 1440px) {
  .page-top .p-activities::before {
    background-position: center top;
  }

  .page-top .p-activities__inner {
    width: min(1280px, 100%);
  }

  .page-top .p-activities__title {
    font-size: clamp(3.45rem, 4.45vw, 4.12rem);
  }

  .page-top .p-activities__cards {
    margin-top: clamp(88px, 6.6vw, 112px);
  }
}

@media (min-width: 1800px) {
  .page-top .p-activities {
    --sec06-scene-height: 780px;
    padding-bottom: 128px;
  }

  .page-top .p-activities__inner {
    width: min(1320px, 100%);
    padding-top: 152px;
  }

  .page-top .p-activities__heading {
    width: min(100%, 530px);
  }

  .page-top .p-activities__cards {
    margin-top: 112px;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .page-top .p-activities {
    --sec06-scene-height: 620px;
    padding-bottom: 92px;
  }

  .page-top .p-activities__inner {
    padding-top: 98px;
  }

  .page-top .p-activities__title {
    font-size: clamp(2.74rem, 4.15vw, 3.45rem);
  }

  .page-top .p-activities__lead {
    margin-top: 22px;
    font-size: 0.94rem;
    line-height: 1.86;
  }

  .page-top .p-activities__actions {
    margin-top: 26px;
  }

  .page-top .p-activities__cards {
    margin-top: 64px;
  }

  .page-top .p-activities-card {
    padding: 25px;
  }

  .page-top .p-activities-card__body {
    padding-top: 18px;
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .page-top .p-activities-card__thumb-img {
    transition: transform 0.5s var(--ease-out-craft);
  }

  .page-top .p-activities-card:hover .p-activities-card__thumb-img {
    transform: scale(1.01);
  }

  .page-top .p-activities__primary-button:hover {
    color: var(--sec06-heading);
    border-color: rgba(21, 39, 61, 0.68);
  }

  .page-top .p-activities__primary-button:hover span[aria-hidden="true"],
  .page-top .p-activities__sub-link:hover span[aria-hidden="true"] {
    transform: translateX(3px);
  }

  .page-top .p-activities__sub-link:hover {
    color: var(--sec06-ink);
  }

  .page-top .p-activities__sub-link:hover::after {
    right: 22px;
    transform: scaleX(1);
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 768px) {
  .page-top .p-activities-card__thumb-img,
  .page-top .p-activities__primary-button,
  .page-top .p-activities__sub-link,
  .page-top .p-activities__primary-button span[aria-hidden="true"],
  .page-top .p-activities__sub-link span[aria-hidden="true"],
  .page-top .p-activities__sub-link::after {
    transition: none !important;
  }
}
