:root {
  --cost-ink: #172033;
  --cost-muted: #64748b;
  --cost-surface: #ffffff;
  --cost-soft: #f4f6f9;
  --cost-red: #c81e2b;
  --cost-red-dark: #8f1520;
  --cost-gold: #f2b84b;
}

body[data-active-nav="maliyet"] {
  background: #f4f6f9;
  color: var(--cost-ink);
}

body[data-active-nav="maliyet"] .container {
  max-width: 1240px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cost-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(7, 13, 27, 0.98), rgba(26, 36, 55, 0.94)),
    repeating-linear-gradient(135deg, transparent 0 32px, rgba(255,255,255,.03) 32px 33px);
  padding: clamp(76px, 10vw, 130px) 0 clamp(64px, 8vw, 100px);
}

.cost-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--cost-red-dark), #ef3340, var(--cost-gold));
}

.cost-hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -260px;
  right: -120px;
  border-radius: 50%;
  background: rgba(200, 30, 43, 0.27);
  filter: blur(20px);
}

.cost-hero__inner {
  position: relative;
  z-index: 1;
}

.cost-hero__eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--cost-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cost-hero__eyebrow {
  color: #fda4af;
}

.cost-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .92;
}

.cost-hero h1 span {
  color: #fb394b;
}

.cost-hero__subtitle {
  margin: 25px 0 0;
  font-size: clamp(21px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -.025em;
}

.cost-hero__intro {
  max-width: 760px;
  margin: 12px 0 0;
  color: #b8c1d1;
  font-size: 16px;
}

.cost-hero__stats {
  display: grid;
  grid-template-columns: 1.4fr 1.25fr .7fr;
  gap: 14px;
  margin-top: clamp(42px, 7vw, 68px);
}

.hero-stat-card {
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
}

.hero-stat-card--primary {
  border-color: rgba(251,57,75,.45);
  background: linear-gradient(135deg, rgba(200,30,43,.32), rgba(255,255,255,.05));
}

.hero-stat-card__label {
  display: block;
  margin-bottom: 8px;
  color: #bdc6d5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-stat-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(22px, 2.55vw, 34px);
  line-height: 1.15;
}

.hero-stat-card small {
  color: #fda4af;
  font-size: .48em;
  letter-spacing: .05em;
}

.summary-section,
.lease-section,
.ledger-section,
.excluded-section,
.method-section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.summary-section {
  background: #fff;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading--left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--cost-ink);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--cost-muted);
  font-size: 17px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.summary-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23,32,51,.07);
}

.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cost-red), #ed5260);
}

.summary-card__number {
  display: block;
  color: #d6dbe4;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 900;
}

.summary-card h3 {
  min-height: 80px;
  margin: 20px 0 24px;
  font-size: 20px;
  line-height: 1.3;
}

.summary-card strong,
.summary-card > span:last-child {
  display: block;
  font-family: "JetBrains Mono", monospace;
}

.summary-card strong {
  color: var(--cost-red);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.25;
}

.summary-card > span:last-child {
  margin-top: 7px;
  color: var(--cost-muted);
  font-size: 13px;
}

.department-shortcuts-block {
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid #e3e7ed;
}

.department-shortcuts-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.department-shortcuts-heading h3 {
  margin: 0;
  color: var(--cost-ink);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.department-shortcuts-heading > p {
  max-width: 360px;
  margin: 0;
  color: var(--cost-muted);
  font-size: 14px;
  text-align: right;
}

.department-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.department-shortcut {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 13px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid #e0e5ec;
  border-radius: 15px;
  background: #fff;
  color: var(--cost-ink);
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .055);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.department-shortcut:hover {
  border-color: rgba(200, 30, 43, .3);
  box-shadow: 0 14px 30px rgba(23, 32, 51, .1);
  transform: translateY(-2px);
}

.department-shortcut:focus-visible {
  outline: 3px solid rgba(200, 30, 43, .18);
  outline-offset: 3px;
}

.department-shortcut__index {
  color: #a0aaba;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.department-shortcut__badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d82939, #981824);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 7px 15px rgba(152, 24, 36, .2);
}

.department-shortcut__content {
  min-width: 0;
}

.department-shortcut__content strong,
.department-shortcut__content small {
  display: block;
}

.department-shortcut__content strong {
  font-size: 15px;
  line-height: 1.3;
}

.department-shortcut__content small {
  margin-top: 5px;
  color: var(--cost-muted);
  font-size: 11px;
  font-weight: 650;
}

.department-shortcut__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f4f6f9;
  color: var(--cost-red-dark);
  font-size: 16px;
  font-weight: 900;
}

