/* Kat Karşılığı sayfasına özel bölümler (partials/service-kat-karsiligi.php).
   Ortak sistemden: renk değişkenleri, .wrap, .section, .eyebrow, .btn, .corners, .frame, .sintro, .features. */

/* ---------- Ortak bölüm başlığı ---------- */
.kk-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.kk-head h2 { max-width: 16ch; }
.kk-head h2 span { color: var(--accent); }
.kk-head--light h2 span { color: var(--gold-2); }
.kk-head__lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; padding-left: 20px; border-left: 2px solid var(--gold-2); }
.kk-head--light .kk-head__lead { color: var(--on-dark-muted); }
.kk-head .btn { justify-self: start; }

/* ---------- Önce / sonra ---------- */
.kk-cmp-sec { background: var(--ink); color: var(--on-dark); }
.kk-cmp { --pos: 50%; position: relative; margin: 0; }
.kk-cmp__view { position: relative; aspect-ratio: 3 / 2; max-height: 78vh; width: 100%; overflow: hidden; background: #0d0c09; user-select: none; }
.kk-cmp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-cmp__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.kk-cmp__tag { position: absolute; top: 16px; z-index: 2; padding: 7px 12px; background: rgba(22, 21, 15, .82); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.kk-cmp__tag--before { left: 16px; }
.kk-cmp__tag--after { right: 16px; color: var(--gold-2); }
.kk-cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: var(--gold-2); pointer-events: none; }
.kk-cmp__handle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); background: var(--gold-2); }
.kk-cmp__handle i { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.kk-cmp__handle i:first-child { right: 6px; }
.kk-cmp__handle i:last-child { left: 6px; }
/* Görünmez ama tüm alanı kaplayan sürgü: fare, dokunma ve klavye */
.kk-cmp__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.kk-cmp__range:focus-visible + .kk-cmp__handle, .kk-cmp:has(.kk-cmp__range:focus-visible) .kk-cmp__handle::before { outline: 3px solid var(--on-dark); outline-offset: 3px; }
.kk-cmp__note { margin-top: 12px; font-size: .8rem; color: var(--on-dark-muted); }

/* ---------- Paylaşım ---------- */
.kk-share__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.kk-share h2 span { color: var(--accent); }
.kk-share__lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
.kk-ctrls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink); }
.kk-ctrl--wide { grid-column: 1 / -1; }
.kk-ctrl__label { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kk-ctrl__label b { color: var(--accent); font-size: 1rem; letter-spacing: 0; }
.kk-step { display: inline-grid; grid-template-columns: 48px 64px 48px; border: 1.5px solid var(--ink); }
.kk-step__btn { min-height: 48px; border: 0; background: none; font: 700 1.3rem/1 var(--font-body); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.kk-step__btn:hover:not(:disabled) { background: var(--ink); color: var(--gold-2); }
.kk-step__btn:disabled { color: var(--line); cursor: not-allowed; }
.kk-step__val { display: grid; place-items: center; border-inline: 1.5px solid var(--ink); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kk-ratio { width: 100%; height: 32px; margin: 0; accent-color: var(--gold-3); cursor: pointer; }
.kk-ratio__scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.kk-share__note { margin-top: 20px; font-size: .85rem; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--line); }

.kk-bld { margin: 0; }
.kk-bld__sum { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.kk-bld__sum div { display: grid; padding: 14px 0; }
.kk-bld__sum div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.kk-bld__sum span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kk-bld__sum b { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kk-bld__sum small { color: var(--muted); }
.kk-bld__sum .is-owner b { color: var(--accent); }

.kk-bld__draw { --per: 2; position: relative; max-width: 460px; margin-inline: auto; padding-top: 52px; }
.kk-bld__roof { position: absolute; top: 0; left: -14px; right: -14px; height: 56px; background: #a5482c; clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.kk-bld__floors { position: relative; display: grid; gap: 6px; padding: 10px; background: #d9cdb5; }
.kk-bld__floor { position: relative; display: grid; grid-template-columns: repeat(var(--per), minmax(0, 1fr)); gap: 6px; }
.kk-bld__fl { position: absolute; right: calc(100% + 22px); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kk-flat { --d: 0ms; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px; min-height: 52px; background: #f4efe6; border: 1px solid rgba(22, 21, 15, .12); transition: background-color .45s var(--ease) var(--d); }
.kk-flat i { background: #556066; transition: background-color .45s var(--ease) var(--d); }
.kk-flat.is-owner { background: var(--gold-2); }
.kk-flat.is-owner i { background: #fbe3a6; }
.kk-flat.is-new { animation: kk-pop .45s var(--ease) both; animation-delay: var(--d); }
@keyframes kk-pop { from { opacity: 0; transform: scale(.85); } }
.kk-bld__ground { display: block; height: 14px; margin-inline: -24px; background: var(--ink); }
.kk-bld__ground i { display: block; width: 34px; height: 30px; margin: -30px auto 0; background: #efece6; }
.kk-bld__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 18px; font-size: .85rem; color: var(--muted); }
.kk-bld__legend span { display: inline-flex; align-items: center; gap: 8px; }
.kk-bld__legend span::before { content: ""; width: 14px; height: 14px; background: #f4efe6; border: 1px solid rgba(22, 21, 15, .25); }
.kk-bld__legend .is-owner::before { background: var(--gold-2); border-color: var(--gold-2); }

/* ---------- Sözleşme ---------- */
.kk-con { background: var(--stone); }
.kk-con__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.kk-con__copy { position: sticky; top: calc(var(--header-h) + 100px); }
.kk-con h2 span { color: var(--accent); }
.kk-con__lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 42ch; }
.kk-con__photo { margin-top: 28px; aspect-ratio: 4 / 3; }

.kk-paper { position: relative; background: #fdfcf9; padding: clamp(24px, 3.5vw, 52px); box-shadow: 0 1px 0 var(--line), 12px 12px 0 rgba(22, 21, 15, .06);
  background-image: linear-gradient(transparent 31px, rgba(22, 21, 15, .045) 32px); background-size: 100% 32px; }
.kk-paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-2); }
.kk-paper__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); }
.kk-paper__head span { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kk-paper__head small { font-size: .78rem; color: var(--muted); }
.kk-clause { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.kk-clause__box { width: 24px; height: 24px; margin-top: 2px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background-color .3s; }
.kk-clause__box svg { width: 18px; height: 18px; }
.kk-clause__box path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }
.kk-clause__name { font-size: 1.12rem; }
.kk-clause__name small { display: block; margin-bottom: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kk-clause__text { margin-top: 4px; color: var(--muted); font-size: .96rem; }
.kk-clause.is-checked .kk-clause__box, .kk-con:not(.is-armed) .kk-clause__box { background: var(--gold-2); border-color: var(--gold-2); }
.kk-con.is-armed .kk-clause__box path { stroke-dashoffset: 20; }
.kk-con.is-armed .kk-clause.is-checked .kk-clause__box path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s .15s var(--ease); }

.kk-paper__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.kk-sig svg { display: block; width: 100%; max-width: 180px; height: 56px; border-bottom: 1.5px solid var(--ink); }
.kk-sig path { fill: none; stroke: #1d3a6b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kk-con.is-armed .kk-sig path { stroke-dashoffset: 1; }
.kk-con.is-armed .kk-paper__sign.is-checked .kk-sig path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.kk-con.is-armed .kk-paper__sign.is-checked .kk-sig + .kk-sig path { transition-delay: .9s; }
.kk-sig span { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Süreç: anahtar yolu ---------- */
.kk-road { --k: 1; background: var(--ink); color: var(--on-dark); }
.kk-road.is-live { --k: 0; }
.kk-road__track { position: relative; height: 44px; margin: 0 calc(12.5% - 22px); }
.kk-road__line { position: absolute; left: 22px; right: 22px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, rgba(245, 242, 236, .3) 0 10px, transparent 10px 18px); }
.kk-road__line i { position: absolute; inset: 0; background: var(--gold-2); transform: scaleX(var(--k)); transform-origin: left; }
.kk-road__key { position: absolute; top: 0; left: calc(var(--k) * (100% - 44px)); display: grid; place-items: center; width: 44px; height: 44px; background: var(--gold-2); color: var(--ink); }
.kk-road__key .icon { width: 22px; height: 22px; }
.kk-road__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); margin-top: 18px; text-align: center; }
.kk-road__dot { display: block; width: 12px; height: 12px; margin: 0 auto 18px; border: 2px solid rgba(245, 242, 236, .35); background: var(--ink); transition: background-color .3s, border-color .3s; }
.kk-road__step.is-reached .kk-road__dot { background: var(--gold-2); border-color: var(--gold-2); }
.kk-road__num { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: rgba(245, 242, 236, .2); transition: color .4s; }
.kk-road__step.is-reached .kk-road__num { color: var(--gold-2); }
.kk-road__name { margin-top: 10px; font-size: 1.15rem; }
.kk-road__text { margin: 8px auto 0; max-width: 30ch; color: rgba(245, 242, 236, .72); font-size: .94rem; }

.kk-scope { margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid rgba(245, 242, 236, .16); }
.kk-scope__title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 20px; }
.kk-scope__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.kk-scope__item { padding: 4px 24px 4px 0; }
.kk-scope__item + .kk-scope__item { padding-left: 24px; border-left: 1px solid rgba(245, 242, 236, .12); }
.kk-scope__item h4 { margin: 0; font-size: 1.05rem; }
.kk-scope__item p { margin-top: 6px; color: var(--on-dark-muted); font-size: .92rem; }
.kk-scope__item ul { margin-top: 12px; display: grid; gap: 4px; }
.kk-scope__item li { position: relative; padding-left: 16px; font-size: .9rem; }
.kk-scope__item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--gold-2); }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .kk-head, .kk-share__grid, .kk-con__grid { grid-template-columns: 1fr; }
  .kk-con__copy { position: static; }
  .kk-con__photo { display: none; }
  .kk-scope__list { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .kk-scope__item:nth-child(3) { padding-left: 0; border-left: 0; }
  /* Yol dikey: anahtar solda aşağı iner */
  .kk-road__track { display: none; }
  .kk-road__steps { grid-template-columns: 1fr; text-align: left; gap: 0; margin-top: 0; }
  .kk-road__step { position: relative; padding: 0 0 32px 36px; }
  .kk-road__step::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -4px; width: 2px; background: rgba(245, 242, 236, .18); }
  .kk-road__step:last-child::before { display: none; }
  .kk-road__step.is-reached::before { background: var(--gold-2); }
  .kk-road__dot { position: absolute; left: 0; top: 4px; margin: 0; }
  .kk-road__text { margin-left: 0; }
}
@media (max-width: 560px) {
  .kk-ctrls { grid-template-columns: 1fr; }
  .kk-step { grid-template-columns: 52px 1fr 52px; width: 100%; }
  .kk-bld__draw { margin-inline: 14px; }
  .kk-bld__fl { display: none; }
  .kk-bld__ground { margin-inline: -14px; }
  .kk-flat { min-height: 40px; padding: 6px; gap: 4px; }
  .kk-scope__list { grid-template-columns: 1fr; }
  .kk-scope__item + .kk-scope__item { padding-left: 0; border-left: 0; }
  .kk-paper__sign { gap: 16px; }
  .kk-cmp__handle::before { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .kk-flat, .kk-flat i { transition: none; }
  .kk-flat.is-new { animation: none; }
  .kk-con.is-armed .kk-clause__box path, .kk-con.is-armed .kk-sig path { stroke-dashoffset: 0; transition: none; }
  .kk-road__line i, .kk-road__key { transition: none; }
}
