/* Cooperation page only (cooperation.html) */

/* ---------- Hero ---------- */
.coop-hero__parties { display: grid; gap: 10px; margin-top: 2px; }
.coop-hero__parties li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dfe6e2; }
.coop-hero__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.45); flex: none; }
.coop-hero__dot--lime { background: var(--c-lime); border-color: var(--c-lime); box-shadow: 0 0 0 5px rgba(200, 241, 105, 0.16); }
.coop-hero__media img { transform: scale(1.08); object-position: 40% 60%; }

/* ---------- Who handles what ---------- */
.coop-flowbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: clamp(18px, 2.4vw, 28px); margin-bottom: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line);
}
.coop-flowbar__node {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px;
  background: var(--c-mist); font-size: 16px; font-weight: 600; white-space: nowrap;
}
.coop-flowbar__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-forest); flex: none; }
.coop-flowbar__ico svg { width: 20px; height: 20px; }
.coop-flowbar__node--ac { background: var(--c-black); color: #fff; box-shadow: 0 0 0 6px rgba(200, 241, 105, 0.35); }
.coop-flowbar__node--ac .coop-flowbar__ico { background: var(--c-lime); color: var(--c-lime-ink); }
.coop-flowbar__mark { width: 24px; height: 12px; }
.coop-flowbar__link { display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.coop-flowbar__lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--c-muted); font-weight: 500; }
.coop-flowbar__lbl svg { width: 14px; height: 14px; color: var(--c-teal); flex: none; }
.coop-flowbar__line {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--c-teal) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: coop-dash 1.4s linear infinite;
}
@keyframes coop-dash { to { background-position: 24px 0; } }
@keyframes coop-dash-v { to { background-position: 0 24px; } }
.coop-parties { align-items: stretch; }
.coop-party { gap: 12px; }
.coop-party__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.coop-party--ac { box-shadow: 0 30px 60px -36px rgba(5, 8, 7, 0.7); }
.coop-party__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.coop-party--ac .num { color: var(--c-lime); }

/* ---------- Stages ---------- */
.coop-stage__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coop-stage__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--c-lime); margin-right: 6px; }
.coop-stage__more { color: var(--c-lime); margin-top: 6px; justify-self: start; }
.stabs__panel-body .stack > .num { margin-top: 8px; }
.coop-aside { gap: 14px; padding: 22px 24px; }
.coop-aside .check-list li { font-size: 14.5px; }
.coop-aside__link { color: var(--c-teal); font-size: 14.5px; align-self: flex-start; margin-top: 4px; }
.coop-aside__link .i-arrow { width: 15px; height: 15px; }
.coop-card-brief { width: 290px; }
.coop-card-handover { width: 250px; }

