.container {
  max-width: 1376px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Страница кейсов (Layout/cases.html), не блок-слайдер на главной */
.cases-page.cases {
  padding-top: 120px;
  padding-bottom: 80px;
  background: transparent;
  border-top: none;
}

.cases__header {
    max-width: 50%;
}

.cases__title {
  font-size: 48px;
  margin-bottom: 16px;
}

.cases__subtitle {
  font-size: 18px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.cases__desc {
    max-width: 75%;
}

.cases__desc span {
  color: #0e7c6b;
}

.cases__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cases-page .cases__grid .case-card {
  min-width: 0;
  max-width: none;
  width: 100%;
  flex: none;
  height: auto;
}

.cases-page .case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  gap: 24px;
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.case-meta span {
  font-size: 12px;
  color: #1e1d1b;
  opacity: 0.5;
  text-transform: lowercase;
}

.case-meta p {
  font-size: 16px;
  margin-top: 4px;
}

.case-card h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  color: #1e1d1b;
}

.case-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-block span {
  font-size: 12px;
  color: #1e1d1b;
  opacity: 0.5;
}

.case-block p {
  font-size: 16px;
  line-height: 1.5;
  color: #1e1d1b;
  opacity: 0.8;
}

.case-link {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  color: #005842;
  text-decoration: none;
}

.case-footer {
  margin-top: auto; 

  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);

  display: flex;
  justify-content: space-between;
  width: 100%;
}

.case-footer strong {
  display: block;
  font-size: 16px;
}

.case-footer span {
  font-size: 12px;
  opacity: 0.5;
}

.cases__buttons {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}

.cases__buttons .btn {
  padding: 14px 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid #0e7c6b;
  color: #0e7c6b;
  background: transparent;
  transition: 0.25s ease;
}

/* hover — как первая кнопка */
.cases__buttons .btn:hover {
  background: #0e7c6b;
  color: #fff;
}

