/* ============== CASE DETAIL ============== */

.case-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 0 60px;
  background: var(--ink, #1a2421);
  color: #fff;
  overflow: hidden;
}

.case-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.case-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.9);
}
.case-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,36,33,0.4) 0%, rgba(26,36,33,0.85) 100%);
}
.case-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.eyebrow--light {
  color: var(--gold, #b08a4f);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.6);
}
.breadcrumbs a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.breadcrumbs a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}
.breadcrumbs span:last-child {
  color: var(--gold);
}

.case-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  margin: 16px 0 16px;
  color: #fff;
}

.case-hero__lead {
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
}

.case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold, #b08a4f);
  background: rgba(176, 138, 79, 0.12);
  border: 1px solid rgba(176, 138, 79, 0.4);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ===== stats ===== */
.case-stats {
  background: var(--surface, #ebe3d2);
  padding: 60px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.case-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.case-stat__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: var(--ink, #1a2421);
  line-height: 1;
  margin-bottom: 8px;
}
.case-stat__label {
  font-size: 14px;
  color: var(--ink-soft, #5a6663);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== sections ===== */
.case-section {
  padding: 100px 0;
}
.case-section--alt {
  background: var(--bg-alt, #f5f1e8);
}
.case-section__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.case-section__grid--reverse .case-section__text {
  order: 2;
}
.case-section__grid--reverse .case-section__media {
  order: 1;
}
.case-section__text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  margin: 12px 0 24px;
  color: var(--ink, #1a2421);
}
.case-section__text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--forest, #2d4a3a);
  margin: 32px 0 10px;
}
.case-section__text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft, #3a4644);
  margin: 0 0 16px;
}
.case-section__media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ===== estimate table ===== */
.estimate {
  margin: 40px 0;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}
.estimate__row {
  display: grid;
  grid-template-columns: 4fr 1fr 1.2fr;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: center;
  transition: background 0.15s;
}
.estimate__row:hover:not(.estimate__row--header):not(.estimate__row--total):not(.estimate__row--grand) {
  background: rgba(176, 138, 79, 0.04);
}
.estimate__row:last-child {
  border-bottom: 0;
}
.estimate__row--header {
  background: var(--forest, #2d4a3a);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.estimate__row--total {
  background: rgba(45, 74, 58, 0.08);
  font-weight: 600;
  font-size: 17px;
  color: var(--forest, #2d4a3a);
}
.estimate__row--grand {
  background: var(--ink, #1a2421);
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  padding: 24px 28px;
}
.estimate__row--grand .estimate__cell,
.estimate__row--grand > div {
  color: var(--gold, #b08a4f);
}
.estimate__row > div:nth-child(2),
.estimate__row > div:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.case-section__note {
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft, #5a6663);
  margin-top: 24px;
  font-style: italic;
}

/* ===== includes ===== */
.case-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}
.case-includes__col {
  background: #fff;
  padding: 36px;
  border-left: 3px solid var(--gold, #b08a4f);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.case-includes__col h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--ink, #1a2421);
}
.case-includes__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-includes__col li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft, #3a4644);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.case-includes__col li:last-child { border-bottom: 0; }
.case-includes__col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold, #b08a4f);
  font-weight: 700;
}

/* ===== rules ===== */
.case-rules {
  max-width: 820px;
  margin: 40px auto 0;
  counter-reset: rule;
  list-style: none;
  padding: 0;
}
.case-rules li {
  position: relative;
  padding: 18px 20px 18px 70px;
  margin-bottom: 14px;
  background: #fff;
  border-left: 3px solid var(--gold, #b08a4f);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft, #3a4644);
  counter-increment: rule;
}
.case-rules li::before {
  content: counter(rule);
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold, #b08a4f);
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--forest, #2d4a3a);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 20px;
  color: #fff;
}
.cta .lead {
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.85);
}
.cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: var(--gold, #b08a4f);
  color: #fff;
  border: 0;
  padding: 18px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s;
}
.cta .btn--primary:hover { background: #c89c5e; }
.cta .btn--ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 18px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: all 0.2s;
}
.cta .btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .case-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .case-section__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .case-section__grid--reverse .case-section__text { order: 1; }
  .case-section__grid--reverse .case-section__media { order: 2; }
  .case-includes {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .case-hero { min-height: 60vh; padding: 80px 0 40px; }
  .case-section { padding: 60px 0; }
  .estimate__row {
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    padding: 14px 18px;
    font-size: 14px;
  }
  .estimate__row > div:nth-child(3) {
    grid-column: 1 / -1;
    text-align: left;
    color: var(--ink-soft);
  }
  .case-rules li {
    padding: 16px 16px 16px 56px;
    font-size: 15px;
  }
}

/* ===== Дизайн-проект ===== */
.case-section--design {
  background: linear-gradient(180deg, #f8f6f1 0%, #ffffff 100%);
  border-top: 1px solid #e8e2d4;
  border-bottom: 1px solid #e8e2d4;
}

.design-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 48px;
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid #e8e2d4;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(26, 36, 33, 0.04);
}

.design-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid #f0eadd;
}

.design-stat:last-child {
  border-right: none;
}

.design-stat__num {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: #1a2421;
  letter-spacing: -0.02em;
}

.design-stat__num::after {
  content: '';
}

.design-stat__label {
  font-size: 13px;
  line-height: 1.4;
  color: #5a5650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.design-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 32px;
}

.design-cat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e8e2d4;
  border-left: 3px solid #b08a4f;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.design-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 36, 33, 0.06);
  border-left-color: #1a2421;
}

.design-cat__num {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 600;
  color: #b08a4f;
  line-height: 1;
}

.design-cat__name {
  font-size: 15px;
  font-weight: 600;
  color: #1a2421;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.design-cat__hint {
  font-size: 12px;
  color: #7a746c;
  line-height: 1.3;
}

.design-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  margin: 0 0 20px;
  background: #1a2421;
  border-radius: 8px;
  color: #ffffff;
  flex-wrap: wrap;
}

.design-download__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-download__text strong {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.design-download__text span {
  font-size: 13px;
  color: #c8c2b5;
}

.design-download .btn--gold {
  background: #b08a4f;
  color: #ffffff;
  border: 1px solid #b08a4f;
  padding: 14px 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.design-download .btn--gold:hover {
  background: #c89858;
  border-color: #c89858;
  transform: translateY(-1px);
}

.design-note {
  font-size: 14px;
  line-height: 1.6;
  color: #5a5650;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.design-note strong {
  color: #1a2421;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .design-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px 16px;
  }

  .design-stat {
    border-right: none;
    border-bottom: 1px solid #f0eadd;
    padding: 12px;
  }

  .design-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .design-stat__num {
    font-size: 44px;
  }

  .design-breakdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .design-stats {
    grid-template-columns: 1fr 1fr;
  }

  .design-stat__num {
    font-size: 36px;
  }

  .design-breakdown {
    grid-template-columns: 1fr;
  }

  .design-download {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .design-download .btn--gold {
    width: 100%;
    text-align: center;
  }
}