/* ---------- Matching and execution diagrams ---------- */
#stages .stabs__btn { align-items: flex-start; line-height: 1.5; }
#stages .stabs__btn > [data-icon] { display: inline-flex; flex: none; padding-top: 2px; }
#stages .stabs__btn > span:last-child { min-width: 0; }
.coop-map { margin: 0; padding: clamp(20px, 2.7vw, 34px); border: 1px solid #314c3b; border-radius: 20px; background: #10241b; color: #f2f7ef; }
.coop-map__caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #34513d; color: #a9bd9d; font-size: 12px; line-height: 1.6; }
.coop-map__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--c-lime); }
.coop-map__brand strong { font-size: 17px; font-weight: 600; }
.coop-map__brand > [data-icon] { display: inline-flex; }
.coop-map__brand svg { width: 20px; height: 20px; }
.coop-map__card { position: relative; min-width: 0; padding: 21px; border: 1px solid #36503d; border-radius: 12px; background: #192e22; }
.coop-map__card--accent { background: #cbeaab; border-color: #cbeaab; color: #193723; }
.coop-map__step { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 11px; align-items: start; }
.coop-map__number { display: inline-grid; place-items: center; flex: none; width: 25px; height: 25px; border: 1px solid #69845b; border-radius: 7px; color: #c5e49d; font: 10px var(--font-mono); }
.coop-map h4 { font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.012em; }
.coop-map__step p { margin-top: 8px; color: #a9bfa0; font-size: 13px; line-height: 1.7; }
.coop-map__card--accent .coop-map__number { background: #1c412d; border-color: #1c412d; color: #e2ffc0; }
.coop-map__card--accent .coop-map__step p { color: #426039; }
.coop-map__tags { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 36px; margin-top: 13px; }
.coop-map__tags > span { padding: 4px 7px; border-radius: 5px; background: #e4f4d3; color: #36552c; font-size: 11px; line-height: 1.4; }
.coop-map__connector { display: grid; place-items: center; height: 29px; color: #b4d28a; }
.coop-map__connector [data-icon] { display: inline-flex; transform: rotate(90deg); }
.coop-map__connector svg { width: 20px; height: 20px; }
.coop-map__section-label { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.coop-match__review { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: 22px; }
.coop-match__review > :first-child::after { content: "→"; position: absolute; top: calc(50% - 12px); right: -19px; color: #b4d28a; font-size: 17px; }
.coop-match__choice { padding: 19px; border: 1px solid #36503d; border-radius: 12px; }
.coop-match__branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.coop-map__branch { display: grid; grid-template-columns: 31px minmax(0, 1fr); align-items: start; gap: 11px; padding: 16px; border-radius: 9px; background: #f0f5e9; color: #203c29; }
.coop-map__role-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #dceacb; color: #3c6030; }
.coop-map__role-icon svg { width: 18px; height: 18px; }
.coop-map__branch h5 { font-size: 15px; line-height: 1.5; font-weight: 600; margin: 3px 0 7px; }
.coop-map__branch p { color: #5c7052; font-size: 12px; line-height: 1.7; }
.coop-map__detail { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid #d0dec4; color: #4a663c; font-size: 11px; line-height: 1.6; }
.coop-map__agreement { padding: 18px 20px; border: 1px solid #48683e; border-radius: 12px; background: #203921; }
.coop-map__agreement ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 0; margin: 0 0 0 36px; list-style: none; }
.coop-map__agreement li { display: flex; align-items: center; gap: 8px; color: #c2d6ad; font-size: 12px; line-height: 1.6; }
.coop-map__agreement li [data-icon] { display: inline-flex; color: var(--c-lime); flex: none; }
.coop-map__agreement svg { width: 14px; height: 14px; }
.coop-run__sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; list-style: none; margin: 0; padding: 0; }
.coop-run__sequence .coop-map__card { padding: 17px; }
.coop-run__sequence .coop-map__step { display: block; }
.coop-run__sequence .coop-map__number { margin-bottom: 10px; }
.coop-run__sequence > li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; color: #b4d28a; font-size: 16px; }
.coop-run__owner { display: flex; gap: 7px; align-items: center; padding-bottom: 12px; margin-bottom: 15px; border-bottom: 1px solid #41573d; color: #b0c39e; font-size: 11px; line-height: 1.5; }
.coop-run__owner [data-icon] { display: inline-flex; flex: none; }
.coop-run__owner svg { width: 15px; height: 15px; }
.coop-map__card--accent .coop-run__owner { color: #3a5a2e; border-color: #a4c583; font-weight: 600; }
.coop-run__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.coop-run__route { padding: 19px; border: 1px solid #496141; border-radius: 11px; background: #1b3021; }
.coop-run__route-head { display: flex; align-items: center; gap: 9px; color: #d6eac2; }
.coop-run__route-head [data-icon] { display: inline-flex; flex: none; color: #bfdd97; }
.coop-run__route-head svg { width: 19px; height: 19px; }
.coop-run__route p { margin-top: 12px; color: #a9bea0; font-size: 12px; line-height: 1.75; }
.coop-run__route--approved { background: #f0f5e9; border-color: #f0f5e9; }
.coop-run__route--approved .coop-run__route-head, .coop-run__route--approved .coop-run__route-head [data-icon] { color: #264d30; }
.coop-run__route--approved p { color: #617558; }
.coop-run__return { display: flex; gap: 8px; align-items: center; margin-top: 15px; color: #cee6b2; font-size: 11px; line-height: 1.6; }
.coop-run__return [data-icon] { display: inline-flex; flex: none; }
.coop-run__return svg { width: 14px; height: 14px; }
.coop-run__route--approved .coop-run__return { color: #3d6532; }
.coop-run__records { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 20px; color: #839e76; font-size: 11px; line-height: 1.6; }
.coop-run__records ul { display: flex; flex-wrap: wrap; gap: 7px 15px; list-style: none; margin: 0; padding: 0; color: #c6d8b5; }
.coop-run__records li { display: flex; align-items: center; gap: 7px; }
.coop-run__records li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #a9c484; }
.coop-run__change { display: flex; align-items: start; gap: 12px; margin-top: 17px; padding-top: 17px; border-top: 1px solid #395034; }
.coop-run__change > [data-icon] { display: inline-flex; flex: none; margin-top: 1px; color: #b7d28f; }
.coop-run__change svg { width: 18px; height: 18px; }
.coop-run__change p { display: grid; gap: 5px; color: #a5b898; font-size: 12px; line-height: 1.7; }
.coop-run__change strong { font-weight: 500; color: #d7e9c4; }
@media (max-width: 1180px) and (min-width: 1024px) {
  .coop-map__branch { grid-template-columns: minmax(0, 1fr); }
  .coop-run__sequence { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .coop-run__sequence .coop-map__step { display: grid; }
  .coop-run__sequence .coop-map__number { margin: 0; }
  .coop-run__sequence > li:not(:last-child)::after { top: auto; bottom: -22px; left: calc(50% - 8px); right: auto; transform: rotate(90deg); }
}
@media (max-width: 680px) {
  .coop-map { padding: 20px; border-radius: 15px; }
  .coop-map__caption { align-items: start; flex-direction: column; gap: 5px; margin-bottom: 19px; padding-bottom: 15px; }
  .coop-match__review, .coop-match__branches, .coop-run__sequence, .coop-run__routes { grid-template-columns: minmax(0, 1fr); }
  .coop-match__review { gap: 24px; }
  .coop-match__review > :first-child::after { top: auto; bottom: -23px; left: calc(50% - 8px); right: auto; transform: rotate(90deg); }
  .coop-map__card { padding: 18px; }
  .coop-match__choice { padding: 16px; }
  .coop-map__branch { padding: 16px; }
  .coop-map__branch p, .coop-map__step p { font-size: 13px; }
  .coop-map__detail { font-size: 12px; }
  .coop-map__agreement { padding: 18px; }
  .coop-map__agreement ul { grid-template-columns: minmax(0, 1fr); margin-left: 36px; gap: 9px; }
  .coop-map__agreement li { font-size: 13px; }
  .coop-run__sequence { gap: 24px; }
  .coop-run__sequence .coop-map__step { display: grid; }
  .coop-run__sequence .coop-map__number { margin: 0; }
  .coop-run__sequence > li:not(:last-child)::after { top: auto; bottom: -23px; left: calc(50% - 8px); right: auto; transform: rotate(90deg); }
  .coop-run__owner { font-size: 12px; }
  .coop-run__route p { font-size: 13px; }
  .coop-run__records { font-size: 12px; }
  .coop-run__return, .coop-run__change p { font-size: 12px; }
}

/* ---------- Responsibility matrix ---------- */
.coop-matrix-panel .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.coop-matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; }
.coop-matrix th, .coop-matrix td { text-align: left; vertical-align: top; padding: 20px 22px; border-bottom: 1px solid var(--c-line); }
.coop-matrix thead th {
  padding-top: 18px; padding-bottom: 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); border-bottom-color: #cbd5ce;
}
.coop-matrix thead th.is-ac { color: var(--c-forest); font-weight: 700; }
.coop-matrix tbody th { width: 22%; font-weight: 600; }
.coop-matrix td { width: 26%; color: #26302b; }
.coop-matrix .is-ac { background: #fff; }
.coop-matrix thead .is-ac { border-radius: 16px 16px 0 0; position: relative; }
.coop-matrix thead .is-ac::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-lime); }
.coop-matrix tbody tr:last-child th, .coop-matrix tbody tr:last-child td { border-bottom: 0; }
.coop-matrix tbody tr:last-child .is-ac { border-radius: 0 0 16px 16px; }
.coop-matrix td.is-ac { font-weight: 500; color: var(--c-text); }
.coop-matrix__stage { display: inline-flex; align-items: center; gap: 12px; }
.coop-matrix__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--c-forest); border: 1px solid var(--c-line); flex: none; }
.coop-matrix__ico svg { width: 18px; height: 18px; }
.coop-matrix__none { color: #a7b2ac; }

/* ---------- Fees ---------- */
.coop-fees__list { margin-top: 8px; }
.coop-fees__actions { margin-top: 12px; }
.coop-fees__media { overflow: hidden; }
.coop-fees__card { position: absolute; left: 7%; top: 11%; width: min(360px, 66%); }
.coop-fees__card .ui-row__label { white-space: normal; }
.coop-fees__check { width: 230px; }

/* ---------- Ongoing project records and responsibilities ---------- */
.coop-comms { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.coop-comms__records { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 42px); border: 1px solid #34533e; border-radius: 20px; background: #11271c; }
.coop-comms__record-head { display: flex; align-items: center; gap: 16px; padding-bottom: 25px; }
.coop-comms__record-head > span { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: #c9ec9b; color: #264328; }
.coop-comms__record-head > span > span { display: inline-flex; }
.coop-comms__record-head svg { width: 24px; height: 24px; }
.coop-comms__label { display: block; color: #a2ba8c; font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
.coop-comms__record-head .h3 { font-size: clamp(23px, 2.3vw, 31px); line-height: 1.35; }
.coop-comms__record-list { margin: 0; padding: 0; display: grid; }
.coop-comms__record-list > div { padding: 21px 0; border-top: 1px solid #34503b; }
.coop-comms__record-list dt { display: flex; align-items: center; gap: 12px; color: #e0efcf; font-size: 16px; font-weight: 500; line-height: 1.5; }
.coop-comms__record-list dt > [data-icon] { display: inline-flex; flex: none; color: #a9ca86; }
.coop-comms__record-list svg { width: 18px; height: 18px; }
.coop-comms__record-list dd { margin: 8px 0 0 30px; font-size: 14px; line-height: 1.7; color: #9cb68c; }
.coop-comms__change-note { margin-top: auto; padding: 19px 21px; border: 1px solid #4a6339; border-radius: 11px; background: #213c22; }
.coop-comms__change-note strong { display: block; font-size: 15px; line-height: 1.6; color: #daf1b9; font-weight: 500; }
.coop-comms__change-note p { color: #a9c393; font-size: 13px; line-height: 1.8; margin-top: 8px; }
.coop-comms__cards { display: grid; gap: 18px; }
.coop-comms__cards .card { gap: 12px; padding: clamp(24px, 3vw, 34px); }
.coop-comms__cards .card p { font-size: 15px; line-height: 1.8; }
@media (max-width: 900px) { .coop-comms { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .coop-comms__records { padding: 24px; border-radius: 16px; } .coop-comms__record-list dd { margin-left: 0; } .coop-comms__change-note { padding: 18px; } }

/* ---------- FAQ ---------- */
.coop-faq { align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .coop-flowbar { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; }
  .coop-flowbar__node { height: 50px; padding-right: 16px; font-size: 15px; }
  .coop-flowbar__ico { width: 36px; height: 36px; }
}
@media (max-width: 1023px) {
  .coop-flowbar { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
  .coop-flowbar__link { grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); align-items: center; column-gap: 14px; width: 100%; min-height: 76px; }
  .coop-flowbar__lbl { justify-self: end; text-align: right; }
  .coop-flowbar__lbl--back { justify-self: start; text-align: left; }
  .coop-flowbar__lbl svg { transform: rotate(90deg); }
  .coop-flowbar__line {
    width: 2px; height: 100%; min-height: 60px;
    background: repeating-linear-gradient(180deg, var(--c-teal) 0 6px, transparent 6px 12px); background-size: 2px 24px;
    animation-name: coop-dash-v;
  }
  .coop-comms { grid-template-columns: minmax(0, 1fr); }
  .coop-matrix th, .coop-matrix td { padding: 16px 14px; }
}
@media (max-width: 760px) {
  .coop-matrix, .coop-matrix tbody, .coop-matrix tr, .coop-matrix th, .coop-matrix td { display: block; width: 100%; }
  .coop-matrix thead { display: none; }
  .coop-matrix tbody tr { margin-bottom: 12px; padding: 4px 18px 6px; border-radius: 16px; background: #fff; border: 1px solid var(--c-line); }
  .coop-matrix tbody th { width: auto; padding: 16px 0 14px; border-bottom: 1px solid var(--c-line) !important; }
  .coop-matrix td { width: auto; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--c-line); background: transparent; }
  .coop-matrix td::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
  .coop-matrix td.is-ac { background: transparent; border-radius: 0; }
  .coop-matrix td.is-ac::before { color: var(--c-forest); }
  .coop-matrix tbody tr td:last-child { border-bottom: 0; }
  .coop-matrix tbody tr:last-child .is-ac { border-radius: 0; }
}
@media (max-width: 640px) {
  .coop-card-brief { width: 236px; }
  .coop-card-handover { width: 210px; }
  .coop-fees__media { aspect-ratio: 4 / 4.4; }
  .coop-fees__card { left: 5%; top: 7%; width: 82%; }
  .coop-fees__check { width: 200px; }
}
