/* ============================================================
   COST PAGE — Price Matrix
   ============================================================ */
.cost-page {
  padding: 0;
  background: var(--paper);
}

/* Hero Section */
.cost-hero {
  padding: calc(80px + 48px) 0 48px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { margin: 0 8px; color: var(--line-2); }
.breadcrumbs .current { color: var(--muted-2); }

.cost-hero__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cost-hero__title {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin: 0;
  color: var(--ink);
}

.cost-hero__info {
  flex: 0 0 auto;
  max-width: 480px;
  margin-left: auto;
  text-align: right;
}

.cost-hero__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Matrix Section */
.cost-matrix {
  padding: 48px 0 80px;
}

.cost-matrix__header {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

.cost-matrix__title {
  font-family: 'Cormorant', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  color: var(--ink);
}

/* Price Table */
.price-table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  margin-bottom: 40px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.price-table thead tr {
  border-bottom: 1px solid var(--line);
}

.price-table th {
  padding: 20px 24px 16px;
  text-align: center;
  vertical-align: middle;
  background: transparent;
  font-weight: 400;
}

.col-size {
  text-align: left;
  min-width: 200px;
  vertical-align: middle;
  padding-bottom: 4px;
}

.col-size__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
}

.col-fabric {
  min-width: 140px;
}

.col-fabric__name {
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}

.col-fabric__desc {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.col-fabric--flagship {
  border-radius: 8px 8px 0 0;
}

.col-fabric__badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.col-fabric--flagship .col-fabric__badge {
  color: #fff;
  font-weight: 500;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Table Body */
.price-table tbody tr {
  border-bottom: 1px solid var(--line);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.size-cell {
  padding: 24px;
  vertical-align: top;
}

.size-name {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 400;
  display: block;
  margin-bottom: 8px;
}

.size-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.size-items span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.price-cell {
  padding: 24px;
  text-align: center;
  vertical-align: middle;
}

.price-cell {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.price-cell--flagship {
  color: var(--ink-2);
}

/* Info Cards */
.cost-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cost-info-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--cream-2);
  border-radius: var(--r-md);
}

.cost-info-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  color: var(--muted);
}

.cost-info-card__content {
  flex: 1;
}

.cost-info-card__title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.cost-info-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── Mobile price list ── */
.price-mobile { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .cost-hero { padding-top: 100px; }

  .cost-hero__content {
    flex-direction: column;
    gap: 24px;
  }

  .cost-info-cards {
    grid-template-columns: 1fr;
  }

  /* скрываем таблицу, показываем список */
  .price-table-wrap { display: none; }
  .price-mobile { display: block; margin-top: 24px; margin-bottom: 40px; }

  .price-mobile__block {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
  }
  .price-mobile__block:last-child { border-bottom: none; }

  .price-mobile__size {
    font-family: 'Cormorant', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 10px;
  }

  .price-mobile__dims {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
  }
  .price-mobile__dims span {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .price-mobile__rows {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .price-mobile__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .price-mobile__fabric {
    font-size: 14px;
    color: var(--ink);
  }

  .price-mobile__price {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
  }
}