.lease-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 30, 43, .25), transparent 30%),
    linear-gradient(145deg, #151d2d 0%, #0d1422 100%);
}

.lease-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}

.lease-heading h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.lease-heading > div:first-child > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #adb8c8;
  font-size: 16px;
}

.lease-heading__total {
  min-width: 290px;
  padding: 21px 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  text-align: right;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.lease-heading__total span,
.lease-heading__total strong,
.lease-heading__total small {
  display: block;
}

.lease-heading__total span {
  color: #aeb9c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lease-heading__total strong,
.lease-heading__total small {
  font-family: "JetBrains Mono", monospace;
}

.lease-heading__total strong {
  margin: 7px 0 4px;
  color: #fca5af;
  font-size: 23px;
}

.lease-heading__total small {
  color: #fff;
  font-size: 13px;
}

.lease-years {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .2);
}

.lease-year {
  display: grid;
  grid-template-columns: 145px minmax(120px, 1fr) minmax(390px, .95fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 13px 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s ease;
}

.lease-year:first-child {
  border-top: 0;
}

.lease-year:hover {
  background: rgba(255, 255, 255, .055);
}

.lease-year__year span,
.lease-year__year small {
  display: block;
}

.lease-year__year span {
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 21px;
  font-weight: 900;
}

.lease-year__year small {
  margin-top: 2px;
  color: #8491a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lease-year__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
}

.lease-year__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a71926, #ef4050);
  box-shadow: 0 0 16px rgba(239, 64, 80, .3);
}

.lease-year__money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lease-year__money > div {
  text-align: right;
}

.lease-year__money small,
.lease-year__money strong {
  display: block;
}

.lease-year__money small {
  margin-bottom: 2px;
  color: #8491a5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.lease-year__money strong {
  color: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.lease-year__money > div:last-child strong {
  color: #fca5af;
}

.lease-year--zero {
  opacity: .55;
}

.lease-year--zero .lease-year__bar span {
  width: 0 !important;
}

.ledger-section {
  background: var(--cost-soft);
}

.ledger-toolbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 15px 35px rgba(23,32,51,.1);
  backdrop-filter: blur(14px);
}

.search-control {
  position: relative;
  display: block;
}

.search-control svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  fill: none;
  stroke: #77849a;
  stroke-linecap: round;
  stroke-width: 2;
  transform: translateY(-50%);
}

.search-control input,
.filter-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8dee8;
  border-radius: 11px;
  background: #fff;
  color: var(--cost-ink);
  font: inherit;
  outline: none;
}

.search-control input {
  padding: 0 16px 0 48px;
}

.search-control input:focus,
.filter-control select:focus {
  border-color: var(--cost-red);
  box-shadow: 0 0 0 3px rgba(200,30,43,.1);
}

.filter-control {
  display: grid;
  gap: 5px;
  color: #59677c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.filter-control select {
  min-width: 200px;
  padding: 0 36px 0 13px;
  text-transform: none;
}

.expand-button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  background: var(--cost-ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.expand-button:hover {
  background: var(--cost-red);
  transform: translateY(-1px);
}

.ledger-status {
  min-height: 24px;
  margin: 0 2px 14px;
  color: var(--cost-muted);
  font-size: 13px;
  font-weight: 650;
}

.department-list {
  display: grid;
  gap: 14px;
}

.department-group {
  scroll-margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dde3eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23,32,51,.055);
}

.department-group[open] {
  border-color: #cbd3df;
  box-shadow: 0 18px 45px rgba(23,32,51,.1);
}

.department-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 36px;
  align-items: center;
  gap: 24px;
  min-height: 94px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.department-summary::-webkit-details-marker {
  display: none;
}

.department-summary:focus-visible {
  outline: 3px solid rgba(200,30,43,.22);
  outline-offset: -3px;
}

