.tk-articles {
  --tk-articles-accent: #1f8a55;
  --tk-articles-accent-dark: #12663d;
  --tk-articles-bg: #f5f7f5;
  --tk-articles-text: #11251b;
  --tk-articles-muted: #627367;
  --tk-articles-border: rgba(18, 62, 41, 0.08);
  --tk-articles-gap: 24px;
  --tk-articles-visible: 3;
  background: var(--tk-articles-bg);
  overflow: hidden;
  padding: 84px 0 88px;
}

.tk-articles__header {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.tk-articles__intro {
  max-width: 710px;
}

.tk-articles__eyebrow {
  color: var(--tk-articles-accent);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
  margin-bottom: 13px;
}

.tk-articles__title {
  color: var(--tk-articles-text);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 0 0 13px;
}

.tk-articles__description {
  color: var(--tk-articles-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  max-width: 610px;
}

.tk-articles__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-bottom: 6px;
}

.tk-articles__button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tk-articles-border);
  border-radius: 50%;
  box-shadow: 0 9px 25px rgba(14, 48, 31, 0.08);
  color: var(--tk-articles-accent-dark);
  cursor: pointer;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease, transform 200ms ease, opacity 200ms ease;
  width: 50px;
}

.tk-articles__button svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.tk-articles__button:hover:not(:disabled),
.tk-articles__button:focus-visible:not(:disabled) {
  background: var(--tk-articles-accent);
  box-shadow: 0 12px 25px rgba(31, 138, 85, 0.24);
  color: #fff;
  transform: translateY(-2px);
}

.tk-articles__button:focus-visible {
  outline: 3px solid rgba(31, 138, 85, 0.2);
  outline-offset: 2px;
}

.tk-articles__button:disabled {
  box-shadow: none;
  cursor: default;
  opacity: 0.38;
}

.tk-articles__slider {
  margin: -10px -5px -26px;
  position: relative;
}

.tk-articles__track {
  align-items: stretch;
  cursor: grab;
  display: flex;
  gap: var(--tk-articles-gap);
  margin: 0;
  overflow-x: auto;
  padding: 10px 5px 26px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.tk-articles__track::-webkit-scrollbar {
  display: none;
}

.tk-articles__track:focus-visible {
  border-radius: 20px;
  outline: 3px solid rgba(31, 138, 85, 0.17);
  outline-offset: 2px;
}

.tk-articles__track.tk-articles__track--dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.tk-articles__card {
  background: #fff;
  border: 1px solid var(--tk-articles-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 51, 33, 0.06);
  display: flex;
  flex: 0 0 calc((100% - ((var(--tk-articles-visible) - 1) * var(--tk-articles-gap))) / var(--tk-articles-visible));
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.tk-articles__card:hover {
  border-color: rgba(31, 138, 85, 0.15);
  box-shadow: 0 22px 42px rgba(12, 43, 26, 0.12);
  transform: translateY(-5px);
}

.tk-articles__media {
  aspect-ratio: 4 / 3;
  background: #f0f4f1;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}

.tk-articles__media img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.tk-articles__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 22px 21px;
}

.tk-articles__tag {
  align-self: flex-start;
  background: rgba(31, 138, 85, 0.1);
  border-radius: 999px;
  color: var(--tk-articles-accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 14px;
  padding: 8px 12px 7px;
  text-transform: uppercase;
}

.tk-articles__meta {
  color: #718276;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 11px;
}

.tk-articles__card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.48;
  margin: 0 0 20px;
}

.tk-articles__card-title a {
  color: var(--tk-articles-text);
  text-decoration: none;
  transition: color 180ms ease;
}

.tk-articles__card-title a:hover,
.tk-articles__card-title a:focus {
  color: var(--tk-articles-accent-dark);
}

.tk-articles__read {
  align-items: center;
  color: var(--tk-articles-accent-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 7px;
  line-height: 1.4;
  margin-top: auto;
  text-decoration: none;
}

.tk-articles__read span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.tk-articles__read:hover,
.tk-articles__read:focus {
  color: var(--tk-articles-accent);
}

.tk-articles__read:hover span,
.tk-articles__read:focus span {
  transform: translateX(3px);
}

@media (max-width: 991.98px) {
  .tk-articles {
    --tk-articles-gap: 20px;
    --tk-articles-visible: 2;
    padding: 70px 0 72px;
  }

  .tk-articles__header {
    align-items: flex-end;
    margin-bottom: 30px;
  }

  .tk-articles__card-title {
    font-size: 17px;
  }
}

@media (max-width: 767.98px) {
  .tk-articles {
    --tk-articles-gap: 15px;
    --tk-articles-visible: 1.07;
    padding: 56px 0 60px;
  }

  .tk-articles__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
  }

  .tk-articles__title {
    font-size: 29px;
  }

  .tk-articles__description {
    font-size: 15px;
  }

  .tk-articles__controls {
    padding-bottom: 0;
  }

  .tk-articles__button {
    height: 46px;
    width: 46px;
  }

  .tk-articles__body {
    padding: 20px 19px;
  }
}

@media (max-width: 399.98px) {
  .tk-articles {
    --tk-articles-visible: 1.035;
  }

  .tk-articles__eyebrow {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-articles__track {
    scroll-behavior: auto;
  }

  .tk-articles__button,
  .tk-articles__card,
  .tk-articles__read span {
    transition: none;
  }

  .tk-articles__card:hover {
    transform: none;
  }
}
