/* ===== Кейс The Кухня: ровные скриншоты и скруглённые блоки ===== */
.case-study-page--the-kukhnya .case-study-work {
  border-radius: 44px;
}

.the-kukhnya-website-gallery .case-study-site-gallery__preview {
  aspect-ratio: 560 / 473;
}

.the-kukhnya-website-gallery .case-study-site-gallery__crop {
  height: 100%;
  aspect-ratio: auto;
}

.the-kukhnya-website-gallery img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .case-study-page--the-kukhnya .case-study-work {
    border-radius: 30px;
  }
}

/* ===== Позиции в Яндексе: таблица по запросам =====
   Последняя колонка — 20 октября, подсвечена; первые места — жёлтым */
.kukhnya-positions {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 28px;
  background: #151515;
}

.kukhnya-positions:focus-visible {
  outline: 2px solid var(--solar-core);
  outline-offset: 4px;
}

.kukhnya-positions table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.kukhnya-positions th,
.kukhnya-positions td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(247, 247, 244, .08);
  text-align: left;
}

.kukhnya-positions thead th {
  color: rgba(247, 247, 244, .55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  vertical-align: bottom;
}

.kukhnya-positions thead th:not(:first-child),
.kukhnya-positions td {
  width: 17%;
  text-align: center;
}

.kukhnya-positions tbody th {
  color: rgba(247, 247, 244, .9);
  font-weight: 500;
}

.kukhnya-positions td {
  color: rgba(247, 247, 244, .65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kukhnya-positions thead th:last-child,
.kukhnya-positions td:last-child {
  background: rgba(255, 210, 64, .07);
}

.kukhnya-positions td:last-child {
  color: #f7f7f4;
  font-size: 18px;
  font-weight: 700;
}

.kukhnya-positions .kukhnya-positions__first td:last-child {
  color: var(--quantum-black);
  background: var(--solar-core);
}

.kukhnya-positions tbody tr:last-child th,
.kukhnya-positions tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .kukhnya-positions {
    border-radius: 20px;
  }

  .kukhnya-positions table {
    min-width: 0;
    font-size: 13px;
  }

  .kukhnya-positions th,
  .kukhnya-positions td {
    padding: 11px 8px;
  }

  .kukhnya-positions th:first-child {
    padding-left: 14px;
  }

  .kukhnya-positions thead th {
    font-size: 10px;
  }

  .kukhnya-positions td:last-child {
    font-size: 16px;
  }
}