.department-name {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.department-name .department-monogram {
  display: inline-flex;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #d82939 0%, #981824 100%);
  box-shadow:
    0 0 0 1px rgba(152, 24, 36, 0.16),
    0 8px 18px rgba(152, 24, 36, 0.22);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
  text-indent: 0;
  white-space: nowrap;
}

.department-name strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.department-name span {
  display: block;
  margin-top: 5px;
  color: var(--cost-muted);
  font-size: 13px;
}

.department-total {
  text-align: right;
}

.department-total strong,
.department-total span {
  display: block;
  font-family: "JetBrains Mono", monospace;
}

.department-total strong {
  color: var(--cost-red-dark);
  font-size: 18px;
}

.department-total span {
  margin-top: 4px;
  color: var(--cost-muted);
  font-size: 12px;
}

.department-chevron {
  width: 11px;
  height: 11px;
  border-right: 2px solid #7b8799;
  border-bottom: 2px solid #7b8799;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}

.department-group[open] .department-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.department-content {
  border-top: 1px solid #e8ebf0;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
}

.cost-table th {
  padding: 13px 16px;
  background: #f8f9fb;
  color: #69778a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

.cost-table th:nth-last-child(-n+2),
.cost-table td:nth-last-child(-n+2) {
  text-align: right;
}

.cost-table td {
  padding: 17px 16px;
  border-top: 1px solid #edf0f4;
  color: #344155;
  font-size: 13px;
  vertical-align: top;
}

.cost-table tbody tr:first-child td {
  border-top: 0;
}

.cost-table tbody tr:hover {
  background: #fff9f9;
}

.cost-table tfoot th,
.cost-table tfoot td {
  padding: 18px 16px;
  border-top: 2px solid #d8dee7;
  background: #f4f6f9;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 900;
}

.cost-table tfoot th {
  color: var(--cost-ink);
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}

.cost-table tfoot td {
  color: #344155;
  text-align: right;
  white-space: nowrap;
}

.cost-table tfoot td:last-child {
  color: var(--cost-red-dark);
}

.row-number {
  width: 54px;
  color: #8c98aa;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.row-project {
  min-width: 320px;
  color: var(--cost-ink) !important;
  font-weight: 650;
  line-height: 1.45;
}

.row-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.category-badge {
  background: #fce8ea;
  color: var(--cost-red-dark);
}

.row-date {
  white-space: nowrap;
  color: #5f6d81 !important;
}

.row-money {
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-weight: 750;
}

.row-usd {
  color: var(--cost-red-dark) !important;
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed #c8d0dc;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.empty-state strong {
  font-size: 19px;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--cost-muted);
}

.excluded-section {
  color: #fff;
  background: #111827;
}

.excluded-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.excluded-callout h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.excluded-callout p:last-child {
  max-width: 760px;
  margin: 0;
  color: #aeb8c8;
}

.excluded-total {
  text-align: right;
}

.excluded-total span,
.excluded-total small {
  display: block;
  color: #9eabba;
  font-size: 12px;
}

.excluded-total strong {
  display: block;
  margin: 7px 0;
  color: #fda4af;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(22px, 3vw, 32px);
}

.excluded-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.excluded-item {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
}

.excluded-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #96a3b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.excluded-item h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.excluded-item__money {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
}

.excluded-item__money strong {
  color: #fda4af;
  font-size: 16px;
}

.excluded-item__money span {
  color: #aeb8c8;
  font-size: 11px;
}

.method-section {
  background: #fff;
}

.method-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid #e1e5eb;
  border-bottom: 1px solid #e1e5eb;
}

.method-card__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--cost-red);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
}

.method-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.method-card p {
  margin: 0;
  color: var(--cost-muted);
  font-size: 14px;
  line-height: 1.75;
}

.source-book-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 17px;
  border: 1px solid #e2e6ec;
  border-radius: 12px;
  background: #f8f9fb;
  color: var(--cost-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.source-book-link:hover {
  border-color: rgba(200, 30, 43, .3);
  background: #fff5f6;
  transform: translateY(-1px);
}

.source-book-link:focus-visible {
  outline: 3px solid rgba(200, 30, 43, .18);
  outline-offset: 3px;
}

.source-book-link__icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--cost-red);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.source-book-link small {
  display: block;
  margin-bottom: 2px;
  color: var(--cost-red-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .cost-hero__stats,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat-card {
    padding: 20px;
  }

  .summary-card {
    min-height: auto;
  }

  .summary-card h3 {
    min-height: auto;
  }

  .department-shortcuts-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .department-shortcuts-heading > p {
    max-width: none;
    text-align: left;
  }

  .department-shortcuts {
    grid-template-columns: 1fr;
  }

  .lease-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lease-heading__total {
    min-width: 0;
    text-align: left;
  }

  .lease-year {
    grid-template-columns: 105px minmax(100px, 1fr) minmax(330px, .9fr);
    gap: 16px;
    padding-inline: 17px;
  }

  .ledger-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .search-control {
    grid-column: 1 / -1;
  }

  .department-summary {
    grid-template-columns: 1fr 26px;
    gap: 15px;
  }

  .department-total {
    grid-column: 1 / 2;
    padding-left: 68px;
    text-align: left;
  }

  .department-chevron {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .department-content {
    overflow-x: auto;
  }

  .cost-table {
    min-width: 860px;
  }

  .excluded-callout {
    grid-template-columns: 1fr;
  }

  .excluded-total {
    text-align: left;
  }

  .excluded-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cost-hero {
    padding-top: 64px;
  }

  .cost-hero h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .ledger-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .department-shortcuts-block {
    margin-top: 38px;
    padding-top: 32px;
  }

  .department-shortcuts {
    gap: 9px;
  }

  .department-shortcut {
    grid-template-columns: 25px 42px minmax(0, 1fr) 26px;
    gap: 10px;
    min-height: 76px;
    padding: 12px;
  }

  .department-shortcut__badge {
    width: 42px;
    height: 42px;
    font-size: 10px;
  }

  .department-shortcut__content strong {
    font-size: 14px;
  }

  .department-shortcut__arrow {
    width: 26px;
    height: 26px;
  }

  .lease-heading {
    margin-bottom: 26px;
  }

  .lease-heading h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .lease-heading__total {
    padding: 18px;
  }

  .lease-heading__total strong {
    overflow-wrap: anywhere;
    font-size: 19px;
  }

  .lease-years {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .lease-year,
  .lease-year:first-child {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    background: rgba(255, 255, 255, .045);
  }

  .lease-year__year {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .lease-year__year small {
    margin: 0;
    text-align: right;
  }

  .lease-year__money {
    gap: 12px;
  }

  .lease-year__money > div {
    min-width: 0;
    text-align: left;
  }

  .lease-year__money strong {
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .search-control {
    grid-column: auto;
  }

  .filter-control select {
    min-width: 0;
  }

  .department-summary {
    padding: 18px;
  }

  .department-name {
    gap: 12px;
  }

  .department-name .department-monogram {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-width: 2px;
    font-size: 12px;
  }

  .department-name strong {
    font-size: 16px;
  }

  .department-total {
    padding-left: 58px;
  }

  .department-total strong {
    font-size: 15px;
  }

  .department-content {
    overflow: visible;
    padding: 10px;
    background: #f3f5f8;
  }

  .cost-table,
  .cost-table tbody,
  .cost-table tfoot,
  .cost-table tr,
  .cost-table td {
    display: block;
    width: 100%;
  }

  .cost-table {
    min-width: 0;
  }

  .cost-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .cost-table tbody {
    display: grid;
    gap: 10px;
  }

  .cost-table tfoot {
    margin-top: 10px;
  }

  .cost-table tbody tr,
  .cost-table tbody tr:hover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23, 32, 51, .055);
  }

  .cost-table td {
    padding: 11px 13px;
    border: 0;
    text-align: left !important;
  }

  .cost-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #7a8799;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .cost-table .row-number {
    grid-column: 1 / -1;
    padding-bottom: 4px;
    color: var(--cost-red-dark);
    font-size: 12px;
  }

  .cost-table .row-number::before {
    display: none;
  }

  .cost-table .row-project {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 7px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
    font-size: 13px;
  }

  .cost-table .row-date {
    grid-column: 1 / -1;
    padding-top: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf0f4;
  }

  .cost-table .row-money {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    font-size: 11px;
  }

  .cost-table .row-usd {
    border-left: 1px solid #edf0f4;
  }

  .cost-table tfoot tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(200, 30, 43, .22);
    border-radius: 13px;
    background: #fff5f6;
  }

  .cost-table tfoot th {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    padding: 13px;
    border: 0;
    background: #fce8ea;
    font-size: 11px;
  }

  .cost-table tfoot td {
    display: block;
    width: 100%;
    padding: 13px;
    border: 0;
    background: #fff;
    font-size: 11px;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .cost-table tfoot td:last-child {
    border-left: 1px solid #edf0f4;
  }

  .cost-table tfoot td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #7a8799;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .row-project-meta {
    margin-top: 7px;
  }

  .category-badge {
    font-size: 8px;
  }

  .excluded-callout {
    gap: 24px;
  }

  .excluded-item {
    padding: 18px;
  }

  .source-book-link {
    width: 100%;
  }

  .method-card {
    grid-template-columns: 1fr;
  }

  .excluded-item__money {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .expand-button,
  .department-chevron {
    transition: none;
  }
}
